gt-react 10.6.4 → 10.7.0-alpha.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.
@@ -0,0 +1,30 @@
1
+ import e from"node:path";import t from"node:buffer";import r from"node:fs";import n from"node:process";import i from"node:module";import s from"url";import a from"node:querystring";import o from"path";import l from"constants";var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function u(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var h,d,f,m,y,g,T,x,b,S,v,E={},P={},A={},C={};function w(){if(d)return h;d=1;const e="\\\\/",t=`[^${e}]`,r="\\.",n="\\/",i="[^/]",s=`(?:${n}|$)`,a=`(?:^|${n})`,o=`${r}{1,2}${s}`,l={DOT_LITERAL:r,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:n,ONE_CHAR:"(?=.)",QMARK:i,END_ANCHOR:s,DOTS_SLASH:o,NO_DOT:`(?!${r})`,NO_DOTS:`(?!${a}${o})`,NO_DOT_SLASH:`(?!${r}{0,1}${s})`,NO_DOTS_SLASH:`(?!${o})`,QMARK_NO_DOT:`[^.${n}]`,STAR:`${i}*?`,START_ANCHOR:a,SEP:"/"},c={...l,SLASH_LITERAL:`[${e}]`,QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${r}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[${e}])${r}{1,2}(?:[${e}]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[${e}]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[${e}]|$))`,QMARK_NO_DOT:`[^.${e}]`,START_ANCHOR:`(?:^|[${e}])`,END_ANCHOR:`(?:[${e}]|$)`,SEP:"\\"};return h={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?c:l}}function _(){return f||(f=1,function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:i}=w();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>n.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,"\\$1"),e.toPosixSlashes=e=>e.replace(t,"/"),e.isWindows=()=>{if("undefined"!=typeof navigator&&navigator.platform){const e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return!("undefined"==typeof process||!process.platform)&&"win32"===process.platform},e.removeBackslashes=e=>e.replace(r,e=>"\\"===e?"":e),e.escapeLast=(t,r,n)=>{const i=t.lastIndexOf(r,n);return-1===i?t:"\\"===t[i-1]?e.escapeLast(t,r,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},e.wrapOutput=(e,t={},r={})=>{let n=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n},e.basename=(e,{windows:t}={})=>{const r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return""===n?r[r.length-2]:n}}(C)),C}function I(){if(y)return m;y=1;const e=_(),{CHAR_ASTERISK:t,CHAR_AT:r,CHAR_BACKWARD_SLASH:n,CHAR_COMMA:i,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:o,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:u,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:d,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:g}=w(),T=e=>e===o||e===n,x=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return m=(m,y)=>{const b=y||{},S=m.length-1,v=!0===b.parts||!0===b.scanToEnd,E=[],P=[],A=[];let C,w,_=m,I=-1,k=0,O=0,N=!1,L=!1,D=!1,M=!1,B=!1,F=!1,j=!1,R=!1,V=!1,U=!1,K=0,H={value:"",depth:0,isGlob:!1};const W=()=>I>=S,q=()=>_.charCodeAt(I+1),$=()=>(C=w,_.charCodeAt(++I));for(;I<S;){let e;if(w=$(),w!==n){if(!0===F||w===l){for(K++;!0!==W()&&(w=$());)if(w!==n)if(w!==l){if(!0!==F&&w===s&&(w=$())===s){if(N=H.isBrace=!0,D=H.isGlob=!0,U=!0,!0===v)continue;break}if(!0!==F&&w===i){if(N=H.isBrace=!0,D=H.isGlob=!0,U=!0,!0===v)continue;break}if(w===d&&(K--,0===K)){F=!1,N=H.isBrace=!0,U=!0;break}}else K++;else j=H.backslashes=!0,$();if(!0===v)continue;break}if(w!==o){if(!0!==b.noext){if(!0===(w===u||w===r||w===t||w===h||w===a)&&q()===c){if(D=H.isGlob=!0,M=H.isExtglob=!0,U=!0,w===a&&I===k&&(V=!0),!0===v){for(;!0!==W()&&(w=$());)if(w!==n){if(w===f){D=H.isGlob=!0,U=!0;break}}else j=H.backslashes=!0,w=$();continue}break}}if(w===t){if(C===t&&(B=H.isGlobstar=!0),D=H.isGlob=!0,U=!0,!0===v)continue;break}if(w===h){if(D=H.isGlob=!0,U=!0,!0===v)continue;break}if(w===p){for(;!0!==W()&&(e=$());)if(e!==n){if(e===g){L=H.isBracket=!0,D=H.isGlob=!0,U=!0;break}}else j=H.backslashes=!0,$();if(!0===v)continue;break}if(!0===b.nonegate||w!==a||I!==k){if(!0!==b.noparen&&w===c){if(D=H.isGlob=!0,!0===v){for(;!0!==W()&&(w=$());)if(w!==c){if(w===f){U=!0;break}}else j=H.backslashes=!0,w=$();continue}break}if(!0===D){if(U=!0,!0===v)continue;break}}else R=H.negated=!0,k++}else{if(E.push(I),P.push(H),H={value:"",depth:0,isGlob:!1},!0===U)continue;if(C===s&&I===k+1){k+=2;continue}O=I+1}}else j=H.backslashes=!0,w=$(),w===l&&(F=!0)}!0===b.noext&&(M=!1,D=!1);let Y=_,J="",X="";k>0&&(J=_.slice(0,k),_=_.slice(k),O-=k),Y&&!0===D&&O>0?(Y=_.slice(0,O),X=_.slice(O)):!0===D?(Y="",X=_):Y=_,Y&&""!==Y&&"/"!==Y&&Y!==_&&T(Y.charCodeAt(Y.length-1))&&(Y=Y.slice(0,-1)),!0===b.unescape&&(X&&(X=e.removeBackslashes(X)),Y&&!0===j&&(Y=e.removeBackslashes(Y)));const z={prefix:J,input:m,start:k,base:Y,glob:X,isBrace:N,isBracket:L,isGlob:D,isExtglob:M,isGlobstar:B,negated:R,negatedExtglob:V};if(!0===b.tokens&&(z.maxDepth=0,T(w)||P.push(H),z.tokens=P),!0===b.parts||!0===b.tokens){let e;for(let t=0;t<E.length;t++){const r=e?e+1:k,n=E[t],i=m.slice(r,n);b.tokens&&(0===t&&0!==k?(P[t].isPrefix=!0,P[t].value=J):P[t].value=i,x(P[t]),z.maxDepth+=P[t].depth),0===t&&""===i||A.push(i),e=n}if(e&&e+1<m.length){const t=m.slice(e+1);A.push(t),b.tokens&&(P[P.length-1].value=t,x(P[P.length-1]),z.maxDepth+=P[P.length-1].depth)}z.slashes=E,z.parts=A}return z},m}function k(){if(T)return g;T=1;const e=w(),t=_(),{MAX_LENGTH:r,POSIX_REGEX_SOURCE:n,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:a}=e,o=(e,r)=>{if("function"==typeof r.expandRange)return r.expandRange(...e,r);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(r){return e.map(e=>t.escapeRegex(e)).join("..")}return n},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,c=(p,u)=>{if("string"!=typeof p)throw new TypeError("Expected a string");p=a[p]||p;const h={...u},d="number"==typeof h.maxLength?Math.min(r,h.maxLength):r;let f=p.length;if(f>d)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${d}`);const m={type:"bos",value:"",output:h.prepend||""},y=[m],g=h.capture?"":"?:",T=e.globChars(h.windows),x=e.extglobChars(T),{DOT_LITERAL:b,PLUS_LITERAL:S,SLASH_LITERAL:v,ONE_CHAR:E,DOTS_SLASH:P,NO_DOT:A,NO_DOT_SLASH:C,NO_DOTS_SLASH:w,QMARK:_,QMARK_NO_DOT:I,STAR:k,START_ANCHOR:O}=T,N=e=>`(${g}(?:(?!${O}${e.dot?P:b}).)*?)`,L=h.dot?"":A,D=h.dot?_:I;let M=!0===h.bash?N(h):k;h.capture&&(M=`(${M})`),"boolean"==typeof h.noext&&(h.noextglob=h.noext);const B={input:p,index:-1,start:0,dot:!0===h.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:y};p=t.removePrefix(p,B),f=p.length;const F=[],j=[],R=[];let V,U=m;const K=()=>B.index===f-1,H=B.peek=(e=1)=>p[B.index+e],W=B.advance=()=>p[++B.index]||"",q=()=>p.slice(B.index+1),$=(e="",t=0)=>{B.consumed+=e,B.index+=t},Y=e=>{B.output+=null!=e.output?e.output:e.value,$(e.value)},J=()=>{let e=1;for(;"!"===H()&&("("!==H(2)||"?"===H(3));)W(),B.start++,e++;return e%2!=0&&(B.negated=!0,B.start++,!0)},X=e=>{B[e]++,R.push(e)},z=e=>{B[e]--,R.pop()},G=e=>{if("globstar"===U.type){const t=B.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||F.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(B.output=B.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=M,B.output+=U.output)}if(F.length&&"paren"!==e.type&&(F[F.length-1].inner+=e.value),(e.value||e.output)&&Y(e),U&&"text"===U.type&&"text"===e.type)return U.output=(U.output||U.value)+e.value,void(U.value+=e.value);e.prev=U,y.push(e),U=e},Q=(e,t)=>{const r={...x[t],conditions:1,inner:""};r.prev=U,r.parens=B.parens,r.output=B.output;const n=(h.capture?"(":"")+r.open;X("parens"),G({type:e,value:t,output:B.output?"":E}),G({type:"paren",extglob:!0,value:W(),output:n}),F.push(r)},Z=e=>{let t,r=e.close+(h.capture?")":"");if("negate"===e.type){let n=M;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(n=N(h)),(n!==M||K()||/^\)+$/.test(q()))&&(r=e.close=`)$))${n}`),e.inner.includes("*")&&(t=q())&&/^\.[^\\/.]+$/.test(t)){const i=c(t,{...u,fastpaths:!1}).output;r=e.close=`)${i})${n})`}"bos"===e.prev.type&&(B.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:V,output:r}),z("parens")};if(!1!==h.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(p)){let e=!1,r=p.replace(s,(t,r,n,i,s,a)=>"\\"===i?(e=!0,t):"?"===i?r?r+i+(s?_.repeat(s.length):""):0===a?D+(s?_.repeat(s.length):""):_.repeat(n.length):"."===i?b.repeat(n.length):"*"===i?r?r+i+(s?M:""):M:r?t:`\\${t}`);return!0===e&&(r=!0===h.unescape?r.replace(/\\/g,""):r.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),r===p&&!0===h.contains?(B.output=p,B):(B.output=t.wrapOutput(r,B,u),B)}for(;!K();){if(V=W(),"\0"===V)continue;if("\\"===V){const e=H();if("/"===e&&!0!==h.bash)continue;if("."===e||";"===e)continue;if(!e){V+="\\",G({type:"text",value:V});continue}const t=/^\\+/.exec(q());let r=0;if(t&&t[0].length>2&&(r=t[0].length,B.index+=r,r%2!=0&&(V+="\\")),!0===h.unescape?V=W():V+=W(),0===B.brackets){G({type:"text",value:V});continue}}if(B.brackets>0&&("]"!==V||"["===U.value||"[^"===U.value)){if(!1!==h.posix&&":"===V){const e=U.value.slice(1);if(e.includes("[")&&(U.posix=!0,e.includes(":"))){const e=U.value.lastIndexOf("["),t=U.value.slice(0,e),r=U.value.slice(e+2),i=n[r];if(i){U.value=t+i,B.backtrack=!0,W(),m.output||1!==y.indexOf(U)||(m.output=E);continue}}}("["===V&&":"!==H()||"-"===V&&"]"===H())&&(V=`\\${V}`),"]"!==V||"["!==U.value&&"[^"!==U.value||(V=`\\${V}`),!0===h.posix&&"!"===V&&"["===U.value&&(V="^"),U.value+=V,Y({value:V});continue}if(1===B.quotes&&'"'!==V){V=t.escapeRegex(V),U.value+=V,Y({value:V});continue}if('"'===V){B.quotes=1===B.quotes?0:1,!0===h.keepQuotes&&G({type:"text",value:V});continue}if("("===V){X("parens"),G({type:"paren",value:V});continue}if(")"===V){if(0===B.parens&&!0===h.strictBrackets)throw new SyntaxError(l("opening","("));const e=F[F.length-1];if(e&&B.parens===e.parens+1){Z(F.pop());continue}G({type:"paren",value:V,output:B.parens?")":"\\)"}),z("parens");continue}if("["===V){if(!0!==h.nobracket&&q().includes("]"))X("brackets");else{if(!0!==h.nobracket&&!0===h.strictBrackets)throw new SyntaxError(l("closing","]"));V=`\\${V}`}G({type:"bracket",value:V});continue}if("]"===V){if(!0===h.nobracket||U&&"bracket"===U.type&&1===U.value.length){G({type:"text",value:V,output:`\\${V}`});continue}if(0===B.brackets){if(!0===h.strictBrackets)throw new SyntaxError(l("opening","["));G({type:"text",value:V,output:`\\${V}`});continue}z("brackets");const e=U.value.slice(1);if(!0===U.posix||"^"!==e[0]||e.includes("/")||(V=`/${V}`),U.value+=V,Y({value:V}),!1===h.literalBrackets||t.hasRegexChars(e))continue;const r=t.escapeRegex(U.value);if(B.output=B.output.slice(0,-U.value.length),!0===h.literalBrackets){B.output+=r,U.value=r;continue}U.value=`(${g}${r}|${U.value})`,B.output+=U.value;continue}if("{"===V&&!0!==h.nobrace){X("braces");const e={type:"brace",value:V,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};j.push(e),G(e);continue}if("}"===V){const e=j[j.length-1];if(!0===h.nobrace||!e){G({type:"text",value:V,output:V});continue}let t=")";if(!0===e.dots){const e=y.slice(),r=[];for(let t=e.length-1;t>=0&&(y.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=o(r,h),B.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=B.output.slice(0,e.outputIndex),n=B.tokens.slice(e.tokensIndex);e.value=e.output="\\{",V=t="\\}",B.output=r;for(const e of n)B.output+=e.output||e.value}G({type:"brace",value:V,output:t}),z("braces"),j.pop();continue}if("|"===V){F.length>0&&F[F.length-1].conditions++,G({type:"text",value:V});continue}if(","===V){let e=V;const t=j[j.length-1];t&&"braces"===R[R.length-1]&&(t.comma=!0,e="|"),G({type:"comma",value:V,output:e});continue}if("/"===V){if("dot"===U.type&&B.index===B.start+1){B.start=B.index+1,B.consumed="",B.output="",y.pop(),U=m;continue}G({type:"slash",value:V,output:v});continue}if("."===V){if(B.braces>0&&"dot"===U.type){"."===U.value&&(U.output=b);const e=j[j.length-1];U.type="dots",U.output+=V,U.value+=V,e.dots=!0;continue}if(B.braces+B.parens===0&&"bos"!==U.type&&"slash"!==U.type){G({type:"text",value:V,output:b});continue}G({type:"dot",value:V,output:b});continue}if("?"===V){if(!(U&&"("===U.value)&&!0!==h.noextglob&&"("===H()&&"?"!==H(2)){Q("qmark",V);continue}if(U&&"paren"===U.type){const e=H();let t=V;("("===U.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(q()))&&(t=`\\${V}`),G({type:"text",value:V,output:t});continue}if(!0!==h.dot&&("slash"===U.type||"bos"===U.type)){G({type:"qmark",value:V,output:I});continue}G({type:"qmark",value:V,output:_});continue}if("!"===V){if(!0!==h.noextglob&&"("===H()&&("?"!==H(2)||!/[!=<:]/.test(H(3)))){Q("negate",V);continue}if(!0!==h.nonegate&&0===B.index){J();continue}}if("+"===V){if(!0!==h.noextglob&&"("===H()&&"?"!==H(2)){Q("plus",V);continue}if(U&&"("===U.value||!1===h.regex){G({type:"plus",value:V,output:S});continue}if(U&&("bracket"===U.type||"paren"===U.type||"brace"===U.type)||B.parens>0){G({type:"plus",value:V});continue}G({type:"plus",value:S});continue}if("@"===V){if(!0!==h.noextglob&&"("===H()&&"?"!==H(2)){G({type:"at",extglob:!0,value:V,output:""});continue}G({type:"text",value:V});continue}if("*"!==V){"$"!==V&&"^"!==V||(V=`\\${V}`);const e=i.exec(q());e&&(V+=e[0],B.index+=e[0].length),G({type:"text",value:V});continue}if(U&&("globstar"===U.type||!0===U.star)){U.type="star",U.star=!0,U.value+=V,U.output=M,B.backtrack=!0,B.globstar=!0,$(V);continue}let e=q();if(!0!==h.noextglob&&/^\([^?]/.test(e)){Q("star",V);continue}if("star"===U.type){if(!0===h.noglobstar){$(V);continue}const t=U.prev,r=t.prev,n="slash"===t.type||"bos"===t.type,i=r&&("star"===r.type||"globstar"===r.type);if(!0===h.bash&&(!n||e[0]&&"/"!==e[0])){G({type:"star",value:V,output:""});continue}const s=B.braces>0&&("comma"===t.type||"brace"===t.type),a=F.length&&("pipe"===t.type||"paren"===t.type);if(!n&&"paren"!==t.type&&!s&&!a){G({type:"star",value:V,output:""});continue}for(;"/**"===e.slice(0,3);){const t=p[B.index+4];if(t&&"/"!==t)break;e=e.slice(3),$("/**",3)}if("bos"===t.type&&K()){U.type="globstar",U.value+=V,U.output=N(h),B.output=U.output,B.globstar=!0,$(V);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!i&&K()){B.output=B.output.slice(0,-(t.output+U.output).length),t.output=`(?:${t.output}`,U.type="globstar",U.output=N(h)+(h.strictSlashes?")":"|$)"),U.value+=V,B.globstar=!0,B.output+=t.output+U.output,$(V);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){const r=void 0!==e[1]?"|$":"";B.output=B.output.slice(0,-(t.output+U.output).length),t.output=`(?:${t.output}`,U.type="globstar",U.output=`${N(h)}${v}|${v}${r})`,U.value+=V,B.output+=t.output+U.output,B.globstar=!0,$(V+W()),G({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){U.type="globstar",U.value+=V,U.output=`(?:^|${v}|${N(h)}${v})`,B.output=U.output,B.globstar=!0,$(V+W()),G({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-U.output.length),U.type="globstar",U.output=N(h),U.value+=V,B.output+=U.output,B.globstar=!0,$(V);continue}const r={type:"star",value:V,output:M};!0!==h.bash?!U||"bracket"!==U.type&&"paren"!==U.type||!0!==h.regex?(B.index!==B.start&&"slash"!==U.type&&"dot"!==U.type||("dot"===U.type?(B.output+=C,U.output+=C):!0===h.dot?(B.output+=w,U.output+=w):(B.output+=L,U.output+=L),"*"!==H()&&(B.output+=E,U.output+=E)),G(r)):(r.output=V,G(r)):(r.output=".*?","bos"!==U.type&&"slash"!==U.type||(r.output=L+r.output),G(r))}for(;B.brackets>0;){if(!0===h.strictBrackets)throw new SyntaxError(l("closing","]"));B.output=t.escapeLast(B.output,"["),z("brackets")}for(;B.parens>0;){if(!0===h.strictBrackets)throw new SyntaxError(l("closing",")"));B.output=t.escapeLast(B.output,"("),z("parens")}for(;B.braces>0;){if(!0===h.strictBrackets)throw new SyntaxError(l("closing","}"));B.output=t.escapeLast(B.output,"{"),z("braces")}if(!0===h.strictSlashes||"star"!==U.type&&"bracket"!==U.type||G({type:"maybe_slash",value:"",output:`${v}?`}),!0===B.backtrack){B.output="";for(const e of B.tokens)B.output+=null!=e.output?e.output:e.value,e.suffix&&(B.output+=e.suffix)}return B};return c.fastpaths=(n,i)=>{const s={...i},o="number"==typeof s.maxLength?Math.min(r,s.maxLength):r,l=n.length;if(l>o)throw new SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${o}`);n=a[n]||n;const{DOT_LITERAL:c,SLASH_LITERAL:p,ONE_CHAR:u,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:g}=e.globChars(s.windows),T=s.dot?f:d,x=s.dot?m:d,b=s.capture?"":"?:";let S=!0===s.bash?".*?":y;s.capture&&(S=`(${S})`);const v=e=>!0===e.noglobstar?S:`(${b}(?:(?!${g}${e.dot?h:c}).)*?)`,E=e=>{switch(e){case"*":return`${T}${u}${S}`;case".*":return`${c}${u}${S}`;case"*.*":return`${T}${S}${c}${u}${S}`;case"*/*":return`${T}${S}${p}${u}${x}${S}`;case"**":return T+v(s);case"**/*":return`(?:${T}${v(s)}${p})?${x}${u}${S}`;case"**/*.*":return`(?:${T}${v(s)}${p})?${x}${S}${c}${u}${S}`;case"**/.*":return`(?:${T}${v(s)}${p})?${c}${u}${S}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=E(t[1]);if(!r)return;return r+c+t[2]}}},P=t.removePrefix(n,{negated:!1,prefix:""});let A=E(P);return A&&!0!==s.strictSlashes&&(A+=`${p}?`),A},g=c}function O(){if(b)return x;b=1;const e=I(),t=k(),r=_(),n=w(),i=(e,t,r=!1)=>{if(Array.isArray(e)){const n=e.map(e=>i(e,t,r)),s=e=>{for(const t of n){const r=t(e);if(r)return r}return!1};return s}const n=(s=e)&&"object"==typeof s&&!Array.isArray(s)&&e.tokens&&e.input;var s;if(""===e||"string"!=typeof e&&!n)throw new TypeError("Expected pattern to be a non-empty string");const a=t||{},o=a.windows,l=n?i.compileRe(e,t):i.makeRe(e,t,!1,!0),c=l.state;delete l.state;let p=()=>!1;if(a.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};p=i(a.ignore,e,r)}const u=(r,n=!1)=>{const{isMatch:s,match:u,output:h}=i.test(r,l,t,{glob:e,posix:o}),d={glob:e,state:c,regex:l,posix:o,input:r,output:h,match:u,isMatch:s};return"function"==typeof a.onResult&&a.onResult(d),!1===s?(d.isMatch=!1,!!n&&d):p(r)?("function"==typeof a.onIgnore&&a.onIgnore(d),d.isMatch=!1,!!n&&d):("function"==typeof a.onMatch&&a.onMatch(d),!n||d)};return r&&(u.state=c),u};return i.test=(e,t,n,{glob:s,posix:a}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const o=n||{},l=o.format||(a?r.toPosixSlashes:null);let c=e===s,p=c&&l?l(e):e;return!1===c&&(p=l?l(e):e,c=p===s),!1!==c&&!0!==o.capture||(c=!0===o.matchBase||!0===o.basename?i.matchBase(e,t,n,a):t.exec(p)),{isMatch:Boolean(c),match:c,output:p}},i.matchBase=(e,t,n)=>(t instanceof RegExp?t:i.makeRe(t,n)).test(r.basename(e)),i.isMatch=(e,t,r)=>i(t,r)(e),i.parse=(e,r)=>Array.isArray(e)?e.map(e=>i.parse(e,r)):t(e,{...r,fastpaths:!1}),i.scan=(t,r)=>e(t,r),i.compileRe=(e,t,r=!1,n=!1)=>{if(!0===r)return e.output;const s=t||{},a=s.contains?"":"^",o=s.contains?"":"$";let l=`${a}(?:${e.output})${o}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);const c=i.toRegex(l,t);return!0===n&&(c.state=e),c},i.makeRe=(e,r={},n=!1,s=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let a={negated:!1,fastpaths:!0};return!1===r.fastpaths||"."!==e[0]&&"*"!==e[0]||(a.output=t.fastpaths(e,r)),a.output||(a=t(e,r)),i.compileRe(a,r,n,s)},i.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},i.constants=n,x=i}function N(){if(v)return S;v=1;const e=O(),t=_();function r(r,n,i=!1){return!n||null!==n.windows&&void 0!==n.windows||(n={...n,windows:t.isWindows()}),e(r,n,i)}return Object.assign(r,e),S=r}var L,D,M={exports:{}};function B(){return L||(L=1,function(e){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,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],r=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],n="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",i="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",s={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"},a="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",o={5:a,"5module":a+" export import",6:a+" const class extends export import super"},l=/^in(stanceof)?$/,c=new RegExp("["+i+"]"),p=new RegExp("["+i+n+"]");function u(e,t){for(var r=65536,n=0;n<t.length;n+=2){if((r+=t[n])>e)return!1;if((r+=t[n+1])>=e)return!0}return!1}function h(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&u(e,r)))}function d(e,n){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&p.test(String.fromCharCode(e)):!1!==n&&(u(e,r)||u(e,t)))))}var f=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function m(e,t){return new f(e,{beforeExpr:!0,binop:t})}var y={beforeExpr:!0},g={startsExpr:!0},T={};function x(e,t){return void 0===t&&(t={}),t.keyword=e,T[e]=new f(e,t)}var b={num:new f("num",g),regexp:new f("regexp",g),string:new f("string",g),name:new f("name",g),privateId:new f("privateId",g),eof:new f("eof"),bracketL:new f("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new f("]"),braceL:new f("{",{beforeExpr:!0,startsExpr:!0}),braceR:new f("}"),parenL:new f("(",{beforeExpr:!0,startsExpr:!0}),parenR:new f(")"),comma:new f(",",y),semi:new f(";",y),colon:new f(":",y),dot:new f("."),question:new f("?",y),questionDot:new f("?."),arrow:new f("=>",y),template:new f("template"),invalidTemplate:new f("invalidTemplate"),ellipsis:new f("...",y),backQuote:new f("`",g),dollarBraceL:new f("${",{beforeExpr:!0,startsExpr:!0}),eq:new f("=",{beforeExpr:!0,isAssign:!0}),assign:new f("_=",{beforeExpr:!0,isAssign:!0}),incDec:new f("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new f("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:m("||",1),logicalAND:m("&&",2),bitwiseOR:m("|",3),bitwiseXOR:m("^",4),bitwiseAND:m("&",5),equality:m("==/!=/===/!==",6),relational:m("</>/<=/>=",7),bitShift:m("<</>>/>>>",8),plusMin:new f("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new f("**",{beforeExpr:!0}),coalesce:m("??",1),_break:x("break"),_case:x("case",y),_catch:x("catch"),_continue:x("continue"),_debugger:x("debugger"),_default:x("default",y),_do:x("do",{isLoop:!0,beforeExpr:!0}),_else:x("else",y),_finally:x("finally"),_for:x("for",{isLoop:!0}),_function:x("function",g),_if:x("if"),_return:x("return",y),_switch:x("switch"),_throw:x("throw",y),_try:x("try"),_var:x("var"),_const:x("const"),_while:x("while",{isLoop:!0}),_with:x("with"),_new:x("new",{beforeExpr:!0,startsExpr:!0}),_this:x("this",g),_super:x("super",g),_class:x("class",g),_extends:x("extends",y),_export:x("export"),_import:x("import",g),_null:x("null",g),_true:x("true",g),_false:x("false",g),_in:x("in",{beforeExpr:!0,binop:7}),_instanceof:x("instanceof",{beforeExpr:!0,binop:7}),_typeof:x("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:x("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:x("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},S=/\r\n?|\n|\u2028|\u2029/,v=new RegExp(S.source,"g");function E(e){return 10===e||13===e||8232===e||8233===e}function P(e,t,r){void 0===r&&(r=e.length);for(var n=t;n<r;n++){var i=e.charCodeAt(n);if(E(i))return n<r-1&&13===i&&10===e.charCodeAt(n+1)?n+2:n+1}return-1}var A=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,C=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,w=Object.prototype,_=w.hasOwnProperty,I=w.toString,k=Object.hasOwn||function(e,t){return _.call(e,t)},O=Array.isArray||function(e){return"[object Array]"===I.call(e)},N=Object.create(null);function L(e){return N[e]||(N[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function D(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var M=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,B=function(e,t){this.line=e,this.column=t};B.prototype.offset=function(e){return new B(this.line,this.column+e)};var F=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function j(e,t){for(var r=1,n=0;;){var i=P(e,n,t);if(i<0)return new B(r,t-n);++r,n=i}}var R={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},V=!1;function U(e){var t={};for(var r in R)t[r]=e&&k(e,r)?e[r]:R[r];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!V&&"object"==typeof console&&console.warn&&(V=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),O(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}return O(t.onComment)&&(t.onComment=K(t,t.onComment)),t}function K(e,t){return function(r,n,i,s,a,o){var l={type:r?"Block":"Line",value:n,start:i,end:s};e.locations&&(l.loc=new F(this,a,o)),e.ranges&&(l.range=[i,s]),t.push(l)}}var H=1,W=2,q=4,$=8,Y=16,J=32,X=64,z=128,G=256,Q=512,Z=H|W|G;function ee(e,t){return W|(e?q:0)|(t?$:0)}var te=0,re=1,ne=2,ie=3,se=4,ae=5,oe=function(e,t,r){this.options=e=U(e),this.sourceFile=e.sourceFile,this.keywords=L(o[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";!0!==e.allowReserved&&(n=s[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=L(n);var i=(n?n+" ":"")+s.strict;this.reservedWordsStrict=L(i),this.reservedWordsStrictBind=L(i+" "+s.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(S).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.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="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(H),this.regexpState=null,this.privateNameStack=[]},le={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};oe.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},le.inFunction.get=function(){return(this.currentVarScope().flags&W)>0},le.inGenerator.get=function(){return(this.currentVarScope().flags&$)>0},le.inAsync.get=function(){return(this.currentVarScope().flags&q)>0},le.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(G|Q))return!1;if(t&W)return(t&q)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},le.allowSuper.get=function(){return(this.currentThisScope().flags&X)>0||this.options.allowSuperOutsideMethod},le.allowDirectSuper.get=function(){return(this.currentThisScope().flags&z)>0},le.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},le.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(G|Q)||t&W&&!(t&Y))return!0}return!1},le.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&G)>0},oe.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},oe.parse=function(e,t){return new this(t,e).parse()},oe.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},oe.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(oe.prototype,le);var ce=oe.prototype,pe=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ce.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){C.lastIndex=e,e+=C.exec(this.input)[0].length;var t=pe.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){C.lastIndex=e+t[0].length;var r=C.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return";"===i||"}"===i||S.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(n+1))}e+=t[0].length,C.lastIndex=e,e+=C.exec(this.input)[0].length,";"===this.input[e]&&e++}},ce.eat=function(e){return this.type===e&&(this.next(),!0)},ce.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},ce.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},ce.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},ce.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||S.test(this.input.slice(this.lastTokEnd,this.start))},ce.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ce.semicolon=function(){this.eat(b.semi)||this.insertSemicolon()||this.unexpected()},ce.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},ce.expect=function(e){this.eat(e)||this.unexpected()},ce.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var ue=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ce.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}},ce.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},ce.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")},ce.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var he=oe.prototype;he.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==b.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var s=i[n];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var de={kind:"loop"},fe={kind:"switch"};he.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;C.lastIndex=this.pos;var t=C.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(91===n||92===n)return!0;if(e)return!1;if(123===n||n>55295&&n<56320)return!0;if(h(n,!0)){for(var i=r+1;d(n=this.input.charCodeAt(i),!0);)++i;if(92===n||n>55295&&n<56320)return!0;var s=this.input.slice(r,i);if(!l.test(s))return!0}return!1},he.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;C.lastIndex=this.pos;var e,t=C.exec(this.input),r=this.pos+t[0].length;return!(S.test(this.input.slice(this.pos,r))||"function"!==this.input.slice(r,r+8)||r+8!==this.input.length&&(d(e=this.input.charCodeAt(r+8))||e>55295&&e<56320))},he.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;C.lastIndex=this.pos;var r=C.exec(this.input),n=this.pos+r[0].length;if(S.test(this.input.slice(this.pos,n)))return!1;if(e){var i,s=n+5;if("using"!==this.input.slice(n,s)||s===this.input.length||d(i=this.input.charCodeAt(s))||i>55295&&i<56320)return!1;C.lastIndex=s;var a=C.exec(this.input);if(a&&S.test(this.input.slice(s,s+a[0].length)))return!1}if(t){var o,l=n+2;if(!("of"!==this.input.slice(n,l)||l!==this.input.length&&(d(o=this.input.charCodeAt(l))||o>55295&&o<56320)))return!1}var c=this.input.charCodeAt(n);return h(c,!0)||92===c},he.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},he.isUsing=function(e){return this.isUsingKeyword(!1,e)},he.parseStatement=function(e,t,r){var n,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=b._var,n="let"),i){case b._break:case b._continue:return this.parseBreakContinueStatement(s,i.keyword);case b._debugger:return this.parseDebuggerStatement(s);case b._do:return this.parseDoStatement(s);case b._for:return this.parseForStatement(s);case b._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(s,!0);case b._if:return this.parseIfStatement(s);case b._return:return this.parseReturnStatement(s);case b._switch:return this.parseSwitchStatement(s);case b._throw:return this.parseThrowStatement(s);case b._try:return this.parseTryStatement(s);case b._const:case b._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(s,n);case b._while:return this.parseWhileStatement(s);case b._with:return this.parseWithStatement(s);case b.braceL:return this.parseBlock(!0,s);case b.semi:return this.parseEmptyStatement(s);case b._export:case b._import:if(this.options.ecmaVersion>10&&i===b._import){C.lastIndex=this.pos;var a=C.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)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'")),i===b._import?this.parseImport(s):this.parseExport(s,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return t&&"script"===this.options.sourceType&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),"await using"===c&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(s,!1,c),this.semicolon(),this.finishNode(s,"VariableDeclaration");var p=this.value,u=this.parseExpression();return i===b.name&&"Identifier"===u.type&&this.eat(b.colon)?this.parseLabeledStatement(s,p,u,e):this.parseExpressionStatement(s,u)}},he.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type!==b.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(r||"loop"===i.kind))break;if(e.label&&r)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},he.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},he.parseDoStatement=function(e){return this.next(),this.labels.push(de),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},he.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(de),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===b._var||this.type===b._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),this.parseForAfterInit(e,n,t)}var s=this.isContextual("let"),a=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var l=this.startNode();return this.next(),"await using"===o&&this.next(),this.parseVar(l,!0,o),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var c=this.containsEsc,p=new ue,u=this.start,h=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===b._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===b._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(h.start!==u||c||"Identifier"!==h.type||"async"!==h.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),s&&a&&this.raise(h.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(h,!1,p),this.checkLValPattern(h),this.parseForIn(e,h)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,h))},he.parseForAfterInit=function(e,t,r){return(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===b._in?r>-1&&this.unexpected(r):e.await=r>-1),this.parseForIn(e,t)):(r>-1&&this.unexpected(r),this.parseFor(e,t))},he.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,ye|(r?0:ge),!1,t)},he.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(b._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},he.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},he.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(fe),this.enterScope(0);for(var r=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var n=this.type===b._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(b.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")},he.parseThrowStatement=function(e){return this.next(),S.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 me=[];he.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?J:0),this.checkLValPattern(e,t?se:ne),this.expect(b.parenR),e},he.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();this.next(),this.eat(b.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(b._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},he.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")},he.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(de),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},he.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")},he.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},he.parseLabeledStatement=function(e,t,r,n){for(var i=0,s=this.labels;i<s.length;i+=1)s[i].name===t&&this.raise(r.start,"Label '"+t+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===b._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},he.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},he.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},he.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},he.parseForIn=function(e,t){var r=this.type===b._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},he.parseVar=function(e,t,r,n){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(b.eq)?i.init=this.parseMaybeAssign(t):n||"const"!==r||this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n||"using"!==r&&"await using"!==r||!(this.options.ecmaVersion>=17)||this.type===b._in||this.isContextual("of")?n||"Identifier"===i.id.type||t&&(this.type===b._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+r+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(b.comma))break}return e},he.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?re:ne,!1)};var ye=1,ge=2,Te=4;function xe(e,t){var r=t.key.name,n=e[r],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===i||"iset"===n&&"iget"===i||"sget"===n&&"sset"===i||"sset"===n&&"sget"===i?(e[r]="true",!1):!!n||(e[r]=i,!1)}function be(e,t){var r=e.computed,n=e.key;return!r&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}he.parseFunction=function(e,t,r,n,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===b.star&&t&ge&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&ye&&(e.id=t&Te&&this.type!==b.name?null:this.parseIdent(),!e.id||t&ge||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?re:ne:ie));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ee(e.async,e.generator)),t&ye||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,i),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&ye?"FunctionDeclaration":"FunctionExpression")},he.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},he.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(b.braceL);this.type!==b.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(i.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&xe(n,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},he.parseClassElement=function(e){if(this.eat(b.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),n="",i=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===b.star?o=!0:n="static"}if(r.static=o,!n&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==b.star||this.canInsertSemicolon()?n="async":s=!0),!n&&(t>=9||!s)&&this.eat(b.star)&&(i=!0),!n&&!s&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:n=l)}if(n?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=n,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===b.parenL||"method"!==a||i||s){var c=!r.static&&be(r,"constructor"),p=c&&e;c&&"method"!==a&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=c?"constructor":a,this.parseClassMethod(r,i,s,p)}else this.parseClassField(r);return r},he.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},he.parseClassElementName=function(e){this.type===b.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},he.parseClassMethod=function(e,t,r,n){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),r&&this.raise(i.start,"Constructor can't be an async method")):e.static&&be(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,r,n);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},he.parseClassField=function(e){return be(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&be(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(b.eq)?(this.enterScope(Q|X),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},he.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(G|X);this.type!==b.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},he.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,ne,!1)):(!0===t&&this.unexpected(),e.id=null)},he.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},he.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},he.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,i=0===n?null:this.privateNameStack[n-1],s=0;s<r.length;++s){var a=r[s];k(t,a.name)||(i?i.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},he.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!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},he.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.parseExportAllDeclaration(e,t);if(this.eat(b._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?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!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var r=0,n=e.specifiers;r<n.length;r+=1){var i=n[r];this.checkUnreserved(i.local),this.checkLocalExport(i.local),"Literal"===i.local.type&&this.raise(i.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")},he.parseExportDeclaration=function(e){return this.parseStatement(null)},he.parseExportDefaultDeclaration=function(){var e;if(this.type===b._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,ye|Te,!1,e)}if(this.type===b._class){var r=this.startNode();return this.parseClass(r,"nullableID")}var n=this.parseMaybeAssign();return this.semicolon(),n},he.checkExport=function(e,t,r){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),k(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},he.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t,t.start);else if("ObjectPattern"===r)for(var n=0,i=t.properties;n<i.length;n+=1){var s=i[n];this.checkPatternExport(e,s)}else if("ArrayPattern"===r)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r&&this.checkPatternExport(e,t.argument)},he.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var i=n[r];this.checkPatternExport(e,i.id)}},he.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},he.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")},he.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;t.push(this.parseExportSpecifier(e))}return t},he.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=me,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},he.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,ne),this.finishNode(e,"ImportSpecifier")},he.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,ne),this.finishNode(e,"ImportDefaultSpecifier")},he.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,ne),this.finishNode(e,"ImportNamespaceSpecifier")},he.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(b.comma)))return e;if(this.type===b.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;e.push(this.parseImportSpecifier())}return e},he.parseWithClause=function(){var e=[];if(!this.eat(b._with))return e;this.expect(b.braceL);for(var t={},r=!0;!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var n=this.parseImportAttribute(),i="Identifier"===n.key.type?n.key.name:n.key.value;k(t,i)&&this.raiseRecoverable(n.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(n)}return e},he.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===b.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(b.colon),this.type!==b.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},he.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===b.string){var e=this.parseLiteral(this.value);return M.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},he.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)},he.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Se=oe.prototype;Se.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&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",r&&this.checkPatternErrors(r,!0);for(var n=0,i=e.properties;n<i.length;n+=1){var s=i[n];this.toAssignable(s,t),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&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,r);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 r&&this.checkPatternErrors(r,!0);return e},Se.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var i=e[n];i&&this.toAssignable(i,t)}if(r){var s=e[r-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},Se.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Se.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Se.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case b.braceL:return this.parseObj(!0)}return this.parseIdent()},Se.parseBindingList=function(e,t,r,n){for(var i=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(b.comma),t&&this.type===b.comma)i.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===b.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),i.push(a),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}i.push(this.parseAssignableListItem(n))}return i},Se.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},Se.parseBindingListItem=function(e){return e},Se.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},Se.checkLValSimple=function(e,t,r){void 0===t&&(t=te);var n=t!==te;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===ne&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(k(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==ae&&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,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},Se.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=te),e.type){case"ObjectPattern":for(var n=0,i=e.properties;n<i.length;n+=1){var s=i[n];this.checkLValInnerPattern(s,t,r)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,r)}break;default:this.checkLValSimple(e,t,r)}},Se.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=te),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var ve=function(e,t,r,n,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!i},Ee={b_stat:new ve("{",!1),b_expr:new ve("{",!0),b_tmpl:new ve("${",!1),p_stat:new ve("(",!1),p_expr:new ve("(",!0),q_tmpl:new ve("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new ve("function",!1),f_expr:new ve("function",!0),f_expr_gen:new ve("function",!0,!1,null,!0),f_gen:new ve("function",!1,!1,null,!0)},Pe=oe.prototype;Pe.initialContext=function(){return[Ee.b_stat]},Pe.curContext=function(){return this.context[this.context.length-1]},Pe.braceIsBlock=function(e){var t=this.curContext();return t===Ee.f_expr||t===Ee.f_stat||(e!==b.colon||t!==Ee.b_stat&&t!==Ee.b_expr?e===b._return||e===b.name&&this.exprAllowed?S.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow||(e===b.braceL?t===Ee.b_stat:e!==b._var&&e!==b._const&&e!==b.name&&!this.exprAllowed):!t.isExpr)},Pe.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Pe.updateContext=function(e){var t,r=this.type;r.keyword&&e===b.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},Pe.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},b.parenR.updateContext=b.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===Ee.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Ee.b_stat:Ee.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(Ee.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?Ee.p_stat:Ee.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){!e.beforeExpr||e===b._else||e===b.semi&&this.curContext()!==Ee.p_stat||e===b._return&&S.test(this.input.slice(this.lastTokEnd,this.start))||(e===b.colon||e===b.braceL)&&this.curContext()===Ee.b_stat?this.context.push(Ee.f_stat):this.context.push(Ee.f_expr),this.exprAllowed=!1},b.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},b.backQuote.updateContext=function(){this.curContext()===Ee.q_tmpl?this.context.pop():this.context.push(Ee.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===Ee.f_expr?this.context[t]=Ee.f_expr_gen:this.context[t]=Ee.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Ae=oe.prototype;function Ce(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&Ce(e.expression)}function we(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&we(e.expression)||"ParenthesizedExpression"===e.type&&we(e.expression)}Ae.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,i=e.key;switch(i.type){case"Identifier":n=i.name;break;case"Literal":n=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===n&&"init"===s&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var a=t[n="$"+n];a?("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(i.start,"Redefinition of property"):a=t[n]={init:!1,get:!1,set:!1},a[s]=!0}}},Ae.parseExpression=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===b.comma){var s=this.startNodeAt(r,n);for(s.expressions=[i];this.eat(b.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i},Ae.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,i=-1,s=-1,a=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ue,n=!0);var o=this.start,l=this.startLoc;this.type!==b.parenL&&this.type!==b.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(r&&(c=r.call(this,c,o,l)),this.type.isAssign){var p=this.startNodeAt(o,l);return p.operator=this.value,this.type===b.eq&&(c=this.toAssignable(c,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===b.eq?this.checkLValPattern(c):this.checkLValSimple(c),p.left=c,this.next(),p.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(p,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),c},Ae.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(b.question)){var s=this.startNodeAt(r,n);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(b.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},Ae.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===r&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,r,n,-1,e)},Ae.parseExprOp=function(e,t,r,n,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==b._in)&&s>n){var a=this.type===b.logicalOR||this.type===b.logicalAND,o=this.type===b.coalesce;o&&(s=b.logicalAND.binop);var l=this.value;this.next();var c=this.start,p=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),c,p,s,i),h=this.buildBinary(t,r,e,u,l,a||o);return(a&&this.type===b.coalesce||o&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(h,t,r,n,i)}return e},Ae.buildBinary=function(e,t,r,n,i,s){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=r,a.operator=i,a.right=n,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},Ae.parseMaybeUnary=function(e,t,r,n){var i,s=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(n),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===b.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,n),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&Ce(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&we(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==b.privateId){if(i=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(s,a);c.operator=this.value,c.prefix=!1,c.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(c,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==b._in&&this.unexpected();return r||!this.eat(b.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,i,this.parseMaybeUnary(null,!1,!1,n),"**",!1)},Ae.parseExprSubscripts=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var s=this.parseSubscripts(i,r,n,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},Ae.parseSubscripts=function(e,t,r,n,i){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,r,n,s,a,i);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,r);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},Ae.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(b.arrow)},Ae.parseSubscriptAsyncArrow=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,n)},Ae.parseSubscript=function(e,t,r,n,i,s,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(b.questionDot);n&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(b.bracketL);if(c||l&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var p=this.startNodeAt(t,r);p.object=e,c?(p.property=this.parseExpression(),this.expect(b.bracketR)):this.type===b.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!c,o&&(p.optional=l),e=this.finishNode(p,"MemberExpression")}else if(!n&&this.eat(b.parenL)){var u=new ue,h=this.yieldPos,d=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=d,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,r,m,a);this.checkExpressionErrors(u,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var y=this.startNodeAt(t,r);y.callee=e,y.arguments=m,o&&(y.optional=l),e=this.finishNode(y,"CallExpression")}else if(this.type===b.backQuote){(l||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var g=this.startNodeAt(t,r);g.tag=e,g.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(g,"TaggedTemplateExpression")}return e},Ae.parseExprAtom=function(e,t,r){this.type===b.slash&&this.readRegexp();var n,i=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type!==b.parenL||this.allowDirectSuper||this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(n,"Super");case b._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case b.name:var s=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(Ee.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===b.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(b.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[l],!0,t)}return l;case b.regexp:var c=this.value;return(n=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},n;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return(n=this.startNode()).value=this.type===b._null?null:this.type===b._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case b.parenL:var p=this.start,u=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),u;case b.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case b.braceL:return this.overrideContext(Ee.b_expr),this.parseObj(!1,e);case b._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}},Ae.parseExprAtomDefault=function(){this.unexpected()},Ae.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===b.parenL&&!e)return this.parseDynamicImport(t);if(this.type===b.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}this.unexpected()},Ae.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(b.parenR)?e.options=null:(this.expect(b.comma),this.afterTrailingComma(b.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(b.parenR)||(this.expect(b.comma),this.afterTrailingComma(b.parenR)||this.unexpected())));else if(!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},Ae.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&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"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},Ae.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},Ae.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},Ae.shouldParseArrow=function(e){return!this.canInsertSemicolon()},Ae.parseParenAndDistinguishExpression=function(e,t){var r,n=this.start,i=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,c=[],p=!0,u=!1,h=new ue,d=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(p?p=!1:this.expect(b.comma),s&&this.afterTrailingComma(b.parenR,!0)){u=!0;break}if(this.type===b.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var m=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(b.parenR),e&&this.shouldParseArrow(c)&&this.eat(b.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(n,i,c,t);c.length&&!u||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,c.length>1?((r=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(r,"SequenceExpression",m,y)):r=c[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,i);return g.expression=r,this.finishNode(g,"ParenthesizedExpression")}return r},Ae.parseParenItem=function(e){return e},Ae.parseParenArrowList=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,n)};var _e=[];Ae.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===b.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&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,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,i,!0,!1),this.eat(b.parenL)?e.arguments=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):e.arguments=_e,this.finishNode(e,"NewExpression")},Ae.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===b.backQuote,this.finishNode(r,"TemplateElement")},Ae.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===b.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(b.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(b.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},Ae.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!S.test(this.input.slice(this.lastTokEnd,this.start))},Ae.parseObj=function(e,t){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),r.properties.push(s)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},Ae.parseProperty=function(e,t){var r,n,i,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(r=this.eat(b.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(a)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(a)):n=!1,this.parsePropertyValue(a,e,r,n,i,s,t,o),this.finishNode(a,"Property")},Ae.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var r="get"===e.kind?0:1;if(e.value.params.length!==r){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},Ae.parsePropertyValue=function(e,t,r,n,i,s,a,o){(r||n)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===b.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(r,n),e.kind="init"):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===b.comma||this.type===b.braceR||this.type===b.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key)):this.type===b.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((r||n)&&this.unexpected(),this.parseGetterSetter(e))},Ae.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Ae.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Ae.parseMethod=function(e,t,r){var n=this.startNode(),i=this.yieldPos,s=this.awaitPos,a=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(ee(t,n.generator)|X|(r?z:0)),this.expect(b.parenL),n.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")},Ae.parseArrowExpression=function(e,t,r,n){var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(ee(r,!1)|Y),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},Ae.parseFunctionBody=function(e,t,r,n){var i=t&&this.type!==b.braceL,s=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);s&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,ae),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},Ae.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1)if("Identifier"!==r[t].type)return!1;return!0},Ae.checkParams=function(e,t){for(var r=Object.create(null),n=0,i=e.params;n<i.length;n+=1){var s=i[n];this.checkLValInnerPattern(s,re,t?null:r)}},Ae.parseExprList=function(e,t,r,n){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var a=void 0;r&&this.type===b.comma?a=null:this.type===b.ellipsis?(a=this.parseSpread(n),n&&this.type===b.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):a=this.parseMaybeAssign(!1,n),i.push(a)}return i},Ae.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&Z||"arguments"!==n||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==n&&"await"!==n||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&&-1!==this.input.slice(t,r).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},Ae.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},Ae.parseIdentNode=function(){var e=this.startNode();return this.type===b.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=b.name):this.unexpected(),e},Ae.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?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},Ae.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},Ae.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 Ie=oe.prototype;Ie.raise=function(e,t){var r=j(this.input,e);t+=" ("+r.line+":"+r.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},Ie.raiseRecoverable=Ie.raise,Ie.curPosition=function(){if(this.options.locations)return new B(this.curLine,this.pos-this.lineStart)};var ke=oe.prototype,Oe=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};ke.enterScope=function(e){this.scopeStack.push(new Oe(e))},ke.exitScope=function(){this.scopeStack.pop()},ke.treatFunctionsAsVarInScope=function(e){return e.flags&W||!this.inModule&&e.flags&H},ke.declareName=function(e,t,r){var n=!1;if(t===ne){var i=this.currentScope();n=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&H&&delete this.undefinedExports[e]}else if(t===se)this.currentScope().lexical.push(e);else if(t===ie){var s=this.currentScope();n=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(o.flags&J&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){n=!0;break}if(o.var.push(e),this.inModule&&o.flags&H&&delete this.undefinedExports[e],o.flags&Z)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},ke.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ke.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ke.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Z|Q|G))return t}},ke.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Z|Q|G)&&!(t.flags&Y))return t}};var Ne=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new F(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Le=oe.prototype;function De(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}Le.startNode=function(){return new Ne(this,this.start,this.startLoc)},Le.startNodeAt=function(e,t){return new Ne(this,e,t)},Le.finishNode=function(e,t){return De.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Le.finishNodeAt=function(e,t,r,n){return De.call(this,e,t,r,n)},Le.copyNode=function(e){var t=new Ne(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var Me="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",Be=Me+" Extended_Pictographic",Fe=Be+" EBase EComp EMod EPres ExtPict",je={9:Me,10:Be,11:Be,12:Fe,13:Fe,14:Fe},Re={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Ve="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",Ue="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",Ke=Ue+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",He=Ke+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",We=He+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",qe=We+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",$e={9:Ue,10:Ke,11:He,12:We,13:qe,14:qe+" Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz"},Ye={};function Je(e){var t=Ye[e]={binary:L(je[e]+" "+Ve),binaryOfStrings:L(Re[e]),nonBinary:{General_Category:L(Ve),Script:L($e[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(var Xe=0,ze=[9,10,11,12,13,14];Xe<ze.length;Xe+=1)Je(ze[Xe]);var Ge=oe.prototype,Qe=function(e,t){this.parent=e,this.base=t||this};Qe.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var r=e;r;r=r.parent)if(t.base===r.base&&t!==r)return!0;return!1},Qe.prototype.sibling=function(){return new Qe(this.parent,this.base)};var Ze=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ye[e.options.ecmaVersion>=14?14:e.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};function et(e){for(var t in e)return!0;return!1}function tt(e){return 105===e||109===e||115===e}function rt(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function nt(e){return h(e,!0)||36===e||95===e}function it(e){return d(e,!0)||36===e||95===e||8204===e||8205===e}function st(e){return e>=65&&e<=90||e>=97&&e<=122}function at(e){return e>=0&&e<=1114111}Ze.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("v"),i=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},Ze.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Ze.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var i=r.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=n)return i;var s=r.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-56613888:i},Ze.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var i,s=r.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=n||(i=r.charCodeAt(e+1))<56320||i>57343?e+1:e+2},Ze.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Ze.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ze.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ze.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Ze.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var r=this.pos,n=0,i=e;n<i.length;n+=1){var s=i[n],a=this.at(r,t);if(-1===a||a!==s)return!1;r=this.nextIndex(r,t)}return this.pos=r,!0},Ge.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=!1,i=!1,s=0;s<r.length;s++){var a=r.charAt(s);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(a,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(n=!0),"v"===a&&(i=!0)}this.options.ecmaVersion>=15&&n&&i&&this.raise(e.start,"Invalid regular expression flag")},Ge.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&et(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},Ge.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,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];e.groupNames[n]||e.raise("Invalid named capture referenced")}},Ge.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Qe(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")},Ge.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Ge.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)},Ge.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 r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},Ge.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Ge.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Ge.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},Ge.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)},Ge.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Ge.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var r=this.regexp_eatModifiers(e),n=e.eat(45);if(r||n){for(var i=0;i<r.length;i++){var s=r.charAt(i);r.indexOf(s,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(n){var a=this.regexp_eatModifiers(e);r||a||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var l=a.charAt(o);(a.indexOf(l,o+1)>-1||r.indexOf(l)>-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},Ge.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Ge.regexp_eatModifiers=function(e){for(var t="",r=0;-1!==(r=e.current())&&tt(r);)t+=D(r),e.advance();return t},Ge.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)},Ge.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Ge.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!rt(t)&&(e.lastIntValue=t,e.advance(),!0)},Ge.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;-1!==(r=e.current())&&!rt(r);)e.advance();return e.pos!==t},Ge.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Ge.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,r=e.groupNames[e.lastStringValue];if(r)if(t)for(var n=0,i=r;n<i.length;n+=1)i[n].separatedFrom(e.branchID)||e.raise("Duplicate capture group name");else e.raise("Duplicate capture group name");t?(r||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},Ge.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},Ge.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=D(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=D(e.lastIntValue);return!0}return!1},Ge.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),nt(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Ge.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),it(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Ge.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Ge.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},Ge.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},Ge.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)},Ge.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Ge.regexp_eatZero=function(e){return 48===e.current()&&!yt(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Ge.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Ge.regexp_eatControlLetter=function(e){var t=e.current();return!!st(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Ge.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(n&&i>=55296&&i<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(i-55296)+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=i}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&at(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=r}return!1},Ge.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Ge.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 ot=0,lt=1,ct=2;function pt(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function ut(e){return st(e)||95===e}function ht(e){return ut(e)||yt(e)}function dt(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}function ft(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}function mt(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}function yt(e){return e>=48&&e<=57}function gt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Tt(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function xt(e){return e>=48&&e<=55}Ge.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(pt(t))return e.lastIntValue=-1,e.advance(),lt;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=80===t)||112===t)){var n;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&n===ct&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return ot},Ge.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),lt}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return ot},Ge.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){k(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},Ge.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?lt:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?ct:void e.raise("Invalid property name")},Ge.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";ut(t=e.current());)e.lastStringValue+=D(t),e.advance();return""!==e.lastStringValue},Ge.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";ht(t=e.current());)e.lastStringValue+=D(t),e.advance();return""!==e.lastStringValue},Ge.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Ge.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&r===ct&&e.raise("Negated character class may contain strings"),!0}return!1},Ge.regexp_classContents=function(e){return 93===e.current()?lt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),lt)},Ge.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},Ge.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||xt(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},Ge.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)},Ge.regexp_classSetExpression=function(e){var t,r=lt;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){t===ct&&(r=ct);for(var n=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?t!==ct&&(r=lt):e.raise("Invalid character in character class");if(n!==e.pos)return r;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(n!==e.pos)return r}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return r;t===ct&&(r=ct)}},Ge.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;return-1!==r&&-1!==n&&r>n&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Ge.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?lt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Ge.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),n=this.regexp_classContents(e);if(e.eat(93))return r&&n===ct&&e.raise("Negated character class may contain strings"),n;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},Ge.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null},Ge.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===ct&&(t=ct);return t},Ge.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?lt:ct},Ge.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e)&&(e.eat(98)?(e.lastIntValue=8,0):(e.pos=t,1)));var r=e.current();return!(r<0||r===e.lookahead()&&dt(r)||ft(r)||(e.advance(),e.lastIntValue=r,0))},Ge.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!mt(t)&&(e.lastIntValue=t,e.advance(),!0)},Ge.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!yt(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Ge.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},Ge.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;yt(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},Ge.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;gt(r=e.current());)e.lastIntValue=16*e.lastIntValue+Tt(r),e.advance();return e.pos!==t},Ge.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},Ge.regexp_eatOctalDigit=function(e){var t=e.current();return xt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Ge.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var i=e.current();if(!gt(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+Tt(i),e.advance()}return!0};var bt=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new F(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},St=oe.prototype;function vt(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Et(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}St.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 bt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},St.getToken=function(){return this.next(),new bt(this)},"undefined"!=typeof Symbol&&(St[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),St.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(b.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},St.readToken=function(e){return h(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},St.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},St.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var n=void 0,i=t;(n=P(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())},St.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!E(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},St.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:10===this.input.charCodeAt(this.pos+1)&&++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&&A.test(String.fromCharCode(e))))break e;++this.pos}}},St.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},St.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&&46===e&&46===t?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},St.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},St.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?b.star:b.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=b.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(b.assign,r+1):this.finishOp(n,r)},St.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(b.assign,3):this.finishOp(124===e?b.logicalOR:b.logicalAND,2):61===t?this.finishOp(b.assign,2):this.finishOp(124===e?b.bitwiseOR:b.bitwiseAND,1)},St.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},St.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!S.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(b.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},St.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(b.assign,r+1):this.finishOp(b.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(b.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},St.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(b.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(61===e?b.eq:b.prefix,1)},St.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(b.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},St.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,h(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+D(e)+"'")},St.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)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(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+D(e)+"'")},St.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},St.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(S.test(n)&&this.raise(r,"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 i=this.input.slice(r,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new Ze(this));o.reset(r,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(i,a)}catch(e){}return this.finishToken(b.regexp,{pattern:i,flags:a,value:l})},St.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,i=r&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,l=0,c=null==t?1/0:t;l<c;++l,++this.pos){var p=this.input.charCodeAt(this.pos),u=void 0;if(n&&95===p)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=p;else{if((u=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,a=a*e+u}}return n&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:a},St.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=Et(this.input.slice(t,this.pos)),++this.pos):h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,r)},St.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===n){var i=Et(this.input.slice(t,this.pos));return++this.pos,h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,i)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),46!==n||r||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=vt(this.input.slice(t,this.pos),r);return this.finishToken(b.num,s)},St.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},St.readString=function(e){for(var t="",r=++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;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(E(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(b.string,t)};var Pt={};St.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Pt)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},St.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Pt;this.raise(e,t)},St.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==b.template&&this.type!==b.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e)):36===r?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(E(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},St.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(b.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},St.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return D(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++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 r=this.pos-1;this.invalidStringToken(r,"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],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return E(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},St.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},St.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(d(i,n))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?h:d)(a,n)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=D(a),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},St.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=T[e]),this.finishToken(t,e)};var At="8.15.0";function Ct(e,t){return oe.parse(e,t)}function wt(e,t,r){return oe.parseExpressionAt(e,t,r)}function _t(e,t){return oe.tokenizer(e,t)}oe.acorn={Parser:oe,version:At,defaultOptions:R,Position:B,SourceLocation:F,getLineInfo:j,Node:Ne,TokenType:f,tokTypes:b,keywordTypes:T,TokContext:ve,tokContexts:Ee,isIdentifierChar:d,isIdentifierStart:h,Token:bt,isNewLine:E,lineBreak:S,lineBreakG:v,nonASCIIwhitespace:A},e.Node=Ne,e.Parser=oe,e.Position=B,e.SourceLocation=F,e.TokContext=ve,e.Token=bt,e.TokenType=f,e.defaultOptions=R,e.getLineInfo=j,e.isIdentifierChar=d,e.isIdentifierStart=h,e.isNewLine=E,e.keywordTypes=T,e.lineBreak=S,e.lineBreakG=v,e.nonASCIIwhitespace=A,e.parse=Ct,e.parseExpressionAt=wt,e.tokContexts=Ee,e.tokTypes=b,e.tokenizer=_t,e.version=At}(M.exports)),M.exports}function F(){return D||(D=1,function(t){var r=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,l=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var l,c=s(t),p=0,u=c.length;p<u;p++)l=c[p],o.call(e,l)||l===r||n(e,l,{get:(e=>t[e]).bind(null,l),enumerable:!(a=i(t,l))||a.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e));const c=l(e),p=l(N()),u=l(B());function h(e){return e=e||[],Array.isArray(e)?e:[e]}const d=/\\/g;function f(e){return e.replace(d,"/")}const m=/^(?:\/|(?:[A-Z]:)?[/\\|])/i;function y(e,t){if(e.startsWith("**")||function(e){return m.test(e)}(e))return f(e);return f((0,c.resolve)(t,e))}function g(e){if(e instanceof RegExp)return t=>{const r=f(t),n=e.test(r);return e.lastIndex=0,n};const t=process.cwd(),r=y(e,t),n=(0,p.default)(r,{dot:!0});return e=>{const t=f(e);return n(t)}}function T(e){return e instanceof RegExp?t=>{const r=e.test(t);return e.lastIndex=0,r}:t=>t.includes(e)}function x(e,t){if(e||t)return r=>!e?.some(e=>e(r))&&(!!t?.some(e=>e(r))||!(t&&t.length>0))}function b(e){return"string"==typeof e||e instanceof RegExp?{include:[e]}:Array.isArray(e)?{include:e}:{exclude:e.exclude?h(e.exclude):void 0,include:e.include?h(e.include):void 0}}function S(e){if(!e)return;const{exclude:t,include:r}=b(e),n=t?.map(g),i=r?.map(g);return x(n,i)}function v(e,t){if(!e&&!t)return;const r=S(e),n=function(e){if(!e)return;const{exclude:t,include:r}=b(e),n=t?.map(T),i=r?.map(T);return x(n,i)}(t);return(e,t)=>{let i=!0;return r&&(i&&=r(e)),!!i&&(n&&(i&&=n(t)),i)}}function E(e,t){let r,n;if("function"==typeof t)r=t;else{r=t.handler;const i=t.filter;n="resolveId"===e||"load"===e?function(e){const t=S(e);return t?e=>!!t(e):void 0}(i?.id):v(i?.id,i?.code)}return{handler:r,filter:n||(()=>!0)}}function P(e,t={}){return u.Parser.parse(e,{sourceType:"module",ecmaVersion:"latest",locations:!0,...t})}Object.defineProperty(t,"__toESM",{enumerable:!0,get:function(){return l}}),Object.defineProperty(t,"normalizeObjectHook",{enumerable:!0,get:function(){return E}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return P}}),Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return h}})}(A)),A}var j,R={};function V(){return j||(j=1,function(t){const r=F(),n=r.__toESM(e);function i(e,t,n){if(null==e.resource)return[];const i=s(e.resource+(e.resourceQuery||""));if(t.transformInclude&&!t.transformInclude(i))return[];const{filter:a}=r.normalizeObjectHook("load",t.transform);return a(i)?[{loader:n,options:{plugin:t},ident:t.name}]:[]}function s(e){return(0,n.isAbsolute)(e)?(0,n.normalize)(e):e}Object.defineProperty(t,"normalizeAbsolutePath",{enumerable:!0,get:function(){return s}}),Object.defineProperty(t,"transformUse",{enumerable:!0,get:function(){return i}})}(R)),R}var U,K={};function H(){return U||(U=1,function(r){const n=F(),i=n.__toESM(e),s=n.__toESM(t);function a(e,t,r){return{getNativeBuildContext:()=>({framework:"rspack",compiler:e,compilation:t,loaderContext:r}),addWatchFile(e){const r=process.cwd();t.fileDependencies.add((0,i.resolve)(r,e))},getWatchFiles:()=>Array.from(t.fileDependencies),parse:n.parse,emitFile(e){const r=e.fileName||e.name;if(e.source&&r){const{sources:n}=t.compiler.webpack;t.emitAsset(r,new n.RawSource("string"==typeof e.source?e.source:s.Buffer.from(e.source)))}}}}function o(e){return{error:t=>e.emitError(l(t)),warn:t=>e.emitWarning(l(t))}}function l(e){const t=new Error("string"==typeof e?e:e.message);return"object"==typeof e&&(t.stack=e.stack,t.cause=e.meta),t}Object.defineProperty(r,"createBuildContext",{enumerable:!0,get:function(){return a}}),Object.defineProperty(r,"createContext",{enumerable:!0,get:function(){return o}}),Object.defineProperty(r,"normalizeMessage",{enumerable:!0,get:function(){return l}})}(K)),K}var W,q={};function $(){return W||(W=1,function(t){const n=F(),i=n.__toESM(r),s=n.__toESM(e);function a(e,t){return(0,s.resolve)(t.__virtualModulePrefix,encodeURIComponent(e))}function o(e,t){return decodeURIComponent((0,s.basename)(e))}function l(e,t){return(0,s.dirname)(e)===t.__virtualModulePrefix}var c=class e{name="FakeVirtualModulesPlugin";static counters=new Map;static initCleanup=!1;constructor(t){this.plugin=t,e.initCleanup||(e.initCleanup=!0,process.once("exit",()=>{e.counters.forEach((e,t)=>{i.default.rmSync(t,{recursive:!0,force:!0})})}))}apply(t){const r=this.plugin.__virtualModulePrefix;i.default.existsSync(r)||i.default.mkdirSync(r,{recursive:!0});const n=e.counters.get(r)??0;e.counters.set(r,n+1),t.hooks.shutdown.tap(this.name,()=>{const t=(e.counters.get(r)??1)-1;0===t?(e.counters.delete(r),i.default.rmSync(r,{recursive:!0,force:!0})):e.counters.set(r,t)})}async writeModule(e){return i.default.promises.writeFile(e,"")}};Object.defineProperty(t,"FakeVirtualModulesPlugin",{enumerable:!0,get:function(){return c}}),Object.defineProperty(t,"decodeVirtualModuleId",{enumerable:!0,get:function(){return o}}),Object.defineProperty(t,"encodeVirtualModuleId",{enumerable:!0,get:function(){return a}}),Object.defineProperty(t,"isVirtualModuleId",{enumerable:!0,get:function(){return l}})}(q)),q}var Y,J={};function X(){return Y||(Y=1,function(r){const a=F(),o=a.__toESM(e),l=a.__toESM(t),c=a.__toESM(n);function p(e){return{addWatchFile(t){(e.fileDependencies??e.compilationDependencies).add(t)},getWatchFiles:()=>Array.from(e.fileDependencies??e.compilationDependencies)}}const u=(0,a.__toESM(i).createRequire)(s.pathToFileURL(__filename).href);function h(e,t,r,n){return{parse:a.parse,addWatchFile(t){e.addWatchFile((0,o.resolve)(c.default.cwd(),t))},emitFile(e){const t=e.fileName||e.name;if(e.source&&t){if(!r)throw new Error("unplugin/webpack: emitFile outside supported hooks (buildStart, buildEnd, load, transform, watchChange)");r.emitAsset(t,(n=e.source,new(u("webpack").sources.RawSource)("string"==typeof n?n:l.Buffer.from(n.buffer))))}var n},getWatchFiles:()=>e.getWatchFiles(),getNativeBuildContext:()=>({framework:"webpack",compiler:t,compilation:r,loaderContext:n})}}function d(e){return{error:t=>e.emitError(f(t)),warn:t=>e.emitWarning(f(t))}}function f(e){const t=new Error("string"==typeof e?e:e.message);return"object"==typeof e&&(t.stack=e.stack,t.cause=e.meta),t}Object.defineProperty(r,"contextOptionsFromCompilation",{enumerable:!0,get:function(){return p}}),Object.defineProperty(r,"createBuildContext",{enumerable:!0,get:function(){return h}}),Object.defineProperty(r,"createContext",{enumerable:!0,get:function(){return d}}),Object.defineProperty(r,"normalizeMessage",{enumerable:!0,get:function(){return f}})}(J)),J}var z,G={exports:{}},Q={exports:{}},Z={exports:{}};function ee(){return z||(z=1,function(e){var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,s=(e,s,a,o)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let l of n(s))i.call(e,l)||l===a||t(e,l,{get:()=>s[l],enumerable:!(o=r(s,l))||o.enumerable});return e},a=e=>s(t({},"__esModule",{value:!0}),e),o={};((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(o,{decode:()=>_,decodeGeneratedRanges:()=>P,decodeOriginalScopes:()=>S,encode:()=>O,encodeGeneratedRanges:()=>A,encodeOriginalScopes:()=>v}),e.exports=a(o);var l=",".charCodeAt(0),c=";".charCodeAt(0),p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=new Uint8Array(64),h=new Uint8Array(128);for(let e=0;e<p.length;e++){const t=p.charCodeAt(e);u[e]=t,h[t]=e}function d(e,t){let r=0,n=0,i=0;do{const t=e.next();i=h[t],r|=(31&i)<<n,n+=5}while(32&i);const s=1&r;return r>>>=1,s&&(r=-2147483648|-r),t+r}function f(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let t=31&n;n>>>=5,n>0&&(t|=32),e.write(u[t])}while(n>0);return t}function m(e,t){return!(e.pos>=t)&&e.peek()!==l}var y=16384,g="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},T=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(y)}write(e){const{buffer:t}=this;t[this.pos++]=e,this.pos===y&&(this.out+=g.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:r}=this;return r>0?t+g.decode(e.subarray(0,r)):t}},x=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,n=t.indexOf(e,r);return-1===n?t.length:n}},b=[];function S(e){const{length:t}=e,r=new x(e),n=[],i=[];let s=0;for(;r.pos<t;r.pos++){s=d(r,s);const e=d(r,0);if(!m(r,t)){const t=i.pop();t[2]=s,t[3]=e;continue}const a=d(r,0),o=1&d(r,0)?[s,e,0,0,a,d(r,0)]:[s,e,0,0,a];let l=b;if(m(r,t)){l=[];do{const e=d(r,0);l.push(e)}while(m(r,t))}o.vars=l,n.push(o),i.push(o)}return n}function v(e){const t=new T;for(let r=0;r<e.length;)r=E(e,r,t,[0]);return t.flush()}function E(e,t,r,n){const i=e[t],{0:s,1:a,2:o,3:c,4:p,vars:u}=i;t>0&&r.write(l),n[0]=f(r,s,n[0]),f(r,a,0),f(r,p,0),f(r,6===i.length?1:0,0),6===i.length&&f(r,i[5],0);for(const e of u)f(r,e,0);for(t++;t<e.length;){const i=e[t],{0:s,1:a}=i;if(s>o||s===o&&a>=c)break;t=E(e,t,r,n)}return r.write(l),n[0]=f(r,o,n[0]),f(r,c,0),t}function P(e){const{length:t}=e,r=new x(e),n=[],i=[];let s=0,a=0,o=0,l=0,c=0,p=0,u=0,h=0;do{const e=r.indexOf(";");let t=0;for(;r.pos<e;r.pos++){if(t=d(r,t),!m(r,e)){const e=i.pop();e[2]=s,e[3]=t;continue}const f=d(r,0),y=2&f,g=4&f;let T,x=null,S=b;if(1&f){const e=d(r,a);o=d(r,a===e?o:0),a=e,T=[s,t,0,0,e,o]}else T=[s,t,0,0];if(T.isScope=!!g,y){const e=l,t=c;l=d(r,l);const n=e===l;c=d(r,n?c:0),p=d(r,n&&t===c?p:0),x=[l,c,p]}if(T.callsite=x,m(r,e)){S=[];do{u=s,h=t;const e=d(r,0);let n;if(e<-1){n=[[d(r,0)]];for(let t=-1;t>e;t--){const e=u;u=d(r,u),h=d(r,u===e?h:0);const t=d(r,0);n.push([t,u,h])}}else n=[[e]];S.push(n)}while(m(r,e))}T.bindings=S,n.push(T),i.push(T)}s++,r.pos=e+1}while(r.pos<t);return n}function A(e){if(0===e.length)return"";const t=new T;for(let r=0;r<e.length;)r=C(e,r,t,[0,0,0,0,0,0,0]);return t.flush()}function C(e,t,r,n){const i=e[t],{0:s,1:a,2:o,3:c,isScope:p,callsite:u,bindings:h}=i;if(n[0]<s?(w(r,n[0],s),n[0]=s,n[1]=0):t>0&&r.write(l),n[1]=f(r,i[1],n[1]),f(r,(6===i.length?1:0)|(u?2:0)|(p?4:0),0),6===i.length){const{4:e,5:t}=i;e!==n[2]&&(n[3]=0),n[2]=f(r,e,n[2]),n[3]=f(r,t,n[3])}if(u){const{0:e,1:t,2:s}=i.callsite;e!==n[4]?(n[5]=0,n[6]=0):t!==n[5]&&(n[6]=0),n[4]=f(r,e,n[4]),n[5]=f(r,t,n[5]),n[6]=f(r,s,n[6])}if(h)for(const e of h){e.length>1&&f(r,-e.length,0),f(r,e[0][0],0);let t=s,n=a;for(let i=1;i<e.length;i++){const s=e[i];t=f(r,s[1],t),n=f(r,s[2],n),f(r,s[0],0)}}for(t++;t<e.length;){const i=e[t],{0:s,1:a}=i;if(s>o||s===o&&a>=c)break;t=C(e,t,r,n)}return n[0]<o?(w(r,n[0],o),n[0]=o,n[1]=0):r.write(l),n[1]=f(r,c,n[1]),t}function w(e,t,r){do{e.write(c)}while(++t<r)}function _(e){const{length:t}=e,r=new x(e),n=[];let i=0,s=0,a=0,o=0,l=0;do{const e=r.indexOf(";"),t=[];let c=!0,p=0;for(i=0;r.pos<e;){let n;i=d(r,i),i<p&&(c=!1),p=i,m(r,e)?(s=d(r,s),a=d(r,a),o=d(r,o),m(r,e)?(l=d(r,l),n=[i,s,a,o,l]):n=[i,s,a,o]):n=[i],t.push(n),r.pos++}c||I(t),n.push(t),r.pos=e+1}while(r.pos<=t);return n}function I(e){e.sort(k)}function k(e,t){return e[0]-t[0]}function O(e){const t=new T;let r=0,n=0,i=0,s=0;for(let a=0;a<e.length;a++){const o=e[a];if(a>0&&t.write(c),0===o.length)continue;let p=0;for(let e=0;e<o.length;e++){const a=o[e];e>0&&t.write(l),p=f(t,a[0],p),1!==a.length&&(r=f(t,a[1],r),n=f(t,a[2],n),i=f(t,a[3],i),4!==a.length&&(s=f(t,a[4],s)))}}return t.flush()}}(e=Z),e.exports="default"in(t=e).exports?t.exports.default:t.exports),Z.exports;var e,t}var te,re={exports:{}},ne={exports:{}};function ie(){return te||(te=1,ne.exports=function(){const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function n(t){return e.test(t)}function i(e){return e.startsWith("//")}function s(e){return e.startsWith("/")}function a(e){return e.startsWith("file:")}function o(e){return/^[.?#]/.test(e)}function l(e){const r=t.exec(e);return p(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function c(e){const t=r.exec(e),n=t[2];return p("file:","",t[1]||"","",s(n)?n:"/"+n,t[3]||"",t[4]||"")}function p(e,t,r,n,i,s,a){return{scheme:e,user:t,host:r,port:n,path:i,query:s,hash:a,type:7}}function u(e){if(i(e)){const t=l("http:"+e);return t.scheme="",t.type=6,t}if(s(e)){const t=l("http://foo.com"+e);return t.scheme="",t.host="",t.type=5,t}if(a(e))return c(e);if(n(e))return l(e);const t=l("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function h(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function d(e,t){f(t,t.type),"/"===e.path?e.path=t.path:e.path=h(t.path)+e.path}function f(e,t){const r=t<=4,n=e.path.split("/");let i=1,s=0,a=!1;for(let e=1;e<n.length;e++){const t=n[e];t?(a=!1,"."!==t&&(".."!==t?(n[i++]=t,s++):s?(a=!0,s--,i--):r&&(n[i++]=t))):a=!0}let o="";for(let e=1;e<i;e++)o+="/"+n[e];(!o||a&&!o.endsWith("/.."))&&(o+="/"),e.path=o}function m(e,t){if(!e&&!t)return"";const r=u(e);let n=r.type;if(t&&7!==n){const e=u(t),i=e.type;switch(n){case 1:r.hash=e.hash;case 2:r.query=e.query;case 3:case 4:d(r,e);case 5:r.user=e.user,r.host=e.host,r.port=e.port;case 6:r.scheme=e.scheme}i>n&&(n=i)}f(r,n);const i=r.query+r.hash;switch(n){case 2:case 3:return i;case 4:{const n=r.path.slice(1);return n?o(t||e)&&!o(n)?"./"+n+i:n+i:i||"."}case 5:return r.path+i;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+i}}return m}()),ne.exports}var se;function ae(){return se||(se=1,function(e,t,r){var n=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},p=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))l.call(e,o)||o===r||i(e,o,{get:()=>t[o],enumerable:!(n=s(t,o))||n.enumerable});return e},h=(e,t,r)=>(r=null!=e?n(o(e)):{},u(e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),d=e=>u(i({},"__esModule",{value:!0}),e),f=c({"umd:@jridgewell/sourcemap-codec"(e,t){t.exports=r}}),m=c({"umd:@jridgewell/resolve-uri"(e,r){r.exports=t}}),y={};p(y,{AnyMap:()=>U,FlattenMap:()=>U,GREATEST_LOWER_BOUND:()=>X,LEAST_UPPER_BOUND:()=>J,TraceMap:()=>z,allGeneratedPositionsFor:()=>ne,decodedMap:()=>ce,decodedMappings:()=>Z,eachMapping:()=>ie,encodedMap:()=>pe,encodedMappings:()=>Q,generatedPositionFor:()=>re,isIgnored:()=>oe,originalPositionFor:()=>te,presortedDecodedMap:()=>le,sourceContentFor:()=>ae,traceSegment:()=>ee}),e.exports=d(y);var g=h(f()),T=h(m());function x(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}function b(e,t){const r=x(e),n=t?t+"/":"";return e=>(0,T.default)(n+(e||""),r)}var S=0,v=1,E=2,P=3,A=4,C=1,w=2;function _(e,t){const r=I(e,0);if(r===e.length)return e;t||(e=e.slice());for(let n=r;n<e.length;n=I(e,n+1))e[n]=O(e[n],t);return e}function I(e,t){for(let r=t;r<e.length;r++)if(!k(e[r]))return r;return e.length}function k(e){for(let t=1;t<e.length;t++)if(e[t][S]<e[t-1][S])return!1;return!0}function O(e,t){return t||(e=e.slice()),e.sort(N)}function N(e,t){return e[S]-t[S]}function L(e,t){const r=t.map(()=>[]);for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n.length;e++){const i=n[e];if(1===i.length)continue;const s=i[v],a=i[E],o=i[P],l=r[s];(l[a]||(l[a]=[])).push([o,t,i[S]])}}for(let e=0;e<r.length;e++){const t=r[e];for(let e=0;e<t.length;e++){const r=t[e];r&&r.sort(N)}}return r}var D=!1;function M(e,t,r,n){for(;r<=n;){const i=r+(n-r>>1),s=e[i][S]-t;if(0===s)return D=!0,i;s<0?r=i+1:n=i-1}return D=!1,r-1}function B(e,t,r){for(let n=r+1;n<e.length&&e[n][S]===t;r=n++);return r}function F(e,t,r){for(let n=r-1;n>=0&&e[n][S]===t;r=n--);return r}function j(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function R(e,t,r,n){const{lastKey:i,lastNeedle:s,lastIndex:a}=r;let o=0,l=e.length-1;if(n===i){if(t===s)return D=-1!==a&&e[a][S]===t,a;t>=s?o=-1===a?0:a:l=a}return r.lastKey=n,r.lastNeedle=t,r.lastIndex=M(e,t,o,l)}function V(e){return"string"==typeof e?JSON.parse(e):e}var U=function(e,t){const r=V(e);if(!("sections"in r))return new z(r,t);const n=[],i=[],s=[],a=[],o=[];return K(r,t,n,i,s,a,o,0,0,1/0,1/0),le({version:3,file:r.file,names:a,sources:i,sourcesContent:s,mappings:n,ignoreList:o})};function K(e,t,r,n,i,s,a,o,l,c,p){const{sections:u}=e;for(let e=0;e<u.length;e++){const{map:h,offset:d}=u[e];let f=c,m=p;if(e+1<u.length){const t=u[e+1].offset;f=Math.min(c,o+t.line),f===c?m=Math.min(p,l+t.column):f<c&&(m=l+t.column)}H(h,t,r,n,i,s,a,o+d.line,l+d.column,f,m)}}function H(e,t,r,n,i,s,a,o,l,c,p){const u=V(e);if("sections"in u)return K(...arguments);const h=new z(u,t),d=n.length,f=s.length,m=Z(h),{resolvedSources:y,sourcesContent:g,ignoreList:T}=h;if(W(n,y),W(s,h.names),g)W(i,g);else for(let e=0;e<y.length;e++)i.push(null);if(T)for(let e=0;e<T.length;e++)a.push(T[e]+d);for(let e=0;e<m.length;e++){const t=o+e;if(t>c)return;const n=q(r,t),i=0===e?l:0,s=m[e];for(let e=0;e<s.length;e++){const r=s[e],a=i+r[S];if(t===c&&a>=p)return;if(1===r.length){n.push([a]);continue}const o=d+r[v],l=r[E],u=r[P];n.push(4===r.length?[a,o,l,u]:[a,o,l,u,f+r[A]])}}}function W(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}function q(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}var $="`line` must be greater than 0 (lines start at line 1)",Y="`column` must be greater than or equal to 0 (columns start at column 0)",J=-1,X=1,z=class{constructor(e,t){const r="string"==typeof e;if(!r&&e._decodedMemo)return e;const n=V(e),{version:i,file:s,names:a,sourceRoot:o,sources:l,sourcesContent:c}=n;this.version=i,this.file=s,this.names=a||[],this.sourceRoot=o,this.sources=l,this.sourcesContent=c,this.ignoreList=n.ignoreList||n.x_google_ignoreList||void 0;const p=b(t,o);this.resolvedSources=l.map(p);const{mappings:u}=n;if("string"==typeof u)this._encoded=u,this._decoded=void 0;else{if(!Array.isArray(u))throw n.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(n)}`);this._encoded=void 0,this._decoded=_(u,r)}this._decodedMemo=j(),this._bySources=void 0,this._bySourceMemos=void 0}};function G(e){return e}function Q(e){var t,r;return null!=(r=(t=G(e))._encoded)?r:t._encoded=(0,g.encode)(G(e)._decoded)}function Z(e){var t;return(t=G(e))._decoded||(t._decoded=(0,g.decode)(G(e)._encoded))}function ee(e,t,r){const n=Z(e);if(t>=n.length)return null;const i=n[t],s=fe(i,G(e)._decodedMemo,t,r,X);return-1===s?null:i[s]}function te(e,t){let{line:r,column:n,bias:i}=t;if(r--,r<0)throw new Error($);if(n<0)throw new Error(Y);const s=Z(e);if(r>=s.length)return he(null,null,null,null);const a=s[r],o=fe(a,G(e)._decodedMemo,r,n,i||X);if(-1===o)return he(null,null,null,null);const l=a[o];if(1===l.length)return he(null,null,null,null);const{names:c,resolvedSources:p}=e;return he(p[l[v]],l[E]+1,l[P],5===l.length?c[l[A]]:null)}function re(e,t){const{source:r,line:n,column:i,bias:s}=t;return ye(e,r,n,i,s||X,!1)}function ne(e,t){const{source:r,line:n,column:i,bias:s}=t;return ye(e,r,n,i,s||J,!0)}function ie(e,t){const r=Z(e),{names:n,resolvedSources:i}=e;for(let e=0;e<r.length;e++){const s=r[e];for(let r=0;r<s.length;r++){const a=s[r],o=e+1,l=a[0];let c=null,p=null,u=null,h=null;1!==a.length&&(c=i[a[1]],p=a[2]+1,u=a[3]),5===a.length&&(h=n[a[4]]),t({generatedLine:o,generatedColumn:l,source:c,originalLine:p,originalColumn:u,name:h})}}}function se(e,t){const{sources:r,resolvedSources:n}=e;let i=r.indexOf(t);return-1===i&&(i=n.indexOf(t)),i}function ae(e,t){const{sourcesContent:r}=e;if(null==r)return null;const n=se(e,t);return-1===n?null:r[n]}function oe(e,t){const{ignoreList:r}=e;if(null==r)return!1;const n=se(e,t);return-1!==n&&r.includes(n)}function le(e,t){const r=new z(ue(e,[]),t);return G(r)._decoded=e.mappings,r}function ce(e){return ue(e,Z(e))}function pe(e){return ue(e,Q(e))}function ue(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function he(e,t,r,n){return{source:e,line:t,column:r,name:n}}function de(e,t){return{line:e,column:t}}function fe(e,t,r,n,i){let s=R(e,n,t,r);return D?s=(i===J?B:F)(e,n,s):i===J&&s++,-1===s||s===e.length?-1:s}function me(e,t,r,n,i){let s=fe(e,t,r,n,X);if(D||i!==J||s++,-1===s||s===e.length)return[];const a=D?n:e[s][S];D||(s=F(e,a,s));const o=B(e,a,s),l=[];for(;s<=o;s++){const t=e[s];l.push(de(t[C]+1,t[w]))}return l}function ye(e,t,r,n,i,s){var a,o;if(--r<0)throw new Error($);if(n<0)throw new Error(Y);const{sources:l,resolvedSources:c}=e;let p=l.indexOf(t);if(-1===p&&(p=c.indexOf(t)),-1===p)return s?[]:de(null,null);const u=(a=G(e))._bySourceMemos||(a._bySourceMemos=l.map(j)),h=((o=G(e))._bySources||(o._bySources=L(Z(e),u)))[p][r];if(null==h)return s?[]:de(null,null);const d=u[p];if(s)return me(h,d,r,n,i);const f=fe(h,d,r,n,i);if(-1===f)return de(null,null);const m=h[f];return de(m[C]+1,m[w])}}(e=re,ie(),ee()),e.exports="default"in(t=e).exports?t.exports.default:t.exports),re.exports;var e,t}var oe;function le(){return oe||(oe=1,function(e,t,r){var n=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},p=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))l.call(e,o)||o===r||i(e,o,{get:()=>t[o],enumerable:!(n=s(t,o))||n.enumerable});return e},h=(e,t,r)=>(r=null!=e?n(o(e)):{},u(e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),d=e=>u(i({},"__esModule",{value:!0}),e),f=c({"umd:@jridgewell/sourcemap-codec"(e,r){r.exports=t}}),m=c({"umd:@jridgewell/trace-mapping"(e,t){t.exports=r}}),y={};p(y,{GenMapping:()=>k,addMapping:()=>L,addSegment:()=>N,allMappings:()=>U,fromMap:()=>V,maybeAddMapping:()=>M,maybeAddSegment:()=>D,setIgnore:()=>F,setSourceContent:()=>B,toDecodedMap:()=>j,toEncodedMap:()=>R}),e.exports=d(y);var g=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function T(e){return e}function x(e,t){return T(e)._indexes[t]}function b(e,t){const r=x(e,t);if(void 0!==r)return r;const{array:n,_indexes:i}=T(e),s=n.push(t);return i[t]=s-1}function S(e,t){const r=x(e,t);if(void 0===r)return;const{array:n,_indexes:i}=T(e);for(let e=r+1;e<n.length;e++){const t=n[e];n[e-1]=t,i[t]--}i[t]=void 0,n.pop()}var v=h(f()),E=h(m()),P=0,A=1,C=2,w=3,_=4,I=-1,k=class{constructor({file:e,sourceRoot:t}={}){this._names=new g,this._sources=new g,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new g}};function O(e){return e}function N(e,t,r,n,i,s,a,o){return K(!1,e,t,r,n,i,s,a,o)}function L(e,t){return z(!1,e,t)}var D=(e,t,r,n,i,s,a,o)=>K(!0,e,t,r,n,i,s,a,o),M=(e,t)=>z(!0,e,t);function B(e,t,r){const{_sources:n,_sourcesContent:i}=O(e);i[b(n,t)]=r}function F(e,t,r=!0){const{_sources:n,_sourcesContent:i,_ignoreList:s}=O(e),a=b(n,t);a===i.length&&(i[a]=null),r?b(s,a):S(s,a)}function j(e){const{_mappings:t,_sources:r,_sourcesContent:n,_names:i,_ignoreList:s}=O(e);return $(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:n,mappings:t,ignoreList:s.array}}function R(e){const t=j(e);return Object.assign({},t,{mappings:(0,v.encode)(t.mappings)})}function V(e){const t=new E.TraceMap(e),r=new k({file:t.file,sourceRoot:t.sourceRoot});return Y(O(r)._names,t.names),Y(O(r)._sources,t.sources),O(r)._sourcesContent=t.sourcesContent||t.sources.map(()=>null),O(r)._mappings=(0,E.decodedMappings)(t),t.ignoreList&&Y(O(r)._ignoreList,t.ignoreList),r}function U(e){const t=[],{_mappings:r,_sources:n,_names:i}=O(e);for(let e=0;e<r.length;e++){const s=r[e];for(let r=0;r<s.length;r++){const a=s[r],o={line:e+1,column:a[P]};let l,c,p;1!==a.length&&(l=n.array[a[A]],c={line:a[C]+1,column:a[w]},5===a.length&&(p=i.array[a[_]])),t.push({generated:o,source:l,original:c,name:p})}}return t}function K(e,t,r,n,i,s,a,o,l){const{_mappings:c,_sources:p,_sourcesContent:u,_names:h}=O(t),d=H(c,r),f=W(d,n);if(!i){if(e&&J(d,f))return;return q(d,f,[n])}const m=b(p,i),y=o?b(h,o):I;if(m===u.length&&(u[m]=null!=l?l:null),!e||!X(d,f,m,s,a,y))return q(d,f,o?[n,m,s,a,y]:[n,m,s,a])}function H(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}function W(e,t){let r=e.length;for(let n=r-1;n>=0&&!(t>=e[n][P]);r=n--);return r}function q(e,t,r){for(let r=e.length;r>t;r--)e[r]=e[r-1];e[t]=r}function $(e){const{length:t}=e;let r=t;for(let t=r-1;t>=0&&!(e[t].length>0);r=t,t--);r<t&&(e.length=r)}function Y(e,t){for(let r=0;r<t.length;r++)b(e,t[r])}function J(e,t){return 0===t||1===e[t-1].length}function X(e,t,r,n,i,s){if(0===t)return!1;const a=e[t-1];return 1!==a.length&&r===a[A]&&n===a[C]&&i===a[w]&&s===(5===a.length?a[_]:I)}function z(e,t,r){const{generated:n,source:i,original:s,name:a,content:o}=r;return i?K(e,t,n.line-1,n.column,i,s.line-1,s.column,a,o):K(e,t,n.line-1,n.column,null,null,null,null,null)}}(e=Q,ee(),ae()),e.exports="default"in(t=e).exports?t.exports.default:t.exports),Q.exports;var e,t}var ce;function pe(){return ce||(ce=1,function(e,t,r){var n=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},p=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))l.call(e,o)||o===r||i(e,o,{get:()=>t[o],enumerable:!(n=s(t,o))||n.enumerable});return e},h=(e,t,r)=>(r=null!=e?n(o(e)):{},u(e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),d=e=>u(i({},"__esModule",{value:!0}),e),f=c({"umd:@jridgewell/trace-mapping"(e,t){t.exports=r}}),m=c({"umd:@jridgewell/gen-mapping"(e,r){r.exports=t}}),y={};p(y,{default:()=>L}),e.exports=d(y);var g=h(f()),T=h(m()),x=h(f()),b=v("",-1,-1,"",null,!1),S=[];function v(e,t,r,n,i,s){return{source:e,line:t,column:r,name:n,content:i,ignore:s}}function E(e,t,r,n,i){return{map:e,sources:t,source:r,content:n,ignore:i}}function P(e,t){return E(e,t,"",null,!1)}function A(e,t,r){return E(null,S,e,t,r)}function C(e){const t=new T.GenMapping({file:e.map.file}),{sources:r,map:n}=e,i=n.names,s=(0,x.decodedMappings)(n);for(let e=0;e<s.length;e++){const n=s[e];for(let s=0;s<n.length;s++){const a=n[s],o=a[0];let l=b;if(1!==a.length&&(l=w(r[a[1]],a[2],a[3],5===a.length?i[a[4]]:""),null==l))continue;const{column:c,line:p,name:u,content:h,source:d,ignore:f}=l;(0,T.maybeAddSegment)(t,e,o,d,p,c,u),d&&null!=h&&(0,T.setSourceContent)(t,d,h),f&&(0,T.setIgnore)(t,d,!0)}}return t}function w(e,t,r,n){if(!e.map)return v(e.source,t,r,n,e.content,e.ignore);const i=(0,x.traceSegment)(e.map,t,r);return null==i?null:1===i.length?b:w(e.sources[i[1]],i[2],i[3],5===i.length?e.map.names[i[4]]:n)}function _(e){return Array.isArray(e)?e:[e]}function I(e,t){const r=_(e).map(e=>new g.TraceMap(e,"")),n=r.pop();for(let e=0;e<r.length;e++)if(r[e].sources.length>1)throw new Error(`Transformation map ${e} must have exactly one source file.\nDid you specify these with the most recent transformation maps first?`);let i=k(n,t,"",0);for(let e=r.length-1;e>=0;e--)i=P(r[e],[i]);return i}function k(e,t,r,n){const{resolvedSources:i,sourcesContent:s,ignoreList:a}=e,o=n+1,l=i.map((e,n)=>{const i={importer:r,depth:o,source:e||"",content:void 0,ignore:void 0},l=t(i.source,i),{source:c}=i;return l?k(new g.TraceMap(l,c),t,c,o):A(c,s?s[n]:null,!!a&&a.includes(n))});return P(e,l)}var O=h(m()),N=class{constructor(e,t){const r=t.decodedMappings?(0,O.toDecodedMap)(e):(0,O.toEncodedMap)(e);this.version=r.version,this.file=r.file,this.mappings=r.mappings,this.names=r.names,this.ignoreList=r.ignoreList,this.sourceRoot=r.sourceRoot,this.sources=r.sources,t.excludeContent||(this.sourcesContent=r.sourcesContent)}toString(){return JSON.stringify(this)}};function L(e,t,r){const n="object"==typeof r?r:{excludeContent:!!r,decodedMappings:!1},i=I(e,t);return new N(C(i),n)}}(e=G,le(),ae()),e.exports="default"in(t=e).exports?t.exports.default:t.exports),G.exports;var e,t}var ue,he,de,fe,me={};function ye(){if(de)return he;de=1;const e=(he&&he.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(o),t=function(){if(ue)return me;ue=1;var e=me&&me.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(me,"__esModule",{value:!0}),me.VirtualStats=void 0;const t=e(l);return me.VirtualStats=class{constructor(e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this[t]=e[t])}_checkModeProperty(e){return(this.mode&t.default.S_IFMT)===e}isDirectory(){return this._checkModeProperty(t.default.S_IFDIR)}isFile(){return this._checkModeProperty(t.default.S_IFREG)}isBlockDevice(){return this._checkModeProperty(t.default.S_IFBLK)}isCharacterDevice(){return this._checkModeProperty(t.default.S_IFCHR)}isSymbolicLink(){return this._checkModeProperty(t.default.S_IFLNK)}isFIFO(){return this._checkModeProperty(t.default.S_IFIFO)}isSocket(){return this._checkModeProperty(t.default.S_IFSOCK)}},me}();let r=45e6;const n="all";function i(e){return t=>{if(t._data){const r=t._currentLevel,n=t._levels[r];return{result:e,level:n}}return[null,e]}}function s(e,t){return e._data instanceof Map?e._data.get(t):e._data?e.data[t]:e.data instanceof Map?e.data.get(t):e.data[t]}function a(e,t,r){const n=r(e);e._data instanceof Map?e._data.set(t,n):e._data?e.data[t]=n:e.data instanceof Map?e.data.set(t,n):e.data[t]=n}function c(e){if(e._readdirBackend)return e._readdirBackend;if(e._readdirStorage)return e._readdirStorage;throw new Error("Couldn't find a readDirStorage from Webpack Internals")}return he=class{constructor(e){this._compiler=null,this._watcher=null,this._staticModules=e||null}getModuleList(e=n){var t,r;let i={};const s=e===n||"dynamic"===e;if((e===n||"static"===e)&&(i=Object.assign(Object.assign({},i),this._staticModules)),s){const e=null===(t=this._compiler)||void 0===t?void 0:t.inputFileSystem,n=null!==(r=null==e?void 0:e._virtualFiles)&&void 0!==r?r:{},s={};Object.keys(n).forEach(e=>{s[e]=n[e].contents}),i=Object.assign(Object.assign({},i),s)}return i}writeModule(n,i){if(!this._compiler)throw new Error("Plugin has not been initialized");!function(e){if(!e._compiler)throw new Error("You must use this plugin only after creating webpack instance!")}(this);const s=i?i.length:0,a=Date.now(),o=new Date(a),l=new t.VirtualStats({dev:8675309,nlink:0,uid:1e3,gid:1e3,rdev:0,blksize:4096,ino:r++,mode:33188,size:s,blocks:Math.floor(s/4096),atime:o,mtime:o,ctime:o,birthtime:o}),c=function(t,r){return e.default.isAbsolute(t)?t:e.default.join(r.context,t)}(n,this._compiler);process.env.WVM_DEBUG&&console.log(this._compiler.name,"Write virtual module:",c,i);let p=this._watcher&&this._watcher.watchFileSystem;for(;p&&p.wfs;)p=p.wfs;let u=this._compiler.inputFileSystem;for(;u&&u._inputFileSystem;)u=u._inputFileSystem;if(u._writeVirtualFile(c,l,i),p&&p.watcher&&(p.watcher.fileWatchers.size||p.watcher.fileWatchers.length)){const e=p.watcher.fileWatchers instanceof Map?Array.from(p.watcher.fileWatchers.values()):p.watcher.fileWatchers;for(let t of e)"watcher"in t&&(t=t.watcher),t.path===c&&(process.env.DEBUG&&console.log(this._compiler.name,"Emit file change:",c,a),delete t.directoryWatcher._cachedTimeInfoEntries,t.emit("change",a,null))}}apply(n){this._compiler=n;const o=()=>{let o=n.inputFileSystem;for(;o&&o._inputFileSystem;)o=o._inputFileSystem;if(!o._writeVirtualFile){const n=o.purge;o.purge=()=>{n.apply(o,[]),o._virtualFiles&&Object.keys(o._virtualFiles).forEach(e=>{const t=o._virtualFiles[e];o._writeVirtualFile(e,t.stats,t.contents)})},o._writeVirtualFile=(n,l,p)=>{const u=function(e){if(e._statStorage)return e._statStorage;if(e._statBackend)return e._statBackend;throw new Error("Couldn't find a stat storage")}(o),h=function(e){if(e._readFileStorage)return e._readFileStorage;if(e._readFileBackend)return e._readFileBackend;throw new Error("Couldn't find a readFileStorage")}(o),d=c(o),f=function(e){if(e._realpathBackend)return e._realpathBackend}(o);o._virtualFiles=o._virtualFiles||{},o._virtualFiles[n]={stats:l,contents:p},a(u,n,i(l)),a(h,n,i(p));const m=n.split(/[\\/]/);let y=m.length-1;const g=m[0]?1:0;for(;y>g;){const n=m.slice(0,y).join(e.default.sep)||e.default.sep;try{o.readdirSync(n)}catch(e){const s=Date.now(),o=new t.VirtualStats({dev:8675309,nlink:0,uid:1e3,gid:1e3,rdev:0,blksize:4096,ino:r++,mode:16877,size:l.size,blocks:Math.floor(l.size/4096),atime:s,mtime:s,ctime:s,birthtime:s});a(d,n,i([])),f&&a(f,n,i(n)),a(u,n,i(o))}let p=s(c(o),n);p=p[1]||p.result;const h=m[y];if(!(p.indexOf(h)<0))break;{const e=p.concat([h]).sort();a(c(o),n,i(e))}y--}}}},l=()=>{if(this._staticModules){for(const[e,t]of Object.entries(this._staticModules))this.writeModule(e,t);this._staticModules=null}},p=void 0===n.webpack?4:5,u=(e,t)=>{this._watcher=e.compiler||e;const r=n.inputFileSystem._virtualFiles,i=n.fileTimestamps;r&&i&&"function"==typeof i.set&&Object.keys(r).forEach(e=>{const t=+r[e].stats.mtime;i.set(e,4===p?t:{safeTime:t,timestamp:t})}),t()};n.hooks?(n.hooks.afterEnvironment.tap("VirtualModulesPlugin",o),n.hooks.afterResolvers.tap("VirtualModulesPlugin",l),n.hooks.watchRun.tapAsync("VirtualModulesPlugin",u)):(n.plugin("after-environment",o),n.plugin("after-resolvers",l),n.plugin("watch-run",u))}},he}function ge(){if(fe)return P;fe=1;const i=F(),s=V(),o=H(),l=$(),c=X(),p=i.__toESM(r),u=i.__toESM(e),h=i.__toESM(t),d=i.__toESM(pe()),f=i.__toESM(a),m=i.__toESM(n),y=i.__toESM(ye()),g={".js":"js",".mjs":"js",".cjs":"js",".jsx":"jsx",".ts":"ts",".cts":"ts",".mts":"ts",".tsx":"tsx",".css":"css",".less":"css",".stylus":"css",".scss":"css",".sass":"css",".json":"json",".txt":"text"};function T(e,t){return g[u.default.extname(t).toLowerCase()]||"js"}function x(e,t,r){return"function"==typeof e?e(t,r):e}const b={names:[],sources:[],mappings:"",version:3};function S(e){const t=[],r=[],n={error(e){t.push(v(e))},warn(e){r.push(v(e))}},i={...e,...n,addWatchFile(t){e.getWatchFiles().push(t)}};return{errors:t,warnings:r,mixedContext:i}}function v(e){return"string"==typeof e&&(e={message:e}),{id:e.id,pluginName:e.plugin,text:e.message,location:e.loc?{file:e.loc.file,line:e.loc.line,column:e.loc.column}:null,detail:e.meta,notes:[]}}function E(e,t){return e&&(e.sourcesContent&&0!==e.sourcesContent.length||(e.sourcesContent=[t]),t+=`\n//# sourceMappingURL=${(e=function(e){return Object.prototype.hasOwnProperty.call(e,"toString")||Object.defineProperty(e,"toString",{enumerable:!1,value:function(){return JSON.stringify(this)}}),Object.prototype.hasOwnProperty.call(e,"toUrl")||Object.defineProperty(e,"toUrl",{enumerable:!1,value:function(){return`data:application/json;charset=utf-8;base64,${h.Buffer.from(this.toString()).toString("base64")}`}}),e}(e)).toUrl()}`),t}function A(e){return t=>{const r={framework:"esbuild"},n=i.toArray(e(t,r));return{name:(1===n.length?n[0].name:r.esbuildHostName)??`unplugin-host:${n.map(e=>e.name).join(":")}`,setup:async e=>{const t=e=>(t,r)=>{const n=function(e){const t=[],{initialOptions:r}=e;return{parse:i.parse,addWatchFile(){throw new Error("unplugin/esbuild: addWatchFile outside supported hooks (resolveId, load, transform)")},emitFile(e){const t=e.fileName||e.name;if(r.outdir&&e.source&&t){const n=u.default.resolve(r.outdir,t),i=u.default.dirname(n);p.default.existsSync(i)||p.default.mkdirSync(i,{recursive:!0}),p.default.writeFileSync(n,e.source)}},getWatchFiles:()=>t,getNativeBuildContext:()=>({framework:"esbuild",build:e})}}(r),{onStart:s,onEnd:a,onResolve:o,onLoad:l,onTransform:c,initialOptions:h}=t,f=e.esbuild?.onResolveFilter??/.*/,m=e.esbuild?.onLoadFilter??/.*/,y=e.esbuild?.loader??T;if(e.esbuild?.config?.call(n,h),e.buildStart&&s(()=>e.buildStart.call(n)),(e.buildEnd||e.writeBundle)&&a(async()=>{e.buildEnd&&await e.buildEnd.call(n),e.writeBundle&&await e.writeBundle()}),e.resolveId&&o({filter:f},async t=>{const r=t.path;if(h.external?.includes(r))return;const{handler:s,filter:a}=i.normalizeObjectHook("resolveId",e.resolveId);if(!a(r))return;const{errors:o,warnings:l,mixedContext:c}=S(n),p="entry-point"===t.kind,u=await s.call(c,r,p?void 0:t.importer,{isEntry:p});return"string"==typeof u?{path:u,namespace:e.name,errors:o,warnings:l,watchFiles:c.getWatchFiles()}:"object"==typeof u&&null!==u?{path:u.id,external:u.external,namespace:e.name,errors:o,warnings:l,watchFiles:c.getWatchFiles()}:void 0}),e.load&&l({filter:m},async t=>{const{handler:r,filter:s}=i.normalizeObjectHook("load",e.load),a=t.path+(t.suffix||"");if(e.loadInclude&&!e.loadInclude(a))return;if(!s(a))return;const{errors:o,warnings:l,mixedContext:c}=S(n);let p,h;const d=await r.call(c,a);if("string"==typeof d?p=d:"object"==typeof d&&null!==d&&(p=d.code,h=d.map),void 0===p)return null;h&&(p=E(h,p));const f=u.default.dirname(t.path);return{contents:p,errors:o,warnings:l,watchFiles:c.getWatchFiles(),loader:x(y,p,t.path),resolveDir:f}}),e.transform&&c({filter:m},async t=>{const{handler:r,filter:s}=i.normalizeObjectHook("transform",e.transform),a=t.path+(t.suffix||"");if(e.transformInclude&&!e.transformInclude(a))return;let o=await t.getContents();if(!s(a,o))return;const{mixedContext:l,errors:c,warnings:p}=S(n),h=u.default.dirname(t.path);let f;const m=await r.call(l,o,a);return"string"==typeof m?o=m:"object"==typeof m&&null!==m&&(o=m.code,f=f&&m.map?function(e,t){if(0===(t=t.filter(e=>e.sources)).length||t.every(e=>0===e.sources.length))return{...b};let r,n=1;return r=void 0===t.slice(0,-1).find(e=>1!==e.sources.length)?(0,d.default)(t,()=>null,!0):(0,d.default)(t[0],r=>r===e&&t[n]?t[n++]:{...b},!0),r.file||delete r.file,r}(t.path,["string"===m.map?JSON.parse(m.map):m.map,f]):"string"==typeof m.map?JSON.parse(m.map):m.map),o?(f&&(o=E(f,o)),{contents:o,errors:c,warnings:p,watchFiles:l.getWatchFiles(),loader:x(y,o,t.path),resolveDir:h}):void 0}),e.esbuild?.setup)return e.esbuild.setup(r)},r=[];for(const i of n){const n={};await t(i)({...e,onLoad(e,t){n.options=e,n.onLoadCb=t},onTransform(e,t){n.options||=e,n.onTransformCb=t}},e),(n.onLoadCb||n.onTransformCb)&&r.push(n)}r.length&&e.onLoad(1===r.length?r[0].options:{filter:/.*/},async e=>{function t(t){return 1===r.length||!t?.filter||t.filter.test(e.path)}let n,i;for(const{options:i,onLoadCb:s}of r)if(t(i)&&(s&&(n=await s(e)),n?.contents))break;for(const{options:s,onTransformCb:a}of r)if(t(s)&&a){const t={...n,...e,getContents:async()=>n?.contents?n.contents:i||(i=await p.default.promises.readFile(e.path,"utf8"))},r=await a(t);r?.contents&&(n=r)}if(n?.contents)return n})}}}}function C(e,t){return{parse:i.parse,addWatchFile(r){e.addWatchFile(r,t||r)},emitFile(t){const r=t.fileName||t.name;t.source&&r&&e.emitFile({resolvedPath:r,name:r,content:[...h.Buffer.from(t.source)],resourceType:(0,u.extname)(r)})},getWatchFiles:()=>e.getWatchFiles(),getNativeBuildContext:()=>({framework:"farm",context:e})}}function w(e){return{error:t=>e.error("string"==typeof t?new Error(t):t),warn:t=>e.warn("string"==typeof t?new Error(t):t)}}function _(e){const t={pre:102,post:98};return void 0!==t[e]?t[e]:100}function I(e){return"object"==typeof e&&null!==e}function k(e){if(!e)return[];const t=e.split("?")[1],r=f.parse(t),n=[];for(const e in r)n.push([e,r[e]]);return n}function O(e){const t=e.length;if(0===t)return e;const r=e.indexOf("\0");if(-1===r)return e;const n=Array.from({length:t+D(e,r)});let i=0;for(let t=0;t<r;t++)n[i++]=e[t];for(let s=r;s<t;s++){const t=e[s];"\0"===t?(n[i++]="\\",n[i++]="0"):n[i++]=t}return u.default.posix.normalize(n.join(""))}function N(e){const t=e.length;if(0===t)return e;const r=e.indexOf("\\0");if(-1===r)return e;const n=Array.from({length:t-M(e,r)});let i=0;for(let t=0;t<r;t++)n[i++]=e[t];let s=r;for(;s<t;)"\\"===e[s]&&"0"===e[s+1]?(n[i++]="\0",s+=2):n[i++]=e[s++];return u.default.posix.normalize(n.join(""))}function L(e){if(null==e)throw new Error("Content cannot be null or undefined");return O("string"==typeof e?e:e.code||"")}function D(e,t){let r=0;const n=e.length;for(let i=t;i<n;i++)"\0"===e[i]&&r++;return r}function M(e,t){let r=0;const n=e.length;for(let i=t;i<n-1;i++)"\\"===e[i]&&"0"===e[i+1]&&(r++,i++);return r}function B(e){const t=e.indexOf("?");return-1!==t?u.default.posix.normalize(e.slice(0,t)):u.default.posix.normalize(e)}function j(e,t){return t.length?`${e}?${function(e){if(!e.length)return"";let t="";for(const[r,n]of e)t+=`${r}${n?`=${n}`:""}&`;return`${t.slice(0,-1)}`}(t)}`:e}const R=[[/\.(less)(?:$|\?)/,"less"],[/\.(scss|sass)(?:$|\?)/,"sass"],[/\.(styl|stylus)(?:$|\?)/,"stylus"],[/\.(css)(?:$|\?)/,"css"]],U=[[/\.(js|mjs|cjs)(?:$|\?)/,"js"],[/\.(jsx)(?:$|\?)/,"jsx"],[/\.(ts|cts|mts)(?:$|\?)/,"ts"],[/\.(tsx)(?:$|\?)/,"tsx"]];function K(e){const t=function(e){for(const[t,r]of R)if(t.test(e))return r;return null}(e);if(t)return t;const r=function(e){for(const[t,r]of U)if(t.test(e))return r;return null}(e);return r||"js"}function W(e){return K(e)}function q(e){return t=>{const r=i.toArray(e(t,{framework:"farm"})).map(e=>{const r=function(e,t){const r={name:e.name,priority:_(e.enforce)};e.farm&&Object.keys(e.farm).forEach(t=>{const n=e.farm[t];n&&Reflect.set(r,t,n)});if(e.buildStart){const t=e.buildStart;r.buildStart={async executor(e,r){await t.call(C(r))}}}if(e.resolveId){const n=e.resolveId;let s=[];t&&(s=t?.filters??[]),r.resolve={filters:{sources:s.length?s:[".*"],importers:[".*"]},async executor(e,t){const r=u.default.resolve(e.importer??""),s=N(e.source),{handler:a,filter:o}=i.normalizeObjectHook("resolveId",n);if(!o(s))return null;let l=!1;if(I(e.kind)&&"entry"in e.kind){l="index"===e.kind.entry}const c=C(t,r),p=await a.call(Object.assign(w(t),c),s,r??null,{isEntry:l});return"string"==typeof p?{resolvedPath:B(O(p)),query:k(p),sideEffects:!0,external:!1,meta:{}}:I(p)?{resolvedPath:B(O(p?.id)),query:k(p?.id),sideEffects:!1,external:Boolean(p?.external),meta:{}}:(h=e.source,h?.startsWith("/")?void 0:null);var h}}}if(e.load){const t=e.load;r.load={filters:{resolvedPaths:[".*"]},async executor(r,n){const s=j(N(r.resolvedPath),r.query),a=W(s);if(e.loadInclude&&!e.loadInclude?.(s))return null;const{handler:o,filter:l}=i.normalizeObjectHook("load",t);if(!l(s))return null;const c=C(n,s);return{content:L(await o.call(Object.assign(w(n),c),s)),moduleType:a}}}}if(e.transform){const t=e.transform;r.transform={filters:{resolvedPaths:[".*"],moduleTypes:[".*"]},async executor(r,n){const s=j(N(r.resolvedPath),r.query),a=W(s);if(e.transformInclude&&!e.transformInclude(s))return null;const{handler:o,filter:l}=i.normalizeObjectHook("transform",t);if(!l(s,r.content))return null;const c=C(n,s),p=await o.call(Object.assign(w(n),c),r.content,s);if(p&&"string"!=typeof p){return{content:L(p),moduleType:a,sourceMap:"object"==typeof p.map&&null!==p.map?JSON.stringify(p.map):void 0}}}}}if(e.watchChange){const t=e.watchChange;r.updateModules={async executor(e,r){const n=e.paths[0],i=n[0],s={Added:"create",Updated:"update",Removed:"delete"}[n[1]];await t.call(C(r),i,{event:s})}}}if(e.buildEnd){const t=e.buildEnd;r.buildEnd={async executor(e,r){await t.call(C(r))}}}if(e.writeBundle){const t=e.writeBundle;r.finish={async executor(){await t()}}}return r}(e,t);return e.farm&&Object.assign(r,e.farm),r});return 1===r.length?r[0]:r}}function Y(e){return t=>{const r=i.toArray(e(t,{framework:"rollup"})).map(e=>J(e,"rollup"));return 1===r.length?r[0]:r}}function J(e,t){const r="rolldown"===t;if(e.resolveId&&!r&&"object"==typeof e.resolveId&&e.resolveId.filter){const r=e.resolveId,{handler:s,filter:a}=i.normalizeObjectHook("load",r);n("resolveId",r,function(...e){const[r]=e;if(z(this,t)||a(r))return s.apply(this,e)})}if(e.load&&(e.loadInclude||!r&&"object"==typeof e.load&&e.load.filter)){const r=e.load,{handler:s,filter:a}=i.normalizeObjectHook("load",r);n("load",r,function(...r){const[n]=r;if(e.loadInclude&&!e.loadInclude(n))return;return z(this,t)||a(n)?s.apply(this,r):void 0})}if(e.transform&&(e.transformInclude||!r&&"object"==typeof e.transform&&e.transform.filter)){const r=e.transform,{handler:s,filter:a}=i.normalizeObjectHook("transform",r);n("transform",r,function(...r){const[n,i]=r;if(e.transformInclude&&!e.transformInclude(i))return;return z(this,t)||a(i,n)?s.apply(this,r):void 0})}return e[t]&&Object.assign(e,e[t]),e;function n(t,r,n){"function"==typeof r?e[t]=n:r.handler=n}}function z(e,t){if("unloader"===t)return!1;if("vite"===t)return!!e?.meta?.viteVersion;if("rolldown"===t)return!0;const r=e?.meta?.rollupVersion;if(!r)return!1;const[n,i]=r.split(".");return Number(n)>4||4===Number(n)&&Number(i)>=40}function G(e){return t=>{const r=i.toArray(e(t,{framework:"rolldown"})).map(e=>J(e,"rolldown"));return 1===r.length?r[0]:r}}const Q=(0,u.resolve)(__dirname,"rspack/loaders/transform"),Z=(0,u.resolve)(__dirname,"rspack/loaders/load");function ee(e){return t=>({apply(r){const n=(0,u.resolve)(r.options.context??process.cwd(),"node_modules/.virtual",process.pid.toString()),a={framework:"rspack",rspack:{compiler:r}},c=i.toArray(e(t,a));for(const e of c){const t=Object.assign(e,{__unpluginMeta:a,__virtualModulePrefix:n}),c=new Set;if(t.resolveId){const e=(e=>r.rspack.experiments.VirtualModulesPlugin?new r.rspack.experiments.VirtualModulesPlugin:new l.FakeVirtualModulesPlugin(e))(t);e.apply(r);const n=new Map;t.__vfsModules=n,t.__vfs=e,r.hooks.compilation.tap(t.name,(a,{normalModuleFactory:u})=>{u.hooks.resolve.tapPromise(t.name,async u=>{const h=s.normalizeAbsolutePath(u.request),d=u.contextInfo;let f=""!==d.issuer?d.issuer:void 0;const m=""===d.issuer;f?.startsWith(t.__virtualModulePrefix)&&(f=decodeURIComponent(f.slice(t.__virtualModulePrefix.length)));const y=o.createBuildContext(r,a);let g;const T={error(e){null==g?g=o.normalizeMessage(e):console.error(`unplugin/rspack: multiple errors returned from resolveId hook: ${e}`)},warn(e){console.warn(`unplugin/rspack: warning from resolveId hook: ${e}`)}},{handler:x,filter:b}=i.normalizeObjectHook("resolveId",t.resolveId);if(!b(h))return;const S=await x.call({...y,...T},h,f,{isEntry:m});if(null!=g)throw g;if(null==S)return;let v="string"==typeof S?S:S.id;"string"!=typeof S&&!0===S.external&&c.add(v);let E=!0;try{(r.inputFileSystem?.statSync??p.default.statSync)(v),E=!1}catch{E=!l.isVirtualModuleId(v,t)}if(E){const r=l.encodeVirtualModuleId(v,t);if(n.has(v))await n.get(v);else{const t=Promise.resolve(e.writeModule(r,""));n.set(v,t),await t}v=r}u.request=v})})}t.load&&r.options.module.rules.unshift({enforce:t.enforce,include(e){if(l.isVirtualModuleId(e,t)&&(e=l.decodeVirtualModuleId(e,t)),t.loadInclude&&!t.loadInclude(e))return!1;const{filter:r}=i.normalizeObjectHook("load",t.load);return!!r(e)&&!c.has(e)},use:[{loader:Z,options:{plugin:t}}],type:"javascript/auto"}),t.transform&&r.options.module.rules.unshift({enforce:t.enforce,use:e=>s.transformUse(e,t,Q)}),t.rspack&&t.rspack(r),(t.watchChange||t.buildStart)&&r.hooks.make.tapPromise(t.name,async e=>{const n=o.createBuildContext(r,e);if(t.watchChange&&(r.modifiedFiles||r.removedFiles)){const e=[];r.modifiedFiles&&r.modifiedFiles.forEach(r=>e.push(Promise.resolve(t.watchChange.call(n,r,{event:"update"})))),r.removedFiles&&r.removedFiles.forEach(r=>e.push(Promise.resolve(t.watchChange.call(n,r,{event:"delete"})))),await Promise.all(e)}if(t.buildStart)return await t.buildStart.call(n)}),t.buildEnd&&r.hooks.emit.tapPromise(t.name,async e=>{await t.buildEnd.call(o.createBuildContext(r,e))}),t.writeBundle&&r.hooks.afterEmit.tapPromise(t.name,async()=>{await t.writeBundle()})}}})}function te(e){return t=>{const r=i.toArray(e(t,{framework:"unloader"})).map(e=>J(e,"unloader"));return 1===r.length?r[0]:r}}function re(e){return t=>{const r=i.toArray(e(t,{framework:"vite"})).map(e=>J(e,"vite"));return 1===r.length?r[0]:r}}const ne=(0,u.resolve)(__dirname,"webpack/loaders/transform"),ie=(0,u.resolve)(__dirname,"webpack/loaders/load");function se(e){return t=>({apply(r){const n=(0,u.resolve)(r.options.context??m.default.cwd(),"_virtual_"),a={framework:"webpack",webpack:{compiler:r}},o=i.toArray(e(t,a));for(const e of o){const t=Object.assign(e,{__unpluginMeta:a,__virtualModulePrefix:n}),o=new Set;if(t.resolveId){let e=r.options.plugins.find(e=>e instanceof y.default);e||(e=new y.default,r.options.plugins.push(e));const n=new Set;t.__vfsModules=n,t.__vfs=e;const a={apply(e){const a=e.ensureHook("resolve");e.getHook("resolve").tapAsync(t.name,async(l,u,h)=>{if(!l.request)return h();if(s.normalizeAbsolutePath(l.request).startsWith(t.__virtualModulePrefix))return h();const d=s.normalizeAbsolutePath(l.request),f=l.context;let m=""!==f.issuer?f.issuer:void 0;const y=""===f.issuer;m?.startsWith(t.__virtualModulePrefix)&&(m=decodeURIComponent(m.slice(t.__virtualModulePrefix.length)));const g=new Set,T=c.createBuildContext({addWatchFile(e){g.add(e),u.fileDependencies?.add(e)},getWatchFiles:()=>Array.from(g)},r);let x;const b={error(e){null==x?x=c.normalizeMessage(e):console.error(`unplugin/webpack: multiple errors returned from resolveId hook: ${e}`)},warn(e){console.warn(`unplugin/webpack: warning from resolveId hook: ${e}`)}},{handler:S,filter:v}=i.normalizeObjectHook("resolveId",t.resolveId);if(!v(d))return h();const E=await S.call({...T,...b},d,m,{isEntry:y});if(null!=x)return h(x);if(null==E)return h();let P="string"==typeof E?E:E.id;"string"!=typeof E&&!0===E.external&&o.add(P),p.default.existsSync(P)||(P=s.normalizeAbsolutePath(t.__virtualModulePrefix+encodeURIComponent(P)),n.has(P)||(t.__vfs.writeModule(P,""),n.add(P)));const A={...l,request:P};e.doResolve(a,A,null,u,h)})}};r.options.resolve.plugins=r.options.resolve.plugins||[],r.options.resolve.plugins.push(a)}t.load&&r.options.module.rules.unshift({include:e=>ae(e,t,o),enforce:t.enforce,use:[{loader:ie,options:{plugin:t}}],type:"javascript/auto"}),t.transform&&r.options.module.rules.unshift({enforce:t.enforce,use:e=>s.transformUse(e,t,ne)}),t.webpack&&t.webpack(r),(t.watchChange||t.buildStart)&&r.hooks.make.tapPromise(t.name,async e=>{const n=c.createBuildContext(c.contextOptionsFromCompilation(e),r,e);if(t.watchChange&&(r.modifiedFiles||r.removedFiles)){const e=[];r.modifiedFiles&&r.modifiedFiles.forEach(r=>e.push(Promise.resolve(t.watchChange.call(n,r,{event:"update"})))),r.removedFiles&&r.removedFiles.forEach(r=>e.push(Promise.resolve(t.watchChange.call(n,r,{event:"delete"})))),await Promise.all(e)}if(t.buildStart)return await t.buildStart.call(n)}),t.buildEnd&&r.hooks.emit.tapPromise(t.name,async e=>{await t.buildEnd.call(c.createBuildContext(c.contextOptionsFromCompilation(e),r,e))}),t.writeBundle&&r.hooks.afterEmit.tapPromise(t.name,async()=>{await t.writeBundle()})}}})}function ae(e,t,r){if(e.startsWith(t.__virtualModulePrefix)&&(e=decodeURIComponent(e.slice(t.__virtualModulePrefix.length))),t.loadInclude&&!t.loadInclude(e))return!1;const{filter:n}=i.normalizeObjectHook("load",t.load);return!!n(e)&&!r.has(e)}return P.createEsbuildPlugin=function(e){return A(e)},P.createFarmPlugin=function(e){return q(e)},P.createRolldownPlugin=function(e){return G(e)},P.createRollupPlugin=function(e){return Y(e)},P.createRspackPlugin=function(e){return ee(e)},P.createUnloaderPlugin=function(e){return te(e)},P.createUnplugin=function(e){return{get esbuild(){return A(e)},get rollup(){return Y(e)},get vite(){return re(e)},get rolldown(){return G(e)},get webpack(){return se(e)},get rspack(){return ee(e)},get farm(){return q(e)},get unloader(){return te(e)},get raw(){return e}}},P.createVitePlugin=function(e){return re(e)},P.createWebpackPlugin=function(e){return se(e)},P}var Te,xe={};function be(){if(Te)return xe;function e(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}Te=1,Object.defineProperty(xe,"__esModule",{value:!0});class t{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}}class r{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function n(e,r){const{line:n,column:i,index:s}=e;return new t(n,i+r,s+r)}const i="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var s={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:i},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:i}};const a={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},o=e=>"UpdateExpression"===e.type?a.UpdateExpression[`${e.prefix}`]:a[e.type];var l={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${o(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${o(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${o(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},c={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`};const p=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var u=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${o({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const h=["message"];function d(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function f({toMessage:e,code:r,reasonCode:n,syntaxPlugin:i}){const s="MissingPlugin"===n||"MissingOneOfPlugins"===n;{const e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};e[n]&&(n=e[n])}return function a(o,l){const c=new SyntaxError;return c.code=r,c.reasonCode=n,c.loc=o,c.pos=o.index,c.syntaxPlugin=i,s&&(c.missingPlugin=l.missingPlugin),d(c,"clone",function(e={}){var r;const{line:n,column:i,index:s}=null!=(r=e.loc)?r:o;return a(new t(n,i,s),Object.assign({},l,e.details))}),d(c,"details",l),Object.defineProperty(c,"message",{configurable:!0,get(){const t=`${e(l)} (${o.line}:${o.column})`;return this.message=t,t},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),c}}function m(t,r){if(Array.isArray(t))return e=>m(e,t[0]);const n={};for(const i of Object.keys(t)){const s=t[i],a="string"==typeof s?{message:()=>s}:"function"==typeof s?{message:s}:s,{message:o}=a,l=e(a,h),c="string"==typeof o?()=>o:o;n[i]=f(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:c},r?{syntaxPlugin:r}:{},l))}return n}const y=Object.assign({},m(s),m(l),m({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),m(c),m`pipelineOperator`(u));const{defineProperty:g}=Object,T=(e,t)=>{e&&g(e,t,{enumerable:!1,value:e[t]})};function x(e){return T(e.loc.start,"index"),T(e.loc.end,"index"),e}class b{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const S={brace:new b("{"),j_oTag:new b("<tag"),j_cTag:new b("</tag"),j_expr:new b("<tag>...</tag>",!0)};S.template=new b("`",!0);const v=!0,E=!0,P=!0,A=!0,C=!0;class w{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}const _=new Map;function I(e,t={}){t.keyword=e;const r=j(e,t);return _.set(e,r),r}function k(e,t){return j(e,{beforeExpr:v,binop:t})}let O=-1;const N=[],L=[],D=[],M=[],B=[],F=[];function j(e,t={}){var r,n,i,s;return++O,L.push(e),D.push(null!=(r=t.binop)?r:-1),M.push(null!=(n=t.beforeExpr)&&n),B.push(null!=(i=t.startsExpr)&&i),F.push(null!=(s=t.prefix)&&s),N.push(new w(e,t)),O}function R(e,t={}){var r,n,i,s;return++O,_.set(e,O),L.push(e),D.push(null!=(r=t.binop)?r:-1),M.push(null!=(n=t.beforeExpr)&&n),B.push(null!=(i=t.startsExpr)&&i),F.push(null!=(s=t.prefix)&&s),N.push(new w("name",t)),O}const V={bracketL:j("[",{beforeExpr:v,startsExpr:E}),bracketHashL:j("#[",{beforeExpr:v,startsExpr:E}),bracketBarL:j("[|",{beforeExpr:v,startsExpr:E}),bracketR:j("]"),bracketBarR:j("|]"),braceL:j("{",{beforeExpr:v,startsExpr:E}),braceBarL:j("{|",{beforeExpr:v,startsExpr:E}),braceHashL:j("#{",{beforeExpr:v,startsExpr:E}),braceR:j("}"),braceBarR:j("|}"),parenL:j("(",{beforeExpr:v,startsExpr:E}),parenR:j(")"),comma:j(",",{beforeExpr:v}),semi:j(";",{beforeExpr:v}),colon:j(":",{beforeExpr:v}),doubleColon:j("::",{beforeExpr:v}),dot:j("."),question:j("?",{beforeExpr:v}),questionDot:j("?."),arrow:j("=>",{beforeExpr:v}),template:j("template"),ellipsis:j("...",{beforeExpr:v}),backQuote:j("`",{startsExpr:E}),dollarBraceL:j("${",{beforeExpr:v,startsExpr:E}),templateTail:j("...`",{startsExpr:E}),templateNonTail:j("...${",{beforeExpr:v,startsExpr:E}),at:j("@"),hash:j("#",{startsExpr:E}),interpreterDirective:j("#!..."),eq:j("=",{beforeExpr:v,isAssign:A}),assign:j("_=",{beforeExpr:v,isAssign:A}),slashAssign:j("_=",{beforeExpr:v,isAssign:A}),xorAssign:j("_=",{beforeExpr:v,isAssign:A}),moduloAssign:j("_=",{beforeExpr:v,isAssign:A}),incDec:j("++/--",{prefix:C,postfix:!0,startsExpr:E}),bang:j("!",{beforeExpr:v,prefix:C,startsExpr:E}),tilde:j("~",{beforeExpr:v,prefix:C,startsExpr:E}),doubleCaret:j("^^",{startsExpr:E}),doubleAt:j("@@",{startsExpr:E}),pipeline:k("|>",0),nullishCoalescing:k("??",1),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),lt:k("</>/<=/>=",7),gt:k("</>/<=/>=",7),relational:k("</>/<=/>=",7),bitShift:k("<</>>/>>>",8),bitShiftL:k("<</>>/>>>",8),bitShiftR:k("<</>>/>>>",8),plusMin:j("+/-",{beforeExpr:v,binop:9,prefix:C,startsExpr:E}),modulo:j("%",{binop:10,startsExpr:E}),star:j("*",{binop:10}),slash:k("/",10),exponent:j("**",{beforeExpr:v,binop:11,rightAssociative:!0}),_in:I("in",{beforeExpr:v,binop:7}),_instanceof:I("instanceof",{beforeExpr:v,binop:7}),_break:I("break"),_case:I("case",{beforeExpr:v}),_catch:I("catch"),_continue:I("continue"),_debugger:I("debugger"),_default:I("default",{beforeExpr:v}),_else:I("else",{beforeExpr:v}),_finally:I("finally"),_function:I("function",{startsExpr:E}),_if:I("if"),_return:I("return",{beforeExpr:v}),_switch:I("switch"),_throw:I("throw",{beforeExpr:v,prefix:C,startsExpr:E}),_try:I("try"),_var:I("var"),_const:I("const"),_with:I("with"),_new:I("new",{beforeExpr:v,startsExpr:E}),_this:I("this",{startsExpr:E}),_super:I("super",{startsExpr:E}),_class:I("class",{startsExpr:E}),_extends:I("extends",{beforeExpr:v}),_export:I("export"),_import:I("import",{startsExpr:E}),_null:I("null",{startsExpr:E}),_true:I("true",{startsExpr:E}),_false:I("false",{startsExpr:E}),_typeof:I("typeof",{beforeExpr:v,prefix:C,startsExpr:E}),_void:I("void",{beforeExpr:v,prefix:C,startsExpr:E}),_delete:I("delete",{beforeExpr:v,prefix:C,startsExpr:E}),_do:I("do",{isLoop:P,beforeExpr:v}),_for:I("for",{isLoop:P}),_while:I("while",{isLoop:P}),_as:R("as",{startsExpr:E}),_assert:R("assert",{startsExpr:E}),_async:R("async",{startsExpr:E}),_await:R("await",{startsExpr:E}),_defer:R("defer",{startsExpr:E}),_from:R("from",{startsExpr:E}),_get:R("get",{startsExpr:E}),_let:R("let",{startsExpr:E}),_meta:R("meta",{startsExpr:E}),_of:R("of",{startsExpr:E}),_sent:R("sent",{startsExpr:E}),_set:R("set",{startsExpr:E}),_source:R("source",{startsExpr:E}),_static:R("static",{startsExpr:E}),_using:R("using",{startsExpr:E}),_yield:R("yield",{startsExpr:E}),_asserts:R("asserts",{startsExpr:E}),_checks:R("checks",{startsExpr:E}),_exports:R("exports",{startsExpr:E}),_global:R("global",{startsExpr:E}),_implements:R("implements",{startsExpr:E}),_intrinsic:R("intrinsic",{startsExpr:E}),_infer:R("infer",{startsExpr:E}),_is:R("is",{startsExpr:E}),_mixins:R("mixins",{startsExpr:E}),_proto:R("proto",{startsExpr:E}),_require:R("require",{startsExpr:E}),_satisfies:R("satisfies",{startsExpr:E}),_keyof:R("keyof",{startsExpr:E}),_readonly:R("readonly",{startsExpr:E}),_unique:R("unique",{startsExpr:E}),_abstract:R("abstract",{startsExpr:E}),_declare:R("declare",{startsExpr:E}),_enum:R("enum",{startsExpr:E}),_module:R("module",{startsExpr:E}),_namespace:R("namespace",{startsExpr:E}),_interface:R("interface",{startsExpr:E}),_type:R("type",{startsExpr:E}),_opaque:R("opaque",{startsExpr:E}),name:j("name",{startsExpr:E}),placeholder:j("%%",{startsExpr:E}),string:j("string",{startsExpr:E}),num:j("num",{startsExpr:E}),bigint:j("bigint",{startsExpr:E}),decimal:j("decimal",{startsExpr:E}),regexp:j("regexp",{startsExpr:E}),privateName:j("#name",{startsExpr:E}),eof:j("eof"),jsxName:j("jsxName"),jsxText:j("jsxText",{beforeExpr:v}),jsxTagStart:j("jsxTagStart",{startsExpr:E}),jsxTagEnd:j("jsxTagEnd")};function U(e){return e>=93&&e<=133}function K(e){return e>=58&&e<=133}function H(e){return e>=58&&e<=137}function W(e){return B[e]}function q(e){return e>=129&&e<=131}function $(e){return e>=58&&e<=92}function Y(e){return 34===e}function J(e){return L[e]}function X(e){return D[e]}function z(e){return e>=24&&e<=25}function G(e){return N[e]}N[8].updateContext=e=>{e.pop()},N[5].updateContext=N[7].updateContext=N[23].updateContext=e=>{e.push(S.brace)},N[22].updateContext=e=>{e[e.length-1]===S.template?e.pop():e.push(S.template)},N[143].updateContext=e=>{e.push(S.j_expr,S.j_oTag)};let Q="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Z="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const ee=new RegExp("["+Q+"]"),te=new RegExp("["+Q+Z+"]");Q=Z=null;const re=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ne=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function ie(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function se(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ee.test(String.fromCharCode(e)):ie(e,re)))}function ae(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&te.test(String.fromCharCode(e)):ie(e,re)||ie(e,ne))))}const oe=["implements","interface","let","package","private","protected","public","static","yield"],le=["eval","arguments"],ce=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),pe=new Set(oe),ue=new Set(le);function he(e,t){return t&&"await"===e||"enum"===e}function de(e,t){return he(e,t)||pe.has(e)}function fe(e){return ue.has(e)}function me(e,t){return de(e,t)||fe(e)}const ye=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class ge{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class be{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get allowNewTarget(){return(512&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(128&t)return!0;if(1731&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new ge(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,r){let n=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(n,e,t,r);let i=n.names.get(e)||0;16&t?i|=4:(n.firstLexicalName||(n.firstLexicalName=e),i|=2),n.names.set(e,i),8&t&&this.maybeExportDefined(n,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(n=this.scopeStack[i],this.checkRedeclarationInScope(n,e,t,r),n.names.set(e,1|(n.names.get(e)||0)),this.maybeExportDefined(n,e),!(1667&n.flags));--i);this.parser.inModule&&1&n.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(y.VarRedeclaration,n,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(1&r))return!1;if(8&r)return e.names.has(t);const n=e.names.get(t);return 16&r?(2&n)>0||!this.treatFunctionsAsVarInScope(e)&&(1&n)>0:(2&n)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&n)>0}checkLocalExport(e){const{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(1667&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(1731&t&&!(4&t))return t}}}class Se extends ge{constructor(...e){super(...e),this.declareFunctions=new Set}}class ve extends be{createScope(e){return new Se(e)}declareName(e,t,r){const n=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e),void n.declareFunctions.add(e);super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(2048&r&&!e.declareFunctions.has(t)){const r=e.names.get(t);return(4&r)>0||(2&r)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}const Ee=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Pe=m`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Ae(e){return"type"===e.importKind||"typeof"===e.importKind}const Ce={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const we=/\*?\s*@((?:no)?flow)\b/;const _e={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Ie=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function ke(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Oe(e,t,r){for(let n=t;n<r;n++)if(ke(e.charCodeAt(n)))return!0;return!1}const Ne=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Le=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function De(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}const Me=m`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Be(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Fe(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Fe(e.object)+"."+Fe(e.property);throw new Error("Node had unexpected type: "+e.type)}class je extends ge{constructor(...e){super(...e),this.tsNames=new Map}}class Re extends be{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new je(e)}enter(e){1024===e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 1024===e&&this.importsStack.pop(),e}hasImport(e,t){const r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1)for(let t=0;t<r-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,r){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(y.VarRedeclaration,r,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const n=this.currentScope();let i=n.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(n,e),void n.tsNames.set(e,16|i);super.declareName(e,t,r),2&t&&(1&t||(this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e)),i|=1),256&t&&(i|=2),512&t&&(i|=4),128&t&&(i|=8),i&&n.tsNames.set(e,i)}isRedeclaredInScope(e,t,r){const n=e.tsNames.get(t);if((2&n)>0){if(256&r){return!!(512&r)!==(4&n)>0}return!0}return 128&r&&(8&n)>0?!!(2&e.names.get(t))&&!!(1&r):!!(2&r&&(1&n)>0)||super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){const{name:t}=e;if(this.hasImport(t))return;for(let e=this.scopeStack.length-1;e>=0;e--){const r=this.scopeStack[e].tsNames.get(t);if((1&r)>0||(16&r)>0)return}super.checkLocalExport(e)}}class Ve{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function Ue(e,t){return(e?2:0)|(t?1:0)}class Ke{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t,r]=e;if(!this.hasPlugin(t))return!1;const n=this.plugins.get(t);for(const e of Object.keys(r))if((null==n?void 0:n[e])!==r[e])return!1;return!0}}getPluginOption(e,t){var r;return null==(r=this.plugins.get(e))?void 0:r[t]}}function He(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function We(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function qe(e,t,r){let n=null,i=t.length;for(;null===n&&i>0;)n=t[--i];null===n||n.start>r.start?We(e,r.comments):He(n,r.comments)}class $e extends Ke{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state,r=t.length;if(0===r)return;let n=r-1;const i=t[n];i.start===e.end&&(i.leadingNode=e,n--);const{start:s}=e;for(;n>=0;n--){const r=t[n],i=r.end;if(!(i>s)){i===s&&(r.trailingNode=e);break}r.containingNode=e,this.finalizeComment(r),t.splice(n,1)}}finalizeComment(e){var t;const{comments:r}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&He(e.leadingNode,r),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,r);else{const{containingNode:n,start:i}=e;if(44===this.input.charCodeAt(this.offsetToSourcePos(i)-1))switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":qe(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":qe(n,n.arguments,e);break;case"ImportExpression":qe(n,[n.source,null!=(t=n.options)?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":qe(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":qe(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":qe(n,n.specifiers,e);break;case"TSEnumDeclaration":case"TSEnumBody":qe(n,n.members,e);break;default:We(n,r)}else We(n,r)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state,{length:r}=t;if(0===r)return;const n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}takeSurroundingComments(e,t,r){const{commentStack:n}=this.state,i=n.length;if(0===i)return;let s=i-1;for(;s>=0;s--){const i=n[s],a=i.end;if(i.start===r)i.leadingNode=e;else if(a===t)i.trailingNode=e;else if(a<t)break}}}class Ye{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[S.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:r,startIndex:n,startLine:i,startColumn:s}){this.strict=!1!==e&&(!0===e||"module"===r),this.startIndex=n,this.curLine=i,this.lineStart=-s,this.startLoc=this.endLoc=new t(i,s,n)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new t(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new Ye;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var Je=function(e){return e>=48&&e<=57};const Xe={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ze={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Ge(e,t,r,n,i,s){const a=r,o=n,l=i;let c="",p=null,u=r;const{length:h}=t;for(;;){if(r>=h){s.unterminated(a,o,l),c+=t.slice(u,r);break}const d=t.charCodeAt(r);if(Qe(e,d,t,r)){c+=t.slice(u,r);break}if(92===d){c+=t.slice(u,r);const a=Ze(t,r,n,i,"template"===e,s);null!==a.ch||p?c+=a.ch:p={pos:r,lineStart:n,curLine:i},({pos:r,lineStart:n,curLine:i}=a),u=r}else 8232===d||8233===d?(++i,n=++r):10===d||13===d?"template"===e?(c+=t.slice(u,r)+"\n",++r,13===d&&10===t.charCodeAt(r)&&++r,++i,u=n=r):s.unterminated(a,o,l):++r}return{pos:r,str:c,firstInvalidLoc:p,lineStart:n,curLine:i,containsInvalid:!!p}}function Qe(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}function Ze(e,t,r,n,i,s){const a=!i;t++;const o=e=>({pos:t,ch:e,lineStart:r,curLine:n}),l=e.charCodeAt(t++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:{let i;return({code:i,pos:t}=et(e,t,r,n,2,!1,a,s)),o(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=rt(e,t,r,n,a,s)),o(null===i?null:String.fromCodePoint(i))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(l>=48&&l<=55){const a=t-1;let l=/^[0-7]+/.exec(e.slice(a,t+2))[0],c=parseInt(l,8);c>255&&(l=l.slice(0,-1),c=parseInt(l,8)),t+=l.length-1;const p=e.charCodeAt(t);if("0"!==l||56===p||57===p){if(i)return o(null);s.strictNumericEscape(a,r,n)}return o(String.fromCharCode(c))}return o(String.fromCharCode(l))}}function et(e,t,r,n,i,s,a,o){const l=t;let c;return({n:c,pos:t}=tt(e,t,r,n,16,i,s,!1,o,!a)),null===c&&(a?o.invalidEscapeSequence(l,r,n):t=l-1),{code:c,pos:t}}function tt(e,t,r,n,i,s,a,o,l,c){const p=t,u=16===i?Xe.hex:Xe.decBinOct,h=16===i?ze.hex:10===i?ze.dec:8===i?ze.oct:ze.bin;let d=!1,f=0;for(let p=0,m=null==s?1/0:s;p<m;++p){const s=e.charCodeAt(t);let p;if(95===s&&"bail"!==o){const i=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(o){if(Number.isNaN(s)||!h(s)||u.has(i)||u.has(s)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,n)}}else{if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(p=s>=97?s-97+10:s>=65?s-65+10:Je(s)?s-48:1/0,p>=i){if(p<=9&&c)return{n:null,pos:t};if(p<=9&&l.invalidDigit(t,r,n,i))p=0;else{if(!a)break;p=0,d=!0}}++t,f=f*i+p}return t===p||null!=s&&t-p!==s||d?{n:null,pos:t}:{n:f,pos:t}}function rt(e,t,r,n,i,s){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,pos:t}=et(e,t,r,n,e.indexOf("}",t)-t,!0,i,s)),++t,null!==a&&a>1114111){if(!i)return{code:null,pos:t};s.invalidCodePoint(t,r,n)}}else({code:a,pos:t}=et(e,t,r,n,4,!1,i,s));return{code:a,pos:t}}function nt(e,r,n){return new t(n,e-r,e)}const it=new Set([103,109,115,105,121,117,100,118]);class st{constructor(e){const t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new r(e.startLoc,e.endLoc)}}class at extends $e{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,r,n)=>!!(2048&this.optionFlags)&&(this.raise(y.InvalidDigit,nt(e,t,r),{radix:n}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(y.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(y.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(y.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(y.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(y.StrictNumericEscape,nt(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(y.UnterminatedString,nt(e-1,t,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(y.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(y.UnterminatedTemplate,nt(e,t,r))}}),this.state=new Ye,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),256&this.optionFlags&&this.pushToken(new st(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Ne.lastIndex=e,Ne.test(this.input)?Ne.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Le.lastIndex=e,Le.test(this.input)?Le.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){const r=this.input.charCodeAt(e);56320==(64512&r)&&(t=65536+((1023&t)<<10)+(1023&r))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());const n=this.state.pos,i=this.input.indexOf(e,n+2);if(-1===i)throw this.raise(y.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,Ie.lastIndex=n+2;Ie.test(this.input)&&Ie.lastIndex<=i;)++this.state.curLine,this.state.lineStart=Ie.lastIndex;if(this.isLookahead)return;const s={type:"CommentBlock",value:this.input.slice(n+2,i),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(i+e.length),loc:new r(t,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(s),s}skipLineComment(e){const t=this.state.pos;let n;this.isLookahead||(n=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!ke(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const s=this.state.pos,a={type:"CommentLine",value:this.input.slice(t+e,s),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(s),loc:new r(n,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(a),a}skipSpace(){const e=this.state.pos,t=4096&this.optionFlags?[]:null;e:for(;this.state.pos<this.length;){const r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),null==t||t.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),null==t||t.push(e));break}default:break e}break;default:if(De(r))++this.state.pos;else if(45===r&&!this.inModule&&8192&this.optionFlags){const r=this.state.pos;if(45!==this.input.charCodeAt(r+1)||62!==this.input.charCodeAt(r+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),null==t||t.push(e))}}else{if(60!==r||this.inModule||!(8192&this.optionFlags))break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),null==t||t.push(e))}}}}}if((null==t?void 0:t.length)>0){const r=this.state.pos,n={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(r),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(y.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?y.RecordExpressionHashIncorrectStartSyntaxType:y.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else se(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const t=this.state.pos;for(this.state.pos+=1;!ke(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=42===e?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=57),61!==n||this.state.inType||(r++,t=37===e?33:30),this.finishOp(t,r)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(y.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(y.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);if(61!==e||this.state.inType)if(94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);94===this.input.codePointAt(this.state.pos)&&this.unexpected()}else this.finishOp(44,1);else this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){const t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(y.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(y.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(se(e))return void this.readWord(e)}throw this.raise(y.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let r,i,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(y.UnterminatedRegExp,n(e,1));const t=this.input.charCodeAt(s);if(ke(t))throw this.raise(y.UnterminatedRegExp,n(e,1));if(r)r=!1;else{if(91===t)i=!0;else if(93===t&&i)i=!1;else if(47===t&&!i)break;r=92===t}}const a=this.input.slice(t,s);++s;let o="";const l=()=>n(e,s+2-t);for(;s<this.length;){const e=this.codePointAtPos(s),t=String.fromCharCode(e);if(it.has(e))118===e?o.includes("u")&&this.raise(y.IncompatibleRegExpUVFlags,l()):117===e&&o.includes("v")&&this.raise(y.IncompatibleRegExpUVFlags,l()),o.includes(t)&&this.raise(y.DuplicateRegExpFlags,l());else{if(!ae(e)&&92!==e)break;this.raise(y.MalformedRegExpFlags,l())}++s,o+=t}this.state.pos=s,this.finishToken(138,{pattern:a,flags:o})}readInt(e,t,r=!1,n=!0){const{n:i,pos:s}=tt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1);return this.state.pos=s,i}readRadixNumber(e){const t=this.state.pos,r=this.state.curPosition();let i=!1;this.state.pos+=2;const s=this.readInt(e);null==s&&this.raise(y.InvalidDigit,n(r,2),{radix:e});const a=this.input.charCodeAt(this.state.pos);if(110===a)++this.state.pos,i=!0;else if(109===a)throw this.raise(y.InvalidDecimal,r);if(se(this.codePointAtPos(this.state.pos)))throw this.raise(y.NumberIdentifier,this.state.curPosition());if(i){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");return void this.finishToken(136,e)}this.finishToken(135,s)}readNumber(e){const t=this.state.pos,r=this.state.curPosition();let i=!1,s=!1,a=!1,o=!1;e||null!==this.readInt(10)||this.raise(y.InvalidNumber,this.state.curPosition());const l=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(l){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(y.StrictOctalLiteral,r),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(y.ZeroDigitNumericSeparator,n(r,t))}o=l&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||o||(++this.state.pos,this.readInt(10),i=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||o||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(y.InvalidOrMissingExponent,r),i=!0,a=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((i||l)&&this.raise(y.InvalidBigIntLiteral,r),++this.state.pos,s=!0),109===c){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(y.InvalidDecimal,r),++this.state.pos;var p=!0}if(se(this.codePointAtPos(this.state.pos)))throw this.raise(y.NumberIdentifier,this.state.curPosition());const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(s)return void this.finishToken(136,u);if(p)return void this.finishToken(137,u);const h=o?parseInt(u,8):parseFloat(u);this.finishToken(135,h)}readCodePoint(e){const{code:t,pos:r}=rt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){const{str:t,pos:r,curLine:n,lineStart:i}=Ge(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=i,this.state.curLine=n,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:r,firstInvalidLoc:n,pos:i,curLine:s,lineStart:a}=Ge("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=s,n&&(this.state.firstInvalidTemplateEscapePos=new t(n.curLine,n.pos-n.lineStart,this.sourceToOffsetPos(n.pos))),96===this.input.codePointAt(i)?this.finishToken(24,n?null:e+r+"`"):(this.state.pos++,this.finishToken(25,n?null:e+r+"${"))}recordStrictModeErrors(e,t){const r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const r=this.state.pos;let n=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(ae(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(n,this.state.pos);const e=this.state.curPosition(),i=this.state.pos===r?se:ae;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(y.MissingUnicodeEscape,this.state.curPosition()),n=this.state.pos-1;continue}++this.state.pos;const s=this.readCodePoint(!0);null!==s&&(i(s)||this.raise(y.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(s)),n=this.state.pos}}}return t+this.input.slice(n,this.state.pos)}readWord(e){const t=this.readWord1(e),r=_.get(t);void 0!==r?this.finishToken(r,J(r)):this.finishToken(132,t)}checkKeywordEscapes(){const{type:e}=this.state;$(e)&&this.state.containsEsc&&this.raise(y.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:J(e)})}raise(e,r,n={}){const i=e(r instanceof t?r:r.loc.start,n);if(!(2048&this.optionFlags))throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,r,n={}){const i=r instanceof t?r:r.loc.start,s=i.index,a=this.state.errors;for(let t=a.length-1;t>=0;t--){const r=a[t];if(r.loc.index===s)return a[t]=e(i,n);if(r.loc.index<s)break}return this.raise(e,r,n)}updateContext(e){}unexpected(e,t){throw this.raise(y.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?J(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(y.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(y.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,nt(t,r,n))}}}class ot{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class lt{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ot)}exit(){const e=this.stack.pop(),t=this.current();for(const[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(y.InvalidPrivateFieldResolution,n,{identifierName:r})}declarePrivateName(e,t,r){const{privateNames:n,loneAccessors:i,undefinedPrivateNames:s}=this.current();let a=n.has(e);if(3&t){const r=a&&i.get(e);if(r){a=(3&r)===(3&t)||(4&r)!==(4&t),a||i.delete(e)}else a||i.set(e,t)}a&&this.parser.raise(y.PrivateNameRedeclaration,r,{identifierName:e}),n.add(e),s.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.parser.raise(y.InvalidPrivateFieldResolution,t,{identifierName:e})}}class ct{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class pt extends ct{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class ut{constructor(e){this.parser=void 0,this.stack=[new ct],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const r=t.loc.start,{stack:n}=this;let i=n.length-1,s=n[i];for(;!s.isCertainlyParameterDeclaration();){if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(e,r),s=n[--i]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){const{stack:r}=this,n=r[r.length-1],i=t.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let r=t.length-1,n=t[r];for(;n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(y.AwaitBindingIdentifier,e),n=t[--r]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,r])=>{this.parser.raise(t,r);let n=e.length-2,i=e[n];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(r.index),i=e[--n]})}}function ht(){return new ct}class dt extends at{addExtra(e,t,r,n=!0){if(!e)return;let{extra:i}=e;null==i&&(i={},e.extra=i),n?i[t]=r:Object.defineProperty(i,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){const r=this.input.charCodeAt(e+t.length);return!(ae(r)||55296==(64512&r))}return!1}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Oe(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Oe(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(y.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){const r={node:null};try{const n=e((e=null)=>{throw r.node=e,r});if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:n,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const n=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:n};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:i,optionalParametersLoc:s,voidPatternLoc:a}=e;if(!t)return!!(r||n||s||i||a);null!=r&&this.raise(y.InvalidCoverInitializedName,r),null!=n&&this.raise(y.DuplicateProto,n),null!=i&&this.raise(y.UnexpectedPrivateField,i),null!=s&&this.unexpected(s),null!=a&&this.raise(y.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){return H(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){const t=this.state.labels;this.state.labels=[];const r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const n=this.inModule;this.inModule=e;const i=this.scope,s=this.getScopeHandler();this.scope=new s(this,e);const a=this.prodParam;this.prodParam=new Ve;const o=this.classScope;this.classScope=new lt(this);const l=this.expressionScope;return this.expressionScope=new ut(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=n,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);const t=!this.inModule&&"commonjs"===this.options.sourceType;(t||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);let r=t?514:1;4&this.optionFlags&&(r|=512),this.scope.enter(r)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class ft{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class mt{constructor(e,t,n){this.type="",this.start=t,this.end=0,this.loc=new r(n),128&(null==e?void 0:e.optionFlags)&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const yt=mt.prototype;yt.__clone=function(){const e=new mt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){const n=t[r];"leadingComments"!==n&&"trailingComments"!==n&&"innerComments"!==n&&(e[n]=this[n])}return e};class gt extends dt{startNode(){const e=this.state.startLoc;return new mt(this,e.index,e)}startNodeAt(e){return new mt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){return e.type=t,e.end=r.index,e.loc.end=r,128&this.optionFlags&&(e.range[1]=r.index),4096&this.optionFlags&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,128&this.optionFlags&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,128&this.optionFlags&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){const{type:t,start:r,end:n,loc:i,range:s,name:a}=e,o=Object.create(yt);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=s,o.name=a,e.extra&&(o.extra=e.extra),o}cloneStringLiteral(e){const{type:t,start:r,end:n,loc:i,range:s,extra:a}=e,o=Object.create(yt);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=s,o.extra=a,o.value=e.value,o}}const Tt=e=>"ParenthesizedExpression"===e.type?Tt(e.expression):e;class xt extends gt{toAssignable(e,t=!1){var r,n;let i;switch(("ParenthesizedExpression"===e.type||null!=(r=e.extra)&&r.parenthesized)&&(i=Tt(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(y.InvalidParenthesizedAssignment,e):"MemberExpression"===i.type||this.isOptionalMemberExpression(i)||this.raise(y.InvalidParenthesizedAssignment,e):this.raise(y.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let r=0,n=e.properties.length,i=n-1;r<n;r++){var s;const n=e.properties[r],a=r===i;this.toAssignableObjectExpressionProp(n,a,t),a&&"RestElement"===n.type&&null!=(s=e.extra)&&s.trailingCommaLoc&&this.raise(y.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,null==(n=e.extra)?void 0:n.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(y.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(y.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,r){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?y.PatternHasAccessor:y.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");const n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),t||this.raise(y.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,t,r){const n=e.length-1;for(let i=0;i<=n;i++){const s=e[i];s&&(this.toAssignableListItem(e,i,r),"RestElement"===s.type&&(i<n?this.raise(y.RestTrailingComma,s):t&&this.raise(y.RestTrailingComma,t)))}}toAssignableListItem(e,t,r){const n=e[t];if("SpreadElement"===n.type){this.castNodeTo(n,"RestElement");const e=n.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,r)}else this.toAssignable(n,r)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every((e,r)=>"ObjectMethod"!==e.type&&(r===t||"SpreadElement"!==e.type)&&this.isAssignable(e))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>null===e||this.isAssignable(e));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){const t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();const t=this.parseBindingAtom();return"VoidPattern"===t.type&&this.raise(y.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,r){const n=1&r,i=[];let s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(12),n&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){let n=this.parseRestBinding();if((this.hasPlugin("flow")||2&r)&&(n=this.parseFunctionParamType(n)),i.push(n),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];if(2&r)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(y.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseBindingElement(r,e))}}return i}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(y.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const{type:e,startLoc:t}=this.state;if(21===e)return this.parseBindingRestProperty(this.startNode());const r=this.startNode();return 139===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),r.key=this.parsePrivateName()):this.parsePropertyName(r),r.method=!1,this.parseObjPropValue(r,t,!1,!1,!0,!1)}parseBindingElement(e,t){const r=this.parseMaybeDefault();(this.hasPlugin("flow")||2&e)&&this.parseFunctionParamType(r),t.length&&(r.decorators=t,this.resetStartLocationFromNode(r,t[0]));return this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(null!=e||(e=this.state.startLoc),t=null!=t?t:this.parseBindingAtom(),!this.eat(29))return t;const r=this.startNodeAt(e);return"VoidPattern"===t.type&&this.raise(y.VoidPatternInitializer,t),r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,r){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t,r=64,n=!1,i=!1,s=!1){var a;const o=e.type;if(this.isObjectMethod(e))return;const l=this.isOptionalMemberExpression(e);if(l||"MemberExpression"===o)return l&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(y.InvalidLhsOptionalChaining,e,{ancestor:t})),void(64!==r&&this.raise(y.InvalidPropertyBindingPattern,e));if("Identifier"===o){this.checkIdentifier(e,r,i);const{name:t}=e;return void(n&&(n.has(t)?this.raise(y.ParamDupe,e):n.add(t)))}"VoidPattern"===o&&"CatchClause"===t.type&&this.raise(y.VoidPatternCatchClauseParam,e);const c=this.isValidLVal(o,!(s||null!=(a=e.extra)&&a.parenthesized)&&"AssignmentExpression"===t.type,r);if(!0===c)return;if(!1===c){const n=64===r?y.InvalidLhs:y.InvalidLhsBinding;return void this.raise(n,e,{ancestor:t})}let p,u;"string"==typeof c?(p=c,u="ParenthesizedExpression"===o):[p,u]=c;const h="ArrayPattern"===o||"ObjectPattern"===o?{type:o}:t,d=e[p];if(Array.isArray(d))for(const e of d)e&&this.checkLVal(e,h,r,n,i,u);else d&&this.checkLVal(d,h,r,n,i,u)}checkIdentifier(e,t,r=!1){this.state.strict&&(r?me(e.name,this.inModule):fe(e.name))&&(64===t?this.raise(y.StrictEvalArguments,e,{referenceName:e.name}):this.raise(y.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(y.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(y.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?y.RestTrailingComma:y.ElementAfterRest,this.state.startLoc),!0)}}function bt(e){if(!e)throw new Error("Assert fail")}const St=m`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function vt(e){return"private"===e||"public"===e||"protected"===e}function Et(e){return"in"===e||"out"===e}function Pt(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:r}=e;return(!t||"StringLiteral"===r.type||!("TemplateLiteral"!==r.type||r.expressions.length>0))&&wt(e.object)}function At(e,t){var r;const{type:n}=e;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===n){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===n||"BooleanLiteral"===n)return!0;return!(!Ct(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:r,argument:n}=e;if("-"===r&&Ct(n,t))return!0}return!1}(e,t))||("TemplateLiteral"===n&&0===e.expressions.length||!!Pt(e))}function Ct(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function wt(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&wt(e.object)}const _t=m`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});const It=["minimal","fsharp","hack","smart"],kt=["^^","@@","^","%","#"];const Ot={estree:e=>class extends e{parse(){const e=x(super.parse());return 256&this.optionFlags&&(e.tokens=e.tokens.map(x)),e}parseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const n=this.estreeParseLiteral(r);return n.regex={pattern:e,flags:t},n}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}parseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){const r=this.startNodeAtNode(e);return r.expression=e,this.finishNodeAt(r,"ChainExpression",t)}directiveToStmt(e){const t=e.value;delete e.value,this.castNodeTo(t,"Literal"),t.raw=t.extra.raw,t.value=t.extra.expressionValue;const r=this.castNodeTo(e,"ExpressionStatement");return r.expression=t,r.directive=t.extra.rawValue,delete t.extra,r}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){const{start:t,end:r,loc:n,range:i,raw:s,value:a}=e,o=Object.create(e.constructor.prototype);return o.type="Literal",o.start=t,o.end=r,o.loc=n,o.range=i,o.raw=s,o.value=a,o}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,r,n,i){super.parseBlockBody(e,t,r,n,i);const s=e.directives.map(e=>this.directiveToStmt(e));e.body=s.concat(e.body),delete e.directives}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);return delete e.id,e.name=t,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){const r=super.parseLiteral(e,t);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t,r=!1){super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,n,i,s,a=!1){let o=this.startNode();o.kind=e.kind,o=super.parseMethod(o,t,r,n,i,s,a),delete o.kind;const{typeParameters:l}=e;l&&(delete e.typeParameters,o.typeParameters=l,this.resetStartLocationFromNode(o,l));const c=this.castNodeTo(o,"FunctionExpression");return e.value=c,"ClassPrivateMethod"===s&&(e.computed=!1),"ObjectMethod"===s?("method"===e.kind&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(...e){const t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(t,"PropertyDefinition"),t):t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(t,"PropertyDefinition"),t.computed=!1,t):t}parseClassAccessorProperty(e){const t=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")?(t.abstract&&this.hasPlugin("typescript")?(delete t.abstract,this.castNodeTo(t,"TSAbstractAccessorProperty")):this.castNodeTo(t,"AccessorProperty"),t):t}parseObjectProperty(e,t,r,n){const i=super.parseObjectProperty(e,t,r,n);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,t,r){return"Property"===e?"value":super.isValidLVal(e,t,r)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){const{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(n,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,r){"Property"!==e.type||"get"!==e.kind&&"set"!==e.kind?"Property"===e.type&&e.method?this.raise(y.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,r):this.raise(y.PatternHasAccessor,e.key)}finishCallExpression(e,t){const r=super.finishCallExpression(e,t);var n,i;"Import"===r.callee.type?(this.castNodeTo(r,"ImportExpression"),r.source=r.arguments[0],r.options=null!=(n=r.arguments[1])?n:null,r.attributes=null!=(i=r.arguments[1])?i:null,delete r.arguments,delete r.callee):"OptionalCallExpression"===r.type?this.castNodeTo(r,"CallExpression"):r.optional=!1;return r}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const r=this.state.lastTokStartLoc,n=super.parseExport(e,t);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":1===n.specifiers.length&&"ExportNamespaceSpecifier"===n.specifiers[0].type&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var i;const{declaration:e}=n;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===n.start&&this.resetStartLocation(n,r)}}return n}stopParseSubscript(e,t){const r=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(r,e.loc.end):r}parseMember(e,t,r,n,i){const s=super.parseMember(e,t,r,n,i);return"OptionalMemberExpression"===s.type?this.castNodeTo(s,"MemberExpression"):s.optional=!1,s}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}castNodeTo(e,t){const r=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(r),r}cloneIdentifier(e){const t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,r){return x(super.finishNodeAt(e,t,r))}finishNode(e,t){const r=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(r),r}resetStartLocation(e,t){super.resetStartLocation(e,t),x(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),x(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Me.UnterminatedJsxContent,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(r)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(142,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:ke(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let r;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=e?"\n":"\r\n"):r=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(y.UnterminatedString,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):ke(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,r=!1;for(;t++<10&&this.state.pos<this.length&&!(r=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){const t=this.input.slice(e,this.state.pos),r=_e[t];if(++this.state.pos,r)return r}}return this.state.pos=e,"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(ae(e)||45===e);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(141)?e.name=this.state.value:$(this.state.type)?e.name=J(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;const r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(S.brace),this.next(),e=this.jsxParseExpressionContainer(e,S.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(Me.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Me.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(S.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(S.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(S.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){const t=this.startNodeAt(e),r=[],n=this.jsxParseOpeningElementAt(e);let i=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 142:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const e=this.startNode();this.setContext(S.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(e)):r.push(this.jsxParseExpressionContainer(e,S.j_expr));break}default:this.unexpected()}Be(n)&&!Be(i)&&null!==i?this.raise(Me.MissingClosingTagFragment,i):!Be(n)&&Be(i)?this.raise(Me.MissingClosingTagElement,i,{openingTagName:Fe(n.name)}):Be(n)||Be(i)||Fe(i.name)!==Fe(n.name)&&this.raise(Me.MissingClosingTagElement,i,{openingTagName:Fe(n.name)})}if(Be(n)?(t.openingFragment=n,t.closingFragment=i):(t.openingElement=n,t.closingElement=i),t.children=r,this.match(47))throw this.raise(Me.UnwrappedAdjacentJSXElements,this.state.startLoc);return Be(n)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t!==S.j_expr){if(t===S.j_oTag||t===S.j_cTag){if(se(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(144);if((34===e||39===e)&&t===S.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(143);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:t,type:r}=this.state;if(56===r&&143===e)t.splice(-2,2,S.j_cTag),this.state.canStartJSXElement=!1;else if(143===r)t.push(S.j_oTag);else if(144===r){const r=t[t.length-1];r===S.j_oTag&&56===e||r===S.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===S.j_expr):(this.setContext(S.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=M[r]}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return ve}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(e,t){134!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=we.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(Pe.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return r.params=i.params,r.rest=i.rest,r.this=i._this,this.expect(11),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(Pe.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),r=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(Pe.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,Pe.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),r.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let n=null,i=!1;return r.forEach(e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(i&&this.raise(Pe.DuplicateDeclareModuleExports,e),"ES"===n&&this.raise(Pe.AmbiguousDeclareModuleKind,e),n="CommonJS",i=!0):("CommonJS"===n&&this.raise(Pe.AmbiguousDeclareModuleKind,e),n="ES")}),e.kind=n||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(Pe.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:Ce[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?"ExportNamedDeclaration"===(e=this.parseExport(e,null)).type?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration"):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);return this.castNodeTo(t,"DeclareTypeAlias"),t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,!0);return this.castNodeTo(t,"DeclareOpaqueType"),t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(Pe.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,r){Ee.has(e)&&this.raise(r?Pe.AssignReservedType:Pe.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=!1){const t=this.state.startLoc,r=this.startNode(),n=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return r.name=i.name,r.variance=n,r.bound=i.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(Pe.MissingTypeParamDefault,t),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let r=!1;do{const e=this.flowParseTypeParameter(r);t.params.push(e),e.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()===S.brace)return e();{const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}flowParseTypeParameterInstantiationInExpression(){if(47===this.reScan_lt())return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);const t=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=t}),this.state.inType=t,this.state.inType||this.curContext()!==S.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return;const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:r,allowProto:n,allowInexact:i}){const s=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,l;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let c=!1;for(t&&this.match(6)?(this.expect(6),o=9,l=!0):(this.expect(5),o=8,l=!1),a.exact=l;!this.match(o);){let t=!1,s=null,o=null;const p=this.startNode();if(n&&this.isContextual(118)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),s=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),t=!0)}const u=this.flowParseVariance();if(this.eat(0))null!=s&&this.unexpected(s),this.eat(0)?(u&&this.unexpected(u.loc.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,t))):a.indexers.push(this.flowParseObjectTypeIndexer(p,t,u));else if(this.match(10)||this.match(47))null!=s&&this.unexpected(s),u&&this.unexpected(u.loc.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(p,t));else{let e="init";if(this.isContextual(99)||this.isContextual(104)){H(this.lookahead().type)&&(e=this.state.value,this.next())}const n=this.flowParseObjectTypeProperty(p,t,s,u,e,r,null!=i?i:!l);null===n?(c=!0,o=this.state.lastTokStartLoc):a.properties.push(n)}this.flowObjectTypeSemicolon(),!o||this.match(8)||this.match(9)||this.raise(Pe.UnexpectedExplicitInexactInObject,o)}this.expect(o),r&&(a.inexact=c);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,p}flowParseObjectTypeProperty(e,t,r,n,i,s,a){if(this.eat(21)){return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?a||this.raise(Pe.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Pe.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(Pe.InexactVariance,n),null):(s||this.raise(Pe.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),n&&this.raise(Pe.SpreadVariance,n),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"))}{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=i;let a=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(Pe.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?Pe.GetterMayNotHaveThisParam:Pe.SetterMayNotHaveThisParam,e.value.this),r!==t&&this.raise("get"===e.kind?y.BadGetterArity:y.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(y.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let r=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=r,t.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(t,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){const r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,r=!1,n=null;const i=this.startNode(),s=this.lookahead(),a=78===this.state.type;return 14===s.type||17===s.type?(a&&!e&&this.raise(Pe.ThisParamMustBeFirst,i),t=this.parseIdentifier(a),this.eat(17)&&(r=!0,a&&this.raise(Pe.ThisParamMayNotBeOptional,i)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),i.name=t,i.optional=r,i.typeAnnotation=n,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null,r=null;for(this.match(78)&&(r=this.flowParseFunctionTypeParam(!0),r.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(e,r)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let r,n,i=!1;const s=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=s,n;case 47:{const e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),r=this.flowParseFunctionTypeParams(),e.params=r.params,e.rest=r.rest,e.this=r._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,"FunctionTypeAnnotation")}case 10:{const e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(U(this.state.type)||this.match(78)){const e=this.lookahead().type;i=17!==e&&14!==e}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=s,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),n;this.eat(12)}return r=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),e.params=r.params,e.rest=r.rest,e.this=r._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t);throw this.raise(Pe.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(t,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(t,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(t,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if($(this.state.type)){const e=J(this.state.type);return this.next(),super.createIdentifier(t,e)}if(U(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const n=this.startNodeAt(e),i=this.eat(18);r=r||i,this.expect(0),!i&&this.match(3)?(n.elementType=t,this.next(),t=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=t,n.indexType=this.flowParseType(),this.expect(3),r?(n.optional=i,t=this.finishNode(n,"OptionalIndexedAccessType")):t=this.finishNode(n,"IndexedAccessType"))}return t}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t,r=!1){t?this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,r)):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t,r=!1){if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(K(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,r){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||U(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(U(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){const{type:e}=this.state;return 126===e||q(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return 126===e||q(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(r),e}this.expect(17);const n=this.state.clone(),i=this.state.noArrowAt,s=this.startNodeAt(t);let{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[l,c]=this.getArrowLikeExpressions(a);if(o||c.length>0){const e=[...i];if(c.length>0){this.state=n,this.state.noArrowAt=e;for(let t=0;t<c.length;t++)e.push(c[t].start);({consequent:a,failed:o}=this.tryParseConditionalConsequent()),[l,c]=this.getArrowLikeExpressions(a)}o&&l.length>1&&this.raise(Pe.AmbiguousConditionalArrow,n.startLoc),o&&1===l.length&&(this.state=n,e.push(l[0].start),this.state.noArrowAt=e,({consequent:a,failed:o}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=i,this.expect(14),s.test=e,s.consequent=a,s.alternate=this.forwardNoArrowParamsConversionAt(s,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(s,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e],n=[];for(;0!==r.length;){const e=r.pop();"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):n.push(e),r.push(e.body)):"ConditionalExpression"===e.type&&(r.push(e.consequent),r.push(e.alternate))}return t?(n.forEach(e=>this.finishArrowValidation(e)),[n,[]]):function(e,t){const r=[],n=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?r:n).push(e[i]);return[r,n]}(n,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}parseParenItem(e,t){const r=super.parseParenItem(e,t);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(e)),this.match(14)){const e=this.startNodeAt(t);return e.expression=r,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,"TypeCastExpression")}return r}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.isContextual(126)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){const{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(Pe.DeclareClassElement,n):t.value&&this.raise(Pe.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(y.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):!function(e,t,r){return 64===e&&64===t&&se(r)}(e,t,this.input.charCodeAt(this.state.pos+2))?super.getTokenFromCode(e):(this.state.pos+=2,this.readIterator()):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){const r=e[t];"TypeCastExpression"===(null==r?void 0:r.type)&&(e[t]=this.typeCastToParameter(r))}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let n=0;n<e.length;n++){var r;const i=e[n];!i||"TypeCastExpression"!==i.type||null!=(r=i.extra)&&r.parenthesized||!(e.length>1)&&t||this.raise(Pe.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,r,n){const i=super.parseArrayLike(e,t,r,n);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,r){return"TypeCastExpression"===e||super.isValidLVal(e,t,r)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,n,i,s){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,n,i,s),t.params&&i){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Pe.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&i&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(Pe.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,r,n){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,n)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const r=t[0];this.isThisParam(r)&&"get"===e.kind?this.raise(Pe.GetterMayNotHaveThisParam,r):this.isThisParam(r)&&this.raise(Pe.SetterMayNotHaveThisParam,r)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,n,i,s,a){let o;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!s&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,r,n,i,s,a);return o&&((l.value||l).typeParameters=o),l}parseFunctionParamType(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(Pe.PatternIsOptional,e),this.isThisParam(e)&&this.raise(Pe.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(Pe.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(Pe.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(Pe.TypeBeforeInitializer,r.typeAnnotation),r}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Pe.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,r){t.local=Ae(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,n){if(super.applyImportPhase(e,t,r,n),t){if(!r&&this.match(65))return;e.exportKind="type"===r?r:"value"}else"type"===r&&this.match(55)&&this.unexpected(),e.importKind="type"===r||"typeof"===r?r:"value"}parseImportSpecifier(e,t,r,n,i){const s=e.imported;let a=null;"Identifier"===s.type&&("type"===s.name?a="type":"typeof"===s.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===a||K(this.state.type)?(e.imported=s,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=a,e.local=this.cloneIdentifier(t))}else{if(null!==a&&K(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=a;else{if(t)throw this.raise(y.ImportBindingIsString,e,{importName:s.value});e.imported=s,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=this.cloneIdentifier(e.imported))}const l=Ae(e);return r&&l&&this.raise(Pe.ImportTypeShorthandOnlyInPureImport,e),(r||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!o||r||l||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){const r=e.kind;"get"!==r&&"set"!==r&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r;let n,i=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(i=this.state.clone(),n=this.tryParse(()=>super.parseMaybeAssign(e,t),i),!n.error)return n.node;const{context:r}=this.state,s=r[r.length-1];s!==S.j_oTag&&s!==S.j_expr||r.pop()}if(null!=(r=n)&&r.error||this.match(47)){var s,a;let r;i=i||this.state.clone();const o=this.tryParse(n=>{var i;r=this.flowParseTypeParameterDeclaration();const s=this.forwardNoArrowParamsConversionAt(r,()=>{const n=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(n,r),n});null!=(i=s.extra)&&i.parenthesized&&n();const a=this.maybeUnwrapTypeCastExpression(s);return"ArrowFunctionExpression"!==a.type&&n(),a.typeParameters=r,this.resetStartLocationFromNode(a,r),s},i);let l=null;if(o.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(o.node).type){if(!o.error&&!o.aborted)return o.node.async&&this.raise(Pe.UnexpectedTypeParameterBeforeAsyncArrowFunction,r),o.node;l=o.node}if(null!=(s=n)&&s.node)return this.state=n.failState,n.node;if(l)return this.state=o.failState,l;if(null!=(a=n)&&a.thrown)throw n.error;if(o.thrown)throw o.error;throw this.raise(Pe.UnexpectedTokenAfterTypeParameter,r)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse(()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r,n=!0){if(!r||!this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(Pe.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,r,n)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,r){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(t.index)){this.next();const r=this.startNodeAt(t);r.callee=e,r.arguments=super.parseCallExpressionArguments(),e=this.finishNode(r,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const n=this.state.clone(),i=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),n);if(!i.error&&!i.aborted)return i.node;const s=this.tryParse(()=>super.parseSubscripts(e,t,r),n);if(s.node&&!s.error)return s.node;if(i.node)return this.state=i.failState,i.node;if(s.node)return this.state=s.failState,s.node;throw i.error||s.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,r)return n.stop=!0,e;this.next();const i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}if(!r&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const r=this.startNodeAt(t);r.callee=e;const i=this.tryParse(()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(),n.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,n.optionalChainMember)));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(Pe.UnterminatedFlowComment,this.state.curPosition()),r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Pe.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();return void(e&&(this.state.pos+=e,this.state.hasFlowComment=!0))}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(y.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(Pe.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?Pe.EnumInvalidMemberInitializerSymbolType:Pe.EnumInvalidMemberInitializerPrimaryType:Pe.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(Pe.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(Pe.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const r=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 134:{const r=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}case 85:case 86:{const r=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:r.loc.start,value:r}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:n}=t;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}const s=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),l=a.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(Pe.EnumInvalidMemberName,a,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),r.has(l)&&this.raise(Pe.EnumDuplicateMemberName,a,{memberName:l,enumName:e}),r.add(l);const c={enumName:e,explicitType:t,memberName:l};switch(s.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"boolean"),s.init=o.value,n.booleanMembers.push(this.finishNode(s,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"number"),s.init=o.value,n.numberMembers.push(this.finishNode(s,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"string"),s.init=o.value,n.stringMembers.push(this.finishNode(s,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,c);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,c);break;default:n.defaultedMembers.push(this.finishNode(s,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:r}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!U(this.state.type))throw this.raise(Pe.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.raise(Pe.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){const r=t.name,n=t.loc.start,i=this.flowEnumParseExplicitType({enumName:r});this.expect(5);const{members:s,hasUnknownMembers:a}=this.flowEnumMembers({enumName:r,explicitType:i});switch(e.hasUnknownMembers=a,i){case"boolean":return e.explicitType=!0,e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=s.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=s.booleanMembers.length,a=s.numberMembers.length,o=s.stringMembers.length,l=s.defaultedMembers.length;if(i||a||o||l){if(i||a){if(!a&&!o&&i>=l){for(const e of s.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!o&&a>=l){for(const e of s.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name});return e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(Pe.EnumInconsistentMemberValues,n,{enumName:r}),t()}return e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody")}return t()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:St.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:St.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:St.InvalidModifierOnTypeParameter})}getScopeHandler(){return Re}tsIsIdentifier(){return U(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,r){if(!U(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const n=this.state.value;if(e.includes(n)){if(r&&this.match(106))return;if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:r,errorTemplate:n=St.InvalidModifierOnTypeMember},i){const s=(e,t,r,n)=>{t===r&&i[n]&&this.raise(St.InvalidModifiersOrder,e,{orderedModifiers:[r,n]})},a=(e,t,r,n)=>{(i[r]&&t===n||i[n]&&t===r)&&this.raise(St.IncompatibleModifiers,e,{modifiers:[r,n]})};for(;;){const{startLoc:o}=this.state,l=this.tsParseModifier(e.concat(null!=t?t:[]),r,i.static);if(!l)break;vt(l)?i.accessibility?this.raise(St.DuplicateAccessibilityModifier,o,{modifier:l}):(s(o,l,l,"override"),s(o,l,l,"static"),s(o,l,l,"readonly"),i.accessibility=l):Et(l)?(i[l]&&this.raise(St.DuplicateModifier,o,{modifier:l}),i[l]=!0,s(o,l,"in","out")):(hasOwnProperty.call(i,l)?this.raise(St.DuplicateModifier,o,{modifier:l}):(s(o,l,"static","readonly"),s(o,l,"static","override"),s(o,l,"override","readonly"),s(o,l,"abstract","override"),a(o,l,"declare","override"),a(o,l,"static","abstract")),i[l]=!0),null!=t&&t.includes(l)&&this.raise(n,o,{modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t,r){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,r))}tsParseDelimitedListWorker(e,t,r,n){const i=[];let s=-1;for(;!this.tsIsListTerminator(e);){s=-1;const n=t();if(null==n)return;if(i.push(n),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(12))}s=this.state.lastTokStartLoc.index}return n&&(n.value=s),i}tsParseBracketedList(e,t,r,n,i){n||(r?this.expect(0):this.expect(47));const s=this.tsParseDelimitedList(e,t,i);return r?this.expect(3):this.expect(48),s}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(St.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){const e=this.startNode();this.expect(5);const t=this.startNode();return this.isContextual(76)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,76),this.expect(14),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(12),this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const e=this.startNode(),t=[];for(this.expect(5);!this.match(8);){const e=this.state.type;U(e)||134===e?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=t,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let t;if(1&e&&this.match(78))if(2&e)t=this.parseIdentifier(!0);else{const e=this.startNode();this.next(),t=this.finishNode(e,"ThisExpression")}else t=this.parseIdentifier(!!(1&e));for(;this.eat(16);){const r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(!!(1&e)),t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();const r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(St.EmptyTypeParameters,t),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const r=19===e,n="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(St.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!U(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){t&&this.raise(St.ReadonlyForMethodSignature,e);const r=e;r.kind&&this.match(47)&&this.raise(St.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();const n="parameters",i="typeAnnotation";if("get"===r.kind)r[n].length>0&&(this.raise(y.BadGetterArity,this.state.curPosition()),this.isThisParam(r[n][0])&&this.raise(St.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[n].length)this.raise(y.BadSetterArity,this.state.curPosition());else{const e=r[n][0];this.isThisParam(e)&&this.raise(St.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(St.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(St.SetAccessorCannotHaveRestParameter,this.state.curPosition())}r[i]&&this.raise(St.SetAccessorCannotHaveReturnType,r[i])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}{const r=e;t&&(r.readonly=!0);const n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);const t=this.tsTryParseIndexSignature(e);return t||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e),this.match(10)||this.match(47)||this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){const e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);{const t=this.startNode();t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,"TSTypeParameter")}return e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{const{type:r}=e;!t||"TSRestType"===r||"TSOptionalType"===r||"TSNamedTupleMember"===r&&e.optional||this.raise(St.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===r&&e.optional||"TSOptionalType"===r)}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc,t=this.eat(21),{startLoc:r}=this.state;let n,i,s,a;const o=K(this.state.type)?this.lookaheadCharCode():null;if(58===o)n=!0,s=!1,i=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(63===o){s=!0;const e=this.state.value,t=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(n=!0,i=this.createIdentifier(this.startNodeAt(r),e),this.expect(17),this.expect(14),a=this.tsParseType()):(n=!1,a=t,this.expect(17))}else a=this.tsParseType(),s=this.eat(17),n=this.eat(14);if(n){let e;i?(e=this.startNodeAt(r),e.optional=s,e.label=i,e.elementType=a,this.eat(17)&&(e.optional=!0,this.raise(St.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(r),e.optional=s,this.raise(St.InvalidTupleMemberLabel,a),e.label=a,e.elementType=this.tsParseType()),a=this.finishNode(e,"TSNamedTupleMember")}else if(s){const e=this.startNodeAt(r);e.typeAnnotation=a,a=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=a,a=this.finishNode(t,"TSRestType")}return a}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,r)),this.finishNode(r,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){{const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();return 135!==t.type&&136!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(U(e)||88===e||84===e){const t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:e}=this.state;let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const r=this.startNodeAt(e);r.elementType=t,this.expect(3),t=this.finishNode(r,"TSArrayType")}else{const r=this.startNodeAt(e);r.objectType=t,r.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(r,"TSIndexedAccessType")}return t}tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(St.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,r){const n=this.startNode(),i=this.eat(r),s=[];do{s.push(t())}while(this.eat(r));return 1!==s.length||i?(n.types=s,this.finishNode(n,e)):s[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(U(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch(e){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{const t=this.startNode();this.expect(e);const r=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,r.typeAnnotation=null,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return n?(r.parameterName=this.parseIdentifier(),r.asserts=n,r.typeAnnotation=null,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const s=this.tsParseTypeAnnotation(!1);return r.parameterName=i,r.typeAnnotation=s,r.asserts=n,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!U(this.state.type)&&!this.match(78))&&(e&&this.raise(y.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){bt(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(St.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",()=>{{const e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}});return r.length||this.raise(St.EmptyHeritageClauseType,t,{token:e}),r}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),U(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(St.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()===S.brace)return e();{const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){const e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const n=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==n.type&&this.raise(St.ImportAliasHasImportType,n),e.moduleReference=n,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),r=e();return this.state=t,r}tsTryParseAndCatch(e){const t=this.tryParse(t=>e()||t());if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;const t=this.state.type;return this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,this.state.value,!0));case 107:if(this.isUsing())return this.raise(St.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(St.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(U(t))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,r){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case"global":if(this.match(5)){this.scope.enter(1024),this.prodParam.enter(0);const r=e;return r.kind="global",e.global=!0,r.id=t,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,r)}}tsParseDeclaration(e,t,r,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||U(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(U(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&U(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&U(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const r=this.tsTryParseAndCatch(()=>{const t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});return this.state.maybeInArrowParameters=t,r?super.parseArrowExpression(r,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),0===e.params.length?this.raise(St.EmptyTypeArguments,e):this.state.inType||this.curContext()!==S.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(e,t){const r=t.length?t[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);const i=n.accessibility,s=n.override,a=n.readonly;4&e||!(i||a||s)||this.raise(St.UnexpectedParameterModifier,r);const o=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(o);const l=this.parseMaybeDefault(o.loc.start,o);if(i||a||s){const e=this.startNodeAt(r);return t.length&&(e.decorators=t),i&&(e.accessibility=i),a&&(e.readonly=a),s&&(e.override=s),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(St.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(St.PatternIsOptional,t)}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,r=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const n="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,n):"TSDeclareFunction"===n&&this.state.isAmbientContext&&(this.raise(St.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,n,r):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,r))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(St.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,r,n){const i=super.parseArrayLike(e,t,r,n);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,r,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return n.stop=!0,e;n.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let s;const a=this.tsTryParseAndCatch(()=>{if(!r&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return n.stop=!0,e}const a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(i&&!this.match(10))return void(s=this.state.curPosition());if(z(this.state.type)){const r=super.parseTaggedTemplateExpression(e,t,n);return r.typeParameters=a,r}if(!r&&this.eat(10)){const r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=a,n.optionalChainMember&&(r.optional=i),this.finishCallExpression(r,n.optionalChainMember)}const o=this.state.type;if(48===o||52===o||10!==o&&W(o)&&!this.hasPrecedingLineBreak())return;const l=this.startNodeAt(t);return l.expression=e,l.typeParameters=a,this.finishNode(l,"TSInstantiationExpression")});if(s&&this.unexpected(s,10),a)return"TSInstantiationExpression"===a.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(St.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(a.expression=super.stopParseSubscript(e,n))),a}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:r}=e;"TSInstantiationExpression"!==r.type||null!=(t=r.extra)&&t.parenthesized||(e.typeParameters=r.typeParameters,e.callee=r.expression)}parseExprOp(e,t,r){let n;if(X(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){const i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(y.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,n){this.state.isAmbientContext||super.checkReservedWord(e,t,r,n)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(St.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,n){super.applyImportPhase(e,t,r,n),t?e.exportKind="type"===r?"type":"value":e.importKind="type"===r||"typeof"===r?r:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let t;if(U(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const r=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,r);t=super.parseImportSpecifiersAndAfter(e,r)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(St.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){const t=e;this.next();let r=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?r=this.parseMaybeImportPhase(t,!1):t.importKind="value";return this.tsParseImportEqualsDeclaration(t,r,!0)}if(this.eat(29)){const t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){const t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,r=!1){const{isAmbientContext:n}=this.state,i=super.parseVarStatement(e,t,r||n);if(!n)return i;if(!e.declare&&("using"===t||"await using"===t))return this.raiseOverwrite(St.UsingDeclarationInAmbientContext,e,t),i;for(const{id:e,init:r}of i.declarations)r&&("var"===t||"let"===t||e.typeAnnotation?this.raise(St.InitializerNotAllowedInAmbientContext,r):At(r,this.hasPlugin("estree"))||this.raise(St.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,r));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some(t=>vt(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,r){const n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:St.InvalidModifierOnTypeParameterPositions},t);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,n)&&this.raise(St.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,r,n){const i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(St.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(St.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(St.IndexSignatureHasDeclare,t),void(t.override&&this.raise(St.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(St.NonAbstractClassHasAbstractMethod,t),t.override&&(r.hadSuperClass||this.raise(St.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,r,n)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(St.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(St.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,r){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,r):void 0)||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(r),e}return super.parseConditional(e,t,r)}parseParenItem(e,t){const r=super.parseParenItem(e,t);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(e)),this.match(14)){const r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));const t=this.state.startLoc,r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(St.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const n=U(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?(("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||r)&&(e.exportKind="type"),r&&"TSImportEqualsDeclaration"!==n.type&&(this.resetStartLocation(n,t),n.declare=!0),n):null}parseClassId(e,t,r,n){if((!t||r)&&this.isContextual(113))return;super.parseClassId(e,t,r,e.declare?1024:8331);const i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(St.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(St.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(St.PrivateElementHasAbstract,e),e.accessibility&&this.raise(St.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(St.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,n,i,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&i&&this.raise(St.ConstructorHasTypeParameters,a);const{declare:o=!1,kind:l}=t;!o||"get"!==l&&"set"!==l||this.raise(St.DeclareAccessor,t,{kind:l}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,r,n,i,s)}pushClassPrivateMethod(e,t,r,n){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,r,n)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&null==e.value.body||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,r,n,i,s,a){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,r,n,i,s,a)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,n,i,s,a;let o,l,c,p;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(o=this.state.clone(),l=this.tryParse(()=>super.parseMaybeAssign(e,t),o),!l.error)return l.node;const{context:r}=this.state,n=r[r.length-1];n!==S.j_oTag&&n!==S.j_expr||r.pop()}if(!(null!=(r=l)&&r.error||this.match(47)))return super.parseMaybeAssign(e,t);o&&o!==this.state||(o=this.state.clone());const u=this.tryParse(r=>{var n,i;p=this.tsParseTypeParameters(this.tsParseConstModifier);const s=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==s.type||null!=(n=s.extra)&&n.parenthesized)&&r(),0!==(null==(i=p)?void 0:i.params.length)&&this.resetStartLocationFromNode(s,p),s.typeParameters=p,s},o);if(!u.error&&!u.aborted)return p&&this.reportReservedArrowTypeParam(p),u.node;if(!l&&(bt(!this.hasPlugin("jsx")),c=this.tryParse(()=>super.parseMaybeAssign(e,t),o),!c.error))return c.node;if(null!=(n=l)&&n.node)return this.state=l.failState,l.node;if(u.node)return this.state=u.failState,p&&this.reportReservedArrowTypeParam(p),u.node;if(null!=(i=c)&&i.node)return this.state=c.failState,c.node;throw(null==(s=l)?void 0:s.error)||u.error||(null==(a=c)?void 0:a.error)}reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(St.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse(e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(St.UnexpectedTypeCastInParameter,e):this.raise(St.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==r||!t)&&["expression",!0];default:return super.isValidLVal(e,t,r)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){const r=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const n=super.parseMaybeDecoratorArguments(e,t);return n.typeParameters=r,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(St.TypeAnnotationAfterAssign,r.typeAnnotation),r}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,t,r){const n=e[t];"TSTypeCastExpression"===n.type&&(e[t]=this.typeCastToParameter(n)),super.toAssignableListItem(e,t,r)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const{isAmbientContext:t,strict:r}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=r}}parseClass(e,t,r){const n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(St.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,r,n,i,s,a){const o=super.parseMethod(e,t,r,n,i,s,a);if(o.abstract||"TSAbstractMethodDefinition"===o.type){if((this.hasPlugin("estree")?o.value:o).body){const{key:e}=o;this.raise(St.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,r,n){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!1,r),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,r,n))}parseImportSpecifier(e,t,r,n,i){return!t&&n?(this.parseTypeOnlyImportExportSpecifier(e,!0,r),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,r,n,r?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,r){const n=t?"imported":"local",i=t?"local":"exported";let s,a=e[n],o=!1,l=!0;const c=a.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const r=this.parseIdentifier();K(this.state.type)?(o=!0,a=e,s=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(s=r,l=!1)}else K(this.state.type)?(l=!1,s=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=e)}else K(this.state.type)&&(o=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&r&&this.raise(t?St.TypeModifierIsUsedInTypeImports:St.TypeModifierIsUsedInTypeExports,c),e[n]=a,e[i]=s;e[t?"importKind":"exportKind"]=o?"type":"value",l&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=this.cloneIdentifier(e[n])),t&&this.checkIdentifier(e[i],o?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":return void(null!=e.directive||(e.directive=void 0));case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":return null!=e.decorators||(e.decorators=[]),null!=e.optional||(e.optional=!1),void(null!=e.typeAnnotation||(e.typeAnnotation=void 0));case"TSParameterProperty":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":return null!=e.declare||(e.declare=!1),null!=e.returnType||(e.returnType=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"Property":return void(null!=e.optional||(e.optional=!1));case"TSMethodSignature":case"TSPropertySignature":null!=e.optional||(e.optional=!1);case"TSIndexSignature":return null!=e.accessibility||(e.accessibility=void 0),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":null!=e.declare||(e.declare=!1),null!=e.definite||(e.definite=!1),null!=e.readonly||(e.readonly=!1),null!=e.typeAnnotation||(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),void(null!=e.optional||(e.optional=!1));case"ClassExpression":null!=e.id||(e.id=null);case"ClassDeclaration":return null!=e.abstract||(e.abstract=!1),null!=e.declare||(e.declare=!1),null!=e.decorators||(e.decorators=[]),null!=e.implements||(e.implements=[]),null!=e.superTypeArguments||(e.superTypeArguments=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"TSTypeAliasDeclaration":case"VariableDeclaration":return void(null!=e.declare||(e.declare=!1));case"VariableDeclarator":return void(null!=e.definite||(e.definite=!1));case"TSEnumDeclaration":return null!=e.const||(e.const=!1),void(null!=e.declare||(e.declare=!1));case"TSEnumMember":return void(null!=e.computed||(e.computed=!1));case"TSImportType":return null!=e.qualifier||(e.qualifier=null),void(null!=e.options||(e.options=null));case"TSInterfaceDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.extends||(e.extends=[]));case"TSMappedType":return null!=e.optional||(e.optional=!1),void(null!=e.readonly||(e.readonly=void 0));case"TSModuleDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.global||(e.global="global"===e.kind));case"TSTypeParameter":return null!=e.const||(e.const=!1),null!=e.in||(e.in=!1),void(null!=e.out||(e.out=!1))}}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this.startNode();if(this.next(),U(this.state.type)){const e=this.parseIdentifierName(),r=this.createIdentifier(t,e);if(this.castNodeTo(r,"V8IntrinsicIdentifier"),this.match(10))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(133)){const t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let r=e;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=t,r}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,n){void 0!==e&&super.checkReservedWord(e,t,r,n)}cloneIdentifier(e){const t=super.cloneIdentifier(e);return"Placeholder"===t.type&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return"Placeholder"===e.type?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return"Placeholder"===e||super.isValidLVal(e,t,r)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;const r=this.nextTokenStart();return 37===this.input.charCodeAt(r)&&37===this.input.charCodeAt(r+1)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var r;if("Placeholder"!==t.type||null!=(r=t.extra)&&r.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const r=e;return r.label=this.finishPlaceholder(t,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}this.semicolon();const n=e;return n.name=t.name,this.finishPlaceholder(n,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){const n=t?"ClassDeclaration":"ClassExpression";this.next();const i=this.state.strict,s=this.parsePlaceholder("Identifier");if(s){if(!(this.match(81)||this.match(133)||this.match(5))){if(r||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,n);throw this.raise(_t.ClassNameIsRequired,this.state.startLoc)}e.id=s}else this.parseClassId(e,t,r);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,n)}parseExport(e,t){const r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);const n=e;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const i=this.startNode();return i.exported=r,n.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(n,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(J(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var r;return!(null==(r=e.specifiers)||!r.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter(e=>"Placeholder"===e.exported.type)),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const r=this.startNodeAtNode(t);if(r.local=t,e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12)){this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)}return this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(_t.UnexpectedSpace,this.state.lastTokEndLoc)}}},Nt=Object.keys(Ot);class Lt extends xt{checkProto(e,t,r,n){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return r;const i=e.key;return"__proto__"===("Identifier"===i.type?i.name:i.value)?t?(this.raise(y.RecordNoProto,i),!0):(r&&(n?null===n.doubleProtoLoc&&(n.doubleProtoLoc=i.loc.start):this.raise(y.DuplicateProto,i)),!0):r}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(y.ParseExpressionEmptyInput,this.state.startLoc);const e=this.parseExpression();if(!this.match(140))throw this.raise(y.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,256&this.optionFlags&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){const t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){const n=this.startNodeAt(t);for(n.expressions=[r];this.eat(12);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){const r=this.state.startLoc,n=this.isContextual(108);if(n&&this.prodParam.hasYield){this.next();let e=this.parseYield(r);return t&&(e=t.call(this,e,r)),e}let i;e?i=!1:(e=new ft,i=!0);const{type:s}=this.state;(10===s||U(s))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,r)),(o=this.state.type)>=29&&o<=33){const t=this.startNodeAt(r),n=this.state.value;if(t.operator=n,this.match(29)){this.toAssignable(a,!0),t.left=a;const n=r.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=n&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=n&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=n&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=n&&(e.voidPatternLoc=null)}else t.left=a;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(t,"AssignmentExpression")),t}var o;if(i&&this.checkExpressionErrors(e,!0),n){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?W(e):W(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(y.YieldNotInGeneratorFunction,r),this.parseYield(r)}return a}parseMaybeConditional(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprOps(e);return this.shouldExitDescending(n,r)?n:this.parseConditional(n,t,e)}parseConditional(e,t,r){if(this.eat(17)){const r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(n,r)?n:this.parseExprOp(n,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(r>=X(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(y.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const n=this.state.type;if((i=n)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=X(n);if(i>r){if(39===n){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const s=this.startNodeAt(t);s.left=e,s.operator=this.state.value;const a=41===n||42===n,o=40===n;if(o&&(i=X(42)),this.next(),39===n&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(y.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);s.right=this.parseExprOpRightExpr(n,i);const l=this.finishNode(s,a||o?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(o&&(41===c||42===c)||a&&40===c)throw this.raise(y.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,r)}}var i;return e}parseExprOpRightExpr(e,t){const r=this.state.startLoc;if(39===e){switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if("smart"===this.getPluginOption("pipelineOperator","proposal"))return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(y.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)})}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,r=this.parseMaybeAssign();return!p.has(r.type)||null!=(e=r.extra)&&e.parenthesized||this.raise(y.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(y.PipeTopicUnused,t),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(y.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const r=this.state.startLoc,n=this.isContextual(96);if(n&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(r);return t||this.checkExponentialAfterUnary(e),e}const i=this.match(34),s=this.startNode();if(a=this.state.type,F[a]){s.operator=this.state.value,s.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const r=this.match(89);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){const e=s.argument;"Identifier"===e.type?this.raise(y.StrictDelete,s):this.hasPropertyAsPrivateName(e)&&this.raise(y.DeletePrivateField,s)}if(!i)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}var a;const o=this.parseUpdate(s,i,e);if(n){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?W(e):W(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(y.AwaitNotInAsyncContext,r),this.parseAwait(r)}return o}parseUpdate(e,t,r){if(t){const t=e;return this.checkLVal(t.argument,this.finishNode(t,"UpdateExpression")),e}const n=this.state.startLoc;let i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;for(;Y(this.state.type)&&!this.canInsertSemicolon();){const e=this.startNodeAt(n);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,"UpdateExpression"))}return i}parseExprSubscripts(e){const t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,r)?n:this.parseSubscripts(n,t)}parseSubscripts(e,t,r){const n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,n),n.maybeAsyncArrow=!1}while(!n.stop);return e}parseSubscript(e,t,r,n){const{type:i}=this.state;if(!r&&15===i)return this.parseBind(e,t,r,n);if(z(i))return this.parseTaggedTemplateExpression(e,t,n);let s=!1;if(18===i){if(r&&(this.raise(y.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,n);n.optionalChainMember=s=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,s);{const r=this.eat(0);return r||s||this.eat(16)?this.parseMember(e,t,n,r,s):this.stopParseSubscript(e,n)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,r,n,i){const s=this.startNodeAt(t);return s.object=e,s.computed=n,n?(s.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(y.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),r.optionalChainMember?(s.optional=i,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,r,n){const i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){const i=this.state.maybeInArrowParameters;let s=null;this.state.maybeInArrowParameters=!0,this.next();const a=this.startNodeAt(t);a.callee=e;const{maybeAsyncArrow:o,optionalChainMember:l}=r;o&&(this.expressionScope.enter(new pt(2)),s=new ft),l&&(a.optional=n),a.arguments=n?this.parseCallExpressionArguments():this.parseCallExpressionArguments("Super"!==e.type,a,s);let c=this.finishCallExpression(a,l);return o&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(o&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=i,c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){const n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(y.OptionalChainingNoTemplate,t),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(y.ImportCallArity,e);else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(y.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r){const n=[];let i=!0;const s=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(i)i=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}n.push(this.parseExprListItem(11,!1,r,e))}return this.state.inFSharpPipelineDirectBody=s,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingCommaLoc),t.innerComments&&We(e,t.innerComments),t.callee.trailingComments&&We(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null;const{type:n}=this.state;switch(n){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(t):this.match(10)?512&this.optionFlags?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(y.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:return this.parseArrayLike(3,!0,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(y.UnsupportedBind,e)}case 139:return this.raise(y.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());se(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(137===n)return this.parseDecimalLiteral(this.state.value);if(2===n||1===n)return this.parseArrayLike(2===this.state.type?4:3,!1,!0);if(6===n||7===n)return this.parseObjectLike(6===this.state.type?9:8,!1,!0);if(U(n)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,r=this.parseIdentifier();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(U(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r)):r;if(90===e)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=n(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}parseTopicReference(e){const t=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(t,r,e,n)}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n))return"hack"===r?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(y.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(y.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(y.PipeTopicUnconfiguredToken,t,{token:J(n)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:J(r)}]);case"smart":return 27===r;default:throw this.raise(y.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Ue(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(y.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();const r=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||16&this.optionFlags?this.scope.allowSuper||16&this.optionFlags||this.raise(y.UnexpectedSuper,e):this.raise(y.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(y.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(n(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;const n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(y.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}{const t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(y.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){const r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let r;this.next(),this.expressionScope.enter(new pt(1));const n=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const s=this.state.startLoc,a=[],o=new ft;let l,c,p=!0;for(;!this.match(11);){if(p)p=!1;else if(this.expect(12,null===o.optionalParametersLoc?null:o.optionalParametersLoc),this.match(11)){c=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(l=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowInOrVoidPattern(11,o,this.parseParenItem))}const u=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=i;let h=this.startNodeAt(t);return e&&this.shouldParseArrow(a)&&(h=this.parseArrow(h))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(h,a,!1),h):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),c&&this.unexpected(c),l&&this.unexpected(l),this.checkExpressionErrors(o,!0),this.toReferencedListDeep(a,!0),a.length>1?(r=this.startNodeAt(s),r.expressions=a,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,u)):r=a[0],this.wrapParenthesis(t,r))}wrapParenthesis(e,t){if(!(1024&this.optionFlags))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;const r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const r=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(y.UnexpectedNewTarget,r),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83),r=this.parseNoCallExpr();e.callee=r,!t||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(y.ImportCallNotNewExpression,r)}parseTemplateElement(e){const{start:t,startLoc:r,end:i,value:s}=this.state,a=t+1,o=this.startNodeAt(n(r,1));null===s&&(e||this.raise(y.InvalidEscapeSequenceTemplate,n(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),c=l?-1:-2,p=i+c;o.value={raw:this.input.slice(a,p).replace(/\r\n?/g,"\n"),cooked:null===s?null:s.slice(1,c)},o.tail=l,this.next();const u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,n(this.state.lastTokEndLoc,c)),u}parseTemplate(e){const t=this.startNode();let r=this.parseTemplateElement(e);const n=[r],i=[];for(;!r.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(e));return t.expressions=i,t.quasis=n,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=!1,a=!0;const o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(n),s=this.checkProto(i,r,s,n)),r&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(y.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),o.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";return t?l="ObjectPattern":r&&(l="RecordExpression"),this.finishNode(o,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(y.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const r=this.startNode();let n,i=!1,s=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(r.decorators=t,t=[]),r.method=!1,e&&(n=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);const o=this.state.containsEsc;if(this.parsePropertyName(r,e),!a&&!o&&this.maybeAsyncOrAccessorProp(r)){const{key:e}=r,t=e.name;"async"!==t||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(e),a=this.eat(55),this.parsePropertyName(r)),"get"!==t&&"set"!==t||(s=!0,this.resetPreviousNodeTrailingComments(e),r.kind=t,this.match(55)&&(a=!0,this.raise(y.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,n,a,i,!1,s,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==r&&this.raise("get"===e.kind?y.BadGetterArity:y.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=n[n.length-1])?void 0:t.type)&&this.raise(y.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,n,i){if(i){const r=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||t||this.match(10))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,n){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,n),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){const r=this.state.startLoc;null!=n?null===n.shorthandAssignLoc&&(n.shorthandAssignLoc=r):this.raise(y.InvalidCoverInitializedName,r),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,r,n,i,s,a){const o=this.parseObjectMethod(e,r,n,i,s)||this.parseObjectProperty(e,t,i,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:r,value:n}=this.state;let i;if(K(r))i=this.parseIdentifier(!0);else switch(r){case 135:i=this.parseNumericLiteral(n);break;case 134:i=this.parseStringLiteral(n);break;case 136:i=this.parseBigIntLiteral(n);break;case 139:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(y.UnexpectedPrivateField,e),i=this.parsePrivateName();break}default:if(137===r){i=this.parseDecimalLiteral(n);break}this.unexpected()}e.key=i,139!==r&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,i,s,a=!1){this.initFunction(e,r),e.generator=t,this.scope.enter(530|(a?576:0)|(i?32:0)),this.prodParam.enter(Ue(r,e.generator)),this.parseFunctionParams(e,n);const o=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,r,n){r&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!r,n,s),this.state.inFSharpPipelineDirectBody=i,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(518);let i=Ue(r,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,r);const s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t,r=!1){return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){const n=t&&!this.match(5);if(this.expressionScope.enter(ht()),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const n=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,i=>{const s=!this.isSimpleParamList(e.params);i&&s&&this.raise(y.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const a=!n&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||s),t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,a)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r,n=!0){const i=!t&&new Set,s={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,s,5,i,n)}parseExprList(e,t,r,n){const i=[];let s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(e,t,r))}return i}parseExprListItem(e,t,r,n){let i;if(this.match(12))t||this.raise(y.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(21)){const e=this.state.startLoc;i=this.parseParenItem(this.parseSpread(r),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(y.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),i=this.finishNode(e,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,r,this.parseParenItem);return i}parseIdentifier(e){const t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}createIdentifierAt(e,t,r){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,"Identifier",r)}parseIdentifierName(e){let t;const{startLoc:r,type:n}=this.state;K(n)?t=this.state.value:this.unexpected();const i=n<=92;return e?i&&this.replaceToken(132):this.checkReservedWord(t,r,i,!1),this.next(),t}checkReservedWord(e,t,r,n){if(e.length>10)return;if(!function(e){return ye.has(e)}(e))return;if(r&&function(e){return ce.has(e)}(e))return void this.raise(y.UnexpectedKeyword,t,{keyword:e});if((this.state.strict?n?me:de:he)(e,this.inModule))this.raise(y.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(y.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(y.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(y.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(y.ArgumentsInClass,t)}recordAwaitIfAllowed(){const e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(y.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(y.ObsoleteAwaitStar,t),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||z(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(y.YieldInParameter,t);let r=!1,n=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:n=this.parseMaybeAssign()}return t.delegate=r,t.argument=n,this.finishNode(t,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12))if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(y.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(y.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}{const r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(y.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(y.PipelineTopicUnused,e)}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const t=this.startNodeAt(this.state.endLoc);this.next();const r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");const t=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,r){if(null!=t&&this.match(88)){const r=this.lookaheadCharCode();if(44===r||r===(3===e?93:8===e?125:41)||61===r)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,r)}parsePropertyNamePrefixOperator(e){}}const Dt={kind:1},Mt={kind:2},Bt=/[\uD800-\uDFFF]/u,Ft=/in(?:stanceof)?/y;class jt extends Lt{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,"module"===this.options.sourceType?"module":"script"),e.comments=this.comments,256&this.optionFlags&&(e.tokens=function(e,t,r){for(let i=0;i<e.length;i++){const s=e[i],{type:a}=s;if("number"==typeof a){if(139===a){const{loc:t,start:r,value:a,end:o}=s,l=r+1,c=n(t.start,1);e.splice(i,1,new st({type:G(27),value:"#",start:r,end:l,startLoc:t.start,endLoc:c}),new st({type:G(132),value:a,start:l,end:o,startLoc:c,endLoc:t.end})),i++;continue}if(z(a)){const{loc:o,start:l,value:c,end:p}=s,u=l+1,h=n(o.start,1);let d,f,m,y,g;d=96===t.charCodeAt(l-r)?new st({type:G(22),value:"`",start:l,end:u,startLoc:o.start,endLoc:h}):new st({type:G(8),value:"}",start:l,end:u,startLoc:o.start,endLoc:h}),24===a?(m=p-1,y=n(o.end,-1),f=null===c?null:c.slice(1,-1),g=new st({type:G(22),value:"`",start:m,end:p,startLoc:y,endLoc:o.end})):(m=p-2,y=n(o.end,-2),f=null===c?null:c.slice(1,-2),g=new st({type:G(23),value:"${",start:m,end:p,startLoc:y,endLoc:o.end})),e.splice(i,1,d,new st({type:G(20),value:f,start:u,end:m,startLoc:h,endLoc:y}),g),i+=2;continue}s.type=G(a)}}return e}(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,t,r){if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(const[e,t]of Array.from(this.scope.undefinedExports))this.raise(y.ModuleExportUndefined,t,{localName:e});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let i;return i=140===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",n(this.state.startLoc,-1)),i}stmtToDirective(e){const t=this.castNodeTo(e,"Directive"),r=this.castNodeTo(e.expression,"DirectiveLiteral"),n=r.value,i=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),s=r.value=i.slice(1,-1);return this.addExtra(r,"raw",i),this.addExtra(r,"rawValue",s),this.addExtra(r,"expressionValue",n),t.value=r,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107))return!1;const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isForUsing(){if(!this.isContextual(107))return!1;const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){const t=this.lookaheadCharCodeSince(e+2);if(61!==t&&58!==t&&59!==t)return!1}return!(!this.chStartsBindingIdentifier(t,e)&&!this.isUnparsedContextual(e,"void"))}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(se(e)){if(Ft.lastIndex=t,Ft.test(this.input)){const e=this.codePointAtPos(Ft.lastIndex);if(!ae(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 123===t||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){const r=this.state.type,n=this.startNode(),i=!!(2&e),s=!!(4&e),a=1&e;switch(r){case 60:return this.parseBreakContinueStatement(n,!0);case 63:return this.parseBreakContinueStatement(n,!1);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);case 68:if(46===this.lookaheadCharCode())break;return s||this.raise(this.state.strict?y.StrictFunction:this.options.annexB?y.SloppyFunctionAnnexB:y.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(n,!1,!i&&s);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,n),!0);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 96:if(this.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(y.AwaitUsingNotInAsyncContext,n):this.raise(y.UnexpectedLexicalDeclaration,n):this.raise(y.UnexpectedUsingDeclaration,n),this.next(),this.parseVarStatement(n,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(y.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(y.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(n,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:i||this.raise(y.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const e=this.state.value;return this.parseVarStatement(n,e)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);case 83:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return 8&this.optionFlags||a||this.raise(y.UnexpectedImportExport,this.state.startLoc),this.next(),e=83===r?this.parseImport(n):this.parseExport(n,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(y.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(n,!0,!i&&s)}const o=this.state.value,l=this.parseExpression();return U(r)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(n,o,l,e):this.parseExpressionStatement(n,l,t)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(y.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,r){var n;e&&(null!=(n=t.decorators)&&n.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(y.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t));return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(y.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(y.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const t=this.state.startLoc;let r;if(this.match(10)){const t=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(t,r);const n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r,t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==r&&this.raise(y.DecoratorArgumentsOutsideParentheses,n)}else{for(r=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=r,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,r=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){const r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){const n=this.state.labels[r];if(null==e.label||n.name===e.label.name){if(null!=n.kind&&(t||1===n.kind))break;if(e.label&&t)break}}if(r===this.state.labels.length){const r=t?"BreakStatement":"ContinueStatement";this.raise(y.IllegalBreakContinue,e,{type:r})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Dt),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Dt);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);const r=this.isContextual(100);{const n=this.isAwaitUsing(),i=n||this.isForUsing(),s=r&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||s){const r=this.startNode();let s;n?(s="await using",this.recordAwaitIfAllowed()||this.raise(y.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):s=this.state.value,this.next(),this.parseVar(r,!0,s);const a=this.finishNode(r,"VariableDeclaration"),o=this.match(58);return o&&i&&this.raise(y.ForInUsing,a),(o||this.isContextual(102))&&1===a.declarations.length?this.parseForIn(e,a,t):(null!==t&&this.unexpected(t),this.parseFor(e,a))}}const n=this.isContextual(95),i=new ft,s=this.parseExpression(!0,i),a=this.isContextual(102);if(a&&(r&&this.raise(y.ForOfLet,s),null===t&&n&&"Identifier"===s.type&&this.raise(y.ForOfAsync,s)),a||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(s,!0);const r=a?"ForOfStatement":"ForInStatement";return this.checkLVal(s,{type:r}),this.parseForIn(e,s,t)}return this.checkExpressionErrors(i,!0),null!==t&&this.unexpected(t),this.parseFor(e,s)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(y.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];let r;this.expect(5),this.state.labels.push(Mt),this.scope.enter(256);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const n=this.match(61);r&&this.finishNode(r,"SwitchCase"),t.push(r=this.startNode()),r.consequent=[],this.next(),n?r.test=this.parseExpression():(e&&this.raise(y.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,r.test=null),this.expect(14)}else r?r.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(y.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(y.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,r=!1){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Dt),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(y.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,n){for(const e of this.state.labels)e.name===t&&this.raise(y.LabelRedeclaration,r,{labelName:t});const i=(s=this.state.type)>=90&&s<=92?1:this.match(71)?2:null;var s;for(let t=this.state.labels.length-1;t>=0;t--){const r=this.state.labels[t];if(r.statementStart!==e.start)break;r.statementStart=this.sourceToOffsetPos(this.state.start),r.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&n?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,r){const n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,8,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,i){const s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,r,n,i)}parseBlockOrModuleBlockBody(e,t,r,n,i){const s=this.state.strict;let a=!1,o=!1;for(;!this.match(n);){const n=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(n)){const e=this.stmtToDirective(n);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(n)}null==i||i.call(this,a),s||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const n=this.match(58);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(y.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(y.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r,n=!1){const i=e.declarations=[];for(e.kind=r;;){const e=this.startNode();if(this.parseVarId(e,r),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||n||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(58)||this.isContextual(102)||this.raise(y.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(y.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const r=this.parseBindingAtom();"using"===t||"await using"===t?"ArrayPattern"!==r.type&&"ObjectPattern"!==r.type||this.raise(y.UsingDeclarationHasBindingPattern,r.loc.start):"VoidPattern"===r.type&&this.raise(y.UnexpectedVoidPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const r=2&t,n=!!(1&t),i=n&&!(4&t),s=!!(8&t);this.initFunction(e,s),this.match(55)&&(r&&this.raise(y.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(i));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Ue(s,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),n&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||U(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new ct(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,r){this.next();const n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();const r={hadConstructor:!1,hadSuperClass:e};let n=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(y.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){n.push(this.parseDecorator());continue}const e=this.startNode();n.length&&(e.decorators=n,this.resetStartLocationFromNode(e,n[0]),n=[]),this.parseClassMember(i,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(y.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),n.length)throw this.raise(y.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const n=t;return n.kind="method",n.computed=!1,n.key=r,n.static=!1,this.pushClassMethod(e,n,!1,!1,!1,!1),!0}if(this.isClassProperty()){const n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){const n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){const i=t,s=t,a=t,o=t,l=t,c=i,p=i;if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";const t=this.match(139);return this.parseClassElementName(c),this.parsePostMemberNameModifiers(c),t?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(y.ConstructorIsGenerator,i.key),void this.pushClassMethod(e,i,!0,!1,!1,!1))}const u=!this.state.containsEsc&&U(this.state.type),h=this.parseClassElementName(t),d=u?h.name:null,f=this.isPrivateName(h),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(c.kind="method",f)return void this.pushClassPrivateMethod(e,s,!1,!1);const n=this.isNonstaticConstructor(i);let a=!1;n&&(i.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(y.DuplicateConstructor,h),n&&this.hasPlugin("typescript")&&t.override&&this.raise(y.OverrideOnConstructor,h),r.hadConstructor=!0,a=r.hadSuperClass),this.pushClassMethod(e,i,!1,!1,n,a)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if("async"!==d||this.isLineTerminator())if("get"!==d&&"set"!==d||this.match(55)&&this.isLineTerminator())if("accessor"!==d||this.isLineTerminator())this.isLineTerminator()?f?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);const t=this.match(139);this.parseClassElementName(a),this.pushClassAccessorProperty(e,l,t)}else{this.resetPreviousNodeTrailingComments(h),c.kind=d;const t=this.match(139);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(y.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else{this.resetPreviousNodeTrailingComments(h);const t=this.eat(55);p.optional&&this.unexpected(m),c.kind="method";const r=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(p),r?this.pushClassPrivateMethod(e,s,t,!0):(this.isNonstaticConstructor(i)&&this.raise(y.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}}parseClassElementName(e){const{type:t,value:r}=this.state;if(132!==t&&134!==t||!e.static||"prototype"!==r||this.raise(y.StaticPrototype,this.state.startLoc),139===t){"constructor"===r&&this.raise(y.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var r;this.scope.enter(720);const n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(y.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(y.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){r||t.computed||!this.nameIsConstructor(t.key)||this.raise(y.ConstructorClassField,t.key);const n=this.parseClassAccessorProperty(t);e.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassMethod(e,t,r,n,i,s){e.body.push(this.parseMethod(t,r,n,i,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){const i=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);const s="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,s)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(ht()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,n=8331){if(U(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else{if(!r&&t)throw this.raise(y.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const r=this.parseMaybeImportPhase(e,!0),n=this.maybeParseExportDefaultSpecifier(e,r),i=!n||this.eat(12),s=i&&this.eatExportStar(e),a=s&&this.maybeParseExportNamespaceSpecifier(e),o=i&&(!a||this.eat(12)),l=n||s;if(s&&!a){if(n&&this.unexpected(),t)throw this.raise(y.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(e);let p;if(n&&i&&!s&&!c&&this.unexpected(null,5),a&&o&&this.unexpected(null,98),l||c){if(p=!1,t)throw this.raise(y.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else p=this.maybeParseExportDeclaration(e);if(l||c||p){var u;const r=e;if(this.checkExport(r,!0,!1,!!r.source),"ClassDeclaration"===(null==(u=r.declaration)?void 0:u.type))this.maybeTakeDecorators(t,r.declaration,r);else if(t)throw this.raise(y.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){const r=e,n=this.parseExportDefaultExpression();if(r.declaration=n,"ClassDeclaration"===n.type)this.maybeTakeDecorators(t,n,r);else if(t)throw this.raise(y.UnsupportedDecoratorExport,e);return this.checkExport(r,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(r,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);const r=t||this.parseIdentifier(!0),n=this.startNodeAtNode(r);return n.exported=r,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);const r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const t=e;t.specifiers||(t.specifiers=[]);const r="type"===t.exportKind;return t.specifiers.push(...this.parseExportSpecifiers(r)),t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(y.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(y.UnsupportedDefaultExport,this.state.startLoc);const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){if(this.match(80)){return this.parseClass(this.startNode(),!0,!1)}return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(U(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(123===t||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith("from",e))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||U(this.state.type)&&r)return!0;if(this.match(65)&&r){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(y.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(y.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){var i;if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var s;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!==4||null!=(s=t.extra)&&s.parenthesized||this.raise(y.ExportDefaultFromAsIdentifier,t)}}else if(null!=(i=e.specifiers)&&i.length)for(const t of e.specifiers){const{exported:e}=t,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,r),!n&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(y.ExportBindingIsString,t,{localName:e.value,exportName:r}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){const t=e.declaration;if("FunctionDeclaration"===t.type||"ClassDeclaration"===t.type){const{id:r}=t;if(!r)throw new Error("Assertion failure");this.checkDuplicateExports(e,r.name)}else if("VariableDeclaration"===t.type)for(const e of t.declarations)this.checkDeclaration(e.id)}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(const t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(y.DuplicateDefaultExport,e):this.raise(y.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;const n=this.isContextual(130),i=this.match(134),s=this.startNode();s.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(s,i,e,n))}return t}parseExportSpecifier(e,t,r,n){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const e=this.parseStringLiteral(this.state.value),t=Bt.exec(e.value);return t&&this.raise(y.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some(({key:e,value:t})=>"json"===t.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value))}checkImportReflection(e){const{specifiers:t}=e,r=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==r&&this.raise(y.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==r&&this.raise(y.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var n;"ImportDefaultSpecifier"!==r&&this.raise(y.ImportReflectionNotBinding,t[0].loc.start),(null==(n=e.assertions)?void 0:n.length)>0&&this.raise(y.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:t}=e;if(null!=t){const e=t.find(e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value});void 0!==e&&this.raise(y.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,r,n){t||("module"===r?(this.expectPlugin("importReflection",n),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",n),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",n),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const r=this.startNode(),n=this.parseIdentifierName(!0),{type:i}=this.state;return(K(i)?98!==i||102===this.lookaheadCharCode():12!==i)?(this.applyImportPhase(e,t,n,r.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(r,n))}isPrecedingIdImportPhase(e){const{type:t}=this.state;return U(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),n=r&&this.maybeParseStarImportSpecifier(e);return r&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t,r=8201){return this.checkLVal(e.local,{type:t},r),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(y.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n}),t.add(n),this.match(134)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(y.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(y.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(y.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(y.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?(t=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):t=this.parseImportAttributes(),r=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(y.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!r&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!K(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(y.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const r=this.startNode(),n=this.match(134),i=this.isContextual(130);r.imported=this.parseModuleExportName();const s=this.parseImportSpecifier(r,n,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(s)}}parseImportSpecifier(e,t,r,n,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:r}=e;if(t)throw this.raise(y.ImportBindingIsString,e,{importName:r.value});this.checkReservedWord(r.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(r))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class Rt extends jt{constructor(e,t,r){super(e=function(e){const t={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(const r of Object.keys(t))null!=e[r]&&(t[r]=e[r]);if(1===t.startLine)null==e.startIndex&&t.startColumn>0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if("commonjs"===t.sourceType){if(null!=e.allowAwaitOutsideFunction)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(null!=e.allowReturnOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(null!=e.allowNewTargetOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}(e),t),this.options=e,this.initializeScopes(),this.plugins=r,this.filename=e.sourceFilename,this.startIndex=e.startIndex;let n=0;e.allowAwaitOutsideFunction&&(n|=1),e.allowReturnOutsideFunction&&(n|=2),e.allowImportExportEverywhere&&(n|=8),e.allowSuperOutsideMethod&&(n|=16),e.allowUndeclaredExports&&(n|=64),e.allowNewTargetOutsideFunction&&(n|=4),e.allowYieldOutsideFunction&&(n|=32),e.ranges&&(n|=128),e.tokens&&(n|=256),e.createImportExpressions&&(n|=512),e.createParenthesizedExpressions&&(n|=1024),e.errorRecovery&&(n|=2048),e.attachComment&&(n|=4096),e.annexB&&(n|=8192),this.optionFlags=n}getScopeHandler(){return be}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}}const Vt=function(e){const t={};for(const r of Object.keys(e))t[r]=G(e[r]);return t}(V);function Ut(e,t){let r=Rt;const n=new Map;if(null!=e&&e.plugins){for(const t of e.plugins){let e,r;"string"==typeof t?e=t:[e,r]=t,n.has(e)||n.set(e,r||{})}!function(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=e.get("decorators").decoratorsBeforeExport;if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const r=e.get("decorators").allowCallParenthesized;if(null!=r&&"boolean"!=typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;const n=e.get("pipelineOperator").proposal;if(!It.includes(n)){const e=It.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if("hack"===n){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const t=e.get("pipelineOperator").topicToken;if(!kt.includes(t)){const e=kt.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}var r;if("#"===t&&"hash"===(null==(r=e.get("recordAndTuple"))?void 0:r.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if("smart"===n&&"hash"===(null==(t=e.get("recordAndTuple"))?void 0:t.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if("may-2020"!==e.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){const t=e.get("recordAndTuple").syntaxType;if(null!=t){const e=["hash","bar"];if(!e.includes(t))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map(e=>`'${e}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&"void"!==e.get("discardBinding").syntaxType)throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}(n),r=function(e){const t=[];for(const r of Nt)e.has(r)&&t.push(r);const r=t.join("|");let n=Kt.get(r);if(!n){n=Rt;for(const e of t)n=Ot[e](n);Kt.set(r,n)}return n}(n)}return new r(e,t,n)}const Kt=new Map;return xe.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return Ut(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const r=Ut(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",Ut(t,e).parse()}catch(e){}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",Ut(t,e).parse()}catch(e){}throw r}},xe.parseExpression=function(e,t){const r=Ut(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},xe.tokTypes=Vt,xe}var Se,ve={},Ee={};var Pe,Ae={},Ce={};var we,_e={},Ie={},ke={},Oe={},Ne={},Le={},De={},Me={};function Be(){if(we)return Me;return we=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=function(e,t){const r=Object.keys(t);for(const n of r)if(e[n]!==t[n])return!1;return!0},Me}var Fe,je,Re,Ve,Ue,Ke={};function He(){if(Fe)return Ke;Fe=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.default=function(t,r,n="",i=t){if(e.has(i))return;e.add(i);const{internal:s,trace:a}=function(e,t){const{stackTraceLimit:r,prepareStackTrace:n}=Error;let i;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(e,t){i=t},(new Error).stack,Error.stackTraceLimit=r,Error.prepareStackTrace=n,!i)return{internal:!1,trace:""};const s=i.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(s[1].getFileName()),trace:s.map(e=>` at ${e}`).join("\n")}}(1,2);if(s)return;console.warn(`${n}\`${t}\` has been deprecated, please migrate to \`${r}\`\n${a}`)};const e=new Set;return Ke}function We(){if(je)return De;je=1,Object.defineProperty(De,"__esModule",{value:!0}),De.isAccessor=function(t,r){if(!t)return!1;if("ClassAccessorProperty"!==t.type)return!1;return null==r||(0,e.default)(t,r)},De.isAnyTypeAnnotation=function(t,r){return!!t&&("AnyTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isArgumentPlaceholder=function(t,r){return!!t&&("ArgumentPlaceholder"===t.type&&(null==r||(0,e.default)(t,r)))},De.isArrayExpression=function(t,r){return!!t&&("ArrayExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isArrayPattern=function(t,r){return!!t&&("ArrayPattern"===t.type&&(null==r||(0,e.default)(t,r)))},De.isArrayTypeAnnotation=function(t,r){return!!t&&("ArrayTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isArrowFunctionExpression=function(t,r){return!!t&&("ArrowFunctionExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isAssignmentExpression=function(t,r){return!!t&&("AssignmentExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isAssignmentPattern=function(t,r){return!!t&&("AssignmentPattern"===t.type&&(null==r||(0,e.default)(t,r)))},De.isAwaitExpression=function(t,r){return!!t&&("AwaitExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isBigIntLiteral=function(t,r){return!!t&&("BigIntLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},De.isBinary=function(t,r){if(!t)return!1;switch(t.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isBinaryExpression=function(t,r){return!!t&&("BinaryExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isBindExpression=function(t,r){return!!t&&("BindExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isBlock=function(t,r){if(!t)return!1;switch(t.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},De.isBlockParent=function(t,r){if(!t)return!1;switch(t.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},De.isBlockStatement=function(t,r){return!!t&&("BlockStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isBooleanLiteral=function(t,r){return!!t&&("BooleanLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},De.isBooleanLiteralTypeAnnotation=function(t,r){return!!t&&("BooleanLiteralTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isBooleanTypeAnnotation=function(t,r){return!!t&&("BooleanTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isBreakStatement=function(t,r){return!!t&&("BreakStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isCallExpression=function(t,r){return!!t&&("CallExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isCatchClause=function(t,r){return!!t&&("CatchClause"===t.type&&(null==r||(0,e.default)(t,r)))},De.isClass=function(t,r){if(!t)return!1;switch(t.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isClassAccessorProperty=function(t,r){return!!t&&("ClassAccessorProperty"===t.type&&(null==r||(0,e.default)(t,r)))},De.isClassBody=function(t,r){return!!t&&("ClassBody"===t.type&&(null==r||(0,e.default)(t,r)))},De.isClassDeclaration=function(t,r){return!!t&&("ClassDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isClassExpression=function(t,r){return!!t&&("ClassExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isClassImplements=function(t,r){return!!t&&("ClassImplements"===t.type&&(null==r||(0,e.default)(t,r)))},De.isClassMethod=function(t,r){return!!t&&("ClassMethod"===t.type&&(null==r||(0,e.default)(t,r)))},De.isClassPrivateMethod=function(t,r){return!!t&&("ClassPrivateMethod"===t.type&&(null==r||(0,e.default)(t,r)))},De.isClassPrivateProperty=function(t,r){return!!t&&("ClassPrivateProperty"===t.type&&(null==r||(0,e.default)(t,r)))},De.isClassProperty=function(t,r){return!!t&&("ClassProperty"===t.type&&(null==r||(0,e.default)(t,r)))},De.isCompletionStatement=function(t,r){if(!t)return!1;switch(t.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isConditional=function(t,r){if(!t)return!1;switch(t.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isConditionalExpression=function(t,r){return!!t&&("ConditionalExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isContinueStatement=function(t,r){return!!t&&("ContinueStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDebuggerStatement=function(t,r){return!!t&&("DebuggerStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDecimalLiteral=function(t,r){return!!t&&("DecimalLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDeclaration=function(t,r){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if("Declaration"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},De.isDeclareClass=function(t,r){return!!t&&("DeclareClass"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDeclareExportAllDeclaration=function(t,r){return!!t&&("DeclareExportAllDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDeclareExportDeclaration=function(t,r){return!!t&&("DeclareExportDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDeclareFunction=function(t,r){return!!t&&("DeclareFunction"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDeclareInterface=function(t,r){return!!t&&("DeclareInterface"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDeclareModule=function(t,r){return!!t&&("DeclareModule"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDeclareModuleExports=function(t,r){return!!t&&("DeclareModuleExports"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDeclareOpaqueType=function(t,r){return!!t&&("DeclareOpaqueType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDeclareTypeAlias=function(t,r){return!!t&&("DeclareTypeAlias"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDeclareVariable=function(t,r){return!!t&&("DeclareVariable"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDeclaredPredicate=function(t,r){return!!t&&("DeclaredPredicate"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDecorator=function(t,r){return!!t&&("Decorator"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDirective=function(t,r){return!!t&&("Directive"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDirectiveLiteral=function(t,r){return!!t&&("DirectiveLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDoExpression=function(t,r){return!!t&&("DoExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isDoWhileStatement=function(t,r){return!!t&&("DoWhileStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isEmptyStatement=function(t,r){return!!t&&("EmptyStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isEmptyTypeAnnotation=function(t,r){return!!t&&("EmptyTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isEnumBody=function(t,r){if(!t)return!1;switch(t.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isEnumBooleanBody=function(t,r){return!!t&&("EnumBooleanBody"===t.type&&(null==r||(0,e.default)(t,r)))},De.isEnumBooleanMember=function(t,r){return!!t&&("EnumBooleanMember"===t.type&&(null==r||(0,e.default)(t,r)))},De.isEnumDeclaration=function(t,r){return!!t&&("EnumDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isEnumDefaultedMember=function(t,r){return!!t&&("EnumDefaultedMember"===t.type&&(null==r||(0,e.default)(t,r)))},De.isEnumMember=function(t,r){if(!t)return!1;switch(t.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isEnumNumberBody=function(t,r){return!!t&&("EnumNumberBody"===t.type&&(null==r||(0,e.default)(t,r)))},De.isEnumNumberMember=function(t,r){return!!t&&("EnumNumberMember"===t.type&&(null==r||(0,e.default)(t,r)))},De.isEnumStringBody=function(t,r){return!!t&&("EnumStringBody"===t.type&&(null==r||(0,e.default)(t,r)))},De.isEnumStringMember=function(t,r){return!!t&&("EnumStringMember"===t.type&&(null==r||(0,e.default)(t,r)))},De.isEnumSymbolBody=function(t,r){return!!t&&("EnumSymbolBody"===t.type&&(null==r||(0,e.default)(t,r)))},De.isExistsTypeAnnotation=function(t,r){return!!t&&("ExistsTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isExportAllDeclaration=function(t,r){return!!t&&("ExportAllDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isExportDeclaration=function(t,r){if(!t)return!1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isExportDefaultDeclaration=function(t,r){return!!t&&("ExportDefaultDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isExportDefaultSpecifier=function(t,r){return!!t&&("ExportDefaultSpecifier"===t.type&&(null==r||(0,e.default)(t,r)))},De.isExportNamedDeclaration=function(t,r){return!!t&&("ExportNamedDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isExportNamespaceSpecifier=function(t,r){return!!t&&("ExportNamespaceSpecifier"===t.type&&(null==r||(0,e.default)(t,r)))},De.isExportSpecifier=function(t,r){return!!t&&("ExportSpecifier"===t.type&&(null==r||(0,e.default)(t,r)))},De.isExpression=function(t,r){if(!t)return!1;switch(t.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==r||(0,e.default)(t,r)},De.isExpressionStatement=function(t,r){return!!t&&("ExpressionStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isExpressionWrapper=function(t,r){if(!t)return!1;switch(t.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isFile=function(t,r){return!!t&&("File"===t.type&&(null==r||(0,e.default)(t,r)))},De.isFlow=function(t,r){if(!t)return!1;switch(t.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isFlowBaseAnnotation=function(t,r){if(!t)return!1;switch(t.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isFlowDeclaration=function(t,r){if(!t)return!1;switch(t.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isFlowPredicate=function(t,r){if(!t)return!1;switch(t.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isFlowType=function(t,r){if(!t)return!1;switch(t.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isFor=function(t,r){if(!t)return!1;switch(t.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isForInStatement=function(t,r){return!!t&&("ForInStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isForOfStatement=function(t,r){return!!t&&("ForOfStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isForStatement=function(t,r){return!!t&&("ForStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isForXStatement=function(t,r){if(!t)return!1;switch(t.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isFunction=function(t,r){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isFunctionDeclaration=function(t,r){return!!t&&("FunctionDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isFunctionExpression=function(t,r){return!!t&&("FunctionExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isFunctionParameter=function(t,r){if(!t)return!1;switch(t.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Identifier"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},De.isFunctionParent=function(t,r){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isFunctionTypeAnnotation=function(t,r){return!!t&&("FunctionTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isFunctionTypeParam=function(t,r){return!!t&&("FunctionTypeParam"===t.type&&(null==r||(0,e.default)(t,r)))},De.isGenericTypeAnnotation=function(t,r){return!!t&&("GenericTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isIdentifier=function(t,r){return!!t&&("Identifier"===t.type&&(null==r||(0,e.default)(t,r)))},De.isIfStatement=function(t,r){return!!t&&("IfStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isImmutable=function(t,r){if(!t)return!1;switch(t.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},De.isImport=function(t,r){return!!t&&("Import"===t.type&&(null==r||(0,e.default)(t,r)))},De.isImportAttribute=function(t,r){return!!t&&("ImportAttribute"===t.type&&(null==r||(0,e.default)(t,r)))},De.isImportDeclaration=function(t,r){return!!t&&("ImportDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isImportDefaultSpecifier=function(t,r){return!!t&&("ImportDefaultSpecifier"===t.type&&(null==r||(0,e.default)(t,r)))},De.isImportExpression=function(t,r){return!!t&&("ImportExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isImportNamespaceSpecifier=function(t,r){return!!t&&("ImportNamespaceSpecifier"===t.type&&(null==r||(0,e.default)(t,r)))},De.isImportOrExportDeclaration=r,De.isImportSpecifier=function(t,r){return!!t&&("ImportSpecifier"===t.type&&(null==r||(0,e.default)(t,r)))},De.isIndexedAccessType=function(t,r){return!!t&&("IndexedAccessType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isInferredPredicate=function(t,r){return!!t&&("InferredPredicate"===t.type&&(null==r||(0,e.default)(t,r)))},De.isInterfaceDeclaration=function(t,r){return!!t&&("InterfaceDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isInterfaceExtends=function(t,r){return!!t&&("InterfaceExtends"===t.type&&(null==r||(0,e.default)(t,r)))},De.isInterfaceTypeAnnotation=function(t,r){return!!t&&("InterfaceTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isInterpreterDirective=function(t,r){return!!t&&("InterpreterDirective"===t.type&&(null==r||(0,e.default)(t,r)))},De.isIntersectionTypeAnnotation=function(t,r){return!!t&&("IntersectionTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSX=function(t,r){if(!t)return!1;switch(t.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isJSXAttribute=function(t,r){return!!t&&("JSXAttribute"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXClosingElement=function(t,r){return!!t&&("JSXClosingElement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXClosingFragment=function(t,r){return!!t&&("JSXClosingFragment"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXElement=function(t,r){return!!t&&("JSXElement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXEmptyExpression=function(t,r){return!!t&&("JSXEmptyExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXExpressionContainer=function(t,r){return!!t&&("JSXExpressionContainer"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXFragment=function(t,r){return!!t&&("JSXFragment"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXIdentifier=function(t,r){return!!t&&("JSXIdentifier"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXMemberExpression=function(t,r){return!!t&&("JSXMemberExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXNamespacedName=function(t,r){return!!t&&("JSXNamespacedName"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXOpeningElement=function(t,r){return!!t&&("JSXOpeningElement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXOpeningFragment=function(t,r){return!!t&&("JSXOpeningFragment"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXSpreadAttribute=function(t,r){return!!t&&("JSXSpreadAttribute"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXSpreadChild=function(t,r){return!!t&&("JSXSpreadChild"===t.type&&(null==r||(0,e.default)(t,r)))},De.isJSXText=function(t,r){return!!t&&("JSXText"===t.type&&(null==r||(0,e.default)(t,r)))},De.isLVal=function(t,r){if(!t)return!1;switch(t.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==r||(0,e.default)(t,r)},De.isLabeledStatement=function(t,r){return!!t&&("LabeledStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isLiteral=function(t,r){if(!t)return!1;switch(t.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},De.isLogicalExpression=function(t,r){return!!t&&("LogicalExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isLoop=function(t,r){if(!t)return!1;switch(t.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isMemberExpression=function(t,r){return!!t&&("MemberExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isMetaProperty=function(t,r){return!!t&&("MetaProperty"===t.type&&(null==r||(0,e.default)(t,r)))},De.isMethod=function(t,r){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isMiscellaneous=function(t,r){if(!t)return!1;switch(t.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isMixedTypeAnnotation=function(t,r){return!!t&&("MixedTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isModuleDeclaration=function(e,n){return(0,t.default)("isModuleDeclaration","isImportOrExportDeclaration"),r(e,n)},De.isModuleExpression=function(t,r){return!!t&&("ModuleExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isModuleSpecifier=function(t,r){if(!t)return!1;switch(t.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isNewExpression=function(t,r){return!!t&&("NewExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isNoop=function(t,r){return!!t&&("Noop"===t.type&&(null==r||(0,e.default)(t,r)))},De.isNullLiteral=function(t,r){return!!t&&("NullLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},De.isNullLiteralTypeAnnotation=function(t,r){return!!t&&("NullLiteralTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isNullableTypeAnnotation=function(t,r){return!!t&&("NullableTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isNumberLiteral=function(r,n){return(0,t.default)("isNumberLiteral","isNumericLiteral"),!!r&&("NumberLiteral"===r.type&&(null==n||(0,e.default)(r,n)))},De.isNumberLiteralTypeAnnotation=function(t,r){return!!t&&("NumberLiteralTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isNumberTypeAnnotation=function(t,r){return!!t&&("NumberTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isNumericLiteral=function(t,r){return!!t&&("NumericLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},De.isObjectExpression=function(t,r){return!!t&&("ObjectExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isObjectMember=function(t,r){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isObjectMethod=function(t,r){return!!t&&("ObjectMethod"===t.type&&(null==r||(0,e.default)(t,r)))},De.isObjectPattern=function(t,r){return!!t&&("ObjectPattern"===t.type&&(null==r||(0,e.default)(t,r)))},De.isObjectProperty=function(t,r){return!!t&&("ObjectProperty"===t.type&&(null==r||(0,e.default)(t,r)))},De.isObjectTypeAnnotation=function(t,r){return!!t&&("ObjectTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isObjectTypeCallProperty=function(t,r){return!!t&&("ObjectTypeCallProperty"===t.type&&(null==r||(0,e.default)(t,r)))},De.isObjectTypeIndexer=function(t,r){return!!t&&("ObjectTypeIndexer"===t.type&&(null==r||(0,e.default)(t,r)))},De.isObjectTypeInternalSlot=function(t,r){return!!t&&("ObjectTypeInternalSlot"===t.type&&(null==r||(0,e.default)(t,r)))},De.isObjectTypeProperty=function(t,r){return!!t&&("ObjectTypeProperty"===t.type&&(null==r||(0,e.default)(t,r)))},De.isObjectTypeSpreadProperty=function(t,r){return!!t&&("ObjectTypeSpreadProperty"===t.type&&(null==r||(0,e.default)(t,r)))},De.isOpaqueType=function(t,r){return!!t&&("OpaqueType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isOptionalCallExpression=function(t,r){return!!t&&("OptionalCallExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isOptionalIndexedAccessType=function(t,r){return!!t&&("OptionalIndexedAccessType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isOptionalMemberExpression=function(t,r){return!!t&&("OptionalMemberExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isParenthesizedExpression=function(t,r){return!!t&&("ParenthesizedExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isPattern=function(t,r){if(!t)return!1;switch(t.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Pattern"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},De.isPatternLike=function(t,r){if(!t)return!1;switch(t.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==r||(0,e.default)(t,r)},De.isPipelineBareFunction=function(t,r){return!!t&&("PipelineBareFunction"===t.type&&(null==r||(0,e.default)(t,r)))},De.isPipelinePrimaryTopicReference=function(t,r){return!!t&&("PipelinePrimaryTopicReference"===t.type&&(null==r||(0,e.default)(t,r)))},De.isPipelineTopicExpression=function(t,r){return!!t&&("PipelineTopicExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isPlaceholder=function(t,r){return!!t&&("Placeholder"===t.type&&(null==r||(0,e.default)(t,r)))},De.isPrivate=function(t,r){if(!t)return!1;switch(t.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isPrivateName=function(t,r){return!!t&&("PrivateName"===t.type&&(null==r||(0,e.default)(t,r)))},De.isProgram=function(t,r){return!!t&&("Program"===t.type&&(null==r||(0,e.default)(t,r)))},De.isProperty=function(t,r){if(!t)return!1;switch(t.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isPureish=function(t,r){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},De.isQualifiedTypeIdentifier=function(t,r){return!!t&&("QualifiedTypeIdentifier"===t.type&&(null==r||(0,e.default)(t,r)))},De.isRecordExpression=function(t,r){return!!t&&("RecordExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isRegExpLiteral=function(t,r){return!!t&&("RegExpLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},De.isRegexLiteral=function(r,n){return(0,t.default)("isRegexLiteral","isRegExpLiteral"),!!r&&("RegexLiteral"===r.type&&(null==n||(0,e.default)(r,n)))},De.isRestElement=function(t,r){return!!t&&("RestElement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isRestProperty=function(r,n){return(0,t.default)("isRestProperty","isRestElement"),!!r&&("RestProperty"===r.type&&(null==n||(0,e.default)(r,n)))},De.isReturnStatement=function(t,r){return!!t&&("ReturnStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isScopable=function(t,r){if(!t)return!1;switch(t.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},De.isSequenceExpression=function(t,r){return!!t&&("SequenceExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isSpreadElement=function(t,r){return!!t&&("SpreadElement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isSpreadProperty=function(r,n){return(0,t.default)("isSpreadProperty","isSpreadElement"),!!r&&("SpreadProperty"===r.type&&(null==n||(0,e.default)(r,n)))},De.isStandardized=function(t,r){if(!t)return!1;switch(t.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(t.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==r||(0,e.default)(t,r)},De.isStatement=function(t,r){if(!t)return!1;switch(t.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(t.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==r||(0,e.default)(t,r)},De.isStaticBlock=function(t,r){return!!t&&("StaticBlock"===t.type&&(null==r||(0,e.default)(t,r)))},De.isStringLiteral=function(t,r){return!!t&&("StringLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},De.isStringLiteralTypeAnnotation=function(t,r){return!!t&&("StringLiteralTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isStringTypeAnnotation=function(t,r){return!!t&&("StringTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isSuper=function(t,r){return!!t&&("Super"===t.type&&(null==r||(0,e.default)(t,r)))},De.isSwitchCase=function(t,r){return!!t&&("SwitchCase"===t.type&&(null==r||(0,e.default)(t,r)))},De.isSwitchStatement=function(t,r){return!!t&&("SwitchStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isSymbolTypeAnnotation=function(t,r){return!!t&&("SymbolTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSAnyKeyword=function(t,r){return!!t&&("TSAnyKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSArrayType=function(t,r){return!!t&&("TSArrayType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSAsExpression=function(t,r){return!!t&&("TSAsExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSBaseType=function(t,r){if(!t)return!1;switch(t.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isTSBigIntKeyword=function(t,r){return!!t&&("TSBigIntKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSBooleanKeyword=function(t,r){return!!t&&("TSBooleanKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSCallSignatureDeclaration=function(t,r){return!!t&&("TSCallSignatureDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSConditionalType=function(t,r){return!!t&&("TSConditionalType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSConstructSignatureDeclaration=function(t,r){return!!t&&("TSConstructSignatureDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSConstructorType=function(t,r){return!!t&&("TSConstructorType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSDeclareFunction=function(t,r){return!!t&&("TSDeclareFunction"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSDeclareMethod=function(t,r){return!!t&&("TSDeclareMethod"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSEntityName=function(t,r){if(!t)return!1;switch(t.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},De.isTSEnumBody=function(t,r){return!!t&&("TSEnumBody"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSEnumDeclaration=function(t,r){return!!t&&("TSEnumDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSEnumMember=function(t,r){return!!t&&("TSEnumMember"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSExportAssignment=function(t,r){return!!t&&("TSExportAssignment"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSExpressionWithTypeArguments=function(t,r){return!!t&&("TSExpressionWithTypeArguments"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSExternalModuleReference=function(t,r){return!!t&&("TSExternalModuleReference"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSFunctionType=function(t,r){return!!t&&("TSFunctionType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSImportEqualsDeclaration=function(t,r){return!!t&&("TSImportEqualsDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSImportType=function(t,r){return!!t&&("TSImportType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSIndexSignature=function(t,r){return!!t&&("TSIndexSignature"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSIndexedAccessType=function(t,r){return!!t&&("TSIndexedAccessType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSInferType=function(t,r){return!!t&&("TSInferType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSInstantiationExpression=function(t,r){return!!t&&("TSInstantiationExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSInterfaceBody=function(t,r){return!!t&&("TSInterfaceBody"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSInterfaceDeclaration=function(t,r){return!!t&&("TSInterfaceDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSIntersectionType=function(t,r){return!!t&&("TSIntersectionType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSIntrinsicKeyword=function(t,r){return!!t&&("TSIntrinsicKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSLiteralType=function(t,r){return!!t&&("TSLiteralType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSMappedType=function(t,r){return!!t&&("TSMappedType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSMethodSignature=function(t,r){return!!t&&("TSMethodSignature"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSModuleBlock=function(t,r){return!!t&&("TSModuleBlock"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSModuleDeclaration=function(t,r){return!!t&&("TSModuleDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSNamedTupleMember=function(t,r){return!!t&&("TSNamedTupleMember"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSNamespaceExportDeclaration=function(t,r){return!!t&&("TSNamespaceExportDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSNeverKeyword=function(t,r){return!!t&&("TSNeverKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSNonNullExpression=function(t,r){return!!t&&("TSNonNullExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSNullKeyword=function(t,r){return!!t&&("TSNullKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSNumberKeyword=function(t,r){return!!t&&("TSNumberKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSObjectKeyword=function(t,r){return!!t&&("TSObjectKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSOptionalType=function(t,r){return!!t&&("TSOptionalType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSParameterProperty=function(t,r){return!!t&&("TSParameterProperty"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSParenthesizedType=function(t,r){return!!t&&("TSParenthesizedType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSPropertySignature=function(t,r){return!!t&&("TSPropertySignature"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSQualifiedName=function(t,r){return!!t&&("TSQualifiedName"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSRestType=function(t,r){return!!t&&("TSRestType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSSatisfiesExpression=function(t,r){return!!t&&("TSSatisfiesExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSStringKeyword=function(t,r){return!!t&&("TSStringKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSSymbolKeyword=function(t,r){return!!t&&("TSSymbolKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSTemplateLiteralType=function(t,r){return!!t&&("TSTemplateLiteralType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSThisType=function(t,r){return!!t&&("TSThisType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSTupleType=function(t,r){return!!t&&("TSTupleType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSType=function(t,r){if(!t)return!1;switch(t.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isTSTypeAliasDeclaration=function(t,r){return!!t&&("TSTypeAliasDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSTypeAnnotation=function(t,r){return!!t&&("TSTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSTypeAssertion=function(t,r){return!!t&&("TSTypeAssertion"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSTypeElement=function(t,r){if(!t)return!1;switch(t.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isTSTypeLiteral=function(t,r){return!!t&&("TSTypeLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSTypeOperator=function(t,r){return!!t&&("TSTypeOperator"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSTypeParameter=function(t,r){return!!t&&("TSTypeParameter"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSTypeParameterDeclaration=function(t,r){return!!t&&("TSTypeParameterDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSTypeParameterInstantiation=function(t,r){return!!t&&("TSTypeParameterInstantiation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSTypePredicate=function(t,r){return!!t&&("TSTypePredicate"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSTypeQuery=function(t,r){return!!t&&("TSTypeQuery"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSTypeReference=function(t,r){return!!t&&("TSTypeReference"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSUndefinedKeyword=function(t,r){return!!t&&("TSUndefinedKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSUnionType=function(t,r){return!!t&&("TSUnionType"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSUnknownKeyword=function(t,r){return!!t&&("TSUnknownKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTSVoidKeyword=function(t,r){return!!t&&("TSVoidKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTaggedTemplateExpression=function(t,r){return!!t&&("TaggedTemplateExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTemplateElement=function(t,r){return!!t&&("TemplateElement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTemplateLiteral=function(t,r){return!!t&&("TemplateLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTerminatorless=function(t,r){if(!t)return!1;switch(t.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isThisExpression=function(t,r){return!!t&&("ThisExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isThisTypeAnnotation=function(t,r){return!!t&&("ThisTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isThrowStatement=function(t,r){return!!t&&("ThrowStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTopicReference=function(t,r){return!!t&&("TopicReference"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTryStatement=function(t,r){return!!t&&("TryStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTupleExpression=function(t,r){return!!t&&("TupleExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTupleTypeAnnotation=function(t,r){return!!t&&("TupleTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTypeAlias=function(t,r){return!!t&&("TypeAlias"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTypeAnnotation=function(t,r){return!!t&&("TypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTypeCastExpression=function(t,r){return!!t&&("TypeCastExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTypeParameter=function(t,r){return!!t&&("TypeParameter"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTypeParameterDeclaration=function(t,r){return!!t&&("TypeParameterDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTypeParameterInstantiation=function(t,r){return!!t&&("TypeParameterInstantiation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isTypeScript=function(t,r){if(!t)return!1;switch(t.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isTypeofTypeAnnotation=function(t,r){return!!t&&("TypeofTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isUnaryExpression=function(t,r){return!!t&&("UnaryExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isUnaryLike=function(t,r){if(!t)return!1;switch(t.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isUnionTypeAnnotation=function(t,r){return!!t&&("UnionTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isUpdateExpression=function(t,r){return!!t&&("UpdateExpression"===t.type&&(null==r||(0,e.default)(t,r)))},De.isUserWhitespacable=function(t,r){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isV8IntrinsicIdentifier=function(t,r){return!!t&&("V8IntrinsicIdentifier"===t.type&&(null==r||(0,e.default)(t,r)))},De.isVariableDeclaration=function(t,r){return!!t&&("VariableDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},De.isVariableDeclarator=function(t,r){return!!t&&("VariableDeclarator"===t.type&&(null==r||(0,e.default)(t,r)))},De.isVariance=function(t,r){return!!t&&("Variance"===t.type&&(null==r||(0,e.default)(t,r)))},De.isVoidPattern=function(t,r){return!!t&&("VoidPattern"===t.type&&(null==r||(0,e.default)(t,r)))},De.isVoidTypeAnnotation=function(t,r){return!!t&&("VoidTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},De.isWhile=function(t,r){if(!t)return!1;switch(t.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==r||(0,e.default)(t,r)},De.isWhileStatement=function(t,r){return!!t&&("WhileStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isWithStatement=function(t,r){return!!t&&("WithStatement"===t.type&&(null==r||(0,e.default)(t,r)))},De.isYieldExpression=function(t,r){return!!t&&("YieldExpression"===t.type&&(null==r||(0,e.default)(t,r)))};var e=Be(),t=He();function r(t,r){if(!t)return!1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==r||(0,e.default)(t,r)}return De}function qe(){if(Re)return Le;Re=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.default=function(r,n,i){if(!t(r))return!1;const s=Array.isArray(n)?n:n.split("."),a=[];let o;for(o=r;t(o);o=null!=(l=o.object)?l:o.meta){var l;a.push(o.property)}if(a.push(o),a.length<s.length)return!1;if(!i&&a.length>s.length)return!1;for(let t=0,r=a.length-1;t<s.length;t++,r--){const n=a[r];let i;if((0,e.isIdentifier)(n))i=n.name;else if((0,e.isStringLiteral)(n))i=n.value;else if((0,e.isThisExpression)(n))i="this";else if((0,e.isSuper)(n))i="super";else{if(!(0,e.isPrivateName)(n))return!1;i="#"+n.id.name}if(s[t]!==i)return!1}return!0};var e=We();function t(t){return(0,e.isMemberExpression)(t)||(0,e.isMetaProperty)(t)}return Le}function $e(){if(Ve)return Ne;Ve=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.default=function(t,r){const n=t.split(".");return t=>(0,e.default)(t,n,r)};var e=qe();return Ne}var Ye,Je={};var Xe,ze={},Ge={},Qe={},Ze={},et={},tt={},rt={},nt={},it={};function st(){if(Xe)return it;Xe=1,Object.defineProperty(it,"__esModule",{value:!0}),it.default=function(t,r){if(t===r)return!0;if(null==t)return!1;if(e.ALIAS_KEYS[r])return!1;const n=e.FLIPPED_ALIAS_KEYS[r];return!(null==n||!n.includes(t))};var e=Xt();return it}var at,ot,lt={};function ct(){if(at)return lt;at=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.default=function(t,r){if(t===r)return!0;const n=e.PLACEHOLDERS_ALIAS[t];return!(null==n||!n.includes(r))};var e=Xt();return lt}function pt(){if(ot)return nt;ot=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=function(i,s,a){if(!s)return!1;const o=(0,t.default)(s.type,i);if(!o)return!a&&"Placeholder"===s.type&&i in n.FLIPPED_ALIAS_KEYS&&(0,r.default)(s.expectedNode,i);return void 0===a||(0,e.default)(s,a)};var e=Be(),t=st(),r=ct(),n=Xt();return nt}var ut,ht={},dt={},ft={};var mt,yt,gt,Tt={};function xt(){return yt||(yt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=function(){if(ut)return ft;ut=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.isIdentifierChar=l,ft.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(55296==(64512&n)&&r+1<e.length){const t=e.charCodeAt(++r);56320==(64512&t)&&(n=65536+((1023&n)<<10)+(1023&t))}if(t){if(t=!1,!o(n))return!1}else if(!l(n))return!1}return!t},ft.isIdentifierStart=o;let e="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const r=new RegExp("["+e+"]"),n=new RegExp("["+e+t+"]");e=t=null;const 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,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],s=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function a(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function o(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):a(e,i)))}function l(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):a(e,i)||a(e,s))))}return ft}(),r=function(){if(mt)return Tt;mt=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.isKeyword=function(e){return r.has(e)},Tt.isReservedWord=s,Tt.isStrictBindOnlyReservedWord=o,Tt.isStrictBindReservedWord=function(e,t){return a(e,t)||o(e)},Tt.isStrictReservedWord=a;const e=["implements","interface","let","package","private","protected","public","static","yield"],t=["eval","arguments"],r=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),n=new Set(e),i=new Set(t);function s(e,t){return t&&"await"===e||"enum"===e}function a(e,t){return s(e,t)||n.has(e)}function o(e){return i.has(e)}return Tt}()}(dt)),dt}function bt(){if(gt)return ht;gt=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.default=function(t,r=!0){if("string"!=typeof t)return!1;if(r&&((0,e.isKeyword)(t)||(0,e.isStrictReservedWord)(t,!0)))return!1;return(0,e.isIdentifierName)(t)};var e=xt();return ht}var St,vt={};var Et,Pt={};function At(){if(Et)return Pt;Et=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.UPDATE_OPERATORS=Pt.UNARY_OPERATORS=Pt.STRING_UNARY_OPERATORS=Pt.STATEMENT_OR_BLOCK_KEYS=Pt.NUMBER_UNARY_OPERATORS=Pt.NUMBER_BINARY_OPERATORS=Pt.LOGICAL_OPERATORS=Pt.INHERIT_KEYS=Pt.FOR_INIT_KEYS=Pt.FLATTENABLE_KEYS=Pt.EQUALITY_BINARY_OPERATORS=Pt.COMPARISON_BINARY_OPERATORS=Pt.COMMENT_KEYS=Pt.BOOLEAN_UNARY_OPERATORS=Pt.BOOLEAN_NUMBER_BINARY_OPERATORS=Pt.BOOLEAN_BINARY_OPERATORS=Pt.BINARY_OPERATORS=Pt.ASSIGNMENT_OPERATORS=void 0,Pt.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],Pt.FLATTENABLE_KEYS=["body","expressions"],Pt.FOR_INIT_KEYS=["left","init"],Pt.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const e=Pt.LOGICAL_OPERATORS=["||","&&","??"];Pt.UPDATE_OPERATORS=["++","--"];const t=Pt.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],r=Pt.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],n=Pt.COMPARISON_BINARY_OPERATORS=[...r,"in","instanceof"],i=Pt.BOOLEAN_BINARY_OPERATORS=[...n,...t],s=Pt.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];Pt.BINARY_OPERATORS=["+",...s,...i,"|>"],Pt.ASSIGNMENT_OPERATORS=["=","+=",...s.map(e=>e+"="),...e.map(e=>e+"=")];const a=Pt.BOOLEAN_UNARY_OPERATORS=["delete","!"],o=Pt.NUMBER_UNARY_OPERATORS=["+","-","~"],l=Pt.STRING_UNARY_OPERATORS=["typeof"];return Pt.UNARY_OPERATORS=["void","throw",...a,...o,...l],Pt.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},Pt.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),Pt.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding"),Pt}var Ct,wt,_t={};function It(){if(Ct)return _t;Ct=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.allExpandedTypes=_t.VISITOR_KEYS=_t.NODE_PARENT_VALIDATIONS=_t.NODE_FIELDS=_t.FLIPPED_ALIAS_KEYS=_t.DEPRECATED_KEYS=_t.BUILDER_KEYS=_t.ALIAS_KEYS=void 0,_t.arrayOf=u,_t.arrayOfType=h,_t.assertEach=d,_t.assertNodeOrValueType=function(...r){function n(n,i,s){const a=c(s);for(const o of r)if(a===o||(0,e.default)(o,s))return void(0,t.validateChild)(n,i,s);throw new TypeError(`Property ${i} of ${n.type} expected node to be of a type ${JSON.stringify(r)} but instead got ${JSON.stringify(null==s?void 0:s.type)}`)}return n.oneOfNodeOrValueTypes=r,n},_t.assertNodeType=m,_t.assertOneOf=function(...e){function t(t,r,n){if(!e.includes(n))throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(n)}`)}return t.oneOf=e,t},_t.assertOptionalChainStart=function(){return function(e){var t;let r=e;for(;e;){const{type:e}=r;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(r.optional)return;r=r.object}else{if(r.optional)return;r=r.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=r)?void 0:t.type}`)}},_t.assertShape=function(e){const r=Object.keys(e);function n(n,i,s){const a=[];for(const i of r)try{(0,t.validateField)(n,i,s[i],e[i])}catch(e){if(e instanceof TypeError){a.push(e.message);continue}throw e}if(a.length)throw new TypeError(`Property ${i} of ${n.type} expected to have the following:\n${a.join("\n")}`)}return n.shapeOf=e,n},_t.assertValueType=y,_t.chain=g,_t.default=S,_t.defineAliasedType=function(...e){return(t,r={})=>{let n=r.aliases;var i;n||(r.inherits&&(n=null==(i=b[r.inherits].aliases)?void 0:i.slice()),null!=n||(n=[]),r.aliases=n);const s=e.filter(e=>!n.includes(e));n.unshift(...s),S(t,r)}},_t.validate=p,_t.validateArrayOfType=function(...e){return p(h(...e))},_t.validateOptional=function(e){return{validate:e,optional:!0}},_t.validateOptionalType=function(...e){return{validate:m(...e),optional:!0}},_t.validateType=function(...e){return p(m(...e))};var e=pt(),t=zt();const r=_t.VISITOR_KEYS={},n=_t.ALIAS_KEYS={},i=_t.FLIPPED_ALIAS_KEYS={},s=_t.NODE_FIELDS={},a=_t.BUILDER_KEYS={},o=_t.DEPRECATED_KEYS={},l=_t.NODE_PARENT_VALIDATIONS={};function c(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function p(e){return{validate:e}}function u(e){return g(y("array"),d(e))}function h(...e){return u(m(...e))}function d(e){const r=process.env.BABEL_TYPES_8_BREAKING?t.validateChild:()=>{};function n(t,n,i){if(!Array.isArray(i))return;let s=0;const a={toString:()=>`${n}[${s}]`};for(;s<i.length;s++){const n=i[s];e(t,a,n),r(t,a,n)}}return n.each=e,n}const f=_t.allExpandedTypes=[];function m(...r){const n=new Set;function i(i,s,a){const o=null==a?void 0:a.type;if(null!=o){if(n.has(o))return void(0,t.validateChild)(i,s,a);if("Placeholder"===o)for(const n of r)if((0,e.default)(n,a))return void(0,t.validateChild)(i,s,a)}throw new TypeError(`Property ${s} of ${i.type} expected node to be of a type ${JSON.stringify(r)} but instead got ${JSON.stringify(o)}`)}return f.push({types:r,set:n}),i.oneOfNodeTypes=r,i}function y(e){function t(t,r,n){if(c(n)!==e)throw new TypeError(`Property ${r} expected type of ${e} but got ${c(n)}`)}return t.type=e,t}function g(...e){function t(...t){for(const r of e)r(...t)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&"array"===e[0].type&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}const T=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),x=new Set(["default","optional","deprecated","validate"]),b={};function S(e,t={}){const p=t.inherits&&b[t.inherits]||{};let u=t.fields;if(!u&&(u={},p.fields)){const e=Object.getOwnPropertyNames(p.fields);for(const t of e){const e=p.fields[t],r=e.default;if(Array.isArray(r)?r.length>0:r&&"object"==typeof r)throw new Error("field defaults can only be primitives or empty arrays currently");u[t]={default:Array.isArray(r)?[]:r,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const h=t.visitor||p.visitor||[],d=t.aliases||p.aliases||[],f=t.builder||p.builder||t.visitor||[];for(const r of Object.keys(t))if(!T.has(r))throw new Error(`Unknown type option "${r}" on ${e}`);t.deprecatedAlias&&(o[t.deprecatedAlias]=e);for(const e of h.concat(f))u[e]=u[e]||{};for(const t of Object.keys(u)){const r=u[t];void 0===r.default||f.includes(t)||(r.optional=!0),void 0===r.default?r.default=null:r.validate||null==r.default||(r.validate=y(c(r.default)));for(const n of Object.keys(r))if(!x.has(n))throw new Error(`Unknown field key "${n}" on ${e}.${t}`)}r[e]=t.visitor=h,a[e]=t.builder=f,s[e]=t.fields=u,n[e]=t.aliases=d,d.forEach(t=>{i[t]=i[t]||[],i[t].push(e)}),t.validate&&(l[e]=t.validate),b[e]=t}return _t}function kt(){if(wt)return rt;wt=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.patternLikeCommon=rt.importAttributes=rt.functionTypeAnnotationCommon=rt.functionDeclarationCommon=rt.functionCommon=rt.classMethodOrPropertyCommon=rt.classMethodOrDeclareMethodCommon=void 0;var e=pt(),t=bt(),r=xt(),n=function(){if(St)return vt;St=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.readCodePoint=o,vt.readInt=a,vt.readStringContents=function(e,t,r,s,a,o){const l=r,c=s,p=a;let u="",h=null,d=r;const{length:f}=t;for(;;){if(r>=f){o.unterminated(l,c,p),u+=t.slice(d,r);break}const m=t.charCodeAt(r);if(n(e,m,t,r)){u+=t.slice(d,r);break}if(92===m){u+=t.slice(d,r);const n=i(t,r,s,a,"template"===e,o);null!==n.ch||h?u+=n.ch:h={pos:r,lineStart:s,curLine:a},({pos:r,lineStart:s,curLine:a}=n),d=r}else 8232===m||8233===m?(++a,s=++r):10===m||13===m?"template"===e?(u+=t.slice(d,r)+"\n",++r,13===m&&10===t.charCodeAt(r)&&++r,++a,d=s=r):o.unterminated(l,c,p):++r}return{pos:r,str:u,firstInvalidLoc:h,lineStart:s,curLine:a,containsInvalid:!!h}};var e=function(e){return e>=48&&e<=57};const t={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},r={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function n(e,t,r,n){return"template"===e?96===t||36===t&&123===r.charCodeAt(n+1):t===("double"===e?34:39)}function i(e,t,r,n,i,a){const l=!i;t++;const c=e=>({pos:t,ch:e,lineStart:r,curLine:n}),p=e.charCodeAt(t++);switch(p){case 110:return c("\n");case 114:return c("\r");case 120:{let i;return({code:i,pos:t}=s(e,t,r,n,2,!1,l,a)),c(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=o(e,t,r,n,l,a)),c(null===i?null:String.fromCodePoint(i))}case 116:return c("\t");case 98:return c("\b");case 118:return c("\v");case 102:return c("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return c("");case 56:case 57:if(i)return c(null);a.strictNumericEscape(t-1,r,n);default:if(p>=48&&p<=55){const s=t-1;let o=/^[0-7]+/.exec(e.slice(s,t+2))[0],l=parseInt(o,8);l>255&&(o=o.slice(0,-1),l=parseInt(o,8)),t+=o.length-1;const p=e.charCodeAt(t);if("0"!==o||56===p||57===p){if(i)return c(null);a.strictNumericEscape(s,r,n)}return c(String.fromCharCode(l))}return c(String.fromCharCode(p))}}function s(e,t,r,n,i,s,o,l){const c=t;let p;return({n:p,pos:t}=a(e,t,r,n,16,i,s,!1,l,!o)),null===p&&(o?l.invalidEscapeSequence(c,r,n):t=c-1),{code:p,pos:t}}function a(n,i,s,a,o,l,c,p,u,h){const d=i,f=16===o?t.hex:t.decBinOct,m=16===o?r.hex:10===o?r.dec:8===o?r.oct:r.bin;let y=!1,g=0;for(let t=0,r=null==l?1/0:l;t<r;++t){const t=n.charCodeAt(i);let r;if(95===t&&"bail"!==p){const e=n.charCodeAt(i-1),t=n.charCodeAt(i+1);if(p){if(Number.isNaN(t)||!m(t)||f.has(e)||f.has(t)){if(h)return{n:null,pos:i};u.unexpectedNumericSeparator(i,s,a)}}else{if(h)return{n:null,pos:i};u.numericSeparatorInEscapeSequence(i,s,a)}++i;continue}if(r=t>=97?t-97+10:t>=65?t-65+10:e(t)?t-48:1/0,r>=o){if(r<=9&&h)return{n:null,pos:i};if(r<=9&&u.invalidDigit(i,s,a,o))r=0;else{if(!c)break;r=0,y=!0}}++i,g=g*o+r}return i===d||null!=l&&i-d!==l||y?{n:null,pos:i}:{n:g,pos:i}}function o(e,t,r,n,i,a){let o;if(123===e.charCodeAt(t)){if(++t,({code:o,pos:t}=s(e,t,r,n,e.indexOf("}",t)-t,!0,i,a)),++t,null!==o&&o>1114111){if(!i)return{code:null,pos:t};a.invalidCodePoint(t,r,n)}}else({code:o,pos:t}=s(e,t,r,n,4,!1,i,a));return{code:o,pos:t}}return vt}(),i=At(),s=It();const a=(0,s.defineAliasedType)("Standardized");a("ArrayExpression",{fields:{elements:{validate:(0,s.arrayOf)((0,s.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),a("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){const t=(0,s.assertOneOf)(...i.ASSIGNMENT_OPERATORS),r=(0,s.assertOneOf)("=");return function(n,i,s){((0,e.default)("Pattern",n.left)?r:t)(n,i,s)}}(),{oneOf:i.ASSIGNMENT_OPERATORS}):(0,s.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,s.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,s.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),a("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,s.assertOneOf)(...i.BINARY_OPERATORS)},left:{validate:function(){const e=(0,s.assertNodeType)("Expression"),t=(0,s.assertNodeType)("Expression","PrivateName"),r=Object.assign(function(r,n,i){("in"===r.operator?t:e)(r,n,i)},{oneOfNodeTypes:["Expression","PrivateName"]});return r}()},right:{validate:(0,s.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),a("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}}}),a("Directive",{visitor:["value"],fields:{value:{validate:(0,s.assertNodeType)("DirectiveLiteral")}}}),a("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}}}),a("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,s.arrayOfType)("Directive"),default:[]},body:(0,s.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),a("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,s.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),a("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,s.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,s.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,s.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,s.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),a("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,s.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),a("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},consequent:{validate:(0,s.assertNodeType)("Expression")},alternate:{validate:(0,s.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),a("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,s.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),a("DebuggerStatement",{aliases:["Statement"]}),a("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),a("EmptyStatement",{aliases:["Statement"]}),a("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),a("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,s.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertEach)((0,s.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,s.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),a("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,s.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}}}),a("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,s.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,s.assertNodeType)("Expression"),optional:!0},update:{validate:(0,s.assertNodeType)("Expression"),optional:!0},body:{validate:(0,s.assertNodeType)("Statement")}}});const o=()=>({params:(0,s.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});rt.functionCommon=o;const l=()=>({returnType:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});rt.functionTypeAnnotationCommon=l;const c=()=>Object.assign({},o(),{declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0}});rt.functionDeclarationCommon=c,a("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},c(),l(),{body:{validate:(0,s.assertNodeType)("BlockStatement")},predicate:{validate:(0,s.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){const t=(0,s.assertNodeType)("Identifier");return function(r,n,i){(0,e.default)("ExportDefaultDeclaration",r)||t(i,"id",i.id)}}():void 0}),a("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},o(),l(),{id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,s.assertNodeType)("BlockStatement")},predicate:{validate:(0,s.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const p=()=>({typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,s.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0}});rt.patternLikeCommon=p,a("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},p(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("string"),Object.assign(function(e,r,n){if(!(0,t.default)(n,!1))throw new TypeError(`"${n}" is not a valid identifier name`)},{type:"string"})):(0,s.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(t,n,i){const s=/\.(\w+)$/.exec(n.toString());if(!s)return;const[,a]=s,o={computed:!1};if("property"===a){if((0,e.default)("MemberExpression",t,o))return;if((0,e.default)("OptionalMemberExpression",t,o))return}else if("key"===a){if((0,e.default)("Property",t,o))return;if((0,e.default)("Method",t,o))return}else if("exported"===a){if((0,e.default)("ExportSpecifier",t))return}else if("imported"===a){if((0,e.default)("ImportSpecifier",t,{imported:i}))return}else if("meta"===a&&(0,e.default)("MetaProperty",t,{meta:i}))return;if(((0,r.isKeyword)(i.name)||(0,r.isReservedWord)(i.name,!1))&&"this"!==i.name)throw new TypeError(`"${i.name}" is not a valid identifier`)}:void 0}),a("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},consequent:{validate:(0,s.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,s.assertNodeType)("Statement")}}}),a("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,s.assertNodeType)("Identifier")},body:{validate:(0,s.assertNodeType)("Statement")}}}),a("StringLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),a("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,s.chain)((0,s.assertValueType)("number"),Object.assign(function(e,t,r){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),a("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),a("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),a("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,s.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("string"),Object.assign(function(e,t,r){const n=/[^dgimsuvy]/.exec(r);if(n)throw new TypeError(`"${n[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,s.assertValueType)("string"),default:""}}}),a("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,s.assertOneOf)(...i.LOGICAL_OPERATORS)},left:{validate:(0,s.assertNodeType)("Expression")},right:{validate:(0,s.assertNodeType)("Expression")}}}),a("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],fields:Object.assign({object:{validate:(0,s.assertNodeType)("Expression","Super")},property:{validate:function(){const e=(0,s.assertNodeType)("Identifier","PrivateName"),t=(0,s.assertNodeType)("Expression"),r=function(r,n,i){(r.computed?t:e)(r,n,i)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,s.assertValueType)("boolean"),optional:!0}})}),a("NewExpression",{inherits:"CallExpression"}),a("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,s.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,s.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,s.arrayOfType)("Directive"),default:[]},body:(0,s.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),a("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,s.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),a("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},o(),l(),{kind:Object.assign({validate:(0,s.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const e=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,s.assertNodeType)("Expression"),r=function(r,n,i){(r.computed?t:e)(r,n,i)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,s.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),a("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const e=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,s.assertNodeType)("Expression"),r=Object.assign(function(r,n,i){(r.computed?t:e)(r,n,i)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]});return r}()},value:{validate:(0,s.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("boolean"),Object.assign(function(t,r,n){if(n){if(t.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,e.default)("Identifier",t.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,s.assertValueType)("boolean"),default:!1},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){const t=(0,s.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),r=(0,s.assertNodeType)("Expression");return function(n,i,s){((0,e.default)("ObjectPattern",n)?t:r)(s,"value",s.value)}}():void 0}),a("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},p(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){const r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");const[,n,i]=r;if(e[n].length>+i+1)throw new TypeError(`RestElement must be last element of ${n}`)}:void 0}),a("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,s.assertNodeType)("Expression"),optional:!0}}}),a("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,s.validateArrayOfType)("Expression")},aliases:["Expression"]}),a("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,s.assertNodeType)("Expression")}}}),a("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,s.assertNodeType)("Expression"),optional:!0},consequent:(0,s.validateArrayOfType)("Statement")}}),a("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,s.assertNodeType)("Expression")},cases:(0,s.validateArrayOfType)("SwitchCase")}}),a("ThisExpression",{aliases:["Expression"]}),a("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),a("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,s.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,s.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,s.assertNodeType)("BlockStatement")}}}),a("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,s.assertNodeType)("Expression")},operator:{validate:(0,s.assertOneOf)(...i.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),a("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","MemberExpression"):(0,s.assertNodeType)("Expression")},operator:{validate:(0,s.assertOneOf)(...i.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),a("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},kind:{validate:(0,s.assertOneOf)("var","let","const","using","await using")},declarations:(0,s.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{const t=(0,s.assertNodeType)("Identifier","Placeholder"),r=(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),n=(0,s.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(i,s,a){const{kind:o,declarations:l}=a,c=(0,e.default)("ForXStatement",i,{left:a});if(c&&1!==l.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${i.type}`);for(const e of l)"const"===o||"let"===o||"var"===o?c||e.init?r(e,"id",e.id):t(e,"id",e.id):n(e,"id",e.id)}})():void 0}),a("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,s.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,s.assertValueType)("boolean")},init:{optional:!0,validate:(0,s.assertNodeType)("Expression")}}}),a("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}}}),a("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")}}}),a("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},p(),{left:{validate:(0,s.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,s.assertNodeType)("Expression")},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0}})}),a("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},p(),{elements:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeOrValueType)("null","PatternLike")))}})}),a("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},o(),l(),{expression:{validate:(0,s.assertValueType)("boolean")},body:{validate:(0,s.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,s.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),a("ClassBody",{visitor:["body"],fields:{body:(0,s.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),a("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,s.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,s.assertNodeType)("Expression")},superTypeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,s.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,s.assertNodeType)("InterfaceExtends"),optional:!0}}}),a("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,s.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,s.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,s.assertNodeType)("Expression")},superTypeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,s.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,s.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,s.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?function(){const t=(0,s.assertNodeType)("Identifier");return function(r,n,i){(0,e.default)("ExportDefaultDeclaration",r)||t(i,"id",i.id)}}():void 0});const u=rt.importAttributes={attributes:{optional:!0,validate:(0,s.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,s.arrayOfType)("ImportAttribute")}};a("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,s.assertNodeType)("StringLiteral")},exportKind:(0,s.validateOptional)((0,s.assertOneOf)("type","value"))},u)}),a("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,s.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,s.validateOptional)((0,s.assertOneOf)("value"))}}),a("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,s.assertNodeType)("Declaration")}},u,{specifiers:{default:[],validate:(0,s.arrayOf)(function(){const e=(0,s.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,s.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,n,i){(r.source?e:t)(r,n,i)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:(0,s.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,s.validateOptional)((0,s.assertOneOf)("type","value"))})}),a("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")},exported:{validate:(0,s.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,s.assertOneOf)("type","value"),optional:!0}}}),a("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,s.assertNodeType)("VariableDeclaration","LVal");const t=(0,s.assertNodeType)("VariableDeclaration"),r=(0,s.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(n,i,s){(0,e.default)("VariableDeclaration",s)?t(n,i,s):r(n,i,s)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,s.assertNodeType)("Expression")},body:{validate:(0,s.assertNodeType)("Statement")},await:{default:!1}}}),a("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},u,{module:{optional:!0,validate:(0,s.assertValueType)("boolean")},phase:{default:null,validate:(0,s.assertOneOf)("source","defer")},specifiers:(0,s.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,s.assertNodeType)("StringLiteral")},importKind:{validate:(0,s.assertOneOf)("type","typeof","value"),optional:!0}})}),a("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")}}}),a("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")}}}),a("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,s.assertNodeType)("Identifier")},imported:{validate:(0,s.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,s.assertOneOf)("type","typeof","value"),optional:!0}}}),a("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,s.assertOneOf)("source","defer")},source:{validate:(0,s.assertNodeType)("Expression")},options:{validate:(0,s.assertNodeType)("Expression"),optional:!0}}}),a("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertNodeType)("Identifier"),Object.assign(function(t,r,n){let i;switch(n.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta"}if(!(0,e.default)("Identifier",t.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,s.assertNodeType)("Identifier")},property:{validate:(0,s.assertNodeType)("Identifier")}}});const h=()=>({abstract:{validate:(0,s.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,s.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,s.assertValueType)("boolean"),optional:!0},key:{validate:(0,s.chain)(function(){const e=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,s.assertNodeType)("Expression");return function(r,n,i){(r.computed?t:e)(r,n,i)}}(),(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});rt.classMethodOrPropertyCommon=h;const d=()=>Object.assign({},o(),h(),{params:(0,s.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,s.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,s.chain)((0,s.assertValueType)("string"),(0,s.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0}});return rt.classMethodOrDeclareMethodCommon=d,a("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},d(),l(),{body:{validate:(0,s.assertNodeType)("BlockStatement")}})}),a("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},p(),{properties:(0,s.validateArrayOfType)("RestElement","ObjectProperty")})}),a("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),a("Super",{aliases:["Expression"]}),a("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,s.assertNodeType)("Expression")},quasi:{validate:(0,s.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,s.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),a("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,s.chain)((0,s.assertShape)({raw:{validate:(0,s.assertValueType)("string")},cooked:{validate:(0,s.assertValueType)("string"),optional:!0}}),function(e){const t=e.value.raw;let r=!1;const i=()=>{throw new Error("Internal @babel/types error.")},{str:s,firstInvalidLoc:a}=(0,n.readStringContents)("template",t,0,0,0,{unterminated(){r=!0},strictNumericEscape:i,invalidEscapeSequence:i,numericSeparatorInEscapeSequence:i,unexpectedNumericSeparator:i,invalidDigit:i,invalidCodePoint:i});if(!r)throw new Error("Invalid raw");e.value.cooked=a?null:s})},tail:{default:!1}}}),a("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,s.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,s.chain)((0,s.assertValueType)("array"),(0,s.assertEach)((0,s.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.\nExpected ${r.length+1} quasis but got ${e.quasis.length}`)})}}}),a("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,s.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,s.assertNodeType)("Expression")}}}),a("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,s.assertNodeType)("Expression")}}}),a("Import",{aliases:["Expression"]}),a("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,s.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),a("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,s.assertNodeType)("Identifier")}}}),a("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,s.assertNodeType)("Expression")},property:{validate:function(){const e=(0,s.assertNodeType)("Identifier"),t=(0,s.assertNodeType)("Expression"),r=Object.assign(function(r,n,i){(r.computed?t:e)(r,n,i)},{oneOfNodeTypes:["Expression","Identifier"]});return r}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("boolean"),(0,s.assertOptionalChainStart)()):(0,s.assertValueType)("boolean")}}}),a("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,s.assertNodeType)("Expression")},arguments:(0,s.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,s.chain)((0,s.assertValueType)("boolean"),(0,s.assertOptionalChainStart)()):(0,s.assertValueType)("boolean")},typeArguments:{validate:(0,s.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,s.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),a("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},h(),{value:{validate:(0,s.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,s.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},variance:{validate:(0,s.assertNodeType)("Variance"),optional:!0}})}),a("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},h(),{key:{validate:(0,s.chain)(function(){const e=(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,s.assertNodeType)("Expression");return function(r,n,i){(r.computed?t:e)(r,n,i)}}(),(0,s.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,s.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,s.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},declare:{validate:(0,s.assertValueType)("boolean"),optional:!0},variance:{validate:(0,s.assertNodeType)("Variance"),optional:!0}})}),a("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,s.assertNodeType)("PrivateName")},value:{validate:(0,s.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,s.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,s.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,s.assertValueType)("boolean"),default:!1},readonly:{validate:(0,s.assertValueType)("boolean"),optional:!0},optional:{validate:(0,s.assertValueType)("boolean"),optional:!0},definite:{validate:(0,s.assertValueType)("boolean"),optional:!0},variance:{validate:(0,s.assertNodeType)("Variance"),optional:!0}}}),a("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},d(),l(),{kind:{validate:(0,s.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,s.assertNodeType)("PrivateName")},body:{validate:(0,s.assertNodeType)("BlockStatement")}})}),a("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,s.assertNodeType)("Identifier")}}}),a("StaticBlock",{visitor:["body"],fields:{body:(0,s.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),a("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,s.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,s.assertNodeType)("StringLiteral")}}}),rt}var Ot,Nt={};var Lt,Dt={};var Mt,Bt,Ft={},jt={};function Rt(){if(Mt)return jt;Mt=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.PLACEHOLDERS_FLIPPED_ALIAS=jt.PLACEHOLDERS_ALIAS=jt.PLACEHOLDERS=void 0;var e=It();const t=jt.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],r=jt.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const n of t){const t=e.ALIAS_KEYS[n];null!=t&&t.length&&(r[n]=t)}const n=jt.PLACEHOLDERS_FLIPPED_ALIAS={};return Object.keys(r).forEach(e=>{r[e].forEach(t=>{hasOwnProperty.call(n,t)||(n[t]=[]),n[t].push(e)})}),jt}var Vt,Ut={};var Kt,Ht={};var Wt,qt,$t,Yt,Jt={};function Xt(){return qt||(qt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALIAS_KEYS",{enumerable:!0,get:function(){return t.ALIAS_KEYS}}),Object.defineProperty(e,"BUILDER_KEYS",{enumerable:!0,get:function(){return t.BUILDER_KEYS}}),Object.defineProperty(e,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return n.DEPRECATED_ALIASES}}),Object.defineProperty(e,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return t.DEPRECATED_KEYS}}),Object.defineProperty(e,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return t.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(e,"NODE_FIELDS",{enumerable:!0,get:function(){return t.NODE_FIELDS}}),Object.defineProperty(e,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return t.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(e,"PLACEHOLDERS",{enumerable:!0,get:function(){return r.PLACEHOLDERS}}),Object.defineProperty(e,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return r.PLACEHOLDERS_ALIAS}}),Object.defineProperty(e,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return r.PLACEHOLDERS_FLIPPED_ALIAS}}),e.TYPES=void 0,Object.defineProperty(e,"VISITOR_KEYS",{enumerable:!0,get:function(){return t.VISITOR_KEYS}}),kt(),function(){if(Ot)return Nt;Ot=1;var e=kt(),t=It();const r=(0,t.defineAliasedType)("Flow"),n=e=>{const n="DeclareClass"===e;r(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...n?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),extends:(0,t.validateOptional)((0,t.arrayOfType)("InterfaceExtends"))},n?{mixins:(0,t.validateOptional)((0,t.arrayOfType)("InterfaceExtends")),implements:(0,t.validateOptional)((0,t.arrayOfType)("ClassImplements"))}:{},{body:(0,t.validateType)("ObjectTypeAnnotation")})})};r("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,t.validateType)("FlowType")}}),r("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterInstantiation")}}),n("DeclareClass"),r("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),predicate:(0,t.validateOptionalType)("DeclaredPredicate")}}),n("DeclareInterface"),r("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier","StringLiteral"),body:(0,t.validateType)("BlockStatement"),kind:(0,t.validateOptional)((0,t.assertOneOf)("CommonJS","ES"))}}),r("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,t.validateType)("TypeAnnotation")}}),r("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),right:(0,t.validateType)("FlowType")}}),r("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,t.validateOptionalType)("FlowType"),impltype:(0,t.validateOptionalType)("FlowType")}}),r("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier")}}),r("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,t.validateOptionalType)("Flow"),specifiers:(0,t.validateOptional)((0,t.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,t.validateOptionalType)("StringLiteral"),default:(0,t.validateOptional)((0,t.assertValueType)("boolean"))},e.importAttributes)}),r("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,t.validateType)("StringLiteral"),exportKind:(0,t.validateOptional)((0,t.assertOneOf)("type","value"))},e.importAttributes)}),r("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,t.validateType)("Flow")}}),r("ExistsTypeAnnotation",{aliases:["FlowType"]}),r("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),params:(0,t.validateArrayOfType)("FunctionTypeParam"),rest:(0,t.validateOptionalType)("FunctionTypeParam"),this:(0,t.validateOptionalType)("FunctionTypeParam"),returnType:(0,t.validateType)("FlowType")}}),r("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,t.validateOptionalType)("Identifier"),typeAnnotation:(0,t.validateType)("FlowType"),optional:(0,t.validateOptional)((0,t.assertValueType)("boolean"))}}),r("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,t.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterInstantiation")}}),r("InferredPredicate",{aliases:["FlowPredicate"]}),r("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,t.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterInstantiation")}}),n("InterfaceDeclaration"),r("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,t.validateOptional)((0,t.arrayOfType)("InterfaceExtends")),body:(0,t.validateType)("ObjectTypeAnnotation")}}),r("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),r("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,t.validateType)("FlowType")}}),r("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,t.validate)((0,t.assertValueType)("number"))}}),r("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,t.validate)((0,t.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,t.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,t.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,t.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,t.assertValueType)("boolean"),default:!1},inexact:(0,t.validateOptional)((0,t.assertValueType)("boolean"))}}),r("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,t.validateType)("Identifier"),value:(0,t.validateType)("FlowType"),optional:(0,t.validate)((0,t.assertValueType)("boolean")),static:(0,t.validate)((0,t.assertValueType)("boolean")),method:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,t.validateType)("FlowType"),static:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,t.validateOptionalType)("Identifier"),key:(0,t.validateType)("FlowType"),value:(0,t.validateType)("FlowType"),static:(0,t.validate)((0,t.assertValueType)("boolean")),variance:(0,t.validateOptionalType)("Variance")}}),r("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,t.validateType)("Identifier","StringLiteral"),value:(0,t.validateType)("FlowType"),kind:(0,t.validate)((0,t.assertOneOf)("init","get","set")),static:(0,t.validate)((0,t.assertValueType)("boolean")),proto:(0,t.validate)((0,t.assertValueType)("boolean")),optional:(0,t.validate)((0,t.assertValueType)("boolean")),variance:(0,t.validateOptionalType)("Variance"),method:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,t.validateType)("FlowType")}}),r("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,t.validateOptionalType)("FlowType"),impltype:(0,t.validateType)("FlowType")}}),r("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,t.validateType)("Identifier"),qualification:(0,t.validateType)("Identifier","QualifiedTypeIdentifier")}}),r("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,t.validate)((0,t.assertValueType)("string"))}}),r("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),r("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,t.validateType)("FlowType")}}),r("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),right:(0,t.validateType)("FlowType")}}),r("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,t.validateType)("FlowType")}}),r("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,t.validateType)("Expression"),typeAnnotation:(0,t.validateType)("TypeAnnotation")}}),r("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,t.validate)((0,t.assertValueType)("string")),bound:(0,t.validateOptionalType)("TypeAnnotation"),default:(0,t.validateOptionalType)("FlowType"),variance:(0,t.validateOptionalType)("Variance")}}),r("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,t.validate)((0,t.arrayOfType)("TypeParameter"))}}),r("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),r("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),r("Variance",{builder:["kind"],fields:{kind:(0,t.validate)((0,t.assertOneOf)("minus","plus"))}}),r("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,t.validateType)("Identifier"),body:(0,t.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),r("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,t.validate)((0,t.assertValueType)("boolean")),members:(0,t.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,t.validate)((0,t.assertValueType)("boolean")),members:(0,t.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,t.validate)((0,t.assertValueType)("boolean")),members:(0,t.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,t.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,t.validateType)("Identifier"),init:(0,t.validateType)("BooleanLiteral")}}),r("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,t.validateType)("Identifier"),init:(0,t.validateType)("NumericLiteral")}}),r("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,t.validateType)("Identifier"),init:(0,t.validateType)("StringLiteral")}}),r("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,t.validateType)("Identifier")}}),r("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,t.validateType)("FlowType"),indexType:(0,t.validateType)("FlowType")}}),r("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,t.validateType)("FlowType"),indexType:(0,t.validateType)("FlowType"),optional:(0,t.validate)((0,t.assertValueType)("boolean"))}})}(),function(){if(Lt)return Dt;Lt=1;var e=It();const t=(0,e.defineAliasedType)("JSX");t("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,e.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),t("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),t("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,e.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,e.assertNodeType)("JSXClosingElement")},children:(0,e.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,e.assertValueType)("boolean"),optional:!0}})}),t("JSXEmptyExpression",{}),t("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression","JSXEmptyExpression")}}}),t("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}}),t("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,e.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,e.assertNodeType)("JSXIdentifier")},name:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,e.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,e.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,e.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),t("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}}}),t("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,e.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,e.assertNodeType)("JSXClosingFragment")},children:(0,e.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),t("JSXOpeningFragment",{aliases:["Immutable"]}),t("JSXClosingFragment",{aliases:["Immutable"]})}(),function(){if(Bt)return Ft;Bt=1;var e=It(),t=Rt(),r=kt();const n=(0,e.defineAliasedType)("Miscellaneous");n("Noop",{visitor:[]}),n("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,e.assertNodeType)("Identifier")},expectedNode:{validate:(0,e.assertOneOf)(...t.PLACEHOLDERS)}},(0,r.patternLikeCommon)())}),n("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}})}(),function(){if(Vt)return Ut;Vt=1;var e=It();(0,e.default)("ArgumentPlaceholder",{}),(0,e.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,e.assertNodeType)("Expression")},callee:{validate:(0,e.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,e.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),(0,e.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,e.assertNodeType)("BlockStatement")},async:{validate:(0,e.assertValueType)("boolean"),default:!1}}}),(0,e.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,e.assertNodeType)("Identifier")}}}),(0,e.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,e.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,e.default)("TupleExpression",{fields:{elements:{validate:(0,e.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,e.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,e.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,e.assertNodeType)("Program")}},aliases:["Expression"]}),(0,e.default)("TopicReference",{aliases:["Expression"]}),(0,e.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,e.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,e.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,e.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,e.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})}(),function(){if(Kt)return Ht;Kt=1;var e=It(),t=kt(),r=pt();const n=(0,e.defineAliasedType)("TypeScript"),i=(0,e.assertValueType)("boolean"),s=()=>({returnType:{validate:(0,e.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,e.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});n("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,e.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,e.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,e.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,e.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,e.arrayOfType)("Decorator"),optional:!0}}}),n("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,t.functionDeclarationCommon)(),s())}),n("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,t.classMethodOrDeclareMethodCommon)(),s())}),n("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,e.validateType)("TSEntityName"),right:(0,e.validateType)("Identifier")}});const a=()=>({typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,e.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}),o={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:a()};n("TSCallSignatureDeclaration",o),n("TSConstructSignatureDeclaration",o);const l=()=>({key:(0,e.validateType)("Expression"),computed:{default:!1},optional:(0,e.validateOptional)(i)});n("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},l(),{readonly:(0,e.validateOptional)(i),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,e.assertOneOf)("get","set")}})}),n("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},a(),l(),{kind:{validate:(0,e.assertOneOf)("method","get","set")}})}),n("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,e.validateOptional)(i),static:(0,e.validateOptional)(i),parameters:(0,e.validateArrayOfType)("Identifier"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}});const c=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of c)n(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});n("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const p={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};n("TSFunctionType",Object.assign({},p,{fields:a()})),n("TSConstructorType",Object.assign({},p,{fields:Object.assign({},a(),{abstract:(0,e.validateOptional)(i)})})),n("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,e.validateType)("Identifier","TSThisType"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),asserts:(0,e.validateOptional)(i)}}),n("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,e.validateType)("TSEntityName","TSImportType"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,e.validateArrayOfType)("TSTypeElement")}}),n("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,e.validateType)("TSType")}}),n("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,e.validateArrayOfType)("TSType","TSNamedTupleMember")}}),n("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,e.validateType)("Identifier"),optional:{validate:i,default:!1},elementType:(0,e.validateType)("TSType")}});const u={aliases:["TSType"],visitor:["types"],fields:{types:(0,e.validateArrayOfType)("TSType")}};n("TSUnionType",u),n("TSIntersectionType",u),n("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,e.validateType)("TSType"),extendsType:(0,e.validateType)("TSType"),trueType:(0,e.validateType)("TSType"),falseType:(0,e.validateType)("TSType")}}),n("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,e.validateType)("TSTypeParameter")}}),n("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),n("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,e.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,e.validateType)("TSType")}}),n("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,e.validateType)("TSType"),indexType:(0,e.validateType)("TSType")}}),n("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,e.validateType)("TSTypeParameter")},{readonly:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),optional:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,e.validateOptionalType)("TSType"),nameType:(0,e.validateOptionalType)("TSType")})}),n("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,e.validateArrayOfType)("TemplateElement"),types:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.\nExpected ${r.length+1} quasis but got ${e.quasis.length}`)})}}}),n("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const t=(0,e.assertNodeType)("NumericLiteral","BigIntLiteral"),n=(0,e.assertOneOf)("-"),i=(0,e.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function s(e,s,a){(0,r.default)("UnaryExpression",a)?(n(a,"operator",a.operator),t(a,"argument",a.argument)):i(e,s,a)}return s.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],s}()}}}),n("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,e.validateOptional)((0,e.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,e.validateType)("TSInterfaceBody")}}),n("TSInterfaceBody",{visitor:["body"],fields:{body:(0,e.validateArrayOfType)("TSTypeElement")}}),n("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,e.validateType)("TSType")}}),n("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("Expression"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}});const h={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,e.validateType)("Expression"),typeAnnotation:(0,e.validateType)("TSType")}};n("TSAsExpression",h),n("TSSatisfiesExpression",h),n("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,e.validateType)("TSType"),expression:(0,e.validateType)("Expression")}}),n("TSEnumBody",{visitor:["members"],fields:{members:(0,e.validateArrayOfType)("TSEnumMember")}}),n("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,e.validateOptional)(i),const:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),members:(0,e.validateArrayOfType)("TSEnumMember"),initializer:(0,e.validateOptionalType)("Expression"),body:(0,e.validateOptionalType)("TSEnumBody")}}),n("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,e.validateType)("Identifier","StringLiteral"),initializer:(0,e.validateOptionalType)("Expression")}}),n("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,e.assertOneOf)("global","module","namespace")},declare:(0,e.validateOptional)(i)},{global:(0,e.validateOptional)(i)},{id:(0,e.validateType)("Identifier","StringLiteral"),body:(0,e.validateType)("TSModuleBlock","TSModuleDeclaration")})}),n("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,e.validateArrayOfType)("Statement")}}),n("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,e.validateType)("StringLiteral"),qualifier:(0,e.validateOptionalType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,e.assertNodeType)("ObjectExpression"),optional:!0}}}),n("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,e.validate)(i)},{id:(0,e.validateType)("Identifier"),moduleReference:(0,e.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,e.assertOneOf)("type","value"),optional:!0}})}),n("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,e.validateType)("StringLiteral")}}),n("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),n("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),n("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier")}}),n("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,e.assertNodeType)("TSType")}}}),n("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,e.validateArrayOfType)("TSType")}}),n("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,e.validateArrayOfType)("TSTypeParameter")}}),n("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,e.assertValueType)("string")},in:{validate:(0,e.assertValueType)("boolean"),optional:!0},out:{validate:(0,e.assertValueType)("boolean"),optional:!0},const:{validate:(0,e.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,e.assertNodeType)("TSType"),optional:!0},default:{validate:(0,e.assertNodeType)("TSType"),optional:!0}}})}();var t=It(),r=Rt(),n=(Wt||(Wt=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.DEPRECATED_ALIASES=void 0,Jt.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}),Jt);Object.keys(n.DEPRECATED_ALIASES).forEach(e=>{t.FLIPPED_ALIAS_KEYS[e]=t.FLIPPED_ALIAS_KEYS[n.DEPRECATED_ALIASES[e]]});for(const{types:e,set:r}of t.allExpandedTypes)for(const n of e){const e=t.FLIPPED_ALIAS_KEYS[n];e?e.forEach(r.add,r):r.add(n)}e.TYPES=[].concat(Object.keys(t.VISITOR_KEYS),Object.keys(t.FLIPPED_ALIAS_KEYS),Object.keys(t.DEPRECATED_KEYS))}(tt)),tt}function zt(){if($t)return et;$t=1,Object.defineProperty(et,"__esModule",{value:!0}),et.default=function(n,i,s){if(!n)return;const a=e.NODE_FIELDS[n.type];if(!a)return;const o=a[i];t(n,i,s,o),r(n,i,s)},et.validateChild=r,et.validateField=t,et.validateInternal=function(t,r,n,i,s){if(null==t||!t.validate)return;if(t.optional&&null==i)return;if(t.validate(r,n,i),s){var a;const t=i.type;if(null==t)return;null==(a=e.NODE_PARENT_VALIDATIONS[t])||a.call(e.NODE_PARENT_VALIDATIONS,r,n,i)}};var e=Xt();function t(e,t,r,n){null!=n&&n.validate&&(n.optional&&null==r||n.validate(e,t,r))}function r(t,r,n){var i;const s=null==n?void 0:n.type;null!=s&&(null==(i=e.NODE_PARENT_VALIDATIONS[s])||i.call(e.NODE_PARENT_VALIDATIONS,t,r,n))}return et}function Gt(){if(Yt)return Ze;Yt=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},Ze.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},Ze.arrayExpression=function(e=[]){const t={type:"ArrayExpression",elements:e},r=i.ArrayExpression;return n(r.elements,t,"elements",e,1),t},Ze.arrayPattern=function(e){const t={type:"ArrayPattern",elements:e},r=i.ArrayPattern;return n(r.elements,t,"elements",e,1),t},Ze.arrayTypeAnnotation=function(e){const t={type:"ArrayTypeAnnotation",elementType:e},r=i.ArrayTypeAnnotation;return n(r.elementType,t,"elementType",e,1),t},Ze.arrowFunctionExpression=function(e,t,r=!1){const s={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},a=i.ArrowFunctionExpression;return n(a.params,s,"params",e,1),n(a.body,s,"body",t,1),n(a.async,s,"async",r),s},Ze.assignmentExpression=function(e,t,r){const s={type:"AssignmentExpression",operator:e,left:t,right:r},a=i.AssignmentExpression;return n(a.operator,s,"operator",e),n(a.left,s,"left",t,1),n(a.right,s,"right",r,1),s},Ze.assignmentPattern=function(e,t){const r={type:"AssignmentPattern",left:e,right:t},s=i.AssignmentPattern;return n(s.left,r,"left",e,1),n(s.right,r,"right",t,1),r},Ze.awaitExpression=function(e){const t={type:"AwaitExpression",argument:e},r=i.AwaitExpression;return n(r.argument,t,"argument",e,1),t},Ze.bigIntLiteral=function(e){"bigint"==typeof e&&(e=e.toString());const t={type:"BigIntLiteral",value:e},r=i.BigIntLiteral;return n(r.value,t,"value",e),t},Ze.binaryExpression=function(e,t,r){const s={type:"BinaryExpression",operator:e,left:t,right:r},a=i.BinaryExpression;return n(a.operator,s,"operator",e),n(a.left,s,"left",t,1),n(a.right,s,"right",r,1),s},Ze.bindExpression=function(e,t){const r={type:"BindExpression",object:e,callee:t},s=i.BindExpression;return n(s.object,r,"object",e,1),n(s.callee,r,"callee",t,1),r},Ze.blockStatement=function(e,t=[]){const r={type:"BlockStatement",body:e,directives:t},s=i.BlockStatement;return n(s.body,r,"body",e,1),n(s.directives,r,"directives",t,1),r},Ze.booleanLiteral=function(e){const t={type:"BooleanLiteral",value:e},r=i.BooleanLiteral;return n(r.value,t,"value",e),t},Ze.booleanLiteralTypeAnnotation=function(e){const t={type:"BooleanLiteralTypeAnnotation",value:e},r=i.BooleanLiteralTypeAnnotation;return n(r.value,t,"value",e),t},Ze.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},Ze.breakStatement=function(e=null){const t={type:"BreakStatement",label:e},r=i.BreakStatement;return n(r.label,t,"label",e,1),t},Ze.callExpression=function(e,t){const r={type:"CallExpression",callee:e,arguments:t},s=i.CallExpression;return n(s.callee,r,"callee",e,1),n(s.arguments,r,"arguments",t,1),r},Ze.catchClause=function(e=null,t){const r={type:"CatchClause",param:e,body:t},s=i.CatchClause;return n(s.param,r,"param",e,1),n(s.body,r,"body",t,1),r},Ze.classAccessorProperty=function(e,t=null,r=null,s=null,a=!1,o=!1){const l={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:s,computed:a,static:o},c=i.ClassAccessorProperty;return n(c.key,l,"key",e,1),n(c.value,l,"value",t,1),n(c.typeAnnotation,l,"typeAnnotation",r,1),n(c.decorators,l,"decorators",s,1),n(c.computed,l,"computed",a),n(c.static,l,"static",o),l},Ze.classBody=function(e){const t={type:"ClassBody",body:e},r=i.ClassBody;return n(r.body,t,"body",e,1),t},Ze.classDeclaration=function(e=null,t=null,r,s=null){const a={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:s},o=i.ClassDeclaration;return n(o.id,a,"id",e,1),n(o.superClass,a,"superClass",t,1),n(o.body,a,"body",r,1),n(o.decorators,a,"decorators",s,1),a},Ze.classExpression=function(e=null,t=null,r,s=null){const a={type:"ClassExpression",id:e,superClass:t,body:r,decorators:s},o=i.ClassExpression;return n(o.id,a,"id",e,1),n(o.superClass,a,"superClass",t,1),n(o.body,a,"body",r,1),n(o.decorators,a,"decorators",s,1),a},Ze.classImplements=function(e,t=null){const r={type:"ClassImplements",id:e,typeParameters:t},s=i.ClassImplements;return n(s.id,r,"id",e,1),n(s.typeParameters,r,"typeParameters",t,1),r},Ze.classMethod=function(e="method",t,r,s,a=!1,o=!1,l=!1,c=!1){const p={type:"ClassMethod",kind:e,key:t,params:r,body:s,computed:a,static:o,generator:l,async:c},u=i.ClassMethod;return n(u.kind,p,"kind",e),n(u.key,p,"key",t,1),n(u.params,p,"params",r,1),n(u.body,p,"body",s,1),n(u.computed,p,"computed",a),n(u.static,p,"static",o),n(u.generator,p,"generator",l),n(u.async,p,"async",c),p},Ze.classPrivateMethod=function(e="method",t,r,s,a=!1){const o={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:s,static:a},l=i.ClassPrivateMethod;return n(l.kind,o,"kind",e),n(l.key,o,"key",t,1),n(l.params,o,"params",r,1),n(l.body,o,"body",s,1),n(l.static,o,"static",a),o},Ze.classPrivateProperty=function(e,t=null,r=null,s=!1){const a={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:s},o=i.ClassPrivateProperty;return n(o.key,a,"key",e,1),n(o.value,a,"value",t,1),n(o.decorators,a,"decorators",r,1),n(o.static,a,"static",s),a},Ze.classProperty=function(e,t=null,r=null,s=null,a=!1,o=!1){const l={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:s,computed:a,static:o},c=i.ClassProperty;return n(c.key,l,"key",e,1),n(c.value,l,"value",t,1),n(c.typeAnnotation,l,"typeAnnotation",r,1),n(c.decorators,l,"decorators",s,1),n(c.computed,l,"computed",a),n(c.static,l,"static",o),l},Ze.conditionalExpression=function(e,t,r){const s={type:"ConditionalExpression",test:e,consequent:t,alternate:r},a=i.ConditionalExpression;return n(a.test,s,"test",e,1),n(a.consequent,s,"consequent",t,1),n(a.alternate,s,"alternate",r,1),s},Ze.continueStatement=function(e=null){const t={type:"ContinueStatement",label:e},r=i.ContinueStatement;return n(r.label,t,"label",e,1),t},Ze.debuggerStatement=function(){return{type:"DebuggerStatement"}},Ze.decimalLiteral=function(e){const t={type:"DecimalLiteral",value:e},r=i.DecimalLiteral;return n(r.value,t,"value",e),t},Ze.declareClass=function(e,t=null,r=null,s){const a={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:s},o=i.DeclareClass;return n(o.id,a,"id",e,1),n(o.typeParameters,a,"typeParameters",t,1),n(o.extends,a,"extends",r,1),n(o.body,a,"body",s,1),a},Ze.declareExportAllDeclaration=function(e,t=null){const r={type:"DeclareExportAllDeclaration",source:e,attributes:t},s=i.DeclareExportAllDeclaration;return n(s.source,r,"source",e,1),n(s.attributes,r,"attributes",t,1),r},Ze.declareExportDeclaration=function(e=null,t=null,r=null,s=null){const a={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:s},o=i.DeclareExportDeclaration;return n(o.declaration,a,"declaration",e,1),n(o.specifiers,a,"specifiers",t,1),n(o.source,a,"source",r,1),n(o.attributes,a,"attributes",s,1),a},Ze.declareFunction=function(e){const t={type:"DeclareFunction",id:e},r=i.DeclareFunction;return n(r.id,t,"id",e,1),t},Ze.declareInterface=function(e,t=null,r=null,s){const a={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:s},o=i.DeclareInterface;return n(o.id,a,"id",e,1),n(o.typeParameters,a,"typeParameters",t,1),n(o.extends,a,"extends",r,1),n(o.body,a,"body",s,1),a},Ze.declareModule=function(e,t,r=null){const s={type:"DeclareModule",id:e,body:t,kind:r},a=i.DeclareModule;return n(a.id,s,"id",e,1),n(a.body,s,"body",t,1),n(a.kind,s,"kind",r),s},Ze.declareModuleExports=function(e){const t={type:"DeclareModuleExports",typeAnnotation:e},r=i.DeclareModuleExports;return n(r.typeAnnotation,t,"typeAnnotation",e,1),t},Ze.declareOpaqueType=function(e,t=null,r=null){const s={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},a=i.DeclareOpaqueType;return n(a.id,s,"id",e,1),n(a.typeParameters,s,"typeParameters",t,1),n(a.supertype,s,"supertype",r,1),s},Ze.declareTypeAlias=function(e,t=null,r){const s={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},a=i.DeclareTypeAlias;return n(a.id,s,"id",e,1),n(a.typeParameters,s,"typeParameters",t,1),n(a.right,s,"right",r,1),s},Ze.declareVariable=function(e){const t={type:"DeclareVariable",id:e},r=i.DeclareVariable;return n(r.id,t,"id",e,1),t},Ze.declaredPredicate=function(e){const t={type:"DeclaredPredicate",value:e},r=i.DeclaredPredicate;return n(r.value,t,"value",e,1),t},Ze.decorator=function(e){const t={type:"Decorator",expression:e},r=i.Decorator;return n(r.expression,t,"expression",e,1),t},Ze.directive=function(e){const t={type:"Directive",value:e},r=i.Directive;return n(r.value,t,"value",e,1),t},Ze.directiveLiteral=function(e){const t={type:"DirectiveLiteral",value:e},r=i.DirectiveLiteral;return n(r.value,t,"value",e),t},Ze.doExpression=function(e,t=!1){const r={type:"DoExpression",body:e,async:t},s=i.DoExpression;return n(s.body,r,"body",e,1),n(s.async,r,"async",t),r},Ze.doWhileStatement=function(e,t){const r={type:"DoWhileStatement",test:e,body:t},s=i.DoWhileStatement;return n(s.test,r,"test",e,1),n(s.body,r,"body",t,1),r},Ze.emptyStatement=function(){return{type:"EmptyStatement"}},Ze.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},Ze.enumBooleanBody=function(e){const t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=i.EnumBooleanBody;return n(r.members,t,"members",e,1),t},Ze.enumBooleanMember=function(e){const t={type:"EnumBooleanMember",id:e,init:null},r=i.EnumBooleanMember;return n(r.id,t,"id",e,1),t},Ze.enumDeclaration=function(e,t){const r={type:"EnumDeclaration",id:e,body:t},s=i.EnumDeclaration;return n(s.id,r,"id",e,1),n(s.body,r,"body",t,1),r},Ze.enumDefaultedMember=function(e){const t={type:"EnumDefaultedMember",id:e},r=i.EnumDefaultedMember;return n(r.id,t,"id",e,1),t},Ze.enumNumberBody=function(e){const t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=i.EnumNumberBody;return n(r.members,t,"members",e,1),t},Ze.enumNumberMember=function(e,t){const r={type:"EnumNumberMember",id:e,init:t},s=i.EnumNumberMember;return n(s.id,r,"id",e,1),n(s.init,r,"init",t,1),r},Ze.enumStringBody=function(e){const t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=i.EnumStringBody;return n(r.members,t,"members",e,1),t},Ze.enumStringMember=function(e,t){const r={type:"EnumStringMember",id:e,init:t},s=i.EnumStringMember;return n(s.id,r,"id",e,1),n(s.init,r,"init",t,1),r},Ze.enumSymbolBody=function(e){const t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=i.EnumSymbolBody;return n(r.members,t,"members",e,1),t},Ze.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},Ze.exportAllDeclaration=function(e){const t={type:"ExportAllDeclaration",source:e},r=i.ExportAllDeclaration;return n(r.source,t,"source",e,1),t},Ze.exportDefaultDeclaration=function(e){const t={type:"ExportDefaultDeclaration",declaration:e},r=i.ExportDefaultDeclaration;return n(r.declaration,t,"declaration",e,1),t},Ze.exportDefaultSpecifier=function(e){const t={type:"ExportDefaultSpecifier",exported:e},r=i.ExportDefaultSpecifier;return n(r.exported,t,"exported",e,1),t},Ze.exportNamedDeclaration=function(e=null,t=[],r=null){const s={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r},a=i.ExportNamedDeclaration;return n(a.declaration,s,"declaration",e,1),n(a.specifiers,s,"specifiers",t,1),n(a.source,s,"source",r,1),s},Ze.exportNamespaceSpecifier=function(e){const t={type:"ExportNamespaceSpecifier",exported:e},r=i.ExportNamespaceSpecifier;return n(r.exported,t,"exported",e,1),t},Ze.exportSpecifier=function(e,t){const r={type:"ExportSpecifier",local:e,exported:t},s=i.ExportSpecifier;return n(s.local,r,"local",e,1),n(s.exported,r,"exported",t,1),r},Ze.expressionStatement=function(e){const t={type:"ExpressionStatement",expression:e},r=i.ExpressionStatement;return n(r.expression,t,"expression",e,1),t},Ze.file=function(e,t=null,r=null){const s={type:"File",program:e,comments:t,tokens:r},a=i.File;return n(a.program,s,"program",e,1),n(a.comments,s,"comments",t,1),n(a.tokens,s,"tokens",r),s},Ze.forInStatement=function(e,t,r){const s={type:"ForInStatement",left:e,right:t,body:r},a=i.ForInStatement;return n(a.left,s,"left",e,1),n(a.right,s,"right",t,1),n(a.body,s,"body",r,1),s},Ze.forOfStatement=function(e,t,r,s=!1){const a={type:"ForOfStatement",left:e,right:t,body:r,await:s},o=i.ForOfStatement;return n(o.left,a,"left",e,1),n(o.right,a,"right",t,1),n(o.body,a,"body",r,1),n(o.await,a,"await",s),a},Ze.forStatement=function(e=null,t=null,r=null,s){const a={type:"ForStatement",init:e,test:t,update:r,body:s},o=i.ForStatement;return n(o.init,a,"init",e,1),n(o.test,a,"test",t,1),n(o.update,a,"update",r,1),n(o.body,a,"body",s,1),a},Ze.functionDeclaration=function(e=null,t,r,s=!1,a=!1){const o={type:"FunctionDeclaration",id:e,params:t,body:r,generator:s,async:a},l=i.FunctionDeclaration;return n(l.id,o,"id",e,1),n(l.params,o,"params",t,1),n(l.body,o,"body",r,1),n(l.generator,o,"generator",s),n(l.async,o,"async",a),o},Ze.functionExpression=function(e=null,t,r,s=!1,a=!1){const o={type:"FunctionExpression",id:e,params:t,body:r,generator:s,async:a},l=i.FunctionExpression;return n(l.id,o,"id",e,1),n(l.params,o,"params",t,1),n(l.body,o,"body",r,1),n(l.generator,o,"generator",s),n(l.async,o,"async",a),o},Ze.functionTypeAnnotation=function(e=null,t,r=null,s){const a={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:s},o=i.FunctionTypeAnnotation;return n(o.typeParameters,a,"typeParameters",e,1),n(o.params,a,"params",t,1),n(o.rest,a,"rest",r,1),n(o.returnType,a,"returnType",s,1),a},Ze.functionTypeParam=function(e=null,t){const r={type:"FunctionTypeParam",name:e,typeAnnotation:t},s=i.FunctionTypeParam;return n(s.name,r,"name",e,1),n(s.typeAnnotation,r,"typeAnnotation",t,1),r},Ze.genericTypeAnnotation=function(e,t=null){const r={type:"GenericTypeAnnotation",id:e,typeParameters:t},s=i.GenericTypeAnnotation;return n(s.id,r,"id",e,1),n(s.typeParameters,r,"typeParameters",t,1),r},Ze.identifier=function(e){const t={type:"Identifier",name:e},r=i.Identifier;return n(r.name,t,"name",e),t},Ze.ifStatement=function(e,t,r=null){const s={type:"IfStatement",test:e,consequent:t,alternate:r},a=i.IfStatement;return n(a.test,s,"test",e,1),n(a.consequent,s,"consequent",t,1),n(a.alternate,s,"alternate",r,1),s},Ze.import=function(){return{type:"Import"}},Ze.importAttribute=function(e,t){const r={type:"ImportAttribute",key:e,value:t},s=i.ImportAttribute;return n(s.key,r,"key",e,1),n(s.value,r,"value",t,1),r},Ze.importDeclaration=function(e,t){const r={type:"ImportDeclaration",specifiers:e,source:t},s=i.ImportDeclaration;return n(s.specifiers,r,"specifiers",e,1),n(s.source,r,"source",t,1),r},Ze.importDefaultSpecifier=function(e){const t={type:"ImportDefaultSpecifier",local:e},r=i.ImportDefaultSpecifier;return n(r.local,t,"local",e,1),t},Ze.importExpression=function(e,t=null){const r={type:"ImportExpression",source:e,options:t},s=i.ImportExpression;return n(s.source,r,"source",e,1),n(s.options,r,"options",t,1),r},Ze.importNamespaceSpecifier=function(e){const t={type:"ImportNamespaceSpecifier",local:e},r=i.ImportNamespaceSpecifier;return n(r.local,t,"local",e,1),t},Ze.importSpecifier=function(e,t){const r={type:"ImportSpecifier",local:e,imported:t},s=i.ImportSpecifier;return n(s.local,r,"local",e,1),n(s.imported,r,"imported",t,1),r},Ze.indexedAccessType=function(e,t){const r={type:"IndexedAccessType",objectType:e,indexType:t},s=i.IndexedAccessType;return n(s.objectType,r,"objectType",e,1),n(s.indexType,r,"indexType",t,1),r},Ze.inferredPredicate=function(){return{type:"InferredPredicate"}},Ze.interfaceDeclaration=function(e,t=null,r=null,s){const a={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:s},o=i.InterfaceDeclaration;return n(o.id,a,"id",e,1),n(o.typeParameters,a,"typeParameters",t,1),n(o.extends,a,"extends",r,1),n(o.body,a,"body",s,1),a},Ze.interfaceExtends=function(e,t=null){const r={type:"InterfaceExtends",id:e,typeParameters:t},s=i.InterfaceExtends;return n(s.id,r,"id",e,1),n(s.typeParameters,r,"typeParameters",t,1),r},Ze.interfaceTypeAnnotation=function(e=null,t){const r={type:"InterfaceTypeAnnotation",extends:e,body:t},s=i.InterfaceTypeAnnotation;return n(s.extends,r,"extends",e,1),n(s.body,r,"body",t,1),r},Ze.interpreterDirective=function(e){const t={type:"InterpreterDirective",value:e},r=i.InterpreterDirective;return n(r.value,t,"value",e),t},Ze.intersectionTypeAnnotation=function(e){const t={type:"IntersectionTypeAnnotation",types:e},r=i.IntersectionTypeAnnotation;return n(r.types,t,"types",e,1),t},Ze.jSXAttribute=Ze.jsxAttribute=function(e,t=null){const r={type:"JSXAttribute",name:e,value:t},s=i.JSXAttribute;return n(s.name,r,"name",e,1),n(s.value,r,"value",t,1),r},Ze.jSXClosingElement=Ze.jsxClosingElement=function(e){const t={type:"JSXClosingElement",name:e},r=i.JSXClosingElement;return n(r.name,t,"name",e,1),t},Ze.jSXClosingFragment=Ze.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},Ze.jSXElement=Ze.jsxElement=function(e,t=null,r,s=null){const a={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:s},o=i.JSXElement;return n(o.openingElement,a,"openingElement",e,1),n(o.closingElement,a,"closingElement",t,1),n(o.children,a,"children",r,1),n(o.selfClosing,a,"selfClosing",s),a},Ze.jSXEmptyExpression=Ze.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},Ze.jSXExpressionContainer=Ze.jsxExpressionContainer=function(e){const t={type:"JSXExpressionContainer",expression:e},r=i.JSXExpressionContainer;return n(r.expression,t,"expression",e,1),t},Ze.jSXFragment=Ze.jsxFragment=function(e,t,r){const s={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},a=i.JSXFragment;return n(a.openingFragment,s,"openingFragment",e,1),n(a.closingFragment,s,"closingFragment",t,1),n(a.children,s,"children",r,1),s},Ze.jSXIdentifier=Ze.jsxIdentifier=function(e){const t={type:"JSXIdentifier",name:e},r=i.JSXIdentifier;return n(r.name,t,"name",e),t},Ze.jSXMemberExpression=Ze.jsxMemberExpression=function(e,t){const r={type:"JSXMemberExpression",object:e,property:t},s=i.JSXMemberExpression;return n(s.object,r,"object",e,1),n(s.property,r,"property",t,1),r},Ze.jSXNamespacedName=Ze.jsxNamespacedName=function(e,t){const r={type:"JSXNamespacedName",namespace:e,name:t},s=i.JSXNamespacedName;return n(s.namespace,r,"namespace",e,1),n(s.name,r,"name",t,1),r},Ze.jSXOpeningElement=Ze.jsxOpeningElement=function(e,t,r=!1){const s={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},a=i.JSXOpeningElement;return n(a.name,s,"name",e,1),n(a.attributes,s,"attributes",t,1),n(a.selfClosing,s,"selfClosing",r),s},Ze.jSXOpeningFragment=Ze.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},Ze.jSXSpreadAttribute=Ze.jsxSpreadAttribute=function(e){const t={type:"JSXSpreadAttribute",argument:e},r=i.JSXSpreadAttribute;return n(r.argument,t,"argument",e,1),t},Ze.jSXSpreadChild=Ze.jsxSpreadChild=function(e){const t={type:"JSXSpreadChild",expression:e},r=i.JSXSpreadChild;return n(r.expression,t,"expression",e,1),t},Ze.jSXText=Ze.jsxText=function(e){const t={type:"JSXText",value:e},r=i.JSXText;return n(r.value,t,"value",e),t},Ze.labeledStatement=function(e,t){const r={type:"LabeledStatement",label:e,body:t},s=i.LabeledStatement;return n(s.label,r,"label",e,1),n(s.body,r,"body",t,1),r},Ze.logicalExpression=function(e,t,r){const s={type:"LogicalExpression",operator:e,left:t,right:r},a=i.LogicalExpression;return n(a.operator,s,"operator",e),n(a.left,s,"left",t,1),n(a.right,s,"right",r,1),s},Ze.memberExpression=function(e,t,r=!1,s=null){const a={type:"MemberExpression",object:e,property:t,computed:r,optional:s},o=i.MemberExpression;return n(o.object,a,"object",e,1),n(o.property,a,"property",t,1),n(o.computed,a,"computed",r),n(o.optional,a,"optional",s),a},Ze.metaProperty=function(e,t){const r={type:"MetaProperty",meta:e,property:t},s=i.MetaProperty;return n(s.meta,r,"meta",e,1),n(s.property,r,"property",t,1),r},Ze.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},Ze.moduleExpression=function(e){const t={type:"ModuleExpression",body:e},r=i.ModuleExpression;return n(r.body,t,"body",e,1),t},Ze.newExpression=function(e,t){const r={type:"NewExpression",callee:e,arguments:t},s=i.NewExpression;return n(s.callee,r,"callee",e,1),n(s.arguments,r,"arguments",t,1),r},Ze.noop=function(){return{type:"Noop"}},Ze.nullLiteral=function(){return{type:"NullLiteral"}},Ze.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},Ze.nullableTypeAnnotation=function(e){const t={type:"NullableTypeAnnotation",typeAnnotation:e},r=i.NullableTypeAnnotation;return n(r.typeAnnotation,t,"typeAnnotation",e,1),t},Ze.numberLiteral=function(e){return(0,t.default)("NumberLiteral","NumericLiteral","The node type "),s(e)},Ze.numberLiteralTypeAnnotation=function(e){const t={type:"NumberLiteralTypeAnnotation",value:e},r=i.NumberLiteralTypeAnnotation;return n(r.value,t,"value",e),t},Ze.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},Ze.numericLiteral=s,Ze.objectExpression=function(e){const t={type:"ObjectExpression",properties:e},r=i.ObjectExpression;return n(r.properties,t,"properties",e,1),t},Ze.objectMethod=function(e="method",t,r,s,a=!1,o=!1,l=!1){const c={type:"ObjectMethod",kind:e,key:t,params:r,body:s,computed:a,generator:o,async:l},p=i.ObjectMethod;return n(p.kind,c,"kind",e),n(p.key,c,"key",t,1),n(p.params,c,"params",r,1),n(p.body,c,"body",s,1),n(p.computed,c,"computed",a),n(p.generator,c,"generator",o),n(p.async,c,"async",l),c},Ze.objectPattern=function(e){const t={type:"ObjectPattern",properties:e},r=i.ObjectPattern;return n(r.properties,t,"properties",e,1),t},Ze.objectProperty=function(e,t,r=!1,s=!1,a=null){const o={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:s,decorators:a},l=i.ObjectProperty;return n(l.key,o,"key",e,1),n(l.value,o,"value",t,1),n(l.computed,o,"computed",r),n(l.shorthand,o,"shorthand",s),n(l.decorators,o,"decorators",a,1),o},Ze.objectTypeAnnotation=function(e,t=[],r=[],s=[],a=!1){const o={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:s,exact:a},l=i.ObjectTypeAnnotation;return n(l.properties,o,"properties",e,1),n(l.indexers,o,"indexers",t,1),n(l.callProperties,o,"callProperties",r,1),n(l.internalSlots,o,"internalSlots",s,1),n(l.exact,o,"exact",a),o},Ze.objectTypeCallProperty=function(e){const t={type:"ObjectTypeCallProperty",value:e,static:null},r=i.ObjectTypeCallProperty;return n(r.value,t,"value",e,1),t},Ze.objectTypeIndexer=function(e=null,t,r,s=null){const a={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:s,static:null},o=i.ObjectTypeIndexer;return n(o.id,a,"id",e,1),n(o.key,a,"key",t,1),n(o.value,a,"value",r,1),n(o.variance,a,"variance",s,1),a},Ze.objectTypeInternalSlot=function(e,t,r,s,a){const o={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:s,method:a},l=i.ObjectTypeInternalSlot;return n(l.id,o,"id",e,1),n(l.value,o,"value",t,1),n(l.optional,o,"optional",r),n(l.static,o,"static",s),n(l.method,o,"method",a),o},Ze.objectTypeProperty=function(e,t,r=null){const s={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},a=i.ObjectTypeProperty;return n(a.key,s,"key",e,1),n(a.value,s,"value",t,1),n(a.variance,s,"variance",r,1),s},Ze.objectTypeSpreadProperty=function(e){const t={type:"ObjectTypeSpreadProperty",argument:e},r=i.ObjectTypeSpreadProperty;return n(r.argument,t,"argument",e,1),t},Ze.opaqueType=function(e,t=null,r=null,s){const a={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:s},o=i.OpaqueType;return n(o.id,a,"id",e,1),n(o.typeParameters,a,"typeParameters",t,1),n(o.supertype,a,"supertype",r,1),n(o.impltype,a,"impltype",s,1),a},Ze.optionalCallExpression=function(e,t,r){const s={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},a=i.OptionalCallExpression;return n(a.callee,s,"callee",e,1),n(a.arguments,s,"arguments",t,1),n(a.optional,s,"optional",r),s},Ze.optionalIndexedAccessType=function(e,t){const r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},s=i.OptionalIndexedAccessType;return n(s.objectType,r,"objectType",e,1),n(s.indexType,r,"indexType",t,1),r},Ze.optionalMemberExpression=function(e,t,r=!1,s){const a={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:s},o=i.OptionalMemberExpression;return n(o.object,a,"object",e,1),n(o.property,a,"property",t,1),n(o.computed,a,"computed",r),n(o.optional,a,"optional",s),a},Ze.parenthesizedExpression=function(e){const t={type:"ParenthesizedExpression",expression:e},r=i.ParenthesizedExpression;return n(r.expression,t,"expression",e,1),t},Ze.pipelineBareFunction=function(e){const t={type:"PipelineBareFunction",callee:e},r=i.PipelineBareFunction;return n(r.callee,t,"callee",e,1),t},Ze.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},Ze.pipelineTopicExpression=function(e){const t={type:"PipelineTopicExpression",expression:e},r=i.PipelineTopicExpression;return n(r.expression,t,"expression",e,1),t},Ze.placeholder=function(e,t){const r={type:"Placeholder",expectedNode:e,name:t},s=i.Placeholder;return n(s.expectedNode,r,"expectedNode",e),n(s.name,r,"name",t,1),r},Ze.privateName=function(e){const t={type:"PrivateName",id:e},r=i.PrivateName;return n(r.id,t,"id",e,1),t},Ze.program=function(e,t=[],r="script",s=null){const a={type:"Program",body:e,directives:t,sourceType:r,interpreter:s},o=i.Program;return n(o.body,a,"body",e,1),n(o.directives,a,"directives",t,1),n(o.sourceType,a,"sourceType",r),n(o.interpreter,a,"interpreter",s,1),a},Ze.qualifiedTypeIdentifier=function(e,t){const r={type:"QualifiedTypeIdentifier",id:e,qualification:t},s=i.QualifiedTypeIdentifier;return n(s.id,r,"id",e,1),n(s.qualification,r,"qualification",t,1),r},Ze.recordExpression=function(e){const t={type:"RecordExpression",properties:e},r=i.RecordExpression;return n(r.properties,t,"properties",e,1),t},Ze.regExpLiteral=a,Ze.regexLiteral=function(e,r=""){return(0,t.default)("RegexLiteral","RegExpLiteral","The node type "),a(e,r)},Ze.restElement=o,Ze.restProperty=function(e){return(0,t.default)("RestProperty","RestElement","The node type "),o(e)},Ze.returnStatement=function(e=null){const t={type:"ReturnStatement",argument:e},r=i.ReturnStatement;return n(r.argument,t,"argument",e,1),t},Ze.sequenceExpression=function(e){const t={type:"SequenceExpression",expressions:e},r=i.SequenceExpression;return n(r.expressions,t,"expressions",e,1),t},Ze.spreadElement=l,Ze.spreadProperty=function(e){return(0,t.default)("SpreadProperty","SpreadElement","The node type "),l(e)},Ze.staticBlock=function(e){const t={type:"StaticBlock",body:e},r=i.StaticBlock;return n(r.body,t,"body",e,1),t},Ze.stringLiteral=function(e){const t={type:"StringLiteral",value:e},r=i.StringLiteral;return n(r.value,t,"value",e),t},Ze.stringLiteralTypeAnnotation=function(e){const t={type:"StringLiteralTypeAnnotation",value:e},r=i.StringLiteralTypeAnnotation;return n(r.value,t,"value",e),t},Ze.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},Ze.super=function(){return{type:"Super"}},Ze.switchCase=function(e=null,t){const r={type:"SwitchCase",test:e,consequent:t},s=i.SwitchCase;return n(s.test,r,"test",e,1),n(s.consequent,r,"consequent",t,1),r},Ze.switchStatement=function(e,t){const r={type:"SwitchStatement",discriminant:e,cases:t},s=i.SwitchStatement;return n(s.discriminant,r,"discriminant",e,1),n(s.cases,r,"cases",t,1),r},Ze.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},Ze.taggedTemplateExpression=function(e,t){const r={type:"TaggedTemplateExpression",tag:e,quasi:t},s=i.TaggedTemplateExpression;return n(s.tag,r,"tag",e,1),n(s.quasi,r,"quasi",t,1),r},Ze.templateElement=function(e,t=!1){const r={type:"TemplateElement",value:e,tail:t},s=i.TemplateElement;return n(s.value,r,"value",e),n(s.tail,r,"tail",t),r},Ze.templateLiteral=function(e,t){const r={type:"TemplateLiteral",quasis:e,expressions:t},s=i.TemplateLiteral;return n(s.quasis,r,"quasis",e,1),n(s.expressions,r,"expressions",t,1),r},Ze.thisExpression=function(){return{type:"ThisExpression"}},Ze.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},Ze.throwStatement=function(e){const t={type:"ThrowStatement",argument:e},r=i.ThrowStatement;return n(r.argument,t,"argument",e,1),t},Ze.topicReference=function(){return{type:"TopicReference"}},Ze.tryStatement=function(e,t=null,r=null){const s={type:"TryStatement",block:e,handler:t,finalizer:r},a=i.TryStatement;return n(a.block,s,"block",e,1),n(a.handler,s,"handler",t,1),n(a.finalizer,s,"finalizer",r,1),s},Ze.tSAnyKeyword=Ze.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},Ze.tSArrayType=Ze.tsArrayType=function(e){const t={type:"TSArrayType",elementType:e},r=i.TSArrayType;return n(r.elementType,t,"elementType",e,1),t},Ze.tSAsExpression=Ze.tsAsExpression=function(e,t){const r={type:"TSAsExpression",expression:e,typeAnnotation:t},s=i.TSAsExpression;return n(s.expression,r,"expression",e,1),n(s.typeAnnotation,r,"typeAnnotation",t,1),r},Ze.tSBigIntKeyword=Ze.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},Ze.tSBooleanKeyword=Ze.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},Ze.tSCallSignatureDeclaration=Ze.tsCallSignatureDeclaration=function(e=null,t,r=null){const s={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},a=i.TSCallSignatureDeclaration;return n(a.typeParameters,s,"typeParameters",e,1),n(a.parameters,s,"parameters",t,1),n(a.typeAnnotation,s,"typeAnnotation",r,1),s},Ze.tSConditionalType=Ze.tsConditionalType=function(e,t,r,s){const a={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:s},o=i.TSConditionalType;return n(o.checkType,a,"checkType",e,1),n(o.extendsType,a,"extendsType",t,1),n(o.trueType,a,"trueType",r,1),n(o.falseType,a,"falseType",s,1),a},Ze.tSConstructSignatureDeclaration=Ze.tsConstructSignatureDeclaration=function(e=null,t,r=null){const s={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},a=i.TSConstructSignatureDeclaration;return n(a.typeParameters,s,"typeParameters",e,1),n(a.parameters,s,"parameters",t,1),n(a.typeAnnotation,s,"typeAnnotation",r,1),s},Ze.tSConstructorType=Ze.tsConstructorType=function(e=null,t,r=null){const s={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},a=i.TSConstructorType;return n(a.typeParameters,s,"typeParameters",e,1),n(a.parameters,s,"parameters",t,1),n(a.typeAnnotation,s,"typeAnnotation",r,1),s},Ze.tSDeclareFunction=Ze.tsDeclareFunction=function(e=null,t=null,r,s=null){const a={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:s},o=i.TSDeclareFunction;return n(o.id,a,"id",e,1),n(o.typeParameters,a,"typeParameters",t,1),n(o.params,a,"params",r,1),n(o.returnType,a,"returnType",s,1),a},Ze.tSDeclareMethod=Ze.tsDeclareMethod=function(e=null,t,r=null,s,a=null){const o={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:s,returnType:a},l=i.TSDeclareMethod;return n(l.decorators,o,"decorators",e,1),n(l.key,o,"key",t,1),n(l.typeParameters,o,"typeParameters",r,1),n(l.params,o,"params",s,1),n(l.returnType,o,"returnType",a,1),o},Ze.tSEnumBody=Ze.tsEnumBody=function(e){const t={type:"TSEnumBody",members:e},r=i.TSEnumBody;return n(r.members,t,"members",e,1),t},Ze.tSEnumDeclaration=Ze.tsEnumDeclaration=function(e,t){const r={type:"TSEnumDeclaration",id:e,members:t},s=i.TSEnumDeclaration;return n(s.id,r,"id",e,1),n(s.members,r,"members",t,1),r},Ze.tSEnumMember=Ze.tsEnumMember=function(e,t=null){const r={type:"TSEnumMember",id:e,initializer:t},s=i.TSEnumMember;return n(s.id,r,"id",e,1),n(s.initializer,r,"initializer",t,1),r},Ze.tSExportAssignment=Ze.tsExportAssignment=function(e){const t={type:"TSExportAssignment",expression:e},r=i.TSExportAssignment;return n(r.expression,t,"expression",e,1),t},Ze.tSExpressionWithTypeArguments=Ze.tsExpressionWithTypeArguments=function(e,t=null){const r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},s=i.TSExpressionWithTypeArguments;return n(s.expression,r,"expression",e,1),n(s.typeParameters,r,"typeParameters",t,1),r},Ze.tSExternalModuleReference=Ze.tsExternalModuleReference=function(e){const t={type:"TSExternalModuleReference",expression:e},r=i.TSExternalModuleReference;return n(r.expression,t,"expression",e,1),t},Ze.tSFunctionType=Ze.tsFunctionType=function(e=null,t,r=null){const s={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},a=i.TSFunctionType;return n(a.typeParameters,s,"typeParameters",e,1),n(a.parameters,s,"parameters",t,1),n(a.typeAnnotation,s,"typeAnnotation",r,1),s},Ze.tSImportEqualsDeclaration=Ze.tsImportEqualsDeclaration=function(e,t){const r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},s=i.TSImportEqualsDeclaration;return n(s.id,r,"id",e,1),n(s.moduleReference,r,"moduleReference",t,1),r},Ze.tSImportType=Ze.tsImportType=function(e,t=null,r=null){const s={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},a=i.TSImportType;return n(a.argument,s,"argument",e,1),n(a.qualifier,s,"qualifier",t,1),n(a.typeParameters,s,"typeParameters",r,1),s},Ze.tSIndexSignature=Ze.tsIndexSignature=function(e,t=null){const r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},s=i.TSIndexSignature;return n(s.parameters,r,"parameters",e,1),n(s.typeAnnotation,r,"typeAnnotation",t,1),r},Ze.tSIndexedAccessType=Ze.tsIndexedAccessType=function(e,t){const r={type:"TSIndexedAccessType",objectType:e,indexType:t},s=i.TSIndexedAccessType;return n(s.objectType,r,"objectType",e,1),n(s.indexType,r,"indexType",t,1),r},Ze.tSInferType=Ze.tsInferType=function(e){const t={type:"TSInferType",typeParameter:e},r=i.TSInferType;return n(r.typeParameter,t,"typeParameter",e,1),t},Ze.tSInstantiationExpression=Ze.tsInstantiationExpression=function(e,t=null){const r={type:"TSInstantiationExpression",expression:e,typeParameters:t},s=i.TSInstantiationExpression;return n(s.expression,r,"expression",e,1),n(s.typeParameters,r,"typeParameters",t,1),r},Ze.tSInterfaceBody=Ze.tsInterfaceBody=function(e){const t={type:"TSInterfaceBody",body:e},r=i.TSInterfaceBody;return n(r.body,t,"body",e,1),t},Ze.tSInterfaceDeclaration=Ze.tsInterfaceDeclaration=function(e,t=null,r=null,s){const a={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:s},o=i.TSInterfaceDeclaration;return n(o.id,a,"id",e,1),n(o.typeParameters,a,"typeParameters",t,1),n(o.extends,a,"extends",r,1),n(o.body,a,"body",s,1),a},Ze.tSIntersectionType=Ze.tsIntersectionType=function(e){const t={type:"TSIntersectionType",types:e},r=i.TSIntersectionType;return n(r.types,t,"types",e,1),t},Ze.tSIntrinsicKeyword=Ze.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},Ze.tSLiteralType=Ze.tsLiteralType=function(e){const t={type:"TSLiteralType",literal:e},r=i.TSLiteralType;return n(r.literal,t,"literal",e,1),t},Ze.tSMappedType=Ze.tsMappedType=function(e,t=null,r=null){const s={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},a=i.TSMappedType;return n(a.typeParameter,s,"typeParameter",e,1),n(a.typeAnnotation,s,"typeAnnotation",t,1),n(a.nameType,s,"nameType",r,1),s},Ze.tSMethodSignature=Ze.tsMethodSignature=function(e,t=null,r,s=null){const a={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:s,kind:null},o=i.TSMethodSignature;return n(o.key,a,"key",e,1),n(o.typeParameters,a,"typeParameters",t,1),n(o.parameters,a,"parameters",r,1),n(o.typeAnnotation,a,"typeAnnotation",s,1),a},Ze.tSModuleBlock=Ze.tsModuleBlock=function(e){const t={type:"TSModuleBlock",body:e},r=i.TSModuleBlock;return n(r.body,t,"body",e,1),t},Ze.tSModuleDeclaration=Ze.tsModuleDeclaration=function(e,t){const r={type:"TSModuleDeclaration",id:e,body:t,kind:null},s=i.TSModuleDeclaration;return n(s.id,r,"id",e,1),n(s.body,r,"body",t,1),r},Ze.tSNamedTupleMember=Ze.tsNamedTupleMember=function(e,t,r=!1){const s={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},a=i.TSNamedTupleMember;return n(a.label,s,"label",e,1),n(a.elementType,s,"elementType",t,1),n(a.optional,s,"optional",r),s},Ze.tSNamespaceExportDeclaration=Ze.tsNamespaceExportDeclaration=function(e){const t={type:"TSNamespaceExportDeclaration",id:e},r=i.TSNamespaceExportDeclaration;return n(r.id,t,"id",e,1),t},Ze.tSNeverKeyword=Ze.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},Ze.tSNonNullExpression=Ze.tsNonNullExpression=function(e){const t={type:"TSNonNullExpression",expression:e},r=i.TSNonNullExpression;return n(r.expression,t,"expression",e,1),t},Ze.tSNullKeyword=Ze.tsNullKeyword=function(){return{type:"TSNullKeyword"}},Ze.tSNumberKeyword=Ze.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},Ze.tSObjectKeyword=Ze.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},Ze.tSOptionalType=Ze.tsOptionalType=function(e){const t={type:"TSOptionalType",typeAnnotation:e},r=i.TSOptionalType;return n(r.typeAnnotation,t,"typeAnnotation",e,1),t},Ze.tSParameterProperty=Ze.tsParameterProperty=function(e){const t={type:"TSParameterProperty",parameter:e},r=i.TSParameterProperty;return n(r.parameter,t,"parameter",e,1),t},Ze.tSParenthesizedType=Ze.tsParenthesizedType=function(e){const t={type:"TSParenthesizedType",typeAnnotation:e},r=i.TSParenthesizedType;return n(r.typeAnnotation,t,"typeAnnotation",e,1),t},Ze.tSPropertySignature=Ze.tsPropertySignature=function(e,t=null){const r={type:"TSPropertySignature",key:e,typeAnnotation:t},s=i.TSPropertySignature;return n(s.key,r,"key",e,1),n(s.typeAnnotation,r,"typeAnnotation",t,1),r},Ze.tSQualifiedName=Ze.tsQualifiedName=function(e,t){const r={type:"TSQualifiedName",left:e,right:t},s=i.TSQualifiedName;return n(s.left,r,"left",e,1),n(s.right,r,"right",t,1),r},Ze.tSRestType=Ze.tsRestType=function(e){const t={type:"TSRestType",typeAnnotation:e},r=i.TSRestType;return n(r.typeAnnotation,t,"typeAnnotation",e,1),t},Ze.tSSatisfiesExpression=Ze.tsSatisfiesExpression=function(e,t){const r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},s=i.TSSatisfiesExpression;return n(s.expression,r,"expression",e,1),n(s.typeAnnotation,r,"typeAnnotation",t,1),r},Ze.tSStringKeyword=Ze.tsStringKeyword=function(){return{type:"TSStringKeyword"}},Ze.tSSymbolKeyword=Ze.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},Ze.tSTemplateLiteralType=Ze.tsTemplateLiteralType=function(e,t){const r={type:"TSTemplateLiteralType",quasis:e,types:t},s=i.TSTemplateLiteralType;return n(s.quasis,r,"quasis",e,1),n(s.types,r,"types",t,1),r},Ze.tSThisType=Ze.tsThisType=function(){return{type:"TSThisType"}},Ze.tSTupleType=Ze.tsTupleType=function(e){const t={type:"TSTupleType",elementTypes:e},r=i.TSTupleType;return n(r.elementTypes,t,"elementTypes",e,1),t},Ze.tSTypeAliasDeclaration=Ze.tsTypeAliasDeclaration=function(e,t=null,r){const s={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},a=i.TSTypeAliasDeclaration;return n(a.id,s,"id",e,1),n(a.typeParameters,s,"typeParameters",t,1),n(a.typeAnnotation,s,"typeAnnotation",r,1),s},Ze.tSTypeAnnotation=Ze.tsTypeAnnotation=function(e){const t={type:"TSTypeAnnotation",typeAnnotation:e},r=i.TSTypeAnnotation;return n(r.typeAnnotation,t,"typeAnnotation",e,1),t},Ze.tSTypeAssertion=Ze.tsTypeAssertion=function(e,t){const r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},s=i.TSTypeAssertion;return n(s.typeAnnotation,r,"typeAnnotation",e,1),n(s.expression,r,"expression",t,1),r},Ze.tSTypeLiteral=Ze.tsTypeLiteral=function(e){const t={type:"TSTypeLiteral",members:e},r=i.TSTypeLiteral;return n(r.members,t,"members",e,1),t},Ze.tSTypeOperator=Ze.tsTypeOperator=function(e,t="keyof"){const r={type:"TSTypeOperator",typeAnnotation:e,operator:t},s=i.TSTypeOperator;return n(s.typeAnnotation,r,"typeAnnotation",e,1),n(s.operator,r,"operator",t),r},Ze.tSTypeParameter=Ze.tsTypeParameter=function(e=null,t=null,r){const s={type:"TSTypeParameter",constraint:e,default:t,name:r},a=i.TSTypeParameter;return n(a.constraint,s,"constraint",e,1),n(a.default,s,"default",t,1),n(a.name,s,"name",r),s},Ze.tSTypeParameterDeclaration=Ze.tsTypeParameterDeclaration=function(e){const t={type:"TSTypeParameterDeclaration",params:e},r=i.TSTypeParameterDeclaration;return n(r.params,t,"params",e,1),t},Ze.tSTypeParameterInstantiation=Ze.tsTypeParameterInstantiation=function(e){const t={type:"TSTypeParameterInstantiation",params:e},r=i.TSTypeParameterInstantiation;return n(r.params,t,"params",e,1),t},Ze.tSTypePredicate=Ze.tsTypePredicate=function(e,t=null,r=null){const s={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},a=i.TSTypePredicate;return n(a.parameterName,s,"parameterName",e,1),n(a.typeAnnotation,s,"typeAnnotation",t,1),n(a.asserts,s,"asserts",r),s},Ze.tSTypeQuery=Ze.tsTypeQuery=function(e,t=null){const r={type:"TSTypeQuery",exprName:e,typeParameters:t},s=i.TSTypeQuery;return n(s.exprName,r,"exprName",e,1),n(s.typeParameters,r,"typeParameters",t,1),r},Ze.tSTypeReference=Ze.tsTypeReference=function(e,t=null){const r={type:"TSTypeReference",typeName:e,typeParameters:t},s=i.TSTypeReference;return n(s.typeName,r,"typeName",e,1),n(s.typeParameters,r,"typeParameters",t,1),r},Ze.tSUndefinedKeyword=Ze.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},Ze.tSUnionType=Ze.tsUnionType=function(e){const t={type:"TSUnionType",types:e},r=i.TSUnionType;return n(r.types,t,"types",e,1),t},Ze.tSUnknownKeyword=Ze.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},Ze.tSVoidKeyword=Ze.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},Ze.tupleExpression=function(e=[]){const t={type:"TupleExpression",elements:e},r=i.TupleExpression;return n(r.elements,t,"elements",e,1),t},Ze.tupleTypeAnnotation=function(e){const t={type:"TupleTypeAnnotation",types:e},r=i.TupleTypeAnnotation;return n(r.types,t,"types",e,1),t},Ze.typeAlias=function(e,t=null,r){const s={type:"TypeAlias",id:e,typeParameters:t,right:r},a=i.TypeAlias;return n(a.id,s,"id",e,1),n(a.typeParameters,s,"typeParameters",t,1),n(a.right,s,"right",r,1),s},Ze.typeAnnotation=function(e){const t={type:"TypeAnnotation",typeAnnotation:e},r=i.TypeAnnotation;return n(r.typeAnnotation,t,"typeAnnotation",e,1),t},Ze.typeCastExpression=function(e,t){const r={type:"TypeCastExpression",expression:e,typeAnnotation:t},s=i.TypeCastExpression;return n(s.expression,r,"expression",e,1),n(s.typeAnnotation,r,"typeAnnotation",t,1),r},Ze.typeParameter=function(e=null,t=null,r=null){const s={type:"TypeParameter",bound:e,default:t,variance:r,name:null},a=i.TypeParameter;return n(a.bound,s,"bound",e,1),n(a.default,s,"default",t,1),n(a.variance,s,"variance",r,1),s},Ze.typeParameterDeclaration=function(e){const t={type:"TypeParameterDeclaration",params:e},r=i.TypeParameterDeclaration;return n(r.params,t,"params",e,1),t},Ze.typeParameterInstantiation=function(e){const t={type:"TypeParameterInstantiation",params:e},r=i.TypeParameterInstantiation;return n(r.params,t,"params",e,1),t},Ze.typeofTypeAnnotation=function(e){const t={type:"TypeofTypeAnnotation",argument:e},r=i.TypeofTypeAnnotation;return n(r.argument,t,"argument",e,1),t},Ze.unaryExpression=function(e,t,r=!0){const s={type:"UnaryExpression",operator:e,argument:t,prefix:r},a=i.UnaryExpression;return n(a.operator,s,"operator",e),n(a.argument,s,"argument",t,1),n(a.prefix,s,"prefix",r),s},Ze.unionTypeAnnotation=function(e){const t={type:"UnionTypeAnnotation",types:e},r=i.UnionTypeAnnotation;return n(r.types,t,"types",e,1),t},Ze.updateExpression=function(e,t,r=!1){const s={type:"UpdateExpression",operator:e,argument:t,prefix:r},a=i.UpdateExpression;return n(a.operator,s,"operator",e),n(a.argument,s,"argument",t,1),n(a.prefix,s,"prefix",r),s},Ze.v8IntrinsicIdentifier=function(e){const t={type:"V8IntrinsicIdentifier",name:e},r=i.V8IntrinsicIdentifier;return n(r.name,t,"name",e),t},Ze.variableDeclaration=function(e,t){const r={type:"VariableDeclaration",kind:e,declarations:t},s=i.VariableDeclaration;return n(s.kind,r,"kind",e),n(s.declarations,r,"declarations",t,1),r},Ze.variableDeclarator=function(e,t=null){const r={type:"VariableDeclarator",id:e,init:t},s=i.VariableDeclarator;return n(s.id,r,"id",e,1),n(s.init,r,"init",t,1),r},Ze.variance=function(e){const t={type:"Variance",kind:e},r=i.Variance;return n(r.kind,t,"kind",e),t},Ze.voidPattern=function(){return{type:"VoidPattern"}},Ze.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},Ze.whileStatement=function(e,t){const r={type:"WhileStatement",test:e,body:t},s=i.WhileStatement;return n(s.test,r,"test",e,1),n(s.body,r,"body",t,1),r},Ze.withStatement=function(e,t){const r={type:"WithStatement",object:e,body:t},s=i.WithStatement;return n(s.object,r,"object",e,1),n(s.body,r,"body",t,1),r},Ze.yieldExpression=function(e=null,t=!1){const r={type:"YieldExpression",argument:e,delegate:t},s=i.YieldExpression;return n(s.argument,r,"argument",e,1),n(s.delegate,r,"delegate",t),r};var e=zt(),t=He(),r=It();const{validateInternal:n}=e,{NODE_FIELDS:i}=r;function s(e){const t={type:"NumericLiteral",value:e},r=i.NumericLiteral;return n(r.value,t,"value",e),t}function a(e,t=""){const r={type:"RegExpLiteral",pattern:e,flags:t},s=i.RegExpLiteral;return n(s.pattern,r,"pattern",e),n(s.flags,r,"flags",t),r}function o(e){const t={type:"RestElement",argument:e},r=i.RestElement;return n(r.argument,t,"argument",e,1),t}function l(e){const t={type:"SpreadElement",argument:e},r=i.SpreadElement;return n(r.argument,t,"argument",e,1),t}return Ze}var Qt,Zt,er,tr,rr={};function nr(){return Zt||(Zt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Gt();Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(r in e&&e[r]===t[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}}))});var r=function(){if(Qt)return rr;Qt=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.JSXIdentifier=rr.JSXFragment=rr.JSXExpressionContainer=rr.JSXEmptyExpression=rr.JSXElement=rr.JSXClosingFragment=rr.JSXClosingElement=rr.JSXAttribute=rr.IntersectionTypeAnnotation=rr.InterpreterDirective=rr.InterfaceTypeAnnotation=rr.InterfaceExtends=rr.InterfaceDeclaration=rr.InferredPredicate=rr.IndexedAccessType=rr.ImportSpecifier=rr.ImportNamespaceSpecifier=rr.ImportExpression=rr.ImportDefaultSpecifier=rr.ImportDeclaration=rr.ImportAttribute=rr.Import=rr.IfStatement=rr.Identifier=rr.GenericTypeAnnotation=rr.FunctionTypeParam=rr.FunctionTypeAnnotation=rr.FunctionExpression=rr.FunctionDeclaration=rr.ForStatement=rr.ForOfStatement=rr.ForInStatement=rr.File=rr.ExpressionStatement=rr.ExportSpecifier=rr.ExportNamespaceSpecifier=rr.ExportNamedDeclaration=rr.ExportDefaultSpecifier=rr.ExportDefaultDeclaration=rr.ExportAllDeclaration=rr.ExistsTypeAnnotation=rr.EnumSymbolBody=rr.EnumStringMember=rr.EnumStringBody=rr.EnumNumberMember=rr.EnumNumberBody=rr.EnumDefaultedMember=rr.EnumDeclaration=rr.EnumBooleanMember=rr.EnumBooleanBody=rr.EmptyTypeAnnotation=rr.EmptyStatement=rr.DoWhileStatement=rr.DoExpression=rr.DirectiveLiteral=rr.Directive=rr.Decorator=rr.DeclaredPredicate=rr.DeclareVariable=rr.DeclareTypeAlias=rr.DeclareOpaqueType=rr.DeclareModuleExports=rr.DeclareModule=rr.DeclareInterface=rr.DeclareFunction=rr.DeclareExportDeclaration=rr.DeclareExportAllDeclaration=rr.DeclareClass=rr.DecimalLiteral=rr.DebuggerStatement=rr.ContinueStatement=rr.ConditionalExpression=rr.ClassProperty=rr.ClassPrivateProperty=rr.ClassPrivateMethod=rr.ClassMethod=rr.ClassImplements=rr.ClassExpression=rr.ClassDeclaration=rr.ClassBody=rr.ClassAccessorProperty=rr.CatchClause=rr.CallExpression=rr.BreakStatement=rr.BooleanTypeAnnotation=rr.BooleanLiteralTypeAnnotation=rr.BooleanLiteral=rr.BlockStatement=rr.BindExpression=rr.BinaryExpression=rr.BigIntLiteral=rr.AwaitExpression=rr.AssignmentPattern=rr.AssignmentExpression=rr.ArrowFunctionExpression=rr.ArrayTypeAnnotation=rr.ArrayPattern=rr.ArrayExpression=rr.ArgumentPlaceholder=rr.AnyTypeAnnotation=void 0,rr.TSNumberKeyword=rr.TSNullKeyword=rr.TSNonNullExpression=rr.TSNeverKeyword=rr.TSNamespaceExportDeclaration=rr.TSNamedTupleMember=rr.TSModuleDeclaration=rr.TSModuleBlock=rr.TSMethodSignature=rr.TSMappedType=rr.TSLiteralType=rr.TSIntrinsicKeyword=rr.TSIntersectionType=rr.TSInterfaceDeclaration=rr.TSInterfaceBody=rr.TSInstantiationExpression=rr.TSInferType=rr.TSIndexedAccessType=rr.TSIndexSignature=rr.TSImportType=rr.TSImportEqualsDeclaration=rr.TSFunctionType=rr.TSExternalModuleReference=rr.TSExpressionWithTypeArguments=rr.TSExportAssignment=rr.TSEnumMember=rr.TSEnumDeclaration=rr.TSEnumBody=rr.TSDeclareMethod=rr.TSDeclareFunction=rr.TSConstructorType=rr.TSConstructSignatureDeclaration=rr.TSConditionalType=rr.TSCallSignatureDeclaration=rr.TSBooleanKeyword=rr.TSBigIntKeyword=rr.TSAsExpression=rr.TSArrayType=rr.TSAnyKeyword=rr.SymbolTypeAnnotation=rr.SwitchStatement=rr.SwitchCase=rr.Super=rr.StringTypeAnnotation=rr.StringLiteralTypeAnnotation=rr.StringLiteral=rr.StaticBlock=rr.SpreadProperty=rr.SpreadElement=rr.SequenceExpression=rr.ReturnStatement=rr.RestProperty=rr.RestElement=rr.RegexLiteral=rr.RegExpLiteral=rr.RecordExpression=rr.QualifiedTypeIdentifier=rr.Program=rr.PrivateName=rr.Placeholder=rr.PipelineTopicExpression=rr.PipelinePrimaryTopicReference=rr.PipelineBareFunction=rr.ParenthesizedExpression=rr.OptionalMemberExpression=rr.OptionalIndexedAccessType=rr.OptionalCallExpression=rr.OpaqueType=rr.ObjectTypeSpreadProperty=rr.ObjectTypeProperty=rr.ObjectTypeInternalSlot=rr.ObjectTypeIndexer=rr.ObjectTypeCallProperty=rr.ObjectTypeAnnotation=rr.ObjectProperty=rr.ObjectPattern=rr.ObjectMethod=rr.ObjectExpression=rr.NumericLiteral=rr.NumberTypeAnnotation=rr.NumberLiteralTypeAnnotation=rr.NumberLiteral=rr.NullableTypeAnnotation=rr.NullLiteralTypeAnnotation=rr.NullLiteral=rr.Noop=rr.NewExpression=rr.ModuleExpression=rr.MixedTypeAnnotation=rr.MetaProperty=rr.MemberExpression=rr.LogicalExpression=rr.LabeledStatement=rr.JSXText=rr.JSXSpreadChild=rr.JSXSpreadAttribute=rr.JSXOpeningFragment=rr.JSXOpeningElement=rr.JSXNamespacedName=rr.JSXMemberExpression=void 0,rr.YieldExpression=rr.WithStatement=rr.WhileStatement=rr.VoidTypeAnnotation=rr.VoidPattern=rr.Variance=rr.VariableDeclarator=rr.VariableDeclaration=rr.V8IntrinsicIdentifier=rr.UpdateExpression=rr.UnionTypeAnnotation=rr.UnaryExpression=rr.TypeofTypeAnnotation=rr.TypeParameterInstantiation=rr.TypeParameterDeclaration=rr.TypeParameter=rr.TypeCastExpression=rr.TypeAnnotation=rr.TypeAlias=rr.TupleTypeAnnotation=rr.TupleExpression=rr.TryStatement=rr.TopicReference=rr.ThrowStatement=rr.ThisTypeAnnotation=rr.ThisExpression=rr.TemplateLiteral=rr.TemplateElement=rr.TaggedTemplateExpression=rr.TSVoidKeyword=rr.TSUnknownKeyword=rr.TSUnionType=rr.TSUndefinedKeyword=rr.TSTypeReference=rr.TSTypeQuery=rr.TSTypePredicate=rr.TSTypeParameterInstantiation=rr.TSTypeParameterDeclaration=rr.TSTypeParameter=rr.TSTypeOperator=rr.TSTypeLiteral=rr.TSTypeAssertion=rr.TSTypeAnnotation=rr.TSTypeAliasDeclaration=rr.TSTupleType=rr.TSThisType=rr.TSTemplateLiteralType=rr.TSSymbolKeyword=rr.TSStringKeyword=rr.TSSatisfiesExpression=rr.TSRestType=rr.TSQualifiedName=rr.TSPropertySignature=rr.TSParenthesizedType=rr.TSParameterProperty=rr.TSOptionalType=rr.TSObjectKeyword=void 0;var e=Gt();function t(t){return e[t]}return He(),rr.ArrayExpression=t("arrayExpression"),rr.AssignmentExpression=t("assignmentExpression"),rr.BinaryExpression=t("binaryExpression"),rr.InterpreterDirective=t("interpreterDirective"),rr.Directive=t("directive"),rr.DirectiveLiteral=t("directiveLiteral"),rr.BlockStatement=t("blockStatement"),rr.BreakStatement=t("breakStatement"),rr.CallExpression=t("callExpression"),rr.CatchClause=t("catchClause"),rr.ConditionalExpression=t("conditionalExpression"),rr.ContinueStatement=t("continueStatement"),rr.DebuggerStatement=t("debuggerStatement"),rr.DoWhileStatement=t("doWhileStatement"),rr.EmptyStatement=t("emptyStatement"),rr.ExpressionStatement=t("expressionStatement"),rr.File=t("file"),rr.ForInStatement=t("forInStatement"),rr.ForStatement=t("forStatement"),rr.FunctionDeclaration=t("functionDeclaration"),rr.FunctionExpression=t("functionExpression"),rr.Identifier=t("identifier"),rr.IfStatement=t("ifStatement"),rr.LabeledStatement=t("labeledStatement"),rr.StringLiteral=t("stringLiteral"),rr.NumericLiteral=t("numericLiteral"),rr.NullLiteral=t("nullLiteral"),rr.BooleanLiteral=t("booleanLiteral"),rr.RegExpLiteral=t("regExpLiteral"),rr.LogicalExpression=t("logicalExpression"),rr.MemberExpression=t("memberExpression"),rr.NewExpression=t("newExpression"),rr.Program=t("program"),rr.ObjectExpression=t("objectExpression"),rr.ObjectMethod=t("objectMethod"),rr.ObjectProperty=t("objectProperty"),rr.RestElement=t("restElement"),rr.ReturnStatement=t("returnStatement"),rr.SequenceExpression=t("sequenceExpression"),rr.ParenthesizedExpression=t("parenthesizedExpression"),rr.SwitchCase=t("switchCase"),rr.SwitchStatement=t("switchStatement"),rr.ThisExpression=t("thisExpression"),rr.ThrowStatement=t("throwStatement"),rr.TryStatement=t("tryStatement"),rr.UnaryExpression=t("unaryExpression"),rr.UpdateExpression=t("updateExpression"),rr.VariableDeclaration=t("variableDeclaration"),rr.VariableDeclarator=t("variableDeclarator"),rr.WhileStatement=t("whileStatement"),rr.WithStatement=t("withStatement"),rr.AssignmentPattern=t("assignmentPattern"),rr.ArrayPattern=t("arrayPattern"),rr.ArrowFunctionExpression=t("arrowFunctionExpression"),rr.ClassBody=t("classBody"),rr.ClassExpression=t("classExpression"),rr.ClassDeclaration=t("classDeclaration"),rr.ExportAllDeclaration=t("exportAllDeclaration"),rr.ExportDefaultDeclaration=t("exportDefaultDeclaration"),rr.ExportNamedDeclaration=t("exportNamedDeclaration"),rr.ExportSpecifier=t("exportSpecifier"),rr.ForOfStatement=t("forOfStatement"),rr.ImportDeclaration=t("importDeclaration"),rr.ImportDefaultSpecifier=t("importDefaultSpecifier"),rr.ImportNamespaceSpecifier=t("importNamespaceSpecifier"),rr.ImportSpecifier=t("importSpecifier"),rr.ImportExpression=t("importExpression"),rr.MetaProperty=t("metaProperty"),rr.ClassMethod=t("classMethod"),rr.ObjectPattern=t("objectPattern"),rr.SpreadElement=t("spreadElement"),rr.Super=t("super"),rr.TaggedTemplateExpression=t("taggedTemplateExpression"),rr.TemplateElement=t("templateElement"),rr.TemplateLiteral=t("templateLiteral"),rr.YieldExpression=t("yieldExpression"),rr.AwaitExpression=t("awaitExpression"),rr.Import=t("import"),rr.BigIntLiteral=t("bigIntLiteral"),rr.ExportNamespaceSpecifier=t("exportNamespaceSpecifier"),rr.OptionalMemberExpression=t("optionalMemberExpression"),rr.OptionalCallExpression=t("optionalCallExpression"),rr.ClassProperty=t("classProperty"),rr.ClassAccessorProperty=t("classAccessorProperty"),rr.ClassPrivateProperty=t("classPrivateProperty"),rr.ClassPrivateMethod=t("classPrivateMethod"),rr.PrivateName=t("privateName"),rr.StaticBlock=t("staticBlock"),rr.ImportAttribute=t("importAttribute"),rr.AnyTypeAnnotation=t("anyTypeAnnotation"),rr.ArrayTypeAnnotation=t("arrayTypeAnnotation"),rr.BooleanTypeAnnotation=t("booleanTypeAnnotation"),rr.BooleanLiteralTypeAnnotation=t("booleanLiteralTypeAnnotation"),rr.NullLiteralTypeAnnotation=t("nullLiteralTypeAnnotation"),rr.ClassImplements=t("classImplements"),rr.DeclareClass=t("declareClass"),rr.DeclareFunction=t("declareFunction"),rr.DeclareInterface=t("declareInterface"),rr.DeclareModule=t("declareModule"),rr.DeclareModuleExports=t("declareModuleExports"),rr.DeclareTypeAlias=t("declareTypeAlias"),rr.DeclareOpaqueType=t("declareOpaqueType"),rr.DeclareVariable=t("declareVariable"),rr.DeclareExportDeclaration=t("declareExportDeclaration"),rr.DeclareExportAllDeclaration=t("declareExportAllDeclaration"),rr.DeclaredPredicate=t("declaredPredicate"),rr.ExistsTypeAnnotation=t("existsTypeAnnotation"),rr.FunctionTypeAnnotation=t("functionTypeAnnotation"),rr.FunctionTypeParam=t("functionTypeParam"),rr.GenericTypeAnnotation=t("genericTypeAnnotation"),rr.InferredPredicate=t("inferredPredicate"),rr.InterfaceExtends=t("interfaceExtends"),rr.InterfaceDeclaration=t("interfaceDeclaration"),rr.InterfaceTypeAnnotation=t("interfaceTypeAnnotation"),rr.IntersectionTypeAnnotation=t("intersectionTypeAnnotation"),rr.MixedTypeAnnotation=t("mixedTypeAnnotation"),rr.EmptyTypeAnnotation=t("emptyTypeAnnotation"),rr.NullableTypeAnnotation=t("nullableTypeAnnotation"),rr.NumberLiteralTypeAnnotation=t("numberLiteralTypeAnnotation"),rr.NumberTypeAnnotation=t("numberTypeAnnotation"),rr.ObjectTypeAnnotation=t("objectTypeAnnotation"),rr.ObjectTypeInternalSlot=t("objectTypeInternalSlot"),rr.ObjectTypeCallProperty=t("objectTypeCallProperty"),rr.ObjectTypeIndexer=t("objectTypeIndexer"),rr.ObjectTypeProperty=t("objectTypeProperty"),rr.ObjectTypeSpreadProperty=t("objectTypeSpreadProperty"),rr.OpaqueType=t("opaqueType"),rr.QualifiedTypeIdentifier=t("qualifiedTypeIdentifier"),rr.StringLiteralTypeAnnotation=t("stringLiteralTypeAnnotation"),rr.StringTypeAnnotation=t("stringTypeAnnotation"),rr.SymbolTypeAnnotation=t("symbolTypeAnnotation"),rr.ThisTypeAnnotation=t("thisTypeAnnotation"),rr.TupleTypeAnnotation=t("tupleTypeAnnotation"),rr.TypeofTypeAnnotation=t("typeofTypeAnnotation"),rr.TypeAlias=t("typeAlias"),rr.TypeAnnotation=t("typeAnnotation"),rr.TypeCastExpression=t("typeCastExpression"),rr.TypeParameter=t("typeParameter"),rr.TypeParameterDeclaration=t("typeParameterDeclaration"),rr.TypeParameterInstantiation=t("typeParameterInstantiation"),rr.UnionTypeAnnotation=t("unionTypeAnnotation"),rr.Variance=t("variance"),rr.VoidTypeAnnotation=t("voidTypeAnnotation"),rr.EnumDeclaration=t("enumDeclaration"),rr.EnumBooleanBody=t("enumBooleanBody"),rr.EnumNumberBody=t("enumNumberBody"),rr.EnumStringBody=t("enumStringBody"),rr.EnumSymbolBody=t("enumSymbolBody"),rr.EnumBooleanMember=t("enumBooleanMember"),rr.EnumNumberMember=t("enumNumberMember"),rr.EnumStringMember=t("enumStringMember"),rr.EnumDefaultedMember=t("enumDefaultedMember"),rr.IndexedAccessType=t("indexedAccessType"),rr.OptionalIndexedAccessType=t("optionalIndexedAccessType"),rr.JSXAttribute=t("jsxAttribute"),rr.JSXClosingElement=t("jsxClosingElement"),rr.JSXElement=t("jsxElement"),rr.JSXEmptyExpression=t("jsxEmptyExpression"),rr.JSXExpressionContainer=t("jsxExpressionContainer"),rr.JSXSpreadChild=t("jsxSpreadChild"),rr.JSXIdentifier=t("jsxIdentifier"),rr.JSXMemberExpression=t("jsxMemberExpression"),rr.JSXNamespacedName=t("jsxNamespacedName"),rr.JSXOpeningElement=t("jsxOpeningElement"),rr.JSXSpreadAttribute=t("jsxSpreadAttribute"),rr.JSXText=t("jsxText"),rr.JSXFragment=t("jsxFragment"),rr.JSXOpeningFragment=t("jsxOpeningFragment"),rr.JSXClosingFragment=t("jsxClosingFragment"),rr.Noop=t("noop"),rr.Placeholder=t("placeholder"),rr.V8IntrinsicIdentifier=t("v8IntrinsicIdentifier"),rr.ArgumentPlaceholder=t("argumentPlaceholder"),rr.BindExpression=t("bindExpression"),rr.Decorator=t("decorator"),rr.DoExpression=t("doExpression"),rr.ExportDefaultSpecifier=t("exportDefaultSpecifier"),rr.RecordExpression=t("recordExpression"),rr.TupleExpression=t("tupleExpression"),rr.DecimalLiteral=t("decimalLiteral"),rr.ModuleExpression=t("moduleExpression"),rr.TopicReference=t("topicReference"),rr.PipelineTopicExpression=t("pipelineTopicExpression"),rr.PipelineBareFunction=t("pipelineBareFunction"),rr.PipelinePrimaryTopicReference=t("pipelinePrimaryTopicReference"),rr.VoidPattern=t("voidPattern"),rr.TSParameterProperty=t("tsParameterProperty"),rr.TSDeclareFunction=t("tsDeclareFunction"),rr.TSDeclareMethod=t("tsDeclareMethod"),rr.TSQualifiedName=t("tsQualifiedName"),rr.TSCallSignatureDeclaration=t("tsCallSignatureDeclaration"),rr.TSConstructSignatureDeclaration=t("tsConstructSignatureDeclaration"),rr.TSPropertySignature=t("tsPropertySignature"),rr.TSMethodSignature=t("tsMethodSignature"),rr.TSIndexSignature=t("tsIndexSignature"),rr.TSAnyKeyword=t("tsAnyKeyword"),rr.TSBooleanKeyword=t("tsBooleanKeyword"),rr.TSBigIntKeyword=t("tsBigIntKeyword"),rr.TSIntrinsicKeyword=t("tsIntrinsicKeyword"),rr.TSNeverKeyword=t("tsNeverKeyword"),rr.TSNullKeyword=t("tsNullKeyword"),rr.TSNumberKeyword=t("tsNumberKeyword"),rr.TSObjectKeyword=t("tsObjectKeyword"),rr.TSStringKeyword=t("tsStringKeyword"),rr.TSSymbolKeyword=t("tsSymbolKeyword"),rr.TSUndefinedKeyword=t("tsUndefinedKeyword"),rr.TSUnknownKeyword=t("tsUnknownKeyword"),rr.TSVoidKeyword=t("tsVoidKeyword"),rr.TSThisType=t("tsThisType"),rr.TSFunctionType=t("tsFunctionType"),rr.TSConstructorType=t("tsConstructorType"),rr.TSTypeReference=t("tsTypeReference"),rr.TSTypePredicate=t("tsTypePredicate"),rr.TSTypeQuery=t("tsTypeQuery"),rr.TSTypeLiteral=t("tsTypeLiteral"),rr.TSArrayType=t("tsArrayType"),rr.TSTupleType=t("tsTupleType"),rr.TSOptionalType=t("tsOptionalType"),rr.TSRestType=t("tsRestType"),rr.TSNamedTupleMember=t("tsNamedTupleMember"),rr.TSUnionType=t("tsUnionType"),rr.TSIntersectionType=t("tsIntersectionType"),rr.TSConditionalType=t("tsConditionalType"),rr.TSInferType=t("tsInferType"),rr.TSParenthesizedType=t("tsParenthesizedType"),rr.TSTypeOperator=t("tsTypeOperator"),rr.TSIndexedAccessType=t("tsIndexedAccessType"),rr.TSMappedType=t("tsMappedType"),rr.TSTemplateLiteralType=t("tsTemplateLiteralType"),rr.TSLiteralType=t("tsLiteralType"),rr.TSExpressionWithTypeArguments=t("tsExpressionWithTypeArguments"),rr.TSInterfaceDeclaration=t("tsInterfaceDeclaration"),rr.TSInterfaceBody=t("tsInterfaceBody"),rr.TSTypeAliasDeclaration=t("tsTypeAliasDeclaration"),rr.TSInstantiationExpression=t("tsInstantiationExpression"),rr.TSAsExpression=t("tsAsExpression"),rr.TSSatisfiesExpression=t("tsSatisfiesExpression"),rr.TSTypeAssertion=t("tsTypeAssertion"),rr.TSEnumBody=t("tsEnumBody"),rr.TSEnumDeclaration=t("tsEnumDeclaration"),rr.TSEnumMember=t("tsEnumMember"),rr.TSModuleDeclaration=t("tsModuleDeclaration"),rr.TSModuleBlock=t("tsModuleBlock"),rr.TSImportType=t("tsImportType"),rr.TSImportEqualsDeclaration=t("tsImportEqualsDeclaration"),rr.TSExternalModuleReference=t("tsExternalModuleReference"),rr.TSNonNullExpression=t("tsNonNullExpression"),rr.TSExportAssignment=t("tsExportAssignment"),rr.TSNamespaceExportDeclaration=t("tsNamespaceExportDeclaration"),rr.TSTypeAnnotation=t("tsTypeAnnotation"),rr.TSTypeParameterInstantiation=t("tsTypeParameterInstantiation"),rr.TSTypeParameterDeclaration=t("tsTypeParameterDeclaration"),rr.TSTypeParameter=t("tsTypeParameter"),rr.NumberLiteral=e.numberLiteral,rr.RegexLiteral=e.regexLiteral,rr.RestProperty=e.restProperty,rr.SpreadProperty=e.spreadProperty,rr}();Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))})}(Qe)),Qe}function ir(){if(tr)return ze;tr=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=function(r){const n=[];for(let i=0;i<r.children.length;i++){let s=r.children[i];(0,e.isJSXText)(s)?(0,t.default)(s,n):((0,e.isJSXExpressionContainer)(s)&&(s=s.expression),(0,e.isJSXEmptyExpression)(s)||n.push(s))}return n};var e=We(),t=function(){if(er)return Ge;er=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.default=function(r,n){const i=r.value.split(/\r\n|\n|\r/);let s=0;for(let e=0;e<i.length;e++)/[^ \t]/.exec(i[e])&&(s=e);let a="";for(let e=0;e<i.length;e++){const t=i[e],r=0===e,n=e===i.length-1,o=e===s;let l=t.replace(/\t/g," ");r||(l=l.replace(/^ +/,"")),n||(l=l.replace(/ +$/,"")),l&&(o||(l+=" "),a+=l)}a&&n.push((0,t.inherits)((0,e.stringLiteral)(a),r))};var e=nr(),t=Ni();return Ge}();return ze}var sr,ar,or={},lr={};function cr(){if(sr)return lr;sr=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.default=function(t){return!(!t||!e.VISITOR_KEYS[t.type])};var e=Xt();return lr}var pr,ur={};var hr,dr={};var fr,mr,yr={},gr={};function Tr(){if(fr)return gr;fr=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.default=function r(n){const i=Array.from(n),s=new Map,a=new Map,o=new Set,l=[];for(let n=0;n<i.length;n++){const c=i[n];if(c&&!l.includes(c)){if((0,e.isAnyTypeAnnotation)(c))return[c];if((0,e.isFlowBaseAnnotation)(c))a.set(c.type,c);else if((0,e.isUnionTypeAnnotation)(c))o.has(c.types)||(i.push(...c.types),o.add(c.types));else{if((0,e.isGenericTypeAnnotation)(c)){const e=t(c.id);if(s.has(e)){let t=s.get(e);t.typeParameters?c.typeParameters&&(t.typeParameters.params.push(...c.typeParameters.params),t.typeParameters.params=r(t.typeParameters.params)):t=c.typeParameters}else s.set(e,c);continue}l.push(c)}}}for(const[,e]of a)l.push(e);for(const[,e]of s)l.push(e);return l};var e=We();function t(r){return(0,e.isIdentifier)(r)?r.name:`${r.id.name}.${t(r.qualification)}`}return gr}var xr,br,Sr={},vr={};function Er(){if(br)return Sr;br=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.default=function(n){const i=n.map(e=>(0,r.isTSTypeAnnotation)(e)?e.typeAnnotation:e),s=(0,t.default)(i);return 1===s.length?s[0]:(0,e.tsUnionType)(s)};var e=nr(),t=function(){if(xr)return vr;xr=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.default=function r(n){const i=Array.from(n),s=new Map,a=new Map,o=new Set,l=[];for(let n=0;n<i.length;n++){const c=i[n];if(!c)continue;if(l.includes(c))continue;if((0,e.isTSAnyKeyword)(c))return[c];if((0,e.isTSBaseType)(c)){a.set(c.type,c);continue}if((0,e.isTSUnionType)(c)){o.has(c.types)||(i.push(...c.types),o.add(c.types));continue}const p="typeParameters";if((0,e.isTSTypeReference)(c)&&c[p]){const e=c[p],n=t(c.typeName);if(s.has(n)){let t=s.get(n);const i=t[p];i?(i.params.push(...e.params),i.params=r(i.params)):t=e}else s.set(n,c);continue}l.push(c)}for(const[,e]of a)l.push(e);for(const[,e]of s)l.push(e);return l};var e=We();function t(r){return(0,e.isIdentifier)(r)?r.name:(0,e.isThisExpression)(r)?"this":`${r.right.name}.${t(r.left)}`}return vr}(),r=We();return Sr}var Pr,Ar={};function Cr(){if(Pr)return Ar;Pr=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.buildUndefinedNode=function(){return(0,e.unaryExpression)("void",(0,e.numericLiteral)(0),!0)};var e=nr();return Ar}var wr,_r={};function Ir(){if(wr)return _r;wr=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=function(e,t=!0,r=!1){return s(e,t,r,new Map)};var e=Xt(),t=We();const{hasOwn:r}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function n(e,t,r,n){return e&&"string"==typeof e.type?s(e,t,r,n):e}function i(e,t,r,i){return Array.isArray(e)?e.map(e=>n(e,t,r,i)):n(e,t,r,i)}function s(n,s=!0,o=!1,l){if(!n)return n;const{type:c}=n,p={type:n.type};if((0,t.isIdentifier)(n))p.name=n.name,r(n,"optional")&&"boolean"==typeof n.optional&&(p.optional=n.optional),r(n,"typeAnnotation")&&(p.typeAnnotation=s?i(n.typeAnnotation,!0,o,l):n.typeAnnotation),r(n,"decorators")&&(p.decorators=s?i(n.decorators,!0,o,l):n.decorators);else{if(!r(e.NODE_FIELDS,c))throw new Error(`Unknown node type: "${c}"`);for(const u of Object.keys(e.NODE_FIELDS[c]))r(n,u)&&(p[u]=s?(0,t.isFile)(n)&&"comments"===u?a(n.comments,s,o,l):i(n[u],!0,o,l):n[u])}return r(n,"loc")&&(p.loc=o?null:n.loc),r(n,"leadingComments")&&(p.leadingComments=a(n.leadingComments,s,o,l)),r(n,"innerComments")&&(p.innerComments=a(n.innerComments,s,o,l)),r(n,"trailingComments")&&(p.trailingComments=a(n.trailingComments,s,o,l)),r(n,"extra")&&(p.extra=Object.assign({},n.extra)),p}function a(e,t,r,n){return e&&t?e.map(e=>{const t=n.get(e);if(t)return t;const{type:i,value:s,loc:a}=e,o={type:i,value:s,loc:a};return r&&(o.loc=null),n.set(e,o),o}):e}return _r}var kr,Or={};var Nr,Lr={};var Dr,Mr={};var Br,Fr={};var jr,Rr,Vr={},Ur={};function Kr(){if(jr)return Ur;return jr=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=function(e,t,r){if(!r||!e)return e;const n=`${t}Comments`;e[n]?"leading"===t?e[n]=r.concat(e[n]):e[n].push(...r):e[n]=r;return e},Ur}var Hr,Wr,qr={},$r={};function Yr(){if(Hr)return $r;return Hr=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.default=function(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))},$r}function Jr(){if(Wr)return qr;Wr=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.default=function(t,r){(0,e.default)("innerComments",t,r)};var e=Yr();return qr}var Xr,zr={};function Gr(){if(Xr)return zr;Xr=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.default=function(t,r){(0,e.default)("leadingComments",t,r)};var e=Yr();return zr}var Qr,Zr,en={},tn={};function rn(){if(Qr)return tn;Qr=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=function(t,r){(0,e.default)("trailingComments",t,r)};var e=Yr();return tn}function nn(){if(Zr)return en;Zr=1,Object.defineProperty(en,"__esModule",{value:!0}),en.default=function(n,i){return(0,e.default)(n,i),(0,t.default)(n,i),(0,r.default)(n,i),n};var e=rn(),t=Gr(),r=Jr();return en}var sn,an={};var on,ln={};var cn,pn,un={},hn={};function dn(){if(cn)return hn;cn=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.default=function(r,n){if((0,e.isBlockStatement)(r))return r;let i=[];(0,e.isEmptyStatement)(r)?i=[]:((0,e.isStatement)(r)||(r=(0,e.isFunction)(n)?(0,t.returnStatement)(r):(0,t.expressionStatement)(r)),i=[r]);return(0,t.blockStatement)(i)};var e=We(),t=nr();return hn}var fn,mn,yn={},gn={};function Tn(){if(fn)return gn;fn=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.default=function(r){r+="";let n="";for(const e of r)n+=(0,t.isIdentifierChar)(e.codePointAt(0))?e:"-";n=n.replace(/^[-0-9]+/,""),n=n.replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}),(0,e.default)(n)||(n=`_${n}`);return n||"_"};var e=bt(),t=xt();return gn}var xn,bn={};var Sn,vn={};var En,Pn={},An={},Cn={};function wn(){if(En)return Cn;En=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=n;var e=Xt();const t=Symbol(),r=Symbol();function n(i,s,a){if(!i)return!1;const o=e.VISITOR_KEYS[i.type];if(!o)return!1;const l=s(i,a=a||{});if(void 0!==l)switch(l){case t:return!1;case r:return!0}for(const e of o){const t=i[e];if(t)if(Array.isArray(t)){for(const e of t)if(n(e,s,a))return!0}else if(n(t,s,a))return!0}return!1}return n.skip=t,n.stop=r,Cn}var _n,In,kn,On={};function Nn(){if(_n)return On;_n=1,Object.defineProperty(On,"__esModule",{value:!0}),On.default=function(e,n={}){const i=n.preserveComments?t:r;for(const t of i)null!=e[t]&&(e[t]=void 0);for(const t of Object.keys(e))"_"===t[0]&&null!=e[t]&&(e[t]=void 0);const s=Object.getOwnPropertySymbols(e);for(const t of s)e[t]=null};var e=At();const t=["tokens","start","end","loc","raw","rawValue"],r=[...e.COMMENT_KEYS,"comments",...t];return On}function Ln(){if(In)return An;In=1,Object.defineProperty(An,"__esModule",{value:!0}),An.default=function(r,n){return(0,e.default)(r,t.default,n),r};var e=wn(),t=Nn();return An}var Dn,Mn={};var Bn,Fn={};function jn(){if(Bn)return Fn;Bn=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.default=void 0;var e=bt(),t=nr();Fn.default=function n(i){if(void 0===i)return(0,t.identifier)("undefined");if(!0===i||!1===i)return(0,t.booleanLiteral)(i);if(null===i)return(0,t.nullLiteral)();if("string"==typeof i)return(0,t.stringLiteral)(i);if("number"==typeof i){let e;if(Number.isFinite(i))e=(0,t.numericLiteral)(Math.abs(i));else{let r;r=Number.isNaN(i)?(0,t.numericLiteral)(0):(0,t.numericLiteral)(1),e=(0,t.binaryExpression)("/",r,(0,t.numericLiteral)(0))}return(i<0||Object.is(i,-0))&&(e=(0,t.unaryExpression)("-",e)),e}if("bigint"==typeof i)return i<0?(0,t.unaryExpression)("-",(0,t.bigIntLiteral)(-i)):(0,t.bigIntLiteral)(i);if(function(e){return"[object RegExp]"===r(e)}(i)){const e=i.source,r=/\/([a-z]*)$/.exec(i.toString())[1];return(0,t.regExpLiteral)(e,r)}if(Array.isArray(i))return(0,t.arrayExpression)(i.map(n));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(i)){const r=[];for(const s of Object.keys(i)){let a,o=!1;(0,e.default)(s)?"__proto__"===s?(o=!0,a=(0,t.stringLiteral)(s)):a=(0,t.identifier)(s):a=(0,t.stringLiteral)(s),r.push((0,t.objectProperty)(a,n(i[s]),o))}return(0,t.objectExpression)(r)}throw new Error("don't know how to turn this value into a node")};const r=Function.call.bind(Object.prototype.toString);return Fn}var Rn,Vn={};var Un,Kn={};var Hn,Wn={};var qn,$n={};var Yn,Jn={};function Xn(){if(Yn)return Jn;Yn=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.default=t;var e=We();function t(r,n,i,s){const a=[].concat(r),o=Object.create(null);for(;a.length;){const r=a.shift();if(!r)continue;if(s&&((0,e.isAssignmentExpression)(r)||(0,e.isUnaryExpression)(r)||(0,e.isUpdateExpression)(r)))continue;if((0,e.isIdentifier)(r)){if(n){(o[r.name]=o[r.name]||[]).push(r)}else o[r.name]=r;continue}if((0,e.isExportDeclaration)(r)&&!(0,e.isExportAllDeclaration)(r)){(0,e.isDeclaration)(r.declaration)&&a.push(r.declaration);continue}if(i){if((0,e.isFunctionDeclaration)(r)){a.push(r.id);continue}if((0,e.isFunctionExpression)(r))continue}const l=t.keys[r.type];if(l)for(let e=0;e<l.length;e++){const t=r[l[e]];t&&(Array.isArray(t)?a.push(...t):a.push(t))}}return o}return t.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]},Jn}var zn,Gn={};var Qn,Zn={};function ei(){if(Qn)return Zn;Qn=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.default=function(r,n){if("id"in r&&r.id)return{name:r.id.name,originalNode:r.id};let i,s="";(0,e.isObjectProperty)(n,{value:r})?i=t(n):(0,e.isObjectMethod)(r)||(0,e.isClassMethod)(r)?(i=t(r),"get"===r.kind?s="get ":"set"===r.kind&&(s="set ")):(0,e.isVariableDeclarator)(n,{init:r})?i=n.id:(0,e.isAssignmentExpression)(n,{operator:"=",right:r})&&(i=n.left);if(!i)return null;const a=(0,e.isLiteral)(i)?function(t){if((0,e.isNullLiteral)(t))return"null";if((0,e.isRegExpLiteral)(t))return`/${t.pattern}/${t.flags}`;if((0,e.isTemplateLiteral)(t))return t.quasis.map(e=>e.value.raw).join("");if(void 0!==t.value)return String(t.value);return null}(i):(0,e.isIdentifier)(i)?i.name:(0,e.isPrivateName)(i)?i.id.name:null;return null==a?null:{name:s+a,originalNode:i}};var e=We();function t(t){if(!t.computed||(0,e.isLiteral)(t.key))return t.key}return Zn}var ti,ri={};function ni(){if(ti)return ri;ti=1,Object.defineProperty(ri,"__esModule",{value:!0}),ri.default=function(e,r,n){"function"==typeof r&&(r={enter:r});const{enter:i,exit:s}=r;t(e,i,s,n,[])};var e=Xt();function t(r,n,i,s,a){const o=e.VISITOR_KEYS[r.type];if(o){n&&n(r,a,s);for(const e of o){const o=r[e];if(Array.isArray(o))for(let l=0;l<o.length;l++){const c=o[l];c&&(a.push({node:r,key:e,index:l}),t(c,n,i,s,a),a.pop())}else o&&(a.push({node:r,key:e}),t(o,n,i,s,a),a.pop())}i&&i(r,a,s)}}return ri}var ii,si={};var ai,oi,li={},ci={};function pi(){if(ai)return ci;ai=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.default=function(r){return(0,e.isVariableDeclaration)(r)&&("var"!==r.kind||r[t])};var e=We(),t=Symbol.for("var used to be block scoped");return ci}var ui,hi={};var di,fi={};var mi,yi={};var gi,Ti={};var xi,bi={};var Si,vi={};var Ei,Pi={};var Ai,Ci,wi,_i,Ii={},ki={};function Oi(){if(Ci)return Ii;Ci=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=function(t,r){if(null==t||!t.length)return;const n=[],i=(0,e.default)(t,n);if(!i)return;for(const e of n)r.push(e);return i};var e=function(){if(Ai)return ki;Ai=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.default=function s(a,o){const l=[];let c=!0;for(const p of a)if((0,t.isEmptyStatement)(p)||(c=!1),(0,t.isExpression)(p))l.push(p);else if((0,t.isExpressionStatement)(p))l.push(p.expression);else if((0,t.isVariableDeclaration)(p)){if("var"!==p.kind)return;for(const t of p.declarations){const n=(0,e.default)(t);for(const e of Object.keys(n))o.push({kind:p.kind,id:(0,i.default)(n[e])});t.init&&l.push((0,r.assignmentExpression)("=",t.id,t.init))}c=!0}else if((0,t.isIfStatement)(p)){const e=p.consequent?s([p.consequent],o):(0,n.buildUndefinedNode)(),t=p.alternate?s([p.alternate],o):(0,n.buildUndefinedNode)();if(!e||!t)return;l.push((0,r.conditionalExpression)(p.test,e,t))}else if((0,t.isBlockStatement)(p)){const e=s(p.body,o);if(!e)return;l.push(e)}else{if(!(0,t.isEmptyStatement)(p))return;0===a.indexOf(p)&&(c=!0)}return c&&l.push((0,n.buildUndefinedNode)()),1===l.length?l[0]:(0,r.sequenceExpression)(l)};var e=Xn(),t=We(),r=nr(),n=Cr(),i=Ir();return ki}();return Ii}function Ni(){return wi||(wi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(e,"__internal__deprecationWarning",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(e,"addComment",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"addComments",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"appendToMemberExpression",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"assertNode",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"buildMatchMemberExpression",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"cloneNode",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"cloneWithoutLoc",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"createFlowUnionType",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"createTSUnionType",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"ensureBlock",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"getBindingIdentifiers",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"inheritInnerComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"inheritLeadingComments",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"inheritTrailingComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"inherits",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"inheritsComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(e,"isBinding",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"isBlockScoped",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"isImmutable",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"isLet",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(e,"isNodesEquivalent",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"isPlaceholderType",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"isReferenced",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(e,"isScope",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"isSpecifierDefault",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(e,"isValidES3Identifier",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(e,"isValidIdentifier",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(e,"isVar",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(e,"matchesPattern",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(e,"prependToMemberExpression",{enumerable:!0,get:function(){return j.default}}),e.react=void 0,Object.defineProperty(e,"removeComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"removeProperties",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"removePropertiesDeep",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"removeTypeDuplicates",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"shallowEqual",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"toBindingIdentifierName",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"toBlock",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"toComputedKey",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"toExpression",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"toIdentifier",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"toKeyAlias",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"toStatement",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"traverse",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"traverseFast",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(e,"valueToNode",{enumerable:!0,get:function(){return D.default}});var r=function(){if(Ue)return Oe;Ue=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.default=void 0;const e=(0,$e().default)("React.Component");return Oe.default=e,Oe}(),n=(Ye||(Ye=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.default=function(e){return!!e&&/^[a-z]/.test(e)}),Je),i=ir(),s=function(){if(ar)return or;ar=1,Object.defineProperty(or,"__esModule",{value:!0}),or.default=function(t){if(!(0,e.default)(t)){var r;const e=null!=(r=null==t?void 0:t.type)?r:JSON.stringify(t);throw new TypeError(`Not a valid node of type "${e}"`)}};var e=cr();return or}(),a=function(){if(pr)return ur;pr=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.assertAccessor=function(e,t){r("Accessor",e,t)},ur.assertAnyTypeAnnotation=function(e,t){r("AnyTypeAnnotation",e,t)},ur.assertArgumentPlaceholder=function(e,t){r("ArgumentPlaceholder",e,t)},ur.assertArrayExpression=function(e,t){r("ArrayExpression",e,t)},ur.assertArrayPattern=function(e,t){r("ArrayPattern",e,t)},ur.assertArrayTypeAnnotation=function(e,t){r("ArrayTypeAnnotation",e,t)},ur.assertArrowFunctionExpression=function(e,t){r("ArrowFunctionExpression",e,t)},ur.assertAssignmentExpression=function(e,t){r("AssignmentExpression",e,t)},ur.assertAssignmentPattern=function(e,t){r("AssignmentPattern",e,t)},ur.assertAwaitExpression=function(e,t){r("AwaitExpression",e,t)},ur.assertBigIntLiteral=function(e,t){r("BigIntLiteral",e,t)},ur.assertBinary=function(e,t){r("Binary",e,t)},ur.assertBinaryExpression=function(e,t){r("BinaryExpression",e,t)},ur.assertBindExpression=function(e,t){r("BindExpression",e,t)},ur.assertBlock=function(e,t){r("Block",e,t)},ur.assertBlockParent=function(e,t){r("BlockParent",e,t)},ur.assertBlockStatement=function(e,t){r("BlockStatement",e,t)},ur.assertBooleanLiteral=function(e,t){r("BooleanLiteral",e,t)},ur.assertBooleanLiteralTypeAnnotation=function(e,t){r("BooleanLiteralTypeAnnotation",e,t)},ur.assertBooleanTypeAnnotation=function(e,t){r("BooleanTypeAnnotation",e,t)},ur.assertBreakStatement=function(e,t){r("BreakStatement",e,t)},ur.assertCallExpression=function(e,t){r("CallExpression",e,t)},ur.assertCatchClause=function(e,t){r("CatchClause",e,t)},ur.assertClass=function(e,t){r("Class",e,t)},ur.assertClassAccessorProperty=function(e,t){r("ClassAccessorProperty",e,t)},ur.assertClassBody=function(e,t){r("ClassBody",e,t)},ur.assertClassDeclaration=function(e,t){r("ClassDeclaration",e,t)},ur.assertClassExpression=function(e,t){r("ClassExpression",e,t)},ur.assertClassImplements=function(e,t){r("ClassImplements",e,t)},ur.assertClassMethod=function(e,t){r("ClassMethod",e,t)},ur.assertClassPrivateMethod=function(e,t){r("ClassPrivateMethod",e,t)},ur.assertClassPrivateProperty=function(e,t){r("ClassPrivateProperty",e,t)},ur.assertClassProperty=function(e,t){r("ClassProperty",e,t)},ur.assertCompletionStatement=function(e,t){r("CompletionStatement",e,t)},ur.assertConditional=function(e,t){r("Conditional",e,t)},ur.assertConditionalExpression=function(e,t){r("ConditionalExpression",e,t)},ur.assertContinueStatement=function(e,t){r("ContinueStatement",e,t)},ur.assertDebuggerStatement=function(e,t){r("DebuggerStatement",e,t)},ur.assertDecimalLiteral=function(e,t){r("DecimalLiteral",e,t)},ur.assertDeclaration=function(e,t){r("Declaration",e,t)},ur.assertDeclareClass=function(e,t){r("DeclareClass",e,t)},ur.assertDeclareExportAllDeclaration=function(e,t){r("DeclareExportAllDeclaration",e,t)},ur.assertDeclareExportDeclaration=function(e,t){r("DeclareExportDeclaration",e,t)},ur.assertDeclareFunction=function(e,t){r("DeclareFunction",e,t)},ur.assertDeclareInterface=function(e,t){r("DeclareInterface",e,t)},ur.assertDeclareModule=function(e,t){r("DeclareModule",e,t)},ur.assertDeclareModuleExports=function(e,t){r("DeclareModuleExports",e,t)},ur.assertDeclareOpaqueType=function(e,t){r("DeclareOpaqueType",e,t)},ur.assertDeclareTypeAlias=function(e,t){r("DeclareTypeAlias",e,t)},ur.assertDeclareVariable=function(e,t){r("DeclareVariable",e,t)},ur.assertDeclaredPredicate=function(e,t){r("DeclaredPredicate",e,t)},ur.assertDecorator=function(e,t){r("Decorator",e,t)},ur.assertDirective=function(e,t){r("Directive",e,t)},ur.assertDirectiveLiteral=function(e,t){r("DirectiveLiteral",e,t)},ur.assertDoExpression=function(e,t){r("DoExpression",e,t)},ur.assertDoWhileStatement=function(e,t){r("DoWhileStatement",e,t)},ur.assertEmptyStatement=function(e,t){r("EmptyStatement",e,t)},ur.assertEmptyTypeAnnotation=function(e,t){r("EmptyTypeAnnotation",e,t)},ur.assertEnumBody=function(e,t){r("EnumBody",e,t)},ur.assertEnumBooleanBody=function(e,t){r("EnumBooleanBody",e,t)},ur.assertEnumBooleanMember=function(e,t){r("EnumBooleanMember",e,t)},ur.assertEnumDeclaration=function(e,t){r("EnumDeclaration",e,t)},ur.assertEnumDefaultedMember=function(e,t){r("EnumDefaultedMember",e,t)},ur.assertEnumMember=function(e,t){r("EnumMember",e,t)},ur.assertEnumNumberBody=function(e,t){r("EnumNumberBody",e,t)},ur.assertEnumNumberMember=function(e,t){r("EnumNumberMember",e,t)},ur.assertEnumStringBody=function(e,t){r("EnumStringBody",e,t)},ur.assertEnumStringMember=function(e,t){r("EnumStringMember",e,t)},ur.assertEnumSymbolBody=function(e,t){r("EnumSymbolBody",e,t)},ur.assertExistsTypeAnnotation=function(e,t){r("ExistsTypeAnnotation",e,t)},ur.assertExportAllDeclaration=function(e,t){r("ExportAllDeclaration",e,t)},ur.assertExportDeclaration=function(e,t){r("ExportDeclaration",e,t)},ur.assertExportDefaultDeclaration=function(e,t){r("ExportDefaultDeclaration",e,t)},ur.assertExportDefaultSpecifier=function(e,t){r("ExportDefaultSpecifier",e,t)},ur.assertExportNamedDeclaration=function(e,t){r("ExportNamedDeclaration",e,t)},ur.assertExportNamespaceSpecifier=function(e,t){r("ExportNamespaceSpecifier",e,t)},ur.assertExportSpecifier=function(e,t){r("ExportSpecifier",e,t)},ur.assertExpression=function(e,t){r("Expression",e,t)},ur.assertExpressionStatement=function(e,t){r("ExpressionStatement",e,t)},ur.assertExpressionWrapper=function(e,t){r("ExpressionWrapper",e,t)},ur.assertFile=function(e,t){r("File",e,t)},ur.assertFlow=function(e,t){r("Flow",e,t)},ur.assertFlowBaseAnnotation=function(e,t){r("FlowBaseAnnotation",e,t)},ur.assertFlowDeclaration=function(e,t){r("FlowDeclaration",e,t)},ur.assertFlowPredicate=function(e,t){r("FlowPredicate",e,t)},ur.assertFlowType=function(e,t){r("FlowType",e,t)},ur.assertFor=function(e,t){r("For",e,t)},ur.assertForInStatement=function(e,t){r("ForInStatement",e,t)},ur.assertForOfStatement=function(e,t){r("ForOfStatement",e,t)},ur.assertForStatement=function(e,t){r("ForStatement",e,t)},ur.assertForXStatement=function(e,t){r("ForXStatement",e,t)},ur.assertFunction=function(e,t){r("Function",e,t)},ur.assertFunctionDeclaration=function(e,t){r("FunctionDeclaration",e,t)},ur.assertFunctionExpression=function(e,t){r("FunctionExpression",e,t)},ur.assertFunctionParameter=function(e,t){r("FunctionParameter",e,t)},ur.assertFunctionParent=function(e,t){r("FunctionParent",e,t)},ur.assertFunctionTypeAnnotation=function(e,t){r("FunctionTypeAnnotation",e,t)},ur.assertFunctionTypeParam=function(e,t){r("FunctionTypeParam",e,t)},ur.assertGenericTypeAnnotation=function(e,t){r("GenericTypeAnnotation",e,t)},ur.assertIdentifier=function(e,t){r("Identifier",e,t)},ur.assertIfStatement=function(e,t){r("IfStatement",e,t)},ur.assertImmutable=function(e,t){r("Immutable",e,t)},ur.assertImport=function(e,t){r("Import",e,t)},ur.assertImportAttribute=function(e,t){r("ImportAttribute",e,t)},ur.assertImportDeclaration=function(e,t){r("ImportDeclaration",e,t)},ur.assertImportDefaultSpecifier=function(e,t){r("ImportDefaultSpecifier",e,t)},ur.assertImportExpression=function(e,t){r("ImportExpression",e,t)},ur.assertImportNamespaceSpecifier=function(e,t){r("ImportNamespaceSpecifier",e,t)},ur.assertImportOrExportDeclaration=function(e,t){r("ImportOrExportDeclaration",e,t)},ur.assertImportSpecifier=function(e,t){r("ImportSpecifier",e,t)},ur.assertIndexedAccessType=function(e,t){r("IndexedAccessType",e,t)},ur.assertInferredPredicate=function(e,t){r("InferredPredicate",e,t)},ur.assertInterfaceDeclaration=function(e,t){r("InterfaceDeclaration",e,t)},ur.assertInterfaceExtends=function(e,t){r("InterfaceExtends",e,t)},ur.assertInterfaceTypeAnnotation=function(e,t){r("InterfaceTypeAnnotation",e,t)},ur.assertInterpreterDirective=function(e,t){r("InterpreterDirective",e,t)},ur.assertIntersectionTypeAnnotation=function(e,t){r("IntersectionTypeAnnotation",e,t)},ur.assertJSX=function(e,t){r("JSX",e,t)},ur.assertJSXAttribute=function(e,t){r("JSXAttribute",e,t)},ur.assertJSXClosingElement=function(e,t){r("JSXClosingElement",e,t)},ur.assertJSXClosingFragment=function(e,t){r("JSXClosingFragment",e,t)},ur.assertJSXElement=function(e,t){r("JSXElement",e,t)},ur.assertJSXEmptyExpression=function(e,t){r("JSXEmptyExpression",e,t)},ur.assertJSXExpressionContainer=function(e,t){r("JSXExpressionContainer",e,t)},ur.assertJSXFragment=function(e,t){r("JSXFragment",e,t)},ur.assertJSXIdentifier=function(e,t){r("JSXIdentifier",e,t)},ur.assertJSXMemberExpression=function(e,t){r("JSXMemberExpression",e,t)},ur.assertJSXNamespacedName=function(e,t){r("JSXNamespacedName",e,t)},ur.assertJSXOpeningElement=function(e,t){r("JSXOpeningElement",e,t)},ur.assertJSXOpeningFragment=function(e,t){r("JSXOpeningFragment",e,t)},ur.assertJSXSpreadAttribute=function(e,t){r("JSXSpreadAttribute",e,t)},ur.assertJSXSpreadChild=function(e,t){r("JSXSpreadChild",e,t)},ur.assertJSXText=function(e,t){r("JSXText",e,t)},ur.assertLVal=function(e,t){r("LVal",e,t)},ur.assertLabeledStatement=function(e,t){r("LabeledStatement",e,t)},ur.assertLiteral=function(e,t){r("Literal",e,t)},ur.assertLogicalExpression=function(e,t){r("LogicalExpression",e,t)},ur.assertLoop=function(e,t){r("Loop",e,t)},ur.assertMemberExpression=function(e,t){r("MemberExpression",e,t)},ur.assertMetaProperty=function(e,t){r("MetaProperty",e,t)},ur.assertMethod=function(e,t){r("Method",e,t)},ur.assertMiscellaneous=function(e,t){r("Miscellaneous",e,t)},ur.assertMixedTypeAnnotation=function(e,t){r("MixedTypeAnnotation",e,t)},ur.assertModuleDeclaration=function(e,n){(0,t.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),r("ModuleDeclaration",e,n)},ur.assertModuleExpression=function(e,t){r("ModuleExpression",e,t)},ur.assertModuleSpecifier=function(e,t){r("ModuleSpecifier",e,t)},ur.assertNewExpression=function(e,t){r("NewExpression",e,t)},ur.assertNoop=function(e,t){r("Noop",e,t)},ur.assertNullLiteral=function(e,t){r("NullLiteral",e,t)},ur.assertNullLiteralTypeAnnotation=function(e,t){r("NullLiteralTypeAnnotation",e,t)},ur.assertNullableTypeAnnotation=function(e,t){r("NullableTypeAnnotation",e,t)},ur.assertNumberLiteral=function(e,n){(0,t.default)("assertNumberLiteral","assertNumericLiteral"),r("NumberLiteral",e,n)},ur.assertNumberLiteralTypeAnnotation=function(e,t){r("NumberLiteralTypeAnnotation",e,t)},ur.assertNumberTypeAnnotation=function(e,t){r("NumberTypeAnnotation",e,t)},ur.assertNumericLiteral=function(e,t){r("NumericLiteral",e,t)},ur.assertObjectExpression=function(e,t){r("ObjectExpression",e,t)},ur.assertObjectMember=function(e,t){r("ObjectMember",e,t)},ur.assertObjectMethod=function(e,t){r("ObjectMethod",e,t)},ur.assertObjectPattern=function(e,t){r("ObjectPattern",e,t)},ur.assertObjectProperty=function(e,t){r("ObjectProperty",e,t)},ur.assertObjectTypeAnnotation=function(e,t){r("ObjectTypeAnnotation",e,t)},ur.assertObjectTypeCallProperty=function(e,t){r("ObjectTypeCallProperty",e,t)},ur.assertObjectTypeIndexer=function(e,t){r("ObjectTypeIndexer",e,t)},ur.assertObjectTypeInternalSlot=function(e,t){r("ObjectTypeInternalSlot",e,t)},ur.assertObjectTypeProperty=function(e,t){r("ObjectTypeProperty",e,t)},ur.assertObjectTypeSpreadProperty=function(e,t){r("ObjectTypeSpreadProperty",e,t)},ur.assertOpaqueType=function(e,t){r("OpaqueType",e,t)},ur.assertOptionalCallExpression=function(e,t){r("OptionalCallExpression",e,t)},ur.assertOptionalIndexedAccessType=function(e,t){r("OptionalIndexedAccessType",e,t)},ur.assertOptionalMemberExpression=function(e,t){r("OptionalMemberExpression",e,t)},ur.assertParenthesizedExpression=function(e,t){r("ParenthesizedExpression",e,t)},ur.assertPattern=function(e,t){r("Pattern",e,t)},ur.assertPatternLike=function(e,t){r("PatternLike",e,t)},ur.assertPipelineBareFunction=function(e,t){r("PipelineBareFunction",e,t)},ur.assertPipelinePrimaryTopicReference=function(e,t){r("PipelinePrimaryTopicReference",e,t)},ur.assertPipelineTopicExpression=function(e,t){r("PipelineTopicExpression",e,t)},ur.assertPlaceholder=function(e,t){r("Placeholder",e,t)},ur.assertPrivate=function(e,t){r("Private",e,t)},ur.assertPrivateName=function(e,t){r("PrivateName",e,t)},ur.assertProgram=function(e,t){r("Program",e,t)},ur.assertProperty=function(e,t){r("Property",e,t)},ur.assertPureish=function(e,t){r("Pureish",e,t)},ur.assertQualifiedTypeIdentifier=function(e,t){r("QualifiedTypeIdentifier",e,t)},ur.assertRecordExpression=function(e,t){r("RecordExpression",e,t)},ur.assertRegExpLiteral=function(e,t){r("RegExpLiteral",e,t)},ur.assertRegexLiteral=function(e,n){(0,t.default)("assertRegexLiteral","assertRegExpLiteral"),r("RegexLiteral",e,n)},ur.assertRestElement=function(e,t){r("RestElement",e,t)},ur.assertRestProperty=function(e,n){(0,t.default)("assertRestProperty","assertRestElement"),r("RestProperty",e,n)},ur.assertReturnStatement=function(e,t){r("ReturnStatement",e,t)},ur.assertScopable=function(e,t){r("Scopable",e,t)},ur.assertSequenceExpression=function(e,t){r("SequenceExpression",e,t)},ur.assertSpreadElement=function(e,t){r("SpreadElement",e,t)},ur.assertSpreadProperty=function(e,n){(0,t.default)("assertSpreadProperty","assertSpreadElement"),r("SpreadProperty",e,n)},ur.assertStandardized=function(e,t){r("Standardized",e,t)},ur.assertStatement=function(e,t){r("Statement",e,t)},ur.assertStaticBlock=function(e,t){r("StaticBlock",e,t)},ur.assertStringLiteral=function(e,t){r("StringLiteral",e,t)},ur.assertStringLiteralTypeAnnotation=function(e,t){r("StringLiteralTypeAnnotation",e,t)},ur.assertStringTypeAnnotation=function(e,t){r("StringTypeAnnotation",e,t)},ur.assertSuper=function(e,t){r("Super",e,t)},ur.assertSwitchCase=function(e,t){r("SwitchCase",e,t)},ur.assertSwitchStatement=function(e,t){r("SwitchStatement",e,t)},ur.assertSymbolTypeAnnotation=function(e,t){r("SymbolTypeAnnotation",e,t)},ur.assertTSAnyKeyword=function(e,t){r("TSAnyKeyword",e,t)},ur.assertTSArrayType=function(e,t){r("TSArrayType",e,t)},ur.assertTSAsExpression=function(e,t){r("TSAsExpression",e,t)},ur.assertTSBaseType=function(e,t){r("TSBaseType",e,t)},ur.assertTSBigIntKeyword=function(e,t){r("TSBigIntKeyword",e,t)},ur.assertTSBooleanKeyword=function(e,t){r("TSBooleanKeyword",e,t)},ur.assertTSCallSignatureDeclaration=function(e,t){r("TSCallSignatureDeclaration",e,t)},ur.assertTSConditionalType=function(e,t){r("TSConditionalType",e,t)},ur.assertTSConstructSignatureDeclaration=function(e,t){r("TSConstructSignatureDeclaration",e,t)},ur.assertTSConstructorType=function(e,t){r("TSConstructorType",e,t)},ur.assertTSDeclareFunction=function(e,t){r("TSDeclareFunction",e,t)},ur.assertTSDeclareMethod=function(e,t){r("TSDeclareMethod",e,t)},ur.assertTSEntityName=function(e,t){r("TSEntityName",e,t)},ur.assertTSEnumBody=function(e,t){r("TSEnumBody",e,t)},ur.assertTSEnumDeclaration=function(e,t){r("TSEnumDeclaration",e,t)},ur.assertTSEnumMember=function(e,t){r("TSEnumMember",e,t)},ur.assertTSExportAssignment=function(e,t){r("TSExportAssignment",e,t)},ur.assertTSExpressionWithTypeArguments=function(e,t){r("TSExpressionWithTypeArguments",e,t)},ur.assertTSExternalModuleReference=function(e,t){r("TSExternalModuleReference",e,t)},ur.assertTSFunctionType=function(e,t){r("TSFunctionType",e,t)},ur.assertTSImportEqualsDeclaration=function(e,t){r("TSImportEqualsDeclaration",e,t)},ur.assertTSImportType=function(e,t){r("TSImportType",e,t)},ur.assertTSIndexSignature=function(e,t){r("TSIndexSignature",e,t)},ur.assertTSIndexedAccessType=function(e,t){r("TSIndexedAccessType",e,t)},ur.assertTSInferType=function(e,t){r("TSInferType",e,t)},ur.assertTSInstantiationExpression=function(e,t){r("TSInstantiationExpression",e,t)},ur.assertTSInterfaceBody=function(e,t){r("TSInterfaceBody",e,t)},ur.assertTSInterfaceDeclaration=function(e,t){r("TSInterfaceDeclaration",e,t)},ur.assertTSIntersectionType=function(e,t){r("TSIntersectionType",e,t)},ur.assertTSIntrinsicKeyword=function(e,t){r("TSIntrinsicKeyword",e,t)},ur.assertTSLiteralType=function(e,t){r("TSLiteralType",e,t)},ur.assertTSMappedType=function(e,t){r("TSMappedType",e,t)},ur.assertTSMethodSignature=function(e,t){r("TSMethodSignature",e,t)},ur.assertTSModuleBlock=function(e,t){r("TSModuleBlock",e,t)},ur.assertTSModuleDeclaration=function(e,t){r("TSModuleDeclaration",e,t)},ur.assertTSNamedTupleMember=function(e,t){r("TSNamedTupleMember",e,t)},ur.assertTSNamespaceExportDeclaration=function(e,t){r("TSNamespaceExportDeclaration",e,t)},ur.assertTSNeverKeyword=function(e,t){r("TSNeverKeyword",e,t)},ur.assertTSNonNullExpression=function(e,t){r("TSNonNullExpression",e,t)},ur.assertTSNullKeyword=function(e,t){r("TSNullKeyword",e,t)},ur.assertTSNumberKeyword=function(e,t){r("TSNumberKeyword",e,t)},ur.assertTSObjectKeyword=function(e,t){r("TSObjectKeyword",e,t)},ur.assertTSOptionalType=function(e,t){r("TSOptionalType",e,t)},ur.assertTSParameterProperty=function(e,t){r("TSParameterProperty",e,t)},ur.assertTSParenthesizedType=function(e,t){r("TSParenthesizedType",e,t)},ur.assertTSPropertySignature=function(e,t){r("TSPropertySignature",e,t)},ur.assertTSQualifiedName=function(e,t){r("TSQualifiedName",e,t)},ur.assertTSRestType=function(e,t){r("TSRestType",e,t)},ur.assertTSSatisfiesExpression=function(e,t){r("TSSatisfiesExpression",e,t)},ur.assertTSStringKeyword=function(e,t){r("TSStringKeyword",e,t)},ur.assertTSSymbolKeyword=function(e,t){r("TSSymbolKeyword",e,t)},ur.assertTSTemplateLiteralType=function(e,t){r("TSTemplateLiteralType",e,t)},ur.assertTSThisType=function(e,t){r("TSThisType",e,t)},ur.assertTSTupleType=function(e,t){r("TSTupleType",e,t)},ur.assertTSType=function(e,t){r("TSType",e,t)},ur.assertTSTypeAliasDeclaration=function(e,t){r("TSTypeAliasDeclaration",e,t)},ur.assertTSTypeAnnotation=function(e,t){r("TSTypeAnnotation",e,t)},ur.assertTSTypeAssertion=function(e,t){r("TSTypeAssertion",e,t)},ur.assertTSTypeElement=function(e,t){r("TSTypeElement",e,t)},ur.assertTSTypeLiteral=function(e,t){r("TSTypeLiteral",e,t)},ur.assertTSTypeOperator=function(e,t){r("TSTypeOperator",e,t)},ur.assertTSTypeParameter=function(e,t){r("TSTypeParameter",e,t)},ur.assertTSTypeParameterDeclaration=function(e,t){r("TSTypeParameterDeclaration",e,t)},ur.assertTSTypeParameterInstantiation=function(e,t){r("TSTypeParameterInstantiation",e,t)},ur.assertTSTypePredicate=function(e,t){r("TSTypePredicate",e,t)},ur.assertTSTypeQuery=function(e,t){r("TSTypeQuery",e,t)},ur.assertTSTypeReference=function(e,t){r("TSTypeReference",e,t)},ur.assertTSUndefinedKeyword=function(e,t){r("TSUndefinedKeyword",e,t)},ur.assertTSUnionType=function(e,t){r("TSUnionType",e,t)},ur.assertTSUnknownKeyword=function(e,t){r("TSUnknownKeyword",e,t)},ur.assertTSVoidKeyword=function(e,t){r("TSVoidKeyword",e,t)},ur.assertTaggedTemplateExpression=function(e,t){r("TaggedTemplateExpression",e,t)},ur.assertTemplateElement=function(e,t){r("TemplateElement",e,t)},ur.assertTemplateLiteral=function(e,t){r("TemplateLiteral",e,t)},ur.assertTerminatorless=function(e,t){r("Terminatorless",e,t)},ur.assertThisExpression=function(e,t){r("ThisExpression",e,t)},ur.assertThisTypeAnnotation=function(e,t){r("ThisTypeAnnotation",e,t)},ur.assertThrowStatement=function(e,t){r("ThrowStatement",e,t)},ur.assertTopicReference=function(e,t){r("TopicReference",e,t)},ur.assertTryStatement=function(e,t){r("TryStatement",e,t)},ur.assertTupleExpression=function(e,t){r("TupleExpression",e,t)},ur.assertTupleTypeAnnotation=function(e,t){r("TupleTypeAnnotation",e,t)},ur.assertTypeAlias=function(e,t){r("TypeAlias",e,t)},ur.assertTypeAnnotation=function(e,t){r("TypeAnnotation",e,t)},ur.assertTypeCastExpression=function(e,t){r("TypeCastExpression",e,t)},ur.assertTypeParameter=function(e,t){r("TypeParameter",e,t)},ur.assertTypeParameterDeclaration=function(e,t){r("TypeParameterDeclaration",e,t)},ur.assertTypeParameterInstantiation=function(e,t){r("TypeParameterInstantiation",e,t)},ur.assertTypeScript=function(e,t){r("TypeScript",e,t)},ur.assertTypeofTypeAnnotation=function(e,t){r("TypeofTypeAnnotation",e,t)},ur.assertUnaryExpression=function(e,t){r("UnaryExpression",e,t)},ur.assertUnaryLike=function(e,t){r("UnaryLike",e,t)},ur.assertUnionTypeAnnotation=function(e,t){r("UnionTypeAnnotation",e,t)},ur.assertUpdateExpression=function(e,t){r("UpdateExpression",e,t)},ur.assertUserWhitespacable=function(e,t){r("UserWhitespacable",e,t)},ur.assertV8IntrinsicIdentifier=function(e,t){r("V8IntrinsicIdentifier",e,t)},ur.assertVariableDeclaration=function(e,t){r("VariableDeclaration",e,t)},ur.assertVariableDeclarator=function(e,t){r("VariableDeclarator",e,t)},ur.assertVariance=function(e,t){r("Variance",e,t)},ur.assertVoidPattern=function(e,t){r("VoidPattern",e,t)},ur.assertVoidTypeAnnotation=function(e,t){r("VoidTypeAnnotation",e,t)},ur.assertWhile=function(e,t){r("While",e,t)},ur.assertWhileStatement=function(e,t){r("WhileStatement",e,t)},ur.assertWithStatement=function(e,t){r("WithStatement",e,t)},ur.assertYieldExpression=function(e,t){r("YieldExpression",e,t)};var e=pt(),t=He();function r(t,r,n){if(!(0,e.default)(t,r,n))throw new Error(`Expected type "${t}" with option ${JSON.stringify(n)}, but instead got "${r.type}".`)}return ur}();Object.keys(a).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===a[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return a[r]}}))});var o=function(){if(hr)return dr;hr=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.default=void 0;var e=nr();return dr.default=function(t){switch(t){case"string":return(0,e.stringTypeAnnotation)();case"number":return(0,e.numberTypeAnnotation)();case"undefined":return(0,e.voidTypeAnnotation)();case"boolean":return(0,e.booleanTypeAnnotation)();case"function":return(0,e.genericTypeAnnotation)((0,e.identifier)("Function"));case"object":return(0,e.genericTypeAnnotation)((0,e.identifier)("Object"));case"symbol":return(0,e.genericTypeAnnotation)((0,e.identifier)("Symbol"));case"bigint":return(0,e.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+t)},dr}(),l=function(){if(mr)return yr;mr=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.default=function(r){const n=(0,t.default)(r);return 1===n.length?n[0]:(0,e.unionTypeAnnotation)(n)};var e=nr(),t=Tr();return yr}(),c=Er(),p=Cr();Object.keys(p).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===p[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return p[r]}}))});var u=nr();Object.keys(u).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===u[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return u[r]}}))});var h=Ir(),d=function(){if(kr)return Or;kr=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.default=function(t){return(0,e.default)(t,!1)};var e=Ir();return Or}(),f=function(){if(Nr)return Lr;Nr=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.default=function(t){return(0,e.default)(t)};var e=Ir();return Lr}(),m=function(){if(Dr)return Mr;Dr=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.default=function(t){return(0,e.default)(t,!0,!0)};var e=Ir();return Mr}(),y=function(){if(Br)return Fr;Br=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.default=function(t){return(0,e.default)(t,!1,!0)};var e=Ir();return Fr}(),g=function(){if(Rr)return Vr;Rr=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.default=function(t,r,n,i){return(0,e.default)(t,r,[{type:i?"CommentLine":"CommentBlock",value:n}])};var e=Kr();return Vr}(),T=Kr(),x=Jr(),b=Gr(),S=nn(),v=rn(),E=function(){if(sn)return an;sn=1,Object.defineProperty(an,"__esModule",{value:!0}),an.default=function(t){return e.COMMENT_KEYS.forEach(e=>{t[e]=null}),t};var e=At();return an}(),P=function(){if(on)return ln;on=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.WHILE_TYPES=ln.USERWHITESPACABLE_TYPES=ln.UNARYLIKE_TYPES=ln.TYPESCRIPT_TYPES=ln.TSTYPE_TYPES=ln.TSTYPEELEMENT_TYPES=ln.TSENTITYNAME_TYPES=ln.TSBASETYPE_TYPES=ln.TERMINATORLESS_TYPES=ln.STATEMENT_TYPES=ln.STANDARDIZED_TYPES=ln.SCOPABLE_TYPES=ln.PUREISH_TYPES=ln.PROPERTY_TYPES=ln.PRIVATE_TYPES=ln.PATTERN_TYPES=ln.PATTERNLIKE_TYPES=ln.OBJECTMEMBER_TYPES=ln.MODULESPECIFIER_TYPES=ln.MODULEDECLARATION_TYPES=ln.MISCELLANEOUS_TYPES=ln.METHOD_TYPES=ln.LVAL_TYPES=ln.LOOP_TYPES=ln.LITERAL_TYPES=ln.JSX_TYPES=ln.IMPORTOREXPORTDECLARATION_TYPES=ln.IMMUTABLE_TYPES=ln.FUNCTION_TYPES=ln.FUNCTIONPARENT_TYPES=ln.FUNCTIONPARAMETER_TYPES=ln.FOR_TYPES=ln.FORXSTATEMENT_TYPES=ln.FLOW_TYPES=ln.FLOWTYPE_TYPES=ln.FLOWPREDICATE_TYPES=ln.FLOWDECLARATION_TYPES=ln.FLOWBASEANNOTATION_TYPES=ln.EXPRESSION_TYPES=ln.EXPRESSIONWRAPPER_TYPES=ln.EXPORTDECLARATION_TYPES=ln.ENUMMEMBER_TYPES=ln.ENUMBODY_TYPES=ln.DECLARATION_TYPES=ln.CONDITIONAL_TYPES=ln.COMPLETIONSTATEMENT_TYPES=ln.CLASS_TYPES=ln.BLOCK_TYPES=ln.BLOCKPARENT_TYPES=ln.BINARY_TYPES=ln.ACCESSOR_TYPES=void 0;var e=Xt();ln.STANDARDIZED_TYPES=e.FLIPPED_ALIAS_KEYS.Standardized,ln.EXPRESSION_TYPES=e.FLIPPED_ALIAS_KEYS.Expression,ln.BINARY_TYPES=e.FLIPPED_ALIAS_KEYS.Binary,ln.SCOPABLE_TYPES=e.FLIPPED_ALIAS_KEYS.Scopable,ln.BLOCKPARENT_TYPES=e.FLIPPED_ALIAS_KEYS.BlockParent,ln.BLOCK_TYPES=e.FLIPPED_ALIAS_KEYS.Block,ln.STATEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.Statement,ln.TERMINATORLESS_TYPES=e.FLIPPED_ALIAS_KEYS.Terminatorless,ln.COMPLETIONSTATEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.CompletionStatement,ln.CONDITIONAL_TYPES=e.FLIPPED_ALIAS_KEYS.Conditional,ln.LOOP_TYPES=e.FLIPPED_ALIAS_KEYS.Loop,ln.WHILE_TYPES=e.FLIPPED_ALIAS_KEYS.While,ln.EXPRESSIONWRAPPER_TYPES=e.FLIPPED_ALIAS_KEYS.ExpressionWrapper,ln.FOR_TYPES=e.FLIPPED_ALIAS_KEYS.For,ln.FORXSTATEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.ForXStatement,ln.FUNCTION_TYPES=e.FLIPPED_ALIAS_KEYS.Function,ln.FUNCTIONPARENT_TYPES=e.FLIPPED_ALIAS_KEYS.FunctionParent,ln.PUREISH_TYPES=e.FLIPPED_ALIAS_KEYS.Pureish,ln.DECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.Declaration,ln.FUNCTIONPARAMETER_TYPES=e.FLIPPED_ALIAS_KEYS.FunctionParameter,ln.PATTERNLIKE_TYPES=e.FLIPPED_ALIAS_KEYS.PatternLike,ln.LVAL_TYPES=e.FLIPPED_ALIAS_KEYS.LVal,ln.TSENTITYNAME_TYPES=e.FLIPPED_ALIAS_KEYS.TSEntityName,ln.LITERAL_TYPES=e.FLIPPED_ALIAS_KEYS.Literal,ln.IMMUTABLE_TYPES=e.FLIPPED_ALIAS_KEYS.Immutable,ln.USERWHITESPACABLE_TYPES=e.FLIPPED_ALIAS_KEYS.UserWhitespacable,ln.METHOD_TYPES=e.FLIPPED_ALIAS_KEYS.Method,ln.OBJECTMEMBER_TYPES=e.FLIPPED_ALIAS_KEYS.ObjectMember,ln.PROPERTY_TYPES=e.FLIPPED_ALIAS_KEYS.Property,ln.UNARYLIKE_TYPES=e.FLIPPED_ALIAS_KEYS.UnaryLike,ln.PATTERN_TYPES=e.FLIPPED_ALIAS_KEYS.Pattern,ln.CLASS_TYPES=e.FLIPPED_ALIAS_KEYS.Class;const t=ln.IMPORTOREXPORTDECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;return ln.EXPORTDECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.ExportDeclaration,ln.MODULESPECIFIER_TYPES=e.FLIPPED_ALIAS_KEYS.ModuleSpecifier,ln.ACCESSOR_TYPES=e.FLIPPED_ALIAS_KEYS.Accessor,ln.PRIVATE_TYPES=e.FLIPPED_ALIAS_KEYS.Private,ln.FLOW_TYPES=e.FLIPPED_ALIAS_KEYS.Flow,ln.FLOWTYPE_TYPES=e.FLIPPED_ALIAS_KEYS.FlowType,ln.FLOWBASEANNOTATION_TYPES=e.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,ln.FLOWDECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.FlowDeclaration,ln.FLOWPREDICATE_TYPES=e.FLIPPED_ALIAS_KEYS.FlowPredicate,ln.ENUMBODY_TYPES=e.FLIPPED_ALIAS_KEYS.EnumBody,ln.ENUMMEMBER_TYPES=e.FLIPPED_ALIAS_KEYS.EnumMember,ln.JSX_TYPES=e.FLIPPED_ALIAS_KEYS.JSX,ln.MISCELLANEOUS_TYPES=e.FLIPPED_ALIAS_KEYS.Miscellaneous,ln.TYPESCRIPT_TYPES=e.FLIPPED_ALIAS_KEYS.TypeScript,ln.TSTYPEELEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.TSTypeElement,ln.TSTYPE_TYPES=e.FLIPPED_ALIAS_KEYS.TSType,ln.TSBASETYPE_TYPES=e.FLIPPED_ALIAS_KEYS.TSBaseType,ln.MODULEDECLARATION_TYPES=t,ln}();Object.keys(P).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===P[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return P[r]}}))});var A=At();Object.keys(A).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===A[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[r]}}))});var C=function(){if(pn)return un;pn=1,Object.defineProperty(un,"__esModule",{value:!0}),un.default=function(t,r="body"){const n=(0,e.default)(t[r],t);return t[r]=n,n};var e=dn();return un}(),w=function(){if(mn)return yn;mn=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.default=function(t){return"eval"!==(t=(0,e.default)(t))&&"arguments"!==t||(t="_"+t),t};var e=Tn();return yn}(),_=dn(),I=function(){if(xn)return bn;xn=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=function(r,n=r.key||r.property){return!r.computed&&(0,e.isIdentifier)(n)&&(n=(0,t.stringLiteral)(n.name)),n};var e=We(),t=nr();return bn}(),k=function(){if(Sn)return vn;Sn=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.default=void 0;var e=We();return vn.default=function(t){if((0,e.isExpressionStatement)(t)&&(t=t.expression),(0,e.isExpression)(t))return t;if((0,e.isClass)(t)?(t.type="ClassExpression",t.abstract=!1):(0,e.isFunction)(t)&&(t.type="FunctionExpression"),!(0,e.isExpression)(t))throw new Error(`cannot turn ${t.type} to an expression`);return t},vn}(),O=Tn(),N=function(){if(kn)return Pn;kn=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.default=n;var e=We(),t=Ir(),r=Ln();function n(i,s=i.key){let a;return"method"===i.kind?n.increment()+"":(a=(0,e.isIdentifier)(s)?s.name:(0,e.isStringLiteral)(s)?JSON.stringify(s.value):JSON.stringify((0,r.default)((0,t.default)(s))),i.computed&&(a=`[${a}]`),i.static&&(a=`static:${a}`),a)}return n.uid=0,n.increment=function(){return n.uid>=Number.MAX_SAFE_INTEGER?n.uid=0:n.uid++},Pn}(),L=function(){if(Dn)return Mn;Dn=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.default=void 0;var e=We(),t=nr();return Mn.default=function(r,n){if((0,e.isStatement)(r))return r;let i,s=!1;if((0,e.isClass)(r))s=!0,i="ClassDeclaration";else if((0,e.isFunction)(r))s=!0,i="FunctionDeclaration";else if((0,e.isAssignmentExpression)(r))return(0,t.expressionStatement)(r);if(s&&!r.id&&(i=!1),!i){if(n)return!1;throw new Error(`cannot turn ${r.type} to a statement`)}return r.type=i,r},Mn}(),D=jn(),M=Xt();Object.keys(M).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===M[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return M[r]}}))});var B=function(){if(Rn)return Vn;Rn=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.default=function(t,r,n=!1){return t.object=(0,e.memberExpression)(t.object,t.property,t.computed),t.property=r,t.computed=!!n,t};var e=nr();return Vn}(),F=function(){if(Un)return Kn;Un=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.default=function(r,n){if(!r||!n)return r;for(const t of e.INHERIT_KEYS.optional)null==r[t]&&(r[t]=n[t]);for(const e of Object.keys(n))"_"===e[0]&&"__clone"!==e&&(r[e]=n[e]);for(const t of e.INHERIT_KEYS.force)r[t]=n[t];return(0,t.default)(r,n),r};var e=At(),t=nn();return Kn}(),j=function(){if(Hn)return Wn;Hn=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.default=function(r,n){if((0,t.isSuper)(r.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return r.object=(0,e.memberExpression)(n,r.object),r};var e=nr(),t=Ni();return Wn}(),R=Nn(),V=Ln(),U=Tr(),K=(qn||(qn=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.default=function(e){const t=[].concat(e),r=Object.create(null);for(;t.length;){const e=t.pop();if(e)switch(e.type){case"ArrayPattern":t.push(...e.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(e.left);break;case"ObjectPattern":t.push(...e.properties);break;case"ObjectProperty":t.push(e.value);break;case"RestElement":case"UpdateExpression":t.push(e.argument);break;case"UnaryExpression":"delete"===e.operator&&t.push(e.argument);break;case"Identifier":r[e.name]=e}}return r}),$n),H=Xn(),W=function(){if(zn)return Gn;zn=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.default=void 0;var e=Xn();return Gn.default=function(t,r){return(0,e.default)(t,r,!0)},Gn}(),q=ei(),$=ni();Object.keys($).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===$[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return $[r]}}))});var Y=wn(),J=Be(),X=pt(),z=function(){if(ii)return si;ii=1,Object.defineProperty(si,"__esModule",{value:!0}),si.default=function(t,r,n){if(n&&"Identifier"===t.type&&"ObjectProperty"===r.type&&"ObjectExpression"===n.type)return!1;const i=e.default.keys[r.type];if(i)for(let e=0;e<i.length;e++){const n=r[i[e]];if(Array.isArray(n)){if(n.includes(t))return!0}else if(n===t)return!0}return!1};var e=Xn();return si}(),G=function(){if(oi)return li;oi=1,Object.defineProperty(li,"__esModule",{value:!0}),li.default=function(r){return(0,e.isFunctionDeclaration)(r)||(0,e.isClassDeclaration)(r)||(0,t.default)(r)};var e=We(),t=pi();return li}(),Q=function(){if(ui)return hi;ui=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=function(r){return!!(0,e.default)(r.type,"Immutable")||!!(0,t.isIdentifier)(r)&&"undefined"===r.name};var e=st(),t=We();return hi}(),Z=pi(),ee=cr(),te=function(){if(di)return fi;di=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.default=function t(r,n){if("object"!=typeof r||"object"!=typeof n||null==r||null==n)return r===n;if(r.type!==n.type)return!1;const i=Object.keys(e.NODE_FIELDS[r.type]||r.type),s=e.VISITOR_KEYS[r.type];for(const e of i){const i=r[e],a=n[e];if(typeof i!=typeof a)return!1;if(null!=i||null!=a){if(null==i||null==a)return!1;if(Array.isArray(i)){if(!Array.isArray(a))return!1;if(i.length!==a.length)return!1;for(let e=0;e<i.length;e++)if(!t(i[e],a[e]))return!1}else if("object"!=typeof i||null!=s&&s.includes(e)){if(!t(i,a))return!1}else for(const e of Object.keys(i))if(i[e]!==a[e])return!1}}return!0};var e=Xt();return fi}(),re=ct(),ne=(mi||(mi=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.default=function(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e&&!!t.computed;case"ObjectProperty":return t.key===e?!!t.computed:!r||"ObjectPattern"!==r.type;case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":return t.key!==e||!!t.computed;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":return(null==r||!r.source)&&t.local===e;case"TSEnumMember":return t.id!==e}return!0}),yi),ie=function(){if(gi)return Ti;gi=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=function(t,r){return(!(0,e.isBlockStatement)(t)||!(0,e.isFunction)(r)&&!(0,e.isCatchClause)(r))&&(!(!(0,e.isPattern)(t)||!(0,e.isFunction)(r)&&!(0,e.isCatchClause)(r))||(0,e.isScopable)(t))};var e=We();return Ti}(),se=function(){if(xi)return bi;xi=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.default=function(t){return(0,e.isImportDefaultSpecifier)(t)||(0,e.isIdentifier)(t.imported||t.exported,{name:"default"})};var e=We();return bi}(),ae=st(),oe=function(){if(Si)return vi;Si=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.default=function(r){return(0,e.default)(r)&&!t.has(r)};var e=bt();const t=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);return vi}(),le=bt(),ce=function(){if(Ei)return Pi;Ei=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=function(r){return(0,e.isVariableDeclaration)(r,{kind:"var"})&&!r[t]};var e=We(),t=Symbol.for("var used to be block scoped");return Pi}(),pe=qe(),ue=zt(),he=$e(),de=We();Object.keys(de).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===de[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return de[r]}}))});var fe=He(),me=Oi();e.react={isReactComponent:r.default,isCompatTag:n.default,buildChildren:i.default},e.toSequenceExpression=me.default,process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")}(ke)),ke}function Li(){if(_i)return Ie;_i=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.nodes=void 0;var e=Ni();const{FLIPPED_ALIAS_KEYS:t,isArrayExpression:r,isAssignmentExpression:n,isBinary:i,isBlockStatement:s,isCallExpression:a,isFunction:o,isIdentifier:l,isLiteral:c,isMemberExpression:p,isObjectExpression:u,isOptionalCallExpression:h,isOptionalMemberExpression:d,isStringLiteral:f}=e;function m(e,t){return e?(p(e)||d(e)?(m(e.object,t),e.computed&&m(e.property,t)):i(e)||n(e)?(m(e.left,t),m(e.right,t)):a(e)||h(e)?(t.hasCall=!0,m(e.callee,t)):o(e)?t.hasFunction=!0:l(e)&&(t.hasHelper=t.hasHelper||e.callee&&g(e.callee)),t):t}function y(e){return m(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function g(e){return!!e&&(p(e)?g(e.object)||g(e.property):l(e)?"require"===e.name||95===e.name.charCodeAt(0):a(e)?g(e.callee):!(!i(e)&&!n(e))&&(l(e.left)&&g(e.left)||g(e.right)))}function T(e){return c(e)||u(e)||r(e)||l(e)||p(e)}const x=Ie.nodes={AssignmentExpression(e){const t=y(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase:(e,t)=>(e.consequent.length||t.cases[0]===e?1:0)|(e.consequent.length||t.cases[t.cases.length-1]!==e?0:2),LogicalExpression(e){if(o(e.left)||o(e.right))return 2},Literal(e){if(f(e)&&"use strict"===e.value)return 2},CallExpression(e){if(o(e.callee)||g(e))return 3},OptionalCallExpression(e){if(o(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const r=e.declarations[t];let n=g(r.id)&&!T(r.init);if(!n&&r.init){const e=y(r.init);n=g(r.init)&&e.hasCall||e.hasFunction}if(n)return 3}},IfStatement(e){if(s(e.consequent))return 3}};return x.ObjectProperty=x.ObjectTypeProperty=x.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1},x.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&(null==(r=t.properties)||!r.length))return 1},x.ObjectTypeIndexer=function(e,t){var r,n;if(!(t.indexers[0]!==e||null!=(r=t.properties)&&r.length||null!=(n=t.callProperties)&&n.length))return 1},x.ObjectTypeInternalSlot=function(e,t){var r,n,i;if(!(t.internalSlots[0]!==e||null!=(r=t.properties)&&r.length||null!=(n=t.callProperties)&&n.length||null!=(i=t.indexers)&&i.length))return 1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,r]){[e].concat(t[e]||[]).forEach(function(e){const t=r?3:0;x[e]=()=>t})}),Ie}var Di,Mi,Bi={};function Fi(){if(Mi)return _e;Mi=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.TokenContext=void 0,_e.isLastChild=function(e,t){const r=i[e.type];for(let n=r.length-1;n>=0;n--){const i=e[r[n]];if(i===t)return!0;if(Array.isArray(i)){let e=i.length-1;for(;e>=0&&null===i[e];)e--;return e>=0&&i[e]===t}if(i)return!1}return!1},_e.needsParens=function(e,t,r,n){var i;if(!t)return!1;if(c(t)&&t.callee===e&&f(e))return!0;if(a(t))return!(y(e)||s(e)&&y(e.callee)||p(e));return null==(i=h.get(e.type))?void 0:i(e,t,r,n)},_e.needsWhitespace=m,_e.needsWhitespaceAfter=function(e,t){return m(e,t,2)},_e.needsWhitespaceBefore=function(e,t){return m(e,t,1)};var e=Li(),t=function(){if(Di)return Bi;Di=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.AssignmentExpression=function(e,t,r){return!(!g(r)||!l(e.left))||b(e,t)},Bi.Binary=T,Bi.BinaryExpression=function(e,r,n){return"in"===e.operator&&Boolean(n&t.TokenContext.forInOrInitHeadAccumulate)},Bi.ClassExpression=function(e,r,n){return Boolean(n&(t.TokenContext.expressionStatement|t.TokenContext.exportDefault))},Bi.ArrowFunctionExpression=Bi.ConditionalExpression=b,Bi.DoExpression=function(e,r,n){return!e.async&&Boolean(n&t.TokenContext.expressionStatement)},Bi.FunctionExpression=function(e,r,n){return Boolean(n&(t.TokenContext.expressionStatement|t.TokenContext.exportDefault))},Bi.FunctionTypeAnnotation=function(e,r,n){const i=r.type;return"UnionTypeAnnotation"===i||"IntersectionTypeAnnotation"===i||"ArrayTypeAnnotation"===i||Boolean(n&t.TokenContext.arrowFlowReturnType)},Bi.Identifier=function(e,r,n,i){var a;const l=r.type;if(null!=(a=e.extra)&&a.parenthesized&&"AssignmentExpression"===l&&r.left===e){const e=r.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==r.right.id)return!0}return(!i||i(e)===e.name)&&("let"===e.name?!!((o(r,{object:e,computed:!0})||c(r,{object:e,computed:!0,optional:!1}))&&n&(t.TokenContext.expressionStatement|t.TokenContext.forInitHead|t.TokenContext.forInHead))||Boolean(n&t.TokenContext.forOfHead):"async"===e.name&&s(r,{left:e,await:!1}))},Bi.LogicalExpression=function(e,t){const r=t.type;if(f(r))return!0;if("LogicalExpression"!==r)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}},Bi.NullableTypeAnnotation=function(e,t){return r(t)},Bi.ObjectExpression=function(e,t,r){return g(r)},Bi.OptionalIndexedAccessType=function(e,t){return a(t)&&t.objectType===e},Bi.OptionalCallExpression=Bi.OptionalMemberExpression=function(e,t){return i(t)&&t.callee===e||o(t)&&t.object===e},Bi.SequenceExpression=function(e,t){const r=t.type;return!("SequenceExpression"===r||"ParenthesizedExpression"===r||"MemberExpression"===r&&t.property===e||"OptionalMemberExpression"===r&&t.property===e||"TemplateLiteral"===r)&&("ClassDeclaration"===r||("ForOfStatement"===r?t.right===e:"ExportDefaultDeclaration"===r||!u(t)))},Bi.TSSatisfiesExpression=Bi.TSAsExpression=function(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||("BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||T(e,t))},Bi.TSConditionalType=function(e,t){const r=t.type;return"TSArrayType"===r||"TSIndexedAccessType"===r&&t.objectType===e||"TSOptionalType"===r||"TSTypeOperator"===r||"TSTypeParameter"===r||(("TSIntersectionType"===r||"TSUnionType"===r)&&t.types[0]===e||"TSConditionalType"===r&&(t.checkType===e||t.extendsType===e))},Bi.TSConstructorType=Bi.TSFunctionType=function(e,t){const r=t.type;return"TSIntersectionType"===r||"TSUnionType"===r||"TSTypeOperator"===r||"TSOptionalType"===r||"TSArrayType"===r||"TSIndexedAccessType"===r&&t.objectType===e||"TSConditionalType"===r&&(t.checkType===e||t.extendsType===e)},Bi.TSInferType=function(e,t){const r=t.type;return"TSArrayType"===r||"TSIndexedAccessType"===r&&t.objectType===e||"TSOptionalType"===r||!(!e.typeParameter.constraint||"TSIntersectionType"!==r&&"TSUnionType"!==r||t.types[0]!==e)},Bi.TSInstantiationExpression=function(e,t){const r=t.type;return("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r||"TSInstantiationExpression"===r)&&!!t.typeParameters},Bi.TSIntersectionType=function(e,t){const r=t.type;return"TSTypeOperator"===r||"TSArrayType"===r||"TSIndexedAccessType"===r&&t.objectType===e||"TSOptionalType"===r},Bi.UnaryLike=Bi.TSTypeAssertion=x,Bi.TSTypeOperator=function(e,t){const r=t.type;return"TSArrayType"===r||"TSIndexedAccessType"===r&&t.objectType===e||"TSOptionalType"===r},Bi.TSUnionType=function(e,t){const r=t.type;return"TSIntersectionType"===r||"TSTypeOperator"===r||"TSArrayType"===r||"TSIndexedAccessType"===r&&t.objectType===e||"TSOptionalType"===r},Bi.IntersectionTypeAnnotation=Bi.UnionTypeAnnotation=function(e,t){const r=t.type;return"ArrayTypeAnnotation"===r||"NullableTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"UnionTypeAnnotation"===r},Bi.UpdateExpression=function(e,t){return y(e,t)||m(e,t)},Bi.AwaitExpression=Bi.YieldExpression=function(e,t){const r=t.type;return"BinaryExpression"===r||"LogicalExpression"===r||"UnaryExpression"===r||"SpreadElement"===r||y(e,t)||"AwaitExpression"===r&&p(e)||"ConditionalExpression"===r&&e===t.test||m(e,t)||f(r)};var e=Ni(),t=Fi();const{isArrayTypeAnnotation:r,isBinaryExpression:n,isCallExpression:i,isForOfStatement:s,isIndexedAccessType:a,isMemberExpression:o,isObjectPattern:l,isOptionalMemberExpression:c,isYieldExpression:p,isStatement:u}=e,h=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function d(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?h.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?h.get("in"):void 0}function f(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}const m=(e,t)=>{const r=t.type;return("ClassDeclaration"===r||"ClassExpression"===r)&&t.superClass===e},y=(e,t)=>{const r=t.type;return("MemberExpression"===r||"OptionalMemberExpression"===r)&&t.object===e||("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r)&&t.callee===e||"TaggedTemplateExpression"===r&&t.tag===e||"TSNonNullExpression"===r};function g(e){return Boolean(e&(t.TokenContext.expressionStatement|t.TokenContext.arrowBody))}function T(e,t){const r=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===r&&"**"===t.operator)return t.left===e;if(m(e,t))return!0;if(y(e,t)||"UnaryExpression"===r||"SpreadElement"===r||"AwaitExpression"===r)return!0;const n=d(t,r);if(null!=n){const i=d(e,e.type);if(n===i&&"BinaryExpression"===r&&t.right===e||n>i)return!0}}function x(e,t){return y(e,t)||n(t)&&"**"===t.operator&&t.left===e||m(e,t)}function b(e,t){const r=t.type;return!!("UnaryExpression"===r||"SpreadElement"===r||"BinaryExpression"===r||"LogicalExpression"===r||"ConditionalExpression"===r&&t.test===e||"AwaitExpression"===r||f(r))||x(e,t)}return Bi}(),r=Ni();const{FLIPPED_ALIAS_KEYS:n,VISITOR_KEYS:i,isCallExpression:s,isDecorator:a,isExpressionStatement:o,isMemberExpression:l,isNewExpression:c,isParenthesizedExpression:p}=r;function u(e){const t=new Map;function r(e,r){const n=t.get(e);t.set(e,n?function(e,t,i,s){var a;return null!=(a=n(e,t,i,s))?a:r(e,t,i,s)}:r)}for(const t of Object.keys(e)){const i=n[t];if(i)for(const n of i)r(n,e[t]);else r(t,e[t])}return t}_e.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};const h=u(t),d=u(e.nodes);function f(e){return!!s(e)||l(e)&&f(e.object)}function m(e,t,r){var n;if(!e)return!1;o(e)&&(e=e.expression);const i=null==(n=d.get(e.type))?void 0:n(e,t);return"number"==typeof i&&0!==(i&r)}function y(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&y(e.object);default:return!1}}return _e}var ji,Ri={};function Vi(){if(ji)return Ri;ji=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.TokenMap=void 0;var e=Ni();const{traverseFast:t,VISITOR_KEYS:r}=e;return Ri.TokenMap=class{constructor(e,r,n){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=r,this._source=n,t(e,e=>{const t=this._getTokensIndexesOfNode(e);t.length>0&&this._nodesToTokenIndexes.set(e,t)}),this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){const r=this._nodesToTokenIndexes.get(e);if(r)for(let e=0;e<r.length;e++){const n=r[e],i=this._tokens[n];if(t(i,n))return i}return null}findLastIndex(e,t){const r=this._nodesToTokenIndexes.get(e);if(r)for(let e=r.length-1;e>=0;e--){const n=r[e];if(t(this._tokens[n],n))return n}return-1}findMatching(e,t,r=0){const n=this._nodesToTokenIndexes.get(e);if(n){let i=0;const s=r;if(s>1){const n=this._nodesOccurrencesCountCache.get(e);n&&n.test===t&&n.count<s&&(i=n.i+1,r-=n.count+1)}for(;i<n.length;i++){const a=this._tokens[n[i]];if(this.matchesOriginal(a,t)){if(0===r)return s>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:s,i:i}),a;r--}}}return null}matchesOriginal(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))}startMatches(e,t){const r=this._nodesToTokenIndexes.get(e);if(!r)return!1;const n=this._tokens[r[0]];return n.start===e.start&&this.matchesOriginal(n,t)}endMatches(e,t){const r=this._nodesToTokenIndexes.get(e);if(!r)return!1;const n=this._tokens[r[r.length-1]];return n.end===e.end&&this.matchesOriginal(n,t)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];const{first:t,last:n}=this._findTokensOfNode(e,0,this._tokens.length-1);let i=t;const s=function*(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++)yield e.expressions[t-1],yield e.quasis[t];return}const t=r[e.type];for(const r of t){const t=e[r];t&&(Array.isArray(t)?yield*t:yield t)}}(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||s.next();const a=[];for(const e of s){if(null==e)continue;if(null==e.start||null==e.end)continue;const t=this._findTokensOfNode(e,i,n),r=t.first;for(let e=i;e<r;e++)a.push(e);i=t.last+1}for(let e=i;e<=n;e++)a.push(e);return a}_findTokensOfNode(e,t,r){const n=this._tokensCache.get(e);if(n)return n;const i=this._findFirstTokenOfNode(e.start,t,r),s=this._findLastTokenOfNode(e.end,i,r);return this._tokensCache.set(e,{first:i,last:s}),{first:i,last:s}}_findFirstTokenOfNode(e,t,r){for(;t<=r;){const n=r+t>>1;if(e<this._tokens[n].start)r=n-1;else{if(!(e>this._tokens[n].start))return n;t=n+1}}return t}_findLastTokenOfNode(e,t,r){for(;t<=r;){const n=r+t>>1;if(e<this._tokens[n].end)r=n-1;else{if(!(e>this._tokens[n].end))return n;t=n+1}}return r}},Ri}var Ui,Ki={},Hi={};var Wi,qi={};var $i,Yi={};function Ji(){if($i)return Yi;$i=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.BreakStatement=function(e){this.word("break"),o(this,e.label)},Yi.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space());this.print(e.body)},Yi.ContinueStatement=function(e){this.word("continue"),o(this,e.label)},Yi.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},Yi.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},Yi.ForOfStatement=Yi.ForInStatement=void 0,Yi.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40);{const t=this.enterForStatementInit();this.print(e.init),t()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test));this.token(";",!1,1),e.update&&(this.space(),this.print(e.update));this.tokenChar(41),this.printBlock(e)},Yi.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();const t=e.alternate&&n(s(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent());this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125));e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},Yi.LabeledStatement=function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},Yi.ReturnStatement=function(e){this.word("return"),o(this,e.argument)},Yi.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58));e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},Yi.SwitchStatement=function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0,void 0,function(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}),this.rightBrace(e)},Yi.ThrowStatement=function(e){this.word("throw"),o(this,e.argument)},Yi.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler);e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},Yi.VariableDeclaration=function(e,n){e.declare&&(this.word("declare"),this.space());const{kind:i}=e;"await using"===i?(this.word("await"),this.space(),this.word("using",!0)):this.word(i,"using"===i);this.space();let s=!1;if(!t(n))for(const t of e.declarations)t.init&&(s=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,s?function(e){this.token(",",!1,e),this.newline()}:void 0),t(n))if(r(n)){if(n.init===e)return}else if(n.left===e)return;this.semicolon()},Yi.VariableDeclarator=function(e){this.print(e.id),e.definite&&this.tokenChar(33);this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},Yi.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)},Yi.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)};var e=Ni();const{isFor:t,isForStatement:r,isIfStatement:n,isStatement:i}=e;function s(e){const{body:t}=e;return!1===i(t)?e:s(t)}function a(e){this.word("for"),this.space();const t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{const r=this.enterForXStatementInit(t);this.print(e.left),null==r||r()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function o(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}return Yi.ForInStatement=a,Yi.ForOfStatement=a,Yi}var Xi,zi={};function Gi(){if(Xi)return zi;Xi=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators);const r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r);this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key));e.optional&&this.tokenChar(63);e.definite&&this.tokenChar(33);this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value));this.semicolon()},zi.ClassBody=function(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();const t=function(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;const r=e.tokenMap.getIndexes(t);if(!r)return null;let n=1,i=0,s=0;const a=()=>{for(;s<t.body.length&&null==t.body[s].start;)s++};return a(),o=>{s<=o&&(s=o+1,a());const l=s===t.body.length?t.end:t.body[s].start;let c;for(;n<r.length&&e.tokenMap.matchesOriginal(c=e._tokens[r[n]],";")&&c.start<l;)e.token(";",void 0,i++),n++}}(this,e);null==t||t(-1);const r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),r(),this.endsWith(10)||this.newline(),this.rightBrace(e)}},zi.ClassExpression=zi.ClassDeclaration=function(e,n){(t(n)||r(n))&&this._shouldPrintDecoratorsBeforeExport(n)||this.printJoin(e.decorators);e.declare&&(this.word("declare"),this.space());e.abstract&&(this.word("abstract"),this.space());this.word("class"),e.id&&(this.space(),this.print(e.id));this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters));e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements));this.space(),this.print(e.body)},zi.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},zi.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},zi.ClassPrivateProperty=function(e){this.printJoin(e.decorators),this.tsPrintClassMemberModifiers(e),this.print(e.key),e.optional&&this.tokenChar(63);e.definite&&this.tokenChar(33);this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value));this.semicolon()},zi.ClassProperty=function(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;const r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r)}this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key));e.optional&&this.tokenChar(63);e.definite&&this.tokenChar(33);this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value));this.semicolon()},zi.StaticBlock=function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},zi._classMethodHead=function(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;const r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r)}this.tsPrintClassMemberModifiers(e),this._methodHead(e)};var e=Ni();const{isExportDefaultDeclaration:t,isExportNamedDeclaration:r}=e;return zi}var Qi,Zi={};var es,ts={};function rs(){if(es)return ts;es=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.ExportAllDeclaration=function(e){var t,r;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space());this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source);this.semicolon()},ts.ExportDefaultDeclaration=function(e){c(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=t.TokenContext.exportDefault;const r=e.declaration;this.print(r),o(r)||this.semicolon()},ts.ExportDefaultSpecifier=function(e){this.print(e.exported)},ts.ExportNamedDeclaration=function(e){if(c(this,e),this.word("export"),this.space(),e.declaration){const t=e.declaration;this.print(t),o(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const s=e.specifiers.slice(0);let a=!1;for(;;){const e=s[0];if(!n(e)&&!i(e))break;a=!0,this.print(s.shift()),s.length&&(this.tokenChar(44),this.space())}let o=!1;var t,r;if((s.length||!s.length&&!a)&&(o=!0,this.tokenChar(123),s.length&&(this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source)this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,o)):this.print(e.source);this.semicolon()}},ts.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},ts.ExportSpecifier=function(e){"type"===e.exportKind&&(this.word("type"),this.space());this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},ts.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},ts.ImportDeclaration=function(e){var t,r;this.word("import"),this.space();const n="type"===e.importKind||"typeof"===e.importKind;n?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());const i=e.specifiers.slice(0),o=!!i.length;for(;o;){const e=i[0];if(!s(e)&&!a(e))break;this.print(i.shift()),i.length&&(this.tokenChar(44),this.space())}let l=!1;i.length?(l=!0,this.tokenChar(123),this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):n&&!o&&(l=!0,this.tokenChar(123),this.tokenChar(125));(o||n)&&(this.space(),this.word("from"),this.space());null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,l)):this.print(e.source);this.semicolon()},ts.ImportDefaultSpecifier=function(e){this.print(e.local)},ts.ImportExpression=function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase));this.tokenChar(40);const t=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options));t&&this.tokenChar(44);this.rightParens(e)},ts.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},ts.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space());this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},ts._printAttributes=function(e,t){var r;const{importAttributesKeyword:n}=this.format,{attributes:i,assertions:s}=e;i&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!l&&(l=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const a="assert"===n||!n&&s;if(this.word(a?"assert":"with"),this.space(),!a&&("with-legacy"===n||!n&&null!=(r=e.extra)&&r.deprecatedWithLegacySyntax))return void this.printList(i||s);const o=t?1:0;this.token("{",null,o),this.space(),this.printList(i||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,o)};var e=Ni(),t=Fi();const{isClassDeclaration:r,isExportDefaultSpecifier:n,isExportNamespaceSpecifier:i,isImportDefaultSpecifier:s,isImportNamespaceSpecifier:a,isStatement:o}=e;let l=!1;function c(e,t){r(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}return ts}var ns,is,ss,as={};function os(){if(is)return ns;is=1;const e={},t=e.hasOwnProperty,r=(e,r)=>{for(const n in e)t.call(e,n)&&r(n,e[n])},n=e=>"\\u"+("0000"+e).slice(-4),i=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},s=e.toString,a=Array.isArray,o=e=>"bigint"==typeof e,l={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},c=/[\\\b\f\n\r\t]/,p=/[0-9]/,u=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,h=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,d=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,f=(e,t)=>{const m=()=>{P=E,++t.indentLevel,E=t.indent.repeat(t.indentLevel)},y={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},g=t&&t.json;var T,x;g&&(y.quotes="double",y.wrap=!0),T=y,t=(x=t)?(r(x,(e,t)=>{T[e]=t}),T):T,"single"!=t.quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const b="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",S=t.compact,v=t.lowercaseHex;let E=t.indent.repeat(t.indentLevel),P="";const A=t.__inline1__,C=t.__inline2__,w=S?"":"\n";let _,I=!0;const k="binary"==t.numbers,O="octal"==t.numbers,N="decimal"==t.numbers,L="hexadecimal"==t.numbers;if(g&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==s.call(e))(e)){if((e=>"[object Map]"==s.call(e))(e))return 0==e.size?"new Map()":(S||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+f(Array.from(e),t)+")");if((e=>"[object Set]"==s.call(e))(e))return 0==e.size?"new Set()":"new Set("+f(Array.from(e),t)+")";if((e=>"function"==typeof Buffer&&Buffer.isBuffer(e))(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+f(Array.from(e),t)+")";if(a(e))return _=[],t.wrap=!0,A&&(t.__inline1__=!1,t.__inline2__=!0),C||m(),((e,t)=>{const r=e.length;let n=-1;for(;++n<r;)t(e[n])})(e,e=>{I=!1,C&&(t.__inline2__=!1),_.push((S||C?"":E)+f(e,t))}),I?"[]":C?"["+_.join(", ")+"]":"["+w+_.join(","+w)+w+(S?"":P)+"]";if((e=>"number"==typeof e||"[object Number]"==s.call(e))(e)||o(e)){if(g)return JSON.stringify(Number(e));let t;if(N)t=String(e);else if(L){let r=e.toString(16);v||(r=r.toUpperCase()),t="0x"+r}else k?t="0b"+e.toString(2):O&&(t="0o"+e.toString(8));return o(e)?t+"n":t}return o(e)?g?JSON.stringify(Number(e)):e+"n":(e=>"[object Object]"==s.call(e))(e)?(_=[],t.wrap=!0,m(),r(e,(e,r)=>{I=!1,_.push((S?"":E)+f(e,t)+":"+(S?"":" ")+f(r,t))}),I?"{}":"{"+w+_.join(","+w)+w+(S?"":P)+"}"):g?JSON.stringify(e)||"null":String(e)}const D=t.escapeEverything?h:d;return _=e.replace(D,(e,r,s,a,o,h)=>{if(r){if(t.minimal)return r;const e=r.charCodeAt(0),s=r.charCodeAt(1);if(t.es6){return"\\u{"+i(1024*(e-55296)+s-56320+65536,v)+"}"}return n(i(e,v))+n(i(s,v))}if(s)return n(i(s.charCodeAt(0),v));if("\0"==e&&!g&&!p.test(h.charAt(o+1)))return"\\0";if(a)return a==b||t.escapeEverything?"\\"+a:a;if(c.test(e))return l[e];if(t.minimal&&!u.test(e))return e;const d=i(e.charCodeAt(0),v);return g||d.length>2?n(d):"\\x"+("00"+d).slice(-2)}),"`"==b&&(_=_.replace(/\$\{/g,"\\${")),t.isScriptContext&&(_=_.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,g?"\\u003C!--":"\\x3C!--")),t.wrap&&(_=b+_+b),_};return f.version="3.0.2",ns=f}function ls(){if(ss)return as;ss=1,Object.defineProperty(as,"__esModule",{value:!0}),as.ArgumentPlaceholder=function(){this.tokenChar(63)},as.ArrayPattern=as.ArrayExpression=function(e){const t=e.elements,r=t.length;this.tokenChar(91);const n=this.enterDelimited();for(let e=0;e<t.length;e++){const n=t[e];n?(e>0&&this.space(),this.print(n),(e<r-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,e)):this.token(",",!1,e)}n(),this.tokenChar(93)},as.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.word(t);this.word(e.value+"n")},as.BooleanLiteral=function(e){this.word(e.value?"true":"false")},as.Identifier=function(e){var t;this.sourceIdentifierName((null==(t=e.loc)?void 0:t.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)},as.NullLiteral=function(){this.word("null")},as.NumericLiteral=function(e){const r=this.getPossibleRaw(e),n=this.format.jsescOption,i=e.value,s=i+"";n.numbers?this.number(t(i,n),i):null==r?this.number(s,i):this.format.minified?this.number(r.length<s.length?r:s,i):this.number(r,i)},as.ObjectPattern=as.ObjectExpression=function(e){const t=e.properties;if(this.tokenChar(123),t.length){const e=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),e()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},as.ObjectMethod=function(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)},as.ObjectProperty=function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(r(e.value)&&n(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&n(e.key)&&n(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},as.PipelineBareFunction=function(e){this.print(e.callee)},as.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},as.PipelineTopicExpression=function(e){this.print(e.expression)},as.RecordExpression=function(e){const t=e.properties;let r,n;if("bar"===this.format.recordAndTupleSyntaxType)r="{|",n="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",n="}"}this.token(r),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(n),!0,!0),this.space());this.token(n)},as.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},as.SpreadElement=as.RestElement=function(e){this.token("..."),this.print(e.argument)},as.StringLiteral=function(e){const r=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==r)return void this.token(r);const n=t(e.value,this.format.jsescOption);this.token(n)},as.TopicReference=function(){const{topicToken:e}=this.format;if(!a.has(e)){const t=JSON.stringify(e),r=Array.from(a,e=>JSON.stringify(e));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}this.token(e)},as.TupleExpression=function(e){const t=e.elements,r=t.length;let n,i;if("bar"===this.format.recordAndTupleSyntaxType)n="[|",i="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);n="#[",i="]"}this.token(n);for(let e=0;e<t.length;e++){const n=t[e];n&&(e>0&&this.space(),this.print(n),(e<r-1||this.shouldPrintTrailingComma(i))&&this.token(",",!1,e))}this.token(i)},as.VoidPattern=function(){this.word("void")},as._getRawIdentifier=function(e){if(e===i)return s;i=e;const{name:t}=e,r=this.tokenMap.find(e,e=>e.value===t);if(r)return s=this._originalCode.slice(r.start,r.end),s;return s=e.name};var e=Ni(),t=os();const{isAssignmentPattern:r,isIdentifier:n}=e;let i=null,s="";const a=new Set(["^^","@@","^","%","#"]);return as}var cs,ps={};function us(){return cs||(cs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnyTypeAnnotation=function(){this.word("any")},e.ArrayTypeAnnotation=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},e.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},e.BooleanTypeAnnotation=function(){this.word("boolean")},e.DeclareClass=function(e,t){s(t)||(this.word("declare"),this.space());this.word("class"),this.space(),this._interfaceish(e)},e.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),r.ExportAllDeclaration.call(this,e)},e.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space());p.call(this,e)},e.DeclareFunction=function(e,t){s(t)||(this.word("declare"),this.space());this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate));this.semicolon()},e.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},e.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},e.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},e.DeclareOpaqueType=function(e,t){s(t)||(this.word("declare"),this.space());this.OpaqueType(e)},e.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},e.DeclareVariable=function(e,t){s(t)||(this.word("declare"),this.space());this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},e.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},e.EmptyTypeAnnotation=function(){this.word("empty")},e.EnumBooleanBody=function(e){const{explicitType:t}=e;o(this,"boolean",t),l(this,e)},e.EnumBooleanMember=function(e){c(this,e)},e.EnumDeclaration=function(e){const{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)},e.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t),this.tokenChar(44)},e.EnumNumberBody=function(e){const{explicitType:t}=e;o(this,"number",t),l(this,e)},e.EnumNumberMember=function(e){c(this,e)},e.EnumStringBody=function(e){const{explicitType:t}=e;o(this,"string",t),l(this,e)},e.EnumStringMember=function(e){c(this,e)},e.EnumSymbolBody=function(e){o(this,"symbol",!0),l(this,e)},e.ExistsTypeAnnotation=function(){this.tokenChar(42)},e.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space()));this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest));this.tokenChar(41);const r=null==t?void 0:t.type;null!=r&&("ObjectTypeCallProperty"===r||"ObjectTypeInternalSlot"===r||"DeclareFunction"===r||"ObjectTypeProperty"===r&&t.method)?this.tokenChar(58):(this.space(),this.token("=>"));this.space(),this.print(e.returnType)},e.FunctionTypeParam=function(e){this.print(e.name),e.optional&&this.tokenChar(63);e.name&&(this.tokenChar(58),this.space());this.print(e.typeAnnotation)},e.IndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},e.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},e.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},e.GenericTypeAnnotation=e.ClassImplements=e.InterfaceExtends=function(e){this.print(e.id),this.print(e.typeParameters,!0)},e.InterfaceTypeAnnotation=function(e){var t;this.word("interface"),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends));this.space(),this.print(e.body)},e.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,u)},e.MixedTypeAnnotation=function(){this.word("mixed")},e.NullLiteralTypeAnnotation=function(){this.word("null")},e.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation)},Object.defineProperty(e,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.NumericLiteral}}),e.NumberTypeAnnotation=function(){this.word("number")},e.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,void 0,void 0,function(e){if(e&&!t[0])return 1},()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())}),this.space());e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent());e.exact?this.token("|}"):this.tokenChar(125)},e.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space());this.print(e.value)},e.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space());this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space());this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},e.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space());this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63);e.method||(this.tokenChar(58),this.space());this.print(e.value)},e.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space());e.static&&(this.word("static"),this.space());"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space());this._variance(e),this.print(e.key),e.optional&&this.tokenChar(63);e.method||(this.tokenChar(58),this.space());this.print(e.value)},e.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument)},e.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype));e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype));this.semicolon()},e.OptionalIndexedAccessType=function(e){this.print(e.objectType),e.optional&&this.token("?.");this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},e.QualifiedTypeIdentifier=function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},Object.defineProperty(e,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return i.StringLiteral}}),e.StringTypeAnnotation=function(){this.word("string")},e.SymbolTypeAnnotation=function(){this.word("symbol")},e.ThisTypeAnnotation=function(){this.word("this")},e.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},e.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()},e.TypeAnnotation=function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=n.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63);this.print(e.typeAnnotation)},e.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},e.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound);e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},e.TypeParameterDeclaration=e.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)},e.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument)},e.UnionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,h)},e.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},e.VoidTypeAnnotation=function(){this.word("void")},e._interfaceish=function(e){var t;this.print(e.id),this.print(e.typeParameters),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends));if("DeclareClass"===e.type){var r,n;null!=(r=e.mixins)&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),null!=(n=e.implements)&&n.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))}this.space(),this.print(e.body)},e._variance=function(e){var t;const r=null==(t=e.variance)?void 0:t.kind;null!=r&&("plus"===r?this.tokenChar(43):"minus"===r&&this.tokenChar(45))};var t=Ni(),r=rs(),n=Fi(),i=ls();const{isDeclareExportDeclaration:s,isStatement:a}=t;function o(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function l(e,t){const{members:r}=t;e.token("{"),e.indent(),e.newline();for(const t of r)e.print(t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function c(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function p(e){if(e.declaration){const t=e.declaration;this.print(t),a(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function u(e){this.space(),this.token("&",!1,e),this.space()}function h(e){this.space(),this.token("|",!1,e),this.space()}}(ps)),ps}var hs,ds={};var fs,ms={};var ys,gs,Ts={};function xs(){return gs||(gs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Ui||(Ui=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.TaggedTemplateExpression=function(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},Hi.TemplateElement=function(){throw new Error("TemplateElement printing is handled in TemplateLiteral")},Hi.TemplateLiteral=function(e){this._printTemplate(e,e.expressions)},Hi._printTemplate=function(e,t){const r=e.quasis;let n="`";for(let i=0;i<r.length-1;i++)if(n+=r[i].value.raw,this.token(n+"${",!0),this.print(t[i]),n="}",this.tokenMap){const t=this.tokenMap.findMatching(e,"}",i);t&&this._catchUpTo(t.loc.start)}n+=r[r.length-1].value.raw,this.token(n+"`",!0)}),Hi);Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(r in e&&e[r]===t[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}}))});var r=function(){if(Wi)return qi;Wi=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.LogicalExpression=qi.BinaryExpression=qi.AssignmentExpression=function(e){this.print(e.left),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):(this.token(e.operator),this._endsWithDiv="/"===e.operator),this.space(),this.print(e.right)},qi.AssignmentPattern=function(e){this.print(e.left),("Identifier"===e.left.type||a(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)},qi.AwaitExpression=function(e){this.word("await"),this.space(),this.print(e.argument)},qi.BindExpression=function(e){this.print(e.object),this.token("::"),this.print(e.callee)},qi.CallExpression=function(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),t(),this.rightParens(e)},qi.ConditionalExpression=function(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)},qi.Decorator=function(e){this.tokenChar(64),this.print(e.expression),this.newline()},qi.DoExpression=function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)},qi.EmptyStatement=function(){this.semicolon(!0)},qi.ExpressionStatement=function(e){this.tokenContext|=t.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()},qi.Import=function(){this.word("import")},qi.MemberExpression=function(e){if(this.print(e.object),!e.computed&&i(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(n(e.property)&&"number"==typeof e.property.value&&(t=!0),t){const t=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),t()}else this.tokenChar(46),this.print(e.property)},qi.MetaProperty=function(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},qi.ModuleExpression=function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)},qi.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&0===e.arguments.length&&!e.optional&&!r(t,{callee:e})&&!i(t)&&!s(t))return;if(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),0===e.arguments.length&&this.tokenMap&&!this.tokenMap.endMatches(e,")"))return;this.tokenChar(40);const n=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),n(),this.rightParens(e)},qi.OptionalCallExpression=function(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e)},qi.OptionalMemberExpression=function(e){let{computed:t}=e;const{optional:r,property:s}=e;if(this.print(e.object),!t&&i(s))throw new TypeError("Got a MemberExpression for MemberExpression property");n(s)&&"number"==typeof s.value&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(s),this.tokenChar(93)):(r||this.tokenChar(46),this.print(s))},qi.ParenthesizedExpression=function(e){this.tokenChar(40);const t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e)},qi.PrivateName=function(e){this.tokenChar(35),this.print(e.id)},qi.SequenceExpression=function(e){this.printList(e.expressions)},qi.Super=function(){this.word("super")},qi.ThisExpression=function(){this.word("this")},qi.UnaryExpression=function(e){const{operator:t}=e;"void"===t||"delete"===t||"typeof"===t||"throw"===t?(this.word(t),this.space()):this.token(t),this.print(e.argument)},qi.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))},qi.V8IntrinsicIdentifier=function(e){this.tokenChar(37),this.word(e.name)},qi.YieldExpression=function(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")},qi._shouldPrintDecoratorsBeforeExport=function(e){return"boolean"==typeof this.format.decoratorsBeforeExport?this.format.decoratorsBeforeExport:"number"==typeof e.start&&e.start===e.declaration.start};var e=Ni(),t=Fi();const{isCallExpression:r,isLiteral:n,isMemberExpression:i,isNewExpression:s,isPattern:a}=e;return qi}();Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))});var n=Ji();Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))});var i=Gi();Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===i[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))});var s=function(){if(Qi)return Zi;Qi=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.ArrowFunctionExpression=function(e,r){e.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(e)?this._params(e,void 0,r):this.print(e.params[0],!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=t.TokenContext.arrowBody,this.print(e.body)},Zi.FunctionDeclaration=Zi.FunctionExpression=function(e,t){this._functionHead(e,t),this.space(),this.print(e.body)},Zi._functionHead=function(e,t){e.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._params(e,e.id,t),"TSDeclareFunction"!==e.type&&this._predicate(e)},Zi._methodHead=function(e){const t=e.kind,r=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),"method"!==t&&"init"!==t||e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r),e.optional&&this.tokenChar(63),this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key,void 0)},Zi._param=function(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},Zi._parameters=function(e,t){const r=this.enterDelimited(),n=this.shouldPrintTrailingComma(t),i=e.length;for(let t=0;t<i;t++)this._param(e[t]),(n||t<i-1)&&(this.token(",",null,t),this.space());this.token(t),r()},Zi._params=function(e,t,r){this.print(e.typeParameters);const i=n.call(this,t,r);i&&this.sourceIdentifierName(i.name,i.pos),this.tokenChar(40),this._parameters(e.params,")");const s="ArrowFunctionExpression"===e.type;this.print(e.returnType,s),this._noLineTerminator=s},Zi._predicate=function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))},Zi._shouldPrintArrowParamsParens=function(e){var t,n;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;const i=e.params[0];if(!r(i)||i.typeAnnotation||i.optional||null!=(t=i.leadingComments)&&t.length||null!=(n=i.trailingComments)&&n.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;const t=this.tokenMap.findMatching(e,"=>");return null==(null==t?void 0:t.loc)||t.loc.start.line!==e.loc.start.line}return!!this.format.retainLines};var e=Ni(),t=Fi();const{isIdentifier:r}=e;function n(e,t){let r,n=e;if(!n&&t){const e=t.type;"VariableDeclarator"===e?n=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?n=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(n=t.key):"ClassPrivateProperty"!==e&&"ClassAccessorProperty"!==e||(n=t.key)}if(n){var i,s;if("Identifier"===n.type)r={pos:null==(i=n.loc)?void 0:i.start,name:(null==(s=n.loc)?void 0:s.identifierName)||n.name};else if("PrivateName"===n.type){var a;r={pos:null==(a=n.loc)?void 0:a.start,name:"#"+n.id.name}}else if("StringLiteral"===n.type){var o;r={pos:null==(o=n.loc)?void 0:o.start,name:n.value}}return r}}return Zi}();Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===s[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}}))});var a=rs();Object.keys(a).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===a[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}}))});var o=ls();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var l=us();Object.keys(l).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===l[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}}))});var c=function(){if(hs)return ds;hs=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.BlockStatement=function(e){var t;this.tokenChar(123);const r=this.enterDelimited(),n=null==(t=e.directives)?void 0:t.length;if(n){var i;const t=e.body.length?2:1;this.printSequence(e.directives,!0,t),null!=(i=e.directives[n-1].trailingComments)&&i.length||this.newline(t)}this.printSequence(e.body,!0),r(),this.rightBrace(e)},ds.Directive=function(e){this.print(e.value),this.semicolon()},ds.DirectiveLiteral=function(r){const n=this.getPossibleRaw(r);if(!this.format.minified&&void 0!==n)return void this.token(n);const{value:i}=r;if(t.test(i)){if(e.test(i))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${i}'`)}else this.token(`"${i}"`)},ds.File=function(e){e.program&&this.print(e.program.interpreter),this.print(e.program)},ds.InterpreterDirective=function(e){this.token(`#!${e.value}`),this.newline(1,!0)},ds.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},ds.Program=function(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();const r=null==(t=e.directives)?void 0:t.length;if(r){var n;const t=e.body.length?2:1;this.printSequence(e.directives,void 0,t),null!=(n=e.directives[r-1].trailingComments)&&n.length||this.newline(t)}this.printSequence(e.body)};const e=/(?:^|[^\\])(?:\\\\)*'/,t=/(?:^|[^\\])(?:\\\\)*"/;return ds}();Object.keys(c).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===c[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}}))});var p=function(){if(fs)return ms;function e(){this.space()}return fs=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.JSXAttribute=function(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},ms.JSXClosingElement=function(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},ms.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62)},ms.JSXElement=function(e){const t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(const t of e.children)this.print(t);this.dedent(),this.print(e.closingElement)}},ms.JSXEmptyExpression=function(){this.printInnerComments()},ms.JSXExpressionContainer=function(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},ms.JSXFragment=function(e){this.print(e.openingFragment),this.indent();for(const t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)},ms.JSXIdentifier=function(e){this.word(e.name)},ms.JSXMemberExpression=function(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},ms.JSXNamespacedName=function(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},ms.JSXOpeningElement=function(t){this.tokenChar(60),this.print(t.name),t.typeArguments&&this.print(t.typeArguments),this.print(t.typeParameters),t.attributes.length>0&&(this.space(),this.printJoin(t.attributes,void 0,void 0,e)),t.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)},ms.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62)},ms.JSXSpreadAttribute=function(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},ms.JSXSpreadChild=function(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},ms.JSXText=function(e){const t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)},ms}();Object.keys(p).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===p[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))});var u=function(){if(ys)return Ts;function e(e,t){e.tokenMap&&t.start&&t.end?e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon():e.semicolon()}function t(e,t,r){var n;let i=0;null!=(n=e.tokenMap)&&n.startMatches(t,r)&&(i=1,e.token(r)),e.printJoin(t.types,void 0,void 0,function(e){this.space(),this.token(r,null,e+i),this.space()})}function r(e,t){!0!==t&&e.token(t)}function n(e){i(this,e,()=>{var t;return this.printList(e.members,null==(t=this.shouldPrintTrailingComma("}"))||t,!0,!0)})}function i(e,t,r){e.token("{");const n=e.enterDelimited();r(),n(),e.rightBrace(t)}function s(e,t,r){var n;const i=new Set;for(const e of r)e&&i.add(e);null==(n=e.tokenMap)||n.find(t,t=>{if(i.has(t.value))return e.token(t.value),e.space(),i.delete(t.value),0===i.size});for(const t of i)e.word(t),e.space()}return ys=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.TSAnyKeyword=function(){this.word("any")},Ts.TSArrayType=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},Ts.TSSatisfiesExpression=Ts.TSAsExpression=function(e){const{type:t,expression:r,typeAnnotation:n}=e;this.print(r,!0),this.space(),this.word("TSAsExpression"===t?"as":"satisfies"),this.space(),this.print(n)},Ts.TSBigIntKeyword=function(){this.word("bigint")},Ts.TSBooleanKeyword=function(){this.word("boolean")},Ts.TSCallSignatureDeclaration=function(t){this.tsPrintSignatureDeclarationBase(t),e(this,t)},Ts.TSInterfaceHeritage=Ts.TSClassImplements=function(e){this.print(e.expression),this.print(e.typeArguments)},Ts.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},Ts.TSConstructSignatureDeclaration=function(t){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(t),e(this,t)},Ts.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},Ts.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon()},Ts.TSDeclareMethod=function(e){this._classMethodHead(e),this.semicolon()},Ts.TSEnumBody=n,Ts.TSEnumDeclaration=function(e){const{declare:t,const:r,id:i}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i),this.space(),n.call(this,e)},Ts.TSEnumMember=function(e){const{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))},Ts.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},Ts.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},Ts.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},Ts.TSImportEqualsDeclaration=function(e){const{id:t,moduleReference:r}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()},Ts.TSImportType=function(e){const{argument:t,qualifier:r,options:n}=e;this.word("import"),this.tokenChar(40),this.print(t),n&&(this.tokenChar(44),this.print(n)),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r));const i=e.typeParameters;i&&this.print(i)},Ts.TSIndexSignature=function(t){const{readonly:r,static:n}=t;n&&(this.word("static"),this.space()),r&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(t.parameters,"]"),this.print(t.typeAnnotation),e(this,t)},Ts.TSIndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},Ts.TSInferType=function(e){this.word("infer"),this.print(e.typeParameter)},Ts.TSInstantiationExpression=function(e){this.print(e.expression),this.print(e.typeParameters)},Ts.TSInterfaceBody=function(e){i(this,e,()=>this.printJoin(e.body,!0,!0))},Ts.TSInterfaceDeclaration=function(e){const{declare:t,id:r,typeParameters:n,extends:i,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(n),null!=i&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i)),this.space(),this.print(s)},Ts.TSIntersectionType=function(e){t(this,e,"&")},Ts.TSIntrinsicKeyword=function(){this.word("intrinsic")},Ts.TSLiteralType=function(e){this.print(e.literal)},Ts.TSMappedType=function(e){const{nameType:t,optional:n,readonly:i,typeAnnotation:s}=e;this.tokenChar(123);const a=this.enterDelimited();this.space(),i&&(r(this,i),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint),t&&(this.space(),this.word("as"),this.space(),this.print(t)),this.tokenChar(93),n&&(r(this,n),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s)),this.space(),a(),this.tokenChar(125)},Ts.TSMethodSignature=function(t){const{kind:r}=t;"set"!==r&&"get"!==r||(this.word(r),this.space()),this.tsPrintPropertyOrMethodName(t),this.tsPrintSignatureDeclarationBase(t),e(this,t)},Ts.TSModuleBlock=function(e){i(this,e,()=>this.printSequence(e.body,!0))},Ts.TSModuleDeclaration=function(e){const{declare:t,id:r,kind:n}=e;t&&(this.word("declare"),this.space());{if(e.global||(this.word(null!=n?n:"Identifier"===r.type?"namespace":"module"),this.space()),this.print(r),!e.body)return void this.semicolon();let t=e.body;for(;"TSModuleDeclaration"===t.type;)this.tokenChar(46),this.print(t.id),t=t.body;this.space(),this.print(t)}},Ts.TSNamedTupleMember=function(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)},Ts.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},Ts.TSNeverKeyword=function(){this.word("never")},Ts.TSNonNullExpression=function(e){this.print(e.expression),this.tokenChar(33)},Ts.TSNullKeyword=function(){this.word("null")},Ts.TSNumberKeyword=function(){this.word("number")},Ts.TSObjectKeyword=function(){this.word("object")},Ts.TSOptionalType=function(e){this.print(e.typeAnnotation),this.tokenChar(63)},Ts.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},Ts.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},Ts.TSPropertySignature=function(t){const{readonly:r}=t;r&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(t),this.print(t.typeAnnotation),e(this,t)},Ts.TSQualifiedName=function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},Ts.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation)},Ts.TSStringKeyword=function(){this.word("string")},Ts.TSSymbolKeyword=function(){this.word("symbol")},Ts.TSTemplateLiteralType=function(e){this._printTemplate(e,e.types)},Ts.TSThisType=function(){this.word("this")},Ts.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},Ts.TSTypeAliasDeclaration=function(e){const{declare:t,id:r,typeParameters:n,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r),this.print(n),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()},Ts.TSTypeAnnotation=function(e,t){this.token("TSFunctionType"!==t.type&&"TSConstructorType"!==t.type||t.typeAnnotation!==e?":":"=>"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},Ts.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)},Ts.TSTypeLiteral=function(e){i(this,e,()=>this.printJoin(e.members,!0,!0))},Ts.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},Ts.TSTypeParameter=function(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},Ts.TSTypeParameterDeclaration=Ts.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60);let r="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(r&&(r=!!this.tokenMap.find(e,e=>this.tokenMap.matchesOriginal(e,","))),r||(r=this.shouldPrintTrailingComma(">"))),this.printList(e.params,r),this.tokenChar(62)},Ts.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},Ts.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName);const t=e.typeParameters;t&&this.print(t)},Ts.TSTypeReference=function(e){const t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)},Ts.TSUndefinedKeyword=function(){this.word("undefined")},Ts.TSUnionType=function(e){t(this,e,"|")},Ts.TSUnknownKeyword=function(){this.word("unknown")},Ts.TSVoidKeyword=function(){this.word("void")},Ts.tsPrintClassMemberModifiers=function(e){const t="ClassPrivateProperty"===e.type,r="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;s(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),s(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])},Ts.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),this._parameters(r,")"),this.space();const n=e.typeAnnotation;this.print(n)},Ts.tsPrintPropertyOrMethodName=function(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},Ts.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),this._parameters(r,")");const n=e.typeAnnotation;this.print(n)},Ts}();Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===u[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}}))})}(Ki)),Ki}var bs,Ss,vs,Es={};function Ps(){if(Ss)return Ae;Ss=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=void 0;var e=(Pe||(Pe=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.default=void 0,Ce.default=class{constructor(e,t){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=t;for(let e=0;e<64;e++)this._fastIndentations.push(t.repeat(e));this._allocQueue()}_allocQueue(){const e=this._queue;for(let t=0;t<16;t++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,t,r,n,i){const s=this._queueCursor;s===this._queue.length&&this._allocQueue();const a=this._queue[s];a.char=e,a.repeat=t,a.line=r,a.column=n,a.filename=i,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const r=e?e.get():null;return t.map=r,r},set map(e){Object.defineProperty(t,"map",{value:e,writable:!0})},get rawMappings(){const r=null==e?void 0:e.getRawMappings();return t.rawMappings=r,r},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:!0})}};return t}append(e,t){this._flush(),this._append(e,this._sourcePosition,t)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){const e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){const e=this._queueCursor,t=this._queue;for(let r=0;r<e;r++){const e=t[r];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,r){if(this._last=e,-1===e){const e=this._fastIndentations[t];this._str+=void 0!==e?e:t>1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0)}_append(e,t,r){const n=e.length,i=this._position;if(this._last=e.charCodeAt(n-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!r&&!this._map)return void(i.column+=n);const{column:s,identifierName:a,identifierNamePos:o,filename:l}=t;let c=t.line;null==a&&null==o||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);let p=e.indexOf("\n"),u=0;for(0!==p&&this._mark(c,s,a,o,l);-1!==p;)i.line++,i.column=0,u=p+1,u<n&&void 0!==c&&this._mark(++c,0,null,null,l),p=e.indexOf("\n",u);i.column+=n-u}_mark(e,t,r,n,i){var s;null==(s=this._map)||s.mark(this._position,e,t,r,n,i)}removeTrailingNewline(){const e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){const e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){const e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let t=0;if(0===e)return 10===this._last?1:0;for(let r=e-1;r>=0&&10===this._queue[r].char;r--)t++;return t===e&&10===this._last?t+1:t}endsWithCharAndNewline(){const e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);const r=e.identifierName,n=this._sourcePosition;r&&(this._canMarkIdName=!1,n.identifierName=r),t(),r&&(this._canMarkIdName=!0,n.identifierName=void 0,n.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,r){this._map&&this._normalizePosition(e,t,r)}_normalizePosition(e,t,r){const n=t[e],i=this._sourcePosition;n&&(i.line=n.line,i.column=Math.max(n.column+r,0),i.filename=t.filename)}getCurrentColumn(){const e=this._queue,t=this._queueCursor;let r=-1,n=0;for(let i=0;i<t;i++){const t=e[i];10===t.char&&(r=n),n+=t.repeat}return-1===r?this._position.column+n:n-1-r}getCurrentLine(){let e=0;const t=this._queue;for(let r=0;r<this._queueCursor;r++)10===t[r].char&&e++;return this._position.line+e}}),Ce),t=Fi(),r=t,n=Ni(),i=Vi(),s=xs(),a=(bs||(bs=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.addDeprecatedGenerators=function(e){{const t={Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression),this.print(e.typeParameters)},DecimalLiteral(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"m"):this.word(t)}};Object.assign(e.prototype,t)}}),Es);const{isExpression:o,isFunction:l,isStatement:c,isClassBody:p,isTSInterfaceBody:u,isTSEnumMember:h}=n,d=/e/i,f=/\.0+$/,m=/[\n\r\u2028\u2029]/,y=/[\n\r\u2028\u2029]|\*\//;function g(e){return"CommentLine"===e.type||m.test(e.value)}const{needsParens:T}=r;class x{constructor(r,n,i,s){this.tokenContext=t.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=r,this._tokens=i,this._originalCode=s,this._indentRepeat=r.indent.style.length,this._inputMap=null==n?void 0:n._inputMap,this._buf=new e.default(n,r.indent.style[0])}enterForStatementInit(){return this.tokenContext|=t.TokenContext.forInitHead|t.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=t.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=t.TokenContext.forOfHead,null):(this.tokenContext|=t.TokenContext.forInHead|t.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=t.TokenContext.normal)}enterDelimited(){const e=this.tokenContext,r=this._noLineTerminatorAfterNode;return e&t.TokenContext.forInOrInitHeadAccumulate||null!==r?(this._noLineTerminatorAfterNode=null,this.tokenContext=t.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=r,this.tokenContext=e}):()=>{}}generate(e){return this.format.preserveFormat&&(this.tokenMap=new i.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent++}dedent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e)return this._appendChar(59),void(this._noLineTerminator=!1);if(this.tokenMap){const e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";"))return void(this._printSemicolonBeforeNextNode=this._buf.getCurrentLine());const t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){const{format:t}=this;if(!t.compact&&!t.preserveFormat)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e,r=!1){this.tokenContext&=t.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=r}number(e,t){this.word(e),this._endsWithInteger=Number.isInteger(t)&&!function(e){if(e.length>2&&48===e.charCodeAt(0)){const t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)&&!d.test(e)&&!f.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,r=!1,n=0){this.tokenContext&=t.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,n),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,n);const i=this.getLastChar(),s=e.charCodeAt(0);(33===i&&("--"===e||61===s)||43===s&&43===i||45===s&&45===i||46===s&&this._endsWithInteger)&&this._space(),this._append(e,r),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=t.TokenContext.forInOrInitHeadAccumulatePassThroughMask;const r=String.fromCharCode(e);this._maybePrintInnerComments(r),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(r);const n=this.getLastChar();(43===e&&43===n||45===e&&45===n||46===e&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,r){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,r))}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const r=this._buf._sourcePosition;r.identifierNamePos=t,r.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,t=0){const r=this.tokenMap.findMatching(this._currentNode,e,t);r&&this._catchUpTo(r.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,t),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){const{format:r}=this;if(!r.preserveFormat)return void(r.retainLines&&null!=t&&t[e]&&this.catchUp(t[e].line));const n=null==t?void 0:t[e];null!=n&&this._catchUpTo(n)}_catchUpTo({line:e,column:t,index:r}){const n=e-this._buf.getCurrentLine();if(n>0&&this._noLineTerminator)return;for(let e=0;e<n;e++)this._newline();const i=n>0?t:t-this._buf.getCurrentColumn();if(i>0){const e=this._originalCode?this._originalCode.slice(r-i,r).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(i);this._append(e,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,n,i){var s,a,l;if(!e)return;this._endsWithInnerRaw=!1;const c=e.type,p=this.format,u=p.concise;e._compact&&(p.concise=!0);const h=this[c];if(void 0===h)throw new ReferenceError(`unknown node of type ${JSON.stringify(c)} with constructor ${JSON.stringify(e.constructor.name)}`);const d=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);const f=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!f);const m=null==(s=e.extra)?void 0:s.parenthesized;let y=m&&p.preserveFormat||m&&p.retainFunctionParens&&"FunctionExpression"===c||T(e,d,this.tokenContext,p.preserveFormat?this._boundGetRawIdentifier:void 0);if(!y&&m&&null!=(a=e.leadingComments)&&a.length&&"CommentBlock"===e.leadingComments[0].type){switch(null==d?void 0:d.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(d.callee!==e)break;default:y=!0}}let x,b,S=!1;var v;(!y&&this._noLineTerminator&&(null!=(l=e.leadingComments)&&l.some(g)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(y=!0,S=!0),y)||(n||(n=d&&this._noLineTerminatorAfterNode===d&&r.isLastChild(d,e)),n&&(null!=(v=e.trailingComments)&&v.some(g)?o(e)&&(y=!0):(x=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e)));y&&(this.tokenChar(40),S&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&t.TokenContext.forInOrInitHeadAccumulate&&(b=this.tokenContext,this.tokenContext=t.TokenContext.normal),x=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,d);const E="Program"===c||"File"===c?null:e.loc;this.exactSource(E,h.bind(this,e,d)),y?(this._printTrailingComments(e,d),S&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=n,b&&(this.tokenContext=b)):n&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,d)):this._printTrailingComments(e,d,i),this._currentNode=d,p.concise=u,this._insideAux=f,void 0!==x&&(this._noLineTerminatorAfterNode=x),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,r,n,i,s,a,o){if(null==e||!e.length)return;if(null==r&&this.format.retainLines){var l;const t=null==(l=e[0].loc)?void 0:l.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(r=!0)}r&&this.indent();const c={addNewlines:s,nextNodeStartLine:0},p=null==n?void 0:n.bind(this),u=e.length;for(let r=0;r<u;r++){const n=e[r];var h;if(n)if(t&&this._printNewline(0===r,c),this.print(n,void 0,o||0),null==a||a(n,r),null!=p&&(r<u-1?p(r,!1):i&&p(r,!0)),t)if(null!=(h=n.trailingComments)&&h.length||(this._lastCommentLine=0),r+1===u)this.newline(1);else{var d;const t=e[r+1];c.nextNodeStartLine=(null==(d=t.loc)?void 0:d.start.line)||0,this._printNewline(!0,c)}}r&&this.dedent()}printAndIndentOnComments(e){const t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t)}_printTrailingComments(e,t,r){const{innerComments:n,trailingComments:i}=e;null!=n&&n.length&&this._printComments(2,n,e,t,r),null!=i&&i.length&&this._printComments(2,i,e,t,r)}_printLeadingComments(e,t){const r=e.leadingComments;null!=r&&r.length&&this._printComments(0,r,e,t)}_maybePrintInnerComments(e,t){var r;this._endsWithInnerRaw&&this.printInnerComments(null==(r=this.tokenMap)?void 0:r.findMatching(this._currentNode,e,t));this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){const t=this._currentNode,r=t.innerComments;if(null==r||!r.length)return;const n=this.endsWith(32),i=this._indentInnerComments,s=this._printedComments.size;i&&this.indent(),this._printComments(1,r,t,void 0,void 0,e),n&&s!==this._printedComments.size&&this.space(),i&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,r,n){this.printJoin(e,!0,null!=t&&t,void 0,void 0,n,void 0,r)}printList(e,t,r,n,i,s){this.printJoin(e,r,n,null!=i?i:b,t,void 0,s)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const t=this.tokenMap.findLastIndex(this._currentNode,t=>this.tokenMap.matchesOriginal(t,e));return t<=0?null:this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_printNewline(e,t){const r=this.format;if(r.retainLines||r.compact)return;if(r.concise)return void this.space();if(!e)return;const n=t.nextNodeStartLine,i=this._lastCommentLine;if(n>0&&i>0){const e=n-i;if(e>=0)return void this.newline(e||1)}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&y.test(e.value))return 2;if(t&&this.tokenMap){const r=this.tokenMap.find(this._currentNode,t=>t.value===e.value);if(r&&r.start>t.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,t){const r=this._noLineTerminator,n="CommentBlock"===e.type,i=n&&1!==t&&!this._noLineTerminator;i&&this._buf.hasContent()&&2!==t&&this.newline(1);const s=this.getLastChar();let a;if(91!==s&&123!==s&&40!==s&&this.space(),n){if(a=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var o;const t=null==(o=e.loc)?void 0:o.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");a=a.replace(e,"\n")}if(this.format.concise)a=a.replace(/\n(?!$)/g,"\n");else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),a=a.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else a=r?`/*${e.value}*/`:`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){const{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:r}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(a,n),this._printSemicolonBeforeNextNode=r,this._printSemicolonBeforeNextToken=t}else this.source("start",e.loc),this._append(a,n);n||r||this.newline(1,!0),i&&3!==t&&this.newline(1)}_printComments(e,t,r,n,i=0,s){const a=r.loc,o=t.length;let d=!!a;const f=d?a.start.line:0,y=d?a.end.line:0;let g=0,T=0;const x=this._noLineTerminator?function(){}:this.newline.bind(this);for(let a=0;a<o;a++){const b=t[a],S=this._shouldPrintComment(b,s);if(2===S){d=!1;break}if(d&&b.loc&&1===S){const t=b.loc.start.line,r=b.loc.end.line;if(0===e){let e=0;0===a?!this._buf.hasContent()||"CommentLine"!==b.type&&t===r||(e=T=1):e=t-g,g=r,x(e),this._printComment(b,1),a+1===o&&(x(Math.max(f-g,T)),g=f)}else if(1===e){const e=t-(0===a?f:g);g=r,x(e),this._printComment(b,1),a+1===o&&(x(Math.min(1,y-g)),g=y)}else{const e=t-(0===a?y-i:g);g=r,x(e),this._printComment(b,1)}}else{if(d=!1,1!==S)continue;if(1===o){const t=b.loc?b.loc.start.line===b.loc.end.line:!m.test(b.value),i=t&&!c(r)&&!p(n)&&!u(n)&&!h(r);0===e?this._printComment(b,i&&"ObjectExpression"!==r.type||t&&l(n,{body:r})?1:0):i&&2===e?this._printComment(b,1):this._printComment(b,0)}else 1!==e||"ObjectExpression"===r.type&&r.properties.length>1||"ClassBody"===r.type||"TSInterfaceBody"===r.type?this._printComment(b,0):this._printComment(b,0===a?2:a===o-1?3:0)}}2===e&&d&&g&&(this._lastCommentLine=g)}}function b(e,t){this.token(",",!1,e),t||this.space()}return Object.assign(x.prototype,s),(0,a.addDeprecatedGenerators)(x),Ae.default=x,Ae}function As(){if(vs)return ve;vs=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.default=void 0,ve.generate=n;var e=function(){if(Se)return Ee;Se=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=void 0;var e=le(),t=ae();return Ee.default=class{constructor(r,n){var i;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;const s=this._map=new e.GenMapping({sourceRoot:r.sourceRoot});if(this._sourceFileName=null==(i=r.sourceFileName)?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,r.inputSourceMap){this._inputMap=new t.TraceMap(r.inputSourceMap);const n=this._inputMap.resolvedSources;if(n.length)for(let t=0;t<n.length;t++){var a;(0,e.setSourceContent)(s,n[t],null==(a=this._inputMap.sourcesContent)?void 0:a[t])}}if("string"!=typeof n||r.inputSourceMap){if("object"==typeof n)for(const t of Object.keys(n))(0,e.setSourceContent)(s,t.replace(/\\/g,"/"),n[t])}else(0,e.setSourceContent)(s,this._sourceFileName,n)}get(){return(0,e.toEncodedMap)(this._map)}getDecoded(){return(0,e.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,e.allMappings)(this._map))}mark(r,n,i,s,a,o){var l;let c;if(this._rawMappings=void 0,null!=n)if(this._inputMap){if(c=(0,t.originalPositionFor)(this._inputMap,{line:n,column:i}),!c.name&&a){const e=(0,t.originalPositionFor)(this._inputMap,a);e.name&&(s=e.name)}}else c={source:(null==o?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:n,column:i};(0,e.maybeAddMapping)(this._map,{name:s,generated:r,source:null==(l=c)?void 0:l.source,original:c})}},Ee}(),t=Ps();function r(e,t,r){if(t.experimental_preserveFormat){if("string"!=typeof e)throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&"auto"!==t.compact)throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}const n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};var i;n.decoratorsBeforeExport=t.decoratorsBeforeExport,n.jsescOption.json=t.jsonCompatibleStrings,n.recordAndTupleSyntaxType=null!=(i=t.recordAndTupleSyntaxType)?i:"hash",n.minified?(n.compact=!0,n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)):n.shouldPrintComment=n.shouldPrintComment||(e=>n.comments||e.includes("@license")||e.includes("@preserve")),"auto"===n.compact&&(n.compact="string"==typeof e&&e.length>5e5,n.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(n.compact||n.preserveFormat)&&(n.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:s,auxiliaryCommentAfter:a,shouldPrintComment:o}=n;return s&&!o(s)&&(n.auxiliaryCommentBefore=void 0),a&&!o(a)&&(n.auxiliaryCommentAfter=void 0),n}function n(n,i={},s){const a=r(s,i,n),o=i.sourceMaps?new e.default(i,s):null;return new t.default(a,o,n.tokens,"string"==typeof s?s:null).generate(n)}return ve.CodeGenerator=class{constructor(t,n={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=r(i,n,t),this._map=n.sourceMaps?new e.default(n,i):null}generate(){return new t.default(this._format,this._map).generate(this._ast)}},ve.default=n,ve}var Cs,ws={},_s={},Is={},ks={},Os={},Ns={};function Ls(){return Cs||(Cs=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.Var=Ns.User=Ns.Statement=Ns.SpreadProperty=Ns.Scope=Ns.RestProperty=Ns.ReferencedMemberExpression=Ns.ReferencedIdentifier=Ns.Referenced=Ns.Pure=Ns.NumericLiteralTypeAnnotation=Ns.Generated=Ns.ForAwaitStatement=Ns.Flow=Ns.Expression=Ns.ExistentialTypeParam=Ns.BlockScoped=Ns.BindingIdentifier=void 0,Ns.ReferencedIdentifier=["Identifier","JSXIdentifier"],Ns.ReferencedMemberExpression=["MemberExpression"],Ns.BindingIdentifier=["Identifier"],Ns.Statement=["Statement"],Ns.Expression=["Expression"],Ns.Scope=["Scopable","Pattern"],Ns.Referenced=null,Ns.BlockScoped=null,Ns.Var=["VariableDeclaration"],Ns.User=null,Ns.Generated=null,Ns.Pure=null,Ns.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],Ns.RestProperty=["RestElement"],Ns.SpreadProperty=["RestElement"],Ns.ExistentialTypeParam=["ExistsTypeAnnotation"],Ns.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],Ns.ForAwaitStatement=["ForOfStatement"]),Ns}var Ds,Ms,Bs,Fs,js,Rs={exports:{}};function Vs(){if(Ms)return Ds;Ms=1;var e=1e3,t=60*e,r=60*t,n=24*r,i=7*n,s=365.25*n;function a(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}return Ds=function(o,l){l=l||{};var c=typeof o;if("string"===c&&o.length>0)return function(a){if((a=String(a)).length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!o)return;var l=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"weeks":case"week":case"w":return l*i;case"days":case"day":case"d":return l*n;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*t;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(o);if("number"===c&&isFinite(o))return l.long?function(i){var s=Math.abs(i);if(s>=n)return a(i,s,n,"day");if(s>=r)return a(i,s,r,"hour");if(s>=t)return a(i,s,t,"minute");if(s>=e)return a(i,s,e,"second");return i+" ms"}(o):function(i){var s=Math.abs(i);if(s>=n)return Math.round(i/n)+"d";if(s>=r)return Math.round(i/r)+"h";if(s>=t)return Math.round(i/t)+"m";if(s>=e)return Math.round(i/e)+"s";return i+"ms"}(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))},Ds}function Us(){return js||(js=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(Fs||(Fs=1,Bs=function(e){function t(e){let n,i,s,a=null;function o(...e){if(!o.enabled)return;const r=o,i=Number(new Date),s=i-(n||i);r.diff=s,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return"%";a++;const s=t.formatters[i];if("function"==typeof s){const t=e[a];n=s.call(r,t),e.splice(a,1),a--}return n}),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=r,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{a=e}}),"function"==typeof t.init&&t.init(o),o}function r(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e,t){let r=0,n=0,i=-1,s=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,s=r,n++):(r++,n++);else{if(-1===i)return!1;n=i+1,s++,r=s}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(n(e,r))return!1;for(const r of t.names)if(n(e,r))return!0;return!1},t.humanize=Vs(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}),Bs)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Rs,Rs.exports)),Rs.exports}var Ks,Hs,Ws,qs={},$s={},Ys={},Js={};function Xs(){if(Ks)return Js;Ks=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.isBindingIdentifier=function(){const{node:e,parent:r}=this,n=this.parentPath.parent;return l(e)&&t(e,r,n)},Js.isBlockScoped=function(){return r(this.node)},Js.isExpression=function(){return this.isIdentifier()?this.isReferencedIdentifier():i(this.node)},Js.isFlow=function(){const{node:e}=this;return!!s(e)||(c(e)?"type"===e.importKind||"typeof"===e.importKind:n(e)?"type"===e.exportKind:!!p(e)&&("type"===e.importKind||"typeof"===e.importKind))},Js.isForAwaitStatement=function(){return S(this.node,{await:!0})},Js.isGenerated=function(){return!this.isUser()},Js.isPure=function(e){return this.scope.isPure(this.node,e)},Js.isReferenced=function(){return m(this.node,this.parent)},Js.isReferencedIdentifier=function(e){const{node:t,parent:r}=this;if(!l(t,e)&&!h(r,e)){if(!u(t,e))return!1;if(v(t.name))return!1}return m(t,r,this.parentPath.parent)},Js.isReferencedMemberExpression=function(){const{node:e,parent:t}=this;return d(e)&&m(e,t)},Js.isRestProperty=function(){var e;return f(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())},Js.isScope=function(){return y(this.node,this.parent)},Js.isSpreadProperty=function(){var e;return f(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())},Js.isStatement=function(){const{node:e,parent:t}=this;if(g(e)){if(x(e)){if(o(t,{left:e}))return!1;if(a(t,{init:e}))return!1}return!0}return!1},Js.isUser=function(){return this.node&&!!this.node.loc},Js.isVar=function(){return T(this.node)};var e=Ni();const{isBinding:t,isBlockScoped:r,isExportDeclaration:n,isExpression:i,isFlow:s,isForStatement:a,isForXStatement:o,isIdentifier:l,isImportDeclaration:c,isImportSpecifier:p,isJSXIdentifier:u,isJSXMemberExpression:h,isMemberExpression:d,isRestElement:f,isReferenced:m,isScope:y,isStatement:g,isVar:T,isVariableDeclaration:x,react:b,isForOfStatement:S}=e,{isCompatTag:v}=b;return Js.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},Js.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")},Js}function zs(){if(Hs)return Ys;Hs=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.environmentVisitor=function(e){return f([b,e])},Ys.explode=u,Ys.isExplodedVisitor=p,Ys.merge=f,Ys.verify=h;var e=Ls(),t=Xs(),r=Ni(),n=ko();const{DEPRECATED_KEYS:i,DEPRECATED_ALIASES:s,FLIPPED_ALIAS_KEYS:a,TYPES:o,__internal__deprecationWarning:l}=r;function c(t){return t in e}function p(e){return null==e?void 0:e._exploded}function u(t){if(p(t))return t;t._exploded=!0;for(const e of Object.keys(t)){if(T(e))continue;const r=e.split("|");if(1===r.length)continue;const n=t[e];delete t[e];for(const e of r)t[e]=n}h(t),delete t.__esModule,function(e){for(const t of Object.keys(e)){if(T(t))continue;const r=e[t];"function"==typeof r&&(e[t]={enter:r})}}(t),y(t);for(const r of Object.keys(t)){if(T(r))continue;if(!c(r))continue;const n=t[r];for(const e of Object.keys(n))n[e]=g(r,n[e]);delete t[r];const i=e[r];if(null!==i)for(const e of i)t[e]?x(t[e],n):t[e]=n;else x(t,n)}for(const e of Object.keys(t)){if(T(e))continue;let r=a[e];if(e in i){const t=i[e];l(e,t,"Visitor "),r=[t]}else if(e in s){const t=s[e];l(e,t,"Visitor "),r=a[t]}if(!r)continue;const n=t[e];delete t[e];for(const e of r){const r=t[e];r?x(r,n):t[e]=Object.assign({},n)}}for(const e of Object.keys(t))T(e)||y(t[e]);return t}function h(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const t of Object.keys(e)){if("enter"!==t&&"exit"!==t||d(t,e[t]),T(t))continue;if(!o.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.28.4`);const r=e[t];if("object"==typeof r)for(const e of Object.keys(r)){if("enter"!==e&&"exit"!==e)throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`);d(`${t}.${e}`,r[e])}}e._verified=!0}}function d(e,t){const r=[].concat(t);for(const t of r)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function f(e,t=[],r){const n={_verified:!0,_exploded:!0};Object.defineProperty(n,"_exploded",{enumerable:!1}),Object.defineProperty(n,"_verified",{enumerable:!1});for(let i=0;i<e.length;i++){const s=u(e[i]),a=t[i];let o=s;(a||r)&&(o=m(o,a,r)),x(n,o);for(const e of Object.keys(s)){if(T(e))continue;let t=s[e];(a||r)&&(t=m(t,a,r));x(n[e]||(n[e]={}),t)}}return n}function m(e,t,r){const n={};for(const i of["enter","exit"]){let s=e[i];Array.isArray(s)&&(s=s.map(function(e){let n=e;return t&&(n=function(r){e.call(t,r,t)}),r&&(n=r(null==t?void 0:t.key,i,n)),n!==e&&(n.toString=()=>e.toString()),n}),n[i]=s)}return n}function y(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function g(e,r){const n=t[`is${e}`],i=function(e){if(n.call(e))return r.apply(this,arguments)};return i.toString=()=>r.toString(),i}function T(e){return"_"===e[0]||("enter"===e||"exit"===e||"shouldSkip"===e||("denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e))}function x(e,t){for(const r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}const b={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(e))}};return Ys}var Gs,Qs={};var Zs,ea={};function ta(){if(Zs)return ea;Zs=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.clear=function(){t(),r()},ea.clearPath=t,ea.clearScope=r,ea.getCachedPaths=function(t){const{parent:r,parentPath:n}=t;return e.get(r)},ea.getOrCreateCachedPaths=function(t,r){let n=e.get(t);n||e.set(t,n=new Map);return n},ea.scope=ea.path=void 0;let e=ea.path=new WeakMap;function t(){ea.path=e=new WeakMap}function r(){ea.scope=new WeakMap}return ea.scope=new WeakMap,ea}var ra,na=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"],ia=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"];function sa(){if(ra)return qs;ra=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var e=function(){if(Ws)return $s;Ws=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e=Ni(),t=e,r=Io(),n=zs(),i=ko();const{getAssignmentIdentifiers:s}=t,a={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():i.requeueComputedKeyAndDecorators.call(e)))},ObjectProperty({node:e,scope:t},r){const{name:n}=e.key;var i;!e.shorthand||n!==r.oldName&&n!==r.newName||t.getBindingIdentifier(n)!==r.binding.identifier||(e.shorthand=!1,null!=(i=e.extra)&&i.shorthand&&(e.extra.shorthand=!1))},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;const r=e.isAssignmentExpression()?s(e.node):e.getOuterBindingIdentifiers();for(const e in r)e===t.oldName&&(r[e].name=t.newName)}};return $s.default=class{constructor(e,t,r){this.newName=r,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(t){const r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){const{declaration:t}=r.node;if(e.isDeclaration(t)&&!t.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){const{binding:t,oldName:i,newName:s}=this,{scope:o,path:l}=t,c=l.find(e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression());c&&c.getOuterBindingIdentifiers()[i]===t.identifier&&this.maybeConvertFromExportDeclaration(c);const p=arguments[0]||o.block,u={discriminant:!0};e.isMethod(p)&&(p.computed&&(u.key=!0),e.isObjectMethod(p)||(u.decorators=!0)),(0,r.traverseNode)(p,(0,n.explode)(a),o,this,o.path,u),arguments[0]||(o.removeOwnBinding(i),o.bindings[s]=t,this.binding.identifier.name=s),c&&(this.maybeConvertFromClassFunctionDeclaration(l),this.maybeConvertFromClassFunctionExpression(l))}},$s}(),t=Do(),r=(Gs||(Gs=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.default=void 0,Qs.default=class{constructor({identifier:e,scope:t,path:r,kind:n}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=t,this.path=r,this.kind=n,"var"!==n&&"hoisted"!==n||!function(e){const t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:n}=e;r;({parentPath:r,key:n}=r)){if(r.isFunctionParent())return!1;if("left"===n&&r.isForXStatement()||t&&"body"===n&&r.isLoop())return!0}return!1}(r)||this.reassign(r),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,this.constantViolations.includes(e)||this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}),Qs),n=Ni(),i=n,s=ta();const a=na,o=ia,{assignmentExpression:l,callExpression:c,cloneNode:p,getBindingIdentifiers:u,identifier:h,isArrayExpression:d,isBinary:f,isCallExpression:m,isClass:y,isClassBody:g,isClassDeclaration:T,isExportAllDeclaration:x,isExportDefaultDeclaration:b,isExportNamedDeclaration:S,isFunctionDeclaration:v,isIdentifier:E,isImportDeclaration:P,isLiteral:A,isMemberExpression:C,isMethod:w,isModuleSpecifier:_,isNullLiteral:I,isObjectExpression:k,isProperty:O,isPureish:N,isRegExpLiteral:L,isSuper:D,isTaggedTemplateExpression:M,isTemplateLiteral:B,isThisExpression:F,isUnaryExpression:j,isVariableDeclaration:R,expressionStatement:V,matchesPattern:U,memberExpression:K,numericLiteral:H,toIdentifier:W,variableDeclaration:q,variableDeclarator:$,isRecordExpression:Y,isTupleExpression:J,isObjectProperty:X,isTopicReference:z,isMetaProperty:G,isPrivateName:Q,isExportDeclaration:Z,buildUndefinedNode:ee,sequenceExpression:te}=n;function re(e,t){switch(null==e?void 0:e.type){default:var r;if(P(e)||Z(e))if((x(e)||S(e)||P(e))&&e.source)re(e.source,t);else if((S(e)||P(e))&&null!=(r=e.specifiers)&&r.length)for(const r of e.specifiers)re(r,t);else(b(e)||S(e))&&e.declaration&&re(e.declaration,t);else _(e)?re(e.local,t):!A(e)||I(e)||L(e)||B(e)||t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":re(e.object,t),re(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":re(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(const r of e.properties)re(r,t);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":re(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":re(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),re(e.argument,t);break;case"AwaitExpression":t.push("await"),re(e.argument,t);break;case"AssignmentExpression":re(e.left,t);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":re(e.id,t);break;case"ParenthesizedExpression":re(e.expression,t);break;case"MetaProperty":re(e.meta,t),re(e.property,t);break;case"JSXElement":re(e.openingElement,t);break;case"JSXOpeningElement":re(e.name,t);break;case"JSXFragment":re(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":re(e.namespace,t),re(e.name,t)}}function ne(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}var ie=Symbol.for("should not be considered a local binding");const se={ForStatement(e){const t=e.get("init");if(t.isVar()){const{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped())return;if(e.isImportDeclaration())return;if(e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){i.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){const r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){const{scope:t}=e;(t.getFunctionParent()||t.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){const{node:t,scope:r}=e;if(x(t))return;const n=t.declaration;if(T(n)||v(n)){const t=n.id;if(!t)return;const i=r.getBinding(t.name);null==i||i.reference(e)}else if(R(n))for(const t of n.declarations)for(const n of Object.keys(u(t))){const t=r.getBinding(n);null==t||t.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;t.path===e&&(t=t.parent);if(t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){const t=e.node.id.name;e.scope.bindings[t]=e.scope.parent.getBinding(t)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){const t=e.get("params");for(const r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[ie]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[ie]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}};let ae,oe=0;class le{constructor(e){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;const{node:t}=e,r=s.scope.get(t);if((null==r?void 0:r.path)===e)return r;s.scope.set(t,this),this.uid=oe++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e;let t,r=this.path;do{var n;const e="key"===r.key||"decorators"===r.listKey;r=r.parentPath,e&&r.isMethod()&&(r=r.parentPath),null!=(n=r)&&n.isScope()&&(t=r)}while(r&&!t);return null==(e=t)?void 0:e.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);return this.push({id:t}),p(t)}generateUidIdentifier(e){return h(this.generateUid(e))}generateUid(e="temp"){let t;e=W(e).replace(/^_+/,"").replace(/\d+$/g,"");let r=0;do{t=`_${e}`,r>=11?t+=r-1:r>=9?t+=r-9:r>=1&&(t+=r+1),r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const n=this.getProgramParent();return n.references[t]=!0,n.uids[t]=!0,t}generateUidBasedOnNode(e,t){const r=[];re(e,r);let n=r.join("$");return n=n.replace(/^_/,"")||t||"ref",this.generateUid(n.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return h(this.generateUidBasedOnNode(e,t))}isStatic(e){if(F(e)||D(e)||z(e))return!0;if(E(e)){const t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{const r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),p(r))}}checkBlockScopedCollisions(e,t,r,n){if("param"===t)return;if("local"===e.kind)return;if("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t)throw this.path.hub.buildError(n,`Duplicate declaration "${r}"`,TypeError)}rename(t,r){const n=this.getBinding(t);if(n){r||(r=this.generateUidIdentifier(t).name);new e.default(n,t,r).rename(arguments[2])}}dump(){const e="-".repeat(60);console.log(e);let t=this;do{console.log("#",t.block.type);for(const e of Object.keys(t.bindings)){const r=t.bindings[e];console.log(" -",e,{constant:r.constant,references:r.references,violations:r.constantViolations.length,kind:r.kind})}}while(t=t.parent);console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){const t=e.get("declarations"),{kind:r}=e.node;for(const e of t)this.registerBinding("using"===r||"await using"===r?"const":r,e)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){const t="type"===e.node.importKind||"typeof"===e.node.importKind,r=e.get("specifiers");for(const e of r){const r=t||e.isImportSpecifier()&&("type"===e.node.importKind||"typeof"===e.node.importKind);this.registerBinding(r?"unknown":"module",e)}}else if(e.isExportDeclaration()){const t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return ee()}registerConstantViolation(e){const t=e.getAssignmentIdentifiers();for(const n of Object.keys(t)){var r;null==(r=this.getBinding(n))||r.reassign(e)}}registerBinding(e,t,n=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const r=t.get("declarations");for(const t of r)this.registerBinding(e,t);return}const i=this.getProgramParent(),s=t.getOuterBindingIdentifiers(!0);for(const t of Object.keys(s)){i.references[t]=!0;for(const i of s[t]){const s=this.getOwnBinding(t);if(s){if(s.identifier===i)continue;this.checkBlockScopedCollisions(s,e,t,i)}s?s.reassign(n):this.bindings[t]=new r.default({identifier:i,scope:this,path:n,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){{let t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1}}hasGlobal(e){let t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(E(e)){const r=this.getBinding(e.name);return!!r&&(!t||r.constant)}if(F(e)||G(e)||z(e)||Q(e))return!0;var r,n,s;if(y(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&(!((null==(r=e.decorators)?void 0:r.length)>0)&&this.isPure(e.body,t));if(g(e)){for(const r of e.body)if(!this.isPure(r,t))return!1;return!0}if(f(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(d(e)||J(e)){for(const r of e.elements)if(null!==r&&!this.isPure(r,t))return!1;return!0}if(k(e)||Y(e)){for(const r of e.properties)if(!this.isPure(r,t))return!1;return!0}if(w(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(n=e.decorators)?void 0:n.length)>0);if(O(e))return!(e.computed&&!this.isPure(e.key,t))&&(!((null==(s=e.decorators)?void 0:s.length)>0)&&!((X(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t)));if(j(e))return this.isPure(e.argument,t);if(B(e)){for(const r of e.expressions)if(!this.isPure(r,t))return!1;return!0}return M(e)?U(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):C(e)?!e.computed&&E(e.object)&&"Symbol"===e.object.name&&E(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):m(e)?U(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&i.isStringLiteral(e.arguments[0]):N(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const r=t.data[e];if(null!=r)return r}while(t=t.parent)}removeData(e){let t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const e=this.path;ne(this),this.data=Object.create(null);let r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);const n=r,i={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,ae||(ae=t.default.visitors.merge([{Scope(e){ne(e.scope)}},se])),"Program"!==e.type){for(const t of ae.enter)t.call(i,e,i);const t=ae[e.type];if(t)for(const r of t.enter)r.call(i,e,i)}e.traverse(ae,i),this.crawling=!1;for(const e of i.assignments){const t=e.getAssignmentIdentifiers();for(const r of Object.keys(t))e.scope.getBinding(r)||n.addGlobal(t[r]);e.scope.registerConstantViolation(e)}for(const e of i.references){const t=e.scope.getBinding(e.node.name);t?t.reference(e):n.addGlobal(e.node)}for(const e of i.constantViolations)e.scope.registerConstantViolation(e)}push(e){let t=this.path;t.isPattern()?t=this.getPatternParent().path:t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=(this.getFunctionParent()||this.getProgramParent()).path);const{init:r,unique:n,kind:i="var",id:s}=e;if(!r&&!n&&("var"===i||"let"===i)&&t.isFunction()&&!t.node.name&&m(t.parent,{callee:t.node})&&t.parent.arguments.length<=t.node.params.length&&E(s))return t.pushContainer("params",s),void t.scope.registerBinding("param",t.get("params")[t.node.params.length-1]);(t.isLoop()||t.isCatchClause()||t.isFunction())&&(t.ensureBlock(),t=t.get("body"));const a=null==e._blockHoist?2:e._blockHoist,o=`declaration:${i}:${a}`;let l=!n&&t.getData(o);if(!l){const e=q(i,[]);e._blockHoist=a,[l]=t.unshiftContainer("body",[e]),n||t.setData(o,l)}const c=$(s,r),p=l.node.declarations.push(c);t.scope.registerBinding(i,l.get("declarations")[p-1])}getProgramParent(){let e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);return null}getBlockParent(){let e=this;do{if(e.path.isBlockParent())return e}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do{if(!e.path.isPattern())return e.getBlockParent()}while(e=e.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const e=Object.create(null);let t=this;do{for(const r of Object.keys(t.bindings))r in e==!1&&(e[r]=t.bindings[r]);t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t,r=this;do{const i=r.getOwnBinding(e);var n;if(i){if(null==(n=t)||!n.isPattern()||"param"===i.kind||"local"===i.kind)return i}else if(!i&&"arguments"===e&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;t=r.path}while(r=r.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return null==(t=this.getBinding(e))?void 0:t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return null==t?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){if(!e)return!1;let r,n,i;"object"==typeof t?(r=t.noGlobals,n=t.noUids,i=t.upToScope):"boolean"==typeof t&&(r=t);let s=this;do{if(i===s)break;if(s.hasOwnBinding(e))return!0}while(s=s.parent);return!(n||!this.hasUid(e))||(!(r||!le.globals.includes(e))||!(r||!le.contextVariables.includes(e)))}parentHasBinding(e,t){var r;return null==(r=this.parent)?void 0:r.hasBinding(e,t)}moveBindingTo(e,t){const r=this.getBinding(e);r&&(r.scope.removeOwnBinding(e),r.scope=t,t.bindings[e]=r)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwnBinding(e);{let t=this;do{t.uids[e]&&(t.uids[e]=!1)}while(t=t.parent)}}hoistVariables(e=e=>this.push({id:e})){this.crawl();const t=new Set;for(const r of Object.keys(this.bindings)){const n=this.bindings[r];if(!n)continue;const{path:i}=n;if(!i.isVariableDeclarator())continue;const{parent:s,parentPath:a}=i;if("var"!==s.kind||t.has(s))continue;let o;t.add(i.parent);const c=[];for(const t of s.declarations){null!=o||(o=t.id),t.init&&c.push(l("=",t.id,t.init));const r=Object.keys(u(t,!1,!0,!0));for(const n of r)e(h(n),null!=t.init)}if(a.parentPath.isFor({left:s}))a.replaceWith(o);else if(0===c.length)a.remove();else{const e=1===c.length?c[0]:te(c);a.parentPath.isForStatement({init:s})?a.replaceWith(e):a.replaceWith(V(e))}}}}return qs.default=le,le.globals=[...a,...o],le.contextVariables=["arguments","undefined","Infinity","NaN"],le.prototype._renameFromMap=function(e,t,r,n){e[t]&&(e[r]=n,e[t]=null)},le.prototype.traverse=function(e,r,n){(0,t.default)(e,r,this,n,this.path)},le.prototype._generateUid=function(e,t){let r=e;return t>1&&(r+=t),`_${r}`},le.prototype.toArray=function(e,t,r){if(E(e)){const t=this.getBinding(e.name);if(null!=t&&t.constant&&t.path.isGenericType("Array"))return e}if(d(e))return e;if(E(e,{name:"arguments"}))return c(K(K(K(h("Array"),h("prototype")),h("slice")),h("call")),[e]);let n;const i=[e];return!0===t?n="toConsumableArray":"number"==typeof t?(i.push(H(t)),n="slicedToArray"):n="toArray",r&&(i.unshift(this.path.hub.addHelper(n)),n="maybeArrayLike"),c(this.path.hub.addHelper(n),i)},le.prototype.getAllBindingsOfKind=function(...e){const t=Object.create(null);for(const r of e){let e=this;do{for(const n of Object.keys(e.bindings)){const i=e.bindings[n];i.kind===r&&(t[n]=i)}e=e.parent}while(e)}return t},Object.defineProperties(le.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}}),qs}var aa,oa={};var la,ca,pa,ua,ha={},da={},fa={},ma={};function ya(){if(la)return ma;la=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.createUnionType=function(e){if(e.every(e=>i(e)))return t?t(e):n(e);if(e.every(e=>s(e))&&r)return r(e)};var e=Ni();const{createFlowUnionType:t,createTSUnionType:r,createUnionTypeAnnotation:n,isFlowType:i,isTSType:s}=e;return ma}function ga(){if(ca)return fa;ca=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.default=function(e){if(!this.isReferenced())return;const r=this.scope.getBinding(e.name);if(r)return r.identifier.typeAnnotation?r.identifier.typeAnnotation:function(e,r,n){const i=[],s=[];let o=a(e,r,s);const c=l(e,r,n);if(c){const t=a(e,c.ifStatement);o=o.filter(e=>!t.includes(e)),i.push(c.typeAnnotation)}if(o.length){o.push(...s);for(const e of o)i.push(e.getTypeAnnotation())}if(!i.length)return;return(0,t.createUnionType)(i)}(r,this,e.name);if("undefined"===e.name)return s();if("NaN"===e.name||"Infinity"===e.name)return i();e.name};var e=Ni(),t=ya();const{BOOLEAN_NUMBER_BINARY_OPERATORS:r,createTypeAnnotationBasedOnTypeof:n,numberTypeAnnotation:i,voidTypeAnnotation:s}=e;function a(e,t,r){const n=e.constantViolations.slice();return n.unshift(e.path),n.filter(e=>{const n=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return r&&"unknown"===n&&r.push(e),"before"===n})}function o(e,t){const s=t.node.operator,a=t.get("right").resolve(),o=t.get("left").resolve();let l,c,p;if(o.isIdentifier({name:e})?l=a:a.isIdentifier({name:e})&&(l=o),l)return"==="===s?l.getTypeAnnotation():r.includes(s)?i():void 0;if("==="!==s&&"=="!==s)return;if(o.isUnaryExpression({operator:"typeof"})?(c=o,p=a):a.isUnaryExpression({operator:"typeof"})&&(c=a,p=o),!c)return;if(!c.get("argument").isIdentifier({name:e}))return;if(p=p.resolve(),!p.isLiteral())return;const u=p.node.value;return"string"==typeof u?n(u):void 0}function l(e,r,n){const i=function(e,t,r){let n;for(;n=t.parentPath;){if(n.isIfStatement()||n.isConditionalExpression()){if("test"===t.key)return;return n}if(n.isFunction()&&n.parentPath.scope.getBinding(r)!==e)return;t=n}}(e,r,n);if(!i)return;const s=[i.get("test")],a=[];for(let e=0;e<s.length;e++){const t=s[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(s.push(t.get("left")),s.push(t.get("right")));else if(t.isBinaryExpression()){const e=o(n,t);e&&a.push(e)}}return a.length?{typeAnnotation:(0,t.createUnionType)(a),ifStatement:i}:l(e,i,n)}return fa}function Ta(){return pa||(pa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayExpression=P,e.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},e.BinaryExpression=function(e){const t=e.operator;if(a.includes(t))return y();if(i.includes(t))return u();if("+"===t){const e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?y():t.isBaseType("string")||e.isBaseType("string")?g():x([g(),y()])}},e.BooleanLiteral=function(){return u()},e.CallExpression=function(){const{callee:e}=this.node;if(w(e))return p(g());if(C(e)||_(e)||S(e,{name:"Array"}))return p(c());if(I(e))return p(T([g(),c()]));return k(this.get("callee"))},e.ConditionalExpression=function(){const e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,n.createUnionType)(e)},e.ClassDeclaration=e.ClassExpression=e.FunctionDeclaration=e.ArrowFunctionExpression=e.FunctionExpression=function(){return d(f("Function"))},Object.defineProperty(e,"Identifier",{enumerable:!0,get:function(){return r.default}}),e.LogicalExpression=function(){const e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,n.createUnionType)(e)},e.NewExpression=function(e){if("Identifier"===e.callee.type)return d(e.callee)},e.NullLiteral=function(){return m()},e.NumericLiteral=function(){return y()},e.ObjectExpression=function(){return d(f("Object"))},e.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},e.RegExpLiteral=function(){return d(f("RegExp"))},e.RestElement=A,e.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},e.StringLiteral=function(){return g()},e.TSAsExpression=E,e.TSNonNullExpression=function(){return this.get("expression").getTypeAnnotation()},e.TaggedTemplateExpression=function(){return k(this.get("tag"))},e.TemplateLiteral=function(){return g()},e.TypeCastExpression=v,e.UnaryExpression=function(e){const t=e.operator;if("void"===t)return b();if(o.includes(t))return y();if(l.includes(t))return g();if(s.includes(t))return u()},e.UpdateExpression=function(e){const t=e.operator;if("++"===t||"--"===t)return y()},e.VariableDeclarator=function(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()};var t=Ni(),r=ga(),n=ya();const{BOOLEAN_BINARY_OPERATORS:i,BOOLEAN_UNARY_OPERATORS:s,NUMBER_BINARY_OPERATORS:a,NUMBER_UNARY_OPERATORS:o,STRING_UNARY_OPERATORS:l,anyTypeAnnotation:c,arrayTypeAnnotation:p,booleanTypeAnnotation:u,buildMatchMemberExpression:h,genericTypeAnnotation:d,identifier:f,nullLiteralTypeAnnotation:m,numberTypeAnnotation:y,stringTypeAnnotation:g,tupleTypeAnnotation:T,unionTypeAnnotation:x,voidTypeAnnotation:b,isIdentifier:S}=t;function v(e){return e.typeAnnotation}function E(e){return e.typeAnnotation}function P(){return d(f("Array"))}function A(){return P()}v.validParent=!0,E.validParent=!0,A.validParent=!0;const C=h("Array.from"),w=h("Object.keys"),_=h("Object.values"),I=h("Object.entries");function k(e){if((e=e.resolve()).isFunction()){const{node:t}=e;if(t.async)return t.generator?d(f("AsyncIterator")):d(f("Promise"));if(t.generator)return d(f("Iterator"));if(e.node.returnType)return e.node.returnType}}}(da)),da}var xa,ba={},Sa={},va={exports:{}};function Ea(){if(xa)return va.exports;xa=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return va.exports=t(),va.exports.createColors=t,va.exports}var Pa,Aa,Ca={};function wa(){return Pa||(Pa=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,Ca.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}),Ca}function _a(){if(Aa)return Sa;Aa=1,Object.defineProperty(Sa,"__esModule",{value:!0});var e=Ea(),t=wa(),r=xt();const n=(e,t)=>r=>e(t(r));function i(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:n(n(e.white,e.bgRed),e.bold),gutter:e.gray,marker:n(e.red,e.bold),message:n(e.red,e.bold),reset:e.reset}}const s=i(e.createColors(!0)),a=i(e.createColors(!1));function o(e){return e?s:a}const l=new Set(["as","async","from","get","of","set"]),c=/\r\n|[\n\r\u2028\u2029]/,p=/^[()[\]{}]$/;let u;{const e=/^[a-z][\w-]*$/i,n=function(t,n,i){if("name"===t.type){if(r.isKeyword(t.value)||r.isStrictReservedWord(t.value,!0)||l.has(t.value))return"keyword";if(e.test(t.value)&&("<"===i[n-1]||"</"===i.slice(n-2,n)))return"jsxIdentifier";if(t.value[0]!==t.value[0].toLowerCase())return"capitalized"}return"punctuator"===t.type&&p.test(t.value)?"bracket":"invalid"!==t.type||"@"!==t.value&&"#"!==t.value?t.type:"punctuator"};u=function*(e){let r;for(;r=t.default.exec(e);){const i=t.matchToToken(r);yield{type:n(i,r.index,e),value:i.value}}}}function h(e){if(""===e)return"";const t=o(!0);let r="";for(const{type:n,value:i}of u(e))r+=n in t?i.split(c).map(e=>t[n](e)).join("\n"):i;return r}let d=!1;const f=/\r\n|[\n\r\u2028\u2029]/;function m(t,r,n={}){const i=n.forceColor||("object"!=typeof process||"0"!==process.env.FORCE_COLOR&&"false"!==process.env.FORCE_COLOR)&&e.isColorSupported&&n.highlightCode,s=o(i),a=t.split(f),{start:l,end:c,markerLines:p}=function(e,t,r){const n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:a=3}=r||{},o=n.line,l=n.column,c=i.line,p=i.column;let u=Math.max(o-(s+1),0),h=Math.min(t.length,c+a);-1===o&&(u=0),-1===c&&(h=t.length);const d=c-o,f={};if(d)for(let e=0;e<=d;e++){const r=e+o;if(l)if(0===e){const e=t[r-1].length;f[r]=[l,e-l+1]}else if(e===d)f[r]=[0,p];else{const n=t[r-e].length;f[r]=[0,n]}else f[r]=!0}else f[o]=l===p?!l||[l,0]:[l,p-l];return{start:u,end:h,markerLines:f}}(r,a,n),u=r.start&&"number"==typeof r.start.column,d=String(c).length;let m=(i?h(t):t).split(f,c).slice(l,c).map((e,t)=>{const r=l+1+t,i=` ${` ${r}`.slice(-d)} |`,a=p[r],o=!p[r+1];if(a){let t="";if(Array.isArray(a)){const r=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," "),l=a[1]||1;t=["\n ",s.gutter(i.replace(/\d/g," "))," ",r,s.marker("^").repeat(l)].join(""),o&&n.message&&(t+=" "+s.message(n.message))}return[s.marker(">"),s.gutter(i),e.length>0?` ${e}`:"",t].join("")}return` ${s.gutter(i)}${e.length>0?` ${e}`:""}`}).join("\n");return n.message&&!u&&(m=`${" ".repeat(d+1)}${n.message}\n${m}`),i?s.reset(m):m}return Sa.codeFrameColumns=m,Sa.default=function(e,t,r,n={}){if(!d){d=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(e,"DeprecationWarning");else{new Error(e).name="DeprecationWarning",console.warn(new Error(e))}}return m(e,{start:{column:r=Math.max(r,0),line:t}},n)},Sa.highlight=h,Sa}var Ia,ka,Oa={},Na={},La={};function Da(){if(ka)return Na;ka=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na._assertUnremoved=h,Na._callRemovalHooks=c,Na._markRemoved=u,Na._remove=p,Na._removeFromScope=l,Na.remove=function(){var e;if(h.call(this),a.resync.call(this),c.call(this))return void u.call(this);null!=(e=this.opts)&&e.noScope||l.call(this);this.shareCommentsWithSiblings(),p.call(this),u.call(this)};var e=(Ia||(Ia=1,Object.defineProperty(La,"__esModule",{value:!0}),La.hooks=void 0,La.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&"consequent"===e.key||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}]),La),t=ta(),r=Va(),n=_o(),i=Ni(),s=Ra(),a=ko();const{getBindingIdentifiers:o}=i;function l(){const e=o(this.node,!1,!1,!0);Object.keys(e).forEach(e=>this.scope.removeBinding(e))}function c(){if(this.parentPath)for(const t of e.hooks)if(t(this,this.parentPath))return!0}function p(){Array.isArray(this.container)?(this.container.splice(this.key,1),s.updateSiblingKeys.call(this,this.key,-1)):r._replaceWith.call(this,null)}function u(){var e;(this._traverseFlags|=n.SHOULD_SKIP|n.REMOVED,this.parent)&&(null==(e=(0,t.getCachedPaths)(this))||e.delete(this.node));this.node=null}function h(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}return Na}var Ma,Ba,Fa,ja={};function Ra(){if(Ba)return Oa;Ba=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa._containerInsert=S,Oa._containerInsertAfter=E,Oa._containerInsertBefore=v,Oa._verifyNodeList=w,Oa.insertAfter=function(e){if(n._assertUnremoved.call(this),this.isSequenceExpression())return P(this.get("expressions")).insertAfter(e);const t=w.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||m(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(e=>y(e)?h(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&"init"===this.key){const e=this;if(e.node){const n=e.node;let{scope:i}=this;if(i.path.isPattern())return o(n),e.replaceWith(p(a([],n),[])),e.get("callee.body").insertAfter(t),[e];if(A(e))t.unshift(n);else if(f(n)&&x(n.callee))t.unshift(n),t.push(b());else if(function(e,t){if(!d(e)||!g(e.left))return!1;const r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}(n,i))t.unshift(n),t.push(u(n.left));else if(i.isPure(n,!0))t.push(n);else{r.isMethod({computed:!0,key:n})&&(i=i.parent);const e=i.generateDeclaredUidIdentifier();t.unshift(h(l("=",u(e),n))),t.push(h(u(e)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return E.call(this,t);if(this.isStatementOrBlock()){const e=this.node,r=e&&(!this.isExpressionStatement()||null!=e.expression),[n]=this.replaceWith(c(r?[e]:[]));return n.pushContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},Oa.insertBefore=function(e){n._assertUnremoved.call(this);const t=w.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||m(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return v.call(this,t);if(this.isStatementOrBlock()){const e=this.node,r=e&&(!this.isExpressionStatement()||null!=e.expression),[n]=this.replaceWith(c(r?[e]:[]));return n.unshiftContainer("body",t)}throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},Oa.pushContainer=function(e,r){n._assertUnremoved.call(this);const i=w.call(this,r),s=this.node[e],a=t.default.get({parentPath:this,parent:this.node,container:s,listKey:e,key:s.length}).setContext(this.context);return a.replaceWithMultiple(i)},Oa.unshiftContainer=function(e,r){n._assertUnremoved.call(this);const i=w.call(this,r),s=this.node[e],a=t.default.get({parentPath:this,parent:this.node,container:s,listKey:e,key:0}).setContext(this.context);return v.call(a,i)},Oa.updateSiblingKeys=C;var e=ta(),t=_o(),r=ko(),n=Da(),i=Ni(),s=function(){if(Ma)return ja;Ma=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.default=void 0;var e=Ni(),t=e;const{react:r}=e,{cloneNode:n,jsxExpressionContainer:i,variableDeclaration:s,variableDeclarator:a}=t,o={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&r.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if("this"===e.node.name){let r=e.scope;do{if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);r&&t.breakOnScopePaths.push(r.path)}const n=e.scope.getBinding(e.node.name);if(n){for(const r of n.constantViolations)if(r.scope!==n.path.scope)return t.mutableBinding=!0,void e.stop();n===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=n)}}};return ja.default=class{constructor(e,t){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const r=this.bindings[t];if(!e.bindingIdentifierEquals(t,r.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.includes(e.path))break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(const r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;const n=this.bindings[r];if("param"!==n.kind&&"params"!==n.path.parentKey&&this.getAttachmentParentForPath(n.path).key>=e.key){this.attachAfter=!0,e=n.path;for(const t of n.constantViolations)this.getAttachmentParentForPath(t).key>e.key&&(e=t)}}return e}_getAttachmentPath(){const e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();{if(this.scope===e)return;const t=e.path.get("body").get("body");for(let e=0;e<t.length;e++)if(!t[e].node._blockHoist)return t[e]}}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e}while(e=e.parentPath)}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const r=this.bindings[t];if("param"===r.kind&&r.constant)return!0}return!1}run(){if(this.path.traverse(o,this),this.mutableBinding)return;this.getCompatibleScopes();const e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref");const r=a(t,this.path.node),l=this.attachAfter?"insertAfter":"insertBefore",[c]=e[l]([e.isVariableDeclarator()?r:s("var",[r])]),p=this.path.parentPath;return p.isJSXElement()&&this.path.container===p.node.children&&(t=i(t)),this.path.replaceWith(n(t)),c.isVariableDeclarator()?c.get("init"):c.get("declarations.0.init")}},ja}();const{arrowFunctionExpression:a,assertExpression:o,assignmentExpression:l,blockStatement:c,callExpression:p,cloneNode:u,expressionStatement:h,isAssignmentExpression:d,isCallExpression:f,isExportNamedDeclaration:m,isExpression:y,isIdentifier:g,isSequenceExpression:T,isSuper:x,thisExpression:b}=i;function S(e,t){C.call(this,e,t.length);const n=[];this.container.splice(e,0,...t);for(let s=0;s<t.length;s++){var i;const t=e+s,a=this.getSibling(t);n.push(a),null!=(i=this.context)&&i.queue&&r.pushContext.call(a,this.context)}const s=r._getQueueContexts.call(this);for(const e of n){r.setScope.call(e),e.debug("Inserted.");for(const t of s)t.maybeQueue(e,!0)}return n}function v(e){return S.call(this,this.key,e)}function E(e){return S.call(this,this.key+1,e)}const P=e=>e[e.length-1];function A(e){return T(e.parent)&&(P(e.parent.expressions)!==e.node||A(e.parentPath))}function C(t,r){if(!this.parent)return;const n=(0,e.getCachedPaths)(this);if(n)for(const[,e]of n)"number"==typeof e.key&&e.container===this.container&&e.key>=t&&(e.key+=r)}function w(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let r=0;r<e.length;r++){const n=e[r];let i;if(n?"object"!=typeof n?i="contains a non-object node":n.type?n instanceof t.default&&(i="has a NodePath when it expected a raw object"):i="without a type":i="has falsy node",i){const e=Array.isArray(n)?"array":typeof n;throw new Error(`Node list ${i} with the index of ${r} and type of ${e}`)}}return e}return Oa.hoist=function(e=this.scope){return new s.default(this,e).run()},Oa}function Va(){if(Fa)return ba;Fa=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba._replaceWith=B,ba.replaceExpressionWithStatements=function(e){o.resync.call(this);const r=[],n=F(e,r);if(n){for(const e of r)this.scope.push({id:e});return this.replaceWith(n)[0].get("expressions")}const i=this.getFunctionParent(),s=null==i?void 0:i.node.async,a=null==i?void 0:i.node.generator,d=c([],h(e));this.replaceWith(f(d,[]));const y=this.get("callee");y.get("body").scope.hoistVariables(e=>this.scope.push({id:e}));const g=y.getCompletionRecords();for(const e of g){if(!e.isExpressionStatement())continue;const t=e.findParent(e=>e.isLoop());if(t){let r=t.getData("expressionReplacementReturnUid");r?r=x(r.name):(r=y.scope.generateDeclaredUidIdentifier("ret"),y.get("body").pushContainer("body",N(m(r))),t.setData("expressionReplacementReturnUid",r)),e.get("expression").replaceWith(p("=",m(r),e.node.expression))}else e.replaceWith(N(e.node.expression))}y.arrowFunctionToExpression();const T=y,b=s&&t.default.hasType(this.get("callee.body").node,"AwaitExpression",l),S=a&&t.default.hasType(this.get("callee.body").node,"YieldExpression",l);b&&(T.set("async",!0),S||this.replaceWith(u(this.node)));S&&(T.set("generator",!0),this.replaceWith(M(this.node,!0)));return T.get("body.body")},ba.replaceInline=function(e){if(o.resync.call(this),Array.isArray(e)){if(Array.isArray(this.container)){e=i._verifyNodeList.call(this,e);const t=i._containerInsertAfter.call(this,e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)},ba.replaceWith=function(e){if(o.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof r.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!_(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof t)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let n="";this.isNodeType("Statement")&&A(t)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(t)||this.parentPath.isExportDefaultDeclaration()||(t=g(t),n="expression"));if(this.isNodeType("Expression")&&I(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);const i=this.node;i&&(v(t,i),O(i));return B.call(this,t),this.type=t.type,o.setScope.call(this),this.requeue(),[n?this.get(n):this]},ba.replaceWithMultiple=function(e){var t;o.resync.call(this);const r=i._verifyNodeList.call(this,e);b(r[0],this.node),S(r[r.length-1],this.node),null==(t=(0,n.getCachedPaths)(this))||t.delete(this.node),this.node=this.container[this.key]=null;const s=this.insertAfter(e);this.node?this.requeue():this.remove();return s},ba.replaceWithSourceString=function(r){let n;o.resync.call(this);try{r=`(${r})`,n=(0,s.parse)(r)}catch(t){const n=t.loc;throw n&&(t.message+=" - make sure this is an expression.\n"+(0,e.codeFrameColumns)(r,{start:{line:n.line,column:n.column+1}}),t.code="BABEL_REPLACE_SOURCE_ERROR"),t}const i=n.program.body[0].expression;return t.default.removeProperties(i),this.replaceWith(i)};var e=_a(),t=Do(),r=_o(),n=ta(),i=Ra(),s=be(),a=Ni(),o=ko();const{FUNCTION_TYPES:l,arrowFunctionExpression:c,assignmentExpression:p,awaitExpression:u,blockStatement:h,buildUndefinedNode:d,callExpression:f,cloneNode:m,conditionalExpression:y,expressionStatement:g,getBindingIdentifiers:T,identifier:x,inheritLeadingComments:b,inheritTrailingComments:S,inheritsComments:v,isBlockStatement:E,isEmptyStatement:P,isExpression:A,isExpressionStatement:C,isIfStatement:w,isProgram:_,isStatement:I,isVariableDeclaration:k,removeComments:O,returnStatement:N,sequenceExpression:L,validate:D,yieldExpression:M}=a;function B(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?D(this.parent,this.key,[e]):D(this.parent,this.key,e),this.debug(`Replace with ${null==e?void 0:e.type}`),null==(t=(0,n.getCachedPaths)(this))||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e}function F(e,t){const r=[];let n=!0;for(const i of e)if(P(i)||(n=!1),A(i))r.push(i);else if(C(i))r.push(i.expression);else if(k(i)){if("var"!==i.kind)return;for(const e of i.declarations){const n=T(e);for(const e of Object.keys(n))t.push(m(n[e]));e.init&&r.push(p("=",e.id,e.init))}n=!0}else if(w(i)){const e=i.consequent?F([i.consequent],t):d(),n=i.alternate?F([i.alternate],t):d();if(!e||!n)return;r.push(y(i.test,e,n))}else if(E(i)){const e=F(i.body,t);if(!e)return;r.push(e)}else{if(!P(i))return;0===e.indexOf(i)&&(n=!0)}return n&&r.push(d()),1===r.length?r[0]:L(r)}return ba}var Ua,Ka={};function Ha(){if(Ua)return Ka;Ua=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.evaluate=function(){const e={confident:!0,deoptPath:null,seen:new Map};let t=a(this,e);e.confident||(t=void 0);return{confident:e.confident,deopt:e.deoptPath,value:t}},Ka.evaluateTruthy=function(){const e=this.evaluate();if(e.confident)return!!e.value};const e=["Number","String","Math"],t=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],r=["random"];function n(t){return e.includes(t)}function i(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}const s=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function a(e,l){const{node:p}=e,{seen:u}=l;if(u.has(p)){const t=u.get(p);return t.resolved?t.value:void i(e,l)}{const h={resolved:!1};u.set(p,h);const d=function(e,l){if(!l.confident)return;if(e.isSequenceExpression()){const t=e.get("expressions");return a(t[t.length-1],l)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return o(e,e.node.quasis,l);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const t=e.get("tag.object"),{node:{name:r}}=t,n=e.get("tag.property");if(t.isIdentifier()&&"String"===r&&!e.scope.getBinding(r)&&n.isIdentifier()&&"raw"===n.node.name)return o(e,e.node.quasi.quasis,l,!0)}if(e.isConditionalExpression()){const t=a(e.get("test"),l);if(!l.confident)return;return a(t?e.get("consequent"):e.get("alternate"),l)}if(e.isExpressionWrapper())return a(e.get("expression"),l);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){const t=e.get("property"),r=e.get("object");if(r.isLiteral()){const n=r.node.value,i=typeof n;let s=null;if(e.node.computed){if(s=a(t,l),!l.confident)return}else t.isIdentifier()&&(s=t.node.name);if(!("number"!==i&&"string"!==i||null==s||"number"!=typeof s&&"string"!=typeof s))return n[s]}}if(e.isReferencedIdentifier()){const t=e.scope.getBinding(e.node.name);if(t){if(t.constantViolations.length>0||e.node.start<t.path.node.end)return void i(t.path,l);const r=t.path.scope;if("var"===t.kind&&r!==t.scope){let n=!r.path.parentPath.isBlockStatement();for(let s=r.parent;s;s=s.parent){var p;if(s===e.scope){if(n)return void i(t.path,l);break}null!=(p=s.path.parentPath)&&p.isBlockStatement()&&(n=!0)}}if(t.hasValue)return t.value}const r=e.node.name;if(s.has(r))return t?void i(t.path,l):s.get(r);const n=e.resolve();if(n===e)return void i(e,l);const o=a(n,l);return"object"==typeof o&&null!==o&&t.references>1?void i(n,l):o}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;const t=e.get("argument");if("typeof"===e.node.operator&&(t.isFunction()||t.isClass()))return"function";const r=a(t,l);if(!l.confident)return;switch(e.node.operator){case"!":return!r;case"+":return+r;case"-":return-r;case"~":return~r;case"typeof":return typeof r}}if(e.isArrayExpression()){const t=[],r=e.get("elements");for(const e of r){const r=e.evaluate();if(!r.confident)return void i(r.deopt,l);t.push(r.value)}return t}if(e.isObjectExpression()){const t={},r=e.get("properties");for(const e of r){if(e.isObjectMethod()||e.isSpreadElement())return void i(e,l);const r=e.get("key");let n;if(e.node.computed){if(n=r.evaluate(),!n.confident)return void i(n.deopt,l);n=n.value}else n=r.isIdentifier()?r.node.name:r.node.value;let s=e.get("value").evaluate();if(!s.confident)return void i(s.deopt,l);s=s.value,t[n]=s}return t}if(e.isLogicalExpression()){const t=l.confident,r=a(e.get("left"),l),n=l.confident;l.confident=t;const i=a(e.get("right"),l),s=l.confident;switch(e.node.operator){case"||":if(l.confident=n&&(!!r||s),!l.confident)return;return r||i;case"&&":if(l.confident=n&&(!r||s),!l.confident)return;return r&&i;case"??":if(l.confident=n&&(null!=r||s),!l.confident)return;return null!=r?r:i}}if(e.isBinaryExpression()){const t=a(e.get("left"),l);if(!l.confident)return;const r=a(e.get("right"),l);if(!l.confident)return;switch(e.node.operator){case"-":return t-r;case"+":return t+r;case"/":return t/r;case"*":return t*r;case"%":return t%r;case"**":return Math.pow(t,r);case"<":return t<r;case">":return t>r;case"<=":return t<=r;case">=":return t>=r;case"==":return t==r;case"!=":return t!=r;case"===":return t===r;case"!==":return t!==r;case"|":return t|r;case"&":return t&r;case"^":return t^r;case"<<":return t<<r;case">>":return t>>r;case">>>":return t>>>r}}if(e.isCallExpression()){const i=e.get("callee");let s,o;if(i.isIdentifier()&&!e.scope.getBinding(i.node.name)&&(n(i.node.name)||function(e){return t.includes(e)}(i.node.name))&&(o=c[i.node.name]),i.isMemberExpression()){const e=i.get("object"),t=i.get("property");if(e.isIdentifier()&&t.isIdentifier()&&n(e.node.name)&&!function(e){return r.includes(e)}(t.node.name)){s=c[e.node.name];const r=t.node.name;hasOwnProperty.call(s,r)&&(o=s[r])}if(e.isLiteral()&&t.isIdentifier()){const r=typeof e.node.value;"string"!==r&&"number"!==r||(s=e.node.value,o=s[t.node.name])}}if(o){const t=e.get("arguments").map(e=>a(e,l));if(!l.confident)return;return o.apply(s,t)}}i(e,l)}(e,l);return l.confident&&(h.resolved=!0,h.value=d),d}}function o(e,t,r,n=!1){let i="",s=0;const o=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(const e of t){if(!r.confident)break;i+=n?e.value.raw:e.value.cooked;const t=o[s++];t&&(i+=String(a(t,r)))}if(r.confident)return i}return Ka}var Wa,qa={},$a={},Ya={};function Ja(){if(Wa)return Ya;Wa=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.statements=Ya.statement=Ya.smart=Ya.program=Ya.expression=void 0;var e=Ni();const{assertExpressionStatement:t}=e;function r(e){return{code:e=>`/* @babel/template */;\n${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}Ya.smart=r(e=>e.length>1?e:e[0]),Ya.statements=r(e=>e),Ya.statement=r(e=>{if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]});const n=Ya.expression={code:e=>`(\n${e}\n)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===n.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{const[r]=e.body;return t(r),r.expression}};return Ya.program={code:e=>e,validate:()=>{},unwrap:e=>e.program},Ya}var Xa,za={},Ga={};function Qa(){if(Xa)return Ga;Xa=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.merge=function(e,t){const{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:n=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:n,preserveComments:i,syntacticPlaceholders:s}},Ga.normalizeReplacements=function(e){if(Array.isArray(e))return e.reduce((e,t,r)=>(e["$"+r]=t,e),{});if("object"==typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")},Ga.validate=function(t){if(null!=t&&"object"!=typeof t)throw new Error("Unknown template options.");const r=t||{},{placeholderWhitelist:n,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:a}=r,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(r,e);if(null!=n&&!(n instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=i&&!(i instanceof RegExp)&&!1!==i)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=s&&"boolean"!=typeof s)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=a&&"boolean"!=typeof a)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===a&&(null!=n||null!=i))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:o,placeholderWhitelist:n||void 0,placeholderPattern:null==i?void 0:i,preserveComments:null==s?void 0:s,syntacticPlaceholders:null==a?void 0:a}};const e=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];return Ga}var Za,eo={},to={};function ro(){if(Za)return to;Za=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=function(e,n,i){const{placeholderWhitelist:s,placeholderPattern:a,preserveComments:o,syntacticPlaceholders:l}=i,c=function(e,n,i){const s=(n.plugins||[]).slice();!1!==i&&s.push("placeholders");n=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},n,{plugins:s});try{return(0,t.parse)(e,n)}catch(t){const n=t.loc;throw n&&(t.message+="\n"+(0,r.codeFrameColumns)(e,{start:n}),t.code="BABEL_TEMPLATE_PARSE_ERROR"),t}}(n,i.parser,l);h(c,{preserveComments:o}),e.validate(c);const p={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:s,placeholderPattern:a,syntacticPlaceholders:l};return d(c,m,p),Object.assign({ast:c},p.syntactic.placeholders.length?p.syntactic:p.legacy)};var e=Ni(),t=be(),r=_a();const{isCallExpression:n,isExpressionStatement:i,isFunction:s,isIdentifier:a,isJSXIdentifier:o,isNewExpression:l,isPlaceholder:c,isStatement:p,isStringLiteral:u,removePropertiesDeep:h,traverse:d}=e,f=/^[_$A-Z0-9]+$/;function m(e,t,r){var h;let d,m=r.syntactic.placeholders.length>0;if(c(e)){if(!1===r.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");d=e.name.name,m=!0}else{if(m||r.syntacticPlaceholders)return;if(a(e)||o(e))d=e.name;else{if(!u(e))return;d=e.value}}if(m&&(null!=r.placeholderPattern||null!=r.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!(m||!1!==r.placeholderPattern&&(r.placeholderPattern||f).test(d)||null!=(h=r.placeholderWhitelist)&&h.has(d)))return;t=t.slice();const{node:y,key:g}=t[t.length-1];let T;u(e)||c(e,{expectedNode:"StringLiteral"})?T="string":l(y)&&"arguments"===g||n(y)&&"arguments"===g||s(y)&&"params"===g?T="param":i(y)&&!c(e)?(T="statement",t=t.slice(0,-1)):T=p(e)&&c(e)?"statement":"other";const{placeholders:x,placeholderNames:b}=m?r.syntactic:r.legacy;x.push({name:d,type:T,resolve:e=>function(e,t){let r=e;for(let e=0;e<t.length-1;e++){const{key:n,index:i}=t[e];r=void 0===i?r[n]:r[n][i]}const{key:n,index:i}=t[t.length-1];return{parent:r,key:n,index:i}}(e,t),isDuplicate:b.has(d)}),b.add(d)}return to}var no,io,so={};function ao(){if(no)return so;no=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=function(e,p){const u=r(e.ast);p&&(e.placeholders.forEach(e=>{if(!hasOwnProperty.call(p,e.name)){const t=e.name;throw new Error(`Error: No substitution given for "${t}". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${t}'])}\n - { placeholderPattern: /^${t}$/ }`)}}),Object.keys(p).forEach(t=>{if(!e.placeholderNames.has(t))throw new Error(`Unknown substitution "${t}" given`)}));return e.placeholders.slice().reverse().forEach(e=>{try{var h;!function(e,p,u){e.isDuplicate&&(Array.isArray(u)?u=u.map(e=>r(e)):"object"==typeof u&&(u=r(u)));const{parent:h,key:d,index:f}=e.resolve(p);if("string"===e.type){if("string"==typeof u&&(u=l(u)),!u||!o(u))throw new Error("Expected string substitution")}else if("statement"===e.type)void 0===f?u?Array.isArray(u)?u=t(u):"string"==typeof u?u=i(s(u)):a(u)||(u=i(u)):u=n():u&&!Array.isArray(u)&&("string"==typeof u&&(u=s(u)),a(u)||(u=i(u)));else if("param"===e.type){if("string"==typeof u&&(u=s(u)),void 0===f)throw new Error("Assertion failure.")}else if("string"==typeof u&&(u=s(u)),Array.isArray(u))throw new Error("Cannot replace single expression with an array.");function m(e,t,r){const n=e[t];e[t]=r,"Identifier"!==n.type&&"Placeholder"!==n.type||(n.typeAnnotation&&(r.typeAnnotation=n.typeAnnotation),n.optional&&(r.optional=n.optional),n.decorators&&(r.decorators=n.decorators))}if(void 0===f)c(h,d,u),m(h,d,u);else{const t=h[d].slice();"statement"===e.type||"param"===e.type?null==u?t.splice(f,1):Array.isArray(u)?t.splice(f,1,...u):m(t,f,u):m(t,f,u),c(h,d,t),h[d]=t}}(e,u,null!=(h=p&&p[e.name])?h:null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}}),u};var e=Ni();const{blockStatement:t,cloneNode:r,emptyStatement:n,expressionStatement:i,identifier:s,isStatement:a,isStringLiteral:o,stringLiteral:l,validate:c}=e;return so}var oo,lo,co,po,uo={};function ho(){if(oo)return uo;oo=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=function(n,i,s){const{metadata:a,names:o}=function(e,r,n){let i="BABEL_TPL$";const s=r.join("");do{i="$$"+i}while(s.includes(i));const{names:a,code:o}=function(e,t){const r=[];let n=e[0];for(let i=1;i<e.length;i++){const s=`${t}${i-1}`;r.push(s),n+=s+e[i]}return{names:r,code:n}}(r,i),l=(0,t.default)(e,e.code(o),{parser:n.parser,placeholderWhitelist:new Set(a.concat(n.placeholderWhitelist?Array.from(n.placeholderWhitelist):[])),placeholderPattern:n.placeholderPattern,preserveComments:n.preserveComments,syntacticPlaceholders:n.syntacticPlaceholders});return{metadata:l,names:a}}(n,i,s);return t=>{const i={};return t.forEach((e,t)=>{i[o[t]]=e}),t=>{const s=(0,e.normalizeReplacements)(t);return s&&Object.keys(s).forEach(e=>{if(hasOwnProperty.call(i,e))throw new Error("Unexpected replacement overlap.")}),n.unwrap((0,r.default)(a,s?Object.assign(s,i):i))}}};var e=Qa(),t=ro(),r=ao();return uo}function fo(){if(lo)return za;lo=1,Object.defineProperty(za,"__esModule",{value:!0}),za.default=function s(a,o){const l=new WeakMap,c=new WeakMap,p=o||(0,e.validate)(null);return Object.assign((n,...o)=>{if("string"==typeof n){if(o.length>1)throw new Error("Unexpected extra params.");return i((0,t.default)(a,n,(0,e.merge)(p,(0,e.validate)(o[0]))))}if(Array.isArray(n)){let e=l.get(n);return e||(e=(0,r.default)(a,n,p),l.set(n,e)),i(e(o))}if("object"==typeof n&&n){if(o.length>0)throw new Error("Unexpected extra params.");return s(a,(0,e.merge)(p,(0,e.validate)(n)))}throw new Error("Unexpected template param "+typeof n)},{ast:(i,...s)=>{if("string"==typeof i){if(s.length>1)throw new Error("Unexpected extra params.");return(0,t.default)(a,i,(0,e.merge)((0,e.merge)(p,(0,e.validate)(s[0])),n))()}if(Array.isArray(i)){let t=c.get(i);return t||(t=(0,r.default)(a,i,(0,e.merge)(p,n)),c.set(i,t)),t(s)()}throw new Error("Unexpected template param "+typeof i)}})};var e=Qa(),t=function(){if(io)return eo;io=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=function(n,i,s){let a;return i=n.code(i),o=>{const l=(0,e.normalizeReplacements)(o);return a||(a=(0,t.default)(n,i,s)),n.unwrap((0,r.default)(a,l))}};var e=Qa(),t=ro(),r=ao();return eo}(),r=ho();const n=(0,e.validate)({placeholderPattern:!1});function i(e){let t="";try{throw new Error}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return r=>{try{return e(r)}catch(e){throw e.stack+=`\n =============\n${t}`,e}}}return za}function mo(){if(po)return qa;po=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.arrowFunctionToExpression=function({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!(e=>null==(e=arguments[0])?void 0:e.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let n=this;var i;r||(n=null!=(i=n.ensureFunctionName(!1))?i:n);const{thisBinding:s,fnPath:a}=U(n,r,e,t);if(a.ensureBlock(),function(e,t){e.node.type=t}(a,"FunctionExpression"),!r){const e=s?null:a.scope.generateUidIdentifier("arrowCheckId");return e&&a.parentPath.scope.push({id:e,init:x([])}),a.get("body").unshiftContainer("body",p(l(this.hub.addHelper("newArrowCheck"),[C(),u(e?e.name:s)]))),a.replaceWith(l(y(a.node,u("bind")),[e?u(e.name):C()])),a.get("callee.object")}return a},qa.ensureBlock=function(){const e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;const r=[];let i,s,a="body";e.isStatement()?(s="body",i=0,r.push(e.node)):(a+=".body.0",this.isFunction()?(i="argument",r.push(S(e.node))):(i="expression",r.push(p(e.node))));this.node.body=o(r);const l=this.get(a);return n.setup.call(e,l,s?l.node[s]:l.node,s,i),this.node},qa.ensureFunctionName=function(e){if(this.node.id)return this;const r=L(this.node,this.parent);if(null==r)return this;let{name:n}=r;if(!e&&/[\uD800-\uDFFF]/.test(n))return null;if(n.startsWith("get ")||n.startsWith("set "))return null;n=I(n.replace(/[/ ]/g,"_"));const i=u(n);R(i,r.originalNode);const s={needsRename:!1,name:n},{scope:a}=this,o=a.getOwnBinding(n);o?"param"===o.kind&&(s.needsRename=!0):(a.parent.hasBinding(n)||a.hasGlobal(n))&&this.traverse($,s);if(!s.needsRename)return this.node.id=i,a.getProgramParent().references[i.name]=!0,this;if(a.hasBinding(i.name)&&!a.hasGlobal(i.name))return a.rename(i.name),this.node.id=i,a.getProgramParent().references[i.name]=!0,this;if(!k(this.node))return null;const l=a.generateUidIdentifier(i.name),c=[];for(let e=0,t=function(e){const t=e.params.findIndex(e=>O(e)||N(e));return-1===t?e.params.length:t}(this.node);e<t;e++)c.push(a.generateUidIdentifier("x"));const p=t.default.expression.ast`
2
+ (function (${l}) {
3
+ function ${i}(${c}) {
4
+ return ${D(l)}.apply(this, arguments);
5
+ }
6
+
7
+ ${D(i)}.toString = function () {
8
+ return ${D(l)}.toString();
9
+ }
10
+
11
+ return ${D(i)};
12
+ })(${w(this.node)})
13
+ `;return this.replaceWith(p)[0].get("arguments.0")},qa.splitExportDeclaration=function(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const e=this.get("declaration");if(this.isExportDefaultDeclaration()){const t=e.isFunctionDeclaration()||e.isClassDeclaration(),r=e.isFunctionExpression()||e.isClassExpression(),n=e.isScope()?e.scope.parent:e.scope;let i=e.node.id,s=!1;i?r&&n.hasBinding(i.name)&&(s=!0,i=n.generateUidIdentifier(i.name)):(s=!0,i=n.generateUidIdentifier("default"),(t||r)&&(e.node.id=D(i)));const a=t?e.node:M("var",[B(D(i),e.node)]),o=F(null,[j(D(i),u("default"))]);return this.insertAfter(o),this.replaceWith(a),s&&n.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map(e=>j(u(e),u(e))),n=F(null,r);return this.insertAfter(n),this.replaceWith(e.node),this},qa.toComputedKey=function(){let e;if(this.isMemberExpression())e=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");e=this.node.key}this.node.computed||h(e)&&(e=P(e.name));return e},qa.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");U(this)};var e=Ni(),t=function(){if(co)return $a;co=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.statements=$a.statement=$a.smart=$a.program=$a.expression=$a.default=void 0;var e=Ja(),t=fo();const r=$a.smart=(0,t.default)(e.smart),n=$a.statement=(0,t.default)(e.statement),i=$a.statements=(0,t.default)(e.statements),s=$a.expression=(0,t.default)(e.expression),a=$a.program=(0,t.default)(e.program);return $a.default=Object.assign(r.bind(void 0),{smart:r,statement:n,statements:i,expression:s,program:a,ast:r.ast}),$a}(),r=zs(),n=ko();const{arrowFunctionExpression:i,assignmentExpression:s,binaryExpression:a,blockStatement:o,callExpression:l,conditionalExpression:c,expressionStatement:p,identifier:u,isIdentifier:h,jsxIdentifier:d,logicalExpression:f,LOGICAL_OPERATORS:m,memberExpression:y,metaProperty:g,numericLiteral:T,objectExpression:x,restElement:b,returnStatement:S,sequenceExpression:v,spreadElement:E,stringLiteral:P,super:A,thisExpression:C,toExpression:w,unaryExpression:_,toBindingIdentifierName:I,isFunction:k,isAssignmentPattern:O,isRestElement:N,getFunctionName:L,cloneNode:D,variableDeclaration:M,variableDeclarator:B,exportNamedDeclaration:F,exportSpecifier:j,inherits:R}=e;qa.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};const V=(0,r.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function U(e,t=!0,r=!0,n=!0){let o,p=e.findParent(e=>e.isArrowFunctionExpression()?(null!=o||(o=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1}));const h=p.isClassMethod({kind:"constructor"});if(p.isClassProperty()||p.isClassPrivateProperty())if(o)p=o;else{if(!r)throw e.buildCodeFrameError("Unable to transform arrow inside class property");e.replaceWith(l(i([],w(e.node)),[])),p=e.get("callee"),e=p.get("body")}const{thisPaths:x,argumentsPaths:S,newTargetPaths:I,superProps:k,superCalls:O}=function(e){const t=[],r=[],n=[],i=[],s=[];return e.traverse(q,{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:i,superCalls:s}),{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:i,superCalls:s}}(e);if(h&&O.length>0){if(!r)throw O[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!n)throw O[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");const e=[];p.traverse(V,{allSuperCalls:e});const t=function(e){return W(e,"supercall",()=>{const t=e.scope.generateUidIdentifier("args");return i([b(t)],l(A(),[E(u(t.name))]))})}(p);e.forEach(e=>{const r=u(t);r.loc=e.node.callee.loc,e.get("callee").replaceWith(r)})}if(S.length>0){const e=W(p,"arguments",()=>{const e=()=>u("arguments");return p.scope.path.isProgram()?c(a("===",_("typeof",e()),P("undefined")),p.scope.buildUndefinedNode(),e()):e()});S.forEach(t=>{const r=u(e);r.loc=t.node.loc,t.replaceWith(r)})}if(I.length>0){const e=W(p,"newtarget",()=>g(u("new"),u("target")));I.forEach(t=>{const r=u(e);r.loc=t.node.loc,t.replaceWith(r)})}if(k.length>0){if(!r)throw k[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");k.reduce((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){const r=e.parentPath,n=r.node.operator.slice(0,-1),i=r.node.right,a=function(e){return m.includes(e)}(n);if(e.node.computed){const o=e.scope.generateDeclaredUidIdentifier("tmp"),l=e.node.object,c=e.node.property;r.get("left").replaceWith(y(l,s("=",o,c),!0)),r.get("right").replaceWith(t(a?"=":n,y(l,u(o.name),!0),i))}else{const s=e.node.object,o=e.node.property;r.get("left").replaceWith(y(s,o)),r.get("right").replaceWith(t(a?"=":n,y(s,u(o.name)),i))}return a?r.replaceWith(f(n,r.node.left,r.node.right)):r.node.operator="=",[r.get("left"),r.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){const t=e.parentPath,r=e.scope.generateDeclaredUidIdentifier("tmp"),n=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,i=[s("=",r,y(e.node.object,n?s("=",n,e.node.property):e.node.property,e.node.computed)),s("=",y(e.node.object,n?u(n.name):e.node.property,e.node.computed),a(e.parentPath.node.operator[0],u(r.name),T(1)))];e.parentPath.node.prefix||i.push(u(r.name)),t.replaceWith(v(i));return[t.get("expressions.0.right"),t.get("expressions.1.left")]}return[e];function t(e,t,r){return"="===e?s("=",t,r):a(e,t,r)}}(t)),[]).forEach(e=>{const t=e.node.computed?"":e.get("property").node.name,r=e.parentPath,n=r.isAssignmentExpression({left:e.node}),a=r.isCallExpression({callee:e.node}),o=r.isTaggedTemplateExpression({tag:e.node}),c=function(e,t,r){const n=t?"set":"get";return W(e,`superprop_${n}:${r||""}`,()=>{const n=[];let a;if(r)a=y(A(),u(r));else{const t=e.scope.generateUidIdentifier("prop");n.unshift(t),a=y(A(),u(t.name),!0)}if(t){const t=e.scope.generateUidIdentifier("value");n.push(t),a=s("=",a,u(t.name))}return i(n,a)})}(p,n,t),h=[];if(e.node.computed&&h.push(e.get("property").node),n){const e=r.node.right;h.push(e)}const d=l(u(c),h);a?(r.unshiftContainer("arguments",C()),e.replaceWith(y(d,u("call"))),x.push(r.get("arguments.0"))):n?r.replaceWith(d):o?(e.replaceWith(l(y(d,u("bind"),!1),[C()])),x.push(e.get("arguments.0"))):e.replaceWith(d)})}let N;return(x.length>0||!t)&&(N=function(e,t){return W(e,"this",r=>{if(!t||!K(e))return C();e.traverse(H,{supers:new WeakSet,thisBinding:r})})}(p,h),(t||h&&K(p))&&(x.forEach(e=>{const t=e.isJSX()?d(N):u(N);t.loc=e.node.loc,e.replaceWith(t)}),t||(N=null))),{thisBinding:N,fnPath:e}}function K(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}const H=(0,r.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,s("=",u(r),u("this"))])))}});function W(e,t,r){const n="binding:"+t;let i=e.getData(n);if(!i){const s=e.scope.generateUidIdentifier(t);i=s.name,e.setData(n,i),e.scope.push({id:s,init:r(i)})}return i}const q=(0,r.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments"))return void r.rename("arguments");if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}});const $={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}};return qa}var yo,go={};function To(){return yo||(yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._guessExecutionStatusRelativeTo=function(e){return m(this,e,new Map)},e._resolve=y,e.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},e.canSwapBetweenExpressionAndStatement=function(e){if("body"!==this.key||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return i(e);if(this.isBlockStatement())return s(e);return!1},e.getSource=function(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},e.isCompletionRecord=function(e){let t=this,r=!0;do{const{type:n,container:i}=t;if(!r&&(t.isFunction()||"StaticBlock"===n))return!!e;if(r=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0},e.isConstantExpression=function(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression())return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0});if(this.isCallExpression())return 1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral();return!1},e.isInStrictMode=function(){const e=(this.isProgram()?this:this.parentPath).find(e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;let t;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(const e of t.directives)if("use strict"===e.value.value)return!0});return!!e},e.isNodeType=function(e){return c(this.type,e)},e.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!i(this.container)&&r.includes(this.key)},e.isStatic=function(){return this.scope.isStatic(this.node)},e.matchesPattern=function(e,t){return p(this.node,e,t)},e.referencesImport=function(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?l(this.node.property,{value:t}):this.node.property.name===t)){const t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}const r=this.scope.getBinding(this.node.name);if(!r||"module"!==r.kind)return!1;const n=r.path,i=n.parentPath;if(!i.isImportDeclaration())return!1;if(i.node.source.value!==e)return!1;if(!t)return!0;if(n.isImportDefaultSpecifier()&&"default"===t)return!0;if(n.isImportNamespaceSpecifier()&&"*"===t)return!0;if(n.isImportSpecifier()&&a(n.node.imported,{name:t}))return!0;return!1},e.resolve=function(e,t){return y.call(this,e,t)||this},e.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)};var t=Ni();const{STATEMENT_OR_BLOCK_KEYS:r,VISITOR_KEYS:n,isBlockStatement:i,isExpression:s,isIdentifier:a,isLiteral:o,isStringLiteral:l,isType:c,matchesPattern:p}=t;function u(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function h(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function d(e,t){for(let r=0;r<t;r++){const t=e[r];if(h(t.parent.type,t.parentKey))return!0}return!1}e.has=function(e){var t;const r=null==(t=this.node)?void 0:t[e];return r&&Array.isArray(r)?!!r.length:!!r},e.is=e.has,e.isnt=function(e){return!this.has(e)},e.equals=function(e,t){return this.node[e]===t};const f=Symbol();function m(e,t,r){const i={this:u(e),target:u(t)};if(i.target.node!==i.this.node)return function(e,t,r){let n,i=r.get(e.node);if(i){if(n=i.get(t.node))return n===f?"unknown":n}else r.set(e.node,i=new Map);i.set(t.node,f);const s=function(e,t,r){if(!t.isFunctionDeclaration())return"before"===m(e,t,r)?"before":"unknown";if(t.parentPath.isExportDeclaration())return"unknown";const n=t.scope.getBinding(t.node.id.name);if(!n.references)return"before";const i=n.referencePaths;let s;for(const n of i){if(!!n.find(e=>e.node===t.node))continue;if("callee"!==n.key||!n.parentPath.isCallExpression())return"unknown";const i=m(e,n,r);if(s&&s!==i)return"unknown";s=i}return s}(e,t,r);return i.set(t.node,s),s}(e,i.target,r);const s={target:t.getAncestry(),this:e.getAncestry()};if(s.target.includes(e))return"after";if(s.this.includes(t))return"before";let a;const o={target:0,this:0};for(;!a&&o.this<s.this.length;){const e=s.this[o.this];o.target=s.target.indexOf(e),o.target>=0?a=e:o.this++}if(!a)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(d(s.this,o.this-1)||d(s.target,o.target-1))return"unknown";const l={this:s.this[o.this-1],target:s.target[o.target-1]};if(l.target.listKey&&l.this.listKey&&l.target.container===l.this.container)return l.target.key>l.this.key?"before":"after";const c=n[a.type],p=c.indexOf(l.this.parentKey);return c.indexOf(l.target.parentKey)>p?"before":"after"}function y(e,t){var r;if(null==(r=t)||!r.includes(this))if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){const r=this.scope.getBinding(this.node.name);if(!r)return;if(!r.constant)return;if("module"===r.kind)return;if(r.path!==this){const n=r.path.resolve(e,t);if(this.find(e=>e.node===n.node))return;return n}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){const r=this.toComputedKey();if(!o(r))return;const n=r.value,i=this.get("object").resolve(e,t);if(i.isObjectExpression()){const r=i.get("properties");for(const i of r){if(!i.isProperty())continue;const r=i.get("key");let s=i.isnt("computed")&&r.isIdentifier({name:n});if(s=s||r.isLiteral({value:n}),s)return i.get("value").resolve(e,t)}}else if(i.isArrayExpression()&&!isNaN(+n)){const r=i.get("elements")[n];if(r)return r.resolve(e,t)}}}}}(go)),go}var xo,bo={};function So(){if(xo)return bo;xo=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo._getKey=f,bo._getPattern=m,bo.get=function(e,t=!0){!0===t&&(t=this.context);const r=e.split(".");return 1===r.length?f.call(this,e,t):m.call(this,r,t)},bo.getAllNextSiblings=function(){let e=this.key,t=this.getSibling(++e);const r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r},bo.getAllPrevSiblings=function(){let e=this.key,t=this.getSibling(--e);const r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r},bo.getAssignmentIdentifiers=function(){return r(this.node)},bo.getBindingIdentifierPaths=function(e=!1,t=!1){const r=[this],i=Object.create(null);for(;r.length;){const s=r.shift();if(!s)continue;if(!s.node)continue;const a=n.keys[s.node.type];if(s.isIdentifier())if(e){(i[s.node.name]=i[s.node.name]||[]).push(s)}else i[s.node.name]=s;else{if(s.isExportDeclaration()){const e=s.get("declaration");e.isDeclaration()&&r.push(e);continue}if(t){if(s.isFunctionDeclaration()){r.push(s.get("id"));continue}if(s.isFunctionExpression())continue}if(a)for(let e=0;e<a.length;e++){const t=a[e],n=s.get(t);Array.isArray(n)?r.push(...n):n.node&&r.push(n)}}}return i},bo.getBindingIdentifiers=function(e){return n(this.node,e)},bo.getCompletionRecords=function(e=!1){return d(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},bo.getNextSibling=function(){return this.getSibling(this.key+1)},bo.getOpposite=function(){if("left"===this.key)return this.getSibling("right");if("right"===this.key)return this.getSibling("left");return null},bo.getOuterBindingIdentifierPaths=function(e=!1){return this.getBindingIdentifierPaths(e,!0)},bo.getOuterBindingIdentifiers=function(e){return i(this.node,e)},bo.getPrevSibling=function(){return this.getSibling(this.key-1)},bo.getSibling=function(t){return e.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:t}).setContext(this.context)};var e=_o(),t=Ni();const{getAssignmentIdentifiers:r,getBindingIdentifiers:n,getOuterBindingIdentifiers:i,numericLiteral:s,unaryExpression:a}=t,o=0,l=1;function c(e,t,r){return e&&t.push(...d(e,r)),t}function p(e){e.forEach(e=>{e.type=l})}function u(e,t){e.forEach(e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(a("void",s(0))):e.path.remove())})}function h(e,t){const r=[];if(t.canHaveBreak){let n=[];for(let i=0;i<e.length;i++){const s=e[i],a=Object.assign({},t,{inCaseClause:!1});s.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;const c=d(s,a);if(c.length>0&&c.every(e=>e.type===l)){n.length>0&&c.every(e=>e.path.isBreakStatement({label:null}))?(p(n),r.push(...n),n.some(e=>e.path.isDeclaration())&&(r.push(...c),t.shouldPreserveBreak||u(c,!0)),t.shouldPreserveBreak||u(c,!1)):(r.push(...c),t.shouldPopulateBreak||t.shouldPreserveBreak||u(c,!0));break}if(i===e.length-1)r.push(...c);else{n=[];for(let e=0;e<c.length;e++){const t=c[e];t.type===l&&r.push(t),t.type===o&&n.push(t)}}}}else if(e.length)for(let n=e.length-1;n>=0;n--){const i=d(e[n],t);if(i.length>1||1===i.length&&!i[0].path.isVariableDeclaration()&&!i[0].path.isEmptyStatement()){r.push(...i);break}}return r}function d(e,t){let r=[];if(e.isIfStatement())r=c(e.get("consequent"),r,t),r=c(e.get("alternate"),r,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return c(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return h(e.get("body"),t);if(e.isFunction())return d(e.get("body"),t);if(e.isTryStatement())r=c(e.get("block"),r,t),r=c(e.get("handler"),r,t);else{if(e.isCatchClause())return c(e.get("body"),r,t);if(e.isSwitchStatement())return function(e,t,r){let n=[];for(let i=0;i<e.length;i++){const s=d(e[i],r),a=[],c=[];for(const e of s)e.type===o&&a.push(e),e.type===l&&c.push(e);a.length&&(n=a),t.push(...c)}return t.push(...n),t}(e.get("cases"),r,t);if(e.isSwitchCase())return h(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?r.push(function(e){return{type:l,path:e}}(e)):r.push(function(e){return{type:o,path:e}}(e))}}return r}function f(t,r){const n=this.node,i=n[t];return Array.isArray(i)?i.map((s,a)=>e.default.get({listKey:t,parentPath:this,parent:n,container:i,key:a}).setContext(r)):e.default.get({parentPath:this,parent:n,container:n,key:t}).setContext(r)}function m(e,t){let r=this;for(const n of e)r="."===n?r.parentPath:Array.isArray(r)?r[n]:r.get(n,t);return r}return bo}var vo,Eo,Po,Ao,Co,wo={};function _o(){if(Eo)return Os;Eo=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=Os.SHOULD_STOP=Os.SHOULD_SKIP=Os.REMOVED=void 0;var e=Ls(),t=Us(),r=Do(),n=sa(),i=Ni(),s=i,a=ta(),o=As(),l=function(){if(aa)return oa;aa=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.find=function(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null},oa.findParent=function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},oa.getAncestry=function(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t},oa.getDeepestCommonAncestorFrom=function(e,t){if(!e.length)return this;if(1===e.length)return e[0];let r,n,i=1/0;const s=e.map(e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);return t.length<i&&(i=t.length),t}),a=s[0];e:for(let e=0;e<i;e++){const t=a[e];for(const r of s)if(r[e]!==t)break e;r=e,n=t}if(n)return t?t(n,r,s):n;throw new Error("Couldn't find intersection")},oa.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,function(e,r,n){let i;const s=t[e.type];for(const e of n){const t=e[r+1];i?(t.listKey&&i.listKey===t.listKey&&t.key<i.key||s.indexOf(i.parentKey)>s.indexOf(t.parentKey))&&(i=t):i=t}return i})},oa.getFunctionParent=function(){return this.findParent(e=>e.isFunction())},oa.getStatementParent=function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e},oa.inType=function(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1},oa.isAncestor=function(e){return e.isDescendant(this)},oa.isDescendant=function(e){return!!this.findParent(t=>t===e)};var e=Ni();const{VISITOR_KEYS:t}=e;return oa}(),c=function(){if(ua)return ha;ua=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha._getTypeAnnotation=E,ha.baseTypeStrictlyMatches=function(e){const t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!(n(t)||!o(t))&&r.type===t.type},ha.couldBeBaseType=function(e){const t=this.getTypeAnnotation();if(n(t))return!0;if(T(t)){for(const r of t.types)if(n(r)||P(e,r,!0))return!0;return!1}return P(e,t,!0)},ha.getTypeAnnotation=function(){let e=this.getData("typeAnnotation");return null!=e||(e=E.call(this)||r(),(g(e)||f(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e},ha.isBaseType=function(e,t){return P(e,this.getTypeAnnotation(),t)},ha.isGenericType=function(e){const t=this.getTypeAnnotation();return!("Array"!==e||!(d(t)||i(t)||y(t)))||(l(t)&&c(t.id,{name:e})||m(t)&&c(t.typeName,{name:e}))};var e=Ta(),t=Ni();const{anyTypeAnnotation:r,isAnyTypeAnnotation:n,isArrayTypeAnnotation:i,isBooleanTypeAnnotation:s,isEmptyTypeAnnotation:a,isFlowBaseAnnotation:o,isGenericTypeAnnotation:l,isIdentifier:c,isMixedTypeAnnotation:p,isNumberTypeAnnotation:u,isStringTypeAnnotation:h,isTSArrayType:d,isTSTypeAnnotation:f,isTSTypeReference:m,isTupleTypeAnnotation:y,isTypeAnnotation:g,isUnionTypeAnnotation:T,isVoidTypeAnnotation:x,stringTypeAnnotation:b,voidTypeAnnotation:S}=t,v=new WeakSet;function E(){const t=this.node;if(t){if(t.typeAnnotation)return t.typeAnnotation;if(!v.has(t)){v.add(t);try{var n;let r=e[t.type];if(r)return r.call(this,t);if(r=e[this.parentPath.type],null!=(n=r)&&n.validParent)return this.parentPath.getTypeAnnotation()}finally{v.delete(t)}}}else if("init"===this.key&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?b():"left"===e.key&&t.isForOfStatement()?r():S()}}function P(e,t,r){if("string"===e)return h(t);if("number"===e)return u(t);if("boolean"===e)return s(t);if("any"===e)return n(t);if("mixed"===e)return p(t);if("empty"===e)return a(t);if("void"===e)return x(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}return ha}(),p=Va(),u=Ha(),h=mo(),d=To(),f=ko(),m=f,y=Da(),g=Ra(),T=So(),x=function(){if(vo)return wo;vo=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.addComment=function(e,r,n){t(this.node,e,r,n)},wo.addComments=function(e,t){r(this.node,e,t)},wo.shareCommentsWithSiblings=function(){if("string"==typeof this.key)return;const e=this.node;if(!e)return;const t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;const i=this.getSibling(this.key-1),s=this.getSibling(this.key+1),a=Boolean(i.node),o=Boolean(s.node);a&&(r&&i.addComments("trailing",n(r,i.node.trailingComments)),t&&!o&&i.addComments("trailing",t)),o&&(t&&s.addComments("leading",n(t,s.node.leadingComments)),r&&!a&&s.addComments("leading",r))};var e=Ni();const{addComment:t,addComments:r}=e;function n(e,t){if(null==t||!t.length)return e;const r=new Set(t);return e.filter(e=>!r.has(e))}return wo}(),b=Xs();const{validate:S}=i,v=t("babel");Os.REMOVED=1,Os.SHOULD_STOP=2,Os.SHOULD_SKIP=4;const E=Os.default=class e{constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(1&this._traverseFlags)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(2&this._traverseFlags)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(4&this._traverseFlags)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:r,parent:n,container:i,listKey:s,key:o}){if(!t&&r&&(t=r.hub),!n)throw new Error("To get a node path the parent needs to exist");const l=i[o],c=a.getOrCreateCachedPaths(n,r);let p=c.get(l);return p||(p=new e(t,n),l&&c.set(l,p)),f.setup.call(p,r,i,s,o),p}getScope(e){return this.isScope()?new n.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let r=this.data[e];return void 0===r&&void 0!==t&&(r=this.data[e]=t),r}hasNode(){return null!=this.node}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,r.default)(this.node,e,this.scope,t,this)}set(e,t){S(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let r=t.key;t.inList&&(r=`${t.listKey}[${r}]`),e.unshift(r)}while(t=t.parentPath);return e.join(".")}debug(e){v.enabled&&v(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,o.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},P={findParent:l.findParent,find:l.find,getFunctionParent:l.getFunctionParent,getStatementParent:l.getStatementParent,getEarliestCommonAncestorFrom:l.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:l.getDeepestCommonAncestorFrom,getAncestry:l.getAncestry,isAncestor:l.isAncestor,isDescendant:l.isDescendant,inType:l.inType,getTypeAnnotation:c.getTypeAnnotation,isBaseType:c.isBaseType,couldBeBaseType:c.couldBeBaseType,baseTypeStrictlyMatches:c.baseTypeStrictlyMatches,isGenericType:c.isGenericType,replaceWithMultiple:p.replaceWithMultiple,replaceWithSourceString:p.replaceWithSourceString,replaceWith:p.replaceWith,replaceExpressionWithStatements:p.replaceExpressionWithStatements,replaceInline:p.replaceInline,evaluateTruthy:u.evaluateTruthy,evaluate:u.evaluate,toComputedKey:h.toComputedKey,ensureBlock:h.ensureBlock,unwrapFunctionEnvironment:h.unwrapFunctionEnvironment,arrowFunctionToExpression:h.arrowFunctionToExpression,splitExportDeclaration:h.splitExportDeclaration,ensureFunctionName:h.ensureFunctionName,matchesPattern:d.matchesPattern,isStatic:d.isStatic,isNodeType:d.isNodeType,canHaveVariableDeclarationOrExpression:d.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:d.canSwapBetweenExpressionAndStatement,isCompletionRecord:d.isCompletionRecord,isStatementOrBlock:d.isStatementOrBlock,referencesImport:d.referencesImport,getSource:d.getSource,willIMaybeExecuteBefore:d.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:d._guessExecutionStatusRelativeTo,resolve:d.resolve,isConstantExpression:d.isConstantExpression,isInStrictMode:d.isInStrictMode,isDenylisted:m.isDenylisted,visit:m.visit,skip:m.skip,skipKey:m.skipKey,stop:m.stop,setContext:m.setContext,requeue:m.requeue,requeueComputedKeyAndDecorators:m.requeueComputedKeyAndDecorators,remove:y.remove,insertBefore:g.insertBefore,insertAfter:g.insertAfter,unshiftContainer:g.unshiftContainer,pushContainer:g.pushContainer,getOpposite:T.getOpposite,getCompletionRecords:T.getCompletionRecords,getSibling:T.getSibling,getPrevSibling:T.getPrevSibling,getNextSibling:T.getNextSibling,getAllNextSiblings:T.getAllNextSiblings,getAllPrevSiblings:T.getAllPrevSiblings,get:T.get,getAssignmentIdentifiers:T.getAssignmentIdentifiers,getBindingIdentifiers:T.getBindingIdentifiers,getOuterBindingIdentifiers:T.getOuterBindingIdentifiers,getBindingIdentifierPaths:T.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:T.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:x.shareCommentsWithSiblings,addComment:x.addComment,addComments:x.addComments};Object.assign(E.prototype,P),E.prototype.arrowFunctionToShadowed=h[String("arrowFunctionToShadowed")],Object.assign(E.prototype,{has:d[String("has")],is:d[String("is")],isnt:d[String("isnt")],equals:d[String("equals")],hoist:g[String("hoist")],updateSiblingKeys:g.updateSiblingKeys,call:m.call,isBlacklisted:m[String("isBlacklisted")],setScope:m.setScope,resync:m.resync,popContext:m.popContext,pushContext:m.pushContext,setup:m.setup,setKey:m.setKey}),E.prototype._guessExecutionStatusRelativeToDifferentFunctions=d._guessExecutionStatusRelativeTo,E.prototype._guessExecutionStatusRelativeToDifferentFunctions=d._guessExecutionStatusRelativeTo,Object.assign(E.prototype,{_getTypeAnnotation:c._getTypeAnnotation,_replaceWith:p._replaceWith,_resolve:d._resolve,_call:m._call,_resyncParent:m._resyncParent,_resyncKey:m._resyncKey,_resyncList:m._resyncList,_resyncRemoved:m._resyncRemoved,_getQueueContexts:m._getQueueContexts,_removeFromScope:y._removeFromScope,_callRemovalHooks:y._callRemovalHooks,_remove:y._remove,_markRemoved:y._markRemoved,_assertUnremoved:y._assertUnremoved,_containerInsert:g._containerInsert,_containerInsertBefore:g._containerInsertBefore,_containerInsertAfter:g._containerInsertAfter,_verifyNodeList:g._verifyNodeList,_getKey:T._getKey,_getPattern:T._getPattern});for(const e of s.TYPES){const t=`is${e}`,r=s[t];E.prototype[t]=function(e){return r(this.node,e)},E.prototype[`assert${e}`]=function(t){if(!r(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(E.prototype,b);for(const t of Object.keys(e))"_"!==t[0]&&(s.TYPES.includes(t)||s.TYPES.push(t));return Os}function Io(){if(Ao)return Is;Ao=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.traverseNode=function(t,n,i,s,a,o,l){const c=r[t.type];if(!c)return!1;const p=new e.default(i,n,s,a);if(l)return(null==o||!o[a.parentKey])&&p.visitQueue([a]);for(const e of c)if((null==o||!o[e])&&p.visit(t,e))return!0;return!1};var e=function(){if(Po)return ks;Po=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=void 0;var e=_o(),t=Ni(),r=ko();const{VISITOR_KEYS:n}=t;return ks.default=class{constructor(e,t,r,n){this.queue=null,this.priorityQueue=null,this.parentPath=n,this.scope=e,this.state=r,this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;const r=n[e.type];if(null==r||!r.length)return!1;for(const t of r)if(e[t])return!0;return!1}create(t,r,n,i){return e.default.get({parentPath:this.parentPath,parent:t,container:r,key:n,listKey:i})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,r){if(0===e.length)return!1;const n=[];for(let i=0;i<e.length;i++){const s=e[i];s&&this.shouldVisit(s)&&n.push(this.create(t,e,i,r))}return this.visitQueue(n)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];const t=new WeakSet;let n=!1,i=0;for(;i<e.length;){const s=e[i];if(i++,r.resync.call(s),0!==s.contexts.length&&s.contexts[s.contexts.length-1]===this||r.pushContext.call(s,this),null===s.key)continue;const{node:a}=s;if(!t.has(a)){if(a&&t.add(a),s.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,n))break}}for(let t=0;t<i;t++)r.popContext.call(e[t]);return this.queue=null,n}visit(e,t){const r=e[t];return!!r&&(Array.isArray(r)?this.visitMultiple(r,e,t):this.visitSingle(e,t))}},ks}();_o();var t=Ni();ko();const{VISITOR_KEYS:r}=t;return Is}function ko(){if(Co)return _s;Co=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s._call=s,_s._getQueueContexts=function(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,e);)t=e.contexts;return t},_s._resyncKey=p,_s._resyncList=u,_s._resyncParent=c,_s._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||r._markRemoved.call(this)},_s.call=i,_s.isDenylisted=a,_s.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},_s.pushContext=function(e){this.contexts.push(e),this.setContext(e)},_s.requeue=function(e=this){if(e.removed)return;const t=this.contexts;for(const r of t)r.maybeQueue(e)},_s.requeueComputedKeyAndDecorators=function(){const{context:e,node:t}=this;!n.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key"));if(t.decorators)for(const t of this.get("decorators"))e.maybeQueue(t)},_s.resync=function(){if(this.removed)return;c.call(this),u.call(this),p.call(this)},_s.setContext=function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return l.call(this),this},_s.setKey=h,_s.setScope=l,_s.setup=function(e,t,r,n){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,h.call(this,n)},_s.skip=function(){this.shouldSkip=!0},_s.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[e]=!0},_s.stop=function(){this._traverseFlags|=t.SHOULD_SKIP|t.SHOULD_STOP},_s.visit=function(){var t,r;if(!this.node)return!1;if(this.isDenylisted())return!1;if(null!=(t=(r=this.opts).shouldSkip)&&t.call(r,this))return!1;const n=this.context;if(this.shouldSkip||i.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return o(this,n),this.debug("Recursing into..."),this.shouldStop=(0,e.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),o(this,n),i.call(this,"exit"),this.shouldStop};var e=Io(),t=_o(),r=Da(),n=Ni();function i(e){const t=this.opts;return this.debug(e),!(!this.node||!s.call(this,t[e]))||!!this.node&&s.call(this,null==(r=t[this.node.type])?void 0:r[e]);var r}function s(e){if(!e)return!1;for(const t of e){if(!t)continue;const e=this.node;if(!e)return!0;const r=t.call(this.state,this,this.state);if(r&&"object"==typeof r&&"function"==typeof r.then)throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(r)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e)return!0;if(this._traverseFlags>0)return!0}return!1}function a(){var e;const t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return null==t?void 0:t.includes(this.node.type)}function o(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function l(){var e,t;if(null!=(e=this.opts)&&e.noScope)return;let r,n=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&n.isMethod()||"discriminant"===this.key&&n.isSwitchStatement())&&(n=n.parentPath);n&&!r;){var i;if(null!=(i=n.opts)&&i.noScope)return;r=n.scope,n=n.parentPath}this.scope=this.getScope(r),null==(t=this.scope)||t.init()}function c(){this.parentPath&&(this.parent=this.parentPath.node)}function p(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node)return void h.call(this,e)}else for(const e of Object.keys(this.container))if(this.container[e]===this.node)return void h.call(this,e);this.key=null}}function u(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function h(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type}return _s.isBlacklisted=a,_s}var Oo,No,Lo={};function Do(){return No||(No=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Hub",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"NodePath",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.default}}),e.visitors=e.default=void 0,ko();var t=zs();e.visitors=t;var r=Ni(),n=ta(),i=Io(),s=_o(),a=sa(),o=(Oo||(Oo=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0,Lo.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,r=TypeError){return new r(t)}}),Lo);const{VISITOR_KEYS:l,removeProperties:c,traverseFast:p}=r;function u(e,r={},n,s,a,o){if(e){if(!r.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!a&&o)throw new Error("visitSelf can only be used when providing a NodePath.");l[e.type]&&(t.explode(r),(0,i.traverseNode)(e,r,n,s,a,null,o))}}e.default=u,u.visitors=t,u.verify=t.verify,u.explode=t.explode,u.cheap=function(e,t){p(e,t)},u.node=function(e,t,r,n,s,a){(0,i.traverseNode)(e,t,r,n,s,a)},u.clearNode=function(e,t){c(e,t)},u.removeProperties=function(e,t){return p(e,u.clearNode,t),e},u.hasType=function(e,t,r){return(null==r||!r.includes(e.type))&&(e.type===t||p(e,function(e){return null!=r&&r.includes(e.type)?p.skip:e.type===t?p.stop:void 0}))},u.cache=n}(ws)),ws}var Mo,Bo={},Fo={},jo={};function Ro(){return Mo||(Mo=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.MINIFY_CANONICAL_NAME_MAP=jo.USEGT_CALLBACK_OPTIONS=jo.PLURAL_FORMS=jo.GT_IMPORT_SOURCES=jo.GT_FUNCTIONS_TO_CALLBACKS=jo.GT_CALLBACK_FUNCTIONS=jo.GT_OTHER_FUNCTIONS=jo.GT_FUNCTIONS_WITH_CALLBACKS=jo.GT_COMPONENT_TYPES=jo.GT_COMPONENT_CATEGORIES=void 0,function(e){e.TRANSLATION="T",e.VARIABLE="Var",e.BRANCH="Branch"}(e||(jo.GT_COMPONENT_CATEGORIES=e={})),function(e){e.T="T",e.Tx="Tx",e.Var="Var",e.Currency="Currency",e.DateTime="DateTime",e.Num="Num",e.Branch="Branch",e.Plural="Plural",e.LocaleSelector="LocaleSelector"}(t||(jo.GT_COMPONENT_TYPES=t={})),function(e){e.useGT="useGT",e.getGT="getGT",e.useTranslations="useTranslations",e.getTranslations="getTranslations",e.useMessages="useMessages",e.getMessages="getMessages"}(r||(jo.GT_FUNCTIONS_WITH_CALLBACKS=r={})),function(e){e.msg="msg"}(n||(jo.GT_OTHER_FUNCTIONS=n={})),function(e){e.useGT_callback="useGT_callback",e.getGT_callback="getGT_callback",e.useTranslations_callback="useTranslations_callback",e.getTranslations_callback="getTranslations_callback",e.useMessages_callback="useMessages_callback",e.getMessages_callback="getMessages_callback"}(i||(jo.GT_CALLBACK_FUNCTIONS=i={})),jo.GT_FUNCTIONS_TO_CALLBACKS={[r.useGT]:i.useGT_callback,[r.getGT]:i.getGT_callback,[r.useTranslations]:i.useTranslations_callback,[r.getTranslations]:i.getTranslations_callback,[r.useMessages]:i.useMessages_callback,[r.getMessages]:i.getMessages_callback},function(e){e.GT_NEXT="gt-next",e.GT_NEXT_CLIENT="gt-next/client",e.GT_NEXT_SERVER="gt-next/server",e.GT_REACT="gt-react",e.GT_REACT_CLIENT="gt-react/client"}(s||(jo.GT_IMPORT_SOURCES=s={})),jo.PLURAL_FORMS=new Set(["singular","plural","dual","zero","one","two","few","many","other"]),function(e){e.$id="$id",e.$context="$context",e.$_hash="$_hash"}(a||(jo.USEGT_CALLBACK_OPTIONS=a={})),jo.MINIFY_CANONICAL_NAME_MAP={[t.Var]:"v",[t.Num]:"n",[t.Currency]:"c",[t.DateTime]:"d",[t.Branch]:"b",[t.Plural]:"p"}),jo;var e,t,r,n,i,s,a}var Vo,Uo,Ko={};function Ho(){return Vo||(Vo=1,Ko.HTML_CONTENT_PROPS={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"}),Ko}function Wo(){return Uo||(Uo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultVariableNames=void 0,e.isGTFunction=function(e){return["useGT","getGT","useTranslations","getTranslations","useMessages","getMessages","msg","useGT_callback","getGT_callback","useTranslations_callback","getTranslations_callback","useMessages_callback","getMessages_callback","T","Tx","Var","Currency","DateTime","Num","Branch","Plural"].includes(e)},e.isGTFunctionWithCallbacks=function(e){return["useGT","getGT","useTranslations","getTranslations","useMessages","getMessages"].includes(e)},e.isGTComponent=function(e){return Object.values(t.GT_COMPONENT_TYPES).includes(e)},e.isTranslationComponent=function(e){return[t.GT_COMPONENT_TYPES.T].includes(e)},e.isVariableComponent=function(e){return[t.GT_COMPONENT_TYPES.Var,t.GT_COMPONENT_TYPES.Num,t.GT_COMPONENT_TYPES.Currency,t.GT_COMPONENT_TYPES.DateTime].includes(e)},e.isBranchComponent=function(e){return[t.GT_COMPONENT_TYPES.Branch,t.GT_COMPONENT_TYPES.Plural].includes(e)},e.isTranslationFunction=function(e){return["useGT","getGT"].includes(e)},e.isTranslationFunctionCallback=function(e){return["useGT_callback","getGT_callback","useTranslations_callback","getTranslations_callback","useMessages_callback","getMessages_callback"].includes(e)},e.isJsxFunction=function(e){return["jsxDEV","jsx","jsxs","React.createElement"].includes(e)},e.isGTImportSource=function(e){return Object.values([t.GT_IMPORT_SOURCES.GT_NEXT,t.GT_IMPORT_SOURCES.GT_NEXT_CLIENT,t.GT_IMPORT_SOURCES.GT_NEXT_SERVER,t.GT_IMPORT_SOURCES.GT_REACT]).includes(e)},e.isHtmlContentProp=function(e){return Object.values(r.HTML_CONTENT_PROPS).includes(e)},e.minifyCanonicalName=function(e){return t.MINIFY_CANONICAL_NAME_MAP[e]||e},e.getVariableName=function(t,r,i){if(i)return i;const s=e.defaultVariableNames[t]||"value";return`${n}${s}_${r}`};const t=Ro(),r=Ho();e.defaultVariableNames={[t.GT_COMPONENT_TYPES.Var]:"value",[t.GT_COMPONENT_TYPES.Num]:"n",[t.GT_COMPONENT_TYPES.DateTime]:"date",[t.GT_COMPONENT_TYPES.Currency]:"cost"};const n="_gt_"}(Fo)),Fo}var qo,$o={};function Yo(){if(qo)return $o;qo=1;var e,t=$o&&$o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=$o&&$o.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=$o&&$o.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty($o,"__esModule",{value:!0}),$o.getCalleeNameFromExpression=function e(t){if(i.isAwaitExpression(t))return e(t.argument);if(!i.isCallExpression(t))return{namespaceName:null,functionName:null};const r=t.callee;if(i.isIdentifier(r))return{namespaceName:null,functionName:r.name};if(i.isMemberExpression(r)&&i.isIdentifier(r.object)&&i.isIdentifier(r.property))return{namespaceName:r.object.name,functionName:r.property.name};return{namespaceName:null,functionName:null}};const i=n(Ni());return $o}var Jo,Xo={};function zo(){if(Jo)return Xo;Jo=1;var e,t=Xo&&Xo.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Xo&&Xo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Xo&&Xo.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.validateUseGTCallback=function(e){const t=[];if(e.arguments.length<1)return t.push("useGT_callback / getGT_callback must have at least 1 argument"),{errors:t};if(!i.isExpression(e.arguments[0]))return t.push("useGT_callback / getGT_callback must have a string literal as the first argument. Variable content is not allowed."),{errors:t};const r=o(e.arguments[0]);t.push(...r.errors);const n=r.value;if(void 0===n)return t.push("useGT_callback / getGT_callback must have a string literal as the first argument. Variable content is not allowed."),{errors:t};let l,c,p;if(1===e.arguments.length)return{errors:t,content:n};if(i.isObjectExpression(e.arguments[1])){const r=a(e.arguments[1],s.USEGT_CALLBACK_OPTIONS.$context);t.push(...r.errors),l=r.value;const n=a(e.arguments[1],s.USEGT_CALLBACK_OPTIONS.$id);t.push(...n.errors),c=n.value;const i=a(e.arguments[1],s.USEGT_CALLBACK_OPTIONS.$_hash);t.push(...i.errors),p=i.value}return{errors:t,content:n,context:l,id:c,hash:p}},Xo.validateUseTranslationsCallback=function(e){return{errors:[]}},Xo.validateUseMessagesCallback=function(e){return{errors:[]}};const i=n(Ni()),s=Ro();function a(e,t){const r={errors:[]};let n;for(const r of e.properties)if(i.isObjectProperty(r)){if(i.isIdentifier(r.key)&&r.key.name===t){n=r;break}if(i.isStringLiteral(r.key)&&r.key.value===t){n=r;break}}if(!n)return r;if(!i.isExpression(n.value))return r.errors.push(`useGT_callback / getGT_callback must have a string literal for its ${t} field. Variable content is not allowed.`),r;const s=o(n.value);return r.errors.push(...s.errors),r.value=s.value,r}function o(e){var t;return i.isStringLiteral(e)?{errors:[],value:e.value}:i.isTemplateLiteral(e)&&0===e.expressions.length?{errors:[],value:null===(t=e.quasis[0])||void 0===t?void 0:t.value.cooked}:{errors:["Expression is not a string literal"]}}return Xo}var Go,Qo,Zo={},el={};var tl={exports:{}};var rl,nl={exports:{}},il=u(Object.freeze({__proto__:null,default:{}}));function sl(){return rl||(rl=1,nl.exports=(e=e||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==c&&c.crypto&&(r=c.crypto),!r)try{r=il}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},o=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=o.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var s=0;s<i;s++){var a=r[s>>>2]>>>24-s%4*8&255;t[n+s>>>2]|=a<<24-(n+s)%4*8}else for(var o=0;o<i;o+=4)t[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new l.init(t,e)}}),p=s.enc={},u=p.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var s=t[i>>>2]>>>24-i%4*8&255;n.push((s>>>4).toString(16)),n.push((15&s).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},h=p.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var s=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(s))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,t)}},d=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,s=n.sigBytes,a=this.blockSize,o=s/(4*a),c=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*a,p=e.min(4*c,s);if(c){for(var u=0;u<c;u+=a)this._doProcessBlock(i,u);r=i.splice(0,c),n.sigBytes-=p}return new l.init(r,p)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new m.HMAC.init(e,r).finalize(t)}}});var m=s.algo={};return s}(Math),e)),nl.exports;var e}var al,ol={exports:{}};function ll(){return al||(al=1,ol.exports=(a=sl(),r=(t=a).lib,n=r.Base,i=r.WordArray,(s=t.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=n.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:8*t.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var s=e[n];r.push(s.high),r.push(s.low)}return i.create(r,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),r=t.length,i=0;i<r;i++)t[i]=t[i].clone();return e}}),a)),ol.exports;var e,t,r,n,i,s,a}var cl,pl={exports:{}};function ul(){return cl||(cl=1,pl.exports=(e=sl(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init,n=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)};n.prototype=t}}(),e.lib.WordArray)),pl.exports;var e}var hl,dl={exports:{}};function fl(){return hl?dl.exports:(hl=1,dl.exports=(e=sl(),function(){var t=e,r=t.lib.WordArray,n=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var s=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(s))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return r.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],s=0;s<r;s+=2){var a=i(t[s>>>2]>>>16-s%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,n=[],s=0;s<t;s++)n[s>>>1]|=i(e.charCodeAt(s)<<16-s%2*16);return r.create(n,2*t)}}}(),e.enc.Utf16));var e}var ml,yl={exports:{}};function gl(){return ml?yl.exports:(ml=1,yl.exports=(e=sl(),function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var i=[],s=0,a=0;a<t;a++)if(a%4){var o=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[s>>>2]|=o<<24-s%4*8,s++}return r.create(i,s)}t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],s=0;s<r;s+=3)for(var a=(t[s>>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;o<4&&s+.75*o<r;o++)i.push(n.charAt(a>>>6*(3-o)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<r.length;s++)i[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var o=e.indexOf(a);-1!==o&&(t=o)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var Tl,xl={exports:{}};function bl(){return Tl?xl.exports:(Tl=1,xl.exports=(e=sl(),function(){var t=e,r=t.lib.WordArray;function n(e,t,n){for(var i=[],s=0,a=0;a<t;a++)if(a%4){var o=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[s>>>2]|=o<<24-s%4*8,s++}return r.create(i,s)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var s=[],a=0;a<n;a+=3)for(var o=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<n;l++)s.push(i.charAt(o>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;s.length%4;)s.push(c);return s.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,i=t?this._safe_map:this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var a=0;a<i.length;a++)s[i.charCodeAt(a)]=a}var o=i.charAt(64);if(o){var l=e.indexOf(o);-1!==l&&(r=l)}return n(e,r,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var Sl,vl={exports:{}};function El(){return Sl||(Sl=1,vl.exports=(e=sl(),function(t){var r=e,n=r.lib,i=n.WordArray,s=n.Hasher,a=r.algo,o=[];!function(){for(var e=0;e<64;e++)o[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var s=this._hash.words,a=e[t+0],l=e[t+1],d=e[t+2],f=e[t+3],m=e[t+4],y=e[t+5],g=e[t+6],T=e[t+7],x=e[t+8],b=e[t+9],S=e[t+10],v=e[t+11],E=e[t+12],P=e[t+13],A=e[t+14],C=e[t+15],w=s[0],_=s[1],I=s[2],k=s[3];w=c(w,_,I,k,a,7,o[0]),k=c(k,w,_,I,l,12,o[1]),I=c(I,k,w,_,d,17,o[2]),_=c(_,I,k,w,f,22,o[3]),w=c(w,_,I,k,m,7,o[4]),k=c(k,w,_,I,y,12,o[5]),I=c(I,k,w,_,g,17,o[6]),_=c(_,I,k,w,T,22,o[7]),w=c(w,_,I,k,x,7,o[8]),k=c(k,w,_,I,b,12,o[9]),I=c(I,k,w,_,S,17,o[10]),_=c(_,I,k,w,v,22,o[11]),w=c(w,_,I,k,E,7,o[12]),k=c(k,w,_,I,P,12,o[13]),I=c(I,k,w,_,A,17,o[14]),w=p(w,_=c(_,I,k,w,C,22,o[15]),I,k,l,5,o[16]),k=p(k,w,_,I,g,9,o[17]),I=p(I,k,w,_,v,14,o[18]),_=p(_,I,k,w,a,20,o[19]),w=p(w,_,I,k,y,5,o[20]),k=p(k,w,_,I,S,9,o[21]),I=p(I,k,w,_,C,14,o[22]),_=p(_,I,k,w,m,20,o[23]),w=p(w,_,I,k,b,5,o[24]),k=p(k,w,_,I,A,9,o[25]),I=p(I,k,w,_,f,14,o[26]),_=p(_,I,k,w,x,20,o[27]),w=p(w,_,I,k,P,5,o[28]),k=p(k,w,_,I,d,9,o[29]),I=p(I,k,w,_,T,14,o[30]),w=u(w,_=p(_,I,k,w,E,20,o[31]),I,k,y,4,o[32]),k=u(k,w,_,I,x,11,o[33]),I=u(I,k,w,_,v,16,o[34]),_=u(_,I,k,w,A,23,o[35]),w=u(w,_,I,k,l,4,o[36]),k=u(k,w,_,I,m,11,o[37]),I=u(I,k,w,_,T,16,o[38]),_=u(_,I,k,w,S,23,o[39]),w=u(w,_,I,k,P,4,o[40]),k=u(k,w,_,I,a,11,o[41]),I=u(I,k,w,_,f,16,o[42]),_=u(_,I,k,w,g,23,o[43]),w=u(w,_,I,k,b,4,o[44]),k=u(k,w,_,I,E,11,o[45]),I=u(I,k,w,_,C,16,o[46]),w=h(w,_=u(_,I,k,w,d,23,o[47]),I,k,a,6,o[48]),k=h(k,w,_,I,T,10,o[49]),I=h(I,k,w,_,A,15,o[50]),_=h(_,I,k,w,y,21,o[51]),w=h(w,_,I,k,E,6,o[52]),k=h(k,w,_,I,f,10,o[53]),I=h(I,k,w,_,S,15,o[54]),_=h(_,I,k,w,l,21,o[55]),w=h(w,_,I,k,x,6,o[56]),k=h(k,w,_,I,C,10,o[57]),I=h(I,k,w,_,g,15,o[58]),_=h(_,I,k,w,P,21,o[59]),w=h(w,_,I,k,m,6,o[60]),k=h(k,w,_,I,v,10,o[61]),I=h(I,k,w,_,d,15,o[62]),_=h(_,I,k,w,b,21,o[63]),s[0]=s[0]+w|0,s[1]=s[1]+_|0,s[2]=s[2]+I|0,s[3]=s[3]+k|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var s=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var o=this._hash,l=o.words,c=0;c<4;c++){var p=l[c];l[c]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)}return o},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,s,a){var o=e+(t&r|~t&n)+i+a;return(o<<s|o>>>32-s)+t}function p(e,t,r,n,i,s,a){var o=e+(t&n|r&~n)+i+a;return(o<<s|o>>>32-s)+t}function u(e,t,r,n,i,s,a){var o=e+(t^r^n)+i+a;return(o<<s|o>>>32-s)+t}function h(e,t,r,n,i,s,a){var o=e+(r^(t|~n))+i+a;return(o<<s|o>>>32-s)+t}r.MD5=s._createHelper(l),r.HmacMD5=s._createHmacHelper(l)}(Math),e.MD5)),vl.exports;var e}var Pl,Al={exports:{}};function Cl(){return Pl||(Pl=1,Al.exports=(o=sl(),t=(e=o).lib,r=t.WordArray,n=t.Hasher,i=e.algo,s=[],a=i.SHA1=n.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],a=r[2],o=r[3],l=r[4],c=0;c<80;c++){if(c<16)s[c]=0|e[t+c];else{var p=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=p<<1|p>>>31}var u=(n<<5|n>>>27)+l+s[c];u+=c<20?1518500249+(i&a|~i&o):c<40?1859775393+(i^a^o):c<60?(i&a|i&o|a&o)-1894007588:(i^a^o)-899497514,l=o,o=a,a=i<<30|i>>>2,i=n,n=u}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+o|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=n._createHelper(a),e.HmacSHA1=n._createHmacHelper(a),o.SHA1)),Al.exports;var e,t,r,n,i,s,a,o}var wl,_l={exports:{}};function Il(){return wl||(wl=1,_l.exports=(e=sl(),function(t){var r=e,n=r.lib,i=n.WordArray,s=n.Hasher,a=r.algo,o=[],l=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(o[i]=r(t.pow(n,.5))),l[i]=r(t.pow(n,1/3)),i++),n++}();var c=[],p=a.SHA256=s.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],s=r[2],a=r[3],o=r[4],p=r[5],u=r[6],h=r[7],d=0;d<64;d++){if(d<16)c[d]=0|e[t+d];else{var f=c[d-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,y=c[d-2],g=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;c[d]=m+c[d-7]+g+c[d-16]}var T=n&i^n&s^i&s,x=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),b=h+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&p^~o&u)+l[d]+c[d];h=u,u=p,p=o,o=a+b|0,a=s,s=i,i=n,n=b+(x+T)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+o|0,r[5]=r[5]+p|0,r[6]=r[6]+u|0,r[7]=r[7]+h|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=s._createHelper(p),r.HmacSHA256=s._createHmacHelper(p)}(Math),e.SHA256)),_l.exports;var e}var kl,Ol={exports:{}};var Nl,Ll={exports:{}};function Dl(){return Nl||(Nl=1,Ll.exports=(e=sl(),ll(),function(){var t=e,r=t.lib.Hasher,n=t.x64,i=n.Word,s=n.WordArray,a=t.algo;function o(){return i.create.apply(i,arguments)}var l=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=o()}();var p=a.SHA512=r.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],s=r[2],a=r[3],o=r[4],p=r[5],u=r[6],h=r[7],d=n.high,f=n.low,m=i.high,y=i.low,g=s.high,T=s.low,x=a.high,b=a.low,S=o.high,v=o.low,E=p.high,P=p.low,A=u.high,C=u.low,w=h.high,_=h.low,I=d,k=f,O=m,N=y,L=g,D=T,M=x,B=b,F=S,j=v,R=E,V=P,U=A,K=C,H=w,W=_,q=0;q<80;q++){var $,Y,J=c[q];if(q<16)Y=J.high=0|e[t+2*q],$=J.low=0|e[t+2*q+1];else{var X=c[q-15],z=X.high,G=X.low,Q=(z>>>1|G<<31)^(z>>>8|G<<24)^z>>>7,Z=(G>>>1|z<<31)^(G>>>8|z<<24)^(G>>>7|z<<25),ee=c[q-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),se=c[q-7],ae=se.high,oe=se.low,le=c[q-16],ce=le.high,pe=le.low;Y=(Y=(Y=Q+ae+(($=Z+oe)>>>0<Z>>>0?1:0))+ne+(($+=ie)>>>0<ie>>>0?1:0))+ce+(($+=pe)>>>0<pe>>>0?1:0),J.high=Y,J.low=$}var ue,he=F&R^~F&U,de=j&V^~j&K,fe=I&O^I&L^O&L,me=k&N^k&D^N&D,ye=(I>>>28|k<<4)^(I<<30|k>>>2)^(I<<25|k>>>7),ge=(k>>>28|I<<4)^(k<<30|I>>>2)^(k<<25|I>>>7),Te=(F>>>14|j<<18)^(F>>>18|j<<14)^(F<<23|j>>>9),xe=(j>>>14|F<<18)^(j>>>18|F<<14)^(j<<23|F>>>9),be=l[q],Se=be.high,ve=be.low,Ee=H+Te+((ue=W+xe)>>>0<W>>>0?1:0),Pe=ge+me;H=U,W=K,U=R,K=V,R=F,V=j,F=M+(Ee=(Ee=(Ee=Ee+he+((ue+=de)>>>0<de>>>0?1:0))+Se+((ue+=ve)>>>0<ve>>>0?1:0))+Y+((ue+=$)>>>0<$>>>0?1:0))+((j=B+ue|0)>>>0<B>>>0?1:0)|0,M=L,B=D,L=O,D=N,O=I,N=k,I=Ee+(ye+fe+(Pe>>>0<ge>>>0?1:0))+((k=ue+Pe|0)>>>0<ue>>>0?1:0)|0}f=n.low=f+k,n.high=d+I+(f>>>0<k>>>0?1:0),y=i.low=y+N,i.high=m+O+(y>>>0<N>>>0?1:0),T=s.low=T+D,s.high=g+L+(T>>>0<D>>>0?1:0),b=a.low=b+B,a.high=x+M+(b>>>0<B>>>0?1:0),v=o.low=v+j,o.high=S+F+(v>>>0<j>>>0?1:0),P=p.low=P+V,p.high=E+R+(P>>>0<V>>>0?1:0),C=u.low=C+K,u.high=A+U+(C>>>0<K>>>0?1:0),_=h.low=_+W,h.high=w+H+(_>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(p),t.HmacSHA512=r._createHmacHelper(p)}(),e.SHA512)),Ll.exports;var e}var Ml,Bl={exports:{}};var Fl,jl={exports:{}};function Rl(){return Fl||(Fl=1,jl.exports=(e=sl(),ll(),function(t){var r=e,n=r.lib,i=n.WordArray,s=n.Hasher,a=r.x64.Word,o=r.algo,l=[],c=[],p=[];!function(){for(var e=1,t=0,r=0;r<24;r++){l[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,s=0;s<24;s++){for(var o=0,u=0,h=0;h<7;h++){if(1&i){var d=(1<<h)-1;d<32?u^=1<<d:o^=1<<d-32}128&i?i=i<<1^113:i<<=1}p[s]=a.create(o,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=a.create()}();var h=o.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var s=e[t+2*i],a=e[t+2*i+1];s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(_=r[i]).high^=a,_.low^=s}for(var o=0;o<24;o++){for(var h=0;h<5;h++){for(var d=0,f=0,m=0;m<5;m++)d^=(_=r[h+5*m]).high,f^=_.low;var y=u[h];y.high=d,y.low=f}for(h=0;h<5;h++){var g=u[(h+4)%5],T=u[(h+1)%5],x=T.high,b=T.low;for(d=g.high^(x<<1|b>>>31),f=g.low^(b<<1|x>>>31),m=0;m<5;m++)(_=r[h+5*m]).high^=d,_.low^=f}for(var S=1;S<25;S++){var v=(_=r[S]).high,E=_.low,P=l[S];P<32?(d=v<<P|E>>>32-P,f=E<<P|v>>>32-P):(d=E<<P-32|v>>>64-P,f=v<<P-32|E>>>64-P);var A=u[c[S]];A.high=d,A.low=f}var C=u[0],w=r[0];for(C.high=w.high,C.low=w.low,h=0;h<5;h++)for(m=0;m<5;m++){var _=r[S=h+5*m],I=u[S],k=u[(h+1)%5+5*m],O=u[(h+2)%5+5*m];_.high=I.high^~k.high&O.high,_.low=I.low^~k.low&O.low}_=r[0];var N=p[o];_.high^=N.high,_.low^=N.low}},_doFinalize:function(){var e=this._data,r=e.words;this._nDataBytes;var n=8*e.sigBytes,s=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/s)*s>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var a=this._state,o=this.cfg.outputLength/8,l=o/8,c=[],p=0;p<l;p++){var u=a[p],h=u.high,d=u.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),c.push(d),c.push(h)}return new i.init(c,o)},clone:function(){for(var e=s.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=s._createHelper(h),r.HmacSHA3=s._createHmacHelper(h)}(Math),e.SHA3)),jl.exports;var e}var Vl,Ul={exports:{}};var Kl,Hl={exports:{}};function Wl(){return Kl?Hl.exports:(Kl=1,Hl.exports=(e=sl(),r=(t=e).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var s=this._oKey=t.clone(),a=this._iKey=t.clone(),o=s.words,l=a.words,c=0;c<r;c++)o[c]^=1549556828,l[c]^=909522486;s.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}}))));var e,t,r,n}var ql,$l={exports:{}};var Yl,Jl={exports:{}};function Xl(){return Yl?Jl.exports:(Yl=1,Jl.exports=(o=sl(),Cl(),Wl(),t=(e=o).lib,r=t.Base,n=t.WordArray,i=e.algo,s=i.MD5,a=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,i=this.cfg,s=i.hasher.create(),a=n.create(),o=a.words,l=i.keySize,c=i.iterations;o.length<l;){r&&s.update(r),r=s.update(e).finalize(t),s.reset();for(var p=1;p<c;p++)r=s.finalize(r),s.reset();a.concat(r)}return a.sigBytes=4*l,a}}),e.EvpKDF=function(e,t,r){return a.create(r).compute(e,t)},o.EvpKDF));var e,t,r,n,i,s,a,o}var zl,Gl={exports:{}};function Ql(){return zl?Gl.exports:(zl=1,Gl.exports=(e=sl(),Xl(),void(e.lib.Cipher||function(t){var r=e,n=r.lib,i=n.Base,s=n.WordArray,a=n.BufferedBlockAlgorithm,o=r.enc;o.Utf8;var l=o.Base64,c=r.algo.EvpKDF,p=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?x:g}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});n.StreamCipher=p.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=r.mode={},h=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=u.CBC=function(){var e=h.extend();function r(e,r,n){var i,s=this._iv;s?(i=s,this._iv=t):i=this._prevBlock;for(var a=0;a<n;a++)e[r+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,s=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=s}}),e}(),f=(r.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,a=[],o=0;o<n;o+=4)a.push(i);var l=s.create(a,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=p.extend({cfg:p.cfg.extend({mode:d,padding:f}),reset:function(){var e;p.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),y=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?s.create([1398893684,1701076831]).concat(r).concat(t):t).toString(l)},parse:function(e){var t,r=l.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=s.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:t})}},g=n.SerializableCipher=i.extend({cfg:i.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),s=i.finalize(t),a=i.cfg;return m.create({ciphertext:s,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),T=(r.kdf={}).OpenSSL={execute:function(e,t,r,n,i){if(n||(n=s.random(8)),i)a=c.create({keySize:t+r,hasher:i}).compute(e,n);else var a=c.create({keySize:t+r}).compute(e,n);var o=s.create(a.words.slice(t),4*r);return a.sigBytes=4*t,m.create({key:a,iv:o,salt:n})}},x=n.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:T}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var s=g.encrypt.call(this,e,t,i.key,n);return s.mixIn(i),s},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,g.decrypt.call(this,e,t,i.key,n)}})}())));var e}var Zl,ec={exports:{}};function tc(){return Zl?ec.exports:(Zl=1,ec.exports=(e=sl(),Ql(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function r(e,t,r,n){var i,s=this._iv;s?(i=s.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i,n),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,s=e.slice(t,t+i);r.call(this,e,t,i,n),this._prevBlock=s}}),t}(),e.mode.CFB));var e}var rc,nc={exports:{}};function ic(){return rc?nc.exports:(rc=1,nc.exports=(r=sl(),Ql(),r.mode.CTR=(e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=i.slice(0),this._iv=void 0);var a=s.slice(0);r.encryptBlock(a,0),s[n-1]=s[n-1]+1|0;for(var o=0;o<n;o++)e[t+o]^=a[o]}}),e.Decryptor=t,e),r.mode.CTR));var e,t,r}var sc,ac={exports:{}};function oc(){return sc?ac.exports:(sc=1,ac.exports=(e=sl(),Ql(),
14
+ /** @preserve
15
+ * Counter block mode compatible with Dr Brian Gladman fileenc.c
16
+ * derived from CryptoJS.mode.CTR
17
+ * Jan Hruby jhruby.web@gmail.com
18
+ */
19
+ e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}return e}function n(e){return 0===(e[0]=r(e[0]))&&(e[1]=r(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,s=this._iv,a=this._counter;s&&(a=this._counter=s.slice(0),this._iv=void 0),n(a);var o=a.slice(0);r.encryptBlock(o,0);for(var l=0;l<i;l++)e[t+l]^=o[l]}});return t.Decryptor=i,t}(),e.mode.CTRGladman));var e}var lc,cc={exports:{}};function pc(){return lc?cc.exports:(lc=1,cc.exports=(r=sl(),Ql(),r.mode.OFB=(e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,s=this._keystream;i&&(s=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(s,0);for(var a=0;a<n;a++)e[t+a]^=s[a]}}),e.Decryptor=t,e),r.mode.OFB));var e,t,r}var uc,hc={exports:{}};var dc,fc={exports:{}};var mc,yc={exports:{}};var gc,Tc={exports:{}};var xc,bc={exports:{}};var Sc,vc={exports:{}};var Ec,Pc={exports:{}};var Ac,Cc={exports:{}};var wc,_c={exports:{}};function Ic(){return wc?_c.exports:(wc=1,_c.exports=(e=sl(),gl(),El(),Xl(),Ql(),function(){var t=e,r=t.lib,n=r.WordArray,i=r.BlockCipher,s=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],p=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=s.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],s=0;s<16;s++){var c=i[s]=[],p=l[s];for(r=0;r<24;r++)c[r/6|0]|=t[(o[r]-1+p)%28]<<31-r%6,c[4+(r/6|0)]|=t[28+(o[r+24]-1+p)%28]<<31-r%6;for(c[0]=c[0]<<1|c[0]>>>31,r=1;r<7;r++)c[r]=c[r]>>>4*(r-1)+3;c[7]=c[7]<<5|c[7]>>>27}var u=this._invSubKeys=[];for(r=0;r<16;r++)u[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],s=this._lBlock,a=this._rBlock,o=0,l=0;l<8;l++)o|=c[l][((a^i[l])&p[l])>>>0];this._lBlock=a,this._rBlock=s^o}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,h.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function d(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}t.DES=i._createHelper(u);var f=s.TripleDES=i.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(n.create(t)),this._des2=u.createEncryptor(n.create(r)),this._des3=u.createEncryptor(n.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(f)}(),e.TripleDES));var e}var kc,Oc={exports:{}};var Nc,Lc={exports:{}};var Dc,Mc={exports:{}};var Bc,Fc={exports:{}};function jc(){return Bc?Fc.exports:(Bc=1,Fc.exports=(e=sl(),gl(),El(),Xl(),Ql(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo;const i=16,s=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var o={pbox:[],sbox:[]};function l(e,t){let r=t>>24&255,n=t>>16&255,i=t>>8&255,s=255&t,a=e.sbox[0][r]+e.sbox[1][n];return a^=e.sbox[2][i],a+=e.sbox[3][s],a}function c(e,t,r){let n,s=t,a=r;for(let t=0;t<i;++t)s^=e.pbox[t],a=l(e,s)^a,n=s,s=a,a=n;return n=s,s=a,a=n,a^=e.pbox[i],s^=e.pbox[i+1],{left:s,right:a}}function p(e,t,r){let n,s=t,a=r;for(let t=i+1;t>1;--t)s^=e.pbox[t],a=l(e,s)^a,n=s,s=a,a=n;return n=s,s=a,a=n,a^=e.pbox[1],s^=e.pbox[0],{left:s,right:a}}function u(e,t,r){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=a[t][r]}let n=0;for(let a=0;a<i+2;a++)e.pbox[a]=s[a]^t[n],n++,n>=r&&(n=0);let o=0,l=0,p=0;for(let t=0;t<i+2;t+=2)p=c(e,o,l),o=p.left,l=p.right,e.pbox[t]=o,e.pbox[t+1]=l;for(let t=0;t<4;t++)for(let r=0;r<256;r+=2)p=c(e,o,l),o=p.left,l=p.right,e.sbox[t][r]=o,e.sbox[t][r+1]=l;return!0}var h=n.Blowfish=r.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4;u(o,t,r)}},encryptBlock:function(e,t){var r=c(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},decryptBlock:function(e,t){var r=p(o,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=r._createHelper(h)}(),e.Blowfish));var e}var Rc,Vc,Uc;function Kc(){return Rc||(Rc=1,tl.exports=function(e){return e}(sl(),ll(),ul(),fl(),gl(),bl(),El(),Cl(),Il(),kl||(kl=1,Ol.exports=(s=sl(),Il(),t=(e=s).lib.WordArray,r=e.algo,n=r.SHA256,i=r.SHA224=n.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=n._doFinalize.call(this);return e.sigBytes-=4,e}}),e.SHA224=n._createHelper(i),e.HmacSHA224=n._createHmacHelper(i),s.SHA224)),Dl(),function(){return Ml?Bl.exports:(Ml=1,Bl.exports=(o=sl(),ll(),Dl(),t=(e=o).x64,r=t.Word,n=t.WordArray,i=e.algo,s=i.SHA512,a=i.SHA384=s.extend({_doReset:function(){this._hash=new n.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=s._createHelper(a),e.HmacSHA384=s._createHmacHelper(a),o.SHA384));var e,t,r,n,i,s,a,o}(),Rl(),function(){return Vl||(Vl=1,Ul.exports=(e=sl(),
20
+ /** @preserve
21
+ (c) 2012 by Cédric Mesnil. All rights reserved.
22
+
23
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
24
+
25
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
26
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
27
+
28
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
+ */
30
+ function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,s=t.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=s.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var s,h,x,b,S,v,E,P,A,C,w,_=this._hash.words,I=p.words,k=u.words,O=a.words,N=o.words,L=l.words,D=c.words;for(v=s=_[0],E=h=_[1],P=x=_[2],A=b=_[3],C=S=_[4],r=0;r<80;r+=1)w=s+e[t+O[r]]|0,w+=r<16?d(h,x,b)+I[0]:r<32?f(h,x,b)+I[1]:r<48?m(h,x,b)+I[2]:r<64?y(h,x,b)+I[3]:g(h,x,b)+I[4],w=(w=T(w|=0,L[r]))+S|0,s=S,S=b,b=T(x,10),x=h,h=w,w=v+e[t+N[r]]|0,w+=r<16?g(E,P,A)+k[0]:r<32?y(E,P,A)+k[1]:r<48?m(E,P,A)+k[2]:r<64?f(E,P,A)+k[3]:d(E,P,A)+k[4],w=(w=T(w|=0,D[r]))+C|0,v=C,C=A,A=T(P,10),P=E,E=w;w=_[1]+x+A|0,_[1]=_[2]+b+C|0,_[2]=_[3]+S+v|0,_[3]=_[4]+s+E|0,_[4]=_[0]+h+P|0,_[0]=w},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,s=i.words,a=0;a<5;a++){var o=s[a];s[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function d(e,t,r){return e^t^r}function f(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function g(e,t,r){return e^(t|~r)}function T(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(h),t.HmacRIPEMD160=i._createHmacHelper(h)}(),e.RIPEMD160)),Ul.exports;var e}(),Wl(),function(){return ql||(ql=1,$l.exports=(l=sl(),Il(),Wl(),t=(e=l).lib,r=t.Base,n=t.WordArray,i=e.algo,s=i.SHA256,a=i.HMAC,o=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),s=n.create(),o=n.create([1]),l=s.words,c=o.words,p=r.keySize,u=r.iterations;l.length<p;){var h=i.update(t).finalize(o);i.reset();for(var d=h.words,f=d.length,m=h,y=1;y<u;y++){m=i.finalize(m),i.reset();for(var g=m.words,T=0;T<f;T++)d[T]^=g[T]}s.concat(h),c[0]++}return s.sigBytes=4*p,s}}),e.PBKDF2=function(e,t,r){return o.create(r).compute(e,t)},l.PBKDF2)),$l.exports;var e,t,r,n,i,s,a,o,l}(),Xl(),Ql(),tc(),ic(),oc(),pc(),function(){return uc?hc.exports:(uc=1,hc.exports=(t=sl(),Ql(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return dc?fc.exports:(dc=1,fc.exports=(e=sl(),Ql(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,s=r+i-1;e.clamp(),e.words[s>>>2]|=i<<24-s%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return mc?yc.exports:(mc=1,yc.exports=(e=sl(),Ql(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return gc?Tc.exports:(gc=1,Tc.exports=(e=sl(),Ql(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return xc?bc.exports:(xc=1,bc.exports=(e=sl(),Ql(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding));var e}(),function(){return Sc?vc.exports:(Sc=1,vc.exports=(e=sl(),Ql(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Ec?Pc.exports:(Ec=1,Pc.exports=(n=sl(),Ql(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return Ac?Cc.exports:(Ac=1,Cc.exports=(e=sl(),gl(),El(),Xl(),Ql(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],s=[],a=[],o=[],l=[],c=[],p=[],u=[],h=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var f=n^n<<1^n<<2^n<<3^n<<4;f=f>>>8^255&f^99,i[r]=f,s[f]=r;var m=e[r],y=e[m],g=e[y],T=257*e[f]^16843008*f;a[r]=T<<24|T>>>8,o[r]=T<<16|T>>>16,l[r]=T<<8|T>>>24,c[r]=T,T=16843009*g^65537*y^257*m^16843008*r,p[f]=T<<24|T>>>8,u[f]=T<<16|T>>>16,h[f]=T<<8|T>>>24,d[f]=T,r?(r=m^e[e[e[g^m]]],n^=e[e[n]]):r=n=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),s=this._keySchedule=[],a=0;a<n;a++)a<r?s[a]=t[a]:(c=s[a-1],a%r?r>6&&a%r==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=f[a/r|0]<<24),s[a]=s[a-r]^c);for(var o=this._invKeySchedule=[],l=0;l<n;l++){if(a=n-l,l%4)var c=s[a];else c=s[a-4];o[l]=l<4||a<=4?c:p[i[c>>>24]]^u[i[c>>>16&255]]^h[i[c>>>8&255]]^d[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,o,l,c,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,p,u,h,d,s),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,s,a,o){for(var l=this._nRounds,c=e[t]^r[0],p=e[t+1]^r[1],u=e[t+2]^r[2],h=e[t+3]^r[3],d=4,f=1;f<l;f++){var m=n[c>>>24]^i[p>>>16&255]^s[u>>>8&255]^a[255&h]^r[d++],y=n[p>>>24]^i[u>>>16&255]^s[h>>>8&255]^a[255&c]^r[d++],g=n[u>>>24]^i[h>>>16&255]^s[c>>>8&255]^a[255&p]^r[d++],T=n[h>>>24]^i[c>>>16&255]^s[p>>>8&255]^a[255&u]^r[d++];c=m,p=y,u=g,h=T}m=(o[c>>>24]<<24|o[p>>>16&255]<<16|o[u>>>8&255]<<8|o[255&h])^r[d++],y=(o[p>>>24]<<24|o[u>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^r[d++],g=(o[u>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&p])^r[d++],T=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[p>>>8&255]<<8|o[255&u])^r[d++],e[t]=m,e[t+1]=y,e[t+2]=g,e[t+3]=T},keySize:8});t.AES=r._createHelper(m)}(),e.AES));var e}(),Ic(),function(){return kc?Oc.exports:(kc=1,Oc.exports=(e=sl(),gl(),El(),Xl(),Ql(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var s=0;i<256;i++){var a=i%r,o=t[a>>>2]>>>24-a%4*8&255;s=(s+n[i]+o)%256;var l=n[i];n[i]=n[s],n[s]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=s.call(this)},keySize:8,ivSize:0});function s(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var s=e[t];e[t]=e[r],e[r]=s,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)s.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4));var e}(),function(){return Nc?Lc.exports:(Nc=1,Lc.exports=(e=sl(),gl(),El(),Xl(),Ql(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],s=[],a=[],o=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var s=t.words,a=s[0],o=s[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),p=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=c>>>16|4294901760&p,h=p<<16|65535&c;for(i[0]^=c,i[1]^=u,i[2]^=p,i[3]^=h,i[4]^=c,i[5]^=u,i[6]^=p,i[7]^=h,r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)s[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,o=n>>>16,l=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._createHelper(o)}(),e.Rabbit));var e}(),function(){return Dc?Mc.exports:(Dc=1,Mc.exports=(e=sl(),gl(),El(),Xl(),Ql(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],s=[],a=[],o=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var s=t.words,a=s[0],o=s[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),p=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=c>>>16|4294901760&p,h=p<<16|65535&c;for(n[0]^=c,n[1]^=u,n[2]^=p,n[3]^=h,n[4]^=c,n[5]^=u,n[6]^=p,n[7]^=h,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)s[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,o=n>>>16,l=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._createHelper(o)}(),e.RabbitLegacy));var e}(),jc())),tl.exports;var e,t,r,n,i,s}function Hc(){if(Vc)return el;Vc=1;var e=(Qo||(Qo=1,Go=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},s={key:n,value:e[n]};return r(i,s)}}),s=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r<t.length;r++)r&&(a+=","),a+=e(t[r])||"null";return a+"]"}if(null===t)return"null";if(-1!==s.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var o=s.push(t)-1,l=Object.keys(t).sort(i&&i(t));for(a="",r=0;r<l.length;r++){var c=l[r],p=e(t[c]);p&&(a&&(a+=","),a+=JSON.stringify(c)+":"+p)}return s.splice(o,1),"{"+a+"}"}}(e)}),Go),t=Kc(),r=function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function n(e){return t.SHA256(e).toString(t.enc.Hex).slice(0,16)}"function"==typeof SuppressedError&&SuppressedError;var i=function(e){if(e&&"object"==typeof e){var t={};if("c"in e&&e.c&&(t.c=s(e.c)),"d"in e){var n=null==e?void 0:e.d;(null==n?void 0:n.b)&&(t.b=Object.fromEntries(Object.entries(n.b).map(function(e){return[e[0],s(e[1])]}))),(null==n?void 0:n.t)&&(t.t=n.t)}return function(e){var t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){var r=Object.keys(t);if(1===r.length)return!0;if(2===r.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===r.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}(e)?r({k:e.k},e.v&&{v:e.v}):t}return e};function s(e){return Array.isArray(e)?e.map(i):i(e)}return el.hashSource=function(t,i){var a=t.source,o=t.context,l=t.id,c=t.dataFormat;void 0===i&&(i=n);var p={};return p.source="JSX"===c?s(a):a,p=r(r(r(r({},p),l&&{id:l}),o&&{context:o}),c&&{dataFormat:c}),i(e(p))},el.hashString=n,el.hashTemplate=function(t,r){return void 0===r&&(r=n),r(e(t))},el}var Wc,qc={};var $c,Yc={};var Jc,Xc={};function zc(){if(Jc)return Xc;return Jc=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.getTrackedVariable=function(e,t,r){var n,i,s;if(!r)return{canonicalName:void 0,identifier:void 0,type:void 0};if(t)return e.hasNamespaceImport(t)?{canonicalName:r,identifier:void 0,type:"generaltranslation"}:{canonicalName:void 0,identifier:void 0,type:void 0};const a=e.getVariable(r);return{canonicalName:null!==(n=null==a?void 0:a.canonicalName)&&void 0!==n?n:void 0,identifier:null!==(i=null==a?void 0:a.identifier)&&void 0!==i?i:void 0,type:null!==(s=null==a?void 0:a.type)&&void 0!==s?s:void 0}},Xc}var Gc,Qc,Zc={},ep={};function tp(){return Gc||(Gc=1,Object.defineProperty(ep,"__esModule",{value:!0}),ep.REACT_IMPORT_SOURCES=ep.REACT_COMPONENT_VALUES=ep.REACT_COMPONENTS=ep.REACT_FUNCTION_VALUES=ep.REACT_FUNTIONS=void 0,function(e){e.jsx="jsx",e.jsxs="jsxs",e.jsxDEV="jsxDEV"}(e||(ep.REACT_FUNTIONS=e={})),ep.REACT_FUNCTION_VALUES=[e.jsx,e.jsxs,e.jsxDEV],function(e){e.Activity="Activity",e.Fragment="Fragment",e.Profiler="Profiler",e.Suspense="Suspense",e.SuspenseList="SuspenseList",e.ViewTransition="ViewTransition"}(t||(ep.REACT_COMPONENTS=t={})),ep.REACT_COMPONENT_VALUES=[t.Activity,t.Fragment,t.Profiler,t.Suspense,t.SuspenseList,t.ViewTransition],function(e){e.JSX_DEV_RUNTIME="react/jsx-dev-runtime",e.JSX_RUNTIME="react/jsx-runtime",e.REACT="react"}(r||(ep.REACT_IMPORT_SOURCES=r={}))),ep;var e,t,r}function rp(){if(Qc)return Zc;Qc=1,Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.isReactFunction=function(e){return t.REACT_FUNCTION_VALUES.includes(e)},Zc.isReactImportSource=function(t){return Object.values(e.REACT_IMPORT_SOURCES).includes(t)},Zc.isReactComponent=function(t){return e.REACT_COMPONENT_VALUES.includes(t)};const e=tp(),t=tp();return Zc}var np,ip={},sp={};function ap(){if(np)return sp;np=1;var e,t=sp&&sp.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=sp&&sp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=sp&&sp.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(sp,"__esModule",{value:!0}),sp.getObjectPropertyFromObjectExpression=function(e,t){return e.properties.find(e=>!i.isSpreadElement(e)&&(!(!i.isIdentifier(e.key)||e.key.name!==t)||!(!i.isStringLiteral(e.key)||e.key.value!==t)))};const i=n(Ni());return sp}var op,lp={};var cp,pp,up={},hp={},dp={},fp={},mp={};function yp(){return cp||(cp=1,Object.defineProperty(mp,"__esModule",{value:!0}),mp.INVALID_IDENTIFIERS=mp.OTHER_IDENTIFIERS_ENUM=mp.OTHER_IDENTIFIERS=void 0,mp.OTHER_IDENTIFIERS=["undefined","NaN","Infinity","Object","Array","String","Number","Boolean","console","window","document","global"],function(e){e.UNDEFINED="undefined",e.NAN="NaN",e.INFINITY="Infinity",e.OBJECT="Object",e.ARRAY="Array",e.STRING="String",e.NUMBER="Number",e.BOOLEAN="Boolean",e.CONSOLE="console",e.WINDOW="window",e.DOCUMENT="document",e.GLOBAL="global"}(e||(mp.OTHER_IDENTIFIERS_ENUM=e={})),mp.INVALID_IDENTIFIERS=[e.CONSOLE,e.WINDOW,e.DOCUMENT,e.GLOBAL]),mp;var e}var gp,Tp,xp={};function bp(){if(gp)return xp;gp=1,Object.defineProperty(xp,"__esModule",{value:!0}),xp.createErrorLocation=function(e){var t,r;if(null===(t=e.loc)||void 0===t?void 0:t.start.line)return(null===(r=e.loc)||void 0===r?void 0:r.start.column)?` {filename}:${e.loc.start.line}:${e.loc.start.column}`:` {filename}:${e.loc.start.line}`;return" {filename}"},xp.generateDynamicContentErrorMessage=function(t){return e+(t?`Wrap the "${t}" variable in a <Var> component.`:"All variables must be wrapped in a <Var> component or other Variable Components.")};const e="The <T> component cannot contain any dynamic content. ";return xp}function Sp(){if(Tp)return dp;Tp=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.validateIdentifier=function(n,i){const s=[],a=i.scopeTracker.getVariable(n.name);if(a)return s.push((0,r.generateDynamicContentErrorMessage)(n.name)+(0,r.createErrorLocation)(n)),{errors:s};if(!(0,e.isOtherIdentifier)(n.name))return s.push((0,r.generateDynamicContentErrorMessage)(n.name)+(0,r.createErrorLocation)(n)),{errors:s};if((0,e.isInvalidIdentifier)(n.name))return s.push((0,r.generateDynamicContentErrorMessage)(n.name)+(0,r.createErrorLocation)(n)),{errors:s};let o;switch(n.name){case t.OTHER_IDENTIFIERS_ENUM.NAN:case t.OTHER_IDENTIFIERS_ENUM.INFINITY:o=n.name;break;default:o=void 0}return{errors:s,value:o}};const e=function(){if(pp)return fp;pp=1,Object.defineProperty(fp,"__esModule",{value:!0}),fp.isOtherIdentifier=function(t){return e.OTHER_IDENTIFIERS.includes(t)},fp.isInvalidIdentifier=function(t){return e.INVALID_IDENTIFIERS.includes(t)};const e=yp();return fp}(),t=yp(),r=bp();return dp}var vp,Ep={};var Pp,Ap={};var Cp,wp={};function _p(){if(Cp)return wp;Cp=1;var e,t=wp&&wp.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=wp&&wp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=wp&&wp.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(wp,"__esModule",{value:!0}),wp.getCalleeNameFromJsxExpressionParam=function(e){if(i.isStringLiteral(e))return{namespaceName:null,functionName:e.value};if(i.isIdentifier(e))return{namespaceName:null,functionName:e.name};if(i.isMemberExpression(e)&&i.isIdentifier(e.object)&&i.isIdentifier(e.property))return{namespaceName:e.object.name,functionName:e.property.name};return{namespaceName:null,functionName:null}};const i=n(Ni());return wp}var Ip,kp,Op={},Np={};function Lp(){if(Ip)return Np;Ip=1;var e,t=Np&&Np.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Np&&Np.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Np&&Np.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Np,"__esModule",{value:!0}),Np.validateChildrenPropertyFromObjectExpression=function(e){const t=[],r=(0,a.getObjectPropertyFromObjectExpression)(e,"children");if(!r)return{errors:t,value:void 0};if(!i.isObjectProperty(r))return t.push(`The children property of the <${s.GT_COMPONENT_TYPES.T}> component must be an object property`),{errors:t};if(!i.isExpression(r.value))return t.push(`The children properties of the <${s.GT_COMPONENT_TYPES.T}> component must be an expression`),{errors:t};return{errors:t,value:r.value}};const i=n(Ni()),s=Ro(),a=ap();return Np}var Dp,Mp={};var Bp,Fp={};var jp,Rp={};var Vp,Up,Kp={},Hp={};function Wp(){if(Up)return Kp;Up=1;var e,t=Kp&&Kp.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Kp&&Kp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Kp&&Kp.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.validateNameFieldForVarComponent=function(e){const t=[],r=(0,s.getObjectPropertyFromObjectExpression)(e,"name");if(!r)return{errors:t,value:void 0};if(!i.isObjectProperty(r)||!i.isExpression(r.value))return t.push("Failed to construct Variable! Name field must be an expression"+(0,o.createErrorLocation)(r)),{errors:t};if(!i.isStringLiteral(r.value)&&!i.isTemplateLiteral(r.value))return t.push("Failed to construct Variable! Name field must be a string literal"+(0,o.createErrorLocation)(r.value)),{errors:t};return{errors:t,value:(0,a.getStringLiteralFromExpression)(r.value)}};const i=n(Ni()),s=ap(),a=function(){if(Vp)return Hp;Vp=1;var e,t=Hp&&Hp.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Hp&&Hp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Hp&&Hp.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Hp,"__esModule",{value:!0}),Hp.getStringLiteralFromExpression=function(e){var t;if(i.isStringLiteral(e))return e.value;if(i.isTemplateLiteral(e)&&0===e.expressions.length)return(null===(t=e.quasis[0])||void 0===t?void 0:t.value.cooked)||"";throw new Error("Expression is not a string literal")};const i=n(Ni());return Hp}(),o=bp();return Kp}var qp,$p={};var Yp,Jp,Xp,zp,Gp={};function Qp(){if(Jp)return hp;Jp=1;var e,t=hp&&hp.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=hp&&hp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=hp&&hp.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(hp,"__esModule",{value:!0}),hp._constructJsxChildren=E;const i=Ho(),s=n(Ni()),a=Sp(),o=function(){if(vp)return Ep;vp=1,Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.validateTemplateLiteral=function(t){const r=[];return t.expressions.length>0?(r.push(`Template literal cannot have interpolation: ${t.quasis[0].value.cooked}`+(0,e.createErrorLocation)(t)),{errors:r}):{errors:r,value:t.quasis[0].value.cooked}};const e=bp();return Ep}(),l=function(){if(Pp)return Ap;Pp=1;var e,t=Ap&&Ap.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Ap&&Ap.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Ap&&Ap.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.validateChildrenElement=function(e){return!!i.isExpression(e)&&!i.isArrayExpression(e)};const i=n(Ni());return Ap}(),c=_p(),p=zc(),u=rp(),h=tp(),d=function(){if(kp)return Op;kp=1;var e,t=Op&&Op.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Op&&Op.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Op&&Op.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Op,"__esModule",{value:!0}),Op.validateChildrenFromArgs=function(e){const t=[];return e.length<2?(t.push("Failed to construct JsxElement! Missing parameter field"+(e.length>0?(0,a.createErrorLocation)(e[0]):"")),{errors:t}):i.isObjectExpression(e[1])?(0,s.validateChildrenPropertyFromObjectExpression)(e[1]):(t.push("Failed to construct JsxElement! Parameter field must be an object expression"+(0,a.createErrorLocation)(e[1])),{errors:t})};const i=n(Ni()),s=Lp(),a=bp();return Op}(),f=function(){if(Dp)return Mp;Dp=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.IdObject=void 0;class e{constructor(e=0){this.id=e}increment(){this.id+=1}get(){return this.id}copy(){return new e(this.id)}}return Mp.IdObject=e,Mp}(),m=Wo(),y=function(){if(Bp)return Fp;Bp=1;var e,t=Fp&&Fp.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Fp&&Fp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Fp&&Fp.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.validateStringLiteralPropertyFromArg=function(e,t){var r;const n=[],a=(0,s.getObjectPropertyFromObjectExpression)(e,t);return a&&i.isObjectProperty(a)&&i.isExpression(a.value)?i.isStringLiteral(a.value)?{errors:n,value:a.value.value}:i.isTemplateLiteral(a.value)&&0===a.value.expressions.length?{errors:n,value:(null===(r=a.value.quasis[0])||void 0===r?void 0:r.value.cooked)||""}:{errors:n,value:void 0}:{errors:n,value:void 0}};const i=n(Ni()),s=ap();return Fp}(),g=Ro(),T=function(){if(jp)return Rp;jp=1;var e,t=Rp&&Rp.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Rp&&Rp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Rp&&Rp.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.getBranchComponentParameters=function(e,t){return e.properties.map(e=>{if(!i.isObjectProperty(e))return null;if(!i.isExpression(e.value))return null;let r;if(i.isStringLiteral(e.key))r=e.key.value;else{if(!i.isIdentifier(e.key))return null;r=e.key.name}return"children"===r||t===s.GT_COMPONENT_TYPES.Branch&&"branch"===r||t===s.GT_COMPONENT_TYPES.Plural&&"n"===r?null:[r,e.value]}).filter(e=>null!==e)};const i=n(Ni()),s=Ro();return Rp}(),x=Wp(),b=function(){if(qp)return $p;qp=1;var e,t=$p&&$p.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=$p&&$p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=$p&&$p.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty($p,"__esModule",{value:!0}),$p.validateUnaryExpression=function(e){const t=[];let r,n="";return"-"===e.operator&&(n=e.operator),i.isNumericLiteral(e.argument)?(r=0===e.argument.value?"0":n+e.argument.value.toString(),{errors:t,value:r}):(t.push("Failed to construct JsxChild! Unary expression argument must be a numeric literal"+(0,s.createErrorLocation)(e.argument)),{errors:t})};const i=n(Ni()),s=bp();return $p}(),S=bp(),v=function(){if(Yp)return Gp;Yp=1,Object.defineProperty(Gp,"__esModule",{value:!0}),Gp.validateJsxCall=function(n,i){const{functionName:s}=(0,t.getCalleeNameFromExpression)(n);if(!s)return[(0,e.generateDynamicContentErrorMessage)()+(0,e.createErrorLocation)(n)];const a=i.scopeTracker.getVariable(s);return a&&"react"===a.type&&(0,r.isReactFunction)(a.canonicalName)?[]:[(0,e.generateDynamicContentErrorMessage)(s+"()")+(0,e.createErrorLocation)(n)]};const e=bp(),t=Yo(),r=rp();return Gp}();function E(e,t,r=new f.IdObject){const n=[];if(!e)return{errors:n,value:e};let i;if(s.isArrayExpression(e)){i=[];for(const a of e.elements){if(!(0,l.validateChildrenElement)(a))return n.push((0,S.generateDynamicContentErrorMessage)()+(a&&(0,S.createErrorLocation)(a))),{errors:n};if(s.isBooleanLiteral(a)||s.isNullLiteral(a))continue;const e=P(a,t,r);if(n.push(...e.errors),n.length>0)return{errors:n};void 0!==e.value&&i.push(e.value)}}else{const s=P(e,t,r);if(n.push(...s.errors),n.length>0)return{errors:n};i=s.value}return{errors:n,value:i}}function P(e,t,r){const n=[];let l;if(s.isCallExpression(e)){const a=function(e,t,r){const n=[],a=(0,v.validateJsxCall)(e,t);if(n.push(...a),a.length>0)return{errors:n};if(r.increment(),0===e.arguments.length)return{errors:n};const o=e.arguments[0];if(!s.isExpression(o))return n.push("Failed to construct JsxElement! First argument must be an expression"+(0,S.createErrorLocation)(e.arguments[0])),{errors:n};const{namespaceName:l,functionName:f}=(0,c.getCalleeNameFromJsxExpressionParam)(o);if(!f)return n.push("Failed to construct JsxElement! First argument must be a valid function"+(0,S.createErrorLocation)(e.arguments[0])),{errors:n};const{canonicalName:b,type:P}=(0,p.getTrackedVariable)(t.scopeTracker,l,f);if(b&&"generaltranslation"===P&&(0,m.isVariableComponent)(b)){const t=function(e,t,r){const n=[];if(t.length<2)return n.push("Failed to construct GTProp! Missing parameters"+(0,S.createErrorLocation)(t[0])),{errors:n};const i=t[1];if(!s.isObjectExpression(i))return n.push("Failed to construct GTProp! Parameter field must be an object expression"+(0,S.createErrorLocation)(t[1])),{errors:n};const a=(0,x.validateNameFieldForVarComponent)(i);if(n.push(...a.errors),a.errors.length>0)return{errors:n};const o=a.value,l={i:r.get(),k:(0,m.getVariableName)(e,r.get(),o),v:(0,m.minifyCanonicalName)(e)};return{errors:n,value:l}}(b,e.arguments,r);if(n.push(...t.errors),t.errors.length>0)return{errors:n};return{errors:n,value:t.value}}let A;const C=r.get();if(b&&"generaltranslation"===P){if(!(0,m.isGTComponent)(b))return n.push(`Failed to construct JsxElement! ${b} is not a valid GT component`+(0,S.createErrorLocation)(e.arguments[0])),{errors:n};A=b}else if(b&&"react"===P){if(!(0,u.isReactComponent)(b))return n.push(`Failed to construct JsxElement! ${b} is not a valid React component`+(0,S.createErrorLocation)(e.arguments[0])),{errors:n};A=b===h.REACT_COMPONENTS.Fragment?`C${r.get()}`:f}else A=f;const w=(0,d.validateChildrenFromArgs)(e.arguments);if(w.errors.length>0)return n.push(...w.errors),{errors:n};const _=function(e,t,r){const n=[];if(s.isNullLiteral(e))return{errors:n,value:void 0};if(s.isBooleanLiteral(e))return{errors:n,value:e.value||void 0};return E(e,t,r)}(w.value,t,r);if(n.push(..._.errors),_.errors.length>0)return{errors:n};const I=_.value,k=function(e,t,r,n,a){const o=[],l={};if(e.length<2)return o.push("Failed to construct GTProp! Missing parameters"+(0,S.createErrorLocation)(e[0])),{errors:o};const c=e[1];if(!s.isObjectExpression(c))return o.push("Failed to construct GTProp! Parameter field must be an object expression"+(0,S.createErrorLocation)(e[1])),{errors:o};if(n&&"generaltranslation"===a&&(0,m.isBranchComponent)(n)){const e=(0,T.getBranchComponentParameters)(c,n),i={};for(const[n,a]of e){if(s.isNullLiteral(a)){i[n]=null;continue}if(s.isBooleanLiteral(a)){i[n]=a.value;continue}const e=E(a,r,t.copy());if(o.push(...e.errors),e.errors.length>0)return{errors:o};void 0!==e.value&&(i[n]=e.value)}Object.keys(i).length>0&&(l.b=i,l.t=n===g.GT_COMPONENT_TYPES.Branch?"b":"p")}else Object.entries(i.HTML_CONTENT_PROPS).forEach(([e,t])=>{const r=(0,y.validateStringLiteralPropertyFromArg)(c,t);if(r.errors.length>0)return o.push(...r.errors),{errors:o};void 0!==r.value&&(l[e]=r.value)});return{errors:o,value:Object.keys(l).length>0?l:void 0}}(e.arguments,r,t,b,P);if(n.push(...k.errors),k.errors.length>0)return{errors:n};const O=k.value,N=Object.assign(Object.assign({t:A,i:C},void 0!==O&&{d:O}),void 0!==I&&{c:I});return{errors:n,value:N}}(e,t,r);if(n.push(...a.errors),n.length>0)return{errors:n};l=a.value}else if(s.isStringLiteral(e))l=e.value;else if(s.isTemplateLiteral(e)){const t=(0,o.validateTemplateLiteral)(e);if(n.push(...t.errors),n.length>0)return{errors:n};l=t.value}else if(s.isNumericLiteral(e))l=e.value.toString();else if(s.isBooleanLiteral(e))l=e.value;else if(s.isNullLiteral(e))l=null;else if(s.isUnaryExpression(e)){const t=(0,b.validateUnaryExpression)(e);if(n.push(...t.errors),n.length>0)return{errors:n};l=t.value}else{if(!s.isIdentifier(e))return n.push((0,S.generateDynamicContentErrorMessage)()+(0,S.createErrorLocation)(e)),{errors:n};{const r=(0,a.validateIdentifier)(e,t);if(n.push(...r.errors),n.length>0)return{errors:n};l=r.value}}return{errors:n,value:l}}return hp}function Zp(){if(zp)return ip;zp=1;var e,t=ip&&ip.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=ip&&ip.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=ip&&ip.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(ip,"__esModule",{value:!0}),ip.validateTranslationComponentArgs=function(e,t,r){if(e.arguments.length<2){return{errors:["Translation component must have at least 2 arguments (identifier, args)"]}}const n=e.arguments[1];if(!s.isObjectExpression(n)){return{errors:["Translation component must have an object expression as the second argument"]}}if(t===i.GT_COMPONENT_TYPES.T)return function(e,t){const r=[],n=u(e,"id");r.push(...n.errors);const i=n.value,s=u(e,"context");r.push(...s.errors);const a=s.value,o=u(e,"_hash");r.push(...o.errors);const l=o.value,c=p(e,t);r.push(...c.errors);const h=c.value;return{errors:r,id:i,context:a,_hash:l,children:h}}(n,r);return{errors:[`Invalid translation component: ${t}. You likely passed a non-translation component to validateTranslationComponentArgs`]}},ip.validateChildrenProperty=p;const i=Ro(),s=n(Ni()),a=ap(),o=function(){if(op)return lp;op=1;var e,t=lp&&lp.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=lp&&lp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=lp&&lp.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(lp,"__esModule",{value:!0}),lp.validateExpressionIsStringLiteral=function(e){return!!i.isStringLiteral(e)||!!i.isTemplateLiteral(e)&&0===e.expressions.length};const i=n(Ni());return lp}(),l=(Xp||(Xp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.constructJsxChildren=void 0;var t=Qp();Object.defineProperty(e,"constructJsxChildren",{enumerable:!0,get:function(){return t._constructJsxChildren}})}(up)),up),c=Lp();function p(e,t){const r=[],n=(0,c.validateChildrenPropertyFromObjectExpression)(e);if(n.errors.length>0)return r.push(...n.errors),{errors:r};const s=n.value;if(void 0===s)return r.push(`The <${i.GT_COMPONENT_TYPES.T}> component must have children`),{errors:r};const a=(0,l.constructJsxChildren)(s,t);r.push(...a.errors);return{errors:r,value:a.value}}function u(e,t){const r=[],n=(0,a.getObjectPropertyFromObjectExpression)(e,t)||(0,a.getObjectPropertyFromObjectExpression)(e,"$"+t);if(!n)return{errors:r};const l=function(e,t){const r=[];if(!s.isObjectProperty(e)||!s.isExpression(e.value)||!(0,o.validateExpressionIsStringLiteral)(e.value))return r.push(`The <${i.GT_COMPONENT_TYPES.T}> component must have a string literal in its ${t} field`),{errors:r};const n=function(e){var t;if(s.isStringLiteral(e))return e.value;if(s.isTemplateLiteral(e)&&0===e.expressions.length)return(null===(t=e.quasis[0])||void 0===t?void 0:t.value.cooked)||""}(e.value);return{errors:r,value:n}}(n,t);r.push(...l.errors);return{errors:r,value:l.value}}return ip}var eu,tu,ru={};function nu(){if(tu)return Bo;tu=1;var e,t=Bo&&Bo.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Bo&&Bo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Bo&&Bo.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.processCallExpression=function(e){return t=>{const r=t.node,{namespaceName:n,functionName:x}=(0,a.getCalleeNameFromExpression)(r);if(!x)return;const{canonicalName:b,identifier:S,type:v}=(0,h.getTrackedVariable)(e.scopeTracker,n,x);b&&("generaltranslation"===v&&(0,s.isTranslationFunctionCallback)(b)?function(e,t,r,n){switch(r){case o.GT_CALLBACK_FUNCTIONS.useGT_callback:case o.GT_CALLBACK_FUNCTIONS.getGT_callback:!function(e,t,r){const n=(0,l.validateUseGTCallback)(e);if(t.errorTracker.addErrors(n.errors),n.errors.length>0)return;(0,c.registerUseGTCallback)(r,t,n.content,n.context,n.id,n.hash)}(e,t,n);break;case o.GT_CALLBACK_FUNCTIONS.useTranslations_callback:case o.GT_CALLBACK_FUNCTIONS.getTranslations_callback:!function(e,t,r){const n=(0,l.validateUseTranslationsCallback)(e);if(t.errorTracker.addErrors(n.errors),n.errors.length>0)return;(0,p.regsiterUseTranslationsCallback)(r,t)}(e,t,n);break;case o.GT_CALLBACK_FUNCTIONS.useMessages_callback:case o.GT_CALLBACK_FUNCTIONS.getMessages_callback:!function(e,t,r){const n=(0,l.validateUseMessagesCallback)(e);if(t.errorTracker.addErrors(n.errors),n.errors.length>0)return;(0,u.registerUseMessagesCallback)(r,t)}(e,t,n);break;default:;}}(r,e,b,S):"react"===v&&(0,d.isReactFunction)(b)?function(e,t){if(0===e.arguments.length)return void t.errorTracker.addError("React invocation must have at least one argument"+(0,T.createErrorLocation)(e));const r=e.arguments[0];if(!i.isExpression(r))return void t.errorTracker.addError("React invocation first argument must be an expression"+(0,T.createErrorLocation)(e));const{namespaceName:n,functionName:a}=(0,g.getCalleeNameFromJsxExpressionParam)(r);if(!a)return void t.errorTracker.addError("React invocation first argument must be a function"+(0,T.createErrorLocation)(e));const{canonicalName:o,type:l}=(0,h.getTrackedVariable)(t.scopeTracker,n,a);if(!o)return;if("generaltranslation"!==l||!(0,s.isTranslationComponent)(o))return;const{errors:c,_hash:p,id:u,context:d,children:x}=(0,f.validateTranslationComponentArgs)(e,o,t);if(c.length>0)return void t.errorTracker.addErrors(c);const b=p||(0,m.hashSource)(Object.assign(Object.assign(Object.assign({source:x},d&&{context:d}),u&&{id:u}),{dataFormat:"JSX"}));(0,y.registerTranslationComponent)(t,b)}(r,e):"generaltranslation"===v&&o.GT_OTHER_FUNCTIONS.msg)}};const i=n(Ni()),s=Wo(),a=Yo(),o=Ro(),l=zo(),c=function(){if(Uc)return Zo;Uc=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.registerUseGTCallback=function(t,r,n,i,s,a){a||(a=(0,e.hashSource)({source:n,id:s,context:i,dataFormat:"ICU"})),r.stringCollector.pushTranslationContent(t,{message:n,hash:a,id:s,context:i});const o=r.stringCollector.incrementCounter();r.stringCollector.setTranslationHash(o,{hash:a})};const e=Hc();return Zo}(),p=(Wc||(Wc=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.regsiterUseTranslationsCallback=function(e,t){}),qc),u=($c||($c=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.registerUseMessagesCallback=function(e,t){}),Yc),h=zc(),d=rp(),f=Zp(),m=Hc(),y=(eu||(eu=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.registerTranslationComponent=function(e,t){const r=e.stringCollector.incrementCounter();e.stringCollector.setTranslationJsx(r,{hash:t})}),ru),g=_p(),T=bp();return Bo}var iu,su={},au={};var ou,lu={};var cu,pu={};var uu,hu,du={};function fu(){if(hu)return su;hu=1;var e,t=su&&su.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=su&&su.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=su&&su.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(su,"__esModule",{value:!0}),su.processCallExpression=function(e){return t=>{const r=t.node,{namespaceName:n,functionName:y}=(0,a.getCalleeNameFromExpression)(r);if(!y)return;const{canonicalName:g,type:T}=(0,o.getTrackedVariable)(e.scopeTracker,n,y);g&&("generaltranslation"===T&&(0,l.isTranslationFunctionCallback)(g)?function(e,t,r){switch(r){case s.GT_CALLBACK_FUNCTIONS.useGT_callback:case s.GT_CALLBACK_FUNCTIONS.getGT_callback:(0,d.injectUseGTCallbackParameters)(e,t);break;case s.GT_CALLBACK_FUNCTIONS.useTranslations_callback:case s.GT_CALLBACK_FUNCTIONS.getTranslations_callback:(0,f.injectUseTranslationsCallbackParameters)(e,t);break;case s.GT_CALLBACK_FUNCTIONS.useMessages_callback:case s.GT_CALLBACK_FUNCTIONS.getMessages_callback:(0,m.injectUseMessagesCallbackParameters)(e,t);break;default:;}}(r,e,g):"react"===T&&(0,c.isReactFunction)(g)?function(e,t){if(0===e.arguments.length)return void t.logger.logError("React invocation must have at least one argument. Parameter injection failed."+(0,h.createErrorLocation)(e));const r=e.arguments[0];if(!i.isExpression(r))return void t.logger.logError("React invocation first argument must be an expression. Parameter injection failed."+(0,h.createErrorLocation)(e));const{namespaceName:n,functionName:s}=(0,p.getCalleeNameFromJsxExpressionParam)(r);if(!s)return void t.logger.logError("React invocation first argument must be a function. Parameter injection failed."+(0,h.createErrorLocation)(e));const{canonicalName:a,type:c}=(0,o.getTrackedVariable)(t.scopeTracker,n,s);if(!a)return;if("generaltranslation"!==c||!(0,l.isTranslationComponent)(a))return;(0,u.injectTComponentParameters)(e,t)}(r,e):"generaltranslation"===T&&s.GT_OTHER_FUNCTIONS.msg)}};const i=n(Ni()),s=Ro(),a=Yo(),o=zc(),l=Wo(),c=rp(),p=_p(),u=function(){if(iu)return au;iu=1;var e,t=au&&au.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=au&&au.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=au&&au.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(au,"__esModule",{value:!0}),au.injectTComponentParameters=function(e,t){const r=t.stringCollector.incrementCounter(),n=t.stringCollector.getTranslationJsx(r);n&&(e.arguments.length<2||!e.arguments[1]?t.logger.logError("T component jsx invocation is missing its second argument. Parameter injection failed."+(0,a.createErrorLocation)(e)):i.isObjectExpression(e.arguments[1])?(0,s.getObjectPropertyFromObjectExpression)(e.arguments[1],"hash")||e.arguments[1].properties.push(i.objectProperty(i.identifier("_hash"),i.stringLiteral(n.hash))):t.logger.logError("T component jsx invocation's second argument is not an object expression. Parameter injection failed."+(0,a.createErrorLocation)(e)))};const i=n(Ni()),s=ap(),a=bp();return au}(),h=bp(),d=function(){if(ou)return lu;ou=1;var e,t=lu&&lu.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=lu&&lu.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=lu&&lu.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(lu,"__esModule",{value:!0}),lu.injectUseGTCallbackParameters=function(e,t){const r=t.stringCollector.incrementCounter(),n=(0,s.validateUseGTCallback)(e);if(t.errorTracker.addErrors(n.errors),n.errors.length>0)return;if(void 0!==n.hash)return;const a=t.stringCollector.getTranslationHash(r);if(void 0===a)return;const o=i.objectProperty(i.stringLiteral("$_hash"),i.stringLiteral(a.hash));1===e.arguments.length?e.arguments.push(i.objectExpression([o])):2===e.arguments.length&&(i.isObjectExpression(e.arguments[1])?e.arguments[1].properties.push(o):i.isExpression(e.arguments[1])?e.arguments[1]=i.objectExpression([i.spreadElement(e.arguments[1]),o]):i.isArgumentPlaceholder(e.arguments[1])&&(e.arguments[1]=i.objectExpression([o])))};const i=n(Ni()),s=zo();return lu}(),f=(cu||(cu=1,Object.defineProperty(pu,"__esModule",{value:!0}),pu.injectUseTranslationsCallbackParameters=function(e,t){}),pu),m=(uu||(uu=1,Object.defineProperty(du,"__esModule",{value:!0}),du.injectUseMessagesCallbackParameters=function(e,t){}),du);return su}var mu,yu={},gu={},Tu={},xu={},bu={};function Su(){if(mu)return bu;return mu=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.trackOverridingVariable=function(e,t){if(!t.getVariable(e))return;t.trackRegularVariable(e,"other")},bu}var vu,Eu,Pu,Au={};function Cu(){if(vu)return Au;vu=1;var e,t=Au&&Au.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Au&&Au.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Au&&Au.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Au,"__esModule",{value:!0}),Au.extractIdentifiersFromLVal=s;const i=n(Ni());function s(e){const t=[];return i.isIdentifier(e)?t.push(e.name):i.isRestElement(e)?t.push(...s(e.argument)):i.isAssignmentPattern(e)?t.push(...s(e.left)):i.isArrayPattern(e)?t.push(...function(e){const t=[];for(const r of e.elements)r&&i.isLVal(r)&&t.push(...s(r));return t}(e)):i.isObjectPattern(e)?t.push(...function(e){const t=[];for(const r of e.properties)i.isObjectProperty(r)?i.isLVal(r.value)&&t.push(...s(r.value)):t.push(...s(r.argument));return t}(e)):i.isTSParameterProperty(e)&&t.push(...s(e.parameter)),t}return Au}function wu(){if(Eu)return xu;Eu=1;var e,t=xu&&xu.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=xu&&xu.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=xu&&xu.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(xu,"__esModule",{value:!0}),xu.trackFunctionParams=function(e,t){for(const r of e){if(!i.isLVal(r))continue;const e=(0,a.extractIdentifiersFromLVal)(r);for(const r of e)(0,s.trackOverridingVariable)(r,t)}};const i=n(Ni()),s=Su(),a=Cu();return xu}var _u,Iu,ku={},Ou={};function Nu(){if(_u)return Ou;_u=1;var e,t=Ou&&Ou.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Ou&&Ou.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Ou&&Ou.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.trackAssignmentExpression=function(e,t){i.isOptionalMemberExpression(t.left)?t.left:i.isLVal(t.left)&&function(e,t){const r=(0,a.extractIdentifiersFromLVal)(t);for(const t of r)(0,s.trackOverridingVariable)(t,e)}(e,t.left)};const i=n(Ni()),s=Su(),a=Cu();return Ou}var Lu,Du,Mu={},Bu={};function Fu(){if(Du)return Mu;Du=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.processCatchClause=function(t){return{enter(r){t.scopeTracker.enterScope(),(0,e.trackCatchClause)(t.scopeTracker,r.node)},exit(){t.scopeTracker.exitScope()}}};const e=function(){if(Lu)return Bu;Lu=1;var e,t=Bu&&Bu.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Bu&&Bu.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Bu&&Bu.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.trackCatchClause=function(e,t){if(i.isLVal(t.param)){const r=(0,s.extractIdentifiersFromLVal)(t.param);for(const t of r)(0,a.trackOverridingVariable)(t,e)}};const i=n(Ni()),s=Cu(),a=Su();return Bu}();return Mu}var ju,Ru,Vu={},Uu={};function Ku(){if(Ru)return Vu;Ru=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.processClassDeclaration=function(t){return{enter(r){(0,e.trackClassDeclaration)(t.scopeTracker,r.node),t.scopeTracker.enterScope()},exit(){t.scopeTracker.exitScope()}}};const e=function(){if(ju)return Uu;ju=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.trackClassDeclaration=function(t,r){var n;const i=null===(n=r.id)||void 0===n?void 0:n.name;i&&(0,e.trackOverridingVariable)(i,t)};const e=Su();return Uu}();return Vu}var Hu,Wu={};var qu,$u={};var Yu,Ju,Xu={},zu={};function Gu(){if(Yu)return zu;Yu=1;var e,t=zu&&zu.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=zu&&zu.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=zu&&zu.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(zu,"__esModule",{value:!0}),zu.trackForDeclaration=function(e,t){if(i.isVariableDeclaration(t.left))return;const r=(0,a.extractIdentifiersFromLVal)(t.left);for(const t of r)(0,s.trackOverridingVariable)(t,e)};const i=n(Ni()),s=Su(),a=Cu();return zu}var Qu,Zu={};var eh,th,rh={},nh={};function ih(){if(eh)return nh;eh=1,Object.defineProperty(nh,"__esModule",{value:!0}),nh.trackFunctionName=function(t,r){var n;const i=null===(n=r.id)||void 0===n?void 0:n.name;if(void 0===i)return;(0,e.trackOverridingVariable)(i,t)};const e=Su();return nh}var sh,ah={};var oh,lh,ch={},ph={};function uh(){if(lh)return ch;lh=1,Object.defineProperty(ch,"__esModule",{value:!0}),ch.processImportDeclaration=function(t){return r=>{(0,e.trackImportDeclaration)(t,r.node)}};const e=function(){if(oh)return ph;oh=1;var e,t=ph&&ph.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=ph&&ph.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=ph&&ph.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(ph,"__esModule",{value:!0}),ph.trackImportDeclaration=function(e,t){for(const r of t.specifiers)i.isImportSpecifier(r)?o(e,r,t.source.value):i.isImportDefaultSpecifier(r)?l(e,r,t.source.value):c(e,r,t.source.value)};const i=n(Ni()),s=Wo(),a=rp();function o(e,t,r){const n=t.local.name,o=i.isIdentifier(t.imported)?t.imported.name:t.imported.value;(0,s.isGTImportSource)(r)?e.scopeTracker.trackTranslationVariable(n,o,0):(0,a.isReactImportSource)(r)&&e.scopeTracker.trackReactVariable(n,o,0)}function l(e,t,r){const n=t.local.name;(0,s.isGTImportSource)(r)?e.scopeTracker.addNamespaceImport(n):(0,a.isReactImportSource)(r)}function c(e,t,r){const n=t.local.name;(0,s.isGTImportSource)(r)?e.scopeTracker.addNamespaceImport(n):(0,a.isReactImportSource)(r)}return ph}();return ch}var hh,dh={};var fh,mh,yh={},gh={};function Th(){if(fh)return gh;fh=1,Object.defineProperty(gh,"__esModule",{value:!0}),gh.ScopeTracker=void 0;return gh.ScopeTracker=class{constructor(){this.nextScopeId=1,this.currentScope=0,this.scopeStack=[],this.scopeInfo=new Map,this.scopedVariables=new Map,this.namespaceImports=new Set}enterScope(){const e=this.nextScopeId;this.nextScopeId+=1;const t={id:e,parentId:this.currentScope,depth:0!==this.currentScope?this.scopeStack.length+1:0};return this.scopeInfo.set(e,t),this.scopeStack.push(this.currentScope),this.currentScope=e,e}exitScope(){var e;if(0===this.currentScope)return;for(const[e,t]of this.scopedVariables.entries()){const r=t.filter(e=>e.scopeId!==this.currentScope);0===r.length?this.scopedVariables.delete(e):this.scopedVariables.set(e,r)}const t=(null===(e=this.scopeInfo.get(this.currentScope))||void 0===e?void 0:e.parentId)||0;this.scopeInfo.delete(this.currentScope),this.currentScope=t,this.scopeStack.length>0&&this.scopeStack.pop()}trackVariable(e,t,r,n,i){const s={scopeId:this.currentScope,canonicalName:t,aliasName:e,isTranslationFunction:r,type:n,identifier:i},a=this.scopedVariables.get(e)||[];a.push(s),this.scopedVariables.set(e,a)}trackTranslationVariable(e,t,r){this.trackVariable(e,t,!0,"generaltranslation",r)}trackTranslationCallbackVariable(e,t,r){this.trackVariable(e,t,!0,"generaltranslation",r)}trackReactVariable(e,t,r){this.trackVariable(e,t,!1,"react",r)}trackRegularVariable(e,t){this.trackVariable(e,t,!1,"other",0)}getVariable(e){const t=this.scopedVariables.get(e);if(t&&t.length>0)return t[t.length-1]}getTranslationVariable(e){const t=this.getVariable(e);if(t&&this.isScopedGTFunction(t))return t}isScopedGTFunction(e){return"generaltranslation"===e.type}addNamespaceImport(e){this.namespaceImports.add(e)}hasNamespaceImport(e){return this.namespaceImports.has(e)}getScopeInfo(e){return this.scopeInfo.get(e)||void 0}serialize(){return{nextScopeId:this.nextScopeId,currentScope:this.currentScope,scopeStack:this.scopeStack,scopeInfo:Object.fromEntries(this.scopeInfo),scopedVariables:Object.fromEntries(this.scopedVariables),namespaceImports:Array.from(this.namespaceImports)}}unserialize(e){this.nextScopeId=e.nextScopeId,this.currentScope=e.currentScope,this.scopeStack=e.scopeStack,this.scopeInfo=new Map(Object.entries(e.scopeInfo).map(([e,t])=>[Number(e),t])),this.scopedVariables=new Map(Object.entries(e.scopedVariables)),this.namespaceImports=new Set(e.namespaceImports)}},gh}var xh,bh,Sh,vh={};function Eh(){return bh||(bh=1,e=gu,t=gu&&gu.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=gu&&gu.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)},Object.defineProperty(e,"__esModule",{value:!0}),r(function(){if(Pu)return Tu;Pu=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.processArrowFunctionExpression=function(t){return{enter(r){t.scopeTracker.enterScope(),(0,e.trackFunctionParams)(r.node.params,t.scopeTracker)},exit(){t.scopeTracker.exitScope()}}};const e=wu();return Tu}(),e),r(function(){if(Iu)return ku;Iu=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.processAssignmentExpression=function(t){return r=>{(0,e.trackAssignmentExpression)(t.scopeTracker,r.node)}};const e=Nu();return ku}(),e),r(Fu(),e),r(Ku(),e),r(function(){if(Hu)return Wu;Hu=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.processClassMethod=function(t){return{enter(r){t.scopeTracker.enterScope(),(0,e.trackFunctionParams)(r.node.params,t.scopeTracker)},exit(){t.scopeTracker.exitScope()}}};const e=wu();return Wu}(),e),r(function(){if(qu)return $u;qu=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.processClassPrivateMethod=function(t){return{enter(r){t.scopeTracker.enterScope(),(0,e.trackFunctionParams)(r.node.params,t.scopeTracker)},exit(){t.scopeTracker.exitScope()}}};const e=wu();return $u}(),e),r(function(){if(Ju)return Xu;Ju=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.processForInStatement=function(t){return{enter(r){t.scopeTracker.enterScope(),(0,e.trackForDeclaration)(t.scopeTracker,r.node)},exit(){t.scopeTracker.exitScope()}}};const e=Gu();return Xu}(),e),r(function(){if(Qu)return Zu;Qu=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.processForOfStatement=function(t){return{enter(r){t.scopeTracker.enterScope(),(0,e.trackForDeclaration)(t.scopeTracker,r.node)},exit(){t.scopeTracker.exitScope()}}};const e=Gu();return Zu}(),e),r(function(){if(th)return rh;th=1,Object.defineProperty(rh,"__esModule",{value:!0}),rh.processFunctionDeclaration=function(r){return{enter(n){(0,e.trackFunctionName)(r.scopeTracker,n.node),r.scopeTracker.enterScope(),(0,t.trackFunctionParams)(n.node.params,r.scopeTracker)},exit(){r.scopeTracker.exitScope()}}};const e=ih(),t=wu();return rh}(),e),r(function(){if(sh)return ah;sh=1,Object.defineProperty(ah,"__esModule",{value:!0}),ah.processFunctionExpression=function(r){return{enter(n){r.scopeTracker.enterScope(),(0,t.trackFunctionName)(r.scopeTracker,n.node),r.scopeTracker.enterScope(),(0,e.trackFunctionParams)(n.node.params,r.scopeTracker)},exit(){r.scopeTracker.exitScope(),r.scopeTracker.exitScope()}}};const e=wu(),t=ih();return ah}(),e),r(uh(),e),r(function(){if(hh)return dh;hh=1,Object.defineProperty(dh,"__esModule",{value:!0}),dh.processObjectMethod=function(t){return{enter(r){t.scopeTracker.enterScope(),(0,e.trackFunctionParams)(r.node.params,t.scopeTracker)},exit(){t.scopeTracker.exitScope()}}};const e=wu();return dh}(),e),r(function(){if(mh)return yh;mh=1,Object.defineProperty(yh,"__esModule",{value:!0}),yh.processProgram=function(t){return{enter(){t.scopeTracker=new e.ScopeTracker,t.stringCollector.resetCounter()}}};const e=Th();return yh}(),e),r((xh||(xh=1,Object.defineProperty(vh,"__esModule",{value:!0}),vh.processScopeChange=function(e){return{enter(){e.scopeTracker.enterScope()},exit(){e.scopeTracker.exitScope()}}}),vh),e)),gu;var e,t,r}var Ph,Ah={};function Ch(){if(Ph)return Ah;Ph=1,Object.defineProperty(Ah,"__esModule",{value:!0}),Ah.InvalidLibraryUsageError=void 0,Ah.handleErrors=function(t){if(0===t.errorTracker.getErrors().length)return!1;for(const e of t.errorTracker.getErrors())t.logger.logError(t.settings.filename?e.replace("{filename}",t.settings.filename):e);if(!t.settings.disableBuildChecks)throw new e("[gt-compiler] Encountered invalid library usage.");return!0};class e extends Error{constructor(e){super(e),this.name="InvalidLibraryUsageError"}}return Ah.InvalidLibraryUsageError=e,Ah}var wh,_h,Ih,kh={},Oh={},Nh={};function Lh(){if(wh)return Nh;wh=1,Object.defineProperty(Nh,"__esModule",{value:!0}),Nh.getCalleeNameFromExpressionWrapper=function(t){if(!t)return{namespaceName:null,functionName:null};return(0,e.getCalleeNameFromExpression)(t)};const e=Yo();return Nh}function Dh(){if(_h)return Oh;_h=1;var e,t=Oh&&Oh.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=Oh&&Oh.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Oh&&Oh.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(Oh,"__esModule",{value:!0}),Oh.trackVariableDeclarator=function(e,t){if(!i.isLVal(e.id))return;const{namespaceName:r,functionName:n}=(0,c.getCalleeNameFromExpressionWrapper)(e.init);if(!n)return void u(e,t.scopeTracker);const{canonicalName:h,type:d}=(0,l.getTrackedVariable)(t.scopeTracker,r,n);if(!h)return void u(e,t.scopeTracker);if("generaltranslation"!==d||!(0,o.isGTFunctionWithCallbacks)(h))return void u(e,t.scopeTracker);const f=(0,s.extractIdentifiersFromLVal)(e.id),m=a.GT_FUNCTIONS_TO_CALLBACKS[h];if(1!==f.length)return void t.errorTracker.addError("Multiple identifiers found for GT function with callbacks: ${canonicalName}. Variable tracking failed."+(0,p.createErrorLocation)(e.id));const y=f[0],g=t.stringCollector.incrementCounter();t.scopeTracker.trackTranslationCallbackVariable(y,m,g)};const i=n(Ni()),s=Cu(),a=Ro(),o=Wo(),l=zc(),c=Lh(),p=bp();function u(e,t){const r=(0,s.extractIdentifiersFromLVal)(e.id);for(const e of r)t.trackRegularVariable(e,"other")}return Oh}var Mh,Bh,Fh={},jh={};function Rh(){if(Mh)return jh;Mh=1;var e,t=jh&&jh.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=jh&&jh.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=jh&&jh.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(jh,"__esModule",{value:!0}),jh.injectCallbackDeclaratorFunctionParameters=function(e,t){var r;if(!i.isLVal(e.id))return;const{namespaceName:n,functionName:h}=(0,a.getCalleeNameFromExpressionWrapper)(e.init);if(!h)return;const{canonicalName:d,type:f}=(0,s.getTrackedVariable)(t.scopeTracker,n,h);if(!d)return;const m=(0,c.extractIdentifiersFromLVal)(e.id);if("generaltranslation"!==f||!(0,o.isGTFunctionWithCallbacks)(d)){for(const e of m)(0,p.trackOverridingVariable)(e,t.scopeTracker);return}if(1!==m.length)return void t.logger.logError(`Multiple identifiers found for GT function with callbacks: ${d}. Parameter injection failed.`+(0,u.createErrorLocation)(e.id));const y=m[0],g=function(e){const t=e.init;if(!t)return;if(i.isCallExpression(t))return t;if(i.isAwaitExpression(t)&&i.isCallExpression(t.argument))return t.argument}(e);if(!g)return void t.logger.logError(`No valid function invocation found for ${h}. Parameter injection failed.`+(0,u.createErrorLocation)(e.id));if(g.arguments.length>0)return;const T=null===(r=t.scopeTracker.getVariable(y))||void 0===r?void 0:r.identifier;if(!T)return void t.logger.logError(`No translation callback variable found for ${y}. Parameter injection failed.`+(0,u.createErrorLocation)(e.id));switch(d){case l.GT_FUNCTIONS_WITH_CALLBACKS.useGT:case l.GT_FUNCTIONS_WITH_CALLBACKS.getGT:!function(e,t,r){const n=t.stringCollector.getTranslationContent(r);if(!n)return;e.arguments=[i.arrayExpression(n.map(e=>i.objectExpression([i.objectProperty(i.identifier("hash"),i.stringLiteral(e.hash)),i.objectProperty(i.identifier("message"),i.stringLiteral(e.message)),...e.id?[i.objectProperty(i.identifier("id"),i.stringLiteral(e.id))]:[],...e.context?[i.objectProperty(i.identifier("context"),i.stringLiteral(e.context))]:[]])))]}(g,t,T);break;default:return}};const i=n(Ni()),s=zc(),a=Lh(),o=Wo(),l=Ro(),c=Cu(),p=Su(),u=bp();return jh}var Vh,Uh={},Kh={};var Hh,Wh={};var qh,$h,Yh,Jh={};function Xh(){if($h)return Uh;$h=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.initializeState=function(i,s){const a={logLevel:i.logLevel||"warn",compileTimeHash:i.compileTimeHash||!1,disableBuildChecks:i.disableBuildChecks||!1,filename:s};return{settings:a,stringCollector:new e.StringCollector,scopeTracker:new t.ScopeTracker,logger:new r.Logger(a.logLevel),errorTracker:new n.ErrorTracker,statistics:{jsxElementCount:0,dynamicContentViolations:0}}};const e=(Vh||(Vh=1,Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.StringCollector=void 0,Kh.StringCollector=class{constructor(){this.contentAggregators=new Map,this.jsxAggregators=new Map,this.hashAggregators=new Map,this.globalCallCounter=0}incrementCounter(){return this.globalCallCounter+=1,this.globalCallCounter}getCounter(){return this.globalCallCounter}pushTranslationContent(e,t){if(-1===e)throw new Error("Cannot have a counterId of -1. You are likely trying to register content from a namespace method invocation.");let r=this.contentAggregators.get(e);r?r.push(t):(r=[t],this.contentAggregators.set(e,r))}setTranslationJsx(e,t){this.jsxAggregators.set(e,t)}setTranslationHash(e,t){this.hashAggregators.set(e,t)}getTranslationData(e){return this.contentAggregators.has(e)?{type:"content",value:this.contentAggregators.get(e)}:this.jsxAggregators.has(e)?{type:"jsx",value:this.jsxAggregators.get(e)}:this.hashAggregators.has(e)?{type:"hash",value:this.hashAggregators.get(e)}:void 0}getTranslationContent(e){return this.contentAggregators.get(e)}getTranslationJsx(e){return this.jsxAggregators.get(e)}getTranslationHash(e){return this.hashAggregators.get(e)}clear(){this.contentAggregators.clear(),this.jsxAggregators.clear(),this.hashAggregators.clear(),this.globalCallCounter=0}resetCounter(){this.globalCallCounter=0}hasContent(){return this.contentAggregators.size+this.jsxAggregators.size+this.hashAggregators.size>0}serialize(){return{contentAggregators:Object.fromEntries(this.contentAggregators),jsxAggregators:Object.fromEntries(this.jsxAggregators),hashAggregators:Object.fromEntries(this.hashAggregators),globalCallCounter:this.globalCallCounter}}unserialize(e){this.contentAggregators=Object.entries(e.contentAggregators).reduce((e,[t,r])=>(e.set(Number(t),r),e),new Map),this.jsxAggregators=Object.entries(e.jsxAggregators).reduce((e,[t,r])=>(e.set(Number(t),r),e),new Map),this.hashAggregators=Object.entries(e.hashAggregators).reduce((e,[t,r])=>(e.set(Number(t),r),e),new Map),this.globalCallCounter=e.globalCallCounter}}),Kh),t=Th(),r=function(){if(Hh)return Wh;Hh=1,Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.Logger=Wh.LogLevel=void 0,Wh.LogLevel={Silent:"silent",Error:"error",Warn:"warn",Info:"info",Debug:"debug"};let e=class e{constructor(e){this.logLevel=e}logError(e){this.shouldLog("error")&&console.error(`[gt-compiler] ERROR: ${e}`)}logWarning(e){this.shouldLog("warn")&&console.warn(`[gt-compiler] WARN: ${e}`)}logInfo(e){this.shouldLog("info")&&console.info(`[gt-compiler] INFO: ${e}`)}logDebug(e){this.shouldLog("debug")&&console.log(`[gt-compiler] DEBUG: ${e}`)}shouldLog(t){if("silent"===this.logLevel)return!1;const r=e.LOG_LEVELS[this.logLevel];return e.LOG_LEVELS[t]<=r}};return Wh.Logger=e,e.LOG_LEVELS={silent:0,error:1,warn:2,info:3,debug:4},Wh}(),n=(qh||(qh=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.ErrorTracker=void 0,Jh.ErrorTracker=class{constructor(){this.errors=[]}addErrors(e){this.errors.push(...e)}addError(e){this.errors.push(e)}getErrors(){return this.errors}}),Jh);return Uh}var zh=function(){if(Yh)return E;Yh=1;var e,t=E&&E.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=E&&E.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=E&&E.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i}),i=E&&E.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0}),E.esbuild=E.rollup=E.vite=E.webpack=void 0;const s=ge(),a=n(be()),o=i(As()),l=i(Do()),c=nu(),p=fu(),u=function(){if(Sh)return yu;Sh=1;var e,t=yu&&yu.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=yu&&yu.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=yu&&yu.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},e(t)},function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var s=e(n),a=0;a<s.length;a++)"default"!==s[a]&&t(i,n,s[a]);return r(i,n),i});Object.defineProperty(yu,"__esModule",{value:!0}),yu.basePass=function(e){return{Program:i.processProgram(e),ForStatement:i.processScopeChange(e),WhileStatement:i.processScopeChange(e),SwitchStatement:i.processScopeChange(e),BlockStatement:i.processScopeChange(e),StaticBlock:i.processScopeChange(e),FunctionDeclaration:i.processFunctionDeclaration(e),FunctionExpression:i.processFunctionExpression(e),ArrowFunctionExpression:i.processArrowFunctionExpression(e),ObjectMethod:i.processObjectMethod(e),ClassMethod:i.processClassMethod(e),ClassPrivateMethod:i.processClassPrivateMethod(e),ImportDeclaration:i.processImportDeclaration(e),AssignmentExpression:i.processAssignmentExpression(e),ClassDeclaration:i.processClassDeclaration(e),ForInStatement:i.processForInStatement(e),ForOfStatement:i.processForOfStatement(e),CatchClause:i.processCatchClause(e)}};const i=n(Eh());return yu}(),h=Ch(),d=function(){if(Ih)return kh;Ih=1,Object.defineProperty(kh,"__esModule",{value:!0}),kh.processVariableDeclarator=function(t){return r=>{(0,e.trackVariableDeclarator)(r.node,t)}};const e=Dh();return kh}(),f=function(){if(Bh)return Fh;Bh=1,Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.processVariableDeclarator=function(r){return n=>{(0,e.trackVariableDeclarator)(n.node,r),(0,t.injectCallbackDeclaratorFunctionParameters)(n.node,r)}};const e=Dh(),t=Rh();return Fh}(),m=Ch(),y=Xh(),g=(0,s.createUnplugin)((e={})=>({name:"@generaltranslation/GT_PLUGIN",transformInclude:e=>e.endsWith(".tsx")||e.endsWith(".jsx")||e.endsWith(".ts")||e.endsWith(".js"),transform(t,r){const n=(0,y.initializeState)(e,r);try{if(n.settings.disableBuildChecks&&!n.settings.compileTimeHash)return null;const e=a.parse(t,{sourceType:"module",plugins:["jsx","typescript","decorators-legacy"],allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0});return(0,l.default)(e,Object.assign(Object.assign({},(0,u.basePass)(n)),{CallExpression:(0,c.processCallExpression)(n),VariableDeclarator:(0,d.processVariableDeclarator)(n)})),(0,h.handleErrors)(n)?null:n.stringCollector.hasContent()?((0,l.default)(e,Object.assign(Object.assign({},(0,u.basePass)(n)),{CallExpression:(0,p.processCallExpression)(n),VariableDeclarator:(0,f.processVariableDeclarator)(n)})),(0,o.default)(e,{retainLines:!0,compact:!1})):null}catch(e){if(e instanceof m.InvalidLibraryUsageError)throw e;return n.logger.logError(`Error processing ${r}: ${e}`),null}}}));return E.default=g,E.webpack=g.webpack,E.vite=g.vite,E.rollup=g.rollup,E.esbuild=g.esbuild,E}(),Gh=p(zh),Qh=zh.esbuild,Zh=zh.rollup,ed=zh.vite,td=zh.webpack;export{Gh as default,Qh as esbuild,Zh as rollup,ed as vite,td as webpack};