var Tse=Object.create;var WT=Object.defineProperty;var wse=Object.getOwnPropertyDescriptor;var Cse=Object.getOwnPropertyNames;var Ese=Object.getPrototypeOf,Pse=Object.prototype.hasOwnProperty;var de=(e,t)=>()=>(e&&(t=e(e=0)),t);var ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qb=(e,t)=>{for(var r in t)WT(e,r,{get:t[r],enumerable:!0})},u5=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Cse(t))!Pse.call(e,n)&&n!==r&&WT(e,n,{get:()=>t[n],enumerable:!(a=wse(t,n))||a.enumerable});return e};var I=(e,t,r)=>(r=e!=null?Tse(Ese(e)):{},u5(t||!e||!e.__esModule?WT(r,"default",{value:e,enumerable:!0}):r,e)),Ase=e=>u5(WT({},"__esModule",{value:!0}),e);var d5=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var Ys=(e,t,r)=>(d5(e,t,"read from private field"),r?r.call(e):t.get(e)),f5=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},SI=(e,t,r,a)=>(d5(e,t,"write to private field"),a?a.call(e,r):t.set(e,r),r);function Bse(){let e=[],t=Object.create(null),r;return t.get=(a,n)=>(r?.revoke?.(),n===P5?e:(e.push(n),r=Proxy.revocable(a,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}function QT(e,t){let{[P5]:r}=e(Bse());return r.join(t?.keySeparator??".")}var Zt,Hb,p5,Ise,Nse,m5,h5,$b,g5,Lse,YT,Rse,C5,lg,kse,Mse,CI,Dse,_se,Ose,EI,Gb,Fse,cg,xc,ug,JT,E5,P5,y5,TI,dg,ZT,x5,b5,PI,v5,wI,ew,Use,S5,jse,AI,zse,II,T5,w5,XT,Vse,Xp,Rs,iJe,oJe,lJe,cJe,uJe,dJe,fJe,pJe,mJe,hJe,gJe,yJe,xJe,bJe,NI=de(()=>{Zt=e=>typeof e=="string",Hb=()=>{let e,t,r=new Promise((a,n)=>{e=a,t=n});return r.resolve=e,r.reject=t,r},p5=e=>e==null?"":""+e,Ise=(e,t,r)=>{e.forEach(a=>{t[a]&&(r[a]=t[a])})},Nse=/###/g,m5=e=>e&&e.indexOf("###")>-1?e.replace(Nse,"."):e,h5=e=>!e||Zt(e),$b=(e,t,r)=>{let a=Zt(t)?t.split("."):t,n=0;for(;n{let{obj:a,k:n}=$b(e,t,Object);if(a!==void 0||t.length===1){a[n]=r;return}let s=t[t.length-1],i=t.slice(0,t.length-1),o=$b(e,i,Object);for(;o.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),o=$b(e,i,Object),o?.obj&&typeof o.obj[`${o.k}.${s}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${s}`]=r},Lse=(e,t,r,a)=>{let{obj:n,k:s}=$b(e,t,Object);n[s]=n[s]||[],n[s].push(r)},YT=(e,t)=>{let{obj:r,k:a}=$b(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,a))return r[a]},Rse=(e,t,r)=>{let a=YT(e,r);return a!==void 0?a:YT(t,r)},C5=(e,t,r)=>{for(let a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?Zt(e[a])||e[a]instanceof String||Zt(t[a])||t[a]instanceof String?r&&(e[a]=t[a]):C5(e[a],t[a],r):e[a]=t[a]);return e},lg=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),kse={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Mse=e=>Zt(e)?e.replace(/[&<>"'\/]/g,t=>kse[t]):e,CI=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let r=this.regExpMap.get(t);if(r!==void 0)return r;let a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}},Dse=[" ",",","?","!",";"],_se=new CI(20),Ose=(e,t,r)=>{t=t||"",r=r||"";let a=Dse.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(a.length===0)return!0;let n=_se.getRegExp(`(${a.map(i=>i==="?"?"\\?":i).join("|")})`),s=!n.test(e);if(!s){let i=e.indexOf(r);i>0&&!n.test(e.substring(0,i))&&(s=!0)}return s},EI=(e,t,r=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let a=t.split(r),n=e;for(let s=0;s-1&&le?.replace("_","-"),Fse={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},cg=class{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||Fse,this.options=r,this.debug=r.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,a,n){return n&&!this.debug?null:(Zt(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new cg(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new cg(this.logger,t)}},xc=new cg,ug=class{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);let n=this.observers[a].get(r)||0;this.observers[a].set(r,n+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t,...r){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([n,s])=>{for(let i=0;i{for(let i=0;i-1&&this.options.ns.splice(r,1)}getResource(t,r,a,n={}){let s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,i=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure,o;t.indexOf(".")>-1?o=t.split("."):(o=[t,r],a&&(Array.isArray(a)?o.push(...a):Zt(a)&&s?o.push(...a.split(s)):o.push(a)));let l=YT(this.data,o);return!l&&!r&&!a&&t.indexOf(".")>-1&&(t=o[0],r=o[1],a=o.slice(2).join(".")),l||!i||!Zt(a)?l:EI(this.data?.[t]?.[r],a,s)}addResource(t,r,a,n,s={silent:!1}){let i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=[t,r];a&&(o=o.concat(i?a.split(i):a)),t.indexOf(".")>-1&&(o=t.split("."),n=r,r=o[1]),this.addNamespaces(r),g5(this.data,o,n),s.silent||this.emit("added",t,r,a,n)}addResources(t,r,a,n={silent:!1}){for(let s in a)(Zt(a[s])||Array.isArray(a[s]))&&this.addResource(t,r,s,a[s],{silent:!0});n.silent||this.emit("added",t,r,a)}addResourceBundle(t,r,a,n,s,i={silent:!1,skipCopy:!1}){let o=[t,r];t.indexOf(".")>-1&&(o=t.split("."),n=a,a=r,r=o[1]),this.addNamespaces(r);let l=YT(this.data,o)||{};i.skipCopy||(a=JSON.parse(JSON.stringify(a))),n?C5(l,a,s):l={...l,...a},g5(this.data,o,l),i.silent||this.emit("added",t,r,a)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(n=>r[n]&&Object.keys(r[n]).length>0)}toJSON(){return this.data}},E5={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,a,n){return e.forEach(s=>{t=this.processors[s]?.process(t,r,a,n)??t}),t}},P5=Symbol("i18next/PATH_KEY");y5={},TI=e=>!Zt(e)&&typeof e!="boolean"&&typeof e!="number",dg=class extends ug{constructor(t,r={}){super(),Ise(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xc.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,r={interpolation:{}}){let a={...r};if(t==null)return!1;let n=this.resolve(t,a);if(n?.res===void 0)return!1;let s=TI(n.res);return!(a.returnObjects===!1&&s)}extractFromKey(t,r){let a=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");let n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ns||this.options.defaultNS||[],i=a&&t.indexOf(a)>-1,o=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Ose(t,a,n);if(i&&!o){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Zt(s)?[s]:s};let c=t.split(a);(a!==n||a===n&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(n)}return{key:t,namespaces:Zt(s)?[s]:s}}translate(t,r,a){let n=typeof r=="object"?{...r}:r;if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";typeof t=="function"&&(t=QT(t,{...this.options,...n})),Array.isArray(t)||(t=[String(t)]);let s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],n),c=l[l.length-1],u=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");let d=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return f?s?{res:`${c}${u}${o}`,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${u}${o}`:s?{res:o,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:o;let p=this.resolve(t,n),m=p?.res,h=p?.usedKey||o,x=p?.exactUsedKey||o,g=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,S=n.count!==void 0&&!Zt(n.count),w=dg.hasDefaultValue(n),P=S?this.pluralResolver.getSuffix(d,n.count,n):"",C=n.ordinal&&S?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",N=S&&!n.ordinal&&n.count===0,R=N&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${P}`]||n[`defaultValue${C}`]||n.defaultValue,O=m;v&&!m&&w&&(O=R);let D=TI(O),W=Object.prototype.toString.apply(O);if(v&&O&&D&&g.indexOf(W)<0&&!(Zt(y)&&Array.isArray(O))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let J=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,O,{...n,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(p.res=J,p.usedParams=this.getUsedParamsDetails(n),p):J}if(i){let J=Array.isArray(O),me=J?[]:{},Z=J?x:h;for(let q in O)if(Object.prototype.hasOwnProperty.call(O,q)){let V=`${Z}${i}${q}`;w&&!m?me[q]=this.translate(V,{...n,defaultValue:TI(R)?R[q]:void 0,joinArrays:!1,ns:l}):me[q]=this.translate(V,{...n,joinArrays:!1,ns:l}),me[q]===V&&(me[q]=O[q])}m=me}}else if(v&&Zt(y)&&Array.isArray(m))m=m.join(y),m&&(m=this.extendTranslation(m,t,n,a));else{let J=!1,me=!1;!this.isValidLookup(m)&&w&&(J=!0,m=R),this.isValidLookup(m)||(me=!0,m=o);let q=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&me?void 0:m,V=w&&R!==m&&this.options.updateMissing;if(me||J||V){if(this.logger.log(V?"updateKey":"missingKey",d,c,o,V?R:m),i){let ee=this.resolve(o,{...n,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let L=[],k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let ee=0;ee{let ge=w&&ae!==m?ae:q;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,c,ie,ge,V,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(ee,c,ie,ge,V,n),this.emit("missingKey",ee,c,ie,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?L.forEach(ee=>{let ie=this.pluralResolver.getSuffixes(ee,n);N&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&ie.push(`${this.options.pluralSeparator}zero`),ie.forEach(ae=>{_([ee],o+ae,n[`defaultValue${ae}`]||R)})}):_(L,o,R))}m=this.extendTranslation(m,t,n,p,a),me&&m===o&&this.options.appendNamespaceToMissingKey&&(m=`${c}${u}${o}`),(me||J)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${u}${o}`:o,J?m:void 0,n))}return s?(p.res=m,p.usedParams=this.getUsedParamsDetails(n),p):m}extendTranslation(t,r,a,n,s){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});let l=Zt(t)&&(a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),c;if(l){let d=t.match(this.interpolator.nestingRegexp);c=d&&d.length}let u=a.replace&&!Zt(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),t=this.interpolator.interpolate(t,u,a.lng||this.language||n.usedLng,a),l){let d=t.match(this.interpolator.nestingRegexp),f=d&&d.length;cs?.[0]===d[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${r[0]}`),null):this.translate(...d,r),a)),a.interpolation&&this.interpolator.reset()}let i=a.postProcess||this.options.postProcess,o=Zt(i)?[i]:i;return t!=null&&o?.length&&a.applyPostProcessor!==!1&&(t=E5.handle(o,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,r={}){let a,n,s,i,o;return Zt(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(a))return;let c=this.extractFromKey(l,r),u=c.key;n=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let f=r.count!==void 0&&!Zt(r.count),p=f&&!r.ordinal&&r.count===0,m=r.context!==void 0&&(Zt(r.context)||typeof r.context=="number")&&r.context!=="",h=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(x=>{this.isValidLookup(a)||(o=x,!y5[`${h[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(y5[`${h[0]}-${x}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(g=>{if(this.isValidLookup(a))return;i=g;let y=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(y,u,g,x,r);else{let S;f&&(S=this.pluralResolver.getSuffix(g,r.count,r));let w=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(r.ordinal&&S.indexOf(P)===0&&y.push(u+S.replace(P,this.options.pluralSeparator)),y.push(u+S),p&&y.push(u+w)),m){let C=`${u}${this.options.contextSeparator||"_"}${r.context}`;y.push(C),f&&(r.ordinal&&S.indexOf(P)===0&&y.push(C+S.replace(P,this.options.pluralSeparator)),y.push(C+S),p&&y.push(C+w))}}let v;for(;v=y.pop();)this.isValidLookup(a)||(s=v,a=this.getResource(g,x,v,r))}))})}),{res:a,usedKey:n,exactUsedKey:s,usedLng:i,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,a,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,r,a,n):this.resourceStore.getResource(t,r,a,n)}getUsedParamsDetails(t={}){let r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!Zt(t.replace),n=a?t.replace:t;if(a&&typeof t.count<"u"&&(n.count=t.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!a){n={...n};for(let s of r)delete n[s]}return n}static hasDefaultValue(t){let r="defaultValue";for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&r===a.substring(0,r.length)&&t[a]!==void 0)return!0;return!1}},ZT=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xc.create("languageUtils")}getScriptPartFromCode(t){if(t=Gb(t),!t||t.indexOf("-")<0)return null;let r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Gb(t),!t||t.indexOf("-")<0)return t;let r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(Zt(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(a=>{if(r)return;let n=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(n))&&(r=n)}),!r&&this.options.supportedLngs&&t.forEach(a=>{if(r)return;let n=this.getScriptPartFromCode(a);if(this.isSupportedCode(n))return r=n;let s=this.getLanguagePartFromCode(a);if(this.isSupportedCode(s))return r=s;r=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&(i.indexOf("-")>0&&s.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===s||i.indexOf(s)===0&&s.length>1))return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),Zt(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let a=t[r];return a||(a=t[this.getScriptPartFromCode(r)]),a||(a=t[this.formatLanguageCode(r)]),a||(a=t[this.getLanguagePartFromCode(r)]),a||(a=t.default),a||[]}toResolveHierarchy(t,r){let a=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),n=[],s=i=>{i&&(this.isSupportedCode(i)?n.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Zt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):Zt(t)&&s(this.formatLanguageCode(t)),a.forEach(i=>{n.indexOf(i)<0&&s(this.formatLanguageCode(i))}),n}},x5={zero:0,one:1,two:2,few:3,many:4,other:5},b5={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},PI=class{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=xc.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){let a=Gb(t==="dev"?"en":t),n=r.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:a,type:n});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(a,{type:n})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),b5;if(!t.match(/-|_/))return b5;let l=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(l,r)}return this.pluralRulesCache[s]=i,i}needsPlural(t,r={}){let a=this.getRule(t,r);return a||(a=this.getRule("dev",r)),a?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,r,a={}){return this.getSuffixes(t,a).map(n=>`${r}${n}`)}getSuffixes(t,r={}){let a=this.getRule(t,r);return a||(a=this.getRule("dev",r)),a?a.resolvedOptions().pluralCategories.sort((n,s)=>x5[n]-x5[s]).map(n=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(t,r,a={}){let n=this.getRule(t,a);return n?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${n.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,a))}},v5=(e,t,r,a=".",n=!0)=>{let s=Rse(e,t,r);return!s&&n&&Zt(r)&&(s=EI(e,r,a),s===void 0&&(s=EI(t,r,a))),s},wI=e=>e.replace(/\$/g,"$$$$"),ew=class{constructor(t={}){this.logger=xc.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:r,escapeValue:a,useRawValueToEscape:n,prefix:s,prefixEscaped:i,suffix:o,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:h,nestingOptionsSeparator:x,maxReplaces:g,alwaysFormat:y}=t.interpolation;this.escape=r!==void 0?r:Mse,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=s?lg(s):i||"{{",this.suffix=o?lg(o):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?lg(f):p||lg("$t("),this.nestingSuffix=m?lg(m):h||lg(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=g||1e3,this.alwaysFormat=y!==void 0?y:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(r,a)=>r?.source===a?(r.lastIndex=0,r):new RegExp(a,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,r,a,n){let s,i,o,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=p=>{if(p.indexOf(this.formatSeparator)<0){let g=v5(r,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,a,{...n,...r,interpolationkey:p}):g}let m=p.split(this.formatSeparator),h=m.shift().trim(),x=m.join(this.formatSeparator).trim();return this.format(v5(r,l,h,this.options.keySeparator,this.options.ignoreJSONStructure),x,a,{...n,...r,interpolationkey:h})};this.resetRegExp();let u=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>wI(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?wI(this.escape(p)):wI(p)}].forEach(p=>{for(o=0;s=p.regex.exec(t);){let m=s[1].trim();if(i=c(m),i===void 0)if(typeof u=="function"){let x=u(t,s,n);i=Zt(x)?x:""}else if(n&&Object.prototype.hasOwnProperty.call(n,m))i="";else if(d){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),i="";else!Zt(i)&&!this.useRawValueToEscape&&(i=p5(i));let h=p.safeValue(i);if(t=t.replace(s[0],h),d?(p.regex.lastIndex+=i.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,r,a={}){let n,s,i,o=(l,c)=>{let u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;let d=l.split(new RegExp(`${u}[ ]*{`)),f=`{${d[1]}`;l=d[0],f=this.interpolate(f,i);let p=f.match(/'/g),m=f.match(/"/g);((p?.length??0)%2===0&&!m||m.length%2!==0)&&(f=f.replace(/'/g,'"'));try{i=JSON.parse(f),c&&(i={...c,...i})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,h),`${l}${u}${f}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,l};for(;n=this.nestingRegexp.exec(t);){let l=[];i={...a},i=i.replace&&!Zt(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(c!==-1&&(l=n[1].slice(c).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),n[1]=n[1].slice(0,c)),s=r(o.call(this,n[1].trim(),i),i),s&&n[0]===t&&!Zt(s))return s;Zt(s)||(s=p5(s)),s||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),s=""),l.length&&(s=l.reduce((u,d)=>this.format(u,d,a.lng,{...a,interpolationkey:n[1].trim()}),s.trim())),t=t.replace(n[0],s),this.regexp.lastIndex=0}return t}},Use=e=>{let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let a=e.split("(");t=a[0].toLowerCase().trim();let n=a[1].substring(0,a[1].length-1);t==="currency"&&n.indexOf(":")<0?r.currency||(r.currency=n.trim()):t==="relativetime"&&n.indexOf(":")<0?r.range||(r.range=n.trim()):n.split(";").forEach(i=>{if(i){let[o,...l]=i.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=o.trim();r[u]||(r[u]=c),c==="false"&&(r[u]=!1),c==="true"&&(r[u]=!0),isNaN(c)||(r[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},S5=e=>{let t={};return(r,a,n)=>{let s=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(s={...s,[n.interpolationkey]:void 0});let i=a+JSON.stringify(s),o=t[i];return o||(o=e(Gb(a),n),t[i]=o),o(r)}},jse=e=>(t,r,a)=>e(Gb(r),a)(t),AI=class{constructor(t={}){this.logger=xc.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";let a=r.cacheInBuiltFormats?S5:jse;this.formats={number:a((n,s)=>{let i=new Intl.NumberFormat(n,{...s});return o=>i.format(o)}),currency:a((n,s)=>{let i=new Intl.NumberFormat(n,{...s,style:"currency"});return o=>i.format(o)}),datetime:a((n,s)=>{let i=new Intl.DateTimeFormat(n,{...s});return o=>i.format(o)}),relativetime:a((n,s)=>{let i=new Intl.RelativeTimeFormat(n,{...s});return o=>i.format(o,s.range||"day")}),list:a((n,s)=>{let i=new Intl.ListFormat(n,{...s});return o=>i.format(o)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=S5(r)}format(t,r,a,n={}){let s=r.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(o=>o.indexOf(")")>-1)){let o=s.findIndex(l=>l.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,o)].join(this.formatSeparator)}return s.reduce((o,l)=>{let{formatName:c,formatOptions:u}=Use(l);if(this.formats[c]){let d=o;try{let f=n?.formatParams?.[n.interpolationkey]||{},p=f.locale||f.lng||n.locale||n.lng||a;d=this.formats[c](o,p,{...u,...n,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${c}`);return o},t)}},zse=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},II=class extends ug{constructor(t,r,a,n={}){super(),this.backend=t,this.store=r,this.services=a,this.languageUtils=a.languageUtils,this.options=n,this.logger=xc.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(a,n.backend,n)}queueLoad(t,r,a,n){let s={},i={},o={},l={};return t.forEach(c=>{let u=!0;r.forEach(d=>{let f=`${c}|${d}`;!a.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?i[f]===void 0&&(i[f]=!0):(this.state[f]=1,u=!1,i[f]===void 0&&(i[f]=!0),s[f]===void 0&&(s[f]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(o[c]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(t,r,a){let n=t.split("|"),s=n[0],i=n[1];r&&this.emit("failedLoading",s,i,r),!r&&a&&this.store.addResourceBundle(s,i,a,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&a&&(this.state[t]=0);let o={};this.queue.forEach(l=>{Lse(l.loaded,[s],i),zse(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{o[c]||(o[c]={});let u=l.loaded[c];u.length&&u.forEach(d=>{o[c][d]===void 0&&(o[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(t,r,a,n=0,s=this.retryTimeout,i){if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:a,tried:n,wait:s,callback:i});return}this.readingCalls++;let o=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&n{this.read.call(this,t,r,a,n+1,s*2,i)},s);return}i(c,u)},l=this.backend[a].bind(this.backend);if(l.length===2){try{let c=l(t,r);c&&typeof c.then=="function"?c.then(u=>o(null,u)).catch(o):o(null,c)}catch(c){o(c)}return}return l(t,r,o)}prepareLoading(t,r,a={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();Zt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Zt(r)&&(r=[r]);let s=this.queueLoad(t,r,a,n);if(!s.toLoad.length)return s.pending.length||n(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,r,a){this.prepareLoading(t,r,{},a)}reload(t,r,a){this.prepareLoading(t,r,{reload:!0},a)}loadOne(t,r=""){let a=t.split("|"),n=a[0],s=a[1];this.read(n,s,"read",void 0,void 0,(i,o)=>{i&&this.logger.warn(`${r}loading namespace ${s} for language ${n} failed`,i),!i&&o&&this.logger.log(`${r}loaded namespace ${s} for language ${n}`,o),this.loaded(t,i,o)})}saveMissing(t,r,a,n,s,i={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${a}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend?.create){let l={...i,isUpdate:s},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,r,a,n,l):u=c(t,r,a,n),u&&typeof u.then=="function"?u.then(d=>o(null,d)).catch(o):o(null,u)}catch(u){o(u)}else c(t,r,a,n,o,l)}!t||!t[0]||this.store.addResource(t[0],r,a,n)}}},T5=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Zt(e[1])&&(t.defaultValue=e[1]),Zt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let r=e[3]||e[2];Object.keys(r).forEach(a=>{t[a]=r[a]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),w5=e=>(Zt(e.ns)&&(e.ns=[e.ns]),Zt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Zt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),XT=()=>{},Vse=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})},Xp=class extends ug{constructor(t={},r){if(super(),this.options=w5(t),this.services={},this.logger=xc,this.modules={external:[]},Vse(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(t={},r){this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(Zt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let a=T5();this.options={...a,...this.options,...w5(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler);let n=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?xc.init(n(this.modules.logger),this.options):xc.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=AI;let u=new ZT(this.options);this.store=new JT(this.options.resources,this.options);let d=this.services;d.logger=xc,d.resourceStore=this.store,d.languageUtils=u,d.pluralResolver=new PI(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),c&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(d.formatter=n(c),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new ew(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new II(n(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(p,...m)=>{this.emit(p,...m)}),this.modules.languageDetector&&(d.languageDetector=n(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=n(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new dg(this.services,this.options),this.translator.on("*",(p,...m)=>{this.emit(p,...m)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=XT),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...u)=>this.store[c](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...u)=>(this.store[c](...u),this)});let o=Hb(),l=()=>{let c=(u,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(d),r(u,d)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(t,r=XT){let a=r,n=Zt(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();let s=[],i=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>i(l)),this.options.preload?.forEach?.(o=>i(o)),this.services.backendConnector.load(s,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(o)})}else a(null)}reloadResources(t,r,a){let n=Hb();return typeof t=="function"&&(a=t,t=void 0),typeof r=="function"&&(a=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),a||(a=XT),this.services.backendConnector.reload(t,r,s=>{n.resolve(),a(s)}),n}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&E5.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,r){this.isLanguageChangingTo=t;let a=Hb();this.emit("languageChanging",t);let n=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},s=(o,l)=>{l?this.isLanguageChangingTo===t&&(n(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,a.resolve((...c)=>this.t(...c)),r&&r(o,(...c)=>this.t(...c))},i=o=>{!t&&!o&&this.services.languageDetector&&(o=[]);let l=Zt(o)?o:o&&o[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Zt(o)?[o]:o);c&&(this.language||n(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,u=>{s(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?i(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(t),a}getFixedT(t,r,a){let n=(s,i,...o)=>{let l;typeof i!="object"?l=this.options.overloadTranslationOptionHandler([s,i].concat(o)):l={...i},l.lng=l.lng||n.lng,l.lngs=l.lngs||n.lngs,l.ns=l.ns||n.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||a||n.keyPrefix);let c=this.options.keySeparator||".",u;return l.keyPrefix&&Array.isArray(s)?u=s.map(d=>(typeof d=="function"&&(d=QT(d,{...this.options,...i})),`${l.keyPrefix}${c}${d}`)):(typeof s=="function"&&(s=QT(s,{...this.options,...i})),u=l.keyPrefix?`${l.keyPrefix}${c}${s}`:s),this.t(u,l)};return Zt(t)?n.lng=t:n.lngs=t,n.ns=r,n.keyPrefix=a,n}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let a=r.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;let i=(o,l)=>{let c=this.services.backendConnector.state[`${o}|${l}`];return c===-1||c===0||c===2};if(r.precheck){let o=r.precheck(this,i);if(o!==void 0)return o}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(a,t)&&(!n||i(s,t)))}loadNamespaces(t,r){let a=Hb();return this.options.ns?(Zt(t)&&(t=[t]),t.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{a.resolve(),r&&r(n)}),a):(r&&r(),Promise.resolve())}loadLanguages(t,r){let a=Hb();Zt(t)&&(t=[t]);let n=this.options.preload||[],s=t.filter(i=>n.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=n.concat(s),this.loadResources(i=>{a.resolve(),r&&r(i)}),a):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let n=new Intl.Locale(t);if(n&&n.getTextInfo){let s=n.getTextInfo();if(s&&s.direction)return s.direction}}catch{}let r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services?.languageUtils||new ZT(T5());return t.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(a.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},r){let a=new Xp(t,r);return a.createInstance=Xp.createInstance,a}cloneInstance(t={},r=XT){let a=t.forkResourceStore;a&&delete t.forkResourceStore;let n={...this.options,...t,isClone:!0},s=new Xp(n);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(o=>{s[o]=this[o]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},a){let o=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((u,d)=>(u[d]={...l[c][d]},u),l[c]),l),{});s.store=new JT(o,n),s.services.resourceStore=s.store}return t.interpolation&&(s.services.interpolator=new ew(n)),s.translator=new dg(s.services,n),s.translator.on("*",(o,...l)=>{s.emit(o,...l)}),s.init(n,r),s.translator.options=n,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Rs=Xp.createInstance(),iJe=Rs.createInstance,oJe=Rs.dir,lJe=Rs.init,cJe=Rs.loadResources,uJe=Rs.reloadResources,dJe=Rs.use,fJe=Rs.changeLanguage,pJe=Rs.getFixedT,mJe=Rs.t,hJe=Rs.exists,gJe=Rs.setDefaultNamespace,yJe=Rs.hasLoadedNamespace,xJe=Rs.loadNamespaces,bJe=Rs.loadLanguages});var F5=ne(or=>{"use strict";var kI=Symbol.for("react.transitional.element"),qse=Symbol.for("react.portal"),Hse=Symbol.for("react.fragment"),$se=Symbol.for("react.strict_mode"),Gse=Symbol.for("react.profiler"),Kse=Symbol.for("react.consumer"),Wse=Symbol.for("react.context"),Xse=Symbol.for("react.forward_ref"),Yse=Symbol.for("react.suspense"),Jse=Symbol.for("react.memo"),R5=Symbol.for("react.lazy"),Qse=Symbol.for("react.activity"),A5=Symbol.iterator;function Zse(e){return e===null||typeof e!="object"?null:(e=A5&&e[A5]||e["@@iterator"],typeof e=="function"?e:null)}var k5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M5=Object.assign,D5={};function pg(e,t,r){this.props=e,this.context=t,this.refs=D5,this.updater=r||k5}pg.prototype.isReactComponent={};pg.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _5(){}_5.prototype=pg.prototype;function MI(e,t,r){this.props=e,this.context=t,this.refs=D5,this.updater=r||k5}var DI=MI.prototype=new _5;DI.constructor=MI;M5(DI,pg.prototype);DI.isPureReactComponent=!0;var I5=Array.isArray;function RI(){}var ka={H:null,A:null,T:null,S:null},O5=Object.prototype.hasOwnProperty;function _I(e,t,r){var a=r.ref;return{$$typeof:kI,type:e,key:t,ref:a!==void 0?a:null,props:r}}function eie(e,t){return _I(e.type,t,e.props)}function OI(e){return typeof e=="object"&&e!==null&&e.$$typeof===kI}function tie(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var N5=/\/+/g;function LI(e,t){return typeof e=="object"&&e!==null&&e.key!=null?tie(""+e.key):t.toString(36)}function rie(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(RI,RI):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function fg(e,t,r,a,n){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case kI:case qse:i=!0;break;case R5:return i=e._init,fg(i(e._payload),t,r,a,n)}}if(i)return n=n(e),i=a===""?"."+LI(e,0):a,I5(n)?(r="",i!=null&&(r=i.replace(N5,"$&/")+"/"),fg(n,t,r,"",function(c){return c})):n!=null&&(OI(n)&&(n=eie(n,r+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace(N5,"$&/")+"/")+i)),t.push(n)),1;i=0;var o=a===""?".":a+":";if(I5(e))for(var l=0;l{"use strict";B5.exports=F5()});var j5=ne((wJe,U5)=>{U5.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}});var sie,z5=de(()=>{sie=I(j5())});var rw,V5,mg,q5,aw,FI,H5,Ul,BI,hg=de(()=>{rw=(e,t,r,a)=>{let n=[r,{code:t,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(n,"warn","react-i18next::",!0);Ul(n[0])&&(n[0]=`react-i18next:: ${n[0]}`),e?.services?.logger?.warn&&e.services.logger.warn(...n)},V5={},mg=(e,t,r,a)=>{Ul(r)&&V5[r]||(Ul(r)&&(V5[r]=new Date),rw(e,t,r,a))},q5=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},aw=(e,t,r)=>{e.loadNamespaces(t,q5(e,r))},FI=(e,t,r,a)=>{if(Ul(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return aw(e,r,a);r.forEach(n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)}),e.loadLanguages(t,q5(e,a))},H5=(e,t,r={})=>!t.languages||!t.languages.length?(mg(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(a,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!n(a.isLanguageChangingTo,e))return!1}}),Ul=e=>typeof e=="string",BI=e=>typeof e=="object"&&e!==null});var iie,oie,lie,UI,jI=de(()=>{iie=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,oie={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},lie=e=>oie[e],UI=e=>e.replace(iie,lie)});var zI,nw,Kb,Wb=de(()=>{jI();zI={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:UI,transDefaultProps:void 0},nw=(e={})=>{zI={...zI,...e}},Kb=()=>zI});var $5,sw,jl,gg=de(()=>{sw=e=>{$5=e},jl=()=>$5});var Xb,VI=de(()=>{Xb=I(Le(),1);NI();z5();hg();Wb();gg();jI()});var iw,qI=de(()=>{Wb();gg();iw={type:"3rdParty",init(e){nw(e.options.react),sw(e)}}});var G5,zd,ow,Vd=de(()=>{G5=I(Le(),1);Wb();gg();qI();zd=(0,G5.createContext)(),ow=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}});var uie,K5=de(()=>{uie=I(Le(),1);VI();Vd()});var qd,HI=de(()=>{qd=class extends Error{constructor(t,r,a){super(t),this.name="TranslationParserError",this.position=r,this.translationString=a,Error.captureStackTrace&&Error.captureStackTrace(this,qd)}}});var W5,die,X5,$I=de(()=>{W5={" ":"\xA0","&":"&","<":"<",">":">",""":'"',"'":"'","©":"\xA9","®":"\xAE","™":"\u2122","…":"\u2026","–":"\u2013","—":"\u2014","‘":"\u2018","’":"\u2019","‚":"\u201A","“":"\u201C","”":"\u201D","„":"\u201E","†":"\u2020","‡":"\u2021","•":"\u2022","′":"\u2032","″":"\u2033","‹":"\u2039","›":"\u203A","§":"\xA7","¶":"\xB6","·":"\xB7"," ":"\u2002"," ":"\u2003"," ":"\u2009","€":"\u20AC","£":"\xA3","¥":"\xA5","¢":"\xA2","¤":"\xA4","×":"\xD7","÷":"\xF7","−":"\u2212","±":"\xB1","≠":"\u2260","≤":"\u2264","≥":"\u2265","≈":"\u2248","≡":"\u2261","∞":"\u221E","∫":"\u222B","∑":"\u2211","∏":"\u220F","√":"\u221A","∂":"\u2202","‰":"\u2030","°":"\xB0","µ":"\xB5","←":"\u2190","↑":"\u2191","→":"\u2192","↓":"\u2193","↔":"\u2194","↵":"\u21B5","⇐":"\u21D0","⇑":"\u21D1","⇒":"\u21D2","⇓":"\u21D3","⇔":"\u21D4","α":"\u03B1","β":"\u03B2","γ":"\u03B3","δ":"\u03B4","ε":"\u03B5","ζ":"\u03B6","η":"\u03B7","θ":"\u03B8","ι":"\u03B9","κ":"\u03BA","λ":"\u03BB","μ":"\u03BC","ν":"\u03BD","ξ":"\u03BE","ο":"\u03BF","π":"\u03C0","ρ":"\u03C1","σ":"\u03C3","τ":"\u03C4","υ":"\u03C5","φ":"\u03C6","χ":"\u03C7","ψ":"\u03C8","ω":"\u03C9","Α":"\u0391","Β":"\u0392","Γ":"\u0393","Δ":"\u0394","Ε":"\u0395","Ζ":"\u0396","Η":"\u0397","Θ":"\u0398","Ι":"\u0399","Κ":"\u039A","Λ":"\u039B","Μ":"\u039C","Ν":"\u039D","Ξ":"\u039E","Ο":"\u039F","Π":"\u03A0","Ρ":"\u03A1","Σ":"\u03A3","Τ":"\u03A4","Υ":"\u03A5","Φ":"\u03A6","Χ":"\u03A7","Ψ":"\u03A8","Ω":"\u03A9","À":"\xC0","Á":"\xC1","Â":"\xC2","Ã":"\xC3","Ä":"\xC4","Å":"\xC5","Æ":"\xC6","Ç":"\xC7","È":"\xC8","É":"\xC9","Ê":"\xCA","Ë":"\xCB","Ì":"\xCC","Í":"\xCD","Î":"\xCE","Ï":"\xCF","Ð":"\xD0","Ñ":"\xD1","Ò":"\xD2","Ó":"\xD3","Ô":"\xD4","Õ":"\xD5","Ö":"\xD6","Ø":"\xD8","Ù":"\xD9","Ú":"\xDA","Û":"\xDB","Ü":"\xDC","Ý":"\xDD","Þ":"\xDE","ß":"\xDF","à":"\xE0","á":"\xE1","â":"\xE2","ã":"\xE3","ä":"\xE4","å":"\xE5","æ":"\xE6","ç":"\xE7","è":"\xE8","é":"\xE9","ê":"\xEA","ë":"\xEB","ì":"\xEC","í":"\xED","î":"\xEE","ï":"\xEF","ð":"\xF0","ñ":"\xF1","ò":"\xF2","ó":"\xF3","ô":"\xF4","õ":"\xF5","ö":"\xF6","ø":"\xF8","ù":"\xF9","ú":"\xFA","û":"\xFB","ü":"\xFC","ý":"\xFD","þ":"\xFE","ÿ":"\xFF","¡":"\xA1","¿":"\xBF","ƒ":"\u0192","ˆ":"\u02C6","˜":"\u02DC","Œ":"\u0152","œ":"\u0153","Š":"\u0160","š":"\u0161","Ÿ":"\u0178","ª":"\xAA","º":"\xBA","¯":"\xAF","´":"\xB4","¸":"\xB8","¹":"\xB9","²":"\xB2","³":"\xB3","¼":"\xBC","½":"\xBD","¾":"\xBE","♠":"\u2660","♣":"\u2663","♥":"\u2665","♦":"\u2666","◊":"\u25CA","‾":"\u203E","⁄":"\u2044","℘":"\u2118","ℑ":"\u2111","ℜ":"\u211C","ℵ":"\u2135"},die=new RegExp(Object.keys(W5).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),X5=e=>e.replace(die,t=>W5[t]).replace(/&#(\d+);/g,(t,r)=>String.fromCharCode(parseInt(r,10))).replace(/&#x([0-9a-fA-F]+);/g,(t,r)=>String.fromCharCode(parseInt(r,16)))});var Y5,GI=de(()=>{Y5=e=>{let t=[],r=0,a="",n=()=>{a&&(t.push({type:"Text",value:a,position:r-a.length}),a="")};for(;r/);if(i)n(),t.push({type:"TagOpen",value:i[0],position:r,tagNumber:parseInt(i[1],10)}),r+=i[0].length;else{let o=e.slice(r).match(/^<\/(\d+)>/);o?(n(),t.push({type:"TagClose",value:o[0],position:r,tagNumber:parseInt(o[1],10)}),r+=o[0].length):(a+=s,r+=1)}}else a+=s,r+=1}return n(),t}});var Yb,fie,J5,Q5=de(()=>{Yb=I(Le(),1);HI();GI();$I();fie=(e,t,r)=>{let{type:a,props:n={}}=e;if(n.children&&Array.isArray(n.children)&&r){let{children:s,...i}=n;return Yb.default.createElement(a,i,...t)}return t.length===0?Yb.default.createElement(a,n):t.length===1?Yb.default.createElement(a,n,t[0]):Yb.default.createElement(a,n,...t)},J5=(e,t=[])=>{if(!e)return[];let r=Y5(e),a=[],n=[],s=new Set,i=()=>{if(n.length===0)return t;let o=n[n.length-1];return o.declaration.props?.children&&Array.isArray(o.declaration.props.children)?o.declaration.props.children:o.declarations};if(r.forEach(o=>{switch(o.type){case"Text":{let l=X5(o.value);(n.length>0?n[n.length-1].children:a).push(l)}break;case"TagOpen":{let{tagNumber:l}=o,c=i(),u=c[l];if(!u){s.add(l);let d=`<${l}>`;(n.length>0?n[n.length-1].children:a).push(d);break}n.push({tagNumber:l,children:[],position:o.position,declaration:u,declarations:c})}break;case"TagClose":{let{tagNumber:l}=o;if(s.has(l)){let f=``;(n.length>0?n[n.length-1].children:a).push(f),s.delete(l);break}if(n.length===0)throw new qd(`Unexpected closing tag at position ${o.position}`,o.position,e);let c=n.pop();if(c.tagNumber!==l)throw new qd(`Mismatched tags: expected but got at position ${o.position}`,o.position,e);let u=fie(c.declaration,c.children,c.declarations);(n.length>0?n[n.length-1].children:a).push(u)}break}}),n.length>0){let o=n[n.length-1];throw new qd(`Unclosed tag <${o.tagNumber}> at position ${o.position}`,o.position,e)}return a}});var Z5=de(()=>{HI();$I();GI();Q5()});function lw({i18nKey:e,defaultTranslation:t,content:r,ns:a,values:n={},i18n:s,t:i}){let o=s||jl();if(!o)return mg(o,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:e}),Yp.default.createElement(Yp.default.Fragment,{},t);let l=i||o.t?.bind(o)||(f=>f),c=a||l.ns||o.options?.defaultNS;c=Ul(c)?[c]:c||["translation"];let u=n;o.options?.interpolation?.defaultVariables&&(u=n&&Object.keys(n).length>0?{...n,...o.options.interpolation.defaultVariables}:{...o.options.interpolation.defaultVariables});let d=l(e,{defaultValue:t,...u,ns:c});try{let f=J5(d,r);return Yp.default.createElement(Yp.default.Fragment,{},...f)}catch(f){return rw(o,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${e}": ${f.message}`,{i18nKey:e,error:f}),Yp.default.createElement(Yp.default.Fragment,{},d)}}var Yp,KI=de(()=>{Yp=I(Le(),1);hg();gg();Z5();lw.displayName="IcuTransWithoutContext"});function tB({i18nKey:e,defaultTranslation:t,content:r,ns:a,values:n={},i18n:s,t:i}){let{i18n:o,defaultNS:l}=(0,eB.useContext)(zd)||{},c=s||o||jl(),u=i||c?.t.bind(c);return lw({i18nKey:e,defaultTranslation:t,content:r,ns:a||u?.ns||l||c?.options?.defaultNS,values:n,i18n:c,t:i})}var eB,rB=de(()=>{eB=I(Le(),1);KI();Vd();tB.displayName="IcuTrans"});var nB=ne(aB=>{"use strict";var yg=Le();function pie(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mie=typeof Object.is=="function"?Object.is:pie,hie=yg.useState,gie=yg.useEffect,yie=yg.useLayoutEffect,xie=yg.useDebugValue;function bie(e,t){var r=t(),a=hie({inst:{value:r,getSnapshot:t}}),n=a[0].inst,s=a[1];return yie(function(){n.value=r,n.getSnapshot=t,WI(n)&&s({inst:n})},[e,r,t]),gie(function(){return WI(n)&&s({inst:n}),e(function(){WI(n)&&s({inst:n})})},[e]),xie(r),r}function WI(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!mie(e,r)}catch{return!0}}function vie(e,t){return t()}var Sie=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vie:bie;aB.useSyncExternalStore=yg.useSyncExternalStore!==void 0?yg.useSyncExternalStore:Sie});var iB=ne((hQe,sB)=>{"use strict";sB.exports=nB()});var gs,oB,Tie,wie,Cie,ze,cw=de(()=>{gs=I(Le(),1),oB=I(iB(),1);Vd();hg();Tie=(e,t)=>Ul(t)?t:BI(t)&&Ul(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,wie={t:Tie,ready:!1},Cie=()=>()=>{},ze=(e,t={})=>{let{i18n:r}=t,{i18n:a,defaultNS:n}=(0,gs.useContext)(zd)||{},s=r||a||jl();s&&!s.reportNamespaces&&(s.reportNamespaces=new ow),s||mg(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let i=(0,gs.useMemo)(()=>({...Kb(),...s?.options?.react,...t}),[s,t]),{useSuspense:o,keyPrefix:l}=i,c=e||n||s?.options?.defaultNS,u=Ul(c)?[c]:c||["translation"],d=(0,gs.useMemo)(()=>u,u);s?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,gs.useRef)(0),p=(0,gs.useCallback)(R=>{if(!s)return Cie;let{bindI18n:O,bindI18nStore:D}=i,W=()=>{f.current+=1,R()};return O&&s.on(O,W),D&&s.store.on(D,W),()=>{O&&O.split(" ").forEach(J=>s.off(J,W)),D&&D.split(" ").forEach(J=>s.store.off(J,W))}},[s,i]),m=(0,gs.useRef)(),h=(0,gs.useCallback)(()=>{if(!s)return wie;let R=!!(s.isInitialized||s.initializedStoreOnce)&&d.every(Z=>H5(Z,s,i)),O=t.lng||s.language,D=f.current,W=m.current;if(W&&W.ready===R&&W.lng===O&&W.keyPrefix===l&&W.revision===D)return W;let me={t:s.getFixedT(O,i.nsMode==="fallback"?d:d[0],l),ready:R,lng:O,keyPrefix:l,revision:D};return m.current=me,me},[s,d,l,i,t.lng]),[x,g]=(0,gs.useState)(0),{t:y,ready:v}=(0,oB.useSyncExternalStore)(p,h,h);(0,gs.useEffect)(()=>{if(s&&!v&&!o){let R=()=>g(O=>O+1);t.lng?FI(s,t.lng,d,R):aw(s,d,R)}},[s,t.lng,d,v,o,x]);let S=s||{},w=(0,gs.useRef)(null),P=(0,gs.useRef)(),C=R=>{let O=Object.getOwnPropertyDescriptors(R);O.__original&&delete O.__original;let D=Object.create(Object.getPrototypeOf(R),O);if(!Object.prototype.hasOwnProperty.call(D,"__original"))try{Object.defineProperty(D,"__original",{value:R,writable:!1,enumerable:!1,configurable:!1})}catch{}return D},N=(0,gs.useMemo)(()=>{let R=S,O=R?.language,D=R;R&&(w.current&&w.current.__original===R?P.current!==O?(D=C(R),w.current=D,P.current=O):D=w.current:(D=C(R),w.current=D,P.current=O));let W=[y,D,v];return W.t=y,W.i18n=D,W.ready=v,W},[y,S,v,S.resolvedLanguage,S.language,S.languages]);if(s&&o&&!v)throw new Promise(R=>{let O=()=>R();t.lng?FI(s,t.lng,d,O):aw(s,d,O)});return N}});var lB,cB=de(()=>{lB=I(Le(),1);cw();hg()});var uB=de(()=>{cw()});var dB,fB=de(()=>{dB=I(Le(),1);Vd()});var Pie,XI=de(()=>{Pie=I(Le(),1);Vd()});var Nie,pB=de(()=>{Nie=I(Le(),1);XI();Vd();hg()});var er=de(()=>{K5();VI();rB();KI();cw();cB();uB();fB();pB();XI();qI();Wb();gg();Vd()});var mB,hB=de(()=>{mB={Actions:{Save:"\u4FDD\u5B58",Cancel:"\u53D6\u6D88",Confirm:"\u786E\u5B9A",Refresh:"\u5237\u65B0",Edit:"\u7F16\u8F91",Back:"\u8FD4\u56DE",Update:"\u66F4\u65B0",Clear:"\u6E05\u9664",Delete:"\u5220\u9664",StopTranslate:"\u505C\u6B62\u7FFB\u8BD1"},Status:{Success:"\u6210\u529F",Failure:"\u5931\u8D25",Loading:"\u52A0\u8F7D\u4E2D...",Reloading:"\u91CD\u8F7D\u4E2D...",Unknown:"\u672A\u77E5",Error:"\u9519\u8BEF",Ready:"\u5C31\u7EEA"},Labels:{I18n:"I18N",Themes:"\u4E3B\u9898",Plugins:"\u63D2\u4EF6",GithubUser:"GitHub \u7528\u6237",Mtime:"\u4FEE\u6539\u65F6\u95F4",Optional:"\u53EF\u9009",Or:"\u6216",NoPlugins:"\u6682\u65E0\u63D2\u4EF6",UpdatePrefix:"\u66F4\u65B0\u4E8E",Filter:"\u7B5B\u9009"},Filters:{All:"\u5168\u90E8",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",Applied:"\u5DF2\u5E94\u7528"},Notices:{Success:"\u6210\u529F",Failure:"\u5931\u8D25",Clear:"\u6E05\u7A7A",SaveSuccess:"\u4FDD\u5B58\u6210\u529F",SaveFail:"\u4FDD\u5B58\u5931\u8D25",SaveFailPath:"\u4FDD\u5B58\u5931\u8D25\uFF1A\u672A\u627E\u5230\u6709\u6548\u7684\u5B58\u50A8\u8DEF\u5F84",DeleteSuccess:"\u5220\u9664\u6210\u529F",TaskStopped:"\u4EFB\u52A1\u5DF2\u505C\u6B62",BatchTranslateSuccess:"\u6279\u91CF\u7FFB\u8BD1\u5B8C\u6210\uFF01",TranslateFail:"\u7FFB\u8BD1\u5931\u8D25: {{message}}",NoItemsToTranslate:"\u6CA1\u6709\u9700\u8981\u7FFB\u8BD1\u7684\u6761\u76EE",ThemeNotFound:"\u672A\u627E\u5230\u4E3B\u9898",MainNotFound:"\u672A\u627E\u5230\u6587\u4EF6 {{file}}",TaskCancelled:"\u7FFB\u8BD1\u4EFB\u52A1\u5DF2\u53D6\u6D88",Perfect:"\u72B6\u6001\u826F\u597D",NoErrors:"\u6682\u672A\u53D1\u73B0\u95EE\u9898"},Placeholders:{Search:"\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD..."},Data:{SortAsc:"\u6B63\u5E8F",SortDesc:"\u5012\u5E8F"},Pagination:{Label:"\u5206\u9875\u5BFC\u822A",Prev:"\u4E0A\u4E00\u9875",Next:"\u4E0B\u4E00\u9875"},MoreExpect:"\u66F4\u591A\u671F\u5F85"}});var gB,yB=de(()=>{gB={Common:{Titles:{Main:"i18n \u7BA1\u7406\u4E2D\u5FC3"},Actions:{Search:"\u641C\u7D22",MoreActions:"\u66F4\u591A\u9009\u9879",Sponsor:"\u652F\u6301\u4F5C\u8005",Help:"\u4F7F\u7528\u5E2E\u52A9",HelpDoc:"\u5B98\u65B9\u6587\u6863\u6559\u7A0B",Cloud:"\u4E91\u7AEF\u8BD1\u6587",Settings:"\u7EFC\u5408\u8BBE\u7F6E",SelectSource:"\u9009\u62E9\u6570\u636E\u6E90",Apply:"\u5E94\u7528",Restore:"\u8FD8\u539F",Edit:"\u7F16\u8F91\u8BD1\u6587",Delete:"\u5220\u9664\u8BD1\u6587",OpenFolder:"\u6D4F\u89C8\u76EE\u5F55"},Placeholders:{SearchPlaceholder:"\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD..."},Filters:{All:"\u5168\u90E8"},Labels:{Author:"\u4F5C\u8005"},Status:{Labels:{pending:"\u7B49\u5F85\u4E2D",processing:"\u5904\u7406\u4E2D",success:"\u5E94\u7528\u6210\u529F",found:"\u5DF2\u53D1\u73B0\u5339\u914D",skipped:"\u5DF2\u8DF3\u8FC7",error:"\u4EFB\u52A1\u5931\u8D25",discovered:"\u5F85\u5BA1\u9605",discovered_new:"\u53D1\u73B0\u65B0\u8BD1\u6587",discovered_update:"\u53D1\u73B0\u7248\u672C\u66F4\u65B0",up_to_date:"\u5DF2\u662F\u6700\u65B0",applied:"\u5DF2\u5E94\u7528",plugin:"\u63D2\u4EF6",theme:"\u4E3B\u9898",DiscoveryNotice:"\u53D1\u73B0\u66F4\u65B0\u65F6\u901A\u77E5",AutoApply:"\u627E\u5230\u5339\u914D\u540E\u81EA\u52A8\u5E94\u7528 (\u4E0D\u63A8\u8350)",SilentMode:"\u5B8C\u5168\u9759\u9ED8\u6A21\u5F0F",MatchStrategy:"\u5339\u914D\u4F18\u9009\u7B56\u7565",MatchStrategies:{comprehensive:"\u7EFC\u5408\u4F18\u9009 (\u63A8\u8350)",version_first:"\u7248\u672C\u6700\u63A5\u8FD1\u4F18\u5148",popularity:"\u793E\u533A\u70ED\u5EA6\u4F18\u5148",latest_update:"\u6700\u65B0\u7FFB\u8BD1\u4F18\u5148"}}},Errors:{Error:"\u9519\u8BEF",ErrorDesc:"\u8BD1\u6587\u89E3\u6790\u5F02\u5E38",FetchCommunityDataFailed:"\u83B7\u53D6\u793E\u533A\u6CE8\u518C\u8868\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC",SyncFailed:"\u4E2D\u5FC3\u5E93\u540C\u6B65\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u6216 Token \u6743\u9650",InvalidRepo:"\u65E0\u6548\u7684\u4ED3\u5E93\u5730\u5740\uFF0C\u8BF7\u786E\u4FDD\u683C\u5F0F\u4E3A owner/repo"},Notices:{ApplySuccess:"\u7FFB\u8BD1\u5E94\u7528\u6210\u529F",CopySuccess:"Registry JSON \u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",SyncSuccess:"\u4E2D\u5FC3\u5E93\u6CE8\u518C\u8868\u540C\u6B65\u6210\u529F\uFF01"}},Plugins:{TabName:"\u63D2\u4EF6",Actions:{Extract:"\u63D0\u53D6\u8BD1\u6587",OpenSettings:"\u63D2\u4EF6\u8BBE\u7F6E",Reload:"\u91CD\u8F7D\u63D2\u4EF6",GoToEditor:"\u524D\u5F80\u7F16\u8F91\u5668",ContinueApply:"\u575A\u6301\u5E94\u7528"},Placeholders:{SearchPlugins:"\u641C\u7D22\u63D2\u4EF6..."},Filters:{Applied:"\u5DF2\u5E94\u7528",Unapplied:"\u672A\u5E94\u7528",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",ToExtract:"\u5F85\u63D0\u53D6"},Labels:{Auto:"\u81EA\u52A8",Admin:"\u7BA1\u7406",Mtime:"\u6700\u540E\u66F4\u65B0",SupportVer:"\u652F\u6301\u7248\u672C"},Status:{NoPlugins:"\u672A\u53D1\u73B0\u63D2\u4EF6",On:"\u5DF2\u542F\u7528",Off:"\u5DF2\u7981\u7528",Applied:"\u5DF2\u5E94\u7528",Unapplied:"\u672A\u5E94\u7528",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",ToExtract:"\u5F85\u63D0\u53D6",NoTrans:"\u672A\u7FFB\u8BD1",Reloading:"\u91CD\u8F7D\u4E2D..."},Dialogs:{EmptyTranslationTitle:"\u672A\u68C0\u6D4B\u5230\u7FFB\u8BD1\u5185\u5BB9",EmptyTranslationDesc:"\u5F53\u524D\u9009\u62E9\u7684\u7FFB\u8BD1\u6E90\u5C1A\u672A\u8FDB\u884C\u4EFB\u4F55\u5B9E\u8D28\u6027\u7FFB\u8BD1\uFF08\u8BD1\u6587\u4E0E\u539F\u6587\u5B8C\u5168\u4E00\u81F4\uFF09\u3002\u5E94\u7528\u6B64\u6587\u4EF6\u540E\uFF0C\u63D2\u4EF6\u754C\u9762\u8BED\u8A00\u5C06\u4E0D\u4F1A\u53D1\u751F\u4EFB\u4F55\u53D8\u5316\u3002\u5EFA\u8BAE\u60A8\u5148\u5728\u7F16\u8F91\u5668\u4E2D\u5B8C\u6210\u7FFB\u8BD1\u540E\u518D\u5E94\u7528\u3002"},Hints:{NoTransDesc:"\u6682\u65E0\u672C\u5730\u8BED\u8A00\u6570\u636E",ExtractSuccessDesc:"\u5DF2\u751F\u6210\u5F53\u524D\u7248\u672C\u7684\u7FFB\u8BD1\u6A21\u677F"},Errors:{ReloadPluginFailed:"\u63D2\u4EF6\u91CD\u542F\u5931\u8D25: {{error}}",ReloadFailed:"\u63D2\u4EF6\u91CD\u8F7D\u5931\u8D25: {{error}}",PluginNotEnabled:"\u63D2\u4EF6\u672A\u542F\u7528",LoadFailedAfterApply:"\u63D2\u4EF6\u91CD\u8F7D\u5931\u8D25\uFF0C\u53EF\u80FD\u662F\u6E90\u7801\u5B58\u5728\u8FD0\u884C\u65F6\u9519\u8BEF\u3002\u8BF7\u6309 Ctrl+Shift+I \u6253\u5F00\u63A7\u5236\u53F0\u67E5\u770B\u5177\u4F53\u62A5\u9519\u5806\u6808\u3002",SyntaxError:"JavaScript \u8BED\u6CD5\u635F\u574F\uFF0C\u5DF2\u7EC8\u6B62\u5E94\u7528: {{file}}",MainNotFound:"\u672A\u627E\u5230 main.js \u6587\u4EF6",BackupNotFound:"\u5907\u4EFD\u6587\u4EF6\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u8FD8\u539F",PluginProcessFailed:"\u5904\u7406\u63D2\u4EF6 {{id}} \u65F6\u51FA\u9519"},Notices:{ApplyPluginSuccess:"{{id}} \u7FFB\u8BD1\u5E94\u7528\u6210\u529F",ReloadPlugin:"\u51C6\u5907\u91CD\u542F\u63D2\u4EF6: {{id}}",ReloadSuccess:"\u63D2\u4EF6\u91CD\u8F7D\u6210\u529F",ExtractSuccess:"\u63D0\u53D6\u6210\u529F"}},Themes:{TabName:"\u4E3B\u9898",Placeholders:{SearchThemes:"\u641C\u7D22\u4E3B\u9898..."},Labels:{ThemeActive:"\u5F53\u524D\u4E3B\u9898",Auto:"\u81EA\u52A8",Admin:"\u7BA1\u7406",Mtime:"\u6700\u540E\u66F4\u65B0",SupportVer:"\u652F\u6301\u7248\u672C"},Filters:{Applied:"\u5DF2\u5E94\u7528",Unapplied:"\u672A\u5E94\u7528",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",ToExtract:"\u5F85\u63D0\u53D6"},Status:{NoThemes:"\u672A\u53D1\u73B0\u4E3B\u9898",On:"\u5DF2\u542F\u7528",Off:"\u5DF2\u7981\u7528",Applied:"\u5DF2\u5E94\u7528",Unapplied:"\u672A\u5E94\u7528",Translated:"\u5DF2\u7FFB\u8BD1",Untranslated:"\u672A\u7FFB\u8BD1",ToExtract:"\u5F85\u63D0\u53D6",NoTrans:"\u672A\u7FFB\u8BD1",Reloading:"\u91CD\u8F7D\u4E2D..."},Dialogs:{EmptyTranslationTitle:"\u672A\u68C0\u6D4B\u5230\u7FFB\u8BD1\u5185\u5BB9",EmptyTranslationDesc:"\u5F53\u524D\u9009\u62E9\u7684\u7FFB\u8BD1\u6E90\u5C1A\u672A\u8FDB\u884C\u4EFB\u4F55\u5B9E\u8D28\u6027\u7FFB\u8BD1\uFF08\u8BD1\u6587\u4E0E\u539F\u6587\u5B8C\u5168\u4E00\u81F4\uFF09\u3002\u5E94\u7528\u6B64\u6587\u4EF6\u540E\uFF0C\u63D2\u4EF6\u754C\u9762\u8BED\u8A00\u5C06\u4E0D\u4F1A\u53D1\u751F\u4EFB\u4F55\u53D8\u5316\u3002\u5EFA\u8BAE\u60A8\u5148\u5728\u7F16\u8F91\u5668\u4E2D\u5B8C\u6210\u7FFB\u8BD1\u540E\u518D\u5E94\u7528\u3002"},Errors:{ThemeCssNotFound:"\u672A\u627E\u5230 theme.css \u6587\u4EF6",NoSettingsBlock:"\u672A\u627E\u5230 @settings \u5757\uFF0C\u65E0\u53EF\u7FFB\u8BD1\u5185\u5BB9",BackupNotFound:"\u5907\u4EFD\u6587\u4EF6\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u8FD8\u539F"},Notices:{ThemeExtractPrefix:"\u63D0\u53D6\u8BD1\u6587",ThemeApplyPrefix:"\u4E3B\u9898\u5E94\u7528",ThemeRestorePrefix:"\u4E3B\u9898\u8FD8\u539F"}},Sources:{TabName:"\u7BA1\u7406",Table:{Name:"\u7FFB\u8BD1\u540D\u79F0/\u63D2\u4EF6",Id:"\u6E90 ID",Origin:"\u6765\u6E90",Mtime:"\u66F4\u65B0\u65F6\u95F4",Type:"\u7C7B\u578B",Actions:"\u64CD\u4F5C"},Status:{NotInstalled:"\u63D2\u4EF6\u7F3A\u5931",ThemeNotInstalled:"\u4E3B\u9898\u7F3A\u5931"},Actions:{Export:"\u5BFC\u51FA",Import:"\u5BFC\u5165",BatchDelete:"\u5220\u9664",SelectUninstalled:"\u5F02\u5E38\u9879",DeleteConfirm:"\u786E\u5B9A\u8981\u5220\u9664\u9009\u4E2D\u7684 {{count}} \u9879\u8BD1\u6587\u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u64A4\u9500\u3002",ImportSuccess:"\u6210\u529F\u5BFC\u5165 {{count}} \u9879\u8BD1\u6587",ExportSuccess:"\u8BD1\u6587\u5BFC\u51FA\u6210\u529F",SelectAll:"\u5168\u9009"},Filters:{SearchPlaceholder:"\u641C\u7D22\u7FFB\u8BD1\u6216\u63D2\u4EF6...",OriginLocal:"\u672C\u5730\u63D0\u53D6",OriginCloud:"\u4E91\u7AEF\u4E0B\u8F7D"},Stats:{Total:"\u603B\u8BD1\u6587\u6570",Selected:"\u5DF2\u9009\u4E2D"}},Auto:{TabName:"\u81EA\u52A8\u5316",Title:"\u81EA\u52A8\u5316\u670D\u52A1",Desc:"\u667A\u80FD\u63A2\u6D4B\u53EF\u7528\u7684\u63D2\u4EF6\u7FFB\u8BD1\u5E76\u8FDB\u884C\u5B89\u5168\u5BA1\u9605\u3002",Discovery:{Title:"\u53D1\u73B0\u66F4\u65B0",ReviewAction:"\u5BA1\u9605\u5E76\u5E94\u7528",IgnoreAction:"\u5FFD\u7565\u6B64\u66F4\u65B0",SafetyWarning:"\u5B89\u5168\u63D0\u9192\uFF1A\u6B64\u7FFB\u8BD1\u6765\u81EA\u793E\u533A\u4ED3\u5E93\uFF0C\u5EFA\u8BAE\u5728\u5E94\u7528\u524D\u786E\u8BA4\u6765\u6E90\u53EF\u9760\u6027\u3002",NewSource:"\u65B0\u6765\u6E90 (\u9996\u6B21\u53D1\u73B0)",HashChanged:"\u5185\u5BB9\u5DF2\u53D8\u66F4 (Hash \u4E0D\u4E00\u81F4)",TrustScore:"\u6C49\u5316\u4FE1\u8A89\u8BC4\u5206",ScoreBreakdown:{Title:"\u5339\u914D\u8D28\u91CF\u8BC4\u5206",Version:"\u7248\u672C\u517C\u5BB9",Popularity:"\u793E\u533A\u8BA4\u53EF",Freshness:"\u66F4\u65B0\u9C9C\u6D3B"}},Filters:{Title:"\u4EFB\u52A1\u7B5B\u9009"},Scoping:{Title:"\u63A2\u6D4B\u8303\u56F4"},History:{Title:"\u5B89\u5168\u5BA1\u8BA1\u65E5\u5FD7",Empty:"\u6682\u65E0\u64CD\u4F5C\u8BB0\u5F55",BatchHeader:"\u6267\u884C\u6279\u6B21\uFF1A{{id}}",TriggerDiscovery:"\u540E\u53F0\u63A2\u6D4B",TriggerManual:"\u624B\u52A8\u6267\u884C",TriggerStartup:"\u542F\u52A8\u81EA\u68C0"},Actions:{StartAuto:"\u63A2\u6D4B\u626B\u63CF",ReviewAll:"\u5168\u90E8\u5BA1\u9605\u5E76\u5E94\u7528",OneClickReview:"\u4E00\u952E\u5BA1\u9605"},Modes:{Incremental:"\u589E\u91CF\u63A2\u6D4B",Full:"\u5168\u91CF\u626B\u63CF"},Status:{Analyzing:"\u6B63\u5728\u5206\u6790\u4E91\u7AEF\u4ED3\u5E93...",AutoStarting:"\u6B63\u5728\u542F\u52A8\u5B89\u5168\u63A2\u6D4B...",ScanningInstalled:"\u6B63\u5728\u626B\u63CF\u5DF2\u5B89\u88C5\u9879 ({{count}})...",Running:"\u6B63\u5728\u63A2\u6D4B\u66F4\u65B0...",DiscoveryComplete:"\u63A2\u6D4B\u5B8C\u6210\uFF0C\u53D1\u73B0 {{count}} \u9879\u5F85\u5BA1\u9605",NoLogs:"\u6682\u65E0\u626B\u63CF\u7ED3\u679C\u8BB0\u5F55",AutoRollbacked:"\u8FD0\u884C\u5F02\u5E38\u5DF2\u81EA\u52A8\u56DE\u6EDA",BatchApply:"\u6279\u91CF\u5E94\u7528\u53D1\u73B0",BatchComplete:"\u6279\u91CF\u4EFB\u52A1\u5DF2\u7ED3\u675F: \u6210\u529F {{success}}, \u5931\u8D25 {{fail}}",SkipReasons:{Exclusion:"\u63D2\u4EF6\u5DF2\u52A0\u5165\u6392\u9664\u540D\u5355",NoMatch:"\u6240\u6709\u4FE1\u4EFB\u6E90\u4E2D\u5747\u65E0\u8BE5\u63D2\u4EF6\u8BB0\u5F55",NoVersion:"\u672A\u627E\u5230\u7B26\u5408\u8FC7\u6EE4\u6761\u4EF6\u7684\u6C49\u5316\u7248\u672C"}},QuickSettings:{Title:"\u81EA\u52A8\u5316\u7B56\u7565",AutoApply:"\u81EA\u52A8\u5E94\u7528\u7FFB\u8BD1",DiscoveryNotice:"\u540E\u53F0\u63A2\u6D4B\u4E0E\u901A\u77E5",CheckInterval:"\u63A2\u6D4B\u5468\u671F",Hours:"\u5C0F\u65F6"},Stats:{Health:"\u6C49\u5316\u5065\u5EB7\u5EA6",VaultStatus:"\u6C49\u5316\u72B6\u6001",TotalInstalled:"\u5DF2\u5B89\u88C5\u603B\u6570",AppliedCount:"\u7D2F\u8BA1\u7FFB\u8BD1\u5E94\u7528",CurrentSuccess:"\u672C\u6B21\u6210\u529F",CurrentSkipped:"\u672C\u6B21\u8DF3\u8FC7/\u5931\u8D25",Plugins:"\u63D2\u4EF6",Themes:"\u4E3B\u9898",LastCheckTime:"\u4E0A\u6B21\u68C0\u67E5\uFF1A{{time}}"},Errors:{NoCachedManifest:"\u672A\u627E\u5230\u8BE5\u63D2\u4EF6\u7684\u7F13\u5B58\u6E05\u5355",NoBestMatch:"\u6700\u4F73\u5339\u914D\u5DF2\u4E0D\u53EF\u7528",LocalApplyFailed:"\u672C\u5730\u5E94\u7528\u5931\u8D25",DownloadApplyFailed:"\u4E0B\u8F7D\u6216\u5E94\u7528\u5931\u8D25",BatchApplyFailed:"\u6279\u91CF\u5E94\u7528\u5931\u8D25"},Repos:{Title:"\u53D7\u4FE1\u4EFB\u7684\u4ED3\u5E93",AddPlaceholder:"\u6DFB\u52A0\u4ED3\u5E93 (owner/repo)...",Empty:"\u6682\u65E0\u53D7\u4FE1\u4EFB\u4ED3\u5E93",RemoveConfirm:"\u786E\u5B9A\u79FB\u9664\u8BE5\u4ED3\u5E93\u5417\uFF1F",ScanRegistry:"\u626B\u63CF\u6CE8\u518C\u8868"},Tips:{Title:"\u63D0\u793A",Desc:'\u81EA\u52A8\u5316\u626B\u63CF\u4EC5\u4F1A\u4ECE\u60A8\u4FE1\u4EFB\u7684\u4ED3\u5E93\u4E2D\u68C0\u67E5\u7FFB\u8BD1 Registry\u3002\u786E\u4FDD\u4ED3\u5E93\u5730\u5740\u683C\u5F0F\u4E3A owner/repo\u3002'}},Credits:{TabName:"\u9E23\u8C22",Title:"\u81F4\u8C22\u6240\u6709\u8D21\u732E\u8005",Subtitle:"\u611F\u8C22\u6BCF\u4E00\u4F4D\u4EE5\u4E0D\u540C\u65B9\u5F0F\u4E3A\u672C\u9879\u76EE\u4ED8\u51FA\u52AA\u529B\u7684\u4EBA\u3002",NoData:"\u6682\u672A\u52A0\u8F7D\u5230\u793E\u533A\u521B\u4F5C\u8005\u6570\u636E",StatCreators:"\u4F4D\u521B\u4F5C\u8005",StatStars:"\u4E2A\u661F\u6807",StatTranslations:"\u4EFD\u8BD1\u6587",UnitRepos:"\u4ED3\u5E93",UnitPlugins:"\u63D2\u4EF6",Footer:"\u611F\u8C22\u6240\u6709\u8D21\u732E\u8005\u7684\u65E0\u79C1\u4ED8\u51FA",ComingSoon:"\u6682\u65E0\u6570\u636E\uFF0C\u656C\u8BF7\u671F\u5F85",CatTranslation:"\u7FFB\u8BD1\u8D21\u732E\u8005",CatTranslationDesc:"\u4E3A\u63D2\u4EF6\u4E0E\u4E3B\u9898\u63D0\u4F9B\u591A\u8BED\u8A00\u7FFB\u8BD1\u7684\u793E\u533A\u6210\u5458",CatCode:"\u4EE3\u7801\u8D21\u732E\u8005",CatCodeDesc:"\u4E3A\u9879\u76EE\u63D0\u4F9B\u4EE3\u7801\u8D21\u732E\u7684\u5F00\u53D1\u8005",CatVideo:"\u89C6\u9891\u521B\u4F5C\u8005",CatVideoDesc:"\u5236\u4F5C\u6559\u7A0B\u3001\u4ECB\u7ECD\u89C6\u9891\u7684\u521B\u4F5C\u8005",CatTesting:"\u6D4B\u8BD5\u8D21\u732E\u8005",CatTestingDesc:"\u5E2E\u52A9\u53D1\u73B0\u548C\u53CD\u9988\u95EE\u9898\u7684\u6D4B\u8BD5\u4EBA\u5458",CatSuggestion:"\u5EFA\u8BAE\u8D21\u732E\u8005",CatSuggestionDesc:"\u63D0\u4F9B\u5B9D\u8D35\u610F\u89C1\u4E0E\u5EFA\u8BAE\u7684\u793E\u533A\u6210\u5458",CatSponsor:"\u7231\u53D1\u7535\u6301\u7EED\u8D5E\u52A9",CatSponsorDesc:"\u4E3A\u9879\u76EE\u6301\u7EED\u63D0\u4F9B\u7535\u529B\u7684\u91D1\u4E3B\u7238\u7238"},Admin:{TabName:"\u7BA1\u7406\u5458",Title:"\u793E\u533A\u6570\u636E\u770B\u677F",AdminControl:"\u7BA1\u7406\u5458\u63A7\u5236",Subtitle:"\u6DF1\u5EA6\u76D1\u63A7\u793E\u533A\u52A8\u6001\u4E0E\u6CE8\u518C\u8868\u6743\u91CD\u5206\u914D\u7CFB\u7EDF",SearchPlaceholder:"\u641C\u7D22\u4ED3\u5E93\u5730\u5740\u6216\u4F5C\u8005\u52CB\u7AE0...",PushToCloud:"\u63A8\u9001\u81F3\u4E91\u7AEF",ExportJson:"\u5BFC\u51FA\u6CE8\u518C\u8868 JSON",Stats:{Repos:"\u4ED3\u5E93",Stars:"\u661F\u6807",Contribs:"\u8D21\u732E\u8005",Plugins:"\u63D2\u4EF6",Translations:"\u8BCD\u6761\u7FFB\u8BD1",Commits30d:"30\u5929\u63D0\u4EA4",Langs:"\u6DB5\u76D6\u8BED\u8A00",ActivityIndex:"\u6D3B\u8DC3\u6307\u6570",Forks:"\u6D3E\u751F (Forks)",OpenIssues:"\u5F00\u653E\u8BAE\u9898",LastUpdate:"\u6700\u540E\u63A8\u9001",Size:"\u8D44\u6E90\u5360\u7528"},Leaderboard:{Title:"\u6D3B\u8DC3\u8D21\u732E\u699C",Subtitle:"\u9876\u5C16\u8D21\u732E\u8005\u4E0E\u9AD8\u6D3B\u8DC3\u5EA6\u9879\u76EE"},LanguageDistribution:{Title:"\u8BED\u8A00\u5206\u5E03\u6982\u89C8",TotalTranslations:"{{count}} \u9879\u7FFB\u8BD1"},Management:{Title:"\u4ED3\u5E93\u6CE8\u518C\u8868\u7BA1\u7406",ShowingStats:"\u5F53\u524D\u5C55\u793A {{filtered}} / {{total}} \u4E2A\u4ED3\u5E93",SyncingData:"\u6B63\u5728\u540C\u6B65\u6570\u636E\u5C42...",NoData:"\u5F53\u524D\u8F68\u9053\u672A\u53D1\u73B0\u6570\u636E",NoLicense:"\u65E0\u8BB8\u53EF\u8BC1"},Fields:{AuthorReputation:"\u4F5C\u8005\u58F0\u671B/\u52CB\u7AE0",AuthorReputationPlaceholder:"\u4F8B\u5982\uFF1A\u7FFB\u8BD1\u5DE8\u5320, \u793E\u533A\u65B0\u661F...",RegistryBadges:"\u6CE8\u518C\u8868\u6807\u7B7E (JSON)",RegistryBadgesPlaceholder:'["\u7CBE\u9009", "\u70ED\u95E8"]',FeaturedContext:"\u6DF1\u5EA6\u63A8\u8350\u7406\u7531",FeaturedContextPlaceholder:"\u5C55\u793A\u5728\u4E91\u7AEF\u9996\u9875\u7684\u6DF1\u5EA6\u63A8\u8350\u7406\u7531..."},Controls:{Official:"\u5B98\u65B9\u8BA4\u8BC1",VerifiedNode:"\u5DF2\u9A8C\u8BC1\u8282\u70B9",Featured:"\u7CBE\u9009\u63A8\u8350",HighlightedContent:"\u9AD8\u5149\u5185\u5BB9\u5C55\u793A"},ContributorsManagement:{Title:"\u8D21\u732E\u8005\u7BA1\u7406",PushToCloud:"\u63A8\u9001\u8D21\u732E\u8005",AddNew:"\u6DFB\u52A0\u8D21\u732E\u8005",Name:"\u540D\u79F0",Category:"\u7C7B\u522B",Url:"\u94FE\u63A5 URL",Github:"GitHub \u7528\u6237\u540D",Description:"\u8D21\u732E\u63CF\u8FF0",Add:"\u6DFB\u52A0",RemoveSuccess:"\u5DF2\u79FB\u9664\u8D21\u732E\u8005: {{name}}",AddSuccess:"\u5DF2\u6DFB\u52A0\u8D21\u732E\u8005: {{name}}"}}}});var xB,bB=de(()=>{xB={Titles:{Main:"\u7F16\u8F91\u5668",Sidebar:"\u64CD\u4F5C\u9762\u677F",Files:"\u8D44\u6E90\u7BA1\u7406\u5668",Stats:"\u6761\u76EE\u7EDF\u8BA1",Insert:"\u65B0\u589E\u9879",QuickActions:"\u5FEB\u6377\u64CD\u4F5C",Ai:"AI \u667A\u80FD\u7FFB\u8BD1",Ast:"AST \u7F16\u8F91",Regex:"\u8BED\u6CD5\u6821\u9A8C",Metadata:"\u5143\u6570\u636E"},Labels:{SidebarViewOptions:"\u89C6\u56FE\u9009\u9879",SidebarShowCards:"\u663E\u793A\u5361\u7247",SelectLang:"\u9009\u62E9\u8BED\u8A00",CustomLang:"\u81EA\u5B9A\u4E49\u8BED\u8A00",SelectStyle:"\u9009\u62E9\u98CE\u683C",CustomStyle:"\u81EA\u5B9A\u4E49\u98CE\u683C",PluginId:"\u63D2\u4EF6ID",ThemeName:"\u4E3B\u9898\u540D\u79F0",PathLabel:"\u6587\u4EF6\u8DEF\u5F84",PathPlaceholder:"\u5982\uFF1Astyles.css \u6216 sub/file.js",Name:"\u540D\u79F0",NamePlaceholder:"\u540D\u79F0",Desc:"\u63CF\u8FF0",DescPlaceholder:"\u63CF\u8FF0",Author:"\u4F5C\u8005",Lang:"\u8BED\u8A00",SupportedVer:"\u652F\u6301\u7248\u672C",Ver:"\u7248\u672C",Source:"\u6765\u6E90",SourceCloud:"\u4E91\u7AEF",SourceLocal:"\u672C\u5730",Checksum:"\u6821\u9A8C",BatchSize:"\u6BCF\u6279\u6570\u91CF",Concurrency:"\u5E76\u53D1\u9650\u5236",Timeout:"\u8D85\u65F6 (ms)",Overwrite:"\u8986\u76D6\u73B0\u6709\u8BD1\u6587",ClickToJump:"\u70B9\u51FB\u8DF3\u8F6C\u5230\u8BE5\u884C",RealtimeCheck:"\u5B9E\u65F6\u6821\u9A8C",AutoSave:"\u81EA\u52A8\u4FDD\u5B58",FontSize:"\u5B57\u4F53\u5927\u5C0F",ParenthesesCheck:"\u62EC\u53F7\u5339\u914D",VariableCheck:"\u53D8\u91CF\u6821\u9A8C",PunctuationCheck:"\u6807\u70B9\u68C0\u67E5",ExpectedConsumption:"\u9884\u671F\u6D88\u8017",LineNumber:"\u884C {{line}}"},Actions:{BatchTranslate:"\u5F00\u59CB\u6279\u91CF\u7FFB\u8BD1 ({{count}})",Save:"\u4FDD\u5B58",IncrementalExtract:"\u589E\u91CF\u63D0\u53D6",IncrementalExtractTip:"\u4EC5\u63D0\u53D6\u65B0\u589E\u7FFB\u8BD1\u9879",IncrementalExtractDisabledTip:"\u5F53\u524D\u8BD1\u6587\u5DF2\u5E94\u7528\uFF0C\u65E0\u6CD5\u8FDB\u884C\u589E\u91CF\u63D0\u53D6",OpenFile:"\u6253\u5F00\u5F53\u524D\u6587\u4EF6",OpenFileTip:"\u5728\u5916\u90E8\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u5F53\u524D\u6587\u4EF6",Add:"\u65B0\u589E",DeleteUntranslated:"\u6E05\u7A7A\u672A\u7FFB\u8BD1\u9879",DeleteUntranslatedTip:"\u4E00\u952E\u5220\u9664\u6240\u6709\u5C1A\u672A\u586B\u5199\u8BD1\u6587\u7684\u6761\u76EE",Source:"\u6E90\u7801",Trans:"\u8BD1\u6587",Restore:"\u8FD8\u539F",RestoreAllErrors:"\u8FD8\u539F\u6240\u6709\u5F02\u5E38\u9879",Settings:"\u914D\u7F6E",Diagnose:"\u8BED\u6CD5\u8BCA\u65AD",UnusedDiagnose:"\u5197\u4F59\u8BCA\u65AD",SecurityDiagnose:"\u5B89\u5168\u626B\u63CF",ClearDiagnose:"\u6E05\u9664\u8BCA\u65AD",StartScan:"\u5F00\u59CB\u626B\u63CF",AiFix:"AI \u4FEE\u590D",AiFixTip:"\u8BA9 AI \u5C1D\u8BD5\u4FEE\u590D\u6B64\u8BD1\u6587\u7684\u8BED\u6CD5\u9519\u8BEF",ContextAware:"\u4E0A\u4E0B\u6587\u611F\u77E5",ContextAwareTip:"\u9644\u52A0\u6E90\u7801\u4E0A\u4E0B\u6587\u4EE5\u63D0\u5347\u7FFB\u8BD1\u51C6\u786E\u5EA6"},Stats:{Title:"\u6761\u76EE\u7EDF\u8BA1",Progress:"\u7FFB\u8BD1\u8FDB\u5EA6",Overview:"\u7FFB\u8BD1\u7EDF\u8BA1",TotalItems:"\u603B\u6761\u76EE\u6570",Translated:"\u5DF2\u7FFB\u8BD1\u9879",Untranslated:"\u672A\u7FFB\u8BD1\u9879"},Ast:{Title:"AST \u7F16\u8F91",AddRule:"\u65B0\u589E AST \u89C4\u5219",SelectTypePlaceholder:"\u9009\u62E9\u8282\u70B9\u7C7B\u578B",InputNamePlaceholder:"\u8F93\u5165\u53D8\u91CF\u540D\u6216\u952E\u540D",InputSourcePlaceholder:"\u8F93\u5165\u4EE3\u7801\u539F\u6587",InputTargetPlaceholder:"\u8F93\u5165\u7FFB\u8BD1\u540E\u6587\u672C",DefaultPlaceholder:"\u9ED8\u8BA4\u4E3A\u539F\u6587: {{source}}",NodeVariable:"\u53D8\u91CF\u7533\u660E",NodeAssignment:"\u8D4B\u503C\u8BED\u53E5",NodeProperty:"\u5BF9\u8C61\u5C5E\u6027",NodeCall:"\u65B9\u6CD5\u8C03\u7528",NodeNew:"\u5B9E\u4F8B\u5316"},Regex:{Title:"\u8BED\u6CD5\u6821\u9A8C",Overview:"\u6B63\u5219\u7EDF\u8BA1",TotalItems:"\u5339\u914D\u603B\u6570",Translated:"\u5DF2\u5904\u7406\u9879",Untranslated:"\u5F85\u5904\u7406\u9879",AddRule:"\u65B0\u589E\u6B63\u5219\u89C4\u5219",InputRegexPlaceholder:"\u8F93\u5165\u6B63\u5219\u8868\u8FBE\u5F0F",InputTargetPlaceholder:"\u8F93\u5165\u66FF\u6362\u76EE\u6807",DefaultPlaceholder:"\u9ED8\u8BA4\u4E3A\u539F\u6587: {{source}}"},Table:{EmptyState:"\u6682\u65E0\u7FFB\u8BD1\u6761\u76EE",EmptyStateAst:"\u6CA1\u6709\u627E\u5230\u5339\u914D\u7684 AST \u6761\u76EE",EmptyStateRegex:"\u672A\u53D1\u73B0\u5F85\u6821\u9A8C\u7684\u8BED\u6CD5\u6761\u76EE",ColumnType:"\u7C7B\u578B",ColumnName:"\u540D\u79F0",ColumnSource:"\u539F\u6587",ColumnTarget:"\u8BD1\u6587",ColumnActions:"\u64CD\u4F5C"},Status:{ProcessingBatch:"\u6B63\u5728\u7FFB\u8BD1\u7B2C {{current}}/{{total}} \u6279...",Diagnosing:"\u6B63\u5728\u8FDB\u884C\u8BED\u6CD5\u8BCA\u65AD...",DiagnosingUnused:"\u6B63\u5728\u8FDB\u884C\u5197\u4F59\u8BCA\u65AD...",DiagnosingSecurity:"\u6B63\u5728\u8FDB\u884C\u5B89\u5168\u5BA1\u8BA1...",Applied:"\u5DF2\u5E94\u7528",NotApplied:"\u672A\u5E94\u7528",Empty:"\u6682\u65E0\u6761\u76EE",IssueCount:"\u53D1\u73B0 {{count}} \u4E2A\u95EE\u9898"},Hints:{ExtractSummary:"\u589E\u91CF\u63D0\u53D6\u5B8C\u6210\uFF0C\u65B0\u589E {{count}} \u4E2A\u6761\u76EE",DiagnosisSuccess:"\u8BCA\u65AD\u5B8C\u6210\uFF1A\u672A\u53D1\u73B0\u5BFC\u81F4\u8BED\u6CD5\u9519\u8BEF\u7684\u6761\u76EE",NoItems:"\u65E0\u53EF\u7FFB\u8BD1\u9879",NoNewItems:"\u672A\u53D1\u73B0\u65B0\u7684\u7FFB\u8BD1\u6761\u76EE"},Notices:{NoticePrefix:"\u7F16\u8F91\u5668",SuccessAdd:"\u65B0\u589E\u6210\u529F",SuccessAi:"\u7FFB\u8BD1\u6210\u529F",SuccessRestore:"\u8FD8\u539F\u6210\u529F",SuccessDelete:"\u5220\u9664\u6210\u529F",SuccessIncrementalExtract:"\u589E\u91CF\u63D0\u53D6\u5B8C\u6210",DiagnosisSuccess:"\u8BED\u6CD5\u8BCA\u65AD\u901A\u8FC7",ConfirmDeleteUnused:"\u786E\u5B9A\u5220\u9664\u8FD9\u4E9B\u5197\u4F59\u9879\u5417\uFF1F\u8BE5\u64CD\u4F5C\u4E0D\u53EF\u64A4\u9500\u3002",AiFixSuccess:"AI \u4FEE\u590D\u6210\u529F"},Errors:{FailExists:`\u65B0\u589E\u5931\u8D25 \u8BD1\u6587\u4E2D\u5DF2\u5B58\u5728\u6B64\u5185\u5BB9`,SyntaxErrorTotal:"\u8BCA\u65AD\u5B8C\u6210\uFF1A\u53D1\u73B0 {{count}} \u4E2A\u8BED\u6CD5\u9519\u8BEF",UnusedTotal:"\u8BCA\u65AD\u5B8C\u6210\uFF1A\u53D1\u73B0 {{count}} \u4E2A\u672A\u5339\u914D\u7684\u5197\u4F59\u6761\u76EE",SecurityRiskTotal:"\u5B89\u5168\u9884\u8B66\uFF1A\u53D1\u73B0 {{count}} \u4E2A\u6F5C\u5728\u7684\u5B89\u5168\u98CE\u9669",SyntaxError:"\u57FA\u7840\u8BED\u6CD5\u9519\u8BEF",Unused:"\u5197\u4F59\u9879 (\u672A\u5728\u6E90\u7801\u4E2D\u8BC6\u522B\u5230)",SecurityCritical:"\u4E25\u91CD\u5B89\u5168\u5A01\u80C1",SecurityWarning:"\u53EF\u7591\u884C\u4E3A\u9884\u8B66",BracketMismatch:"\u62EC\u53F7\u914D\u5BF9\u7F3A\u5931",VariableMismatch:"\u53D8\u91CF\u5360\u4F4D\u7B26\u4E22\u5931\u6216\u4E0D\u5339\u914D",SyntaxErrorAst:"AST \u63D0\u53D6\u5931\u8D25",SyntaxErrorRegex:"\u6B63\u5219\u63D0\u53D6\u5931\u8D25",NoMetadata:"\u672A\u627E\u5230\u5143\u6570\u636E\uFF0C\u65E0\u6CD5\u8FDB\u884C\u8BCA\u65AD\u3002",NoManifest:"\u672A\u627E\u5230\u5BF9\u5E94\u6E05\u5355\uFF0C\u65E0\u6CD5\u5B9A\u4F4D\u76EE\u5F55\u3002",NotJs:"\u5F53\u524D\u9009\u62E9\u7684\u6587\u4EF6\u4E0D\u662F .js \u811A\u672C\uFF0C\u6682\u4E0D\u652F\u6301\u8BED\u6CD5\u8BCA\u65AD\u3002",NoBackup:"\u8BCA\u65AD\u5F02\u5E38\uFF1A\u672A\u627E\u5230\u5BF9\u5E94\u7684\u5907\u4EFD\u6587\u4EF6\u3002\u8BF7\u5148\u70B9\u51FB\u4E00\u6B21\u201C\u66FF\u6362\u201D\u4EE5\u521B\u5EFA\u57FA\u51C6\u5907\u4EFD\u3002",SourceError:"\u6E90\u7801\u672C\u8EAB\u5B58\u5728\u8BED\u6CD5\u9519\u8BEF\uFF0C\u65E0\u6CD5\u8FDB\u884C\u8BCA\u65AD\u3002",FileNotFound:"\u6587\u4EF6\u4E0D\u5B58\u5728",SavePathMissing:"\u4FDD\u5B58\u8DEF\u5F84\u4E0D\u5B58\u5728",TotalCount:"\u5171 {{count}} \u9879",AiFixFail:"AI \u4FEE\u590D\u5931\u8D25"},Dialogs:{ConfirmDeletePath:"\u786E\u8BA4\u5220\u9664\u8BE5\u8DEF\u5F84\uFF1F",PromptNewPath:"\u65B0\u589E\u7FFB\u8BD1\u8DEF\u5F84"}}});var vB,SB=de(()=>{vB={Actions:{PublishToCloud:"\u53D1\u5E03\u5230\u4E91\u7AEF",BackupSync:"\u5168\u91CF\u4E91\u7AEF\u5907\u4EFD\u4E0E\u6062\u590D",InitPersonalRepo:"\u521D\u59CB\u5316\u4E2A\u4EBA\u4ED3\u5E93",UpdateTranslation:"\u66F4\u65B0\u7FFB\u8BD1",NewPublish:"\u6DFB\u52A0\u53D1\u5E03",ApplyForCommunity:"\u7533\u8BF7\u52A0\u5165 Obsidian i18n \u7FFB\u8BD1\u793E\u533A\u76EE\u5F55",ViewDiff:"\u5728\u7EBF\u5DEE\u5F02\u5BF9\u6BD4",Add:"\u6DFB\u52A0",Update:"\u66F4\u65B0",Unsubscribe:"\u53D6\u6D88\u8BA2\u9605",CheckAllUpdates:"\u5168\u91CF\u68C0\u67E5\u66F4\u65B0",Recheck:"\u91CD\u65B0\u68C0\u67E5",UpdateAll:"\u4E00\u952E\u66F4\u65B0\u6240\u6709",RegisterCommunity:"\u7533\u8BF7\u52A0\u5165\u793E\u533A\u7D22\u5F15",PublishNew:"\u53D1\u5E03\u65B0\u7FFB\u8BD1",ForceRefresh:"\u5F3A\u5236\u5237\u65B0\u4E91\u7AEF\u72B6\u6001",GoPublish:"\u524D\u5F80\u53D1\u5E03\u7B2C\u4E00\u4E2A\u7FFB\u8BD1",BackToManage:"\u8FD4\u56DE\u7BA1\u7406\u4E2D\u5FC3",CreateRepo:"\u521B\u5EFA\u65B0\u4ED3\u5E93",UseExistingRepo:"\u4F7F\u7528\u5DF2\u6709\u4ED3\u5E93",StartBackup:"\u5F00\u59CB\u5907\u4EFD",StartRestore:"\u5F00\u59CB\u6062\u590D",Download:"\u4E0B\u8F7D",Overwrite:"\u8986\u76D6\u5207\u6362",ClearFilters:"\u6E05\u9664\u6240\u6709\u8FC7\u6EE4\u5668",CreateNewRepo:"\u521B\u5EFA\u65B0\u4ED3\u5E93",Delete:"\u5220\u9664",Logout:"\u9000\u51FA\u767B\u5F55",ResumeLastBackup:"\u6062\u590D\u4E0A\u6B21\u5907\u4EFD"},Status:{Published:"\u5DF2\u53D1\u5E03",Local:"\u672C\u5730",Uploaded:"\u5DF2\u4E0A\u4F20",NotDownloaded:"\u672A\u4E0B\u8F7D",Reviewing:"\u6536\u5F55\u5BA1\u6838\u4E2D",Fetching:"\u72B6\u6001\u83B7\u53D6\u4E2D",Registered:"\u5DF2\u6536\u5F55\u4E8E\u793E\u533A",Unauthorized:"\u672A\u767B\u5F55",UpToDate:"\u6700\u65B0",UpdateAvailable:"\u6709\u66F4\u65B0",SyncWithCloud:"\u4E0E\u4E91\u7AEF\u540C\u6B65",CloudDifferent:"\u672C\u5730\u4E0E\u4E91\u7AEF\u4E0D\u540C",Latest:"\u6700\u65B0",Modified:"\u6709\u4FEE\u6539",RollingBack:"\u56DE\u6EDA\u4E2D...",BackupDone:"\u2728 \u5B8C\u6210",BackupError:"\u274C \u51FA\u9519",UploadingCloud:"\u2601\uFE0F \u4E0A\u4F20\u4E2D...",DownloadingCloud:"\u{1F4E5} \u4E0B\u8F7D\u4E2D...",VerifyingRepo:"\u6B63\u5728\u9A8C\u8BC1\u4ED3\u5E93\u662F\u5426\u5B58\u5728...",InitializingStructure:"\u6B63\u5728\u521D\u59CB\u5316\u4ED3\u5E93\u7ED3\u6784...",GeneratingReadme:"\u6B63\u5728\u751F\u6210 README.md...",Initializing:"\u6B63\u5728\u521D\u59CB\u5316",CreatingRepo:"\u6B63\u5728\u521B\u5EFA\u4E2A\u4EBA\u7FFB\u8BD1\u4ED3\u5E93...",Checking:"\u6B63\u5728\u68C0\u67E5",LoadingRepo:"\u6B63\u5728\u52A0\u8F7D\u4E2A\u4EBA\u4ED3\u5E93\u6570\u636E...",LoadingContent:"\u52A0\u8F7D\u7248\u672C\u5185\u5BB9...",LoadingDiff:"\u6B63\u5728\u52A0\u8F7D\u5E76\u5BF9\u6BD4\u6570\u636E...",UploadingFile:"\u6B63\u5728\u4E0A\u4F20\u7FFB\u8BD1\u6587\u4EF6...",UpdatingIndex:"\u6B63\u5728\u66F4\u65B0\u7D22\u5F15\u6587\u4EF6...",Processing:"\u6B63\u5728\u5904\u7406",PreparingData:"\u6B63\u5728\u51C6\u5907\u5F85\u5907\u4EFD\u6570\u636E...",BulkUploading:"\u6B63\u5728\u6279\u91CF\u4E0A\u4F20 {{count}} \u4E2A\u6587\u4EF6...",UploadingBatch:"\u6B63\u5728\u4E0A\u4F20\u7B2C {{current}}/{{total}} \u6279\u6B21...",UploadingBatchLog:"\u{1F4E4} \u6B63\u5728\u4E0A\u4F20\u7B2C {{current}}/{{total}} \u6279\u6B21 (\u5171 {{count}} \u4E2A\u6587\u4EF6)...",FetchingManifest:"\u6B63\u5728\u83B7\u53D6\u4E91\u7AEF\u6E05\u5355...",ResumingBackup:"\u6B63\u5728\u6062\u590D\u4E0A\u6B21\u4E2D\u65AD\u7684\u5907\u4EFD...",FinalizingLocal:"\u6B63\u5728\u540C\u6B65\u672C\u5730\u5143\u6570\u636E...",Downloading:"\u6B63\u5728\u4E0B\u8F7D\u7FFB\u8BD1: {{title}}...",Done:"\u2728 \u5B8C\u6210",ForkAvailable:"\u6765\u81EA\u5176\u4ED6\u5E93",Cloud:"\u4E91\u7AEF",Unknown:"\u672A\u77E5\u7248\u672C",Ready:"\u5C31\u7EEA",GuestMode:"\u8BBF\u5BA2\u6A21\u5F0F"},Titles:{NewPublish:"\u6DFB\u52A0\u53D1\u5E03",Homepage:"\u4ED3\u5E93\u4E3B\u9875",DiffViewer:"\u7248\u672C\u5DEE\u5F02\u5BF9\u6BD4"},Tabs:{Community:"\u793E\u533A\u76EE\u5F55",Explore:"\u63A2\u7D22\u8D44\u6E90",Manage:"\u7BA1\u7406\u4E2D\u5FC3",Resources:"\u53D1\u5E03\u8D44\u6E90",Readme:"\u4ED3\u5E93\u4ECB\u7ECD",History:"\u5386\u53F2\u7248\u672C",Browse:"\u6D4F\u89C8\u4ED3\u5E93",Updates:"\u53EF\u7528\u66F4\u65B0"},Steps:{SelectType:"\u9009\u62E9\u7FFB\u8BD1\u7C7B\u578B",SelectTarget:"\u9009\u62E9\u76EE\u6807 {{type}}",SelectSource:"\u9009\u62E9\u7FFB\u8BD1\u6E90",CheckFiles:"\u6838\u5BF9\u672C\u5730\u6587\u4EF6",CompleteInfo:"\u5B8C\u5584\u53D1\u5E03\u4FE1\u606F",VerifyAndPublish:"\u6838\u5BF9\u5E76\u53D1\u5E03"},Tips:{ReadmeDefault:"\u6807\u9898\u5C06\u4F5C\u4E3A\u8BE5\u7FFB\u8BD1\u5728\u793E\u533A\u4E2D\u7684\u4E3B\u540D\u79F0\u3002",SelectSourceDesc:"\u8BF7\u9009\u62E9\u60A8\u8981\u53D1\u5E03\u6216\u66F4\u65B0\u7684\u672C\u5730\u7FFB\u8BD1\u6E90\u6587\u4EF6\u3002",BackupToCloud:"\u4E00\u952E\u5907\u4EFD\u5230\u4E91\u7AEF",LocalToGithub:"\u5C06\u672C\u5730\u6240\u6709\u7FFB\u8BD1\u540C\u6B65\u81F3 GitHub",RestoreFromCloud:"\u4E00\u952E\u4ECE\u4E91\u7AEF\u6062\u590D",GithubToLocal:"\u4ECE GitHub \u62C9\u53D6\u6240\u6709\u7FFB\u8BD1\u8986\u76D6\u672C\u5730",GithubRepo:"GitHub \u4ED3\u5E93",BackupDesc:"\u5168\u91CF\u5907\u4EFD\u4F1A\u5C06\u60A8\u672C\u5730\u6240\u6709\u7684\u7FFB\u8BD1\u6E90\u6587\u4EF6\u4E0A\u4F20\u5230\u60A8\u7684 GitHub \u4ED3\u5E93\u4E2D\uFF0C\u5E76\u81EA\u52A8\u66F4\u65B0\u7D22\u5F15\u3002\u5168\u91CF\u6062\u590D\u5219\u4F1A\u5C06\u4E91\u7AEF\u7684\u6700\u65B0\u7248\u672C\u540C\u6B65\u5230\u672C\u5730\u3002",BackupStep1:"\u2022 \u626B\u63CF\u5E76\u6BD4\u8F83\u672C\u5730\u6240\u6709\u7FFB\u8BD1\u6E90",BackupStep2:"\u2022 \u4E0A\u4F20\u6709\u53D8\u52A8\u7684\u6587\u4EF6\u5230 GitHub",BackupStep3:"\u2022 \u81EA\u52A8\u7EF4\u62A4 metadata.json \u7D22\u5F15",RestoreStep1:"\u2022 \u83B7\u53D6\u4E91\u7AEF metadata.json \u5217\u8868",RestoreStep2:"\u2022 \u4E0B\u8F7D\u6240\u6709\u672C\u5730\u7F3A\u5931\u6216\u65E7\u7684\u6587\u4EF6",RestoreStep3:"\u2022 \u81EA\u52A8\u5728\u672C\u5730\u6CE8\u518C\u5E76\u5E94\u7528\u4E0B\u8F7D\u7684\u7FFB\u8BD1",InitRepoDesc:"\u5728 GitHub \u4E0A\u521B\u5EFA\u4E00\u4E2A\u4E13\u95E8\u5B58\u50A8\u7FFB\u8BD1\u6587\u4EF6\u7684\u516C\u5F00\u4ED3\u5E93\uFF0C\u4EE5\u4FBF\u4E8E\u5907\u4EFD\u3001\u5171\u4EAB\u548C\u5728\u4E0D\u540C\u8BBE\u5907\u95F4\u540C\u6B65\u3002\u60A8\u53EF\u4EE5\u4F7F\u7528\u9ED8\u8BA4\u540D\u79F0\u6216\u81EA\u5B9A\u4E49\u540D\u79F0\u3002",UseExistingDesc:"\u5982\u679C\u60A8\u5DF2\u7ECF\u5728 GitHub \u4E0A\u624B\u52A8\u521B\u5EFA\u4E86\u4ED3\u5E93\uFF0C\u8BF7\u8F93\u5165\u5176\u540D\u79F0\u4EE5\u8FDB\u884C\u8FDE\u63A5\u3002\u7A0B\u5E8F\u5C06\u5C1D\u8BD5\u5728\u5176\u4E0A\u521D\u59CB\u5316\u5FC5\u8981\u7684\u76EE\u5F55\u7ED3\u6784\u3002",CheckFailRepo:"\u68C0\u67E5\u4ED3\u5E93 {{address}} \u5931\u8D25",CheckFail:"\u68C0\u67E5\u66F4\u65B0\u5931\u8D25",RepoFormatTip:"\u8BF7\u4F7F\u7528 owner/repo \u683C\u5F0F",NoSelfExplore:"\u4E0D\u80FD\u5728\u63A2\u7D22\u9875\u9762\u6D4F\u89C8\u81EA\u5DF1\u7684\u7FFB\u8BD1\u4ED3\u5E93\uFF0C\u8BF7\u524D\u5F80\u7BA1\u7406\u9875\u9762",NoTranslations:"\u8BE5\u4ED3\u5E93\u6682\u672A\u53D1\u5E03\u4EFB\u4F55\u7FFB\u8BD1\u8D44\u6E90",ManifestNotFound:"\u672A\u627E\u5230 metadata.json \u6216\u6587\u4EF6\u65E0\u6548",FetchFailManifest:"\u83B7\u53D6\u4ED3\u5E93\u6E05\u5355\u5931\u8D25",FetchCommitsFail:"\u83B7\u53D6\u63D0\u4EA4\u5386\u53F2\u5931\u8D25",UpdatedItem:"\u5DF2\u6210\u529F\u66F4\u65B0 {{title}}",AddedAndActive:"\u5DF2\u6DFB\u52A0 {{title}} \u5E76\u8BBE\u4E3A\u5F53\u524D\u6D3B\u52A8\u6E90",AddedSource:"\u5DF2\u6210\u529F\u6DFB\u52A0 {{title}}",DiscoverDesc:"\u8F93\u5165 GitHub \u4ED3\u5E93\u5730\u5740\uFF08\u5982: owner/repo\uFF09\uFF0C\u5373\u53EF\u6D4F\u89C8\u5E76\u4E0B\u8F7D\u5176\u4E2D\u5206\u4EAB\u7684 i18n \u8D44\u6E90\u3002",NoMatchesInRepo:"\u5F53\u524D\u4ED3\u5E93\u4E2D\u6CA1\u6709\u5339\u914D\u8FC7\u6EE4\u6761\u4EF6\u7684\u8D44\u6E90",NoReadme:"\u672A\u627E\u5230 README.md\u6216\u8005\u6587\u4EF6\u4E3A\u7A7A",NoReadmeDesc:"\u8BE5\u4ED3\u5E93\u4F5C\u8005\u5C1A\u672A\u63D0\u4F9B\u4ECB\u7ECD\u6587\u6863",AllLatestDesc:"\u60A8\u8BA2\u9605\u7684\u6240\u6709\u7FFB\u8BD1\u5E93\u5185\u5BB9\u5728\u672C\u5730\u5747\u4E3A\u6700\u65B0\u7248\u672C",SelectHistoryEntry:"\u8BF7\u4ECE\u6211\u7684\u7FFB\u8BD1\u5217\u8868\u4E2D\u9009\u62E9\u4E00\u4E2A\u6761\u76EE\u67E5\u770B\u5386\u53F2",LoadingCommits:"\u6B63\u5728\u83B7\u53D6\u63D0\u4EA4\u5386\u53F2...",NoCommits:"\u8BE5\u6587\u4EF6\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55",RollbackSuccessLocal:"\u56DE\u6EDA\u6210\u529F\uFF0C\u672C\u5730\u6587\u4EF6\u5DF2\u540C\u6B65\u66F4\u65B0",VersionCompareDesc:"\u5BF9\u6BD4\u672C\u5730\u6700\u65B0\u7FFB\u8BD1\u4E0E\u4E91\u7AEF\u7248\u672C\u7684\u5DEE\u5F02",PublishNoticePrefix:"\u53D1\u5E03\u63D0\u4EA4\u5C06\u76F4\u63A5\u63A8\u9001\u5230",PublishNoticeSuffix:"\u4ED3\u5E93\uFF0C\u8BF7\u786E\u4FDD\u60A8\u7684\u6388\u6743\u6709\u6548\u3002"},Labels:{ResourceCenter:"\u8D44\u6E90\u7BA1\u7406\u4E2D\u5FC3",ManageCenter:"\u4E91\u7AEF\u7BA1\u7406\u4E2D\u5FC3",PendingUpdates:"\u5F85\u5904\u7406\u7684\u66F4\u65B0",CloudCentral:"\u4E91\u7AEF\u7FFB\u8BD1\u4E2D\u5FC3",TranslationHistory:"\u7FFB\u8BD1\u5386\u53F2\u7248\u672C",BackupRestore:"\u4E91\u7AEF\u5168\u91CF\u5907\u4EFD / \u6062\u590D",Feedback:"\u53CD\u9988",AccessLimit:"\u8BBF\u95EE\u9650\u5236",Permission:"\u6743\u9650",DefaultRepoDesc:"\u8FD9\u662F\u4E00\u4E2A\u7528\u4E8E\u7FFB\u8BD1 Obsidian \u63D2\u4EF6\u7684\u5171\u5EFA\u4ED3\u5E93\u3002",Followers:"\u5173\u6CE8\u8005 (Followers)",PublicRepos:"\u516C\u5F00\u4ED3\u5E93 (Public Repos)",UploadTypePlugin:"\u63D2\u4EF6\u7FFB\u8BD1",UploadTypePluginDesc:"\u53D1\u5E03\u6216\u66F4\u65B0\u5404\u4E2A\u63D2\u4EF6\u7684 i18n \u8D44\u6E90",UploadTypeTheme:"\u4E3B\u9898\u7FFB\u8BD1",UploadTypeThemeDesc:"\u4E3A Obsidian \u4E3B\u9898\u63D0\u4F9B\u6C49\u5316\u652F\u6301",Target:"\u76EE\u6807 {{type}}",Source:"\u7FFB\u8BD1\u6E90\u6587\u4EF6",TranslationTitle:"\u663E\u793A\u540D\u79F0 (Title)",Version:"\u9002\u7528\u7248\u672C (Version)",Language:"\u8BED\u79CD",Description:"\u8BE6\u7EC6\u63CF\u8FF0 (Description)",LocalFile:"\u672C\u5730\u6587\u4EF6",RepoName:"\u4ED3\u5E93\u540D\u79F0",RepoUrlPrefix:"\u4ED3\u5E93\u9884\u89C8:",RepoDesc:"\u4ED3\u5E93\u7B80\u4ECB",RegistrationLabel:"\u{1F4CB} \u7533\u8BF7\u4FE1\u606F",RepoInfo:"\u4ED3\u5E93\u6982\u51B5",RepoAddress:"\u4ED3\u5E93\u5730\u5740",ManifestFile:"\u7D22\u5F15\u6587\u4EF6",TranslationCountLabel:"\u7FFB\u8BD1\u5305\u6570\u91CF",UnitPlugins:"\u4E2A",LanguagesCovered:"\u6DB5\u76D6\u8BED\u79CD",ReviewHelper:"\u5BA1\u6838\u8F85\u52A9",ReviewerNotes:"\u5BA1\u6838\u89C4\u5219\u8BF4\u660E",ReviewerNote1:"\u4ED3\u5E93\u5FC5\u987B\u5305\u542B\u6709\u6548\u7684 metadata.json",ReviewerNote2:"\u6587\u4EF6\u7ED3\u6784\u9700\u7B26\u5408\u6807\u51C6\uFF08/plugins/ID/zh-CN.json\uFF09",ReviewerNote3:"\u6240\u6709\u4E0A\u4F20\u7684\u6587\u4EF6\u5FC5\u987B\u80FD\u901A\u8FC7\u54C8\u5E0C\u9A8C\u8BC1",CheckManifestData:"\u67E5\u770B\u539F\u59CB manifest \u6570\u636E",IssueAutoGenerated:"\u6B64\u5DE5\u5355\u7531 i18n \u63D2\u4EF6\u81EA\u52A8\u751F\u6210",ApplyRegistration:"\u7533\u8BF7\u6536\u5F55",UpdateReadmeMsg:"chore: update README.md via i18n plugin",RemoveTranslation:"chore: remove translation",DeleteEntry:"chore: delete manifest entry",StatAssets:"\u8D44\u6E90",StatStars:"\u661F\u6807",StatForks:"\u5206\u53C9",StatIssues:"\u53CD\u9988",PublishedResources:"\u5DF2\u53D1\u5E03\u7684\u8D44\u6E90",ReadmeCustomPage:"\u4ED3\u5E93\u4ECB\u7ECD\u9884\u89C8 (README.md)",CloudActions:"\u4E91\u7AEF\u64CD\u4F5C",LocalTranslation:"\u672C\u5730\u7FFB\u8BD1",UnnamedTranslation:"\u672A\u547D\u540D\u7FFB\u8BD1",InitReadmeMsg:"chore: initial repository structure",AddTranslationMsg:"feat: add translation {{title}} for {{plugin}}",UpdateTranslationMsg:"feat: update translation {{title}} for {{plugin}}",UpdateManifestMsg:"chore: update manifest for {{plugin}}",UpdateManifestGlobalMsg:"chore: update metadata.json (global update)",BackupCommitMsg:"backup: {{title}} ({{plugin}})",BulkBackupMsg:"batch backup: {{count}} items synced",BulkBackupMsgBatch:"batch backup: (chunk {{current}}/{{total}})",ViewOnGithubTitle:"\u5728 GitHub \u4E0A\u67E5\u770B {{repo}}",NoReadmeAdded:"\u6682\u65E0 README \u4ECB\u7ECD",NoReadmeAddedDesc:"\u60A8\u53EF\u4EE5\u70B9\u51FB\u53F3\u4E0A\u89D2\u7684\u7F16\u8F91\u6309\u94AE\uFF0C\u4E3A\u60A8\u7684\u7FFB\u8BD1\u5E93\u6DFB\u52A0\u8BE6\u7EC6\u7684\u4ECB\u7ECD\u3001\u4F7F\u7528\u8BF4\u660E\u6216\u8D21\u732E\u6307\u5357\u3002",ViewHistory:"\u67E5\u770B\u5386\u53F2\u7248\u672C",DeleteCloudPkg:"\u4ECE\u4E91\u7AEF\u6C38\u4E45\u5220\u9664\u8FD9\u4E2A\u7FFB\u8BD1\u5305",FetchingResources:"\u6B63\u5728\u83B7\u53D6\u4E91\u7AEF\u8D44\u6E90...",NoRegistry:"\u6682\u65E0\u793E\u533A\u6536\u5F55",NoRegistryDesc:"\u793E\u533A\u76EE\u5F55\u76EE\u524D\u4E3A\u7A7A\uFF0C\u60A8\u53EF\u4EE5\u6210\u4E3A\u7B2C\u4E00\u4E2A\u7533\u8BF7\u52A0\u5165\u7684\u4EBA\uFF01",Leaderboard:"\u6D3B\u8DC3\u8D21\u732E\u699C",TopStars:"\u6700\u9AD8\u4EBA\u6C14\u699C",TopActive:"\u8FD1\u671F\u6D3B\u8DC3\u699C",TopPlugins:"\u9AD8\u4EA7\u4F5C\u8005\u699C",TopAuthors:"\u6D3B\u8DC3\u8BD1\u8005\u699C",Rank1:"\u7B2C\u4E00\u540D",Rank2:"\u7B2C\u4E8C\u540D",Rank3:"\u7B2C\u4E09\u540D",LeaderboardTip:"\u6392\u884C\u699C\u6570\u636E\u6BCF 24 \u5C0F\u65F6\u81EA\u52A8\u66F4\u65B0\u4E00\u6B21",DiscoverTranslations:"\u53D1\u73B0\u4E91\u7AEF\u7FFB\u8BD1\u5E93",SubscriptionRepo:"\u4E2A\u5DF2\u6536\u5F55\u4ED3\u5E93",ExploreThisRepo:"\u6D4F\u89C8\u6B64\u4ED3\u5E93\u8D44\u6E90",NoDesc:"\u6682\u65E0\u63CF\u8FF0",SubscriptionList:"\u8BA2\u9605\u5217\u8868",WaitingFetch:"\u7B49\u5F85\u83B7\u53D6...",ViewOnGithub:"\u5728 GitHub \u4E0A\u67E5\u770B {{repo}}",PleaseWait:"\u6B63\u5728\u52A0\u8F7D\uFF0C\u8BF7\u7A0D\u5019...",SourceFrom:"\u8D44\u6E90\u6765\u6E90",Commits:"\u63D0\u4EA4\u8BB0\u5F55",VersionPreview:"\u7248\u672C\u5185\u5BB9\u9884\u89C8",SelectCommitToPreview:"\u8BF7\u5728\u5DE6\u4FA7\u9009\u62E9\u4E00\u4E2A\u7248\u672C\u8FDB\u884C\u9884\u89C8",RollbackToVersion:"\u56DE\u6EDA\u5230\u6B64\u7248\u672C",RollbackTranslationMsg:"\u56DE\u6EDA\u7FFB\u8BD1: {{plugin}} \u5230\u7248\u672C {{sha}}",UpdateManifestRollbackMsg:"\u540C\u6B65\u56DE\u6EDA manifest: {{plugin}}",Added:"\u65B0\u589E",Deleted:"\u79FB\u9664",Old:"\u65E7\u503C",New:"\u65B0\u503C",TotalDiffs:"\u5171\u53D1\u73B0 {{count}} \u5904\u5DEE\u5F02",ShowingCount:" (\u5DF2\u8FC7\u6EE4\u663E\u793A {{count}} \u5904)",FileSize:"\u6587\u4EF6\u5927\u5C0F",ContentHash:"\u5185\u5BB9\u6307\u7EB9",ReportIssue:"\u62A5\u544A\u95EE\u9898",IssueTemplateBody:"\u53D1\u73B0 {{plugin}} \u7684\u7FFB\u8BD1\u5B58\u5728\u95EE\u9898...",SupportedVersions:"\u652F\u6301\u7248\u672C\u53F7",TotalTranslations:"\u5168\u5C40\u603B\u7FFB\u8BD1\u6570",TotalContributors:"\u5168\u5C40\u603B\u8D21\u732E\u8005",TotalStars:"\u661F\u6807\u603B\u8BA1",LocalResource:"\u672C\u5730\u5DF2\u5B89\u88C5\u8D44\u6E90",Official:"\u5B98\u65B9\u63A8\u8350",Featured:"\u793E\u533A\u7CBE\u9009",RecommendReason:"\u63A8\u8350\u7406\u7531",MasterTranslator:"\u7FFB\u8BD1\u5DE8\u5320",RisingStar:"\u793E\u533A\u65B0\u661F",LegendaryRepo:"\u4E07\u4F17\u77A9\u76EE"},Placeholders:{RepoName:"\u4F8B\u5982: my-obsidian-i18n-resources",SelectTarget:"\u70B9\u51FB\u9009\u62E9\u76EE\u6807 {{type}}...",InputRepoPlaceholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u8DEF\u5F84 (owner/repo)",SelectSource:"\u8BF7\u9009\u62E9\u672C\u5730\u6E90...",SearchPublished:"\u641C\u7D22\u5DF2\u53D1\u5E03\u7684\u7FFB\u8BD1 (\u63D2\u4EF6 ID \u6216\u6807\u9898)...",ReadmeEdit:"\u53EF\u652F\u6301\u6807\u51C6\u7684 Markdown \u8BED\u6CD5...",SearchRepo:"\u641C\u7D22\u4ED3\u5E93\u3001\u4F5C\u8005\u6216\u63CF\u8FF0...",Repo:"GitHub \u4ED3\u5E93 (owner/repo)",SearchPlugins:"\u5FEB\u6377\u641C\u7D22\u5F53\u524D\u5217\u8868...",SearchDiff:"\u641C\u7D22\u5DEE\u5F02\u8BB0\u5F55..."},Dialogs:{ConfirmUpdateAll:"\u786E\u5B9A\u8981\u66F4\u65B0\u8FD9 {{count}} \u4E2A\u7FFB\u8BD1\u5417\uFF1F",ConfirmOverwrite:`\u68C0\u6D4B\u5230\u672C\u5730\u5DF2\u5B58\u5728 {{owner}} \u7684\u540C\u6E90\u7FFB\u8BD1\u5305\u3002 \u662F\u5426\u4F7F\u7528\u5F53\u524D {{newOwner}} \u7684\u7248\u672C\u8986\u76D6\u672C\u5730\u7FFB\u8BD1\uFF1F`,DeleteConfirm:`\u786E\u5B9A\u8981\u4ECE\u4E91\u7AEF\u5220\u9664\u3010{{plugin}}\u3011({{title}}) \u7684\u7FFB\u8BD1\u5305\u5417\uFF1F \u5220\u9664\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u3002`,DeleteConfirmSingle:`\u786E\u5B9A\u8981\u4ECE\u4E91\u7AEF\u5220\u9664\u6B64\u7FFB\u8BD1\u5305\u5417\uFF1F \u5220\u9664\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u3002`,RollbackConfirm:"\u786E\u5B9A\u8981\u5C06\u6B64\u6587\u4EF6\u56DE\u6EDA\u5230\u9009\u5B9A\u7684\u5386\u53F2\u7248\u672C\u5417\uFF1F\u8FD9\u4F1A\u4EA7\u751F\u4E00\u6761\u65B0\u7684\u63D0\u4EA4\u8BB0\u5F55\u5E76\u8986\u76D6\u5F53\u524D\u4E91\u7AEF\u7248\u672C\u3002",ConfirmUpdate:"\u786E\u8BA4\u8981\u66F4\u65B0\u6B64\u7FFB\u8BD1\u5305\u5417\uFF1F",ConfirmRestoreAll:`\u786E\u5B9A\u8981\u4ECE\u4E91\u7AEF\u6062\u590D\u5168\u90E8\u7FFB\u8BD1\u5417\uFF1F \u672C\u5730\u5DF2\u6709\u7684\u540C\u540D\u7FFB\u8BD1\u6E90\u5C06\u88AB\u8986\u76D6\u3002`},Errors:{ManifestFormatError:"metadata.json \u683C\u5F0F\u9519\u8BEF",ManifestNotFound:"\u65E0\u6CD5\u89E3\u6790 metadata.json \u6216\u6587\u4EF6\u4E0D\u5B58\u5728",UserNotFound:"\u672A\u83B7\u53D6\u5230\u7528\u6237\u4FE1\u606F",CannotRegister:"\u65E0\u6CD5\u6CE8\u518C",RegistryAddrMissing:"\u793E\u533A\u7D22\u5F15\u4ED3\u5E93\u5730\u5740\u672A\u914D\u7F6E",RegistryAddrFormatError:"\u793E\u533A\u7D22\u5F15\u4ED3\u5E93\u5730\u5740\u683C\u5F0F\u9519\u8BEF",InitRepoStructFail:"\u521D\u59CB\u5316\u4ED3\u5E93\u7ED3\u6784\u5931\u8D25",CreateRepoFail:"\u521B\u5EFA\u4ED3\u5E93\u5931\u8D25",RepoNotExistOnGithub:"\u4ED3\u5E93 {{repo}} \u4E0D\u5B58\u5728\uFF0C\u8BF7\u5148\u5728 GitHub \u4E0A\u521B\u5EFA",InvalidSourceConfig:"\u672A\u627E\u5230\u6709\u6548\u7684\u7FFB\u8BD1\u6E90\u914D\u7F6E",UploadFileFail:"\u4E0A\u4F20\u6587\u4EF6\u5931\u8D25",UpdateManifestFail:"\u66F4\u65B0\u6E05\u5355\u6587\u4EF6\u5931\u8D25",UpdateIndexFail:"\u66F4\u65B0\u7D22\u5F15\u6587\u4EF6\u5931\u8D25",InitStructureFail:"\u521D\u59CB\u5316\u4ED3\u5E93\u7ED3\u6784\u5931\u8D25",CreateFail:"\u521B\u5EFA\u4ED3\u5E93\u5931\u8D25",RollbackFail:"\u56DE\u6EDA\u5931\u8D25",GetFileFail:"\u65E0\u6CD5\u83B7\u53D6\u6587\u4EF6\u5185\u5BB9",InitFailed:"\u521D\u59CB\u5316\u5931\u8D25",NoGithubUser:"\u65E0\u6CD5\u83B7\u53D6 GitHub \u7528\u6237\u4FE1\u606F",NoCreateRepoPerm:"\u6743\u9650\u4E0D\u8DB3",UploadFailed:"\u4E0A\u4F20\u5931\u8D25",LocalFileMissing:"\u672C\u5730\u7FFB\u8BD1\u6587\u4EF6\u4E22\u5931",RepoNotFound:"\u672A\u627E\u5230\u4E2A\u4EBA\u7FFB\u8BD1\u4ED3\u5E93",GetManifestFail:"\u83B7\u53D6\u4E3B\u6E05\u5355\u5931\u8D25",BackupErrorMsg:"\u{1F4A5} \u5907\u4EFD\u51FA\u9519: {{error}}",RestoreErrorMsg:"\u{1F4A5} \u6062\u590D\u51FA\u9519: {{error}}",FetchFail:"\u83B7\u53D6\u5931\u8D25",DownloadFail:"\u4E0B\u8F7D\u5931\u8D25",UploadFailItem:"\u274C {{title}} \u4E0A\u4F20\u5931\u8D25",DownloadFailItem:"\u274C {{title}} \u4E0B\u8F7D\u5931\u8D25\uFF1A\u6587\u4EF6\u4E0D\u5B58\u5728",ProcessingFailItem:"\u274C {{title}} \u5904\u7406\u5931\u8D25: {{error}}",UpdateFail:"\u66F4\u65B0 {{title}} \u5931\u8D25:",LoadDiffFail:"\u52A0\u8F7D\u5DEE\u5F02\u6570\u636E\u5931\u8D25:",BackupFail:"\u5907\u4EFD\u5931\u8D25:",RestoreFail:"\u6062\u590D\u5931\u8D25:",CheckPendingFail:"\u68C0\u67E5\u5F85\u5904\u7406\u7533\u8BF7\u5931\u8D25",ParseRegistryFail:"\u89E3\u6790\u793E\u533A\u7D22\u5F15\u5931\u8D25",RegisterFail:"\u7533\u8BF7\u6536\u5F55\u5931\u8D25",SaveReadmeFail:"\u4FDD\u5B58 README \u5931\u8D25",DeleteFail:"\u5220\u9664\u5931\u8D25",DeleteFileProblem:"\u64CD\u4F5C\u6587\u4EF6\u65F6\u9047\u5230\u95EE\u9898",CreateReadmeFail:"\u521B\u5EFA README \u5931\u8D25",FetchCommitsFail:"\u83B7\u53D6\u63D0\u4EA4\u8BB0\u5F55\u5931\u8D25",PreviewFail:"\u9884\u89C8\u8BF7\u6C42\u5931\u8D25",RepoNotExist:"\u4ED3\u5E93 {{address}} \u4E0D\u5B58\u5728",AddFail:"\u6DFB\u52A0\u5931\u8D25"},Hints:{InputRepoPlaceholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u5730\u5740",RepoFormatTip:"\u8BF7\u8F93\u5165\u683C\u5F0F\u4E3A owner/repo \u7684\u4ED3\u5E93\u5730\u5740",NoSelfExplore:"\u4E0D\u652F\u6301\u5728\u201C\u63A2\u7D22\u201D\u9875\u6DFB\u52A0\u6216\u62C9\u53D6\u81EA\u5DF1\u7684\u5F53\u524D\u4E91\u7AEF\u4ED3\u5E93\u3002\u8BF7\u524D\u5F80\u201C\u7BA1\u7406\u201D\u9875\u64CD\u4F5C\u81EA\u5DF1\u7684\u7FFB\u8BD1\u5305\u3002",NoPublished:"\u6682\u65E0\u5DF2\u53D1\u5E03\u7684\u7FFB\u8BD1\u8D44\u6E90",NoPublishedDesc:"\u60A8\u7684\u7FFB\u8BD1\u4ED3\u5E93\u76EE\u524D\u662F\u7A7A\u7684\u3002\u60A8\u53EF\u4EE5\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u5F00\u59CB\u53D1\u5E03\u60A8\u7684\u7B2C\u4E00\u4E2A\u7FFB\u8BD1\u5305\uFF0C\u6216\u8005\u5728\u4E91\u7AEF\u9762\u677F\u8FDB\u884C\u5907\u4EFD\u4E0E\u6062\u590D\u3002",RepoNameRequired:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0",RepoAlreadyInCommunity:"\u4F60\u7684\u4ED3\u5E93\u5DF2\u5728\u793E\u533A\u76EE\u5F55\u4E2D",PublishBeforeRegister:"\u8BF7\u5148\u53D1\u5E03\u81F3\u5C11\u4E00\u4E2A\u7FFB\u8BD1\u540E\u518D\u6CE8\u518C",RegistrationIntercept:"\u6CE8\u518C\u62E6\u622A",RepoAlreadyRegistered:"\u60A8\u7684\u4ED3\u5E93\u5DF2\u88AB\u793E\u533A\u6536\u5F55\uFF0C\u8BF7\u52FF\u91CD\u8907\u7533\u8BF7",RegistrationPending:"\u6B63\u5728\u7533\u8BF7\u6536\u5F55\u7684\u5DE5\u5355\u5DF2\u7ECF\u5B58\u5728\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85\u5BA1\u6838",NoLocalSourcesTip:"\u672A\u68C0\u6D4B\u5230\u5DF2\u6709\u7684\u672C\u5730{{type}}\u7FFB\u8BD1\u6E90\u6587\u4EF6\u3002\u8BF7\u5148\u4F7F\u7528\u7FFB\u8BD1\u5DE5\u5177\u751F\u6210\u7FFB\u8BD1\u3002",NoSourcesForTarget:"\u8BE5{{type}}\u4E0B\u6CA1\u6709\u4EFB\u4F55\u7FFB\u8BD1\u6E90\u6587\u4EF6",RepoNotInit:'\u5C1A\u672A\u521B\u5EFA\u4E2A\u4EBA\u4ED3\u5E93\uFF0C\u8BF7\u5148\u524D\u5F80"\u53D1\u5E03"\u9875\u521D\u59CB\u5316',NoLocalSourcesBackup:"\u672A\u53D1\u73B0\u53EF\u4F9B\u5907\u4EFD\u7684\u672C\u5730\u7FFB\u8BD1\u6E90",NoCloudData:"\u4E91\u7AEF\u4ED3\u5E93\u4E2D\u6682\u65E0\u5907\u4EFD\u6570\u636E",FetchingManifest:"\u6B63\u5728\u83B7\u53D6\u4E91\u7AEF\u6E05\u5355...",TokenRequired:"\u8BF7\u5148\u5728\u8BBE\u7F6E\u4E2D\u914D\u7F6E GitHub Token\uFF08\u5171\u5EFA\u4E91\u7AEF \u2192 \u63D0\u4EA4 Token\uFF09",LoginRequired:"\u9700\u8981\u767B\u5F55\u4EE5\u8BBF\u95EE\u4E91\u7AEF\u529F\u80FD",LoginRequiredDesc:"\u8BF7\u5728\u63D2\u4EF6\u8BBE\u7F6E\u4E2D\u914D\u7F6E\u5177\u5907 public_repo \u6743\u9650\u7684 GitHub Token\u3002\u914D\u7F6E\u5B8C\u6210\u540E\uFF0C\u60A8\u5C06\u53EF\u4EE5\u63A2\u7D22\u793E\u533A\u8D44\u6E90\u3001\u53D1\u5E03\u7FFB\u8BD1\u5E76\u53C2\u4E0E\u5171\u5EFA\u3002",GoToSettings:"\u524D\u5F80\u8BBE\u7F6E",RateLimitTitle:"GitHub \u8BBF\u95EE\u53D7\u9650",RateLimitDesc:"\u7531\u4E8E GitHub \u7684\u533F\u540D\u8BBF\u95EE\u9891\u7387\u9650\u5236\uFF08\u6BCF\u5C0F\u65F6 60 \u6B21\uFF09\uFF0C\u60A8\u76EE\u524D\u7684\u8BBF\u95EE\u5DF2\u8FBE\u4E0A\u9650\u3002\u8BF7\u5728\u8BBE\u7F6E\u4E2D\u914D\u7F6E GitHub Token \u4EE5\u83B7\u5F97\u7A33\u5B9A\u4E0D\u9650\u901F\u7684\u4F53\u9A8C\u3002",RateLimitGuide:"\u914D\u7F6E Token \u5373\u53EF\u89E3\u51B3"},Notices:{UploadSuccess:"\u4E0A\u4F20\u6210\u529F",UploadCompleteDesc:"\u5DF2\u6210\u529F\u5C06\u7FFB\u8BD1\u6587\u4EF6\u540C\u6B65\u81F3\u60A8\u7684\u4ED3\u5E93\u3002",SubmitSuccess:"\u63D0\u4EA4\u6210\u529F",RegistrationSubmittedDesc:"\u5DF2\u63D0\u4EA4\u7533\u8BF7\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002",FetchSuccess:"\u83B7\u53D6\u6210\u529F",FoundTranslations:"\u5171\u627E\u5230 {{count}} \u4E2A\u8BD1\u6587\u8D44\u6E90",RepoUnsubscribed:"\u5DF2\u53D6\u6D88\u8BA2\u9605\u8BE5\u4ED3\u5E93",UpdateSuccess:"\u66F4\u65B0\u6210\u529F",DownloadSuccess:"\u4E0B\u8F7D\u6210\u529F",AllUpToDate:"\u672C\u5730\u5DF2\u662F\u6700\u65B0\u7248\u672C",UpdateComplete:"\u66F4\u65B0\u5B8C\u6210",UpdateSuccessCount:"\u6210\u529F\u66F4\u65B0\u4E86 {{count}} \u4E2A\u8BED\u8A00\u5305",RepoReadyPrefix:"\u60A8\u7684\u4ED3\u5E93\u5DF2\u5C31\u7EEA\uFF1A",FoundLocalSources:"\u53D1\u73B0 {{count}} \u4E2A\u672C\u5730\u7FFB\u8BD1\u6E90",SkipFileNotFound:"\u8DF3\u8FC7 {{title}}: \u672C\u5730\u6587\u4EF6\u4E0D\u5B58\u5728",SkipUpToDate:"\u8DF3\u8FC7 {{title}}: \u4E91\u7AEF\u5DF2\u662F\u6700\u65B0",BackupNoChanges:"\u6CA1\u6709\u53D1\u73B0\u9700\u8981\u5907\u4EFD\u7684\u65B0\u53D8\u52A8",UploadSuccessItem:"\u2705 {{title}} \u4E0A\u4F20\u6210\u529F",BackupCompleteStat:"\u5907\u4EFD\u5B8C\u6210: \u5DF2\u4E0A\u4F20 {{uploaded}} \u4E2A\uFF0C\u8DF3\u8FC7 {{skipped}} \u4E2A",BackupSuccessCount:"\u6210\u529F\u5907\u4EFD\u4E86 {{count}} \u4E2A\u7FFB\u8BD1\u5305",FoundCheckpoint:"\u53D1\u73B0\u4E0A\u6B21\u672A\u5B8C\u6210\u7684\u5907\u4EFD ({{date}})",FoundCloudSources:"\u5728\u4E91\u7AEF\u53D1\u73B0 {{count}} \u4E2A\u7FFB\u8BD1\u6E90",ItemsToUpload:"\u68C0\u6D4B\u5230\u6709 {{count}} \u4E2A\u9879\u76EE\u9700\u8981\u4E0A\u4F20\u5230\u4E91\u7AEF",SkipLocalLatest:"\u8DF3\u8FC7 {{title}}: \u672C\u5730\u5DF2\u662F\u6700\u65B0",RestoreSuccessItem:"\u2705 {{title}} \u6062\u590D\u6210\u529F",RestoreCompleteStat:"\u6062\u590D\u5B8C\u6210: \u5DF2\u540C\u6B65 {{restored}} \u4E2A\uFF0C\u8DF3\u8FC7 {{skipped}} \u4E2A",RestoreSuccessCount:"\u6210\u529F\u6062\u590D\u4E86 {{count}} \u4E2A\u7FFB\u8BD1\u5305",NoFile:"\u6587\u4EF6\u4E0D\u5B58\u5728"}}});var TB,wB=de(()=>{TB={MainTitle:"\u4F7F\u7528\u5E2E\u52A9",VideoTitle:"\u5B98\u65B9\u89C6\u9891\u6559\u7A0B",VideoDesc:"\u6F14\u793A\u63D2\u4EF6\u5168\u5957\u64CD\u4F5C\u6D41\u7A0B\uFF0C\u964D\u4F4E\u4E0A\u624B\u95E8\u69DB\uFF0C\u5FEB\u901F\u7CBE\u901A\u672C\u5730\u5316\u5DE5\u4F5C\u6D41\u3002",DocTitle:"\u5B98\u65B9\u6587\u6863\u6559\u7A0B",DocDesc:"\u5168\u65B9\u4F4D\u89E3\u6790\u5404\u9879\u529F\u80FD\u53C2\u6570\u4E0E\u8FDB\u9636\u914D\u7F6E\uFF0C\u63D0\u4F9B\u8BE6\u5C3D\u7684\u64CD\u4F5C\u4E0E\u6392\u9519\u6307\u5357\u3002",GithubTitle:"\u5F00\u6E90\u95EE\u9898\u53CD\u9988",GithubDesc:"\u8FFD\u8E2A\u9879\u76EE\u4EE3\u7801\u8FDB\u5C55\uFF0C\u63D0\u4EA4\u7F3A\u9677\u62A5\u544A\u6216\u7279\u6027\u9700\u6C42\uFF0C\u4E0E\u5F00\u53D1\u8005\u6DF1\u5EA6\u534F\u529B\u3002",PluginTitle:"\u672C\u5730\u7FFB\u8BD1\u7BA1\u7406",PluginDesc:"\u96C6\u4E2D\u7BA1\u7406\u672C\u5730\u5DF2\u88C5\u63D2\u4EF6\u7684\u7FFB\u8BD1\u7247\u6BB5\uFF0C\u4E00\u952E\u5E94\u7528\u5E76\u65E0\u7F1D\u638C\u63A7\u754C\u9762\u8BED\u8A00\u3002",CloudTitle:"\u4E91\u7AEF\u7FFB\u8BD1\u4E2D\u5FC3",CloudDesc:"\u63A5\u5165\u5168\u7403\u7FFB\u8BD1\u7F51\u7EDC\uFF0C\u53D1\u6398\u5E76\u83B7\u53D6\u7531\u793E\u533A\u6301\u7EED\u7EF4\u62A4\u7684\u7CBE\u6821\u4F18\u9009\u8BD1\u6587\u3002",TaskTitle:"\u793E\u533A\u7FFB\u8BD1\u4EFB\u52A1",TaskDesc:"\u53C2\u4E0E\u5F00\u6E90\u5171\u5EFA\u751F\u6001\uFF0C\u8BA4\u9886\u5E76\u653B\u514B\u672A\u51B3\u7684\u7FFB\u8BD1\u4EFB\u52A1\uFF0C\u5171\u4EAB\u672C\u5730\u5316\u6210\u679C\u3002",QqTitle:"QQ \u5B98\u65B9\u4EA4\u6D41\u7FA4",QqDesc:"\u56FD\u5185\u6D3B\u8DC3\u521B\u4F5C\u8005\u9635\u5730\uFF0C\u5206\u4EAB\u7FFB\u8BD1\u5FC3\u5F97\u3001\u6781\u901F\u83B7\u53D6\u4E00\u624B\u66F4\u65B0\u4E0E\u6280\u672F\u7B54\u7591\u3002",DiscordTitle:"Discord \u4EA4\u6D41\u7FA4",DiscordDesc:"\u52A0\u5165\u5168\u7403\u5316\u7684\u73A9\u5BB6\u4E0E\u5F00\u53D1\u8005\u793E\u533A\uFF0C\u5206\u4EAB\u63D2\u4EF6\u7ECF\u9A8C\uFF0C\u83B7\u53D6\u5373\u65F6\u89E3\u7B54\u3002",AfdianTitle:"\u652F\u6301\u4E0E\u8D5E\u52A9",AfdianDesc:"\u901A\u8FC7\u7231\u53D1\u7535\u8D5E\u52A9\u5F00\u53D1\u8005\uFF0C\u52A9\u529B\u63D2\u4EF6\u6301\u7EED\u8FED\u4EE3\u4E0E\u751F\u6001\u7E41\u8363\u3002",CoreFeaturesLabel:"\u6838\u5FC3\u529F\u80FD",CommunityLabel:"\u793E\u533A\u52A8\u6001",SupportLabel:"\u53CD\u9988\u4E0E\u652F\u6301",VerLabel:"\u7248\u672C",BrowseAction:"\u6D4F\u89C8",JoinAction:"\u52A0\u5165",MoreExpect:"\u66F4\u591A\u786C\u6838\u80FD\u529B\u6B63\u5728\u6301\u7EED\u6784\u5EFA\u4E2D\uFF0C\u656C\u8BF7\u671F\u5F85\u2026\u2026"}});var CB,EB=de(()=>{CB={Titles:{Tab:"\u767B\u5F55/\u6CE8\u518C",Welcome:"\u6B22\u8FCE",WelcomeBack:"\u6B22\u8FCE\u56DE\u6765"},Labels:{AccountStatus:"\u8D26\u6237\u72B6\u6001",ConnectedCloud:"\u5DF2\u8FDE\u63A5\u4E91\u7AEF",RememberMe:"\u8BB0\u4F4F\u8D26\u53F7\u5BC6\u7801",Username:"\u7528\u6237\u540D",Password:"\u5BC6\u7801",Email:"\u90AE\u7BB1",Code:"\u9A8C\u8BC1\u7801",ConfirmPassword:"\u786E\u8BA4\u5BC6\u7801",DefaultUser:"\u7528\u6237",UserId:"\u7528\u6237 ID"},Actions:{Login:"\u767B\u5F55",Logout:"\u9000\u51FA\u767B\u5F55",Register:"\u6CE8\u518C",SendCode:"\u53D1\u9001\u9A8C\u8BC1\u7801",CreateAccount:"\u521B\u5EFA\u8D26\u6237"},Status:{LoggingIn:"\u767B\u5F55\u4E2D...",Registering:"\u6CE8\u518C\u4E2D..."},Hints:{LoginDesc:"\u767B\u5F55\u60A8\u7684\u8D26\u6237\u4EE5\u8BBF\u95EE\u4E91\u7AEF\u529F\u80FD",RegisterDesc:"\u6CE8\u518C\u65B0\u8D26\u6237\u4EE5\u5F00\u59CB\u4F7F\u7528"},Notices:{SendSuccess:"\u53D1\u9001\u6210\u529F",RegSuccess:"\u6CE8\u518C\u6210\u529F\uFF0C\u8BF7\u767B\u5F55",LoggedOut:"\u5DF2\u9000\u51FA\u767B\u5F55"},Errors:{SendFail:"\u53D1\u9001\u5931\u8D25",LoginFail:"\u767B\u5F55\u5931\u8D25",RegFail:"\u6CE8\u518C\u5931\u8D25",PassMismatch:"\u4E24\u6B21\u5BC6\u7801\u4E0D\u4E00\u81F4",NoEmail:"\u672A\u8BBE\u7F6E\u90AE\u7BB1",InputEmail:"\u8BF7\u8F93\u5165\u90AE\u7BB1",InputUserPass:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u548C\u5BC6\u7801",InputEmailCode:"\u8BF7\u8F93\u5165\u90AE\u7BB1\u548C\u9A8C\u8BC1\u7801"}}});var PB,AB=de(()=>{PB={Titles:{Tab:"\u7528\u6237\u534F\u8BAE",Main:"I18N \u63D2\u4EF6\u7528\u6237\u534F\u8BAE"},Hints:{Desc:"\u4F7F\u7528\u524D\u8BF7\u4ED4\u7EC6\u9605\u8BFB\u4EE5\u4E0B\u6761\u6B3E",End:"-- \u534F\u8BAE\u7ED3\u675F --",ReadThanks:"\u611F\u8C22\u60A8\u7684\u9605\u8BFB\u3002",Scroll:"\u8BF7\u5411\u4E0B\u6EDA\u52A8\u9605\u8BFB\u5B8C\u6574\u534F\u8BAE",ReadReminder:"\u8BF7\u9605\u8BFB\u5B8C\u534F\u8BAE\u4EE5\u7EE7\u7EED\u3002"},Actions:{Agree:"\u5DF2\u9605\u8BFB\u5E76\u540C\u610F",Disagree:"\u4E0D\u540C\u610F (\u9000\u51FA)"}}});var IB,NB=de(()=>{IB={Tabs:{Basis:"\u7EFC\u5408\u8BBE\u7F6E",Re:"RE \u914D\u7F6E",Ast:"AST \u914D\u7F6E",Immersive:"\u6C89\u6D78\u7FFB\u8BD1",Ai:"\u8BED\u8A00\u6A21\u578B",Share:"\u5171\u5EFA\u751F\u6001"},Basis:{UpdateHeader:"\u68C0\u67E5\u66F4\u65B0",BasisHeader:"\u57FA\u7840\u914D\u7F6E",AutoHeader:"\u81EA\u52A8\u5316\u4EFB\u52A1",ExternalHeader:"\u63A8\u8350\u63D2\u4EF6",CloudHeader:"\u4E91\u7AEF\u4E0E\u7F51\u7EDC",ResetHeader:"\u5371\u9669\u64CD\u4F5C",UpdateTitle:"\u68C0\u67E5\u66F4\u65B0",UpdateDesc:"\u542F\u52A8\u65F6\u9759\u9ED8\u68C0\u67E5\u65B0\u7248\u672C\uFF0C\u6709\u66F4\u65B0\u65F6\u5F39\u7A97\u63D0\u9192\u3002",CheckUpdatePrefix:"\u66F4\u65B0\u68C0\u67E5",CheckUpdateNotice:"\u53D1\u73B0\u65B0\u7248\u672C",SmartUpdateTitle:"\u667A\u80FD\u66F4\u65B0",SmartUpdateDesc:"\u5176\u4ED6\u63D2\u4EF6\u66F4\u65B0\u7248\u672C\u540E\uFF0C\u81EA\u52A8\u5C06\u5DF2\u6709\u8BD1\u6587\u91CD\u65B0\u5E94\u7528\uFF0C\u65E0\u9700\u624B\u52A8\u64CD\u4F5C\u3002",SmartTitle:"\u667A\u80FD\u66F4\u65B0",SmartUpdate:"\u5DF2\u81EA\u52A8\u91CD\u8F7D ",SmartPlugins:" \u4E2A\u63D2\u4EF6",LangTitle:"\u76EE\u6807\u8BED\u8A00",LangDesc:"\u4E91\u7AEF\u4E0B\u8F7D\u4E0E AI \u7FFB\u8BD1\u65F6\u9ED8\u8BA4\u4F7F\u7528\u7684\u8BED\u8A00\u3002",AutoSaveTitle:"\u81EA\u52A8\u4FDD\u5B58",AutoSaveDesc:"\u5728\u7FFB\u8BD1\u7F16\u8F91\u5668\u4E2D\u6BCF\u9694\u4E00\u6BB5\u65F6\u95F4\u81EA\u52A8\u4FDD\u5B58\u4FEE\u6539\uFF0C\u9632\u6B62\u610F\u5916\u4E22\u5931\u3002",AuthorTitle:"\u4F5C\u8005\u7F72\u540D",AuthorDesc:"\u63D0\u53D6\u8BD1\u6587\u65F6\u81EA\u52A8\u9644\u5E26\u7684\u7F72\u540D\uFF0C\u7559\u7A7A\u5219\u4E0D\u7F72\u540D\u3002",AuthorPlaceholder:"\u4F8B: Eondr",AutoApplyTitle:"\u81EA\u52A8\u5E94\u7528",AutoApplyDesc:"\u5339\u914D\u5230\u53EF\u7528\u7FFB\u8BD1\u540E\u81EA\u52A8\u6CE8\u5165\u5E76\u91CD\u8F7D\u76EE\u6807\u63D2\u4EF6\uFF0C\u5168\u7A0B\u65E0\u9700\u624B\u52A8\u5E72\u9884\u3002",AutoSilentTitle:"\u9759\u9ED8\u8FD0\u884C",AutoSilentDesc:"\u540E\u53F0\u6267\u884C\u65F6\u4E0D\u5F39\u51FA\u8FDB\u5EA6\u901A\u77E5\uFF0C\u53EA\u5728\u5B9E\u9645\u5B8C\u6210\u66F4\u65B0\u65F6\u7B80\u8981\u63D0\u9192\u3002",AutoTrustedReposTitle:"\u53D7\u4FE1\u4EFB\u6E90",AutoTrustedReposDesc:"\u4EC5\u4ECE\u8FD9\u4E9B\u4ED3\u5E93\u81EA\u52A8\u62C9\u53D6\u7FFB\u8BD1\u6587\u4EF6\uFF0C\u6BCF\u884C\u4E00\u4E2A\u5730\u5740\u3002",AutoTrustedReposPlaceholder:"\u4F8B: owner/repo",ManagerTitle:"Better Plugins Manager (BPM)",ManagerDesc:"\u5EF6\u8FDF\u52A0\u8F7D \xB7 \u5206\u7EC4\u7BA1\u7406 \xB7 GitHub \u76F4\u88C5 \xB7 \u51B2\u7A81\u68C0\u6D4B \u2014\u2014 \u4E3A\u91CD\u5EA6 Obsidian \u7528\u6237\u8BBE\u8BA1\u7684\u5168\u80FD\u63D2\u4EF6\u7BA1\u7406\u5668\u3002",ManagerBtn:"\u67E5\u770B BPM \u8BE6\u60C5",DefaultCloudRepoTitle:"\u4E91\u7AEF\u4ED3\u5E93",DefaultCloudRepoDesc:"\u7BA1\u7406\u5668\u7684\u300C\u4E91\u7AEF\u7248\u672C\u300D\u4E0B\u62C9\u6846\u5C06\u4F18\u5148\u4ECE\u6B64\u4ED3\u5E93\u83B7\u53D6\u53EF\u7528\u7FFB\u8BD1\u3002",DefaultCloudRepoPlaceholder:"\u4F8B: owner/repo",GithubProxyTitle:"\u52A0\u901F\u8282\u70B9",GithubProxyDesc:"\u4E3A\u4E0B\u8F7D\u8D44\u6E90\u9009\u4E00\u4E2A\u4EE3\u7406\uFF0C\u4E0D\u7A33\u5B9A\u5C31\u6362\u3002",ProxyDirect:"\u76F4\u8FDE",ProxyNode1:"ghp.ci",ProxyNode2:"ghproxy.net",ProxyNode5:"gh-proxy.com",ProxyNode7:"jsDelivr CDN",ProxyNode8:"jsDelivr Fastly",ProxyNode9:"jsDelivr GCore",ProxyNode10:"Statically",ProxyTestBtn:"\u6D4B\u901F",ProxyTestTooltip:"\u6D4B\u8BD5\u5F53\u524D\u8282\u70B9\u5EF6\u8FDF",ProxyTesting:"\u6D4B\u8BD5\u4E2D\u2026",ProxyTestSuccess:"\u53EF\u7528 \xB7 {{ms}}ms",ProxyTestFail:"\u4E0D\u53EF\u7528",ProxyTestErrorNotice:"\u8282\u70B9\u8D85\u65F6\u6216\u4E0D\u53EF\u8FBE",ProxySecurityNotice:"\u26A0\uFE0F \u4EE3\u7406\u4EC5\u52A0\u901F\u516C\u5171\u8D44\u6E90\u3002Token \u4E0E\u79C1\u6709\u540C\u6B65\u59CB\u7EC8\u76F4\u8FDE\uFF0C\u4E0D\u7ECF\u7B2C\u4E09\u65B9\u3002",GithubApiTimeoutHint:"\u8BF7\u6C42\u8D85\u65F6\uFF0CToken \u64CD\u4F5C\u65E0\u6CD5\u8D70\u4EE3\u7406\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u6216\u5F00\u542F\u7CFB\u7EDF\u4EE3\u7406\u3002",GithubApiTokenMissing:"\u8BF7\u5148\u914D\u7F6E GitHub Token",GithubApiFileNotFound:"\u6587\u4EF6\u4E0D\u5B58\u5728",GithubApiCheckFailed:"\u8FDE\u63A5\u5931\u8D25",GithubApiCheckSuccess:"\u8FDE\u63A5\u6210\u529F",ResetTitle:"\u91CD\u7F6E\u63D2\u4EF6\u65B9\u6848",ResetDesc:"\u5C06\u6240\u6709\u914D\u7F6E\u6062\u590D\u81F3\u51FA\u5382\u72B6\u6001\u3002\u6B64\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002",ResetBtn:"\u91CD\u7F6E\u914D\u7F6E",ResetConfirm:"\u786E\u5B9A\u8981\u91CD\u7F6E\u6240\u6709\u63D2\u4EF6\u914D\u7F6E\u5417\uFF1F\u8FD9\u5C06\u6E05\u9664\u6240\u6709\u5DF2\u4FDD\u5B58\u7684\u8BBE\u7F6E\uFF08\u5305\u62EC API Key\u3001\u6B63\u5219\u8868\u8FBE\u5F0F\u7B49\uFF09\u3002",ResetSuccess:"\u914D\u7F6E\u5DF2\u91CD\u7F6E"},Re:{ParamsHeader:"\u6B63\u5219\u53C2\u6570",FlagTitle:"\u5339\u914D\u6807\u5FD7",FlagDesc:"\u6B63\u5219\u4FEE\u9970\u7B26\uFF0C\u5982 g(\u5168\u5C40) s(\u5355\u884C)\u3002\u5F71\u54CD\u6240\u6709\u63D0\u53D6\u89C4\u5219\u7684\u5339\u914D\u884C\u4E3A\u3002",FlagPlaceholder:"\u4F8B: gs",LenTitle:"\u957F\u5EA6\u4E0A\u9650",LenDesc:"\u8D85\u8FC7\u6B64\u957F\u5EA6\u7684\u5339\u914D\u7ED3\u679C\u5C06\u88AB\u4E22\u5F03\uFF0C\u907F\u514D\u8BEF\u6355\u5927\u6BB5\u4EE3\u7801\u3002",DataHeader:"\u63D0\u53D6\u89C4\u5219",DataEditTitle:"\u63D0\u53D6\u89C4\u5219",DataEditDesc:"\u7528\u4E8E\u4ECE\u63D2\u4EF6\u6E90\u7801\u4E2D\u6355\u83B7\u53EF\u7FFB\u8BD1\u6587\u672C\u7684\u6B63\u5219\u5217\u8868\u3002",DataPlaceholder:"\u4E00\u884C\u4E00\u6761\u6B63\u5219",RegexHeader:"\u5185\u5BB9\u8FC7\u6EE4",RejectReTitle:"\u6392\u9664\u89C4\u5219",RejectReDesc:"\u5339\u914D\u5230\u7684\u6587\u672C\u5C06\u88AB\u8DF3\u8FC7\uFF0C\u4E0D\u8FDB\u5165\u7FFB\u8BD1\u6D41\u7A0B\u3002",RejectPlaceholder:"\u4E00\u884C\u4E00\u6761\u6392\u9664\u6B63\u5219",ValidReTitle:"\u4FDD\u7559\u89C4\u5219",ValidReDesc:"\u53EA\u6709\u5339\u914D\u5230\u7684\u6587\u672C\u624D\u4F1A\u88AB\u63D0\u53D6\uFF0C\u5176\u4F59\u5168\u90E8\u5FFD\u7565\u3002",ValidPlaceholder:"\u4E00\u884C\u4E00\u6761\u4FDD\u7559\u6B63\u5219",PromptHeader:"\u7FFB\u8BD1\u63D0\u793A",PromptTitle:"\u7FFB\u8BD1 Prompt",PromptDesc:"\u6B63\u5219\u6A21\u5F0F\u4E0B\u53D1\u9001\u7ED9 LLM \u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",PromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F"},Ast:{ConfigHeader:"\u63D0\u53D6\u89C4\u5219",AssignTitle:"\u8D4B\u503C\u5C5E\u6027",AssignDesc:"\u5B57\u7B26\u4E32\u8D4B\u503C\u7ED9\u8FD9\u4E9B\u5C5E\u6027\u65F6\u4F1A\u88AB\u6355\u83B7\uFF0C\u5982 name\u3001description\u3002",AssignPlaceholder:"\u4E00\u884C\u4E00\u4E2A\u5C5E\u6027\u540D",FuncTitle:"\u51FD\u6570\u53C2\u6570",FuncDesc:"\u4F20\u5165\u8FD9\u4E9B\u51FD\u6570\u7684\u5B57\u7B26\u4E32\u53C2\u6570\u4F1A\u88AB\u6355\u83B7\uFF0C\u5982 setText\u3001setName\u3002",FuncPlaceholder:"\u4E00\u884C\u4E00\u4E2A\u51FD\u6570\u540D",KeyTitle:"\u5BF9\u8C61\u952E\u540D",KeyDesc:"\u5BF9\u8C61\u4E2D\u8FD9\u4E9B\u952E\u5BF9\u5E94\u7684\u503C\u4F1A\u88AB\u6355\u83B7\uFF0C\u5982 text\u3001label\u3002",KeyPlaceholder:"\u4E00\u884C\u4E00\u4E2A\u952E\u540D",RegexHeader:"\u5185\u5BB9\u8FC7\u6EE4",RejectReTitle:"\u6392\u9664\u89C4\u5219",RejectReDesc:"\u5339\u914D\u5230\u7684\u6587\u672C\u5C06\u88AB\u8DF3\u8FC7\uFF0C\u4E0D\u8FDB\u5165\u7FFB\u8BD1\u6D41\u7A0B\u3002",RejectPlaceholder:"\u4E00\u884C\u4E00\u6761\u6392\u9664\u6B63\u5219",ValidReTitle:"\u4FDD\u7559\u89C4\u5219",ValidReDesc:"\u53EA\u6709\u5339\u914D\u5230\u7684\u6587\u672C\u624D\u4F1A\u88AB\u63D0\u53D6\uFF0C\u5176\u4F59\u5168\u90E8\u5FFD\u7565\u3002",ValidPlaceholder:"\u4E00\u884C\u4E00\u6761\u4FDD\u7559\u6B63\u5219",PromptHeader:"\u7FFB\u8BD1\u63D0\u793A",PromptTitle:"\u7FFB\u8BD1 Prompt",PromptDesc:"AST \u6A21\u5F0F\u4E0B\u53D1\u9001\u7ED9 LLM \u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",PromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F"},Immersive:{Title:"\u542F\u7528\u6C89\u6D78\u5F0F\u7FFB\u8BD1",Desc:"\u5F00\u542F\u540E\uFF0C\u63D2\u4EF6\u5C06\u5BF9\u754C\u9762\u5143\u7D20\u8FDB\u884C\u5B9E\u65F6\u7FFB\u8BD1\u3002",CoreControl:"\u6C89\u6D78\u5F0F\u6E32\u67D3\u63A7\u5236",CoreControlDesc:"\u914D\u7F6E\u6C89\u6D78\u5F0F\u7FFB\u8BD1\u7684\u5168\u5C40\u53C2\u6570\u3002",MatchTitle:"\u5305\u542B\u9009\u62E9\u5668",MatchDesc:"\u7CBE\u786E\u6307\u5B9A\u9700\u8981\u7FFB\u8BD1\u7684\u9875\u9762\u5143\u7D20 (CSS Selectors)\u3002",MatchNotice:"\u66F4\u6539\u540E\u53EF\u80FD\u9700\u8981\u91CD\u542F\u6216\u91CD\u65B0\u52A0\u8F7D\u9875\u9762\u751F\u6548\u3002",ExcludeTitle:"\u6392\u9664\u9009\u62E9\u5668",ExcludeDesc:"\u7CBE\u786E\u6307\u5B9A\u9700\u8981\u6392\u9664\u7684\u9875\u9762\u5143\u7D20\u3002",RestartNotice:"\u914D\u7F6E\u5DF2\u66F4\u65B0\uFF0C\u90E8\u5206\u4FEE\u6539\u53EF\u80FD\u9700\u8981\u91CD\u542F\u63D2\u4EF6\u540E\u751F\u6548\u3002",DescLabel:"\u63CF\u8FF0\uFF1A",MainFrameTitle:"\u6839\u8282\u70B9\u8303\u56F4",MainFrameDesc:"\u6307\u5B9A\u7FFB\u8BD1\u7684\u6839\u8282\u70B9\u8303\u56F4 (\u5982\u6307\u5B9A\u6574\u4E2A\u6587\u7AE0\u7684\u5BB9\u5668)",StayOriginalTitle:"\u4FDD\u6301\u539F\u6837\u9009\u62E9\u5668",StayOriginalDesc:"\u5339\u914D\u7684\u5143\u7D20\u5C06\u4FDD\u6301\u539F\u6837\uFF0C\u5E38\u7528\u4E8E\u8BBA\u575B\u7F51\u7AD9\u7684\u4EE3\u7801\u5757\u6216\u6807\u7B7E\u3002",ExtraBlockTitle:"\u5757\u7EA7\u5143\u7D20\u9009\u62E9\u5668",ExtraBlockDesc:"\u5339\u914D\u7684\u5143\u7D20\u5C06\u88AB\u5F53\u4F5C block \u5757\u7EA7\u5143\u7D20\u5904\u7406\uFF0C\u72EC\u5360\u4E00\u884C\u3002",ExtraInlineTitle:"\u884C\u5185\u5143\u7D20\u9009\u62E9\u5668",ExtraInlineDesc:"\u5339\u914D\u7684\u5143\u7D20\u5C06\u88AB\u5F53\u4F5C inline \u884C\u5185\u5143\u7D20\u5904\u7406\u3002",TranslationClassesTitle:"\u8BD1\u6587\u7C7B\u540D (Class)",TranslationClassesDesc:"\u4E3A\u751F\u6210\u7684\u8BD1\u6587\u5143\u7D20\u6DFB\u52A0\u989D\u5916\u7684 CSS \u7C7B\u540D\u3002",InjectedCssTitle:"\u6CE8\u5165\u81EA\u5B9A\u4E49 CSS",InjectedCssDesc:"\u5728\u9875\u9762\u4E2D\u5D4C\u5165\u989D\u5916\u7684 CSS \u6837\u5F0F\u4EE3\u7801\u3002"},Ai:{ConfigHeader:"\u670D\u52A1\u914D\u7F6E",Provider:"\u670D\u52A1\u5546",ProviderDesc:"\u9009\u62E9 LLM \u63D0\u4F9B\u5546\u3002",HomepageBtn:"\u83B7\u53D6 API Key (\u5B98\u7F51)",ProfileSelectTitle:"\u914D\u7F6E\u65B9\u6848",ProfileSelectDesc:"\u5207\u6362\u4E0D\u540C API \u65B9\u6848\uFF0C\u5982 OpenAI\u3001DeepSeek\u3001\u7845\u57FA\u6D41\u52A8\u3002",ProfileAddBtn:"\u65B0\u589E",ProfileDelBtn:"\u5220\u9664",ProfileRenameBtn:"\u91CD\u547D\u540D",ProfileNamePlaceholder:"\u65B9\u6848\u540D\u79F0",ProfileAddNotice:"\u65B9\u6848\u5DF2\u521B\u5EFA",ProfileDelConfirm:"\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D\uFF0C\u786E\u8BA4\uFF1F",ProfileRenameNotice:"\u8F93\u5165\u65B0\u540D\u79F0",ProfileNameTitle:"\u65B9\u6848\u540D\u79F0",ProfileNameDesc:"\u5F53\u524D\u65B9\u6848\u7684\u663E\u793A\u540D\u79F0\u3002",OpenaiUrlTitle:"\u63A5\u53E3\u5730\u5740",OpenaiUrlDesc:"API \u57FA\u7840\u8DEF\u5F84\uFF0C\u5982 https://api.openai.com",OpenaiUrlPlaceholder:"https://api.openai.com",OpenaiKeyTitle:"API \u5BC6\u94A5",OpenaiKeyDescTip:"\u5BC6\u94A5\u52A0\u5BC6\u5B58\u50A8\u5728\u672C\u5730\uFF0C\u4E0D\u4F1A\u4E0A\u4F20\u3002",OpenaiKeyPlaceholder:"sk-...",ResponseFormatTitle:"\u54CD\u5E94\u683C\u5F0F",ResponseFormatDesc:"LLM \u8FD4\u56DE\u6570\u636E\u7684\u89E3\u6790\u65B9\u5F0F\u3002",ResponseFormatText:"Text (\u901A\u7528)",ResponseFormatJsonObject:"JSON Object",ResponseFormatJsonSchema:"JSON Schema",ModelTitle:"\u6A21\u578B",ModelDesc:"\u7528\u4E8E\u7FFB\u8BD1\u7684\u6A21\u578B\u540D\u79F0\u3002",ModelSelectPlaceholder:"\u9009\u62E9\u5185\u7F6E\u6A21\u578B",ModelInputPlaceholder:"\u6216\u624B\u52A8\u8F93\u5165",TestHeader:"\u8FDE\u901A\u6D4B\u8BD5",TestTitle:"\u6D4B\u8BD5\u8FDE\u63A5",TestDesc:"\u9A8C\u8BC1\u5F53\u524D\u914D\u7F6E\u80FD\u5426\u6B63\u5E38\u8FDE\u63A5 AI \u670D\u52A1\u3002",TestBtn:"\u6D4B\u8BD5",TestLoading:"\u6D4B\u8BD5\u4E2D\u2026",TestStageNetwork:"\u68C0\u67E5\u7F51\u7EDC\u2026",TestStageAuth:"\u9A8C\u8BC1\u5BC6\u94A5\u2026",TestStageModel:"\u9A8C\u8BC1\u6A21\u578B\u2026",TestSuccess:"\u8FDE\u63A5\u6210\u529F\uFF0C\u914D\u7F6E\u6B63\u5E38\u3002",TestSuccessBtn:"\u901A\u8FC7",TestNoticeMissing:"\u8BF7\u586B\u5199\u63A5\u53E3\u5730\u5740\u548C\u5BC6\u94A5",TestFail:"\u8FDE\u63A5\u5931\u8D25",TestFail401:"\u5BC6\u94A5\u65E0\u6548 (401)\uFF1A\u8BF7\u68C0\u67E5 API Key\u3002",TestFail404:"\u5730\u5740\u9519\u8BEF (404)\uFF1A\u8BF7\u68C0\u67E5\u63A5\u53E3\u8DEF\u5F84\u3002",TestFail403:"\u65E0\u6743\u9650 (403)\uFF1A\u8BF7\u68C0\u67E5\u8D26\u53F7\u6743\u9650\u3002",TestFail429:"\u9891\u7387\u9650\u5236 (429)\uFF1A\u989D\u5EA6\u4E0D\u8DB3\u6216\u8BF7\u6C42\u8FC7\u5FEB\u3002",TestFail500:"\u670D\u52A1\u7AEF\u5F02\u5E38 (500)\uFF1A\u63D0\u4F9B\u5546\u670D\u52A1\u5668\u6545\u969C\u3002",TestFailTimeout:"\u8BF7\u6C42\u8D85\u65F6\uFF1A\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u8BBE\u7F6E\u3002",TestFailNetwork:"\u7F51\u7EDC\u4E0D\u901A\uFF1A\u65E0\u6CD5\u8BBF\u95EE\u76EE\u6807\u670D\u52A1\u5668\u3002",TestFailModel:"\u6A21\u578B\u4E0D\u5B58\u5728\u6216\u65E0\u6743\u8BBF\u95EE\u3002",TestFailUnknown:"\u672A\u77E5\u9519\u8BEF",DiagModalTitle:"\u6DF1\u5EA6\u8BCA\u65AD\u62A5\u544A",DiagStatusHealthy:"\u5065\u5EB7",DiagStatusWarning:"\u8B66\u544A",DiagStatusFailed:"\u6545\u969C",DiagStatusPass:"\u901A\u8FC7",DiagStatusFail:"\u5931\u8D25",DiagStatusWarn:"\u8B66\u544A",DiagStatusNA:"\u2014",DiagItemEndpoint:"\u63A5\u53E3\u7AEF\u70B9",DiagItemAuth:"\u8EAB\u4EFD\u9A8C\u8BC1",DiagItemModel:"\u6A21\u578B\u53EF\u7528\u6027",DiagItemJsonMode:"JSON \u6A21\u5F0F",DiagItemJsonSchema:"\u7ED3\u6784\u5316\u8F93\u51FA",DiagItemConcurrency:"\u5E76\u53D1\u6297\u538B",DiagLatency:"\u5EF6\u8FDF",DiagStep:"\u8BCA\u65AD\u6B65\u9AA4",DiagResult:"\u7ED3\u679C",DiagRecommendation:"\u5EFA\u8BAE",DiagTipUrlV1:"\u8FDE\u63A5\u5F02\u5E38\uFF0C\u5DF2\u5C1D\u8BD5\u81EA\u52A8\u4FEE\u6B63 URL\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u6216\u4EE3\u7406\u3002",DiagTipModelFallback:"\u5F53\u524D\u6A21\u578B\u4E0D\u652F\u6301\u7ED3\u6784\u5316\u8F93\u51FA\u3002",DiagTipQuota:"\u914D\u989D\u53EF\u80FD\u5DF2\u8017\u5C3D\uFF0C\u8BF7\u68C0\u67E5\u670D\u52A1\u5546\u8D26\u5355\u3002",DiagItemSystemRole:"\u7CFB\u7EDF\u89D2\u8272",DiagItemTranslation:"\u7FFB\u8BD1\u6A21\u62DF",DiagStageSystemRole:"\u9A8C\u8BC1\u7CFB\u7EDF\u89D2\u8272\u2026",DiagStageTranslation:"\u6A21\u62DF\u7FFB\u8BD1\u2026",DiagStageConcurrency:"\u5E76\u53D1\u6781\u9650\u6297\u538B\u2026",DiagTipSystemRole:"\u5F53\u524D\u6A21\u578B\u4E0D\u652F\u6301 system \u89D2\u8272\u3002",DiagTipTranslationFail:"\u7FFB\u8BD1\u6A21\u62DF\u5931\u8D25\uFF0C\u8FD4\u56DE\u683C\u5F0F\u5F02\u5E38\u3002",DiagTipLatencyWarn:"\u54CD\u5E94\u5EF6\u8FDF\u63A5\u8FD1\u8D85\u65F6\u9608\u503C\uFF0C\u6279\u91CF\u7FFB\u8BD1\u65F6\u53EF\u80FD\u8D85\u65F6\u3002",DiagTipConcurrency:"\u906D\u9047\u9891\u7387\u9650\u5236 (429)\u3002\u7531\u4E8E\u5E76\u53D1\u7387\u8FC7\u9AD8\uFF0C\u5EFA\u8BAE\u5728\u57FA\u7840\u914D\u7F6E\u4E2D\u5C06\u5E76\u53D1\u6570\u964D\u81F3 1 \u6216 2\u3002",PromptHeader:"\u7FFB\u8BD1\u63D0\u793A",RegexPromptTitle:"\u6B63\u5219 Prompt",RegexPromptDesc:"\u6B63\u5219\u63D0\u53D6\u6A21\u5F0F\u4E0B\u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",RegexPromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F",AstPromptTitle:"AST Prompt",AstPromptDesc:"AST \u63D0\u53D6\u6A21\u5F0F\u4E0B\u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",AstPromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F",ThemePromptTitle:"\u4E3B\u9898 Prompt",ThemePromptDesc:"\u4E3B\u9898\u7FFB\u8BD1\u6A21\u5F0F\u4E0B\u7684\u7FFB\u8BD1\u6307\u4EE4\u6A21\u677F\u3002",ThemePromptPlaceholder:"\u8F93\u5165 Prompt \u6A21\u677F",PriceHeader:"\u8D39\u7528\u4F30\u7B97",CustomPriceTitle:"\u81EA\u5B9A\u4E49\u5355\u4EF7",CustomPriceDesc:"\u5173\u95ED\u65F6\u6309\u5185\u7F6E\u6A21\u578B\u4EF7\u683C\u4F30\u7B97\uFF087.3 \u6C47\u7387\u6298\u4EBA\u6C11\u5E01\uFF09\u3002",PriceInputTitle:"\u8F93\u5165\u5355\u4EF7 (\xA5/1M tokens)",PriceInputDesc:"\u6BCF\u767E\u4E07\u8F93\u5165 Token \u7684\u4EBA\u6C11\u5E01\u4EF7\u683C\uFF0C\u5982 gpt-4o-mini \u2248 1.1\u3002",PriceOutputTitle:"\u8F93\u51FA\u5355\u4EF7 (\xA5/1M tokens)",PriceOutputDesc:"\u6BCF\u767E\u4E07\u8F93\u51FA Token \u7684\u4EBA\u6C11\u5E01\u4EF7\u683C\uFF0C\u652F\u6301 4 \u4F4D\u5C0F\u6570\u3002",GeminiKeyTitle:"Gemini API \u5BC6\u94A5",GeminiKeyDesc:"Google AI Studio \u7684 API Key\uFF0C\u5BC6\u94A5\u52A0\u5BC6\u5B58\u50A8\u5728\u672C\u5730\u3002",GeminiKeyMissing:"\u8BF7\u5148\u914D\u7F6E Gemini API Key",OllamaUrlTitle:"Ollama \u7AEF\u70B9\u5730\u5740",OllamaUrlDesc:"\u672C\u5730 Ollama \u670D\u52A1\u7684 HTTP \u5730\u5740\uFF0C\u9ED8\u8BA4\u4E3A http://localhost:11434\u3002",OllamaModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u5DF2\u5B89\u88C5\u7684 Ollama \u6A21\u578B\u540D\u79F0\u3002",OllamaModelPlaceholder:"\u4F8B: qwen2.5 \u6216 llama3",OllamaFetchModelsBtn:"\u5237\u65B0\u6A21\u578B\u5217\u8868",OllamaNoModels:"\u672A\u68C0\u6D4B\u5230\u5DF2\u5B89\u88C5\u6A21\u578B\uFF0C\u8BF7\u5148\u901A\u8FC7 Ollama \u4E0B\u8F7D\u6A21\u578B\u3002",OllamaModelsLoaded:"\u5DF2\u52A0\u8F7D {{count}} \u4E2A\u6A21\u578B",OllamaFetchFailed:"\u65E0\u6CD5\u8FDE\u63A5 Ollama \u670D\u52A1\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u5DF2\u542F\u52A8\u3002",OllamaConnectFail:"\u65E0\u6CD5\u8FDE\u63A5 Ollama",OllamaModelNotFound:"\u6A21\u578B {{model}} \u672A\u627E\u5230\uFF0C\u8BF7\u5148\u6267\u884C ollama pull {{model}}",DeepseekKeyTitle:"DeepSeek API \u5BC6\u94A5",DeepseekModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 DeepSeek \u6A21\u578B\u540D\u79F0\u3002",ZhipuKeyTitle:"\u667A\u8C31 AI \u5BC6\u94A5 (API Key)",ZhipuModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u667A\u8C31 GLM \u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",MoonshotKeyTitle:"\u6708\u4E4B\u6697\u9762 (Kimi) \u5BC6\u94A5",MoonshotModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 Moonshot \u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",AliyunKeyTitle:"\u901A\u4E49\u5343\u95EE (DashScope) \u5BC6\u94A5",AliyunModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 Qwen \u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",BaiduKeyTitle:"\u767E\u5EA6\u5343\u5E06 (Qianfan) \u5BC6\u94A5",BaiduModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u767E\u5EA6\u6587\u5FC3\u4E00\u8A00 (ERNIE) \u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",BytedanceKeyTitle:"\u5B57\u8282\u8DF3\u52A8 (\u8C46\u5305/Ark) \u5BC6\u94A5",BytedanceModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u8C46\u5305\u7CFB\u5217\u6A21\u578B\u540D\u79F0\u3002",GroqKeyTitle:"Groq API \u5BC6\u94A5",GroqModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 Groq \u652F\u6301\u7684\u6A21\u578B (\u5982 Llama 3)\u3002",SiliconflowKeyTitle:"SiliconFlow (\u7845\u57FA\u6D41\u52A8) \u5BC6\u94A5",SiliconflowModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 SiliconFlow \u652F\u6301\u7684\u6A21\u578B (\u5982 DeepSeek-V3)\u3002",OpenrouterKeyTitle:"OpenRouter API \u5BC6\u94A5",OpenrouterModelDesc:"\u8F93\u5165 OpenRouter \u6A21\u578B\u6807\u8BC6\u7B26 (\u5982 anthropic/claude-3.5-sonnet)\u3002",DeepinfraKeyTitle:"DeepInfra API \u5BC6\u94A5",DeepinfraModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 DeepInfra \u652F\u6301\u7684\u6A21\u578B (\u5982 Llama-3.3)\u3002",MistralKeyTitle:"Mistral AI API \u5BC6\u94A5",MistralModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 Mistral \u5B98\u65B9\u6A21\u578B (\u5982 mistral-large-latest)\u3002",MinimaxKeyTitle:"MiniMax (\u6D77\u87BA AI) \u5BC6\u94A5",MinimaxModelDesc:"\u9009\u62E9\u6216\u8F93\u5165 MiniMax \u6A21\u578B (\u5982 abab6.5-chat)\u3002",StepfunKeyTitle:"\u9636\u8DC3\u661F\u8FB0 (StepFun) \u5BC6\u94A5",StepfunModelDesc:"\u9009\u62E9\u6216\u8F93\u5165\u9636\u8DC3\u661F\u8FB0\u6A21\u578B (\u5982 step-1-8k)\u3002"},Share:{AuthTitle:"\u8FDC\u7A0B\u4ED3\u5E93",ModeTitle:"\u8BBF\u95EE\u4EE4\u724C (Token)",ModeDesc:"\u914D\u7F6E\u7528\u4E8E\u540C\u6B65\u4E0E\u63D0\u4EA4\u7FFB\u8BD1\u7684\u4E2A\u4EBA\u8BBF\u95EE\u4EE4\u724C (PAT)\u3002",LoginSuccess:"\u5DF2\u8FDE\u63A5",TokenPlaceholder:"\u8BF7\u8F93\u5165 Token",Verifying:"\u6B63\u5728\u9A8C\u8BC1...",VerifyInsufficient:"\u6743\u9650\u4E0D\u8DB3 (\u9700 repo \u6743\u9650)",VerifyError:"\u9A8C\u8BC1\u5931\u8D25",TutorialTitle:"\u83B7\u53D6\u4EE4\u724C",TutorialTip:"\u63A8\u8350\u751F\u6210\u4EC5\u5305\u542B\u5FC5\u9700\u6743\u9650\u7684 Fine-grained Token (\u9700\u6388\u6743\u5BF9\u5E94\u6216\u5168\u90E8\u4ED3\u5E93\u7684 Contents \u8BFB\u5199\u6743\u9650)\u3002",SyncTitle:"\u540C\u6B65\u914D\u7F6E",RepoTitle:"\u76EE\u6807\u4ED3\u5E93",RepoDesc:"\u7528\u4E8E\u5B58\u50A8\u548C\u5206\u4EAB\u7FFB\u8BD1\u7684\u8FDC\u7A0B\u4ED3\u5E93\u540D\u3002",AccountTitle:"\u8D26\u6237\u7BA1\u7406",LogoutTitle:"\u9000\u51FA\u767B\u5F55",LogoutDesc:"\u6E05\u9664\u672C\u5730\u5B58\u50A8\u7684\u8EAB\u4EFD\u9A8C\u8BC1\u4FE1\u606F\u3002",LogoutBtn:"\u9000\u51FA\u767B\u5F55",LogoutSuccess:"\u5DF2\u9000\u51FA\u767B\u5F55",ProfileSelectTitle:"\u8D26\u53F7\u65B9\u6848 (Account Profile)",ProfileSelectDesc:"\u7BA1\u7406\u5E76\u5FEB\u901F\u5207\u6362\u4E0D\u540C\u7684 GitHub \u8D26\u53F7\u53CA\u5BF9\u5E94\u7684\u7FFB\u8BD1\u4ED3\u5E93\u65B9\u6848\u3002",ProfileAddBtn:"\u65B0\u589E\u8D26\u53F7",ProfileDelBtn:"\u5220\u9664\u8D26\u53F7",ProfileDelConfirm:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u8D26\u53F7\u65B9\u6848\u5417\uFF1F\u64CD\u4F5C\u65E0\u6CD5\u6062\u590D\u3002",ProfileNameTitle:"\u65B9\u6848\u6807\u8BC6\u540D",ProfileNameDesc:"\u4E3A\u5F53\u524D\u8D26\u53F7\u65B9\u6848\u81EA\u5B9A\u4E49\u4E00\u4E2A\u663E\u793A\u540D\u79F0\u4EE5\u4FBF\u533A\u5206\uFF08\u5982\uFF1A\u5DE5\u4F5C\u5F20\u53F7\u3001\u4E3B\u8D26\u53F7\u7B49\uFF09\u3002",ProfileNamePlaceholder:"\u8BF7\u8F93\u5165\u540D\u79F0...",ProfileAddNotice:"\u8D26\u53F7\u65B9\u6848\u5DF2\u521B\u5EFA"}}});var LB,RB=de(()=>{hB();yB();bB();SB();wB();EB();AB();NB();LB={Common:mB,Manager:gB,Editor:xB,Cloud:vB,Wizard:TB,Account:CB,Agreement:PB,Settings:IB}});var kB,Lie,b,Rr=de(()=>{NI();er();kB=require("obsidian");RB();Lie=()=>(kB.moment.locale()||"en").toLowerCase().startsWith("zh")?"zhCN":"en";Rs.use(iw).init({lng:Lie(),fallbackLng:"zhCN",debug:!1,interpolation:{escapeValue:!1},resources:{zhCN:{translation:LB}}});b=(e,t)=>Rs.t(e,t)});var Hd,ZI,bc,uw=de(()=>{Hd={assignments:["overwriteName","innerHTML","outerHTML","title","alt","placeholder","textContent","innerText","ariaLabel","nodeValue","buttonText","confirmText","cancelText","labelText"],functions:["Notice","setTitle","setContent","setName","setDesc","setButtonText","setPlaceholder","setTooltip","addOption","addOptions","addHeading","addText","setHint","setWarning","setText","appendText","createEl","createDiv","createSpan","addCommand","insertText","replaceRange","replaceSelection","log","error","warn","info","alert","confirm","prompt","renderMarkdown","setLabel","setConfirmText","setCancelText"],keys:["name","description","text","placeholder","label","tooltip","title","header","desc","message","buttontext","aria-label","heading","content","tab","caption","subtitle","summary","info","warning","error","success","hint","instructions","link","selection","annotation","search","speech","page","empty","detail","body","option","notice","confirmText","cancelText","ariaLabel","buttonText"]},ZI={REJECT_PATTERNS:[/^\s*$/,/^\d+$/,/^[\w-]+\.[\w-]+\.\w+$/,/^https?:\/\//i,/^data:image\//i,/^#([0-9a-f]{3}|[0-9a-f]{6})$/i,/^[a-z0-9]+-[a-z0-9-]+$/,/^[a-z]+[A-Z][a-zA-Z0-9]*$/,/^[A-Z_][A-Z0-9_]{3,}$/,/^(px|em|rem|vh|vw|auto)$/i,/^rgba?\(/i,/^\./,/\.(png|jpg|gif|svg|css|js|ts|md|json)$/i,/^[\w.\/\\-]+\/[\w.\/\\-]+$/],VALID_PATTERNS:[/\s/,/[^\x00-\x7F]/,/[!?,;:。!?,;:]\s*$/]},bc={patterns:["(Notice|log|error|setText|setButtonText|setName|setDesc|setPlaceholder|setTooltip|appendText|setTitle|addHeading|renderMarkdown)\\(\\s*(['\"`])((?:[^\\\\2\\\\\\\\]|\\\\\\\\.)*?)\\2\\s*\\)","(textContent|innerText|name|description|selection|annotation|link|text|search|speech|page|settings)\\s*[:=]\\s*(['\"`])((?:[^\\\\2\\\\\\\\]|\\\\\\\\.)*?)\\2"],rejectPatterns:["^\\s*$","^\\d+$","^[\\w-]+\\.[\\w-]+\\.\\w+$","^https?:\\/\\/","^data:image\\/","^#([0-9a-f]{3}|[0-9a-f]{6})$","^[a-z0-9]+-[a-z0-9-]+$","^[a-z]+[A-Z][a-zA-Z0-9]*$","^[A-Z_][A-Z0-9_]{3,}$","^(px|em|rem|vh|vw|auto)$","^rgba?\\(","^\\.","\\.(png|jpg|gif|svg|css|js|ts|md|json)$","^[\\w.\\/\\\\-]+\\/[\\w.\\/\\\\-]+$"],validPatterns:["\\s","[^\\x00-\\x7F]","[!?,;:\u3002\uFF01\uFF1F\uFF0C\uFF1B\uFF1A]\\s*$"]}});var Pw=ne(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0});function Mie(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var wc=class{constructor(t,r,a){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=a}},Tg=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function ui(e,t){let{line:r,column:a,index:n}=e;return new wc(r,a+t,n+t)}var _B="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Die={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:_B},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:_B}},OB={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"},bw=e=>e.type==="UpdateExpression"?OB.UpdateExpression[`${e.prefix}`]:OB[e.type],_ie={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\`. - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"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 ${e==="BreakStatement"?"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. - 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 ${bw(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${bw(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${bw(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(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).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."},Oie={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."},Fie={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)}\`.`},Bie=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Uie=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 ${bw({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.'}),jie=["message"];function FB(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function zie({toMessage:e,code:t,reasonCode:r,syntaxPlugin:a}){let n=r==="MissingPlugin"||r==="MissingOneOfPlugins";{let s={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};s[r]&&(r=s[r])}return function s(i,o){let l=new SyntaxError;return l.code=t,l.reasonCode=r,l.loc=i,l.pos=i.index,l.syntaxPlugin=a,n&&(l.missingPlugin=o.missingPlugin),FB(l,"clone",function(u={}){var d;let{line:f,column:p,index:m}=(d=u.loc)!=null?d:i;return s(new wc(f,p,m),Object.assign({},o,u.details))}),FB(l,"details",o),Object.defineProperty(l,"message",{configurable:!0,get(){let c=`${e(o)} (${i.line}:${i.column})`;return this.message=c,c},set(c){Object.defineProperty(this,"message",{value:c,writable:!0})}}),l}}function Sc(e,t){if(Array.isArray(e))return a=>Sc(a,e[0]);let r={};for(let a of Object.keys(e)){let n=e[a],s=typeof n=="string"?{message:()=>n}:typeof n=="function"?{message:n}:n,{message:i}=s,o=Mie(s,jie),l=typeof i=="string"?()=>i:i;r[a]=zie(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:a,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var X=Object.assign({},Sc(Die),Sc(_ie),Sc(Oie),Sc(Fie),Sc`pipelineOperator`(Uie));function Vie(){return{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:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function qie(e){let t=Vie();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:Hie}=Object,BB=(e,t)=>{e&&Hie(e,t,{enumerable:!1,value:e[t]})};function a0(e){return BB(e.loc.start,"index"),BB(e.loc.end,"index"),e}var $ie=e=>class extends e{parse(){let r=a0(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(a0)),r}parseRegExpLiteral({pattern:r,flags:a}){let n=null;try{n=new RegExp(r,a)}catch{}let s=this.estreeParseLiteral(n);return s.regex={pattern:r,flags:a},s}parseBigIntLiteral(r){let a;try{a=BigInt(r)}catch{a=null}let n=this.estreeParseLiteral(a);return n.bigint=String(n.value||r),n}parseDecimalLiteral(r){let n=this.estreeParseLiteral(null);return n.decimal=String(n.value||r),n}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,a){let n=this.startNodeAtNode(r);return n.expression=r,this.finishNodeAt(n,"ChainExpression",a)}directiveToStmt(r){let a=r.value;delete r.value,this.castNodeTo(a,"Literal"),a.raw=a.extra.raw,a.value=a.extra.expressionValue;let n=this.castNodeTo(r,"ExpressionStatement");return n.expression=a,n.directive=a.extra.rawValue,delete a.extra,n}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:a,end:n,loc:s,range:i,raw:o,value:l}=r,c=Object.create(r.constructor.prototype);return c.type="Literal",c.start=a,c.end=n,c.loc=s,c.range=i,c.raw=o,c.value=l,c}initFunction(r,a){super.initFunction(r,a),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var a;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((a=r.expression.extra)!=null&&a.parenthesized)}parseBlockBody(r,a,n,s,i){super.parseBlockBody(r,a,n,s,i);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let a=super.getPrivateNameSV(r);return delete r.id,r.name=a,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,a){let n=super.parseLiteral(r,a);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(r,a,n=!1){super.parseFunctionBody(r,a,n),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,a,n,s,i,o,l=!1){let c=this.startNode();c.kind=r.kind,c=super.parseMethod(c,a,n,s,i,o,l),delete c.kind;let{typeParameters:u}=r;u&&(delete r.typeParameters,c.typeParameters=u,this.resetStartLocationFromNode(c,u));let d=this.castNodeTo(c,"FunctionExpression");return r.value=d,o==="ClassPrivateMethod"&&(r.computed=!1),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let a=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(a,"PropertyDefinition"),a}parseClassPrivateProperty(...r){let a=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(a,"PropertyDefinition"),a.computed=!1),a}parseClassAccessorProperty(r){let a=super.parseClassAccessorProperty(r);return this.getPluginOption("estree","classFeatures")&&(a.abstract&&this.hasPlugin("typescript")?(delete a.abstract,this.castNodeTo(a,"TSAbstractAccessorProperty")):this.castNodeTo(a,"AccessorProperty")),a}parseObjectProperty(r,a,n,s){let i=super.parseObjectProperty(r,a,n,s);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,a,n,s){return r==="Property"?"value":super.isValidLVal(r,a,n,s)}isAssignable(r,a){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,a):super.isAssignable(r,a)}toAssignable(r,a=!1){if(r!=null&&this.isObjectProperty(r)){let{key:n,value:s}=r;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(s,a)}else super.toAssignable(r,a)}toAssignableObjectExpressionProp(r,a,n){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(X.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(X.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,a,n)}finishCallExpression(r,a){let n=super.finishCallExpression(r,a);if(n.callee.type==="Import"){var s;this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=(s=n.arguments[1])!=null?s:null;{var i;n.attributes=(i=n.arguments[1])!=null?i:null}delete n.arguments,delete n.callee}else n.type==="OptionalCallExpression"?this.castNodeTo(n,"CallExpression"):n.optional=!1;return n}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,a){let n=this.state.lastTokStartLoc,s=super.parseExport(r,a);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(s,"ExportAllDeclaration"),s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var i;let{declaration:o}=s;o?.type==="ClassDeclaration"&&((i=o.decorators)==null?void 0:i.length)>0&&o.start===s.start&&this.resetStartLocation(s,n)}break}return s}stopParseSubscript(r,a){let n=super.stopParseSubscript(r,a);return a.optionalChainMember?this.estreeParseChainExpression(n,r.loc.end):n}parseMember(r,a,n,s,i){let o=super.parseMember(r,a,n,s,i);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,a){let n=super.castNodeTo(r,a);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(r){let a=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(a),a}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,a,n){return a0(super.finishNodeAt(r,a,n))}finishNode(r,a){let n=super.finishNode(r,a);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(r,a){super.resetStartLocation(r,a),a0(r)}resetEndLocation(r,a=this.state.lastTokEndLoc){super.resetEndLocation(r,a),a0(r)}},Qp=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},Gr={brace:new Qp("{"),j_oTag:new Qp("...",!0)};Gr.template=new Qp("`",!0);var xr=!0,Ze=!0,eN=!0,n0=!0,Gd=!0,Gie=!0,Tw=class{constructor(t,r={}){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=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},PN=new Map;function Dr(e,t={}){t.keyword=e;let r=Pt(e,t);return PN.set(e,r),r}function ci(e,t){return Pt(e,{beforeExpr:xr,binop:t})}var l0=-1,vu=[],AN=[],IN=[],NN=[],LN=[],RN=[];function Pt(e,t={}){var r,a,n,s;return++l0,AN.push(e),IN.push((r=t.binop)!=null?r:-1),NN.push((a=t.beforeExpr)!=null?a:!1),LN.push((n=t.startsExpr)!=null?n:!1),RN.push((s=t.prefix)!=null?s:!1),vu.push(new Tw(e,t)),l0}function Tr(e,t={}){var r,a,n,s;return++l0,PN.set(e,l0),AN.push(e),IN.push((r=t.binop)!=null?r:-1),NN.push((a=t.beforeExpr)!=null?a:!1),LN.push((n=t.startsExpr)!=null?n:!1),RN.push((s=t.prefix)!=null?s:!1),vu.push(new Tw("name",t)),l0}var Kie={bracketL:Pt("[",{beforeExpr:xr,startsExpr:Ze}),bracketHashL:Pt("#[",{beforeExpr:xr,startsExpr:Ze}),bracketBarL:Pt("[|",{beforeExpr:xr,startsExpr:Ze}),bracketR:Pt("]"),bracketBarR:Pt("|]"),braceL:Pt("{",{beforeExpr:xr,startsExpr:Ze}),braceBarL:Pt("{|",{beforeExpr:xr,startsExpr:Ze}),braceHashL:Pt("#{",{beforeExpr:xr,startsExpr:Ze}),braceR:Pt("}"),braceBarR:Pt("|}"),parenL:Pt("(",{beforeExpr:xr,startsExpr:Ze}),parenR:Pt(")"),comma:Pt(",",{beforeExpr:xr}),semi:Pt(";",{beforeExpr:xr}),colon:Pt(":",{beforeExpr:xr}),doubleColon:Pt("::",{beforeExpr:xr}),dot:Pt("."),question:Pt("?",{beforeExpr:xr}),questionDot:Pt("?."),arrow:Pt("=>",{beforeExpr:xr}),template:Pt("template"),ellipsis:Pt("...",{beforeExpr:xr}),backQuote:Pt("`",{startsExpr:Ze}),dollarBraceL:Pt("${",{beforeExpr:xr,startsExpr:Ze}),templateTail:Pt("...`",{startsExpr:Ze}),templateNonTail:Pt("...${",{beforeExpr:xr,startsExpr:Ze}),at:Pt("@"),hash:Pt("#",{startsExpr:Ze}),interpreterDirective:Pt("#!..."),eq:Pt("=",{beforeExpr:xr,isAssign:n0}),assign:Pt("_=",{beforeExpr:xr,isAssign:n0}),slashAssign:Pt("_=",{beforeExpr:xr,isAssign:n0}),xorAssign:Pt("_=",{beforeExpr:xr,isAssign:n0}),moduloAssign:Pt("_=",{beforeExpr:xr,isAssign:n0}),incDec:Pt("++/--",{prefix:Gd,postfix:Gie,startsExpr:Ze}),bang:Pt("!",{beforeExpr:xr,prefix:Gd,startsExpr:Ze}),tilde:Pt("~",{beforeExpr:xr,prefix:Gd,startsExpr:Ze}),doubleCaret:Pt("^^",{startsExpr:Ze}),doubleAt:Pt("@@",{startsExpr:Ze}),pipeline:ci("|>",0),nullishCoalescing:ci("??",1),logicalOR:ci("||",1),logicalAND:ci("&&",2),bitwiseOR:ci("|",3),bitwiseXOR:ci("^",4),bitwiseAND:ci("&",5),equality:ci("==/!=/===/!==",6),lt:ci("/<=/>=",7),gt:ci("/<=/>=",7),relational:ci("/<=/>=",7),bitShift:ci("<>/>>>",8),bitShiftL:ci("<>/>>>",8),bitShiftR:ci("<>/>>>",8),plusMin:Pt("+/-",{beforeExpr:xr,binop:9,prefix:Gd,startsExpr:Ze}),modulo:Pt("%",{binop:10,startsExpr:Ze}),star:Pt("*",{binop:10}),slash:ci("/",10),exponent:Pt("**",{beforeExpr:xr,binop:11,rightAssociative:!0}),_in:Dr("in",{beforeExpr:xr,binop:7}),_instanceof:Dr("instanceof",{beforeExpr:xr,binop:7}),_break:Dr("break"),_case:Dr("case",{beforeExpr:xr}),_catch:Dr("catch"),_continue:Dr("continue"),_debugger:Dr("debugger"),_default:Dr("default",{beforeExpr:xr}),_else:Dr("else",{beforeExpr:xr}),_finally:Dr("finally"),_function:Dr("function",{startsExpr:Ze}),_if:Dr("if"),_return:Dr("return",{beforeExpr:xr}),_switch:Dr("switch"),_throw:Dr("throw",{beforeExpr:xr,prefix:Gd,startsExpr:Ze}),_try:Dr("try"),_var:Dr("var"),_const:Dr("const"),_with:Dr("with"),_new:Dr("new",{beforeExpr:xr,startsExpr:Ze}),_this:Dr("this",{startsExpr:Ze}),_super:Dr("super",{startsExpr:Ze}),_class:Dr("class",{startsExpr:Ze}),_extends:Dr("extends",{beforeExpr:xr}),_export:Dr("export"),_import:Dr("import",{startsExpr:Ze}),_null:Dr("null",{startsExpr:Ze}),_true:Dr("true",{startsExpr:Ze}),_false:Dr("false",{startsExpr:Ze}),_typeof:Dr("typeof",{beforeExpr:xr,prefix:Gd,startsExpr:Ze}),_void:Dr("void",{beforeExpr:xr,prefix:Gd,startsExpr:Ze}),_delete:Dr("delete",{beforeExpr:xr,prefix:Gd,startsExpr:Ze}),_do:Dr("do",{isLoop:eN,beforeExpr:xr}),_for:Dr("for",{isLoop:eN}),_while:Dr("while",{isLoop:eN}),_as:Tr("as",{startsExpr:Ze}),_assert:Tr("assert",{startsExpr:Ze}),_async:Tr("async",{startsExpr:Ze}),_await:Tr("await",{startsExpr:Ze}),_defer:Tr("defer",{startsExpr:Ze}),_from:Tr("from",{startsExpr:Ze}),_get:Tr("get",{startsExpr:Ze}),_let:Tr("let",{startsExpr:Ze}),_meta:Tr("meta",{startsExpr:Ze}),_of:Tr("of",{startsExpr:Ze}),_sent:Tr("sent",{startsExpr:Ze}),_set:Tr("set",{startsExpr:Ze}),_source:Tr("source",{startsExpr:Ze}),_static:Tr("static",{startsExpr:Ze}),_using:Tr("using",{startsExpr:Ze}),_yield:Tr("yield",{startsExpr:Ze}),_asserts:Tr("asserts",{startsExpr:Ze}),_checks:Tr("checks",{startsExpr:Ze}),_exports:Tr("exports",{startsExpr:Ze}),_global:Tr("global",{startsExpr:Ze}),_implements:Tr("implements",{startsExpr:Ze}),_intrinsic:Tr("intrinsic",{startsExpr:Ze}),_infer:Tr("infer",{startsExpr:Ze}),_is:Tr("is",{startsExpr:Ze}),_mixins:Tr("mixins",{startsExpr:Ze}),_proto:Tr("proto",{startsExpr:Ze}),_require:Tr("require",{startsExpr:Ze}),_satisfies:Tr("satisfies",{startsExpr:Ze}),_keyof:Tr("keyof",{startsExpr:Ze}),_readonly:Tr("readonly",{startsExpr:Ze}),_unique:Tr("unique",{startsExpr:Ze}),_abstract:Tr("abstract",{startsExpr:Ze}),_declare:Tr("declare",{startsExpr:Ze}),_enum:Tr("enum",{startsExpr:Ze}),_module:Tr("module",{startsExpr:Ze}),_namespace:Tr("namespace",{startsExpr:Ze}),_interface:Tr("interface",{startsExpr:Ze}),_type:Tr("type",{startsExpr:Ze}),_opaque:Tr("opaque",{startsExpr:Ze}),name:Pt("name",{startsExpr:Ze}),placeholder:Pt("%%",{startsExpr:Ze}),string:Pt("string",{startsExpr:Ze}),num:Pt("num",{startsExpr:Ze}),bigint:Pt("bigint",{startsExpr:Ze}),decimal:Pt("decimal",{startsExpr:Ze}),regexp:Pt("regexp",{startsExpr:Ze}),privateName:Pt("#name",{startsExpr:Ze}),eof:Pt("eof"),jsxName:Pt("jsxName"),jsxText:Pt("jsxText",{beforeExpr:xr}),jsxTagStart:Pt("jsxTagStart",{startsExpr:Ze}),jsxTagEnd:Pt("jsxTagEnd")};function Qr(e){return e>=93&&e<=133}function Wie(e){return e<=92}function zl(e){return e>=58&&e<=133}function YB(e){return e>=58&&e<=137}function Xie(e){return NN[e]}function i0(e){return LN[e]}function Yie(e){return e>=29&&e<=33}function UB(e){return e>=129&&e<=131}function Jie(e){return e>=90&&e<=92}function kN(e){return e>=58&&e<=92}function Qie(e){return e>=39&&e<=59}function Zie(e){return e===34}function eoe(e){return RN[e]}function toe(e){return e>=121&&e<=123}function roe(e){return e>=124&&e<=130}function Xd(e){return AN[e]}function vw(e){return IN[e]}function aoe(e){return e===57}function ww(e){return e>=24&&e<=25}function bu(e){return vu[e]}vu[8].updateContext=e=>{e.pop()},vu[5].updateContext=vu[7].updateContext=vu[23].updateContext=e=>{e.push(Gr.brace)},vu[22].updateContext=e=>{e[e.length-1]===Gr.template?e.pop():e.push(Gr.template)},vu[143].updateContext=e=>{e.push(Gr.j_expr,Gr.j_oTag)};var MN="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",JB="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",noe=new RegExp("["+MN+"]"),soe=new RegExp("["+MN+JB+"]");MN=JB=null;var QB=[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,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],ioe=[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,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function iN(e,t){let r=65536;for(let a=0,n=t.length;ae)return!1;if(r+=t[a+1],r>=e)return!0}return!1}function Tc(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&noe.test(String.fromCharCode(e)):iN(e,QB)}function Zp(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&soe.test(String.fromCharCode(e)):iN(e,QB)||iN(e,ioe)}var DN={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},ooe=new Set(DN.keyword),loe=new Set(DN.strict),coe=new Set(DN.strictBind);function ZB(e,t){return t&&e==="await"||e==="enum"}function e4(e,t){return ZB(e,t)||loe.has(e)}function t4(e){return coe.has(e)}function r4(e,t){return e4(e,t)||t4(e)}function uoe(e){return ooe.has(e)}function doe(e,t,r){return e===64&&t===64&&Tc(r)}var foe=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"]);function poe(e){return foe.has(e)}var c0=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},u0=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new c0(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,a){let n=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(n,t,r,a);let s=n.names.get(t)||0;r&16?s=s|4:(n.firstLexicalName||(n.firstLexicalName=t),s=s|2),n.names.set(t,s),r&8&&this.maybeExportDefined(n,t)}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(n=this.scopeStack[s],this.checkRedeclarationInScope(n,t,r,a),n.names.set(t,(n.names.get(t)||0)|1),this.maybeExportDefined(n,t),!(n.flags&1667));--s);this.parser.inModule&&n.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,a,n){this.isRedeclaredInScope(t,r,a)&&this.parser.raise(X.VarRedeclaration,n,{identifierName:r})}isRedeclaredInScope(t,r,a){if(!(a&1))return!1;if(a&8)return t.names.has(r);let n=t.names.get(r)||0;return a&16?(n&2)>0||!this.treatFunctionsAsVarInScope(t)&&(n&1)>0:(n&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(n&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},oN=class extends c0{constructor(...t){super(...t),this.declareFunctions=new Set}},lN=class extends u0{createScope(t){return new oN(t)}declareName(t,r,a){let n=this.currentScope();if(r&2048){this.checkRedeclarationInScope(n,t,r,a),this.maybeExportDefined(n,t),n.declareFunctions.add(t);return}super.declareName(t,r,a)}isRedeclaredInScope(t,r,a){if(super.isRedeclaredInScope(t,r,a))return!0;if(a&2048&&!t.declareFunctions.has(r)){let n=t.names.get(r);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},moe=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Ft=Sc`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 ` async () => {}`, use `async () => {}`.",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 hoe(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function jB(e){return e.importKind==="type"||e.importKind==="typeof"}var goe={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function yoe(e,t){let r=[],a=[];for(let n=0;nclass extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return lN}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,a){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,a)}addComment(r){if(this.flowPragma===void 0){let a=xoe.exec(r.value);if(a)if(a[1]==="flow")this.flowPragma="flow";else if(a[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let a=this.state.inType;this.state.inType=!0,this.expect(r||14);let n=this.flowParseType();return this.state.inType=a,n}flowParsePredicate(){let r=this.startNode(),a=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>a.index+1&&this.raise(Ft.UnexpectedSpaceBetweenModuloChecks,a),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let a=null,n=null;return this.match(54)?(this.state.inType=r,n=this.flowParsePredicate()):(a=this.flowParseType(),this.state.inType=r,this.match(54)&&(n=this.flowParsePredicate())),[a,n]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let a=r.id=this.parseIdentifier(),n=this.startNode(),s=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),a.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(a),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,a){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(a&&this.raise(Ft.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,a);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let a=r.body=this.startNode(),n=a.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Ft.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(o))):(this.expectContextual(125,Ft.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(a,"BlockStatement");let s=null,i=!1;return n.forEach(o=>{hoe(o)?(s==="CommonJS"&&this.raise(Ft.AmbiguousDeclareModuleKind,o),s="ES"):o.type==="DeclareModuleExports"&&(i&&this.raise(Ft.DuplicateDeclareModuleExports,o),s==="ES"&&this.raise(Ft.AmbiguousDeclareModuleKind,o),s="CommonJS",i=!0)}),r.kind=s||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,a){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!a){let n=this.state.value;throw this.raise(Ft.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:n,suggestion:goe[n]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let a=this.flowParseTypeAlias(r);return this.castNodeTo(a,"DeclareTypeAlias"),a}flowParseDeclareOpaqueType(r){this.next();let a=this.flowParseOpaqueType(r,!0);return this.castNodeTo(a,"DeclareOpaqueType"),a}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,a){if(r.id=this.flowParseRestrictedIdentifier(!a,!0),this.scope.declareName(r.id.name,a?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!a&&this.eat(12));if(a){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:a,allowExact:!1,allowSpread:!1,allowProto:a,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(Ft.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,a,n){moe.has(r)&&this.raise(n?Ft.AssignReservedType:Ft.UnexpectedReservedType,a,{reservedType:r})}flowParseRestrictedIdentifier(r,a){return this.checkReservedType(this.state.value,this.state.startLoc,a),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,a){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,a||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let a=this.state.startLoc,n=this.startNode(),s=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=s,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):r&&this.raise(Ft.MissingTypeParamDefault,a),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,a=this.startNode();a.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let s=this.flowParseTypeParameter(n);a.params.push(s),s.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(a,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==Gr.brace){let a=this.state.context;this.state.context=[a[0]];try{return r()}finally{this.state.context=a}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),a=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=n}),this.state.inType=a,!this.state.inType&&this.curContext()===Gr.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),a=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=a,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,a,n){return r.static=a,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=n,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,a){return r.static=a,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,a){let n=this.startNode();return r.static=a,r.value=this.flowParseObjectTypeMethodish(n),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:a,allowSpread:n,allowProto:s,allowInexact:i}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let c,u,d=!1;for(a&&this.match(6)?(this.expect(6),c=9,u=!0):(this.expect(5),c=8,u=!1),l.exact=u;!this.match(c);){let p=!1,m=null,h=null,x=this.startNode();if(s&&this.isContextual(118)){let y=this.lookahead();y.type!==14&&y.type!==17&&(this.next(),m=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let y=this.lookahead();y.type!==14&&y.type!==17&&(this.next(),p=!0)}let g=this.flowParseVariance();if(this.eat(0))m!=null&&this.unexpected(m),this.eat(0)?(g&&this.unexpected(g.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(x,p))):l.indexers.push(this.flowParseObjectTypeIndexer(x,p,g));else if(this.match(10)||this.match(47))m!=null&&this.unexpected(m),g&&this.unexpected(g.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(x,p));else{let y="init";if(this.isContextual(99)||this.isContextual(104)){let S=this.lookahead();YB(S.type)&&(y=this.state.value,this.next())}let v=this.flowParseObjectTypeProperty(x,p,m,g,y,n,i??!u);v===null?(d=!0,h=this.state.lastTokStartLoc):l.properties.push(v)}this.flowObjectTypeSemicolon(),h&&!this.match(8)&&!this.match(9)&&this.raise(Ft.UnexpectedExplicitInexactInObject,h)}this.expect(c),n&&(l.inexact=d);let f=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,f}flowParseObjectTypeProperty(r,a,n,s,i,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(Ft.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Ft.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(Ft.InexactVariance,s),null):(o||this.raise(Ft.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),s&&this.raise(Ft.SpreadVariance,s),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=a,r.proto=n!=null,r.kind=i;let c=!1;return this.match(47)||this.match(10)?(r.method=!0,n!=null&&this.unexpected(n),s&&this.unexpected(s.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(i==="get"||i==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(Ft.ThisParamBannedInConstructor,r.value.this)):(i!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(c=!0),r.value=this.flowParseTypeInitialiser(),r.variance=s),r.optional=c,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let a=r.kind==="get"?0:1,n=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?Ft.GetterMayNotHaveThisParam:Ft.SetterMayNotHaveThisParam,r.value.this),n!==a&&this.raise(r.kind==="get"?X.BadGetterArity:X.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(X.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,a){r??(r=this.state.startLoc);let n=a||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let s=this.startNodeAt(r);s.qualification=n,s.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(s,"QualifiedTypeIdentifier")}return n}flowParseGenericType(r,a){let n=this.startNodeAt(r);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(r,a),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.possuper.parseFunctionBody(r,!0,n));return}super.parseFunctionBody(r,!1,n)}parseFunctionBodyAndFinish(r,a,n=!1){if(this.match(14)){let s=this.startNode();[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,a,n)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let n=this.lookahead();if(zl(n.type)){let s=this.startNode();return this.next(),this.flowParseInterface(s)}}else if(this.isContextual(126)){let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}let a=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(a)&&(this.flowPragma=null),a}parseExpressionStatement(r,a,n){if(a.type==="Identifier"){if(a.name==="declare"){if(this.match(80)||Qr(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Qr(this.state.type)){if(a.name==="interface")return this.flowParseInterface(r);if(a.name==="type")return this.flowParseTypeAlias(r);if(a.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,a,n)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||UB(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||UB(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,a,n){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let f=this.lookaheadCharCode();if(f===44||f===61||f===58||f===41)return this.setOptionalParametersError(n),r}this.expect(17);let s=this.state.clone(),i=this.state.noArrowAt,o=this.startNodeAt(a),{consequent:l,failed:c}=this.tryParseConditionalConsequent(),[u,d]=this.getArrowLikeExpressions(l);if(c||d.length>0){let f=[...i];if(d.length>0){this.state=s,this.state.noArrowAt=f;for(let p=0;p1&&this.raise(Ft.AmbiguousConditionalArrow,s.startLoc),c&&u.length===1&&(this.state=s,f.push(u[0].start),this.state.noArrowAt=f,{consequent:l,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=i,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),a=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:a}}getArrowLikeExpressions(r,a){let n=[r],s=[];for(;n.length!==0;){let i=n.pop();i.type==="ArrowFunctionExpression"&&i.body.type!=="BlockStatement"?(i.typeParameters||!i.returnType?this.finishArrowValidation(i):s.push(i),n.push(i.body)):i.type==="ConditionalExpression"&&(n.push(i.consequent),n.push(i.alternate))}return a?(s.forEach(i=>this.finishArrowValidation(i)),[s,[]]):yoe(s,i=>i.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var a;this.toAssignableList(r.params,(a=r.extra)==null?void 0:a.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,a){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=a(),this.state.noArrowParamsConversionAt.pop()):n=a(),n}parseParenItem(r,a){let n=super.parseParenItem(r,a);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(a);return s.expression=n,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return n}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let a=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(a)}else if(this.isContextual(131)){r.exportKind="type";let a=this.startNode();return this.next(),this.flowParseOpaqueType(a,!1)}else if(this.isContextual(129)){r.exportKind="type";let a=this.startNode();return this.next(),this.flowParseInterface(a)}else if(this.isContextual(126)){r.exportKind="value";let a=this.startNode();return this.next(),this.flowParseEnumDeclaration(a)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:a}=this.state,n=super.maybeParseExportNamespaceSpecifier(r);return n&&r.exportKind==="type"&&this.unexpected(a),n}parseClassId(r,a,n){super.parseClassId(r,a,n),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,a,n){let{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,a))return;a.declare=!0}super.parseClassMember(r,a,n),a.declare&&(a.type!=="ClassProperty"&&a.type!=="ClassPrivateProperty"&&a.type!=="PropertyDefinition"?this.raise(Ft.DeclareClassElement,s):a.value&&this.raise(Ft.DeclareClassFieldInitializer,a.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),a="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(X.InvalidIdentifier,this.state.curPosition(),{identifierName:a}),this.finishToken(132,a)}getTokenFromCode(r){let a=this.input.charCodeAt(this.state.pos+1);r===123&&a===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?a===46?this.finishOp(18,2):this.finishOp(17,1):doe(r,a,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,a){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,a):super.isAssignable(r,a)}toAssignable(r,a=!1){!a&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,a)}toAssignableList(r,a,n){for(let s=0;s1||!a)&&this.raise(Ft.TypeCastInPattern,i.typeAnnotation)}return r}parseArrayLike(r,a,n){let s=super.parseArrayLike(r,a,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s}isValidLVal(r,a,n,s){return r==="TypeCastExpression"||super.isValidLVal(r,a,n,s)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,a,n,s,i,o){if(a.variance&&this.unexpected(a.variance.loc.start),delete a.variance,this.match(47)&&(a.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,a,n,s,i,o),a.params&&i){let l=a.params;l.length>0&&this.isThisParam(l[0])&&this.raise(Ft.ThisParamBannedInConstructor,a)}else if(a.type==="MethodDefinition"&&i&&a.value.params){let l=a.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(Ft.ThisParamBannedInConstructor,a)}}pushClassPrivateMethod(r,a,n,s){a.variance&&this.unexpected(a.variance.loc.start),delete a.variance,this.match(47)&&(a.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,a,n,s)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let a=r.implements=[];do{let n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,a.push(this.finishNode(n,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let a=this.getObjectOrClassMethodParams(r);if(a.length>0){let n=a[0];this.isThisParam(n)&&r.kind==="get"?this.raise(Ft.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(Ft.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,a,n,s,i,o,l){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let c;this.match(47)&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let u=super.parseObjPropValue(r,a,n,s,i,o,l);return c&&((u.value||u).typeParameters=c),u}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(Ft.PatternIsOptional,r),this.isThisParam(r)&&this.raise(Ft.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(Ft.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(Ft.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,a){let n=super.parseMaybeDefault(r,a);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.startsuper.parseMaybeAssign(r,a),s),!i.error)return i.node;let{context:c}=this.state,u=c[c.length-1];(u===Gr.j_oTag||u===Gr.j_expr)&&c.pop()}if((n=i)!=null&&n.error||this.match(47)){var o,l;s=s||this.state.clone();let c,u=this.tryParse(f=>{var p;c=this.flowParseTypeParameterDeclaration();let m=this.forwardNoArrowParamsConversionAt(c,()=>{let x=super.parseMaybeAssign(r,a);return this.resetStartLocationFromNode(x,c),x});(p=m.extra)!=null&&p.parenthesized&&f();let h=this.maybeUnwrapTypeCastExpression(m);return h.type!=="ArrowFunctionExpression"&&f(),h.typeParameters=c,this.resetStartLocationFromNode(h,c),m},s),d=null;if(u.node&&this.maybeUnwrapTypeCastExpression(u.node).type==="ArrowFunctionExpression"){if(!u.error&&!u.aborted)return u.node.async&&this.raise(Ft.UnexpectedTypeParameterBeforeAsyncArrowFunction,c),u.node;d=u.node}if((o=i)!=null&&o.node)return this.state=i.failState,i.node;if(d)return this.state=u.failState,d;throw(l=i)!=null&&l.thrown?i.error:u.thrown?u.error:this.raise(Ft.UnexpectedTokenAfterTypeParameter,c)}return super.parseMaybeAssign(r,a)}parseArrow(r){if(this.match(14)){let a=this.tryParse(()=>{let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let s=this.startNode();return[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=n,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s});if(a.thrown)return null;a.error&&(this.state=a.failState),r.returnType=a.node.typeAnnotation?this.finishNode(a.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,a){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=a:super.setArrowFunctionParameters(r,a)}checkParams(r,a,n,s=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let i=0;i0&&this.raise(Ft.ThisParamMustBeFirst,r.params[i]);super.checkParams(r,a,n,s)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,a,n){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(a.index)){this.next();let s=this.startNodeAt(a);s.callee=r,s.arguments=super.parseCallExpressionArguments(),r=this.finishNode(s,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let s=this.state.clone(),i=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(a)||l(),s);if(!i.error&&!i.aborted)return i.node;let o=this.tryParse(()=>super.parseSubscripts(r,a,n),s);if(o.node&&!o.error)return o.node;if(i.node)return this.state=i.failState,i.node;if(o.node)return this.state=o.failState,o.node;throw i.error||o.error}return super.parseSubscripts(r,a,n)}parseSubscript(r,a,n,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,n)return s.stop=!0,r;this.next();let i=this.startNodeAt(a);return i.callee=r,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let i=this.startNodeAt(a);i.callee=r;let o=this.tryParse(()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),i.arguments=super.parseCallExpressionArguments(),s.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,s.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,a,n,s)}parseNewCallee(r){super.parseNewCallee(r);let a=null;this.shouldParseTypes()&&this.match(47)&&(a=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=a}parseAsyncArrowWithTypeParameters(r){let a=this.startNodeAt(r);if(this.parseFunctionParams(a,!1),!!this.parseArrow(a))return super.parseArrowExpression(a,void 0,!0)}readToken_mult_modulo(r){let a=this.input.charCodeAt(this.state.pos+1);if(r===42&&a===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let a=this.input.charCodeAt(this.state.pos+1);if(r===124&&a===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,a){let n=super.parseTopLevel(r,a);return this.state.hasFlowComment&&this.raise(Ft.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Ft.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,a=2;for(;[32,9].includes(this.input.charCodeAt(r+a));)a++;let n=this.input.charCodeAt(a+r),s=this.input.charCodeAt(a+r+1);return n===58&&s===58?a+2:this.input.slice(a+r,a+r+12)==="flow-include"?a+12:n===58&&s!==58?a:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(X.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:a,memberName:n}){this.raise(Ft.EnumBooleanMemberNotInitialized,r,{memberName:n,enumName:a})}flowEnumErrorInvalidMemberInitializer(r,a){return this.raise(a.explicitType?a.explicitType==="symbol"?Ft.EnumInvalidMemberInitializerSymbolType:Ft.EnumInvalidMemberInitializerPrimaryType:Ft.EnumInvalidMemberInitializerUnknownType,r,a)}flowEnumErrorNumberMemberNotInitialized(r,a){this.raise(Ft.EnumNumberMemberNotInitialized,r,a)}flowEnumErrorStringMemberInconsistentlyInitialized(r,a){this.raise(Ft.EnumStringMemberInconsistentlyInitialized,r,a)}flowEnumMemberInit(){let r=this.state.startLoc,a=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return a()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:r}}case 134:{let n=this.parseStringLiteral(this.state.value);return a()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:r}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return a()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,a=this.parseIdentifier(!0),n=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:a,init:n}}flowEnumCheckExplicitTypeMismatch(r,a,n){let{explicitType:s}=a;s!==null&&s!==n&&this.flowEnumErrorInvalidMemberInitializer(r,a)}flowEnumMembers({enumName:r,explicitType:a}){let n=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let o=this.startNode(),{id:l,init:c}=this.flowEnumMemberRaw(),u=l.name;if(u==="")continue;/^[a-z]/.test(u)&&this.raise(Ft.EnumInvalidMemberName,l,{memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:r}),n.has(u)&&this.raise(Ft.EnumDuplicateMemberName,l,{memberName:u,enumName:r}),n.add(u);let d={enumName:r,explicitType:a,memberName:u};switch(o.id=l,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"boolean"),o.init=c.value,s.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"number"),o.init=c.value,s.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,d,"string"),o.init=c.value,s.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,d);case"none":switch(a){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,d);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,d);break;default:s.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:i}}flowEnumStringMembers(r,a,{enumName:n}){if(r.length===0)return a;if(a.length===0)return r;if(a.length>r.length){for(let s of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:n});return a}else{for(let s of a)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:n});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Qr(this.state.type))throw this.raise(Ft.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:a}=this.state;return this.next(),a!=="boolean"&&a!=="number"&&a!=="string"&&a!=="symbol"&&this.raise(Ft.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:a}),a}flowEnumBody(r,a){let n=a.name,s=a.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:n,explicitType:i});switch(r.hasUnknownMembers=l,i){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let c=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let u=o.booleanMembers.length,d=o.numberMembers.length,f=o.stringMembers.length,p=o.defaultedMembers.length;if(!u&&!d&&!f&&!p)return c();if(!u&&!d)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!d&&!f&&u>=p){for(let m of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(m.loc.start,{enumName:n,memberName:m.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!u&&!f&&d>=p){for(let m of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(m.loc.start,{enumName:n,memberName:m.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(Ft.EnumInconsistentMemberValues,s,{enumName:n}),c()}}}flowParseEnumDeclaration(r){let a=this.parseIdentifier();return r.id=a,r.body=this.flowEnumBody(this.startNode(),a),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let a=this.input.charCodeAt(r+1);return a!==60&&a!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},voe={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},Soe=/\r\n|[\r\n\u2028\u2029]/,yw=new RegExp(Soe.source,"g");function vg(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function zB(e,t,r){for(let a=t;a`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 Kd(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function bg(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return bg(e.object)+"."+bg(e.property);throw new Error("Node had unexpected type: "+e.type)}var woe=e=>class extends e{jsxReadToken(){let r="",a=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Jp.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}r+=this.input.slice(a,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(a,this.state.pos),r+=this.jsxReadEntity(),a=this.state.pos;break;case 62:case 125:default:vg(n)?(r+=this.input.slice(a,this.state.pos),r+=this.jsxReadNewLine(!0),a=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let a=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,a===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=r?` `:`\r `):n=String.fromCharCode(a),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(r){let a="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(X.UnterminatedString,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);if(s===r)break;s===38?(a+=this.input.slice(n,this.state.pos),a+=this.jsxReadEntity(),n=this.state.pos):vg(s)?(a+=this.input.slice(n,this.state.pos),a+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}a+=this.input.slice(n,this.state.pos++),this.finishToken(134,a)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let a=10;this.codePointAtPos(this.state.pos)===120&&(a=16,++this.state.pos);let n=this.readInt(a,void 0,!1,"bail");if(n!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(n)}else{let a=0,n=!1;for(;a++<10&&this.state.pos1){for(let n=0;n0){if(a&256){let s=!!(a&512),i=(n&4)>0;return s!==i}return!0}return a&128&&(n&8)>0?t.names.get(r)&2?!!(a&1):!1:a&2&&(n&1)>0?!0:super.isRedeclaredInScope(t,r,a)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let a=this.scopeStack.length;for(let n=a-1;n>=0;n--){let i=this.scopeStack[n].tsNames.get(r);if((i&1)>0||(i&16)>0)return}super.checkLocalExport(t)}},dN=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Sw(e,t){return(e?2:0)|(t?1:0)}var fN=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,a]=t;if(!this.hasPlugin(r))return!1;let n=this.plugins.get(r);for(let s of Object.keys(a))if(n?.[s]!==a[s])return!1;return!0}}getPluginOption(t,r){var a;return(a=this.plugins.get(t))==null?void 0:a[r]}};function a4(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function Coe(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function d0(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function Wd(e,t,r){let a=null,n=t.length;for(;a===null&&n>0;)a=t[--n];a===null||a.start>r.start?d0(e,r.comments):a4(a,r.comments)}var pN=class extends fN{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,a=r.length;if(a===0)return;let n=a-1,s=r[n];s.start===t.end&&(s.leadingNode=t,n--);let{start:i}=t;for(;n>=0;n--){let o=r[n],l=o.end;if(l>i)o.containingNode=t,this.finalizeComment(o),r.splice(n,1);else{l===i&&(o.trailingNode=t);break}}}finalizeComment(t){var r;let{comments:a}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&a4(t.leadingNode,a),t.trailingNode!==null&&Coe(t.trailingNode,a);else{let n=t.containingNode,s=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(s)-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Wd(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":Wd(n,n.arguments,t);break;case"ImportExpression":Wd(n,[n.source,(r=n.options)!=null?r:null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Wd(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Wd(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Wd(n,n.specifiers,t);break;case"TSEnumDeclaration":Wd(n,n.members,t);break;case"TSEnumBody":Wd(n,n.members,t);break;default:d0(n,a)}else d0(n,a)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:a}=r;if(a===0)return;let n=r[a-1];n.leadingNode===t&&(n.leadingNode=null)}takeSurroundingComments(t,r,a){let{commentStack:n}=this.state,s=n.length;if(s===0)return;let i=s-1;for(;i>=0;i--){let o=n[i],l=o.end;if(o.start===a)o.leadingNode=t;else if(l===r)o.trailingNode=t;else if(l0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startIndex:a,startLine:n,startColumn:s}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=a,this.curLine=n,this.lineStart=-s,this.startLoc=this.endLoc=new wc(n,s,a)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new wc(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new f0;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},Eoe=function(t){return t>=48&&t<=57},VB={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},xw={bin:e=>e===48||e===49,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 qB(e,t,r,a,n,s){let i=r,o=a,l=n,c="",u=null,d=r,{length:f}=t;for(;;){if(r>=f){s.unterminated(i,o,l),c+=t.slice(d,r);break}let p=t.charCodeAt(r);if(Poe(e,p,t,r)){c+=t.slice(d,r);break}if(p===92){c+=t.slice(d,r);let m=Aoe(t,r,a,n,e==="template",s);m.ch===null&&!u?u={pos:r,lineStart:a,curLine:n}:c+=m.ch,{pos:r,lineStart:a,curLine:n}=m,d=r}else p===8232||p===8233?(++r,++n,a=r):p===10||p===13?e==="template"?(c+=t.slice(d,r)+` `,++r,p===13&&t.charCodeAt(r)===10&&++r,++n,d=a=r):s.unterminated(i,o,l):++r}return{pos:r,str:c,firstInvalidLoc:u,lineStart:a,curLine:n,containsInvalid:!!u}}function Poe(e,t,r,a){return e==="template"?t===96||t===36&&r.charCodeAt(a+1)===123:t===(e==="double"?34:39)}function Aoe(e,t,r,a,n,s){let i=!n;t++;let o=c=>({pos:t,ch:c,lineStart:r,curLine:a}),l=e.charCodeAt(t++);switch(l){case 110:return o(` `);case 114:return o("\r");case 120:{let c;return{code:c,pos:t}=mN(e,t,r,a,2,!1,i,s),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:t}=s4(e,t,r,a,i,s),o(c===null?null:String.fromCodePoint(c))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++a;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);s.strictNumericEscape(t-1,r,a);default:if(l>=48&&l<=55){let c=t-1,d=/^[0-7]+/.exec(e.slice(c,t+2))[0],f=parseInt(d,8);f>255&&(d=d.slice(0,-1),f=parseInt(d,8)),t+=d.length-1;let p=e.charCodeAt(t);if(d!=="0"||p===56||p===57){if(n)return o(null);s.strictNumericEscape(c,r,a)}return o(String.fromCharCode(f))}return o(String.fromCharCode(l))}}function mN(e,t,r,a,n,s,i,o){let l=t,c;return{n:c,pos:t}=n4(e,t,r,a,16,n,s,!1,o,!i),c===null&&(i?o.invalidEscapeSequence(l,r,a):t=l-1),{code:c,pos:t}}function n4(e,t,r,a,n,s,i,o,l,c){let u=t,d=n===16?VB.hex:VB.decBinOct,f=n===16?xw.hex:n===10?xw.dec:n===8?xw.oct:xw.bin,p=!1,m=0;for(let h=0,x=s??1/0;h=97?y=g-97+10:g>=65?y=g-65+10:Eoe(g)?y=g-48:y=1/0,y>=n){if(y<=9&&c)return{n:null,pos:t};if(y<=9&&l.invalidDigit(t,r,a,n))y=0;else if(i)y=0,p=!0;else break}++t,m=m*n+y}return t===u||s!=null&&t-u!==s||p?{n:null,pos:t}:{n:m,pos:t}}function s4(e,t,r,a,n,s){let i=e.charCodeAt(t),o;if(i===123){if(++t,{code:o,pos:t}=mN(e,t,r,a,e.indexOf("}",t)-t,!0,n,s),++t,o!==null&&o>1114111)if(n)s.invalidCodePoint(t,r,a);else return{code:null,pos:t}}else({code:o,pos:t}=mN(e,t,r,a,4,!1,n,s));return{code:o,pos:t}}function s0(e,t,r){return new wc(r,e-t,e)}var Ioe=new Set([103,109,115,105,121,117,100,118]),vc=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new Tg(t.startLoc,t.endLoc)}},hN=class extends pN{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(a,n,s,i)=>this.optionFlags&2048?(this.raise(X.InvalidDigit,s0(a,n,s),{radix:i}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(X.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(X.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(X.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(X.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(a,n,s)=>{this.recordStrictModeErrors(X.StrictNumericEscape,s0(a,n,s))},unterminated:(a,n,s)=>{throw this.raise(X.UnterminatedString,s0(a-1,n,s))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(X.StrictNumericEscape),unterminated:(a,n,s)=>{throw this.raise(X.UnterminatedTemplate,s0(a,n,s))}}),this.state=new f0,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new vc(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return tN.lastIndex=t,tN.test(this.input)?tN.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return rN.lastIndex=t,rN.test(this.input)?rN.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++tthis.raise(r,a)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let a=this.state.pos,n=this.input.indexOf(t,a+2);if(n===-1)throw this.raise(X.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+t.length,yw.lastIndex=a+2;yw.test(this.input)&&yw.lastIndex<=n;)++this.state.curLine,this.state.lineStart=yw.lastIndex;if(this.isLookahead)return;let s={type:"CommentBlock",value:this.input.slice(a+2,n),start:this.sourceToOffsetPos(a),end:this.sourceToOffsetPos(n+t.length),loc:new Tg(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(s),s}skipLineComment(t){let r=this.state.pos,a;this.isLookahead||(a=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=t);if(this.state.post)){let s=this.skipLineComment(3);s!==void 0&&(this.addComment(s),r?.push(s))}else break e}else if(a===60&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===33&&this.input.charCodeAt(n+2)===45&&this.input.charCodeAt(n+3)===45){let s=this.skipLineComment(4);s!==void 0&&(this.addComment(s),r?.push(s))}else break e}else break e}}if(r?.length>0){let a=this.state.pos,n={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(a),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let a=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(a)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(X.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?X.RecordExpressionHashIncorrectStartSyntaxType:X.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else Tc(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!vg(t)&&++this.state.pos=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(X.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(X.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Tc(t)){this.readWord(t);return}}throw this.raise(X.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){let a=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,a)}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,a,n,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(X.UnterminatedRegExp,ui(t,1));let c=this.input.charCodeAt(s);if(vg(c))throw this.raise(X.UnterminatedRegExp,ui(t,1));if(a)a=!1;else{if(c===91)n=!0;else if(c===93&&n)n=!1;else if(c===47&&!n)break;a=c===92}}let i=this.input.slice(r,s);++s;let o="",l=()=>ui(t,s+2-r);for(;s=2&&this.input.charCodeAt(r)===48;if(l){let p=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(X.StrictOctalLiteral,a),!this.state.strict){let m=p.indexOf("_");m>0&&this.raise(X.ZeroDigitNumericSeparator,ui(a,m))}o=l&&!/[89]/.test(p)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!o&&(++this.state.pos,this.readInt(10),n=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!o&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(X.InvalidOrMissingExponent,a),n=!0,i=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((n||l)&&this.raise(X.InvalidBigIntLiteral,a),++this.state.pos,s=!0),c===109){this.expectPlugin("decimal",this.state.curPosition()),(i||l)&&this.raise(X.InvalidDecimal,a),++this.state.pos;var u=!0}if(Tc(this.codePointAtPos(this.state.pos)))throw this.raise(X.NumberIdentifier,this.state.curPosition());let d=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(s){this.finishToken(136,d);return}if(u){this.finishToken(137,d);return}let f=o?parseInt(d,8):parseFloat(d);this.finishToken(135,f)}readCodePoint(t){let{code:r,pos:a}=s4(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=a,r}readString(t){let{str:r,pos:a,curLine:n,lineStart:s}=qB(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=a+1,this.state.lineStart=s,this.state.curLine=n,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:a,pos:n,curLine:s,lineStart:i}=qB("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=s,a&&(this.state.firstInvalidTemplateEscapePos=new wc(a.curLine,a.pos-a.lineStart,this.sourceToOffsetPos(a.pos))),this.input.codePointAt(n)===96?this.finishToken(24,a?null:t+r+"`"):(this.state.pos++,this.finishToken(25,a?null:t+r+"${"))}recordStrictModeErrors(t,r){let a=r.index;this.state.strict&&!this.state.strictErrors.has(a)?this.raise(t,r):this.state.strictErrors.set(a,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="",a=this.state.pos,n=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos=0;o--){let l=i[o];if(l.loc.index===s)return i[o]=t(n,a);if(l.loc.indexthis.hasPlugin(r)))throw this.raise(X.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,a,n)=>{this.raise(t,s0(r,a,n))}}},gN=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},yN=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new gN)}exit(){let t=this.stack.pop(),r=this.current();for(let[a,n]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(a)||r.undefinedPrivateNames.set(a,n):this.parser.raise(X.InvalidPrivateFieldResolution,n,{identifierName:a})}declarePrivateName(t,r,a){let{privateNames:n,loneAccessors:s,undefinedPrivateNames:i}=this.current(),o=n.has(t);if(r&3){let l=o&&s.get(t);if(l){let c=l&4,u=r&4,d=l&3,f=r&3;o=d===f||c!==u,o||s.delete(t)}else o||s.set(t,r)}o&&this.parser.raise(X.PrivateNameRedeclaration,a,{identifierName:t}),n.add(t),i.delete(t)}usePrivateName(t,r){let a;for(a of this.stack)if(a.privateNames.has(t))return;a?a.undefinedPrivateNames.set(t,r):this.parser.raise(X.InvalidPrivateFieldResolution,r,{identifierName:t})}},wg=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Cw=class extends wg{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,r){let a=r.index;this.declarationErrors.set(a,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},xN=class{constructor(t){this.parser=void 0,this.stack=[new wg],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let a=r.loc.start,{stack:n}=this,s=n.length-1,i=n[s];for(;!i.isCertainlyParameterDeclaration();){if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,a);else return;i=n[--s]}this.parser.raise(t,a)}recordArrowParameterBindingError(t,r){let{stack:a}=this,n=a[a.length-1],s=r.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(t,s);else if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(t,s);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,a=r.length-1,n=r[a];for(;n.canBeArrowParameterDeclaration();)n.type===2&&n.recordDeclarationError(X.AwaitBindingIdentifier,t),n=r[--a]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([a,n])=>{this.parser.raise(a,n);let s=t.length-2,i=t[s];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=t[--s]})}};function Noe(){return new wg(3)}function Loe(){return new Cw(1)}function Roe(){return new Cw(2)}function i4(){return new wg}var bN=class extends hN{addExtra(t,r,a,n=!0){if(!t)return;let{extra:s}=t;s==null&&(s={},t.extra=s),n?s[r]=a:Object.defineProperty(s,r,{enumerable:n,value:a})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){if(this.input.startsWith(r,t)){let a=this.input.charCodeAt(t+r.length);return!(Zp(a)||(a&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return zB(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return zB(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(X.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let a={node:null};try{let n=t((s=null)=>{throw a.node=s,a});if(this.state.errors.length>r.errors.length){let s=this.state;return this.state=r,this.state.tokensLength=s.tokensLength,{node:n,error:s.errors[r.errors.length],thrown:!1,aborted:!1,failState:s}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(n){let s=this.state;if(this.state=r,n instanceof SyntaxError)return{node:null,error:n,thrown:!0,aborted:!1,failState:s};if(n===a)return{node:a.node,error:null,thrown:!1,aborted:!0,failState:s};throw n}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:a,doubleProtoLoc:n,privateKeyLoc:s,optionalParametersLoc:i,voidPatternLoc:o}=t,l=!!a||!!n||!!i||!!s||!!o;if(!r)return l;a!=null&&this.raise(X.InvalidCoverInitializedName,a),n!=null&&this.raise(X.DuplicateProto,n),s!=null&&this.raise(X.UnexpectedPrivateField,s),i!=null&&this.unexpected(i),o!=null&&this.raise(X.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return YB(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let a=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let n=this.inModule;this.inModule=t;let s=this.scope,i=this.getScopeHandler();this.scope=new i(this,t);let o=this.prodParam;this.prodParam=new dN;let l=this.classScope;this.classScope=new yN(this);let c=this.expressionScope;return this.expressionScope=new xN(this),()=>{this.state.labels=r,this.exportedIdentifiers=a,this.inModule=n,this.scope=s,this.prodParam=o,this.classScope=l,this.expressionScope=c}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let a=r?514:1;this.optionFlags&4&&(a|=512),this.scope.enter(a)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},Sg=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},Cg=class{constructor(t,r,a){this.type="",this.start=r,this.end=0,this.loc=new Tg(a),t?.optionFlags&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},vN=Cg.prototype;vN.__clone=function(){let e=new Cg(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,a=t.length;re.type==="ParenthesizedExpression"?TN(e.expression):e,wN=class extends SN{toAssignable(t,r=!1){var a,n;let s;switch((t.type==="ParenthesizedExpression"||(a=t.extra)!=null&&a.parenthesized)&&(s=TN(t),r?s.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(X.InvalidParenthesizedAssignment,t):s.type!=="CallExpression"&&s.type!=="MemberExpression"&&!this.isOptionalMemberExpression(s)&&this.raise(X.InvalidParenthesizedAssignment,t):this.raise(X.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let o=0,l=t.properties.length,c=l-1;on.type!=="ObjectMethod"&&(s===a||n.type!=="SpreadElement")&&this.isAssignable(n))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(a=>a===null||this.isAssignable(a));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let a of t)a?.type==="ArrayExpression"&&this.toReferencedListDeep(a.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(X.UnexpectedVoidPattern,r),t.argument=r,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,r,a){let n=a&1,s=[],i=!0;for(;!this.eat(t);)if(i?i=!1:this.expect(12),n&&this.match(12))s.push(null);else{if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||a&2)&&(o=this.parseFunctionParamType(o)),s.push(o),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];if(a&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(X.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());s.push(this.parseBindingElement(a,o))}}return s}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(X.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let a=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),a.key=this.parsePrivateName()):this.parsePropertyName(a),a.method=!1,this.parseObjPropValue(a,r,!1,!1,!0,!1)}parseBindingElement(t,r){let a=this.parseMaybeDefault();return(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(a),r.length&&(a.decorators=r,this.resetStartLocationFromNode(a,r[0])),this.parseMaybeDefault(a.loc.start,a)}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){if(t??(t=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let a=this.startNodeAt(t);return r.type==="VoidPattern"&&this.raise(X.VoidPatternInitializer,r),a.left=r,a.right=this.parseMaybeAssignAllowIn(),this.finishNode(a,"AssignmentPattern")}isValidLVal(t,r,a,n){switch(t){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;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,a=64,n=!1,s=!1,i=!1,o=!1){var l;let c=t.type;if(this.isObjectMethod(t))return;let u=this.isOptionalMemberExpression(t);if(u||c==="MemberExpression"){u&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(X.InvalidLhsOptionalChaining,t,{ancestor:r})),a!==64&&this.raise(X.InvalidPropertyBindingPattern,t);return}if(c==="Identifier"){this.checkIdentifier(t,a,s);let{name:g}=t;n&&(n.has(g)?this.raise(X.ParamDupe,t):n.add(g));return}else c==="VoidPattern"&&r.type==="CatchClause"&&this.raise(X.VoidPatternCatchClauseParam,t);let d=TN(t);o||(o=d.type==="CallExpression"&&(d.callee.type==="Import"||d.callee.type==="Super"));let f=this.isValidLVal(c,o,!(i||(l=t.extra)!=null&&l.parenthesized)&&r.type==="AssignmentExpression",a);if(f===!0)return;if(f===!1){let g=a===64?X.InvalidLhs:X.InvalidLhsBinding;this.raise(g,t,{ancestor:r});return}let p,m;typeof f=="string"?(p=f,m=c==="ParenthesizedExpression"):[p,m]=f;let h=c==="ArrayPattern"||c==="ObjectPattern"?{type:c}:r,x=t[p];if(Array.isArray(x))for(let g of x)g&&this.checkLVal(g,h,a,n,s,m,!0);else x&&this.checkLVal(x,h,a,n,s,m,o)}checkIdentifier(t,r,a=!1){this.state.strict&&(a?r4(t.name,this.inModule):t4(t.name))&&(r===64?this.raise(X.StrictEvalArguments,t,{referenceName:t.name}):this.raise(X.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(X.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(X.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?X.RestTrailingComma:X.ElementAfterRest,this.state.startLoc),!0):!1}},aN=/in(?:stanceof)?|as|satisfies/y;function koe(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function HB(e){if(!e)throw new Error("Assert fail")}var gt=Sc`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 `() => ...`.",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 Moe(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}}function $B(e){return e==="private"||e==="public"||e==="protected"}function Doe(e){return e==="in"||e==="out"}var _oe=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:gt.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:gt.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:gt.InvalidModifierOnTypeParameter})}getScopeHandler(){return uN}tsIsIdentifier(){return Qr(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()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,a,n){if(!Qr(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let s=this.state.value;if(r.includes(s)){if(n&&this.match(106)||a&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:a,stopOnStartOfClassStaticBlock:n,errorTemplate:s=gt.InvalidModifierOnTypeMember},i){let o=(c,u,d,f)=>{u===d&&i[f]&&this.raise(gt.InvalidModifiersOrder,c,{orderedModifiers:[d,f]})},l=(c,u,d,f)=>{(i[d]&&u===f||i[f]&&u===d)&&this.raise(gt.IncompatibleModifiers,c,{modifiers:[d,f]})};for(;;){let{startLoc:c}=this.state,u=this.tsParseModifier(r.concat(a??[]),n,i.static);if(!u)break;$B(u)?i.accessibility?this.raise(gt.DuplicateAccessibilityModifier,c,{modifier:u}):(o(c,u,u,"override"),o(c,u,u,"static"),o(c,u,u,"readonly"),i.accessibility=u):Doe(u)?(i[u]&&this.raise(gt.DuplicateModifier,c,{modifier:u}),i[u]=!0,o(c,u,"in","out")):(hasOwnProperty.call(i,u)?this.raise(gt.DuplicateModifier,c,{modifier:u}):(o(c,u,"static","readonly"),o(c,u,"static","override"),o(c,u,"override","readonly"),o(c,u,"abstract","override"),l(c,u,"declare","override"),l(c,u,"static","abstract")),i[u]=!0),a!=null&&a.includes(u)&&this.raise(s,c,{modifier:u})}}tsIsListTerminator(r){switch(r){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(r,a){let n=[];for(;!this.tsIsListTerminator(r);)n.push(a());return n}tsParseDelimitedList(r,a,n){return koe(this.tsParseDelimitedListWorker(r,a,!0,n))}tsParseDelimitedListWorker(r,a,n,s){let i=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=a();if(l==null)return;if(i.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;n&&this.expect(12);return}return s&&(s.value=o),i}tsParseBracketedList(r,a,n,s,i){s||(n?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,a,i);return n?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.parseStringLiteral(this.state.value):(this.raise(gt.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let a=this.startNode();return this.isContextual(76)?(a.method=!1,a.key=this.parseIdentifier(!0),a.computed=!1,a.shorthand=!1):this.unexpected(null,76),this.expect(14),a.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(a)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),a=[];for(this.expect(5);!this.match(8);){let n=this.state.type;Qr(n)||n===134?a.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=a,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let a;if(r&1&&this.match(78))if(r&2)a=this.parseIdentifier(!0);else{let n=this.startNode();this.next(),a=this.finishNode(n,"ThisExpression")}else a=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let n=this.startNodeAtNode(a);n.left=a,n.right=this.parseIdentifier(!!(r&1)),a=this.finishNode(n,"TSQualifiedName")}return a}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let a=this.startNodeAtNode(r);return a.parameterName=r,a.typeAnnotation=this.tsParseTypeAnnotation(!1),a.asserts=!1,this.finishNode(a,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let a=this.startNode();return r(a),a.name=this.tsParseTypeParameterName(),a.constraint=this.tsEatThenParseType(81),a.default=this.tsEatThenParseType(29),this.finishNode(a,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let a=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return a.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,n),a.params.length===0&&this.raise(gt.EmptyTypeParameters,a),n.value!==-1&&this.addExtra(a,"trailingComma",n.value),this.finishNode(a,"TSTypeParameterDeclaration")}tsFillSignature(r,a){let n=r===19,s="parameters",i="typeAnnotation";a.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),a[s]=this.tsParseBindingListForSignature(),n?a[i]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(a[i]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let a of r){let{type:n}=a;(n==="AssignmentPattern"||n==="TSParameterProperty")&&this.raise(gt.UnsupportedSignatureParameterKind,a,{type:n})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,a){return this.tsFillSignature(14,a),this.tsParseTypeMemberSemicolon(),this.finishNode(a,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),Qr(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let a=this.parseIdentifier();a.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(a),this.expect(3),r.parameters=[a];let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,a){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){a&&this.raise(gt.ReadonlyForMethodSignature,r);let n=r;n.kind&&this.match(47)&&this.raise(gt.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let s="parameters",i="typeAnnotation";if(n.kind==="get")n[s].length>0&&(this.raise(X.BadGetterArity,this.state.curPosition()),this.isThisParam(n[s][0])&&this.raise(gt.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind==="set"){if(n[s].length!==1)this.raise(X.BadSetterArity,this.state.curPosition());else{let o=n[s][0];this.isThisParam(o)&&this.raise(gt.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(gt.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(gt.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[i]&&this.raise(gt.SetAccessorCannotHaveReturnType,n[i])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}else{let n=r;a&&(n.readonly=!0);let s=this.tsTryParseTypeAnnotation();return s&&(n.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let n=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(n,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let a=this.tsTryParseIndexSignature(r);return a||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0);{let a=this.startNode();a.name=this.tsParseTypeParameterName(),a.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(a,"TSTypeParameter")}return r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let a=!1;return r.elementTypes.forEach(n=>{let{type:s}=n;a&&s!=="TSRestType"&&s!=="TSOptionalType"&&!(s==="TSNamedTupleMember"&&n.optional)&&this.raise(gt.OptionalTypeBeforeRequired,n),a||(a=s==="TSNamedTupleMember"&&n.optional||s==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,a=this.eat(21),{startLoc:n}=this.state,s,i,o,l,u=zl(this.state.type)?this.lookaheadCharCode():null;if(u===58)s=!0,o=!1,i=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(u===63){o=!0;let d=this.state.value,f=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(s=!0,i=this.createIdentifier(this.startNodeAt(n),d),this.expect(17),this.expect(14),l=this.tsParseType()):(s=!1,l=f,this.expect(17))}else l=this.tsParseType(),o=this.eat(17),s=this.eat(14);if(s){let d;i?(d=this.startNodeAt(n),d.optional=o,d.label=i,d.elementType=l,this.eat(17)&&(d.optional=!0,this.raise(gt.TupleOptionalAfterType,this.state.lastTokStartLoc))):(d=this.startNodeAt(n),d.optional=o,this.raise(gt.InvalidTupleMemberLabel,l),d.label=l,d.elementType=this.tsParseType()),l=this.finishNode(d,"TSNamedTupleMember")}else if(o){let d=this.startNodeAt(n);d.typeAnnotation=l,l=this.finishNode(d,"TSOptionalType")}if(a){let d=this.startNodeAt(r);d.typeAnnotation=l,l=this.finishNode(d,"TSRestType")}return l}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,a){let n=this.startNode();return r==="TSConstructorType"&&(n.abstract=!!a,a&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){{let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),a=this.lookahead();return a.type!==135&&a.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"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:{let{type:r}=this.state;if(Qr(r)||r===88||r===84){let a=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":Moe(this.state.value);if(a!==void 0&&this.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,a)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,a=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAt(r);n.elementType=a,this.expect(3),a=this.finishNode(n,"TSArrayType")}else{let n=this.startNodeAt(r);n.objectType=a,n.indexType=this.tsParseType(),this.expect(3),a=this.finishNode(n,"TSIndexedAccessType")}return a}tsParseTypeOperator(){let r=this.startNode(),a=this.state.value;return this.next(),r.operator=a,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),a==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(gt.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let a=this.startNode();return a.name=this.tsParseTypeParameterName(),a.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(a,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return toe(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,a,n){let s=this.startNode(),i=this.eat(n),o=[];do o.push(a());while(this.eat(n));return o.length===1&&!i?o[0]:(s.types=o,this.finishNode(s,r))}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)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Qr(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,a=r.length;try{return this.parseObjectLike(8,!0),r.length===a}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,a=r.length;try{return super.parseBindingList(3,93,1),r.length===a}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let a=this.startNode();this.expect(r);let n=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(n.parameterName=l,n.asserts=!0,n.typeAnnotation=null,l=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(l,n),l.asserts=!0),a.typeAnnotation=l,this.finishNode(a,"TSTypeAnnotation")}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return s?(n.parameterName=this.parseIdentifier(),n.asserts=s,n.typeAnnotation=null,a.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(a,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,a);let o=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=o,n.asserts=s,a.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(a,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!Qr(this.state.type)&&!this.match(78)?!1:(r&&this.raise(X.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,a=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),a.typeAnnotation=this.tsParseType()}),this.finishNode(a,"TSTypeAnnotation")}tsParseType(){HB(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let a=this.startNodeAtNode(r);return a.checkType=r,a.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),a.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),a.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(a,"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(gt.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let a=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let s=this.startNode();return s.expression=this.tsParseEntityName(3),this.match(47)&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSExpressionWithTypeArguments")}});return n.length||this.raise(gt.EmptyHeritageClauseType,a,{token:r}),n}tsParseInterfaceDeclaration(r,a={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),a.declare&&(r.declare=!0),Qr(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(gt.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let a=this.startNode();return this.next(),this.finishNode(a,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==Gr.brace){let a=this.state.context;this.state.context=[a[0]];try{return r()}finally{this.state.context=a}}else return r()}tsInType(r){let a=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=a}}tsInDisallowConditionalTypesContext(r){let a=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=a}}tsInAllowConditionalTypesContext(r){let a=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=a}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,a={}){return a.const&&(r.const=!0),a.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,a=!1){if(r.id=this.parseIdentifier(),a||this.checkIdentifier(r.id,1024),this.eat(16)){let n=this.startNode();this.tsParseModuleOrNamespaceDeclaration(n,!0),r.body=n}else this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.global=!0,r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,a,n){r.isExport=n||!1,r.id=a||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let s=this.tsParseModuleReference();return r.importKind==="type"&&s.type!=="TSExternalModuleReference"&&this.raise(gt.ImportAliasHasImportType,s),r.moduleReference=s,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let a=this.state.clone(),n=r();return this.state=a,n}tsTryParseAndCatch(r){let a=this.tryParse(n=>r()||n());if(!(a.aborted||!a.node))return a.error&&(this.state=a.failState),a.node}tsTryParse(r){let a=this.state.clone(),n=r();if(n!==void 0&&n!==!1)return n;this.state=a}tsTryParseDeclare(r){if(this.isLineTerminator())return;let a=this.state.type;return this.tsInAmbientContext(()=>{switch(a){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(gt.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(gt.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let n=this.tsParseInterfaceDeclaration(r,{declare:!0});if(n)return n}default:if(Qr(a))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,a,n,s){switch(a){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||Qr(this.state.type)))return this.tsParseAbstractDeclaration(r,s);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(Qr(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(n)&&Qr(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(n)&&Qr(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let a=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let s=this.startNodeAt(r);return s.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),s});if(this.state.maybeInArrowParameters=a,!!n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(gt.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===Gr.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return roe(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,a){let n=a.length?a[0].loc.start:this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);let i=s.accessibility,o=s.override,l=s.readonly;!(r&4)&&(i||l||o)&&this.raise(gt.UnexpectedParameterModifier,n);let c=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(c);let u=this.parseMaybeDefault(c.loc.start,c);if(i||l||o){let d=this.startNodeAt(n);return a.length&&(d.decorators=a),i&&(d.accessibility=i),l&&(d.readonly=l),o&&(d.override=o),u.type!=="Identifier"&&u.type!=="AssignmentPattern"&&this.raise(gt.UnsupportedParameterPropertyKind,d),d.parameter=u,this.finishNode(d,"TSParameterProperty")}return a.length&&(c.decorators=a),u}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let a of r.params)a.type!=="Identifier"&&a.optional&&!this.state.isAmbientContext&&this.raise(gt.PatternIsOptional,a)}setArrowFunctionParameters(r,a,n){super.setArrowFunctionParameters(r,a,n),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,a,n=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let s=a==="FunctionDeclaration"?"TSDeclareFunction":a==="ClassMethod"||a==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,s):s==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(gt.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,s,n):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,a,n))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(a=>{a?.type==="TSTypeCastExpression"&&this.raise(gt.UnexpectedTypeAnnotation,a.typeAnnotation)})}toReferencedList(r,a){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,a,n){let s=super.parseArrayLike(r,a,n);return s.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(s.elements),s}parseSubscript(r,a,n,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(a);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let i=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return s.stop=!0,r;s.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(r)){let f=this.tsTryParseGenericAsyncArrowFunction(a);if(f)return s.stop=!0,f}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(i&&!this.match(10)){o=this.state.curPosition();return}if(ww(this.state.type)){let f=super.parseTaggedTemplateExpression(r,a,s);return f.typeParameters=c,f}if(!n&&this.eat(10)){let f=this.startNodeAt(a);return f.callee=r,f.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(f.arguments),f.typeParameters=c,s.optionalChainMember&&(f.optional=i),this.finishCallExpression(f,s.optionalChainMember)}let u=this.state.type;if(u===48||u===52||u!==10&&i0(u)&&!this.hasPrecedingLineBreak())return;let d=this.startNodeAt(a);return d.expression=r,d.typeParameters=c,this.finishNode(d,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(gt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(l.expression=super.stopParseSubscript(r,s))),l}return super.parseSubscript(r,a,n,s)}parseNewCallee(r){var a;super.parseNewCallee(r);let{callee:n}=r;n.type==="TSInstantiationExpression"&&!((a=n.extra)!=null&&a.parenthesized)&&(r.typeParameters=n.typeParameters,r.callee=n.expression)}parseExprOp(r,a,n){let s;if(vw(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){let i=this.startNodeAt(a);return i.expression=r,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(s&&this.raise(X.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,a,n)}return super.parseExprOp(r,a,n)}checkReservedWord(r,a,n,s){this.state.isAmbientContext||super.checkReservedWord(r,a,n,s)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(gt.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let a=this.lookaheadCharCode();return r?a===123||a===42:a!==61}return!r&&this.isContextual(87)}applyImportPhase(r,a,n,s){super.applyImportPhase(r,a,n,s),a?r.exportKind=n==="type"?"type":"value":r.importKind=n==="type"||n==="typeof"?n:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let a;if(Qr(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,n);a=super.parseImportSpecifiersAndAfter(r,n)}else a=super.parseImport(r);return a.importKind==="type"&&a.specifiers.length>1&&a.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(gt.TypeImportCannotSpecifyDefaultAndNamed,a),a}parseExport(r,a){if(this.match(83)){let n=r;this.next();let s=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(n,!1):n.importKind="value",this.tsParseImportEqualsDeclaration(n,s,!0)}else if(this.eat(29)){let n=r;return n.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(n,"TSExportAssignment")}else if(this.eatContextual(93)){let n=r;return this.expectContextual(128),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}else return super.parseExport(r,a)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,a,n=!1){let{isAmbientContext:s}=this.state,i=super.parseVarStatement(r,a,n||s);if(!s)return i;if(!r.declare&&(a==="using"||a==="await using"))return this.raiseOverwrite(gt.UsingDeclarationInAmbientContext,r,a),i;for(let{id:o,init:l}of i.declarations)l&&(a==="var"||a==="let"||o.typeAnnotation?this.raise(gt.InitializerNotAllowedInAmbientContext,l):Foe(l,this.hasPlugin("estree"))||this.raise(gt.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l));return i}parseStatementContent(r,a){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let n=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(n,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let n=this.state.type,s=this.startNode();this.next();let i=n===125?this.tsTryParseDeclare(s):this.tsParseAbstractDeclaration(s,a);return i?(n===125&&(i.declare=!0),i):(s.expression=this.createIdentifier(this.startNodeAt(s.loc.start),n===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(s,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let s=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(s)}break}case 129:{let n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,127,!1,a)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,128,!1,a)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(n)}break}}return super.parseStatementContent(r,a)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,a){return a.some(n=>$B(n)?r.accessibility===n:!!r[n])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,a,n){let s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:gt.InvalidModifierOnTypeParameterPositions},a);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(a,s)&&this.raise(gt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,a)):this.parseClassMemberWithIsStatic(r,a,n,!!a.static)};a.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(r,a,n,s){let i=this.tsTryParseIndexSignature(a);if(i){r.body.push(i),a.abstract&&this.raise(gt.IndexSignatureHasAbstract,a),a.accessibility&&this.raise(gt.IndexSignatureHasAccessibility,a,{modifier:a.accessibility}),a.declare&&this.raise(gt.IndexSignatureHasDeclare,a),a.override&&this.raise(gt.IndexSignatureHasOverride,a);return}!this.state.inAbstractClass&&a.abstract&&this.raise(gt.NonAbstractClassHasAbstractMethod,a),a.override&&(n.hadSuperClass||this.raise(gt.OverrideNotInSubClass,a)),super.parseClassMemberWithIsStatic(r,a,n,s)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(gt.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(gt.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,a,n){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let s=this.lookaheadCharCode();if(s===44||s===61||s===58||s===41)return this.setOptionalParametersError(n),r}return super.parseConditional(r,a,n)}parseParenItem(r,a){let n=super.parseParenItem(r,a);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(a);return s.expression=r,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let a=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(gt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let i=Qr(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return i?((i.type==="TSInterfaceDeclaration"||i.type==="TSTypeAliasDeclaration"||n)&&(r.exportKind="type"),n&&i.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(i,a),i.declare=!0),i):null}parseClassId(r,a,n,s){if((!a||n)&&this.isContextual(113))return;super.parseClassId(r,a,n,r.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(r.typeParameters=i)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let a=this.tsTryParseTypeAnnotation();a&&(r.typeAnnotation=a)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(gt.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:a}=r;this.raise(gt.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:a.type==="Identifier"&&!r.computed?a.name:`[${this.input.slice(this.offsetToSourcePos(a.start),this.offsetToSourcePos(a.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(gt.PrivateElementHasAbstract,r),r.accessibility&&this.raise(gt.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(gt.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,a,n,s,i,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&i&&this.raise(gt.ConstructorHasTypeParameters,l);let{declare:c=!1,kind:u}=a;c&&(u==="get"||u==="set")&&this.raise(gt.DeclareAccessor,a,{kind:u}),l&&(a.typeParameters=l),super.pushClassMethod(r,a,n,s,i,o)}pushClassPrivateMethod(r,a,n,s){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(a.typeParameters=i),super.pushClassPrivateMethod(r,a,n,s)}declareClassPrivateMethodInScope(r,a){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,a))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,a,n,s,i,o,l){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(r.typeParameters=c),super.parseObjPropValue(r,a,n,s,i,o,l)}parseFunctionParams(r,a){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(r.typeParameters=n),super.parseFunctionParams(r,a)}parseVarId(r,a){super.parseVarId(r,a),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(r.id.typeAnnotation=n,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,a){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,a)}parseMaybeAssign(r,a){var n,s,i,o,l;let c,u,d;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(c=this.state.clone(),u=this.tryParse(()=>super.parseMaybeAssign(r,a),c),!u.error)return u.node;let{context:m}=this.state,h=m[m.length-1];(h===Gr.j_oTag||h===Gr.j_expr)&&m.pop()}if(!((n=u)!=null&&n.error)&&!this.match(47))return super.parseMaybeAssign(r,a);(!c||c===this.state)&&(c=this.state.clone());let f,p=this.tryParse(m=>{var h,x;f=this.tsParseTypeParameters(this.tsParseConstModifier);let g=super.parseMaybeAssign(r,a);return(g.type!=="ArrowFunctionExpression"||(h=g.extra)!=null&&h.parenthesized)&&m(),((x=f)==null?void 0:x.params.length)!==0&&this.resetStartLocationFromNode(g,f),g.typeParameters=f,g},c);if(!p.error&&!p.aborted)return f&&this.reportReservedArrowTypeParam(f),p.node;if(!u&&(HB(!this.hasPlugin("jsx")),d=this.tryParse(()=>super.parseMaybeAssign(r,a),c),!d.error))return d.node;if((s=u)!=null&&s.node)return this.state=u.failState,u.node;if(p.node)return this.state=p.failState,f&&this.reportReservedArrowTypeParam(f),p.node;if((i=d)!=null&&i.node)return this.state=d.failState,d.node;throw((o=u)==null?void 0:o.error)||p.error||((l=d)==null?void 0:l.error)}reportReservedArrowTypeParam(r){var a;r.params.length===1&&!r.params[0].constraint&&!((a=r.extra)!=null&&a.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(gt.ReservedArrowTypeParam,r)}parseMaybeUnary(r,a){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,a)}parseArrow(r){if(this.match(14)){let a=this.tryParse(n=>{let s=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&n(),s});if(a.aborted)return;a.thrown||(a.error&&(this.state=a.failState),r.returnType=a.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let a=this.tsTryParseTypeAnnotation();return a&&(r.typeAnnotation=a),this.resetEndLocation(r),r}isAssignable(r,a){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,a);case"TSParameterProperty":return!0;default:return super.isAssignable(r,a)}}toAssignable(r,a=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,a);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":a?this.expressionScope.recordArrowParameterBindingError(gt.UnexpectedTypeCastInParameter,r):this.raise(gt.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,a);break;case"AssignmentExpression":!a&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,a)}}toAssignableParenthesizedExpression(r,a){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,a);break;default:super.toAssignable(r,a)}}checkToRestConversion(r,a){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,a)}}isValidLVal(r,a,n,s){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(s!==64||!n)&&["expression",!0];default:return super.isValidLVal(r,a,n,s)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,a){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let s=super.parseMaybeDecoratorArguments(r,a);return s.typeParameters=n,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,a)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,a){let n=super.parseMaybeDefault(r,a);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.startthis.isAssignable(a,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let a=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());a&&(r.typeParameters=a)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let a=super.getGetterSetterExpectedParamCount(r),s=this.getObjectOrClassMethodParams(r)[0];return s&&this.isThisParam(s)?a+1:a}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),a=this.tsTryParseTypeAnnotation();return a&&(r.typeAnnotation=a,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:a,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=a,this.state.strict=n}}parseClass(r,a,n){let s=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,a,n)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(r,a){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(a,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(gt.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,a,n,s,i,o,l){let c=super.parseMethod(r,a,n,s,i,o,l);if((c.abstract||c.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?c.value:c).body){let{key:f}=c;this.raise(gt.AbstractMethodHasImplementation,c,{methodName:f.type==="Identifier"&&!c.computed?f.name:`[${this.input.slice(this.offsetToSourcePos(f.start),this.offsetToSourcePos(f.end))}]`})}return c}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(r,a,n,s){return!a&&s?(this.parseTypeOnlyImportExportSpecifier(r,!1,n),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,a,n,s))}parseImportSpecifier(r,a,n,s,i){return!a&&s?(this.parseTypeOnlyImportExportSpecifier(r,!0,n),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,a,n,s,n?4098:4096))}parseTypeOnlyImportExportSpecifier(r,a,n){let s=a?"imported":"local",i=a?"local":"exported",o=r[s],l,c=!1,u=!0,d=o.loc.start;if(this.isContextual(93)){let p=this.parseIdentifier();if(this.isContextual(93)){let m=this.parseIdentifier();zl(this.state.type)?(c=!0,o=p,l=a?this.parseIdentifier():this.parseModuleExportName(),u=!1):(l=m,u=!1)}else zl(this.state.type)?(u=!1,l=a?this.parseIdentifier():this.parseModuleExportName()):(c=!0,o=p)}else zl(this.state.type)&&(c=!0,a?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());c&&n&&this.raise(a?gt.TypeModifierIsUsedInTypeImports:gt.TypeModifierIsUsedInTypeExports,d),r[s]=o,r[i]=l;let f=a?"importKind":"exportKind";r[f]=c?"type":"value",u&&this.eatContextual(93)&&(r[i]=a?this.parseIdentifier():this.parseModuleExportName()),r[i]||(r[i]=this.cloneIdentifier(r[s])),a&&this.checkIdentifier(r[i],c?4098:4096)}fillOptionalPropertiesForTSESLint(r){var a,n,s,i,o,l,c,u,d,f,p,m,h,x,g,y,v,S,w,P,C,N,R,O,D,W,J,me,Z,q,V,L,k,_,ee,ie,ae,ge,ue,$,A,K,he,H,xe,Pe,Ie,Ve;switch(r.type){case"ExpressionStatement":(a=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(n=r.decorators)!=null||(r.decorators=[]),(s=r.optional)!=null||(r.optional=!1),(i=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(o=r.accessibility)!=null||(r.accessibility=void 0),(l=r.decorators)!=null||(r.decorators=[]),(c=r.override)!=null||(r.override=!1),(u=r.readonly)!=null||(r.readonly=!1),(d=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(f=r.declare)!=null||(r.declare=!1),(p=r.returnType)!=null||(r.returnType=void 0),(m=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(h=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(x=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(g=r.accessibility)!=null||(r.accessibility=void 0),(y=r.readonly)!=null||(r.readonly=!1),(v=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(S=r.declare)!=null||(r.declare=!1),(w=r.definite)!=null||(r.definite=!1),(P=r.readonly)!=null||(r.readonly=!1),(C=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(N=r.accessibility)!=null||(r.accessibility=void 0),(R=r.decorators)!=null||(r.decorators=[]),(O=r.override)!=null||(r.override=!1),(D=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(W=r.id)!=null||(r.id=null);case"ClassDeclaration":(J=r.abstract)!=null||(r.abstract=!1),(me=r.declare)!=null||(r.declare=!1),(Z=r.decorators)!=null||(r.decorators=[]),(q=r.implements)!=null||(r.implements=[]),(V=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(L=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(k=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":(_=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":(ee=r.const)!=null||(r.const=!1),(ie=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(ae=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(ge=r.qualifier)!=null||(r.qualifier=null),(ue=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":($=r.declare)!=null||(r.declare=!1),(A=r.extends)!=null||(r.extends=[]);return;case"TSMappedType":(K=r.optional)!=null||(r.optional=!1),(he=r.readonly)!=null||(r.readonly=void 0);return;case"TSModuleDeclaration":(H=r.declare)!=null||(r.declare=!1),(xe=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":(Pe=r.const)!=null||(r.const=!1),(Ie=r.in)!=null||(r.in=!1),(Ve=r.out)!=null||(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,a){if(Tc(r)){if(aN.lastIndex=a,aN.test(this.input)){let n=this.codePointAtPos(aN.lastIndex);if(!Zp(n)&&n!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),a=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(a,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),a=this.codePointAtPos(r);return this.chStartsBindingIdentifier(a,r)||a===34||a===39}};function Ooe(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:l4(e.object)}function Foe(e,t){var r;let{type:a}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(a==="Literal"){let{value:n}=e;if(typeof n=="string"||typeof n=="boolean")return!0}}else if(a==="StringLiteral"||a==="BooleanLiteral")return!0;return!!(o4(e,t)||Boe(e,t)||a==="TemplateLiteral"&&e.expressions.length===0||Ooe(e))}function o4(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function Boe(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:a}=e;if(r==="-"&&o4(a,t))return!0}return!1}function l4(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:l4(e.object)}var GB=Sc`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Uoe=e=>class extends e{parsePlaceholder(r){if(this.match(133)){let a=this.startNode();return this.next(),this.assertNoSpace(),a.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(a,r)}}finishPlaceholder(r,a){let n=r;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,"Placeholder")),n.expectedNode=a,n}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,a,n,s){r!==void 0&&super.checkReservedWord(r,a,n,s)}cloneIdentifier(r){let a=super.cloneIdentifier(r);return a.type==="Placeholder"&&(a.expectedNode=r.expectedNode),a}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,a,n,s){return r==="Placeholder"||super.isValidLVal(r,a,n,s)}toAssignable(r,a){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,a)}chStartsBindingIdentifier(r,a){if(super.chStartsBindingIdentifier(r,a))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(r,a){r.label&&r.label.type==="Placeholder"||super.verifyBreakContinue(r,a)}parseExpressionStatement(r,a){var n;if(a.type!=="Placeholder"||(n=a.extra)!=null&&n.parenthesized)return super.parseExpressionStatement(r,a);if(this.match(14)){let i=r;return i.label=this.finishPlaceholder(a,"Identifier"),this.next(),i.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(i,"LabeledStatement")}this.semicolon();let s=r;return s.name=a.name,this.finishPlaceholder(s,"Statement")}parseBlock(r,a,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,a,n)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,a,n){let s=a?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))r.id=o;else{if(n||!a)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,s);throw this.raise(GB.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,a,n);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,i),this.finishNode(r,s)}parseExport(r,a){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(r,a);let s=r;if(!this.isContextual(98)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let i=this.startNode();return i.exported=n,s.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(s,a)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(Xd(133),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,a){var n;return(n=r.specifiers)!=null&&n.length?!0:super.maybeParseExportDefaultSpecifier(r,a)}checkExport(r){let{specifiers:a}=r;a!=null&&a.length&&(r.specifiers=a.filter(n=>n.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=a}parseImport(r){let a=this.parsePlaceholder("Identifier");if(!a)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(a,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let n=this.startNodeAtNode(a);return n.local=a,r.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(GB.UnexpectedSpace,this.state.lastTokEndLoc)}},joe=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,a=this.startNode();if(this.next(),Qr(this.state.type)){let n=this.parseIdentifierName(),s=this.createIdentifier(a,n);if(this.castNodeTo(s,"V8IntrinsicIdentifier"),this.match(10))return s}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},KB=["minimal","fsharp","hack","smart"],WB=["^^","@@","^","%","#"];function zoe(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let a=e.get("decorators").decoratorsBeforeExport;if(a!=null&&typeof a!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let n=e.get("decorators").allowCallParenthesized;if(n!=null&&typeof n!="boolean")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;let a=e.get("pipelineOperator").proposal;if(!KB.includes(a)){let n=KB.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${n}.`)}if(a==="hack"){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.");let n=e.get("pipelineOperator").topicToken;if(!WB.includes(n)){let s=WB.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}{var r;if(n==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}}else if(a==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash")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(e.get("moduleAttributes").version!=="may-2020")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")){let a=e.get("recordAndTuple").syntaxType;if(a!=null){let n=["hash","bar"];if(!n.includes(a))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+n.map(s=>`'${s}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let a=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw a.missingPlugins="doExpressions",a}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")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")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var c4={estree:$ie,jsx:woe,flow:boe,typescript:_oe,v8intrinsic:joe,placeholders:Uoe},Voe=Object.keys(c4),CN=class extends wN{checkProto(t,r,a,n){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return a;let s=t.key;return(s.type==="Identifier"?s.name:s.value)==="__proto__"?r?(this.raise(X.RecordNoProto,s),!0):(a&&(n?n.doubleProtoLoc===null&&(n.doubleProtoLoc=s.loc.start):this.raise(X.DuplicateProto,s)),!0):a}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(X.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(X.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,a=this.parseMaybeAssign(t);if(this.match(12)){let n=this.startNodeAt(r);for(n.expressions=[a];this.eat(12);)n.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return a}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,r){let a=this.state.startLoc,n=this.isContextual(108);if(n&&this.prodParam.hasYield){this.next();let l=this.parseYield(a);return r&&(l=r.call(this,l,a)),l}let s;t?s=!1:(t=new Sg,s=!0);let{type:i}=this.state;(i===10||Qr(i))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,a)),Yie(this.state.type)){let l=this.startNodeAt(a),c=this.state.value;if(l.operator=c,this.match(29)){this.toAssignable(o,!0),l.left=o;let u=a.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=u&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=u&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=u&&(t.voidPatternLoc=null)}else l.left=o;return this.next(),l.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(l,"AssignmentExpression"),void 0,void 0,void 0,void 0,c==="||="||c==="&&="||c==="??="),l}else s&&this.checkExpressionErrors(t,!0);if(n){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?i0(l):i0(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(X.YieldNotInGeneratorFunction,a),this.parseYield(a)}return o}parseMaybeConditional(t){let r=this.state.startLoc,a=this.state.potentialArrowAt,n=this.parseExprOps(t);return this.shouldExitDescending(n,a)?n:this.parseConditional(n,r,t)}parseConditional(t,r,a){if(this.eat(17)){let n=this.startNodeAt(r);return n.test=t,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,a=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(n,a)?n:this.parseExprOp(n,r,-1)}parseExprOp(t,r,a){if(this.isPrivateName(t)){let s=this.getPrivateNameSV(t);(a>=vw(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(X.PrivateInExpectedIn,t,{identifierName:s}),this.classScope.usePrivateName(s,t.loc.start)}let n=this.state.type;if(Qie(n)&&(this.prodParam.hasIn||!this.match(58))){let s=vw(n);if(s>a){if(n===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let i=this.startNodeAt(r);i.left=t,i.operator=this.state.value;let o=n===41||n===42,l=n===40;if(l&&(s=vw(42)),this.next(),n===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(X.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);i.right=this.parseExprOpRightExpr(n,s);let c=this.finishNode(i,o||l?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(l&&(u===41||u===42)||o&&u===40)throw this.raise(X.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,r,a)}}return t}parseExprOpRightExpr(t,r){let a=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(X.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),a)});default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let a=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),a,aoe(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,a=this.parseMaybeAssign();return Bie.has(a.type)&&!((t=a.extra)!=null&&t.parenthesized)&&this.raise(X.PipeUnparenthesizedBody,r,{type:a.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(X.PipeTopicUnused,r),a}checkExponentialAfterUnary(t){this.match(57)&&this.raise(X.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let a=this.state.startLoc,n=this.isContextual(96);if(n&&this.recordAwaitIfAllowed()){this.next();let l=this.parseAwait(a);return r||this.checkExponentialAfterUnary(l),l}let s=this.match(34),i=this.startNode();if(eoe(this.state.type)){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&l){let c=i.argument;c.type==="Identifier"?this.raise(X.StrictDelete,i):this.hasPropertyAsPrivateName(c)&&this.raise(X.DeletePrivateField,i)}if(!s)return r||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}let o=this.parseUpdate(i,s,t);if(n){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?i0(l):i0(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(X.AwaitNotInAsyncContext,a),this.parseAwait(a)}return o}parseUpdate(t,r,a){if(r){let i=t;return this.checkLVal(i.argument,this.finishNode(i,"UpdateExpression")),t}let n=this.state.startLoc,s=this.parseExprSubscripts(a);if(this.checkExpressionErrors(a,!1))return s;for(;Zie(this.state.type)&&!this.canInsertSemicolon();){let i=this.startNodeAt(n);i.operator=this.state.value,i.prefix=!1,i.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(i,"UpdateExpression"))}return s}parseExprSubscripts(t){let r=this.state.startLoc,a=this.state.potentialArrowAt,n=this.parseExprAtom(t);return this.shouldExitDescending(n,a)?n:this.parseSubscripts(n,r)}parseSubscripts(t,r,a){let n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,a,n),n.maybeAsyncArrow=!1;while(!n.stop);return t}parseSubscript(t,r,a,n){let{type:s}=this.state;if(!a&&s===15)return this.parseBind(t,r,a,n);if(ww(s))return this.parseTaggedTemplateExpression(t,r,n);let i=!1;if(s===18){if(a&&(this.raise(X.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,n);n.optionalChainMember=i=!0,this.next()}if(!a&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,n,i);{let o=this.eat(0);return o||i||this.eat(16)?this.parseMember(t,r,n,o,i):this.stopParseSubscript(t,n)}}stopParseSubscript(t,r){return r.stop=!0,t}parseMember(t,r,a,n,s){let i=this.startNodeAt(r);return i.object=t,i.computed=n,n?(i.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(X.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),a.optionalChainMember?(i.optional=s,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(t,r,a,n){let s=this.startNodeAt(r);return s.object=t,this.next(),s.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),r,a)}parseCoverCallAndAsyncArrowHead(t,r,a,n){let s=this.state.maybeInArrowParameters,i=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:l,optionalChainMember:c}=a;l&&(this.expressionScope.enter(Roe()),i=new Sg),c&&(o.optional=n),n?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(t.type!=="Super",o,i);let u=this.finishCallExpression(o,c);return l&&this.shouldParseAsyncArrow()&&!n?(a.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),u)):(l&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedArguments(u)),this.state.maybeInArrowParameters=s,u}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,a){let n=this.startNodeAt(r);return n.tag=t,n.quasi=this.parseTemplate(!0),a.optionalChainMember&&this.raise(X.OptionalChainingNoTemplate,r),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(X.ImportCallArity,t);else for(let a of t.arguments)a.type==="SpreadElement"&&this.raise(X.ImportCallSpreadArgument,a);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,a){let n=[],s=!0,i=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(s)s=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}n.push(this.parseExprListItem(11,!1,a,t))}return this.state.inFSharpPipelineDirectBody=i,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var a;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(a=r.extra)==null?void 0:a.trailingCommaLoc),r.innerComments&&d0(t,r.innerComments),r.callee.trailingComments&&d0(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,a=null,{type:n}=this.state;switch(n){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(X.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"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:{let s=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(s)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:a=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(a,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let s=r.callee=this.parseNoCallExpr();if(s.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(X.UnsupportedBind,s)}case 139:return this.raise(X.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:{let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);throw this.unexpected()}case 47:{let s=this.input.codePointAt(this.nextTokenStart());throw Tc(s)||s===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:{if(n===137)return this.parseDecimalLiteral(this.state.value);if(n===2||n===1)return this.parseArrayLike(this.state.type===2?4:3,!0);if(n===6||n===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0)}if(Qr(n)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let s=this.state.potentialArrowAt===this.state.start,i=this.state.containsEsc,o=this.parseIdentifier();if(!i&&o.name==="async"&&!this.canInsertSemicolon()){let{type:l}=this.state;if(l===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(Qr(l))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return s&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let a=this.getPluginOption("pipelineOperator","proposal");if(a)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=ui(this.state.endLoc,-1),this.parseTopicReference(a);throw this.unexpected()}parseTopicReference(t){let r=this.startNode(),a=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(r,a,t,n)}finishTopicReference(t,r,a,n){if(this.testTopicReferenceConfiguration(a,r,n))return a==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(X.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(X.PrimaryTopicNotAllowed,r),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference"));throw this.raise(X.PipeTopicUnconfiguredToken,r,{token:Xd(n)})}testTopicReferenceConfiguration(t,r,a){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Xd(a)}]);case"smart":return a===27;default:throw this.raise(X.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Sw(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(X.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let a=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=a,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.optionFlags&16||this.raise(X.SuperNotAllowed,t):this.scope.allowSuper||this.optionFlags&16||this.raise(X.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(X.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(ui(this.state.startLoc,1)),a=this.state.value;return this.next(),t.id=this.createIdentifier(r,a),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,a){t.meta=r;let n=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==a||n)&&this.raise(X.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:a}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=r?"source":"defer",this.parseImportCall(t)}else{let r=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(X.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,r,"meta")}}parseLiteralAtNode(t,r,a){return this.addExtra(a,"rawValue",t),this.addExtra(a,"raw",this.input.slice(this.offsetToSourcePos(a.start),this.state.end)),a.value=t,this.next(),this.finishNode(a,r)}parseLiteral(t,r){let a=this.startNode();return this.parseLiteralAtNode(t,r,a)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,a;this.next(),this.expressionScope.enter(Loe());let n=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let i=this.state.startLoc,o=[],l=new Sg,c=!0,u,d;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){d=this.state.startLoc;break}if(this.match(21)){let m=this.state.startLoc;if(u=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),m)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,l,this.parseParenItem))}let f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=s;let p=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(p=this.parseArrow(p))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(p,o,!1),p):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),d&&this.unexpected(d),u&&this.unexpected(u),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(a=this.startNodeAt(i),a.expressions=o,this.finishNode(a,"SequenceExpression"),this.resetEndLocation(a,f)):a=o[0],this.wrapParenthesis(r,a))}wrapParenthesis(t,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let a=this.startNodeAt(t);return a.expression=r,this.finishNode(a,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let a=this.parseMetaProperty(t,r,"target");return this.scope.allowNewTarget||this.raise(X.UnexpectedNewTarget,a),a}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),a=this.parseNoCallExpr();t.callee=a,r&&(a.type==="Import"||a.type==="ImportExpression")&&this.raise(X.ImportCallNotNewExpression,a)}parseTemplateElement(t){let{start:r,startLoc:a,end:n,value:s}=this.state,i=r+1,o=this.startNodeAt(ui(a,1));s===null&&(t||this.raise(X.InvalidEscapeSequenceTemplate,ui(this.state.firstInvalidTemplateEscapePos,1)));let l=this.match(24),c=l?-1:-2,u=n+c;o.value={raw:this.input.slice(i,u).replace(/\r\n?/g,` `),cooked:s===null?null:s.slice(1,c)},o.tail=l,this.next();let d=this.finishNode(o,"TemplateElement");return this.resetEndLocation(d,ui(this.state.lastTokEndLoc,c)),d}parseTemplate(t){let r=this.startNode(),a=this.parseTemplateElement(t),n=[a],s=[];for(;!a.tail;)s.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.push(a=this.parseTemplateElement(t));return r.expressions=s,r.quasis=n,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,a,n){a&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=!1,o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(l);break}let u;r?u=this.parseBindingProperty():(u=this.parsePropertyDefinition(n),i=this.checkProto(u,a,i,n)),a&&!this.isObjectProperty(u)&&u.type!=="SpreadElement"&&this.raise(X.InvalidRecordProperty,u),u.shorthand&&this.addExtra(u,"shorthand",!0),l.properties.push(u)}this.next(),this.state.inFSharpPipelineDirectBody=s;let c="ObjectExpression";return r?c="ObjectPattern":a&&(c="RecordExpression"),this.finishNode(l,c)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(X.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let a=this.startNode(),n=!1,s=!1,i;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(a.decorators=r,r=[]),a.method=!1,t&&(i=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(a);let l=this.state.containsEsc;if(this.parsePropertyName(a,t),!o&&!l&&this.maybeAsyncOrAccessorProp(a)){let{key:c}=a,u=c.name;u==="async"&&!this.hasPrecedingLineBreak()&&(n=!0,this.resetPreviousNodeTrailingComments(c),o=this.eat(55),this.parsePropertyName(a)),(u==="get"||u==="set")&&(s=!0,this.resetPreviousNodeTrailingComments(c),a.kind=u,this.match(55)&&(o=!0,this.raise(X.AccessorIsGenerator,this.state.curPosition(),{kind:u}),this.next()),this.parsePropertyName(a))}return this.parseObjPropValue(a,i,o,n,!1,s,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let a=this.getGetterSetterExpectedParamCount(t),n=this.getObjectOrClassMethodParams(t);n.length!==a&&this.raise(t.kind==="get"?X.BadGetterArity:X.BadSetterArity,t),t.kind==="set"&&((r=n[n.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(X.BadSetterRestParameter,t)}parseObjectMethod(t,r,a,n,s){if(s){let i=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(i),i}if(a||r||this.match(10))return n&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,a,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,a,n){if(t.shorthand=!1,this.eat(14))return t.value=a?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,n),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),a)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let s=this.state.startLoc;n!=null?n.shorthandAssignLoc===null&&(n.shorthandAssignLoc=s):this.raise(X.InvalidCoverInitializedName,s),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,a,n,s,i,o){let l=this.parseObjectMethod(t,a,n,s,i)||this.parseObjectProperty(t,r,s,o);return l||this.unexpected(),l}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:a,value:n}=this.state,s;if(zl(a))s=this.parseIdentifier(!0);else switch(a){case 135:s=this.parseNumericLiteral(n);break;case 134:s=this.parseStringLiteral(n);break;case 136:s=this.parseBigIntLiteral(n);break;case 139:{let i=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=i):this.raise(X.UnexpectedPrivateField,i),s=this.parsePrivateName();break}default:if(a===137){s=this.parseDecimalLiteral(n);break}this.unexpected()}t.key=s,a!==139&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,a,n,s,i,o=!1){this.initFunction(t,a),t.generator=r,this.scope.enter(530|(o?576:0)|(s?32:0)),this.prodParam.enter(Sw(a,t.generator)),this.parseFunctionParams(t,n);let l=this.parseFunctionBodyAndFinish(t,i,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(t,r,a){r&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=this.startNode();return this.next(),s.elements=this.parseExprList(t,!r,a,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,a,n){this.scope.enter(518);let s=Sw(a,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(t,a);let i=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=i,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,a){this.toAssignableList(r,a,!1),t.params=r}parseFunctionBodyAndFinish(t,r,a=!1){return this.parseFunctionBody(t,!1,a),this.finishNode(t,r)}parseFunctionBody(t,r,a=!1){let n=r&&!this.match(5);if(this.expressionScope.enter(i4()),n)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let s=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(t.params);o&&l&&this.raise(X.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let c=!s&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!a&&!l,r,c),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,c)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,a=t.length;r10||!poe(t))return;if(a&&uoe(t)){this.raise(X.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?n?r4:e4:ZB)(t,this.inModule)){this.raise(X.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(X.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(X.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(X.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(X.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(X.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(X.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||ww(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let r=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(X.YieldInParameter,r);let a=!1,n=null;if(!this.hasPrecedingLineBreak())switch(a=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!a)break;default:n=this.parseMaybeAssign()}return r.delegate=a,r.argument=n,this.finishNode(r,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(X.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(X.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let a=this.startNodeAt(r);return a.callee=t,this.finishNode(a,"PipelineBareFunction")}else{let a=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),a.expression=t,this.finishNode(a,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(X.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(X.PipelineTopicUnused,t)}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}else return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=a,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let a=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{a()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");let r=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,r,a){if(r!=null&&this.match(88)){let n=this.lookaheadCharCode();if(n===44||n===(t===3?93:t===8?125:41)||n===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,a)}parsePropertyNamePrefixOperator(t){}},nN={kind:1},qoe={kind:2},Hoe=/[\uD800-\uDFFF]/u,sN=/in(?:stanceof)?/y;function $oe(e,t,r){for(let a=0;a0)for(let[s,i]of Array.from(this.scope.undefinedExports))this.raise(X.ModuleExportUndefined,i,{localName:s});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let n;return r===140?n=this.finishNode(t,"Program"):n=this.finishNodeAt(t,"Program",ui(this.state.startLoc,-1)),n}stmtToDirective(t){let r=this.castNodeTo(t,"Directive"),a=this.castNodeTo(t.expression,"DirectiveLiteral"),n=a.value,s=this.input.slice(this.offsetToSourcePos(a.start),this.offsetToSourcePos(a.end)),i=a.value=s.slice(1,-1);return this.addExtra(a,"raw",s),this.addExtra(a,"rawValue",i),this.addExtra(a,"expressionValue",n),r.value=a,delete t.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let a=this.lookaheadCharCodeSince(t+2);if(a!==61&&a!==58&&a!==59)return!1}return!!(this.chStartsBindingIdentifier(r,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return!0}return!1}chStartsBindingIdentifier(t,r){if(Tc(t)){if(sN.lastIndex=r,sN.test(this.input)){let a=this.codePointAtPos(sN.lastIndex);if(!Zp(a)&&a!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}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(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let a=this.state.type,n=this.startNode(),s=!!(t&2),i=!!(t&4),o=t&1;switch(a){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(this.lookaheadCharCode()===46)break;return i||this.raise(this.state.strict?X.StrictFunction:this.options.annexB?X.SloppyFunctionAnnexB:X.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(n,!1,!s&&i);case 80:return s||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,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()?s?this.recordAwaitIfAllowed()||this.raise(X.AwaitUsingNotInAsyncContext,n):this.raise(X.UnexpectedLexicalDeclaration,n):this.raise(X.UnexpectedUsingDeclaration,n),this.next(),this.parseVarStatement(n,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?s||this.raise(X.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(X.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(n,"using");case 100:{if(this.state.containsEsc)break;let u=this.nextTokenStart(),d=this.codePointAtPos(u);if(d!==91&&(!s&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(d,u)&&d!==123))break}case 75:s||this.raise(X.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let u=this.state.value;return this.parseVarStatement(n,u)}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:{let u=this.lookaheadCharCode();if(u===40||u===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(X.UnexpectedImportExport,this.state.startLoc),this.next();let u;return a===83?u=this.parseImport(n):u=this.parseExport(n,r),this.assertModuleNodeAllowed(u),u}default:if(this.isAsyncFunction())return s||this.raise(X.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(n,!0,!s&&i)}let l=this.state.value,c=this.parseExpression();return Qr(a)&&c.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(n,l,c,t):this.parseExpressionStatement(n,c,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(X.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,a){if(t){var n;(n=r.decorators)!=null&&n.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(X.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),a&&this.resetStartLocationFromNode(a,r)}return r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(X.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(X.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,a;if(this.match(10)){let n=this.state.startLoc;this.next(),a=this.parseExpression(),this.expect(11),a=this.wrapParenthesis(n,a);let s=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(a,n),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==a&&this.raise(X.DecoratorArgumentsOutsideParentheses,s)}else{for(a=this.parseIdentifier(!1);this.eat(16);){let n=this.startNodeAt(r);n.object=a,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),n.computed=!1,a=this.finishNode(n,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(a,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,r){if(this.eat(10)){let a=this.startNodeAt(r);return a.callee=t,a.arguments=this.parseCallExpressionArguments(),this.toReferencedList(a.arguments),this.finishNode(a,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let a;for(a=0;athis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(nN);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let a=this.isContextual(100);{let l=this.isAwaitUsing(),c=l||this.isForUsing(),u=a&&this.hasFollowingBindingAtom()||c;if(this.match(74)||this.match(75)||u){let d=this.startNode(),f;l?(f="await using",this.recordAwaitIfAllowed()||this.raise(X.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):f=this.state.value,this.next(),this.parseVar(d,!0,f);let p=this.finishNode(d,"VariableDeclaration"),m=this.match(58);return m&&c&&this.raise(X.ForInUsing,p),(m||this.isContextual(102))&&p.declarations.length===1?this.parseForIn(t,p,r):(r!==null&&this.unexpected(r),this.parseFor(t,p))}}let n=this.isContextual(95),s=new Sg,i=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(a&&this.raise(X.ForOfLet,i),r===null&&n&&i.type==="Identifier"&&this.raise(X.ForOfAsync,i)),o||this.match(58)){this.checkDestructuringPrivate(s),this.toAssignable(i,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(i,{type:l}),this.parseForIn(t,i,r)}else this.checkExpressionErrors(s,!0);return r!==null&&this.unexpected(r),this.parseFor(t,i)}parseFunctionStatement(t,r,a){return this.next(),this.parseFunction(t,1|(a?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise(X.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(qoe),this.scope.enter(256);let a;for(let n;!this.match(8);)if(this.match(61)||this.match(65)){let s=this.match(61);a&&this.finishNode(a,"SwitchCase"),r.push(a=this.startNode()),a.consequent=[],this.next(),s?a.test=this.parseExpression():(n&&this.raise(X.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),n=!0,a.test=null),this.expect(14)}else a?a.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),a&&this.finishNode(a,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(X.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(X.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,a=!1){return this.next(),this.parseVar(t,!1,r,a),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(nN),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(X.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,a,n){for(let i of this.state.labels)i.name===r&&this.raise(X.LabelRedeclaration,a,{labelName:r});let s=Jie(this.state.type)?1:this.match(71)?2:null;for(let i=this.state.labels.length-1;i>=0;i--){let o=this.state.labels[i];if(o.statementStart===t.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=s;else break}return this.state.labels.push({name:r,kind:s,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=n&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=a,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,a){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,a){let n=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(n,t,!1,8,a),r&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,a,n,s){let i=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(i,r?o:void 0,a,n,s)}parseBlockOrModuleBlockBody(t,r,a,n,s){let i=this.state.strict,o=!1,l=!1;for(;!this.match(n);){let c=a?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(c)){let u=this.stmtToDirective(c);r.push(u),!o&&u.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear()}t.push(c)}s?.call(this,o),i||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,a){let n=this.match(58);return this.next(),n?a!==null&&this.unexpected(a):t.await=a!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!n||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(X.ForInOfLoopInitializer,r,{type:n?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(X.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,n?"ForInStatement":"ForOfStatement")}parseVar(t,r,a,n=!1){let s=t.declarations=[];for(t.kind=a;;){let i=this.startNode();if(this.parseVarId(i,a),i.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,i.init===null&&!n&&(i.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(X.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(a==="const"||a==="using"||a==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(X.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:a})),s.push(this.finishNode(i,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let a=this.parseBindingAtom();r==="using"||r==="await using"?(a.type==="ArrayPattern"||a.type==="ObjectPattern")&&this.raise(X.UsingDeclarationHasBindingPattern,a.loc.start):a.type==="VoidPattern"&&this.raise(X.UnexpectedVoidPattern,a.loc.start),this.checkLVal(a,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=a}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let a=r&2,n=!!(r&1),s=n&&!(r&4),i=!!(r&8);this.initFunction(t,i),this.match(55)&&(a&&this.raise(X.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),n&&(t.id=this.parseFunctionId(s));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Sw(i,t.generator)),n||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,n?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),n&&!a&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||Qr(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(Noe()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,a){this.next();let n=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,a),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,n),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let a={hadConstructor:!1,hadSuperClass:t},n=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(X.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){n.push(this.parseDecorator());continue}let i=this.startNode();n.length&&(i.decorators=n,this.resetStartLocationFromNode(i,n[0]),n=[]),this.parseClassMember(s,i,a),i.kind==="constructor"&&i.decorators&&i.decorators.length>0&&this.raise(X.DecoratorConstructor,i)}}),this.state.strict=r,this.next(),n.length)throw this.raise(X.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(t,r){let a=this.parseIdentifier(!0);if(this.isClassMethod()){let n=r;return n.kind="method",n.computed=!1,n.key=a,n.static=!1,this.pushClassMethod(t,n,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let n=r;return n.computed=!1,n.key=a,n.static=!1,t.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(a),!1}parseClassMember(t,r,a){let n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,a,n)}parseClassMemberWithIsStatic(t,r,a,n){let s=r,i=r,o=r,l=r,c=r,u=s,d=s;if(r.static=n,this.parsePropertyNamePrefixOperator(r),this.eat(55)){u.kind="method";let g=this.match(139);if(this.parseClassElementName(u),this.parsePostMemberNameModifiers(u),g){this.pushClassPrivateMethod(t,i,!0,!1);return}this.isNonstaticConstructor(s)&&this.raise(X.ConstructorIsGenerator,s.key),this.pushClassMethod(t,s,!0,!1,!1,!1);return}let f=!this.state.containsEsc&&Qr(this.state.type),p=this.parseClassElementName(r),m=f?p.name:null,h=this.isPrivateName(p),x=this.state.startLoc;if(this.parsePostMemberNameModifiers(d),this.isClassMethod()){if(u.kind="method",h){this.pushClassPrivateMethod(t,i,!1,!1);return}let g=this.isNonstaticConstructor(s),y=!1;g&&(s.kind="constructor",a.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(X.DuplicateConstructor,p),g&&this.hasPlugin("typescript")&&r.override&&this.raise(X.OverrideOnConstructor,p),a.hadConstructor=!0,y=a.hadSuperClass),this.pushClassMethod(t,s,!1,!1,g,y)}else if(this.isClassProperty())h?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o);else if(m==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(p);let g=this.eat(55);d.optional&&this.unexpected(x),u.kind="method";let y=this.match(139);this.parseClassElementName(u),this.parsePostMemberNameModifiers(d),y?this.pushClassPrivateMethod(t,i,g,!0):(this.isNonstaticConstructor(s)&&this.raise(X.ConstructorIsAsync,s.key),this.pushClassMethod(t,s,g,!0,!1,!1))}else if((m==="get"||m==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(p),u.kind=m;let g=this.match(139);this.parseClassElementName(s),g?this.pushClassPrivateMethod(t,i,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(X.ConstructorIsAccessor,s.key),this.pushClassMethod(t,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s)}else if(m==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(p);let g=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,c,g)}else this.isLineTerminator()?h?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:a}=this.state;if((r===132||r===134)&&t.static&&a==="prototype"&&this.raise(X.StaticPrototype,this.state.startLoc),r===139){a==="constructor"&&this.raise(X.ConstructorClassPrivateField,this.state.startLoc);let n=this.parsePrivateName();return t.key=n,n}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var a;this.scope.enter(720);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let s=r.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,t.body.push(this.finishNode(r,"StaticBlock")),(a=r.decorators)!=null&&a.length&&this.raise(X.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(X.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let a=this.parseClassPrivateProperty(r);t.body.push(a),this.classScope.declarePrivateName(this.getPrivateNameSV(a.key),0,a.key.loc.start)}pushClassAccessorProperty(t,r,a){!a&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(X.ConstructorClassField,r.key);let n=this.parseClassAccessorProperty(r);t.body.push(n),a&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassMethod(t,r,a,n,s,i){t.body.push(this.parseMethod(r,a,n,s,i,"ClassMethod",!0))}pushClassPrivateMethod(t,r,a,n){let s=this.parseMethod(r,a,n,!1,!1,"ClassPrivateMethod",!0);t.body.push(s);let i=s.kind==="get"?s.static?6:2:s.kind==="set"?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,i)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(i4()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,a,n=8331){if(Qr(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,n);else if(a||!r)t.id=null;else throw this.raise(X.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){let a=this.parseMaybeImportPhase(t,!0),n=this.maybeParseExportDefaultSpecifier(t,a),s=!n||this.eat(12),i=s&&this.eatExportStar(t),o=i&&this.maybeParseExportNamespaceSpecifier(t),l=s&&(!o||this.eat(12)),c=n||i;if(i&&!o){if(n&&this.unexpected(),r)throw this.raise(X.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let u=this.maybeParseExportNamedSpecifiers(t);n&&s&&!i&&!u&&this.unexpected(null,5),o&&l&&this.unexpected(null,98);let d;if(c||u){if(d=!1,r)throw this.raise(X.UnsupportedDecoratorExport,t);this.parseExportFrom(t,c)}else d=this.maybeParseExportDeclaration(t);if(c||u||d){var f;let p=t;if(this.checkExport(p,!0,!1,!!p.source),((f=p.declaration)==null?void 0:f.type)==="ClassDeclaration")this.maybeTakeDecorators(r,p.declaration,p);else if(r)throw this.raise(X.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(p,"ExportNamedDeclaration")}if(this.eat(65)){let p=t,m=this.parseExportDefaultExpression();if(p.declaration=m,m.type==="ClassDeclaration")this.maybeTakeDecorators(r,m,p);else if(r)throw this.raise(X.UnsupportedDecoratorExport,t);return this.checkExport(p,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(p,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let a=r||this.parseIdentifier(!0),n=this.startNodeAtNode(a);return n.exported=a,t.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r,a;(a=(r=t).specifiers)!=null||(r.specifiers=[]);let n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(n,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let a=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(a)),r.source=null,this.hasPlugin("importAssertions")?r.assertions=[]:r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(X.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(X.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(Qr(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let n=this.nextTokenStart(),s=this.input.charCodeAt(n);if(s===123||this.chStartsBindingIdentifier(s,n)&&!this.input.startsWith("from",n))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),a=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Qr(this.state.type)&&a)return!0;if(this.match(65)&&a){let n=this.input.charCodeAt(this.nextTokenStartSince(r+4));return n===34||n===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(X.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(X.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(X.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,a,n){if(r){var s;if(a){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var i;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((i=o.extra)!=null&&i.parenthesized)&&this.raise(X.ExportDefaultFromAsIdentifier,o)}}else if((s=t.specifiers)!=null&&s.length)for(let o of t.specifiers){let{exported:l}=o,c=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,c),!n&&o.local){let{local:u}=o;u.type!=="Identifier"?this.raise(X.ExportBindingIsString,o,{localName:u.value,exportName:c}):(this.checkReservedWord(u.name,u.loc.start,!0,!1),this.scope.checkLocalExport(u))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:l}=o;if(!l)throw new Error("Assertion failure");this.checkDuplicateExports(t,l.name)}else if(o.type==="VariableDeclaration")for(let l of o.declarations)this.checkDeclaration(l.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(X.DuplicateDefaultExport,t):this.raise(X.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],a=!0;for(this.expect(5);!this.eat(8);){if(a)a=!1;else if(this.expect(12),this.eat(8))break;let n=this.isContextual(130),s=this.match(134),i=this.startNode();i.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(i,s,t,n))}return r}parseExportSpecifier(t,r,a,n){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),r=Hoe.exec(t.value);return r&&this.raise(X.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:a})=>a.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,a=r.length===1?r[0].type:null;if(t.phase==="source")a!=="ImportDefaultSpecifier"&&this.raise(X.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")a!=="ImportNamespaceSpecifier"&&this.raise(X.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var n;a!=="ImportDefaultSpecifier"&&this.raise(X.ImportReflectionNotBinding,r[0].loc.start),((n=t.assertions)==null?void 0:n.length)>0&&this.raise(X.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let a=r.find(n=>{let s;if(n.type==="ExportSpecifier"?s=n.local:n.type==="ImportSpecifier"&&(s=n.imported),s!==void 0)return s.type==="Identifier"?s.name!=="default":s.value!=="default"});a!==void 0&&this.raise(X.ImportJSONBindingNotDefault,a.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,a,n){r||(a==="module"?(this.expectPlugin("importReflection",n),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),a==="source"?(this.expectPlugin("sourcePhaseImports",n),t.phase="source"):a==="defer"?(this.expectPlugin("deferredImportEvaluation",n),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let a=this.startNode(),n=this.parseIdentifierName(!0),{type:s}=this.state;return(zl(s)?s!==98||this.lookaheadCharCode()===102:s!==12)?(this.applyImportPhase(t,r,n,a.loc.start),null):(this.applyImportPhase(t,r,null),this.createIdentifier(a,n))}isPrecedingIdImportPhase(t){let{type:r}=this.state;return Qr(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),s=n&&this.maybeParseStarImportSpecifier(t);return n&&!s&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var r;return(r=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,a){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,a))}finishImportSpecifier(t,r,a=8201){return this.checkLVal(t.local,{type:r},a),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let a=this.startNode(),n=this.state.value;if(r.has(n)&&this.raise(X.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n}),r.add(n),this.match(134)?a.key=this.parseStringLiteral(n):a.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(X.ModuleAttributeInvalidValue,this.state.startLoc);a.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(a,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let a=this.startNode();if(a.key=this.parseIdentifier(!0),a.key.name!=="type"&&this.raise(X.ModuleAttributeDifferentFromType,a.key),r.has(a.key.name)&&this.raise(X.ModuleAttributesWithDuplicateKeys,a.key,{key:a.key.name}),r.add(a.key.name),this.expect(14),!this.match(134))throw this.raise(X.ModuleAttributeInvalidValue,this.state.startLoc);a.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(a,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r;var a=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(r=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",!0)):r=this.parseImportAttributes(),a=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(X.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];!a&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let a=this.startNodeAtNode(r);return a.local=r,t.specifiers.push(this.finishImportSpecifier(a,"ImportDefaultSpecifier")),!0}else if(zl(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(X.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let a=this.startNode(),n=this.match(134),s=this.isContextual(130);a.imported=this.parseModuleExportName();let i=this.parseImportSpecifier(a,n,t.importKind==="type"||t.importKind==="typeof",s,void 0);t.specifiers.push(i)}}parseImportSpecifier(t,r,a,n,s){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:i}=t;if(r)throw this.raise(X.ImportBindingIsString,t,{importName:i.value});this.checkReservedWord(i.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(i))}return this.finishImportSpecifier(t,"ImportSpecifier",s)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},Ew=class extends EN{constructor(t,r,a){let n=qie(t);super(n,r),this.options=n,this.initializeScopes(),this.plugins=a,this.filename=n.sourceFilename,this.startIndex=n.startIndex;let s=0;n.allowAwaitOutsideFunction&&(s|=1),n.allowReturnOutsideFunction&&(s|=2),n.allowImportExportEverywhere&&(s|=8),n.allowSuperOutsideMethod&&(s|=16),n.allowUndeclaredExports&&(s|=64),n.allowNewTargetOutsideFunction&&(s|=4),n.allowYieldOutsideFunction&&(s|=32),n.ranges&&(s|=128),n.tokens&&(s|=256),n.createImportExpressions&&(s|=512),n.createParenthesizedExpressions&&(s|=1024),n.errorRecovery&&(s|=2048),n.attachComment&&(s|=4096),n.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return u0}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();this.nextToken(),t.errors=null;let a=this.parseTopLevel(t,r);return a.errors=this.state.errors,a.comments.length=this.state.commentsLen,a}};function Goe(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let a=o0(t,e),n=a.parse();if(a.sawUnambiguousESM)return n;if(a.ambiguousScriptDifferentAst)try{return t.sourceType="script",o0(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(a){try{return t.sourceType="script",o0(t,e).parse()}catch{}throw a}}else return o0(t,e).parse()}function Koe(e,t){let r=o0(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function Woe(e){let t={};for(let r of Object.keys(e))t[r]=bu(e[r]);return t}var Xoe=Woe(Kie);function o0(e,t){let r=Ew,a=new Map;if(e!=null&&e.plugins){for(let n of e.plugins){let s,i;typeof n=="string"?s=n:[s,i]=n,a.has(s)||a.set(s,i||{})}zoe(a),r=Yoe(a)}return new r(e,t,a)}var XB=new Map;function Yoe(e){let t=[];for(let n of Voe)e.has(n)&&t.push(n);let r=t.join("|"),a=XB.get(r);if(!a){a=Ew;for(let n of t)a=c4[n](a);XB.set(r,a)}return a}p0.parse=Goe;p0.parseExpression=Koe;p0.tokTypes=Xoe});var _N=ne(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.Var=Er.User=Er.Statement=Er.SpreadProperty=Er.Scope=Er.RestProperty=Er.ReferencedMemberExpression=Er.ReferencedIdentifier=Er.Referenced=Er.Pure=Er.NumericLiteralTypeAnnotation=Er.Generated=Er.ForAwaitStatement=Er.Flow=Er.Expression=Er.ExistentialTypeParam=Er.BlockScoped=Er.BindingIdentifier=void 0;var aet=Er.ReferencedIdentifier=["Identifier","JSXIdentifier"],net=Er.ReferencedMemberExpression=["MemberExpression"],set=Er.BindingIdentifier=["Identifier"],iet=Er.Statement=["Statement"],oet=Er.Expression=["Expression"],cet=Er.Scope=["Scopable","Pattern"],uet=Er.Referenced=null,det=Er.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],fet=Er.Var=["VariableDeclaration"],pet=Er.User=null,met=Er.Generated=null,het=Er.Pure=null,get=Er.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],yet=Er.RestProperty=["RestElement"],xet=Er.SpreadProperty=["RestElement"],bet=Er.ExistentialTypeParam=["ExistsTypeAnnotation"],vet=Er.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],Tet=Er.ForAwaitStatement=["ForOfStatement"]});var d4=ne((Cet,u4)=>{var Eg=1e3,Pg=Eg*60,Ag=Pg*60,em=Ag*24,Joe=em*7,Qoe=em*365.25;u4.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Zoe(e);if(r==="number"&&isFinite(e))return t.long?tle(e):ele(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Zoe(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),a=(t[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return r*Qoe;case"weeks":case"week":case"w":return r*Joe;case"days":case"day":case"d":return r*em;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ag;case"minutes":case"minute":case"mins":case"min":case"m":return r*Pg;case"seconds":case"second":case"secs":case"sec":case"s":return r*Eg;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function ele(e){var t=Math.abs(e);return t>=em?Math.round(e/em)+"d":t>=Ag?Math.round(e/Ag)+"h":t>=Pg?Math.round(e/Pg)+"m":t>=Eg?Math.round(e/Eg)+"s":e+"ms"}function tle(e){var t=Math.abs(e);return t>=em?Aw(e,t,em,"day"):t>=Ag?Aw(e,t,Ag,"hour"):t>=Pg?Aw(e,t,Pg,"minute"):t>=Eg?Aw(e,t,Eg,"second"):e+" ms"}function Aw(e,t,r,a){var n=t>=r*1.5;return Math.round(e/r)+" "+a+(n?"s":"")}});var p4=ne((Eet,f4)=>{function rle(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=n,r.enabled=o,r.humanize=d4(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let f=0;f{if(P==="%%")return"%";S++;let N=r.formatters[C];if(typeof N=="function"){let R=x[S];P=N.call(g,R),x.splice(S,1),S--}return P}),r.formatArgs.call(g,x),(g.log||r.log).apply(g,x)}return h.namespace=u,h.useColors=r.useColors(),h.color=r.selectColor(u),h.extend=a,h.destroy=r.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(u)),m),set:x=>{f=x}}),typeof r.init=="function"&&r.init(h),h}function a(u,d){let f=r(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function n(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of d)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function s(u,d){let f=0,p=0,m=-1,h=0;for(;f"-"+d)].join(",");return r.enable(""),u}function o(u){for(let d of r.skips)if(s(u,d))return!1;for(let d of r.names)if(s(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){}return r.enable(r.load()),r}f4.exports=rle});var m4=ne((Ui,Iw)=>{Ui.formatArgs=nle;Ui.save=sle;Ui.load=ile;Ui.useColors=ale;Ui.storage=ole();Ui.destroy=(()=>{let e=!1;return()=>{e||(e=!0)}})();Ui.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ale(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function nle(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Iw.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,a=0;e[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(a=r))}),e.splice(a,0,t)}Ui.log=console.debug||console.log||(()=>{});function sle(e){try{e?Ui.storage.setItem("debug",e):Ui.storage.removeItem("debug")}catch{}}function ile(){let e;try{e=Ui.storage.getItem("debug")||Ui.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function ole(){try{return localStorage}catch{}}Iw.exports=p4()(Ui);var{formatters:lle}=Iw.exports;lle.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Nw=ne(ON=>{"use strict";Object.defineProperty(ON,"__esModule",{value:!0});ON.default=cle;function cle(e,t){let r=Object.keys(t);for(let a of r)if(e[a]!==t[a])return!1;return!0}});var Ig=ne(FN=>{"use strict";Object.defineProperty(FN,"__esModule",{value:!0});FN.default=ule;var h4=new Set;function ule(e,t,r="",a=e){if(h4.has(a))return;h4.add(a);let{internal:n,trace:s}=dle(1,2)}function dle(e,t){let{stackTraceLimit:r,prepareStackTrace:a}=Error,n;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(i,o){n=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=a,!n)return{internal:!1,trace:""};let s=n.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(s[1].getFileName()),trace:s.map(i=>` at ${i}`).join(` `)}}});var on=ne(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.isAccessor=Npe;F.isAnyTypeAnnotation=Kce;F.isArgumentPlaceholder=Tde;F.isArrayExpression=fle;F.isArrayPattern=uce;F.isArrayTypeAnnotation=Wce;F.isArrowFunctionExpression=dce;F.isAssignmentExpression=ple;F.isAssignmentPattern=cce;F.isAwaitExpression=Dce;F.isBigIntLiteral=Oce;F.isBinary=Jfe;F.isBinaryExpression=mle;F.isBindExpression=wde;F.isBlock=epe;F.isBlockParent=Zfe;F.isBlockStatement=xle;F.isBooleanLiteral=Ule;F.isBooleanLiteralTypeAnnotation=Yce;F.isBooleanTypeAnnotation=Xce;F.isBreakStatement=ble;F.isCallExpression=vle;F.isCatchClause=Sle;F.isClass=Ppe;F.isClassAccessorProperty=zce;F.isClassBody=fce;F.isClassDeclaration=mce;F.isClassExpression=pce;F.isClassImplements=Qce;F.isClassMethod=Pce;F.isClassPrivateMethod=qce;F.isClassPrivateProperty=Vce;F.isClassProperty=jce;F.isCompletionStatement=ape;F.isConditional=npe;F.isConditionalExpression=Tle;F.isContinueStatement=wle;F.isDebuggerStatement=Cle;F.isDecimalLiteral=Nde;F.isDeclaration=ppe;F.isDeclareClass=Zce;F.isDeclareExportAllDeclaration=lue;F.isDeclareExportDeclaration=oue;F.isDeclareFunction=eue;F.isDeclareInterface=tue;F.isDeclareModule=rue;F.isDeclareModuleExports=aue;F.isDeclareOpaqueType=sue;F.isDeclareTypeAlias=nue;F.isDeclareVariable=iue;F.isDeclaredPredicate=cue;F.isDecorator=Cde;F.isDirective=gle;F.isDirectiveLiteral=yle;F.isDoExpression=Ede;F.isDoWhileStatement=Ele;F.isEmptyStatement=Ple;F.isEmptyTypeAnnotation=vue;F.isEnumBody=Ope;F.isEnumBooleanBody=Wue;F.isEnumBooleanMember=Que;F.isEnumDeclaration=Kue;F.isEnumDefaultedMember=tde;F.isEnumMember=Fpe;F.isEnumNumberBody=Xue;F.isEnumNumberMember=Zue;F.isEnumStringBody=Yue;F.isEnumStringMember=ede;F.isEnumSymbolBody=Jue;F.isExistsTypeAnnotation=uue;F.isExportAllDeclaration=hce;F.isExportDeclaration=Ape;F.isExportDefaultDeclaration=gce;F.isExportDefaultSpecifier=Pde;F.isExportNamedDeclaration=yce;F.isExportNamespaceSpecifier=Fce;F.isExportSpecifier=xce;F.isExpression=Yfe;F.isExpressionStatement=Ale;F.isExpressionWrapper=ope;F.isFile=Ile;F.isFlow=Rpe;F.isFlowBaseAnnotation=Mpe;F.isFlowDeclaration=Dpe;F.isFlowPredicate=_pe;F.isFlowType=kpe;F.isFor=lpe;F.isForInStatement=Nle;F.isForOfStatement=bce;F.isForStatement=Lle;F.isForXStatement=cpe;F.isFunction=upe;F.isFunctionDeclaration=Rle;F.isFunctionExpression=kle;F.isFunctionParameter=mpe;F.isFunctionParent=dpe;F.isFunctionTypeAnnotation=due;F.isFunctionTypeParam=fue;F.isGenericTypeAnnotation=pue;F.isIdentifier=Mle;F.isIfStatement=Dle;F.isImmutable=bpe;F.isImport=_ce;F.isImportAttribute=Gce;F.isImportDeclaration=vce;F.isImportDefaultSpecifier=Sce;F.isImportExpression=Cce;F.isImportNamespaceSpecifier=Tce;F.isImportOrExportDeclaration=g4;F.isImportSpecifier=wce;F.isIndexedAccessType=rde;F.isInferredPredicate=mue;F.isInterfaceDeclaration=gue;F.isInterfaceExtends=hue;F.isInterfaceTypeAnnotation=yue;F.isInterpreterDirective=hle;F.isIntersectionTypeAnnotation=xue;F.isJSX=Bpe;F.isJSXAttribute=nde;F.isJSXClosingElement=sde;F.isJSXClosingFragment=xde;F.isJSXElement=ide;F.isJSXEmptyExpression=ode;F.isJSXExpressionContainer=lde;F.isJSXFragment=gde;F.isJSXIdentifier=ude;F.isJSXMemberExpression=dde;F.isJSXNamespacedName=fde;F.isJSXOpeningElement=pde;F.isJSXOpeningFragment=yde;F.isJSXSpreadAttribute=mde;F.isJSXSpreadChild=cde;F.isJSXText=hde;F.isLVal=gpe;F.isLabeledStatement=_le;F.isLiteral=xpe;F.isLogicalExpression=zle;F.isLoop=spe;F.isMemberExpression=Vle;F.isMetaProperty=Ece;F.isMethod=Spe;F.isMiscellaneous=Upe;F.isMixedTypeAnnotation=bue;F.isModuleDeclaration=Wpe;F.isModuleExpression=Lde;F.isModuleSpecifier=Ipe;F.isNewExpression=qle;F.isNoop=bde;F.isNullLiteral=Ble;F.isNullLiteralTypeAnnotation=Jce;F.isNullableTypeAnnotation=Sue;F.isNumberLiteral=Hpe;F.isNumberLiteralTypeAnnotation=Tue;F.isNumberTypeAnnotation=wue;F.isNumericLiteral=Fle;F.isObjectExpression=$le;F.isObjectMember=Tpe;F.isObjectMethod=Gle;F.isObjectPattern=Ace;F.isObjectProperty=Kle;F.isObjectTypeAnnotation=Cue;F.isObjectTypeCallProperty=Pue;F.isObjectTypeIndexer=Aue;F.isObjectTypeInternalSlot=Eue;F.isObjectTypeProperty=Iue;F.isObjectTypeSpreadProperty=Nue;F.isOpaqueType=Lue;F.isOptionalCallExpression=Uce;F.isOptionalIndexedAccessType=ade;F.isOptionalMemberExpression=Bce;F.isParenthesizedExpression=Jle;F.isPattern=Epe;F.isPatternLike=hpe;F.isPipelineBareFunction=Mde;F.isPipelinePrimaryTopicReference=Dde;F.isPipelineTopicExpression=kde;F.isPlaceholder=vde;F.isPrivate=Lpe;F.isPrivateName=Hce;F.isProgram=Hle;F.isProperty=wpe;F.isPureish=fpe;F.isQualifiedTypeIdentifier=Rue;F.isRecordExpression=Ade;F.isRegExpLiteral=jle;F.isRegexLiteral=$pe;F.isRestElement=Wle;F.isRestProperty=Gpe;F.isReturnStatement=Xle;F.isScopable=Qfe;F.isSequenceExpression=Yle;F.isSpreadElement=Ice;F.isSpreadProperty=Kpe;F.isStandardized=Xfe;F.isStatement=tpe;F.isStaticBlock=$ce;F.isStringLiteral=Ole;F.isStringLiteralTypeAnnotation=kue;F.isStringTypeAnnotation=Mue;F.isSuper=Nce;F.isSwitchCase=Qle;F.isSwitchStatement=Zle;F.isSymbolTypeAnnotation=Due;F.isTSAnyKeyword=$de;F.isTSArrayType=dfe;F.isTSAsExpression=Rfe;F.isTSBaseType=qpe;F.isTSBigIntKeyword=Kde;F.isTSBooleanKeyword=Gde;F.isTSCallSignatureDeclaration=jde;F.isTSConditionalType=xfe;F.isTSConstructSignatureDeclaration=zde;F.isTSConstructorType=ife;F.isTSDeclareFunction=Fde;F.isTSDeclareMethod=Bde;F.isTSEntityName=ype;F.isTSEnumBody=Dfe;F.isTSEnumDeclaration=_fe;F.isTSEnumMember=Ofe;F.isTSExportAssignment=qfe;F.isTSExpressionWithTypeArguments=Pfe;F.isTSExternalModuleReference=zfe;F.isTSFunctionType=sfe;F.isTSImportEqualsDeclaration=jfe;F.isTSImportType=Ufe;F.isTSIndexSignature=Hde;F.isTSIndexedAccessType=Tfe;F.isTSInferType=bfe;F.isTSInstantiationExpression=Lfe;F.isTSInterfaceBody=Ife;F.isTSInterfaceDeclaration=Afe;F.isTSIntersectionType=yfe;F.isTSIntrinsicKeyword=Wde;F.isTSLiteralType=Efe;F.isTSMappedType=wfe;F.isTSMethodSignature=qde;F.isTSModuleBlock=Bfe;F.isTSModuleDeclaration=Ffe;F.isTSNamedTupleMember=hfe;F.isTSNamespaceExportDeclaration=Hfe;F.isTSNeverKeyword=Xde;F.isTSNonNullExpression=Vfe;F.isTSNullKeyword=Yde;F.isTSNumberKeyword=Jde;F.isTSObjectKeyword=Qde;F.isTSOptionalType=pfe;F.isTSParameterProperty=Ode;F.isTSParenthesizedType=vfe;F.isTSPropertySignature=Vde;F.isTSQualifiedName=Ude;F.isTSRestType=mfe;F.isTSSatisfiesExpression=kfe;F.isTSStringKeyword=Zde;F.isTSSymbolKeyword=efe;F.isTSTemplateLiteralType=Cfe;F.isTSThisType=nfe;F.isTSTupleType=ffe;F.isTSType=Vpe;F.isTSTypeAliasDeclaration=Nfe;F.isTSTypeAnnotation=$fe;F.isTSTypeAssertion=Mfe;F.isTSTypeElement=zpe;F.isTSTypeLiteral=ufe;F.isTSTypeOperator=Sfe;F.isTSTypeParameter=Wfe;F.isTSTypeParameterDeclaration=Kfe;F.isTSTypeParameterInstantiation=Gfe;F.isTSTypePredicate=lfe;F.isTSTypeQuery=cfe;F.isTSTypeReference=ofe;F.isTSUndefinedKeyword=tfe;F.isTSUnionType=gfe;F.isTSUnknownKeyword=rfe;F.isTSVoidKeyword=afe;F.isTaggedTemplateExpression=Lce;F.isTemplateElement=Rce;F.isTemplateLiteral=kce;F.isTerminatorless=rpe;F.isThisExpression=ece;F.isThisTypeAnnotation=_ue;F.isThrowStatement=tce;F.isTopicReference=Rde;F.isTryStatement=rce;F.isTupleExpression=Ide;F.isTupleTypeAnnotation=Oue;F.isTypeAlias=Bue;F.isTypeAnnotation=Uue;F.isTypeCastExpression=jue;F.isTypeParameter=zue;F.isTypeParameterDeclaration=Vue;F.isTypeParameterInstantiation=que;F.isTypeScript=jpe;F.isTypeofTypeAnnotation=Fue;F.isUnaryExpression=ace;F.isUnaryLike=Cpe;F.isUnionTypeAnnotation=Hue;F.isUpdateExpression=nce;F.isUserWhitespacable=vpe;F.isV8IntrinsicIdentifier=Sde;F.isVariableDeclaration=sce;F.isVariableDeclarator=ice;F.isVariance=$ue;F.isVoidPattern=_de;F.isVoidTypeAnnotation=Gue;F.isWhile=ipe;F.isWhileStatement=oce;F.isWithStatement=lce;F.isYieldExpression=Mce;var j=Nw(),m0=Ig();function fle(e,t){return!e||e.type!=="ArrayExpression"?!1:t==null||(0,j.default)(e,t)}function ple(e,t){return!e||e.type!=="AssignmentExpression"?!1:t==null||(0,j.default)(e,t)}function mle(e,t){return!e||e.type!=="BinaryExpression"?!1:t==null||(0,j.default)(e,t)}function hle(e,t){return!e||e.type!=="InterpreterDirective"?!1:t==null||(0,j.default)(e,t)}function gle(e,t){return!e||e.type!=="Directive"?!1:t==null||(0,j.default)(e,t)}function yle(e,t){return!e||e.type!=="DirectiveLiteral"?!1:t==null||(0,j.default)(e,t)}function xle(e,t){return!e||e.type!=="BlockStatement"?!1:t==null||(0,j.default)(e,t)}function ble(e,t){return!e||e.type!=="BreakStatement"?!1:t==null||(0,j.default)(e,t)}function vle(e,t){return!e||e.type!=="CallExpression"?!1:t==null||(0,j.default)(e,t)}function Sle(e,t){return!e||e.type!=="CatchClause"?!1:t==null||(0,j.default)(e,t)}function Tle(e,t){return!e||e.type!=="ConditionalExpression"?!1:t==null||(0,j.default)(e,t)}function wle(e,t){return!e||e.type!=="ContinueStatement"?!1:t==null||(0,j.default)(e,t)}function Cle(e,t){return!e||e.type!=="DebuggerStatement"?!1:t==null||(0,j.default)(e,t)}function Ele(e,t){return!e||e.type!=="DoWhileStatement"?!1:t==null||(0,j.default)(e,t)}function Ple(e,t){return!e||e.type!=="EmptyStatement"?!1:t==null||(0,j.default)(e,t)}function Ale(e,t){return!e||e.type!=="ExpressionStatement"?!1:t==null||(0,j.default)(e,t)}function Ile(e,t){return!e||e.type!=="File"?!1:t==null||(0,j.default)(e,t)}function Nle(e,t){return!e||e.type!=="ForInStatement"?!1:t==null||(0,j.default)(e,t)}function Lle(e,t){return!e||e.type!=="ForStatement"?!1:t==null||(0,j.default)(e,t)}function Rle(e,t){return!e||e.type!=="FunctionDeclaration"?!1:t==null||(0,j.default)(e,t)}function kle(e,t){return!e||e.type!=="FunctionExpression"?!1:t==null||(0,j.default)(e,t)}function Mle(e,t){return!e||e.type!=="Identifier"?!1:t==null||(0,j.default)(e,t)}function Dle(e,t){return!e||e.type!=="IfStatement"?!1:t==null||(0,j.default)(e,t)}function _le(e,t){return!e||e.type!=="LabeledStatement"?!1:t==null||(0,j.default)(e,t)}function Ole(e,t){return!e||e.type!=="StringLiteral"?!1:t==null||(0,j.default)(e,t)}function Fle(e,t){return!e||e.type!=="NumericLiteral"?!1:t==null||(0,j.default)(e,t)}function Ble(e,t){return!e||e.type!=="NullLiteral"?!1:t==null||(0,j.default)(e,t)}function Ule(e,t){return!e||e.type!=="BooleanLiteral"?!1:t==null||(0,j.default)(e,t)}function jle(e,t){return!e||e.type!=="RegExpLiteral"?!1:t==null||(0,j.default)(e,t)}function zle(e,t){return!e||e.type!=="LogicalExpression"?!1:t==null||(0,j.default)(e,t)}function Vle(e,t){return!e||e.type!=="MemberExpression"?!1:t==null||(0,j.default)(e,t)}function qle(e,t){return!e||e.type!=="NewExpression"?!1:t==null||(0,j.default)(e,t)}function Hle(e,t){return!e||e.type!=="Program"?!1:t==null||(0,j.default)(e,t)}function $le(e,t){return!e||e.type!=="ObjectExpression"?!1:t==null||(0,j.default)(e,t)}function Gle(e,t){return!e||e.type!=="ObjectMethod"?!1:t==null||(0,j.default)(e,t)}function Kle(e,t){return!e||e.type!=="ObjectProperty"?!1:t==null||(0,j.default)(e,t)}function Wle(e,t){return!e||e.type!=="RestElement"?!1:t==null||(0,j.default)(e,t)}function Xle(e,t){return!e||e.type!=="ReturnStatement"?!1:t==null||(0,j.default)(e,t)}function Yle(e,t){return!e||e.type!=="SequenceExpression"?!1:t==null||(0,j.default)(e,t)}function Jle(e,t){return!e||e.type!=="ParenthesizedExpression"?!1:t==null||(0,j.default)(e,t)}function Qle(e,t){return!e||e.type!=="SwitchCase"?!1:t==null||(0,j.default)(e,t)}function Zle(e,t){return!e||e.type!=="SwitchStatement"?!1:t==null||(0,j.default)(e,t)}function ece(e,t){return!e||e.type!=="ThisExpression"?!1:t==null||(0,j.default)(e,t)}function tce(e,t){return!e||e.type!=="ThrowStatement"?!1:t==null||(0,j.default)(e,t)}function rce(e,t){return!e||e.type!=="TryStatement"?!1:t==null||(0,j.default)(e,t)}function ace(e,t){return!e||e.type!=="UnaryExpression"?!1:t==null||(0,j.default)(e,t)}function nce(e,t){return!e||e.type!=="UpdateExpression"?!1:t==null||(0,j.default)(e,t)}function sce(e,t){return!e||e.type!=="VariableDeclaration"?!1:t==null||(0,j.default)(e,t)}function ice(e,t){return!e||e.type!=="VariableDeclarator"?!1:t==null||(0,j.default)(e,t)}function oce(e,t){return!e||e.type!=="WhileStatement"?!1:t==null||(0,j.default)(e,t)}function lce(e,t){return!e||e.type!=="WithStatement"?!1:t==null||(0,j.default)(e,t)}function cce(e,t){return!e||e.type!=="AssignmentPattern"?!1:t==null||(0,j.default)(e,t)}function uce(e,t){return!e||e.type!=="ArrayPattern"?!1:t==null||(0,j.default)(e,t)}function dce(e,t){return!e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0,j.default)(e,t)}function fce(e,t){return!e||e.type!=="ClassBody"?!1:t==null||(0,j.default)(e,t)}function pce(e,t){return!e||e.type!=="ClassExpression"?!1:t==null||(0,j.default)(e,t)}function mce(e,t){return!e||e.type!=="ClassDeclaration"?!1:t==null||(0,j.default)(e,t)}function hce(e,t){return!e||e.type!=="ExportAllDeclaration"?!1:t==null||(0,j.default)(e,t)}function gce(e,t){return!e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0,j.default)(e,t)}function yce(e,t){return!e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0,j.default)(e,t)}function xce(e,t){return!e||e.type!=="ExportSpecifier"?!1:t==null||(0,j.default)(e,t)}function bce(e,t){return!e||e.type!=="ForOfStatement"?!1:t==null||(0,j.default)(e,t)}function vce(e,t){return!e||e.type!=="ImportDeclaration"?!1:t==null||(0,j.default)(e,t)}function Sce(e,t){return!e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0,j.default)(e,t)}function Tce(e,t){return!e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0,j.default)(e,t)}function wce(e,t){return!e||e.type!=="ImportSpecifier"?!1:t==null||(0,j.default)(e,t)}function Cce(e,t){return!e||e.type!=="ImportExpression"?!1:t==null||(0,j.default)(e,t)}function Ece(e,t){return!e||e.type!=="MetaProperty"?!1:t==null||(0,j.default)(e,t)}function Pce(e,t){return!e||e.type!=="ClassMethod"?!1:t==null||(0,j.default)(e,t)}function Ace(e,t){return!e||e.type!=="ObjectPattern"?!1:t==null||(0,j.default)(e,t)}function Ice(e,t){return!e||e.type!=="SpreadElement"?!1:t==null||(0,j.default)(e,t)}function Nce(e,t){return!e||e.type!=="Super"?!1:t==null||(0,j.default)(e,t)}function Lce(e,t){return!e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0,j.default)(e,t)}function Rce(e,t){return!e||e.type!=="TemplateElement"?!1:t==null||(0,j.default)(e,t)}function kce(e,t){return!e||e.type!=="TemplateLiteral"?!1:t==null||(0,j.default)(e,t)}function Mce(e,t){return!e||e.type!=="YieldExpression"?!1:t==null||(0,j.default)(e,t)}function Dce(e,t){return!e||e.type!=="AwaitExpression"?!1:t==null||(0,j.default)(e,t)}function _ce(e,t){return!e||e.type!=="Import"?!1:t==null||(0,j.default)(e,t)}function Oce(e,t){return!e||e.type!=="BigIntLiteral"?!1:t==null||(0,j.default)(e,t)}function Fce(e,t){return!e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0,j.default)(e,t)}function Bce(e,t){return!e||e.type!=="OptionalMemberExpression"?!1:t==null||(0,j.default)(e,t)}function Uce(e,t){return!e||e.type!=="OptionalCallExpression"?!1:t==null||(0,j.default)(e,t)}function jce(e,t){return!e||e.type!=="ClassProperty"?!1:t==null||(0,j.default)(e,t)}function zce(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,j.default)(e,t)}function Vce(e,t){return!e||e.type!=="ClassPrivateProperty"?!1:t==null||(0,j.default)(e,t)}function qce(e,t){return!e||e.type!=="ClassPrivateMethod"?!1:t==null||(0,j.default)(e,t)}function Hce(e,t){return!e||e.type!=="PrivateName"?!1:t==null||(0,j.default)(e,t)}function $ce(e,t){return!e||e.type!=="StaticBlock"?!1:t==null||(0,j.default)(e,t)}function Gce(e,t){return!e||e.type!=="ImportAttribute"?!1:t==null||(0,j.default)(e,t)}function Kce(e,t){return!e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Wce(e,t){return!e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Xce(e,t){return!e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Yce(e,t){return!e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Jce(e,t){return!e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Qce(e,t){return!e||e.type!=="ClassImplements"?!1:t==null||(0,j.default)(e,t)}function Zce(e,t){return!e||e.type!=="DeclareClass"?!1:t==null||(0,j.default)(e,t)}function eue(e,t){return!e||e.type!=="DeclareFunction"?!1:t==null||(0,j.default)(e,t)}function tue(e,t){return!e||e.type!=="DeclareInterface"?!1:t==null||(0,j.default)(e,t)}function rue(e,t){return!e||e.type!=="DeclareModule"?!1:t==null||(0,j.default)(e,t)}function aue(e,t){return!e||e.type!=="DeclareModuleExports"?!1:t==null||(0,j.default)(e,t)}function nue(e,t){return!e||e.type!=="DeclareTypeAlias"?!1:t==null||(0,j.default)(e,t)}function sue(e,t){return!e||e.type!=="DeclareOpaqueType"?!1:t==null||(0,j.default)(e,t)}function iue(e,t){return!e||e.type!=="DeclareVariable"?!1:t==null||(0,j.default)(e,t)}function oue(e,t){return!e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0,j.default)(e,t)}function lue(e,t){return!e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0,j.default)(e,t)}function cue(e,t){return!e||e.type!=="DeclaredPredicate"?!1:t==null||(0,j.default)(e,t)}function uue(e,t){return!e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function due(e,t){return!e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function fue(e,t){return!e||e.type!=="FunctionTypeParam"?!1:t==null||(0,j.default)(e,t)}function pue(e,t){return!e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function mue(e,t){return!e||e.type!=="InferredPredicate"?!1:t==null||(0,j.default)(e,t)}function hue(e,t){return!e||e.type!=="InterfaceExtends"?!1:t==null||(0,j.default)(e,t)}function gue(e,t){return!e||e.type!=="InterfaceDeclaration"?!1:t==null||(0,j.default)(e,t)}function yue(e,t){return!e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function xue(e,t){return!e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function bue(e,t){return!e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function vue(e,t){return!e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Sue(e,t){return!e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Tue(e,t){return!e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function wue(e,t){return!e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Cue(e,t){return!e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Eue(e,t){return!e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0,j.default)(e,t)}function Pue(e,t){return!e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0,j.default)(e,t)}function Aue(e,t){return!e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0,j.default)(e,t)}function Iue(e,t){return!e||e.type!=="ObjectTypeProperty"?!1:t==null||(0,j.default)(e,t)}function Nue(e,t){return!e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0,j.default)(e,t)}function Lue(e,t){return!e||e.type!=="OpaqueType"?!1:t==null||(0,j.default)(e,t)}function Rue(e,t){return!e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0,j.default)(e,t)}function kue(e,t){return!e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Mue(e,t){return!e||e.type!=="StringTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Due(e,t){return!e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function _ue(e,t){return!e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Oue(e,t){return!e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Fue(e,t){return!e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Bue(e,t){return!e||e.type!=="TypeAlias"?!1:t==null||(0,j.default)(e,t)}function Uue(e,t){return!e||e.type!=="TypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function jue(e,t){return!e||e.type!=="TypeCastExpression"?!1:t==null||(0,j.default)(e,t)}function zue(e,t){return!e||e.type!=="TypeParameter"?!1:t==null||(0,j.default)(e,t)}function Vue(e,t){return!e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0,j.default)(e,t)}function que(e,t){return!e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0,j.default)(e,t)}function Hue(e,t){return!e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function $ue(e,t){return!e||e.type!=="Variance"?!1:t==null||(0,j.default)(e,t)}function Gue(e,t){return!e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Kue(e,t){return!e||e.type!=="EnumDeclaration"?!1:t==null||(0,j.default)(e,t)}function Wue(e,t){return!e||e.type!=="EnumBooleanBody"?!1:t==null||(0,j.default)(e,t)}function Xue(e,t){return!e||e.type!=="EnumNumberBody"?!1:t==null||(0,j.default)(e,t)}function Yue(e,t){return!e||e.type!=="EnumStringBody"?!1:t==null||(0,j.default)(e,t)}function Jue(e,t){return!e||e.type!=="EnumSymbolBody"?!1:t==null||(0,j.default)(e,t)}function Que(e,t){return!e||e.type!=="EnumBooleanMember"?!1:t==null||(0,j.default)(e,t)}function Zue(e,t){return!e||e.type!=="EnumNumberMember"?!1:t==null||(0,j.default)(e,t)}function ede(e,t){return!e||e.type!=="EnumStringMember"?!1:t==null||(0,j.default)(e,t)}function tde(e,t){return!e||e.type!=="EnumDefaultedMember"?!1:t==null||(0,j.default)(e,t)}function rde(e,t){return!e||e.type!=="IndexedAccessType"?!1:t==null||(0,j.default)(e,t)}function ade(e,t){return!e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0,j.default)(e,t)}function nde(e,t){return!e||e.type!=="JSXAttribute"?!1:t==null||(0,j.default)(e,t)}function sde(e,t){return!e||e.type!=="JSXClosingElement"?!1:t==null||(0,j.default)(e,t)}function ide(e,t){return!e||e.type!=="JSXElement"?!1:t==null||(0,j.default)(e,t)}function ode(e,t){return!e||e.type!=="JSXEmptyExpression"?!1:t==null||(0,j.default)(e,t)}function lde(e,t){return!e||e.type!=="JSXExpressionContainer"?!1:t==null||(0,j.default)(e,t)}function cde(e,t){return!e||e.type!=="JSXSpreadChild"?!1:t==null||(0,j.default)(e,t)}function ude(e,t){return!e||e.type!=="JSXIdentifier"?!1:t==null||(0,j.default)(e,t)}function dde(e,t){return!e||e.type!=="JSXMemberExpression"?!1:t==null||(0,j.default)(e,t)}function fde(e,t){return!e||e.type!=="JSXNamespacedName"?!1:t==null||(0,j.default)(e,t)}function pde(e,t){return!e||e.type!=="JSXOpeningElement"?!1:t==null||(0,j.default)(e,t)}function mde(e,t){return!e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0,j.default)(e,t)}function hde(e,t){return!e||e.type!=="JSXText"?!1:t==null||(0,j.default)(e,t)}function gde(e,t){return!e||e.type!=="JSXFragment"?!1:t==null||(0,j.default)(e,t)}function yde(e,t){return!e||e.type!=="JSXOpeningFragment"?!1:t==null||(0,j.default)(e,t)}function xde(e,t){return!e||e.type!=="JSXClosingFragment"?!1:t==null||(0,j.default)(e,t)}function bde(e,t){return!e||e.type!=="Noop"?!1:t==null||(0,j.default)(e,t)}function vde(e,t){return!e||e.type!=="Placeholder"?!1:t==null||(0,j.default)(e,t)}function Sde(e,t){return!e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0,j.default)(e,t)}function Tde(e,t){return!e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0,j.default)(e,t)}function wde(e,t){return!e||e.type!=="BindExpression"?!1:t==null||(0,j.default)(e,t)}function Cde(e,t){return!e||e.type!=="Decorator"?!1:t==null||(0,j.default)(e,t)}function Ede(e,t){return!e||e.type!=="DoExpression"?!1:t==null||(0,j.default)(e,t)}function Pde(e,t){return!e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0,j.default)(e,t)}function Ade(e,t){return!e||e.type!=="RecordExpression"?!1:t==null||(0,j.default)(e,t)}function Ide(e,t){return!e||e.type!=="TupleExpression"?!1:t==null||(0,j.default)(e,t)}function Nde(e,t){return!e||e.type!=="DecimalLiteral"?!1:t==null||(0,j.default)(e,t)}function Lde(e,t){return!e||e.type!=="ModuleExpression"?!1:t==null||(0,j.default)(e,t)}function Rde(e,t){return!e||e.type!=="TopicReference"?!1:t==null||(0,j.default)(e,t)}function kde(e,t){return!e||e.type!=="PipelineTopicExpression"?!1:t==null||(0,j.default)(e,t)}function Mde(e,t){return!e||e.type!=="PipelineBareFunction"?!1:t==null||(0,j.default)(e,t)}function Dde(e,t){return!e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0,j.default)(e,t)}function _de(e,t){return!e||e.type!=="VoidPattern"?!1:t==null||(0,j.default)(e,t)}function Ode(e,t){return!e||e.type!=="TSParameterProperty"?!1:t==null||(0,j.default)(e,t)}function Fde(e,t){return!e||e.type!=="TSDeclareFunction"?!1:t==null||(0,j.default)(e,t)}function Bde(e,t){return!e||e.type!=="TSDeclareMethod"?!1:t==null||(0,j.default)(e,t)}function Ude(e,t){return!e||e.type!=="TSQualifiedName"?!1:t==null||(0,j.default)(e,t)}function jde(e,t){return!e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0,j.default)(e,t)}function zde(e,t){return!e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0,j.default)(e,t)}function Vde(e,t){return!e||e.type!=="TSPropertySignature"?!1:t==null||(0,j.default)(e,t)}function qde(e,t){return!e||e.type!=="TSMethodSignature"?!1:t==null||(0,j.default)(e,t)}function Hde(e,t){return!e||e.type!=="TSIndexSignature"?!1:t==null||(0,j.default)(e,t)}function $de(e,t){return!e||e.type!=="TSAnyKeyword"?!1:t==null||(0,j.default)(e,t)}function Gde(e,t){return!e||e.type!=="TSBooleanKeyword"?!1:t==null||(0,j.default)(e,t)}function Kde(e,t){return!e||e.type!=="TSBigIntKeyword"?!1:t==null||(0,j.default)(e,t)}function Wde(e,t){return!e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0,j.default)(e,t)}function Xde(e,t){return!e||e.type!=="TSNeverKeyword"?!1:t==null||(0,j.default)(e,t)}function Yde(e,t){return!e||e.type!=="TSNullKeyword"?!1:t==null||(0,j.default)(e,t)}function Jde(e,t){return!e||e.type!=="TSNumberKeyword"?!1:t==null||(0,j.default)(e,t)}function Qde(e,t){return!e||e.type!=="TSObjectKeyword"?!1:t==null||(0,j.default)(e,t)}function Zde(e,t){return!e||e.type!=="TSStringKeyword"?!1:t==null||(0,j.default)(e,t)}function efe(e,t){return!e||e.type!=="TSSymbolKeyword"?!1:t==null||(0,j.default)(e,t)}function tfe(e,t){return!e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0,j.default)(e,t)}function rfe(e,t){return!e||e.type!=="TSUnknownKeyword"?!1:t==null||(0,j.default)(e,t)}function afe(e,t){return!e||e.type!=="TSVoidKeyword"?!1:t==null||(0,j.default)(e,t)}function nfe(e,t){return!e||e.type!=="TSThisType"?!1:t==null||(0,j.default)(e,t)}function sfe(e,t){return!e||e.type!=="TSFunctionType"?!1:t==null||(0,j.default)(e,t)}function ife(e,t){return!e||e.type!=="TSConstructorType"?!1:t==null||(0,j.default)(e,t)}function ofe(e,t){return!e||e.type!=="TSTypeReference"?!1:t==null||(0,j.default)(e,t)}function lfe(e,t){return!e||e.type!=="TSTypePredicate"?!1:t==null||(0,j.default)(e,t)}function cfe(e,t){return!e||e.type!=="TSTypeQuery"?!1:t==null||(0,j.default)(e,t)}function ufe(e,t){return!e||e.type!=="TSTypeLiteral"?!1:t==null||(0,j.default)(e,t)}function dfe(e,t){return!e||e.type!=="TSArrayType"?!1:t==null||(0,j.default)(e,t)}function ffe(e,t){return!e||e.type!=="TSTupleType"?!1:t==null||(0,j.default)(e,t)}function pfe(e,t){return!e||e.type!=="TSOptionalType"?!1:t==null||(0,j.default)(e,t)}function mfe(e,t){return!e||e.type!=="TSRestType"?!1:t==null||(0,j.default)(e,t)}function hfe(e,t){return!e||e.type!=="TSNamedTupleMember"?!1:t==null||(0,j.default)(e,t)}function gfe(e,t){return!e||e.type!=="TSUnionType"?!1:t==null||(0,j.default)(e,t)}function yfe(e,t){return!e||e.type!=="TSIntersectionType"?!1:t==null||(0,j.default)(e,t)}function xfe(e,t){return!e||e.type!=="TSConditionalType"?!1:t==null||(0,j.default)(e,t)}function bfe(e,t){return!e||e.type!=="TSInferType"?!1:t==null||(0,j.default)(e,t)}function vfe(e,t){return!e||e.type!=="TSParenthesizedType"?!1:t==null||(0,j.default)(e,t)}function Sfe(e,t){return!e||e.type!=="TSTypeOperator"?!1:t==null||(0,j.default)(e,t)}function Tfe(e,t){return!e||e.type!=="TSIndexedAccessType"?!1:t==null||(0,j.default)(e,t)}function wfe(e,t){return!e||e.type!=="TSMappedType"?!1:t==null||(0,j.default)(e,t)}function Cfe(e,t){return!e||e.type!=="TSTemplateLiteralType"?!1:t==null||(0,j.default)(e,t)}function Efe(e,t){return!e||e.type!=="TSLiteralType"?!1:t==null||(0,j.default)(e,t)}function Pfe(e,t){return!e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0,j.default)(e,t)}function Afe(e,t){return!e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0,j.default)(e,t)}function Ife(e,t){return!e||e.type!=="TSInterfaceBody"?!1:t==null||(0,j.default)(e,t)}function Nfe(e,t){return!e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0,j.default)(e,t)}function Lfe(e,t){return!e||e.type!=="TSInstantiationExpression"?!1:t==null||(0,j.default)(e,t)}function Rfe(e,t){return!e||e.type!=="TSAsExpression"?!1:t==null||(0,j.default)(e,t)}function kfe(e,t){return!e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0,j.default)(e,t)}function Mfe(e,t){return!e||e.type!=="TSTypeAssertion"?!1:t==null||(0,j.default)(e,t)}function Dfe(e,t){return!e||e.type!=="TSEnumBody"?!1:t==null||(0,j.default)(e,t)}function _fe(e,t){return!e||e.type!=="TSEnumDeclaration"?!1:t==null||(0,j.default)(e,t)}function Ofe(e,t){return!e||e.type!=="TSEnumMember"?!1:t==null||(0,j.default)(e,t)}function Ffe(e,t){return!e||e.type!=="TSModuleDeclaration"?!1:t==null||(0,j.default)(e,t)}function Bfe(e,t){return!e||e.type!=="TSModuleBlock"?!1:t==null||(0,j.default)(e,t)}function Ufe(e,t){return!e||e.type!=="TSImportType"?!1:t==null||(0,j.default)(e,t)}function jfe(e,t){return!e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0,j.default)(e,t)}function zfe(e,t){return!e||e.type!=="TSExternalModuleReference"?!1:t==null||(0,j.default)(e,t)}function Vfe(e,t){return!e||e.type!=="TSNonNullExpression"?!1:t==null||(0,j.default)(e,t)}function qfe(e,t){return!e||e.type!=="TSExportAssignment"?!1:t==null||(0,j.default)(e,t)}function Hfe(e,t){return!e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0,j.default)(e,t)}function $fe(e,t){return!e||e.type!=="TSTypeAnnotation"?!1:t==null||(0,j.default)(e,t)}function Gfe(e,t){return!e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0,j.default)(e,t)}function Kfe(e,t){return!e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0,j.default)(e,t)}function Wfe(e,t){return!e||e.type!=="TSTypeParameter"?!1:t==null||(0,j.default)(e,t)}function Xfe(e,t){if(!e)return!1;switch(e.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(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,j.default)(e,t)}function Yfe(e,t){if(!e)return!1;switch(e.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(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,j.default)(e,t)}function Jfe(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,j.default)(e,t)}function Qfe(e,t){if(!e)return!1;switch(e.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(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,j.default)(e,t)}function Zfe(e,t){if(!e)return!1;switch(e.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(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,j.default)(e,t)}function epe(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,j.default)(e,t)}function tpe(e,t){if(!e)return!1;switch(e.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(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,j.default)(e,t)}function rpe(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,j.default)(e,t)}function ape(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,j.default)(e,t)}function npe(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,j.default)(e,t)}function spe(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,j.default)(e,t)}function ipe(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,j.default)(e,t)}function ope(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,j.default)(e,t)}function lpe(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,j.default)(e,t)}function cpe(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,j.default)(e,t)}function upe(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,j.default)(e,t)}function dpe(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,j.default)(e,t)}function fpe(e,t){if(!e)return!1;switch(e.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(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,j.default)(e,t)}function ppe(e,t){if(!e)return!1;switch(e.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(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,j.default)(e,t)}function mpe(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,j.default)(e,t)}function hpe(e,t){if(!e)return!1;switch(e.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(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,j.default)(e,t)}function gpe(e,t){if(!e)return!1;switch(e.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(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,j.default)(e,t)}function ype(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,j.default)(e,t)}function xpe(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,j.default)(e,t)}function bpe(e,t){if(!e)return!1;switch(e.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(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,j.default)(e,t)}function vpe(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,j.default)(e,t)}function Spe(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,j.default)(e,t)}function Tpe(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,j.default)(e,t)}function wpe(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,j.default)(e,t)}function Cpe(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,j.default)(e,t)}function Epe(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,j.default)(e,t)}function Ppe(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,j.default)(e,t)}function g4(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,j.default)(e,t)}function Ape(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,j.default)(e,t)}function Ipe(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,j.default)(e,t)}function Npe(e,t){if(!e)return!1;switch(e.type){case"ClassAccessorProperty":break;default:return!1}return t==null||(0,j.default)(e,t)}function Lpe(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,j.default)(e,t)}function Rpe(e,t){if(!e)return!1;switch(e.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 t==null||(0,j.default)(e,t)}function kpe(e,t){if(!e)return!1;switch(e.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 t==null||(0,j.default)(e,t)}function Mpe(e,t){if(!e)return!1;switch(e.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 t==null||(0,j.default)(e,t)}function Dpe(e,t){if(!e)return!1;switch(e.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 t==null||(0,j.default)(e,t)}function _pe(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,j.default)(e,t)}function Ope(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,j.default)(e,t)}function Fpe(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,j.default)(e,t)}function Bpe(e,t){if(!e)return!1;switch(e.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 t==null||(0,j.default)(e,t)}function Upe(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,j.default)(e,t)}function jpe(e,t){if(!e)return!1;switch(e.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 t==null||(0,j.default)(e,t)}function zpe(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,j.default)(e,t)}function Vpe(e,t){if(!e)return!1;switch(e.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 t==null||(0,j.default)(e,t)}function qpe(e,t){if(!e)return!1;switch(e.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 t==null||(0,j.default)(e,t)}function Hpe(e,t){return(0,m0.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0,j.default)(e,t)}function $pe(e,t){return(0,m0.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0,j.default)(e,t)}function Gpe(e,t){return(0,m0.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0,j.default)(e,t)}function Kpe(e,t){return(0,m0.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0,j.default)(e,t)}function Wpe(e,t){return(0,m0.default)("isModuleDeclaration","isImportOrExportDeclaration"),g4(e,t)}});var UN=ne(BN=>{"use strict";Object.defineProperty(BN,"__esModule",{value:!0});BN.default=Xpe;var tm=on();function y4(e){return(0,tm.isMemberExpression)(e)||(0,tm.isMetaProperty)(e)}function Xpe(e,t,r){if(!y4(e))return!1;let a=Array.isArray(t)?t:t.split("."),n=[],s;for(s=e;y4(s);s=(i=s.object)!=null?i:s.meta){var i;n.push(s.property)}if(n.push(s),n.lengtha.length)return!1;for(let o=0,l=n.length-1;o{"use strict";Object.defineProperty(jN,"__esModule",{value:!0});jN.default=Jpe;var Ype=UN();function Jpe(e,t){let r=e.split(".");return a=>(0,Ype.default)(a,r,t)}});var x4=ne(Lw=>{"use strict";Object.defineProperty(Lw,"__esModule",{value:!0});Lw.default=void 0;var Qpe=zN(),Zpe=(0,Qpe.default)("React.Component"),Ret=Lw.default=Zpe});var b4=ne(VN=>{"use strict";Object.defineProperty(VN,"__esModule",{value:!0});VN.default=eme;function eme(e){return!!e&&/^[a-z]/.test(e)}});var Rw=ne(qN=>{"use strict";Object.defineProperty(qN,"__esModule",{value:!0});qN.default=tme;var v4=Yo();function tme(e,t){if(e===t)return!0;if(e==null||v4.ALIAS_KEYS[t])return!1;let r=v4.FLIPPED_ALIAS_KEYS[t];return!!(r!=null&&r.includes(e))}});var $N=ne(HN=>{"use strict";Object.defineProperty(HN,"__esModule",{value:!0});HN.default=ame;var rme=Yo();function ame(e,t){if(e===t)return!0;let r=rme.PLACEHOLDERS_ALIAS[e];return!!(r!=null&&r.includes(t))}});var Ng=ne(GN=>{"use strict";Object.defineProperty(GN,"__esModule",{value:!0});GN.default=lme;var nme=Nw(),sme=Rw(),ime=$N(),ome=Yo();function lme(e,t,r){return t?(0,sme.default)(t.type,e)?r===void 0?!0:(0,nme.default)(t,r):!r&&t.type==="Placeholder"&&e in ome.FLIPPED_ALIAS_KEYS?(0,ime.default)(t.expectedNode,e):!1:!1}});var E4=ne(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});h0.isIdentifierChar=C4;h0.isIdentifierName=fme;h0.isIdentifierStart=w4;var WN="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",S4="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",cme=new RegExp("["+WN+"]"),ume=new RegExp("["+WN+S4+"]");WN=S4=null;var T4=[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,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],dme=[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,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function KN(e,t){let r=65536;for(let a=0,n=t.length;ae)return!1;if(r+=t[a+1],r>=e)return!0}return!1}function w4(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&cme.test(String.fromCharCode(e)):KN(e,T4)}function C4(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&ume.test(String.fromCharCode(e)):KN(e,T4)||KN(e,dme)}function fme(e){let t=!0;for(let r=0;r{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.isKeyword=yme;rm.isReservedWord=P4;rm.isStrictBindOnlyReservedWord=I4;rm.isStrictBindReservedWord=gme;rm.isStrictReservedWord=A4;var XN={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},pme=new Set(XN.keyword),mme=new Set(XN.strict),hme=new Set(XN.strictBind);function P4(e,t){return t&&e==="await"||e==="enum"}function A4(e,t){return P4(e,t)||mme.has(e)}function I4(e){return hme.has(e)}function gme(e,t){return A4(e,t)||I4(e)}function yme(e){return pme.has(e)}});var y0=ne(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Object.defineProperty(Cc,"isIdentifierChar",{enumerable:!0,get:function(){return YN.isIdentifierChar}});Object.defineProperty(Cc,"isIdentifierName",{enumerable:!0,get:function(){return YN.isIdentifierName}});Object.defineProperty(Cc,"isIdentifierStart",{enumerable:!0,get:function(){return YN.isIdentifierStart}});Object.defineProperty(Cc,"isKeyword",{enumerable:!0,get:function(){return g0.isKeyword}});Object.defineProperty(Cc,"isReservedWord",{enumerable:!0,get:function(){return g0.isReservedWord}});Object.defineProperty(Cc,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return g0.isStrictBindOnlyReservedWord}});Object.defineProperty(Cc,"isStrictBindReservedWord",{enumerable:!0,get:function(){return g0.isStrictBindReservedWord}});Object.defineProperty(Cc,"isStrictReservedWord",{enumerable:!0,get:function(){return g0.isStrictReservedWord}});var YN=E4(),g0=N4()});var Lg=ne(QN=>{"use strict";Object.defineProperty(QN,"__esModule",{value:!0});QN.default=xme;var JN=y0();function xme(e,t=!0){return typeof e!="string"||t&&((0,JN.isKeyword)(e)||(0,JN.isStrictReservedWord)(e,!0))?!1:(0,JN.isIdentifierName)(e)}});var M4=ne(x0=>{"use strict";Object.defineProperty(x0,"__esModule",{value:!0});x0.readCodePoint=k4;x0.readInt=R4;x0.readStringContents=vme;var bme=function(t){return t>=48&&t<=57},L4={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},kw={bin:e=>e===48||e===49,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 vme(e,t,r,a,n,s){let i=r,o=a,l=n,c="",u=null,d=r,{length:f}=t;for(;;){if(r>=f){s.unterminated(i,o,l),c+=t.slice(d,r);break}let p=t.charCodeAt(r);if(Sme(e,p,t,r)){c+=t.slice(d,r);break}if(p===92){c+=t.slice(d,r);let m=Tme(t,r,a,n,e==="template",s);m.ch===null&&!u?u={pos:r,lineStart:a,curLine:n}:c+=m.ch,{pos:r,lineStart:a,curLine:n}=m,d=r}else p===8232||p===8233?(++r,++n,a=r):p===10||p===13?e==="template"?(c+=t.slice(d,r)+` `,++r,p===13&&t.charCodeAt(r)===10&&++r,++n,d=a=r):s.unterminated(i,o,l):++r}return{pos:r,str:c,firstInvalidLoc:u,lineStart:a,curLine:n,containsInvalid:!!u}}function Sme(e,t,r,a){return e==="template"?t===96||t===36&&r.charCodeAt(a+1)===123:t===(e==="double"?34:39)}function Tme(e,t,r,a,n,s){let i=!n;t++;let o=c=>({pos:t,ch:c,lineStart:r,curLine:a}),l=e.charCodeAt(t++);switch(l){case 110:return o(` `);case 114:return o("\r");case 120:{let c;return{code:c,pos:t}=ZN(e,t,r,a,2,!1,i,s),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:t}=k4(e,t,r,a,i,s),o(c===null?null:String.fromCodePoint(c))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++a;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);s.strictNumericEscape(t-1,r,a);default:if(l>=48&&l<=55){let c=t-1,d=/^[0-7]+/.exec(e.slice(c,t+2))[0],f=parseInt(d,8);f>255&&(d=d.slice(0,-1),f=parseInt(d,8)),t+=d.length-1;let p=e.charCodeAt(t);if(d!=="0"||p===56||p===57){if(n)return o(null);s.strictNumericEscape(c,r,a)}return o(String.fromCharCode(f))}return o(String.fromCharCode(l))}}function ZN(e,t,r,a,n,s,i,o){let l=t,c;return{n:c,pos:t}=R4(e,t,r,a,16,n,s,!1,o,!i),c===null&&(i?o.invalidEscapeSequence(l,r,a):t=l-1),{code:c,pos:t}}function R4(e,t,r,a,n,s,i,o,l,c){let u=t,d=n===16?L4.hex:L4.decBinOct,f=n===16?kw.hex:n===10?kw.dec:n===8?kw.oct:kw.bin,p=!1,m=0;for(let h=0,x=s??1/0;h=97?y=g-97+10:g>=65?y=g-65+10:bme(g)?y=g-48:y=1/0,y>=n){if(y<=9&&c)return{n:null,pos:t};if(y<=9&&l.invalidDigit(t,r,a,n))y=0;else if(i)y=0,p=!0;else break}++t,m=m*n+y}return t===u||s!=null&&t-u!==s||p?{n:null,pos:t}:{n:m,pos:t}}function k4(e,t,r,a,n,s){let i=e.charCodeAt(t),o;if(i===123){if(++t,{code:o,pos:t}=ZN(e,t,r,a,e.indexOf("}",t)-t,!0,n,s),++t,o!==null&&o>1114111)if(n)s.invalidCodePoint(t,r,a);else return{code:null,pos:t}}else({code:o,pos:t}=ZN(e,t,r,a,4,!1,n,s));return{code:o,pos:t}}});var Rg=ne(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.UPDATE_OPERATORS=br.UNARY_OPERATORS=br.STRING_UNARY_OPERATORS=br.STATEMENT_OR_BLOCK_KEYS=br.NUMBER_UNARY_OPERATORS=br.NUMBER_BINARY_OPERATORS=br.LOGICAL_OPERATORS=br.INHERIT_KEYS=br.FOR_INIT_KEYS=br.FLATTENABLE_KEYS=br.EQUALITY_BINARY_OPERATORS=br.COMPARISON_BINARY_OPERATORS=br.COMMENT_KEYS=br.BOOLEAN_UNARY_OPERATORS=br.BOOLEAN_NUMBER_BINARY_OPERATORS=br.BOOLEAN_BINARY_OPERATORS=br.BINARY_OPERATORS=br.ASSIGNMENT_OPERATORS=void 0;var Vet=br.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],qet=br.FLATTENABLE_KEYS=["body","expressions"],Het=br.FOR_INIT_KEYS=["left","init"],$et=br.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],wme=br.LOGICAL_OPERATORS=["||","&&","??"],Get=br.UPDATE_OPERATORS=["++","--"],Cme=br.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],Eme=br.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],Pme=br.COMPARISON_BINARY_OPERATORS=[...Eme,"in","instanceof"],Ame=br.BOOLEAN_BINARY_OPERATORS=[...Pme,...Cme],D4=br.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],Ket=br.BINARY_OPERATORS=["+",...D4,...Ame,"|>"],Wet=br.ASSIGNMENT_OPERATORS=["=","+=",...D4.map(e=>e+"="),...wme.map(e=>e+"=")],Ime=br.BOOLEAN_UNARY_OPERATORS=["delete","!"],Nme=br.NUMBER_UNARY_OPERATORS=["+","-","~"],Lme=br.STRING_UNARY_OPERATORS=["typeof"],Xet=br.UNARY_OPERATORS=["void","throw",...Ime,...Nme,...Lme],Yet=br.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};br.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),br.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var Ec=ne(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.allExpandedTypes=Pr.VISITOR_KEYS=Pr.NODE_UNION_SHAPES__PRIVATE=Pr.NODE_PARENT_VALIDATIONS=Pr.NODE_FIELDS=Pr.FLIPPED_ALIAS_KEYS=Pr.DEPRECATED_KEYS=Pr.BUILDER_KEYS=Pr.ALIAS_KEYS=void 0;Pr.arrayOf=O4;Pr.arrayOfType=F4;Pr.assertEach=B4;Pr.assertNodeOrValueType=Hme;Pr.assertNodeType=Dw;Pr.assertOneOf=Vme;Pr.assertOptionalChainStart=Gme;Pr.assertShape=$me;Pr.assertValueType=aL;Pr.chain=U4;Pr.default=j4;Pr.defineAliasedType=Xme;Pr.validate=rL;Pr.validateArrayOfType=zme;Pr.validateOptional=Ume;Pr.validateOptionalType=jme;Pr.validateType=Bme;var _4=Ng(),b0=_w(),Rme=Pr.VISITOR_KEYS={},kme=Pr.ALIAS_KEYS={},eL=Pr.FLIPPED_ALIAS_KEYS={},Mme=Pr.NODE_FIELDS={},Dme=Pr.BUILDER_KEYS={},_me=Pr.DEPRECATED_KEYS={},Ome=Pr.NODE_PARENT_VALIDATIONS={},Fme=Pr.NODE_UNION_SHAPES__PRIVATE={};function Mw(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function rL(e){return{validate:e}}function Bme(...e){return rL(Dw(...e))}function Ume(e){return{validate:e,optional:!0}}function jme(...e){return{validate:Dw(...e),optional:!0}}function O4(e){return U4(aL("array"),B4(e))}function F4(...e){return O4(Dw(...e))}function zme(...e){return rL(F4(...e))}function B4(e){let t=process.env.BABEL_TYPES_8_BREAKING?b0.validateChild:()=>{};function r(a,n,s){if(!Array.isArray(s))return;let i=0,o={toString(){return`${n}[${i}]`}};for(;i=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var Kme=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),Wme=new Set(["default","optional","deprecated","validate"]),tL={};function Xme(...e){return(t,r={})=>{let a=r.aliases;if(!a){var n;r.inherits&&(a=(n=tL[r.inherits].aliases)==null?void 0:n.slice()),a??(a=[]),r.aliases=a}let s=e.filter(i=>!a.includes(i));a.unshift(...s),j4(t,r)}}function j4(e,t={}){let r=t.inherits&&tL[t.inherits]||{},a=t.fields;if(!a&&(a={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let c=r.fields[l],u=c.default;if(Array.isArray(u)?u.length>0:u&&typeof u=="object")throw new Error("field defaults can only be primitives or empty arrays currently");a[l]={default:Array.isArray(u)?[]:u,optional:c.optional,deprecated:c.deprecated,validate:c.validate}}}let n=t.visitor||r.visitor||[],s=t.aliases||r.aliases||[],i=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!Kme.has(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(_me[t.deprecatedAlias]=e);for(let o of n.concat(i))a[o]=a[o]||{};for(let o of Object.keys(a)){let l=a[o];l.default!==void 0&&!i.includes(o)&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=aL(Mw(l.default)));for(let c of Object.keys(l))if(!Wme.has(c))throw new Error(`Unknown field key "${c}" on ${e}.${o}`)}Rme[e]=t.visitor=n,Dme[e]=t.builder=i,Mme[e]=t.fields=a,kme[e]=t.aliases=s,s.forEach(o=>{eL[o]=eL[o]||[],eL[o].push(e)}),t.validate&&(Ome[e]=t.validate),t.unionShape&&(Fme[e]=t.unionShape),tL[e]=t}});var S0=ne(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.patternLikeCommon=ys.importAttributes=ys.functionTypeAnnotationCommon=ys.functionDeclarationCommon=ys.functionCommon=ys.classMethodOrPropertyUnionShapeCommon=ys.classMethodOrPropertyCommon=ys.classMethodOrDeclareMethodCommon=void 0;var di=Ng(),Yme=Lg(),z4=y0(),Jme=M4(),kg=Rg(),z=Ec(),v0=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,z.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});ys.classMethodOrPropertyUnionShapeCommon=v0;var Ge=(0,z.defineAliasedType)("Standardized");Ge("ArrayExpression",{fields:{elements:{validate:(0,z.arrayOf)((0,z.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});Ge("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){let e=(0,z.assertOneOf)(...kg.ASSIGNMENT_OPERATORS),t=(0,z.assertOneOf)("=");return function(r,a,n){((0,di.default)("Pattern",r.left)?t:e)(r,a,n)}}(),{oneOf:kg.ASSIGNMENT_OPERATORS}):(0,z.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,z.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,z.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});Ge("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,z.assertOneOf)(...kg.BINARY_OPERATORS)},left:{validate:function(){let e=(0,z.assertNodeType)("Expression"),t=(0,z.assertNodeType)("Expression","PrivateName");return Object.assign(function(a,n,s){(a.operator==="in"?t:e)(a,n,s)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,z.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});Ge("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,z.assertValueType)("string")}}});Ge("Directive",{visitor:["value"],fields:{value:{validate:(0,z.assertNodeType)("DirectiveLiteral")}}});Ge("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,z.assertValueType)("string")}}});Ge("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,z.arrayOfType)("Directive"),default:[]},body:(0,z.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});Ge("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,z.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});Ge("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,z.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,z.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,z.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,z.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,z.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});Ge("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,z.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,z.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});Ge("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,z.assertNodeType)("Expression")},consequent:{validate:(0,z.assertNodeType)("Expression")},alternate:{validate:(0,z.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});Ge("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,z.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});Ge("DebuggerStatement",{aliases:["Statement"]});Ge("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,z.assertNodeType)("Expression")},body:{validate:(0,z.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});Ge("EmptyStatement",{aliases:["Statement"]});Ge("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,z.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});Ge("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,z.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.assertEach)((0,z.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,z.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});Ge("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,z.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,z.assertNodeType)("Expression")},body:{validate:(0,z.assertNodeType)("Statement")}}});Ge("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,z.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,z.assertNodeType)("Expression"),optional:!0},update:{validate:(0,z.assertNodeType)("Expression"),optional:!0},body:{validate:(0,z.assertNodeType)("Statement")}}});var Mg=()=>({params:(0,z.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});ys.functionCommon=Mg;var am=()=>({returnType:{validate:(0,z.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,z.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});ys.functionTypeAnnotationCommon=am;var V4=()=>Object.assign({},Mg(),{declare:{validate:(0,z.assertValueType)("boolean"),optional:!0},id:{validate:(0,z.assertNodeType)("Identifier"),optional:!0}});ys.functionDeclarationCommon=V4;Ge("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},V4(),am(),{body:{validate:(0,z.assertNodeType)("BlockStatement")},predicate:{validate:(0,z.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0,z.assertNodeType)("Identifier");return function(t,r,a){(0,di.default)("ExportDefaultDeclaration",t)||e(a,"id",a.id)}}():void 0});Ge("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Mg(),am(),{id:{validate:(0,z.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,z.assertNodeType)("BlockStatement")},predicate:{validate:(0,z.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var Dg=()=>({typeAnnotation:{validate:(0,z.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,z.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0}});ys.patternLikeCommon=Dg;Ge("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},Dg(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0,Yme.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,z.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){let a=/\.(\w+)$/.exec(t.toString());if(!a)return;let[,n]=a,s={computed:!1};if(n==="property"){if((0,di.default)("MemberExpression",e,s)||(0,di.default)("OptionalMemberExpression",e,s))return}else if(n==="key"){if((0,di.default)("Property",e,s)||(0,di.default)("Method",e,s))return}else if(n==="exported"){if((0,di.default)("ExportSpecifier",e))return}else if(n==="imported"){if((0,di.default)("ImportSpecifier",e,{imported:r}))return}else if(n==="meta"&&(0,di.default)("MetaProperty",e,{meta:r}))return;if(((0,z4.isKeyword)(r.name)||(0,z4.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0});Ge("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,z.assertNodeType)("Expression")},consequent:{validate:(0,z.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,z.assertNodeType)("Statement")}}});Ge("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,z.assertNodeType)("Identifier")},body:{validate:(0,z.assertNodeType)("Statement")}}});Ge("StringLiteral",{builder:["value"],fields:{value:{validate:(0,z.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Ge("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,z.chain)((0,z.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let a=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});Ge("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});Ge("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,z.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});Ge("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,z.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertValueType)("string"),Object.assign(function(e,t,r){let a=/[^dgimsuvy]/.exec(r);if(a)throw new TypeError(`"${a[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,z.assertValueType)("string"),default:""}}});Ge("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,z.assertOneOf)(...kg.LOGICAL_OPERATORS)},left:{validate:(0,z.assertNodeType)("Expression")},right:{validate:(0,z.assertNodeType)("Expression")}}});Ge("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,z.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,z.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,z.assertNodeType)("Expression","Super")},property:{validate:function(){let e=(0,z.assertNodeType)("Identifier","PrivateName"),t=(0,z.assertNodeType)("Expression"),r=function(a,n,s){(a.computed?t:e)(a,n,s)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,z.assertValueType)("boolean"),optional:!0}})});Ge("NewExpression",{inherits:"CallExpression"});Ge("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,z.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,z.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,z.arrayOfType)("Directive"),default:[]},body:(0,z.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});Ge("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,z.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});Ge("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},v0(),{fields:Object.assign({},Mg(),am(),{kind:Object.assign({validate:(0,z.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){let e=(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,z.assertNodeType)("Expression"),r=function(a,n,s){(a.computed?t:e)(a,n,s)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,z.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}));Ge("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,z.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:function(){let e=(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,z.assertNodeType)("Expression");return Object.assign(function(a,n,s){(a.computed?t:e)(a,n,s)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,z.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,di.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,z.assertValueType)("boolean"),default:!1},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0,z.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,z.assertNodeType)("Expression");return function(r,a,n){((0,di.default)("ObjectPattern",r)?e:t)(n,"value",n.value)}}():void 0});Ge("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},Dg(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,z.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");let[,a,n]=r;if(e[a].length>+n+1)throw new TypeError(`RestElement must be last element of ${a}`)}:void 0});Ge("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,z.assertNodeType)("Expression"),optional:!0}}});Ge("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,z.validateArrayOfType)("Expression")},aliases:["Expression"]});Ge("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,z.assertNodeType)("Expression")}}});Ge("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,z.assertNodeType)("Expression"),optional:!0},consequent:(0,z.validateArrayOfType)("Statement")}});Ge("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,z.assertNodeType)("Expression")},cases:(0,z.validateArrayOfType)("SwitchCase")}});Ge("ThisExpression",{aliases:["Expression"]});Ge("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,z.assertNodeType)("Expression")}}});Ge("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.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,z.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,z.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,z.assertNodeType)("BlockStatement")}}});Ge("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,z.assertNodeType)("Expression")},operator:{validate:(0,z.assertOneOf)(...kg.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});Ge("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.assertNodeType)("Identifier","MemberExpression"):(0,z.assertNodeType)("Expression")},operator:{validate:(0,z.assertOneOf)(...kg.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});Ge("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,z.assertValueType)("boolean"),optional:!0},kind:{validate:(0,z.assertOneOf)("var","let","const","using","await using")},declarations:(0,z.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0,z.assertNodeType)("Identifier","Placeholder"),t=(0,z.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),r=(0,z.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(a,n,s){let{kind:i,declarations:o}=s,l=(0,di.default)("ForXStatement",a,{left:s});if(l&&o.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${a.type}`);for(let c of o)i==="const"||i==="let"||i==="var"?!l&&!c.init?e(c,"id",c.id):t(c,"id",c.id):r(c,"id",c.id)}})():void 0});Ge("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,z.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,z.assertValueType)("boolean")},init:{optional:!0,validate:(0,z.assertNodeType)("Expression")}}});Ge("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,z.assertNodeType)("Expression")},body:{validate:(0,z.assertNodeType)("Statement")}}});Ge("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,z.assertNodeType)("Expression")},body:{validate:(0,z.assertNodeType)("Statement")}}});Ge("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Dg(),{left:{validate:(0,z.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,z.assertNodeType)("Expression")},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0}})});Ge("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Dg(),{elements:{validate:(0,z.chain)((0,z.assertValueType)("array"),(0,z.assertEach)((0,z.assertNodeOrValueType)("null","PatternLike")))}})});Ge("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Mg(),am(),{expression:{validate:(0,z.assertValueType)("boolean")},body:{validate:(0,z.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,z.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});Ge("ClassBody",{visitor:["body"],fields:{body:(0,z.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});Ge("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,z.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,z.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,z.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,z.assertNodeType)("Expression")},superTypeParameters:{validate:(0,z.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,z.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,z.assertNodeType)("InterfaceExtends"),optional:!0}}});Ge("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,z.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,z.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,z.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,z.assertNodeType)("Expression")},superTypeParameters:{validate:(0,z.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,z.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,z.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,z.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,z.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0,z.assertNodeType)("Identifier");return function(t,r,a){(0,di.default)("ExportDefaultDeclaration",t)||e(a,"id",a.id)}}():void 0});var nL=ys.importAttributes={attributes:{optional:!0,validate:(0,z.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,z.arrayOfType)("ImportAttribute")}};Ge("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,z.assertNodeType)("StringLiteral")},exportKind:(0,z.validateOptional)((0,z.assertOneOf)("type","value"))},nL)});Ge("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,z.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,z.validateOptional)((0,z.assertOneOf)("value"))}});Ge("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,z.chain)((0,z.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,z.assertNodeType)("Declaration")}},nL,{specifiers:{default:[],validate:(0,z.arrayOf)(function(){let e=(0,z.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,z.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,a,n){(r.source?e:t)(r,a,n)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:(0,z.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,z.validateOptional)((0,z.assertOneOf)("type","value"))})});Ge("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,z.assertNodeType)("Identifier")},exported:{validate:(0,z.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,z.assertOneOf)("type","value"),optional:!0}}});Ge("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,z.assertNodeType)("VariableDeclaration","LVal");let e=(0,z.assertNodeType)("VariableDeclaration"),t=(0,z.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,a,n){(0,di.default)("VariableDeclaration",n)?e(r,a,n):t(r,a,n)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,z.assertNodeType)("Expression")},body:{validate:(0,z.assertNodeType)("Statement")},await:{default:!1}}});Ge("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},nL,{module:{optional:!0,validate:(0,z.assertValueType)("boolean")},phase:{default:null,validate:(0,z.assertOneOf)("source","defer")},specifiers:(0,z.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,z.assertNodeType)("StringLiteral")},importKind:{validate:(0,z.assertOneOf)("type","typeof","value"),optional:!0}})});Ge("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,z.assertNodeType)("Identifier")}}});Ge("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,z.assertNodeType)("Identifier")}}});Ge("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,z.assertNodeType)("Identifier")},imported:{validate:(0,z.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,z.assertOneOf)("type","typeof","value"),optional:!0}}});Ge("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,z.assertOneOf)("source","defer")},source:{validate:(0,z.assertNodeType)("Expression")},options:{validate:(0,z.assertNodeType)("Expression"),optional:!0}}});Ge("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let a;switch(r.name){case"function":a="sent";break;case"new":a="target";break;case"import":a="meta";break}if(!(0,di.default)("Identifier",e.property,{name:a}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,z.assertNodeType)("Identifier")},property:{validate:(0,z.assertNodeType)("Identifier")}}});var Ow=()=>({abstract:{validate:(0,z.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,z.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,z.assertValueType)("boolean"),optional:!0},key:{validate:(0,z.chain)(function(){let e=(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,z.assertNodeType)("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});ys.classMethodOrPropertyCommon=Ow;var sL=()=>Object.assign({},Mg(),Ow(),{params:(0,z.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,z.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,z.chain)((0,z.assertValueType)("string"),(0,z.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0}});ys.classMethodOrDeclareMethodCommon=sL;Ge("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},v0(),{fields:Object.assign({},sL(),am(),{body:{validate:(0,z.assertNodeType)("BlockStatement")}})}));Ge("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Dg(),{properties:(0,z.validateArrayOfType)("RestElement","ObjectProperty")})});Ge("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,z.assertNodeType)("Expression")}}});Ge("Super",{aliases:["Expression"]});Ge("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,z.assertNodeType)("Expression")},quasi:{validate:(0,z.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,z.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});Ge("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,z.chain)((0,z.assertShape)({raw:{validate:(0,z.assertValueType)("string")},cooked:{validate:(0,z.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,a=!1,n=()=>{throw new Error("Internal @babel/types error.")},{str:s,firstInvalidLoc:i}=(0,Jme.readStringContents)("template",r,0,0,0,{unterminated(){a=!0},strictNumericEscape:n,invalidEscapeSequence:n,numericSeparatorInEscapeSequence:n,unexpectedNumericSeparator:n,invalidDigit:n,invalidCodePoint:n});if(!a)throw new Error("Invalid raw");t.value.cooked=i?null:s})},tail:{default:!1}}});Ge("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,z.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,z.chain)((0,z.assertValueType)("array"),(0,z.assertEach)((0,z.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. Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Ge("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.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,z.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,z.assertNodeType)("Expression")}}});Ge("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,z.assertNodeType)("Expression")}}});Ge("Import",{aliases:["Expression"]});Ge("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,z.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Ge("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,z.assertNodeType)("Identifier")}}});Ge("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,z.assertNodeType)("Expression")},property:{validate:function(){let e=(0,z.assertNodeType)("Identifier"),t=(0,z.assertNodeType)("Expression");return Object.assign(function(a,n,s){(a.computed?t:e)(a,n,s)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertValueType)("boolean"),(0,z.assertOptionalChainStart)()):(0,z.assertValueType)("boolean")}}});Ge("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,z.assertNodeType)("Expression")},arguments:(0,z.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,z.chain)((0,z.assertValueType)("boolean"),(0,z.assertOptionalChainStart)()):(0,z.assertValueType)("boolean")},typeArguments:{validate:(0,z.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,z.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});Ge("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},v0(),{fields:Object.assign({},Ow(),{value:{validate:(0,z.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,z.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,z.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,z.assertValueType)("boolean"),optional:!0},declare:{validate:(0,z.assertValueType)("boolean"),optional:!0},variance:{validate:(0,z.assertNodeType)("Variance"),optional:!0}})}));Ge("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},v0(!0),{fields:Object.assign({},Ow(),{key:{validate:(0,z.chain)(function(){let e=(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,z.assertNodeType)("Expression");return function(r,a,n){(r.computed?t:e)(r,a,n)}}(),(0,z.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,z.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,z.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,z.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,z.assertValueType)("boolean"),optional:!0},declare:{validate:(0,z.assertValueType)("boolean"),optional:!0},variance:{validate:(0,z.assertNodeType)("Variance"),optional:!0}})}));Ge("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,z.assertNodeType)("PrivateName")},value:{validate:(0,z.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,z.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,z.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,z.assertValueType)("boolean"),default:!1},readonly:{validate:(0,z.assertValueType)("boolean"),optional:!0},optional:{validate:(0,z.assertValueType)("boolean"),optional:!0},definite:{validate:(0,z.assertValueType)("boolean"),optional:!0},variance:{validate:(0,z.assertNodeType)("Variance"),optional:!0}}});Ge("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},sL(),am(),{kind:{validate:(0,z.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,z.assertNodeType)("PrivateName")},body:{validate:(0,z.assertNodeType)("BlockStatement")}})});Ge("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,z.assertNodeType)("Identifier")}}});Ge("StaticBlock",{visitor:["body"],fields:{body:(0,z.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});Ge("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,z.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,z.assertNodeType)("StringLiteral")}}})});var H4=ne(()=>{"use strict";var q4=S0(),ve=Ec(),wt=(0,ve.defineAliasedType)("Flow"),iL=e=>{let t=e==="DeclareClass";wt(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,ve.validateType)("Identifier"),typeParameters:(0,ve.validateOptionalType)("TypeParameterDeclaration"),extends:(0,ve.validateOptional)((0,ve.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,ve.validateOptional)((0,ve.arrayOfType)("InterfaceExtends")),implements:(0,ve.validateOptional)((0,ve.arrayOfType)("ClassImplements"))}:{},{body:(0,ve.validateType)("ObjectTypeAnnotation")})})};wt("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});wt("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,ve.validateType)("FlowType")}});wt("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});wt("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,ve.validate)((0,ve.assertValueType)("boolean"))}});wt("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});wt("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,ve.validateType)("Identifier"),typeParameters:(0,ve.validateOptionalType)("TypeParameterInstantiation")}});iL("DeclareClass");wt("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,ve.validateType)("Identifier"),predicate:(0,ve.validateOptionalType)("DeclaredPredicate")}});iL("DeclareInterface");wt("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,ve.validateType)("Identifier","StringLiteral"),body:(0,ve.validateType)("BlockStatement"),kind:(0,ve.validateOptional)((0,ve.assertOneOf)("CommonJS","ES"))}});wt("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,ve.validateType)("TypeAnnotation")}});wt("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,ve.validateType)("Identifier"),typeParameters:(0,ve.validateOptionalType)("TypeParameterDeclaration"),right:(0,ve.validateType)("FlowType")}});wt("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,ve.validateType)("Identifier"),typeParameters:(0,ve.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,ve.validateOptionalType)("FlowType"),impltype:(0,ve.validateOptionalType)("FlowType")}});wt("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,ve.validateType)("Identifier")}});wt("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,ve.validateOptionalType)("Flow"),specifiers:(0,ve.validateOptional)((0,ve.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,ve.validateOptionalType)("StringLiteral"),default:(0,ve.validateOptional)((0,ve.assertValueType)("boolean"))},q4.importAttributes)});wt("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,ve.validateType)("StringLiteral"),exportKind:(0,ve.validateOptional)((0,ve.assertOneOf)("type","value"))},q4.importAttributes)});wt("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,ve.validateType)("Flow")}});wt("ExistsTypeAnnotation",{aliases:["FlowType"]});wt("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,ve.validateOptionalType)("TypeParameterDeclaration"),params:(0,ve.validateArrayOfType)("FunctionTypeParam"),rest:(0,ve.validateOptionalType)("FunctionTypeParam"),this:(0,ve.validateOptionalType)("FunctionTypeParam"),returnType:(0,ve.validateType)("FlowType")}});wt("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,ve.validateOptionalType)("Identifier"),typeAnnotation:(0,ve.validateType)("FlowType"),optional:(0,ve.validateOptional)((0,ve.assertValueType)("boolean"))}});wt("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,ve.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,ve.validateOptionalType)("TypeParameterInstantiation")}});wt("InferredPredicate",{aliases:["FlowPredicate"]});wt("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,ve.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,ve.validateOptionalType)("TypeParameterInstantiation")}});iL("InterfaceDeclaration");wt("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,ve.validateOptional)((0,ve.arrayOfType)("InterfaceExtends")),body:(0,ve.validateType)("ObjectTypeAnnotation")}});wt("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,ve.validate)((0,ve.arrayOfType)("FlowType"))}});wt("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});wt("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});wt("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,ve.validateType)("FlowType")}});wt("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,ve.validate)((0,ve.assertValueType)("number"))}});wt("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});wt("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,ve.validate)((0,ve.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,ve.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,ve.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,ve.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,ve.assertValueType)("boolean"),default:!1},inexact:(0,ve.validateOptional)((0,ve.assertValueType)("boolean"))}});wt("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,ve.validateType)("Identifier"),value:(0,ve.validateType)("FlowType"),optional:(0,ve.validate)((0,ve.assertValueType)("boolean")),static:(0,ve.validate)((0,ve.assertValueType)("boolean")),method:(0,ve.validate)((0,ve.assertValueType)("boolean"))}});wt("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,ve.validateType)("FlowType"),static:(0,ve.validate)((0,ve.assertValueType)("boolean"))}});wt("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,ve.validateOptionalType)("Identifier"),key:(0,ve.validateType)("FlowType"),value:(0,ve.validateType)("FlowType"),static:(0,ve.validate)((0,ve.assertValueType)("boolean")),variance:(0,ve.validateOptionalType)("Variance")}});wt("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,ve.validateType)("Identifier","StringLiteral"),value:(0,ve.validateType)("FlowType"),kind:(0,ve.validate)((0,ve.assertOneOf)("init","get","set")),static:(0,ve.validate)((0,ve.assertValueType)("boolean")),proto:(0,ve.validate)((0,ve.assertValueType)("boolean")),optional:(0,ve.validate)((0,ve.assertValueType)("boolean")),variance:(0,ve.validateOptionalType)("Variance"),method:(0,ve.validate)((0,ve.assertValueType)("boolean"))}});wt("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,ve.validateType)("FlowType")}});wt("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,ve.validateType)("Identifier"),typeParameters:(0,ve.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,ve.validateOptionalType)("FlowType"),impltype:(0,ve.validateType)("FlowType")}});wt("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,ve.validateType)("Identifier"),qualification:(0,ve.validateType)("Identifier","QualifiedTypeIdentifier")}});wt("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,ve.validate)((0,ve.assertValueType)("string"))}});wt("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});wt("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});wt("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});wt("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,ve.validate)((0,ve.arrayOfType)("FlowType"))}});wt("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,ve.validateType)("FlowType")}});wt("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,ve.validateType)("Identifier"),typeParameters:(0,ve.validateOptionalType)("TypeParameterDeclaration"),right:(0,ve.validateType)("FlowType")}});wt("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,ve.validateType)("FlowType")}});wt("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,ve.validateType)("Expression"),typeAnnotation:(0,ve.validateType)("TypeAnnotation")}});wt("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,ve.validate)((0,ve.assertValueType)("string")),bound:(0,ve.validateOptionalType)("TypeAnnotation"),default:(0,ve.validateOptionalType)("FlowType"),variance:(0,ve.validateOptionalType)("Variance")}});wt("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,ve.validate)((0,ve.arrayOfType)("TypeParameter"))}});wt("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,ve.validate)((0,ve.arrayOfType)("FlowType"))}});wt("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,ve.validate)((0,ve.arrayOfType)("FlowType"))}});wt("Variance",{builder:["kind"],fields:{kind:(0,ve.validate)((0,ve.assertOneOf)("minus","plus"))}});wt("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});wt("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,ve.validateType)("Identifier"),body:(0,ve.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});wt("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,ve.validate)((0,ve.assertValueType)("boolean")),members:(0,ve.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,ve.validate)((0,ve.assertValueType)("boolean"))}});wt("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,ve.validate)((0,ve.assertValueType)("boolean")),members:(0,ve.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,ve.validate)((0,ve.assertValueType)("boolean"))}});wt("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,ve.validate)((0,ve.assertValueType)("boolean")),members:(0,ve.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,ve.validate)((0,ve.assertValueType)("boolean"))}});wt("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,ve.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,ve.validate)((0,ve.assertValueType)("boolean"))}});wt("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,ve.validateType)("Identifier"),init:(0,ve.validateType)("BooleanLiteral")}});wt("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,ve.validateType)("Identifier"),init:(0,ve.validateType)("NumericLiteral")}});wt("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,ve.validateType)("Identifier"),init:(0,ve.validateType)("StringLiteral")}});wt("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,ve.validateType)("Identifier")}});wt("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,ve.validateType)("FlowType"),indexType:(0,ve.validateType)("FlowType")}});wt("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,ve.validateType)("FlowType"),indexType:(0,ve.validateType)("FlowType"),optional:(0,ve.validate)((0,ve.assertValueType)("boolean"))}})});var $4=ne(()=>{"use strict";var ja=Ec(),fi=(0,ja.defineAliasedType)("JSX");fi("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,ja.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,ja.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});fi("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,ja.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});fi("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,ja.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,ja.assertNodeType)("JSXClosingElement")},children:(0,ja.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,ja.assertValueType)("boolean"),optional:!0}})});fi("JSXEmptyExpression",{});fi("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,ja.assertNodeType)("Expression","JSXEmptyExpression")}}});fi("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,ja.assertNodeType)("Expression")}}});fi("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,ja.assertValueType)("string")}}});fi("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,ja.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,ja.assertNodeType)("JSXIdentifier")}}});fi("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,ja.assertNodeType)("JSXIdentifier")},name:{validate:(0,ja.assertNodeType)("JSXIdentifier")}}});fi("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,ja.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,ja.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,ja.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,ja.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});fi("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,ja.assertNodeType)("Expression")}}});fi("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,ja.assertValueType)("string")}}});fi("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,ja.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,ja.assertNodeType)("JSXClosingFragment")},children:(0,ja.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});fi("JSXOpeningFragment",{aliases:["Immutable"]});fi("JSXClosingFragment",{aliases:["Immutable"]})});var cL=ne(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.PLACEHOLDERS_FLIPPED_ALIAS=Yd.PLACEHOLDERS_ALIAS=Yd.PLACEHOLDERS=void 0;var Qme=Ec(),Zme=Yd.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],lL=Yd.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of Zme){let t=Qme.ALIAS_KEYS[e];t!=null&&t.length&&(lL[e]=t)}var oL=Yd.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(lL).forEach(e=>{lL[e].forEach(t=>{hasOwnProperty.call(oL,t)||(oL[t]=[]),oL[t].push(e)})})});var G4=ne(()=>{"use strict";var Fw=Ec(),ehe=cL(),the=S0(),uL=(0,Fw.defineAliasedType)("Miscellaneous");uL("Noop",{visitor:[]});uL("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,Fw.assertNodeType)("Identifier")},expectedNode:{validate:(0,Fw.assertOneOf)(...ehe.PLACEHOLDERS)}},(0,the.patternLikeCommon)())});uL("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,Fw.assertValueType)("string")}}})});var K4=ne(()=>{"use strict";var va=Ec();(0,va.default)("ArgumentPlaceholder",{});(0,va.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,va.assertNodeType)("Expression")},callee:{validate:(0,va.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,va.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,va.assertNodeType)("Expression")}}});(0,va.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,va.assertNodeType)("BlockStatement")},async:{validate:(0,va.assertValueType)("boolean"),default:!1}}});(0,va.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,va.assertNodeType)("Identifier")}}});(0,va.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,va.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,va.default)("TupleExpression",{fields:{elements:{validate:(0,va.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,va.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,va.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,va.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,va.assertNodeType)("Program")}},aliases:["Expression"]});(0,va.default)("TopicReference",{aliases:["Expression"]});(0,va.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,va.assertNodeType)("Expression")}},aliases:["Expression"]});(0,va.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,va.assertNodeType)("Expression")}},aliases:["Expression"]});(0,va.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,va.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var e8=ne(()=>{"use strict";var De=Ec(),dL=S0(),rhe=Ng(),Bt=(0,De.defineAliasedType)("TypeScript"),ji=(0,De.assertValueType)("boolean"),W4=()=>({returnType:{validate:(0,De.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,De.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});Bt("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,De.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,De.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,De.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,De.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,De.arrayOfType)("Decorator"),optional:!0}}});Bt("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,dL.functionDeclarationCommon)(),W4())});Bt("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,dL.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,dL.classMethodOrDeclareMethodCommon)(),W4())}));Bt("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,De.validateType)("TSEntityName"),right:(0,De.validateType)("Identifier")}});var Bw=()=>({typeParameters:(0,De.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,De.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,De.validateOptionalType)("TSTypeAnnotation")}),X4={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:Bw()};Bt("TSCallSignatureDeclaration",X4);Bt("TSConstructSignatureDeclaration",X4);var Y4=()=>({key:(0,De.validateType)("Expression"),computed:{default:!1},optional:(0,De.validateOptional)(ji)});Bt("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},Y4(),{readonly:(0,De.validateOptional)(ji),typeAnnotation:(0,De.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,De.assertOneOf)("get","set")}})});Bt("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},Bw(),Y4(),{kind:{validate:(0,De.assertOneOf)("method","get","set")}})});Bt("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,De.validateOptional)(ji),static:(0,De.validateOptional)(ji),parameters:(0,De.validateArrayOfType)("Identifier"),typeAnnotation:(0,De.validateOptionalType)("TSTypeAnnotation")}});var ahe=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of ahe)Bt(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});Bt("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var J4={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};Bt("TSFunctionType",Object.assign({},J4,{fields:Bw()}));Bt("TSConstructorType",Object.assign({},J4,{fields:Object.assign({},Bw(),{abstract:(0,De.validateOptional)(ji)})}));Bt("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,De.validateType)("TSEntityName"),typeParameters:(0,De.validateOptionalType)("TSTypeParameterInstantiation")}});Bt("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,De.validateType)("Identifier","TSThisType"),typeAnnotation:(0,De.validateOptionalType)("TSTypeAnnotation"),asserts:(0,De.validateOptional)(ji)}});Bt("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,De.validateType)("TSEntityName","TSImportType"),typeParameters:(0,De.validateOptionalType)("TSTypeParameterInstantiation")}});Bt("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,De.validateArrayOfType)("TSTypeElement")}});Bt("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,De.validateType)("TSType")}});Bt("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,De.validateArrayOfType)("TSType","TSNamedTupleMember")}});Bt("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,De.validateType)("TSType")}});Bt("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,De.validateType)("TSType")}});Bt("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,De.validateType)("Identifier"),optional:{validate:ji,default:!1},elementType:(0,De.validateType)("TSType")}});var Q4={aliases:["TSType"],visitor:["types"],fields:{types:(0,De.validateArrayOfType)("TSType")}};Bt("TSUnionType",Q4);Bt("TSIntersectionType",Q4);Bt("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,De.validateType)("TSType"),extendsType:(0,De.validateType)("TSType"),trueType:(0,De.validateType)("TSType"),falseType:(0,De.validateType)("TSType")}});Bt("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,De.validateType)("TSTypeParameter")}});Bt("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,De.validateType)("TSType")}});Bt("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,De.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,De.validateType)("TSType")}});Bt("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,De.validateType)("TSType"),indexType:(0,De.validateType)("TSType")}});Bt("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,De.validateType)("TSTypeParameter")},{readonly:(0,De.validateOptional)((0,De.assertOneOf)(!0,!1,"+","-")),optional:(0,De.validateOptional)((0,De.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,De.validateOptionalType)("TSType"),nameType:(0,De.validateOptionalType)("TSType")})});Bt("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,De.validateArrayOfType)("TemplateElement"),types:{validate:(0,De.chain)((0,De.assertValueType)("array"),(0,De.assertEach)((0,De.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. Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Bt("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let e=(0,De.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,De.assertOneOf)("-"),r=(0,De.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),a=function(s,i,o){(0,rhe.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):r(s,i,o)};return a.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],a}()}}});Bt("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,De.validateType)("TSEntityName"),typeParameters:(0,De.validateOptionalType)("TSTypeParameterInstantiation")}});Bt("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,De.validateOptional)(ji),id:(0,De.validateType)("Identifier"),typeParameters:(0,De.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,De.validateOptional)((0,De.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,De.validateType)("TSInterfaceBody")}});Bt("TSInterfaceBody",{visitor:["body"],fields:{body:(0,De.validateArrayOfType)("TSTypeElement")}});Bt("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,De.validateOptional)(ji),id:(0,De.validateType)("Identifier"),typeParameters:(0,De.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,De.validateType)("TSType")}});Bt("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,De.validateType)("Expression"),typeParameters:(0,De.validateOptionalType)("TSTypeParameterInstantiation")}});var Z4={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,De.validateType)("Expression"),typeAnnotation:(0,De.validateType)("TSType")}};Bt("TSAsExpression",Z4);Bt("TSSatisfiesExpression",Z4);Bt("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,De.validateType)("TSType"),expression:(0,De.validateType)("Expression")}});Bt("TSEnumBody",{visitor:["members"],fields:{members:(0,De.validateArrayOfType)("TSEnumMember")}});Bt("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,De.validateOptional)(ji),const:(0,De.validateOptional)(ji),id:(0,De.validateType)("Identifier"),members:(0,De.validateArrayOfType)("TSEnumMember"),initializer:(0,De.validateOptionalType)("Expression"),body:(0,De.validateOptionalType)("TSEnumBody")}});Bt("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,De.validateType)("Identifier","StringLiteral"),initializer:(0,De.validateOptionalType)("Expression")}});Bt("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,De.assertOneOf)("global","module","namespace")},declare:(0,De.validateOptional)(ji)},{global:(0,De.validateOptional)(ji)},{id:(0,De.validateType)("Identifier","StringLiteral"),body:(0,De.validateType)("TSModuleBlock","TSModuleDeclaration")})});Bt("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,De.validateArrayOfType)("Statement")}});Bt("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,De.validateType)("StringLiteral"),qualifier:(0,De.validateOptionalType)("TSEntityName"),typeParameters:(0,De.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,De.assertNodeType)("ObjectExpression"),optional:!0}}});Bt("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,De.validate)(ji)},{id:(0,De.validateType)("Identifier"),moduleReference:(0,De.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,De.assertOneOf)("type","value"),optional:!0}})});Bt("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,De.validateType)("StringLiteral")}});Bt("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,De.validateType)("Expression")}});Bt("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,De.validateType)("Expression")}});Bt("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,De.validateType)("Identifier")}});Bt("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,De.assertNodeType)("TSType")}}});Bt("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,De.validateArrayOfType)("TSType")}});Bt("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,De.validateArrayOfType)("TSTypeParameter")}});Bt("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,De.assertValueType)("string")},in:{validate:(0,De.assertValueType)("boolean"),optional:!0},out:{validate:(0,De.assertValueType)("boolean"),optional:!0},const:{validate:(0,De.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,De.assertNodeType)("TSType"),optional:!0},default:{validate:(0,De.assertNodeType)("TSType"),optional:!0}}})});var t8=ne(Uw=>{"use strict";Object.defineProperty(Uw,"__esModule",{value:!0});Uw.DEPRECATED_ALIASES=void 0;var dtt=Uw.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var Yo=ne(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Object.defineProperty(Js,"ALIAS_KEYS",{enumerable:!0,get:function(){return pi.ALIAS_KEYS}});Object.defineProperty(Js,"BUILDER_KEYS",{enumerable:!0,get:function(){return pi.BUILDER_KEYS}});Object.defineProperty(Js,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return fL.DEPRECATED_ALIASES}});Object.defineProperty(Js,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return pi.DEPRECATED_KEYS}});Object.defineProperty(Js,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return pi.FLIPPED_ALIAS_KEYS}});Object.defineProperty(Js,"NODE_FIELDS",{enumerable:!0,get:function(){return pi.NODE_FIELDS}});Object.defineProperty(Js,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return pi.NODE_PARENT_VALIDATIONS}});Object.defineProperty(Js,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return pi.NODE_UNION_SHAPES__PRIVATE}});Object.defineProperty(Js,"PLACEHOLDERS",{enumerable:!0,get:function(){return pL.PLACEHOLDERS}});Object.defineProperty(Js,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return pL.PLACEHOLDERS_ALIAS}});Object.defineProperty(Js,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return pL.PLACEHOLDERS_FLIPPED_ALIAS}});Js.TYPES=void 0;Object.defineProperty(Js,"VISITOR_KEYS",{enumerable:!0,get:function(){return pi.VISITOR_KEYS}});S0();H4();$4();G4();K4();e8();var pi=Ec(),pL=cL(),fL=t8();Object.keys(fL.DEPRECATED_ALIASES).forEach(e=>{pi.FLIPPED_ALIAS_KEYS[e]=pi.FLIPPED_ALIAS_KEYS[fL.DEPRECATED_ALIASES[e]]});for(let{types:e,set:t}of pi.allExpandedTypes)for(let r of e){let a=pi.FLIPPED_ALIAS_KEYS[r];a?a.forEach(t.add,t):t.add(r)}var ptt=Js.TYPES=[].concat(Object.keys(pi.VISITOR_KEYS),Object.keys(pi.FLIPPED_ALIAS_KEYS),Object.keys(pi.DEPRECATED_KEYS))});var _w=ne(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.default=nhe;_g.validateChild=a8;_g.validateField=r8;_g.validateInternal=she;var T0=Yo();function nhe(e,t,r){if(!e)return;let a=T0.NODE_FIELDS[e.type];if(!a)return;let n=a[t];r8(e,t,r,n),a8(e,t,r)}function she(e,t,r,a,n){if(e!=null&&e.validate&&!(e.optional&&a==null)&&(e.validate(t,r,a),n)){var s;let i=a.type;if(i==null)return;(s=T0.NODE_PARENT_VALIDATIONS[i])==null||s.call(T0.NODE_PARENT_VALIDATIONS,t,r,a)}}function r8(e,t,r,a){a!=null&&a.validate&&(a.optional&&r==null||a.validate(e,t,r))}function a8(e,t,r){var a;let n=r?.type;n!=null&&((a=T0.NODE_PARENT_VALIDATIONS[n])==null||a.call(T0.NODE_PARENT_VALIDATIONS,e,t,r))}});var mL=ne(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.anyTypeAnnotation=Uge;M.argumentPlaceholder=mxe;M.arrayExpression=che;M.arrayPattern=nge;M.arrayTypeAnnotation=jge;M.arrowFunctionExpression=sge;M.assignmentExpression=uhe;M.assignmentPattern=age;M.awaitExpression=Age;M.bigIntLiteral=lhe;M.binaryExpression=dhe;M.bindExpression=hxe;M.blockStatement=hhe;M.booleanLiteral=_he;M.booleanLiteralTypeAnnotation=Vge;M.booleanTypeAnnotation=zge;M.breakStatement=ghe;M.callExpression=yhe;M.catchClause=xhe;M.classAccessorProperty=Mge;M.classBody=ige;M.classDeclaration=lge;M.classExpression=oge;M.classImplements=Hge;M.classMethod=vge;M.classPrivateMethod=_ge;M.classPrivateProperty=Dge;M.classProperty=kge;M.conditionalExpression=bhe;M.continueStatement=vhe;M.debuggerStatement=She;M.decimalLiteral=Sxe;M.declareClass=$ge;M.declareExportAllDeclaration=eye;M.declareExportDeclaration=Zge;M.declareFunction=Gge;M.declareInterface=Kge;M.declareModule=Wge;M.declareModuleExports=Xge;M.declareOpaqueType=Jge;M.declareTypeAlias=Yge;M.declareVariable=Qge;M.declaredPredicate=tye;M.decorator=gxe;M.directive=phe;M.directiveLiteral=mhe;M.doExpression=yxe;M.doWhileStatement=The;M.emptyStatement=whe;M.emptyTypeAnnotation=fye;M.enumBooleanBody=jye;M.enumBooleanMember=Hye;M.enumDeclaration=Uye;M.enumDefaultedMember=Kye;M.enumNumberBody=zye;M.enumNumberMember=$ye;M.enumStringBody=Vye;M.enumStringMember=Gye;M.enumSymbolBody=qye;M.existsTypeAnnotation=rye;M.exportAllDeclaration=cge;M.exportDefaultDeclaration=uge;M.exportDefaultSpecifier=xxe;M.exportNamedDeclaration=dge;M.exportNamespaceSpecifier=Nge;M.exportSpecifier=fge;M.expressionStatement=Che;M.file=Ehe;M.forInStatement=Phe;M.forOfStatement=pge;M.forStatement=Ahe;M.functionDeclaration=Ihe;M.functionExpression=Nhe;M.functionTypeAnnotation=aye;M.functionTypeParam=nye;M.genericTypeAnnotation=sye;M.identifier=Lhe;M.ifStatement=Rhe;M.import=Ige;M.importAttribute=Bge;M.importDeclaration=mge;M.importDefaultSpecifier=hge;M.importExpression=xge;M.importNamespaceSpecifier=gge;M.importSpecifier=yge;M.indexedAccessType=Wye;M.inferredPredicate=iye;M.interfaceDeclaration=lye;M.interfaceExtends=oye;M.interfaceTypeAnnotation=cye;M.interpreterDirective=fhe;M.intersectionTypeAnnotation=uye;M.jSXAttribute=M.jsxAttribute=Yye;M.jSXClosingElement=M.jsxClosingElement=Jye;M.jSXClosingFragment=M.jsxClosingFragment=uxe;M.jSXElement=M.jsxElement=Qye;M.jSXEmptyExpression=M.jsxEmptyExpression=Zye;M.jSXExpressionContainer=M.jsxExpressionContainer=exe;M.jSXFragment=M.jsxFragment=lxe;M.jSXIdentifier=M.jsxIdentifier=rxe;M.jSXMemberExpression=M.jsxMemberExpression=axe;M.jSXNamespacedName=M.jsxNamespacedName=nxe;M.jSXOpeningElement=M.jsxOpeningElement=sxe;M.jSXOpeningFragment=M.jsxOpeningFragment=cxe;M.jSXSpreadAttribute=M.jsxSpreadAttribute=ixe;M.jSXSpreadChild=M.jsxSpreadChild=txe;M.jSXText=M.jsxText=oxe;M.labeledStatement=khe;M.logicalExpression=Ohe;M.memberExpression=Fhe;M.metaProperty=bge;M.mixedTypeAnnotation=dye;M.moduleExpression=Txe;M.newExpression=Bhe;M.noop=dxe;M.nullLiteral=Dhe;M.nullLiteralTypeAnnotation=qge;M.nullableTypeAnnotation=pye;M.numberLiteral=zbe;M.numberLiteralTypeAnnotation=mye;M.numberTypeAnnotation=hye;M.numericLiteral=n8;M.objectExpression=jhe;M.objectMethod=zhe;M.objectPattern=Sge;M.objectProperty=Vhe;M.objectTypeAnnotation=gye;M.objectTypeCallProperty=xye;M.objectTypeIndexer=bye;M.objectTypeInternalSlot=yye;M.objectTypeProperty=vye;M.objectTypeSpreadProperty=Sye;M.opaqueType=Tye;M.optionalCallExpression=Rge;M.optionalIndexedAccessType=Xye;M.optionalMemberExpression=Lge;M.parenthesizedExpression=$he;M.pipelineBareFunction=Exe;M.pipelinePrimaryTopicReference=Pxe;M.pipelineTopicExpression=Cxe;M.placeholder=fxe;M.privateName=Oge;M.program=Uhe;M.qualifiedTypeIdentifier=wye;M.recordExpression=bxe;M.regExpLiteral=s8;M.regexLiteral=Vbe;M.restElement=i8;M.restProperty=qbe;M.returnStatement=qhe;M.sequenceExpression=Hhe;M.spreadElement=o8;M.spreadProperty=Hbe;M.staticBlock=Fge;M.stringLiteral=Mhe;M.stringLiteralTypeAnnotation=Cye;M.stringTypeAnnotation=Eye;M.super=Tge;M.switchCase=Ghe;M.switchStatement=Khe;M.symbolTypeAnnotation=Pye;M.taggedTemplateExpression=wge;M.templateElement=Cge;M.templateLiteral=Ege;M.thisExpression=Whe;M.thisTypeAnnotation=Aye;M.throwStatement=Xhe;M.topicReference=wxe;M.tryStatement=Yhe;M.tSAnyKeyword=M.tsAnyKeyword=Fxe;M.tSArrayType=M.tsArrayType=abe;M.tSAsExpression=M.tsAsExpression=wbe;M.tSBigIntKeyword=M.tsBigIntKeyword=Uxe;M.tSBooleanKeyword=M.tsBooleanKeyword=Bxe;M.tSCallSignatureDeclaration=M.tsCallSignatureDeclaration=kxe;M.tSConditionalType=M.tsConditionalType=ube;M.tSConstructSignatureDeclaration=M.tsConstructSignatureDeclaration=Mxe;M.tSConstructorType=M.tsConstructorType=Qxe;M.tSDeclareFunction=M.tsDeclareFunction=Nxe;M.tSDeclareMethod=M.tsDeclareMethod=Lxe;M.tSEnumBody=M.tsEnumBody=Pbe;M.tSEnumDeclaration=M.tsEnumDeclaration=Abe;M.tSEnumMember=M.tsEnumMember=Ibe;M.tSExportAssignment=M.tsExportAssignment=_be;M.tSExpressionWithTypeArguments=M.tsExpressionWithTypeArguments=xbe;M.tSExternalModuleReference=M.tsExternalModuleReference=Mbe;M.tSFunctionType=M.tsFunctionType=Jxe;M.tSImportEqualsDeclaration=M.tsImportEqualsDeclaration=kbe;M.tSImportType=M.tsImportType=Rbe;M.tSIndexSignature=M.tsIndexSignature=Oxe;M.tSIndexedAccessType=M.tsIndexedAccessType=mbe;M.tSInferType=M.tsInferType=dbe;M.tSInstantiationExpression=M.tsInstantiationExpression=Tbe;M.tSInterfaceBody=M.tsInterfaceBody=vbe;M.tSInterfaceDeclaration=M.tsInterfaceDeclaration=bbe;M.tSIntersectionType=M.tsIntersectionType=cbe;M.tSIntrinsicKeyword=M.tsIntrinsicKeyword=jxe;M.tSLiteralType=M.tsLiteralType=ybe;M.tSMappedType=M.tsMappedType=hbe;M.tSMethodSignature=M.tsMethodSignature=_xe;M.tSModuleBlock=M.tsModuleBlock=Lbe;M.tSModuleDeclaration=M.tsModuleDeclaration=Nbe;M.tSNamedTupleMember=M.tsNamedTupleMember=obe;M.tSNamespaceExportDeclaration=M.tsNamespaceExportDeclaration=Obe;M.tSNeverKeyword=M.tsNeverKeyword=zxe;M.tSNonNullExpression=M.tsNonNullExpression=Dbe;M.tSNullKeyword=M.tsNullKeyword=Vxe;M.tSNumberKeyword=M.tsNumberKeyword=qxe;M.tSObjectKeyword=M.tsObjectKeyword=Hxe;M.tSOptionalType=M.tsOptionalType=sbe;M.tSParameterProperty=M.tsParameterProperty=Ixe;M.tSParenthesizedType=M.tsParenthesizedType=fbe;M.tSPropertySignature=M.tsPropertySignature=Dxe;M.tSQualifiedName=M.tsQualifiedName=Rxe;M.tSRestType=M.tsRestType=ibe;M.tSSatisfiesExpression=M.tsSatisfiesExpression=Cbe;M.tSStringKeyword=M.tsStringKeyword=$xe;M.tSSymbolKeyword=M.tsSymbolKeyword=Gxe;M.tSTemplateLiteralType=M.tsTemplateLiteralType=gbe;M.tSThisType=M.tsThisType=Yxe;M.tSTupleType=M.tsTupleType=nbe;M.tSTypeAliasDeclaration=M.tsTypeAliasDeclaration=Sbe;M.tSTypeAnnotation=M.tsTypeAnnotation=Fbe;M.tSTypeAssertion=M.tsTypeAssertion=Ebe;M.tSTypeLiteral=M.tsTypeLiteral=rbe;M.tSTypeOperator=M.tsTypeOperator=pbe;M.tSTypeParameter=M.tsTypeParameter=jbe;M.tSTypeParameterDeclaration=M.tsTypeParameterDeclaration=Ube;M.tSTypeParameterInstantiation=M.tsTypeParameterInstantiation=Bbe;M.tSTypePredicate=M.tsTypePredicate=ebe;M.tSTypeQuery=M.tsTypeQuery=tbe;M.tSTypeReference=M.tsTypeReference=Zxe;M.tSUndefinedKeyword=M.tsUndefinedKeyword=Kxe;M.tSUnionType=M.tsUnionType=lbe;M.tSUnknownKeyword=M.tsUnknownKeyword=Wxe;M.tSVoidKeyword=M.tsVoidKeyword=Xxe;M.tupleExpression=vxe;M.tupleTypeAnnotation=Iye;M.typeAlias=Lye;M.typeAnnotation=Rye;M.typeCastExpression=kye;M.typeParameter=Mye;M.typeParameterDeclaration=Dye;M.typeParameterInstantiation=_ye;M.typeofTypeAnnotation=Nye;M.unaryExpression=Jhe;M.unionTypeAnnotation=Oye;M.updateExpression=Qhe;M.v8IntrinsicIdentifier=pxe;M.variableDeclaration=Zhe;M.variableDeclarator=ege;M.variance=Fye;M.voidPattern=Axe;M.voidTypeAnnotation=Bye;M.whileStatement=tge;M.withStatement=rge;M.yieldExpression=Pge;var ihe=_w(),jw=Ig(),ohe=Ec(),{validateInternal:E}=ihe,{NODE_FIELDS:te}=ohe;function lhe(e){typeof e=="bigint"&&(e=e.toString());let t={type:"BigIntLiteral",value:e},r=te.BigIntLiteral;return E(r.value,t,"value",e),t}function che(e=[]){let t={type:"ArrayExpression",elements:e},r=te.ArrayExpression;return E(r.elements,t,"elements",e,1),t}function uhe(e,t,r){let a={type:"AssignmentExpression",operator:e,left:t,right:r},n=te.AssignmentExpression;return E(n.operator,a,"operator",e),E(n.left,a,"left",t,1),E(n.right,a,"right",r,1),a}function dhe(e,t,r){let a={type:"BinaryExpression",operator:e,left:t,right:r},n=te.BinaryExpression;return E(n.operator,a,"operator",e),E(n.left,a,"left",t,1),E(n.right,a,"right",r,1),a}function fhe(e){let t={type:"InterpreterDirective",value:e},r=te.InterpreterDirective;return E(r.value,t,"value",e),t}function phe(e){let t={type:"Directive",value:e},r=te.Directive;return E(r.value,t,"value",e,1),t}function mhe(e){let t={type:"DirectiveLiteral",value:e},r=te.DirectiveLiteral;return E(r.value,t,"value",e),t}function hhe(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},a=te.BlockStatement;return E(a.body,r,"body",e,1),E(a.directives,r,"directives",t,1),r}function ghe(e=null){let t={type:"BreakStatement",label:e},r=te.BreakStatement;return E(r.label,t,"label",e,1),t}function yhe(e,t){let r={type:"CallExpression",callee:e,arguments:t},a=te.CallExpression;return E(a.callee,r,"callee",e,1),E(a.arguments,r,"arguments",t,1),r}function xhe(e=null,t){let r={type:"CatchClause",param:e,body:t},a=te.CatchClause;return E(a.param,r,"param",e,1),E(a.body,r,"body",t,1),r}function bhe(e,t,r){let a={type:"ConditionalExpression",test:e,consequent:t,alternate:r},n=te.ConditionalExpression;return E(n.test,a,"test",e,1),E(n.consequent,a,"consequent",t,1),E(n.alternate,a,"alternate",r,1),a}function vhe(e=null){let t={type:"ContinueStatement",label:e},r=te.ContinueStatement;return E(r.label,t,"label",e,1),t}function She(){return{type:"DebuggerStatement"}}function The(e,t){let r={type:"DoWhileStatement",test:e,body:t},a=te.DoWhileStatement;return E(a.test,r,"test",e,1),E(a.body,r,"body",t,1),r}function whe(){return{type:"EmptyStatement"}}function Che(e){let t={type:"ExpressionStatement",expression:e},r=te.ExpressionStatement;return E(r.expression,t,"expression",e,1),t}function Ehe(e,t=null,r=null){let a={type:"File",program:e,comments:t,tokens:r},n=te.File;return E(n.program,a,"program",e,1),E(n.comments,a,"comments",t,1),E(n.tokens,a,"tokens",r),a}function Phe(e,t,r){let a={type:"ForInStatement",left:e,right:t,body:r},n=te.ForInStatement;return E(n.left,a,"left",e,1),E(n.right,a,"right",t,1),E(n.body,a,"body",r,1),a}function Ahe(e=null,t=null,r=null,a){let n={type:"ForStatement",init:e,test:t,update:r,body:a},s=te.ForStatement;return E(s.init,n,"init",e,1),E(s.test,n,"test",t,1),E(s.update,n,"update",r,1),E(s.body,n,"body",a,1),n}function Ihe(e=null,t,r,a=!1,n=!1){let s={type:"FunctionDeclaration",id:e,params:t,body:r,generator:a,async:n},i=te.FunctionDeclaration;return E(i.id,s,"id",e,1),E(i.params,s,"params",t,1),E(i.body,s,"body",r,1),E(i.generator,s,"generator",a),E(i.async,s,"async",n),s}function Nhe(e=null,t,r,a=!1,n=!1){let s={type:"FunctionExpression",id:e,params:t,body:r,generator:a,async:n},i=te.FunctionExpression;return E(i.id,s,"id",e,1),E(i.params,s,"params",t,1),E(i.body,s,"body",r,1),E(i.generator,s,"generator",a),E(i.async,s,"async",n),s}function Lhe(e){let t={type:"Identifier",name:e},r=te.Identifier;return E(r.name,t,"name",e),t}function Rhe(e,t,r=null){let a={type:"IfStatement",test:e,consequent:t,alternate:r},n=te.IfStatement;return E(n.test,a,"test",e,1),E(n.consequent,a,"consequent",t,1),E(n.alternate,a,"alternate",r,1),a}function khe(e,t){let r={type:"LabeledStatement",label:e,body:t},a=te.LabeledStatement;return E(a.label,r,"label",e,1),E(a.body,r,"body",t,1),r}function Mhe(e){let t={type:"StringLiteral",value:e},r=te.StringLiteral;return E(r.value,t,"value",e),t}function n8(e){let t={type:"NumericLiteral",value:e},r=te.NumericLiteral;return E(r.value,t,"value",e),t}function Dhe(){return{type:"NullLiteral"}}function _he(e){let t={type:"BooleanLiteral",value:e},r=te.BooleanLiteral;return E(r.value,t,"value",e),t}function s8(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},a=te.RegExpLiteral;return E(a.pattern,r,"pattern",e),E(a.flags,r,"flags",t),r}function Ohe(e,t,r){let a={type:"LogicalExpression",operator:e,left:t,right:r},n=te.LogicalExpression;return E(n.operator,a,"operator",e),E(n.left,a,"left",t,1),E(n.right,a,"right",r,1),a}function Fhe(e,t,r=!1,a=null){let n={type:"MemberExpression",object:e,property:t,computed:r,optional:a},s=te.MemberExpression;return E(s.object,n,"object",e,1),E(s.property,n,"property",t,1),E(s.computed,n,"computed",r),E(s.optional,n,"optional",a),n}function Bhe(e,t){let r={type:"NewExpression",callee:e,arguments:t},a=te.NewExpression;return E(a.callee,r,"callee",e,1),E(a.arguments,r,"arguments",t,1),r}function Uhe(e,t=[],r="script",a=null){let n={type:"Program",body:e,directives:t,sourceType:r,interpreter:a},s=te.Program;return E(s.body,n,"body",e,1),E(s.directives,n,"directives",t,1),E(s.sourceType,n,"sourceType",r),E(s.interpreter,n,"interpreter",a,1),n}function jhe(e){let t={type:"ObjectExpression",properties:e},r=te.ObjectExpression;return E(r.properties,t,"properties",e,1),t}function zhe(e="method",t,r,a,n=!1,s=!1,i=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:a,computed:n,generator:s,async:i},l=te.ObjectMethod;return E(l.kind,o,"kind",e),E(l.key,o,"key",t,1),E(l.params,o,"params",r,1),E(l.body,o,"body",a,1),E(l.computed,o,"computed",n),E(l.generator,o,"generator",s),E(l.async,o,"async",i),o}function Vhe(e,t,r=!1,a=!1,n=null){let s={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:a,decorators:n},i=te.ObjectProperty;return E(i.key,s,"key",e,1),E(i.value,s,"value",t,1),E(i.computed,s,"computed",r),E(i.shorthand,s,"shorthand",a),E(i.decorators,s,"decorators",n,1),s}function i8(e){let t={type:"RestElement",argument:e},r=te.RestElement;return E(r.argument,t,"argument",e,1),t}function qhe(e=null){let t={type:"ReturnStatement",argument:e},r=te.ReturnStatement;return E(r.argument,t,"argument",e,1),t}function Hhe(e){let t={type:"SequenceExpression",expressions:e},r=te.SequenceExpression;return E(r.expressions,t,"expressions",e,1),t}function $he(e){let t={type:"ParenthesizedExpression",expression:e},r=te.ParenthesizedExpression;return E(r.expression,t,"expression",e,1),t}function Ghe(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},a=te.SwitchCase;return E(a.test,r,"test",e,1),E(a.consequent,r,"consequent",t,1),r}function Khe(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},a=te.SwitchStatement;return E(a.discriminant,r,"discriminant",e,1),E(a.cases,r,"cases",t,1),r}function Whe(){return{type:"ThisExpression"}}function Xhe(e){let t={type:"ThrowStatement",argument:e},r=te.ThrowStatement;return E(r.argument,t,"argument",e,1),t}function Yhe(e,t=null,r=null){let a={type:"TryStatement",block:e,handler:t,finalizer:r},n=te.TryStatement;return E(n.block,a,"block",e,1),E(n.handler,a,"handler",t,1),E(n.finalizer,a,"finalizer",r,1),a}function Jhe(e,t,r=!0){let a={type:"UnaryExpression",operator:e,argument:t,prefix:r},n=te.UnaryExpression;return E(n.operator,a,"operator",e),E(n.argument,a,"argument",t,1),E(n.prefix,a,"prefix",r),a}function Qhe(e,t,r=!1){let a={type:"UpdateExpression",operator:e,argument:t,prefix:r},n=te.UpdateExpression;return E(n.operator,a,"operator",e),E(n.argument,a,"argument",t,1),E(n.prefix,a,"prefix",r),a}function Zhe(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},a=te.VariableDeclaration;return E(a.kind,r,"kind",e),E(a.declarations,r,"declarations",t,1),r}function ege(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},a=te.VariableDeclarator;return E(a.id,r,"id",e,1),E(a.init,r,"init",t,1),r}function tge(e,t){let r={type:"WhileStatement",test:e,body:t},a=te.WhileStatement;return E(a.test,r,"test",e,1),E(a.body,r,"body",t,1),r}function rge(e,t){let r={type:"WithStatement",object:e,body:t},a=te.WithStatement;return E(a.object,r,"object",e,1),E(a.body,r,"body",t,1),r}function age(e,t){let r={type:"AssignmentPattern",left:e,right:t},a=te.AssignmentPattern;return E(a.left,r,"left",e,1),E(a.right,r,"right",t,1),r}function nge(e){let t={type:"ArrayPattern",elements:e},r=te.ArrayPattern;return E(r.elements,t,"elements",e,1),t}function sge(e,t,r=!1){let a={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},n=te.ArrowFunctionExpression;return E(n.params,a,"params",e,1),E(n.body,a,"body",t,1),E(n.async,a,"async",r),a}function ige(e){let t={type:"ClassBody",body:e},r=te.ClassBody;return E(r.body,t,"body",e,1),t}function oge(e=null,t=null,r,a=null){let n={type:"ClassExpression",id:e,superClass:t,body:r,decorators:a},s=te.ClassExpression;return E(s.id,n,"id",e,1),E(s.superClass,n,"superClass",t,1),E(s.body,n,"body",r,1),E(s.decorators,n,"decorators",a,1),n}function lge(e=null,t=null,r,a=null){let n={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:a},s=te.ClassDeclaration;return E(s.id,n,"id",e,1),E(s.superClass,n,"superClass",t,1),E(s.body,n,"body",r,1),E(s.decorators,n,"decorators",a,1),n}function cge(e){let t={type:"ExportAllDeclaration",source:e},r=te.ExportAllDeclaration;return E(r.source,t,"source",e,1),t}function uge(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=te.ExportDefaultDeclaration;return E(r.declaration,t,"declaration",e,1),t}function dge(e=null,t=[],r=null){let a={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r},n=te.ExportNamedDeclaration;return E(n.declaration,a,"declaration",e,1),E(n.specifiers,a,"specifiers",t,1),E(n.source,a,"source",r,1),a}function fge(e,t){let r={type:"ExportSpecifier",local:e,exported:t},a=te.ExportSpecifier;return E(a.local,r,"local",e,1),E(a.exported,r,"exported",t,1),r}function pge(e,t,r,a=!1){let n={type:"ForOfStatement",left:e,right:t,body:r,await:a},s=te.ForOfStatement;return E(s.left,n,"left",e,1),E(s.right,n,"right",t,1),E(s.body,n,"body",r,1),E(s.await,n,"await",a),n}function mge(e,t){let r={type:"ImportDeclaration",specifiers:e,source:t},a=te.ImportDeclaration;return E(a.specifiers,r,"specifiers",e,1),E(a.source,r,"source",t,1),r}function hge(e){let t={type:"ImportDefaultSpecifier",local:e},r=te.ImportDefaultSpecifier;return E(r.local,t,"local",e,1),t}function gge(e){let t={type:"ImportNamespaceSpecifier",local:e},r=te.ImportNamespaceSpecifier;return E(r.local,t,"local",e,1),t}function yge(e,t){let r={type:"ImportSpecifier",local:e,imported:t},a=te.ImportSpecifier;return E(a.local,r,"local",e,1),E(a.imported,r,"imported",t,1),r}function xge(e,t=null){let r={type:"ImportExpression",source:e,options:t},a=te.ImportExpression;return E(a.source,r,"source",e,1),E(a.options,r,"options",t,1),r}function bge(e,t){let r={type:"MetaProperty",meta:e,property:t},a=te.MetaProperty;return E(a.meta,r,"meta",e,1),E(a.property,r,"property",t,1),r}function vge(e="method",t,r,a,n=!1,s=!1,i=!1,o=!1){let l={type:"ClassMethod",kind:e,key:t,params:r,body:a,computed:n,static:s,generator:i,async:o},c=te.ClassMethod;return E(c.kind,l,"kind",e),E(c.key,l,"key",t,1),E(c.params,l,"params",r,1),E(c.body,l,"body",a,1),E(c.computed,l,"computed",n),E(c.static,l,"static",s),E(c.generator,l,"generator",i),E(c.async,l,"async",o),l}function Sge(e){let t={type:"ObjectPattern",properties:e},r=te.ObjectPattern;return E(r.properties,t,"properties",e,1),t}function o8(e){let t={type:"SpreadElement",argument:e},r=te.SpreadElement;return E(r.argument,t,"argument",e,1),t}function Tge(){return{type:"Super"}}function wge(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},a=te.TaggedTemplateExpression;return E(a.tag,r,"tag",e,1),E(a.quasi,r,"quasi",t,1),r}function Cge(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},a=te.TemplateElement;return E(a.value,r,"value",e),E(a.tail,r,"tail",t),r}function Ege(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},a=te.TemplateLiteral;return E(a.quasis,r,"quasis",e,1),E(a.expressions,r,"expressions",t,1),r}function Pge(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},a=te.YieldExpression;return E(a.argument,r,"argument",e,1),E(a.delegate,r,"delegate",t),r}function Age(e){let t={type:"AwaitExpression",argument:e},r=te.AwaitExpression;return E(r.argument,t,"argument",e,1),t}function Ige(){return{type:"Import"}}function Nge(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=te.ExportNamespaceSpecifier;return E(r.exported,t,"exported",e,1),t}function Lge(e,t,r=!1,a){let n={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:a},s=te.OptionalMemberExpression;return E(s.object,n,"object",e,1),E(s.property,n,"property",t,1),E(s.computed,n,"computed",r),E(s.optional,n,"optional",a),n}function Rge(e,t,r){let a={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},n=te.OptionalCallExpression;return E(n.callee,a,"callee",e,1),E(n.arguments,a,"arguments",t,1),E(n.optional,a,"optional",r),a}function kge(e,t=null,r=null,a=null,n=!1,s=!1){let i={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:a,computed:n,static:s},o=te.ClassProperty;return E(o.key,i,"key",e,1),E(o.value,i,"value",t,1),E(o.typeAnnotation,i,"typeAnnotation",r,1),E(o.decorators,i,"decorators",a,1),E(o.computed,i,"computed",n),E(o.static,i,"static",s),i}function Mge(e,t=null,r=null,a=null,n=!1,s=!1){let i={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:a,computed:n,static:s},o=te.ClassAccessorProperty;return E(o.key,i,"key",e,1),E(o.value,i,"value",t,1),E(o.typeAnnotation,i,"typeAnnotation",r,1),E(o.decorators,i,"decorators",a,1),E(o.computed,i,"computed",n),E(o.static,i,"static",s),i}function Dge(e,t=null,r=null,a=!1){let n={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:a},s=te.ClassPrivateProperty;return E(s.key,n,"key",e,1),E(s.value,n,"value",t,1),E(s.decorators,n,"decorators",r,1),E(s.static,n,"static",a),n}function _ge(e="method",t,r,a,n=!1){let s={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:a,static:n},i=te.ClassPrivateMethod;return E(i.kind,s,"kind",e),E(i.key,s,"key",t,1),E(i.params,s,"params",r,1),E(i.body,s,"body",a,1),E(i.static,s,"static",n),s}function Oge(e){let t={type:"PrivateName",id:e},r=te.PrivateName;return E(r.id,t,"id",e,1),t}function Fge(e){let t={type:"StaticBlock",body:e},r=te.StaticBlock;return E(r.body,t,"body",e,1),t}function Bge(e,t){let r={type:"ImportAttribute",key:e,value:t},a=te.ImportAttribute;return E(a.key,r,"key",e,1),E(a.value,r,"value",t,1),r}function Uge(){return{type:"AnyTypeAnnotation"}}function jge(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=te.ArrayTypeAnnotation;return E(r.elementType,t,"elementType",e,1),t}function zge(){return{type:"BooleanTypeAnnotation"}}function Vge(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=te.BooleanLiteralTypeAnnotation;return E(r.value,t,"value",e),t}function qge(){return{type:"NullLiteralTypeAnnotation"}}function Hge(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},a=te.ClassImplements;return E(a.id,r,"id",e,1),E(a.typeParameters,r,"typeParameters",t,1),r}function $ge(e,t=null,r=null,a){let n={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:a},s=te.DeclareClass;return E(s.id,n,"id",e,1),E(s.typeParameters,n,"typeParameters",t,1),E(s.extends,n,"extends",r,1),E(s.body,n,"body",a,1),n}function Gge(e){let t={type:"DeclareFunction",id:e},r=te.DeclareFunction;return E(r.id,t,"id",e,1),t}function Kge(e,t=null,r=null,a){let n={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:a},s=te.DeclareInterface;return E(s.id,n,"id",e,1),E(s.typeParameters,n,"typeParameters",t,1),E(s.extends,n,"extends",r,1),E(s.body,n,"body",a,1),n}function Wge(e,t,r=null){let a={type:"DeclareModule",id:e,body:t,kind:r},n=te.DeclareModule;return E(n.id,a,"id",e,1),E(n.body,a,"body",t,1),E(n.kind,a,"kind",r),a}function Xge(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=te.DeclareModuleExports;return E(r.typeAnnotation,t,"typeAnnotation",e,1),t}function Yge(e,t=null,r){let a={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},n=te.DeclareTypeAlias;return E(n.id,a,"id",e,1),E(n.typeParameters,a,"typeParameters",t,1),E(n.right,a,"right",r,1),a}function Jge(e,t=null,r=null){let a={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},n=te.DeclareOpaqueType;return E(n.id,a,"id",e,1),E(n.typeParameters,a,"typeParameters",t,1),E(n.supertype,a,"supertype",r,1),a}function Qge(e){let t={type:"DeclareVariable",id:e},r=te.DeclareVariable;return E(r.id,t,"id",e,1),t}function Zge(e=null,t=null,r=null,a=null){let n={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:a},s=te.DeclareExportDeclaration;return E(s.declaration,n,"declaration",e,1),E(s.specifiers,n,"specifiers",t,1),E(s.source,n,"source",r,1),E(s.attributes,n,"attributes",a,1),n}function eye(e,t=null){let r={type:"DeclareExportAllDeclaration",source:e,attributes:t},a=te.DeclareExportAllDeclaration;return E(a.source,r,"source",e,1),E(a.attributes,r,"attributes",t,1),r}function tye(e){let t={type:"DeclaredPredicate",value:e},r=te.DeclaredPredicate;return E(r.value,t,"value",e,1),t}function rye(){return{type:"ExistsTypeAnnotation"}}function aye(e=null,t,r=null,a){let n={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:a},s=te.FunctionTypeAnnotation;return E(s.typeParameters,n,"typeParameters",e,1),E(s.params,n,"params",t,1),E(s.rest,n,"rest",r,1),E(s.returnType,n,"returnType",a,1),n}function nye(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},a=te.FunctionTypeParam;return E(a.name,r,"name",e,1),E(a.typeAnnotation,r,"typeAnnotation",t,1),r}function sye(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},a=te.GenericTypeAnnotation;return E(a.id,r,"id",e,1),E(a.typeParameters,r,"typeParameters",t,1),r}function iye(){return{type:"InferredPredicate"}}function oye(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},a=te.InterfaceExtends;return E(a.id,r,"id",e,1),E(a.typeParameters,r,"typeParameters",t,1),r}function lye(e,t=null,r=null,a){let n={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:a},s=te.InterfaceDeclaration;return E(s.id,n,"id",e,1),E(s.typeParameters,n,"typeParameters",t,1),E(s.extends,n,"extends",r,1),E(s.body,n,"body",a,1),n}function cye(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},a=te.InterfaceTypeAnnotation;return E(a.extends,r,"extends",e,1),E(a.body,r,"body",t,1),r}function uye(e){let t={type:"IntersectionTypeAnnotation",types:e},r=te.IntersectionTypeAnnotation;return E(r.types,t,"types",e,1),t}function dye(){return{type:"MixedTypeAnnotation"}}function fye(){return{type:"EmptyTypeAnnotation"}}function pye(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=te.NullableTypeAnnotation;return E(r.typeAnnotation,t,"typeAnnotation",e,1),t}function mye(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=te.NumberLiteralTypeAnnotation;return E(r.value,t,"value",e),t}function hye(){return{type:"NumberTypeAnnotation"}}function gye(e,t=[],r=[],a=[],n=!1){let s={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:a,exact:n},i=te.ObjectTypeAnnotation;return E(i.properties,s,"properties",e,1),E(i.indexers,s,"indexers",t,1),E(i.callProperties,s,"callProperties",r,1),E(i.internalSlots,s,"internalSlots",a,1),E(i.exact,s,"exact",n),s}function yye(e,t,r,a,n){let s={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:a,method:n},i=te.ObjectTypeInternalSlot;return E(i.id,s,"id",e,1),E(i.value,s,"value",t,1),E(i.optional,s,"optional",r),E(i.static,s,"static",a),E(i.method,s,"method",n),s}function xye(e){let t={type:"ObjectTypeCallProperty",value:e,static:null},r=te.ObjectTypeCallProperty;return E(r.value,t,"value",e,1),t}function bye(e=null,t,r,a=null){let n={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:a,static:null},s=te.ObjectTypeIndexer;return E(s.id,n,"id",e,1),E(s.key,n,"key",t,1),E(s.value,n,"value",r,1),E(s.variance,n,"variance",a,1),n}function vye(e,t,r=null){let a={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},n=te.ObjectTypeProperty;return E(n.key,a,"key",e,1),E(n.value,a,"value",t,1),E(n.variance,a,"variance",r,1),a}function Sye(e){let t={type:"ObjectTypeSpreadProperty",argument:e},r=te.ObjectTypeSpreadProperty;return E(r.argument,t,"argument",e,1),t}function Tye(e,t=null,r=null,a){let n={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:a},s=te.OpaqueType;return E(s.id,n,"id",e,1),E(s.typeParameters,n,"typeParameters",t,1),E(s.supertype,n,"supertype",r,1),E(s.impltype,n,"impltype",a,1),n}function wye(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},a=te.QualifiedTypeIdentifier;return E(a.id,r,"id",e,1),E(a.qualification,r,"qualification",t,1),r}function Cye(e){let t={type:"StringLiteralTypeAnnotation",value:e},r=te.StringLiteralTypeAnnotation;return E(r.value,t,"value",e),t}function Eye(){return{type:"StringTypeAnnotation"}}function Pye(){return{type:"SymbolTypeAnnotation"}}function Aye(){return{type:"ThisTypeAnnotation"}}function Iye(e){let t={type:"TupleTypeAnnotation",types:e},r=te.TupleTypeAnnotation;return E(r.types,t,"types",e,1),t}function Nye(e){let t={type:"TypeofTypeAnnotation",argument:e},r=te.TypeofTypeAnnotation;return E(r.argument,t,"argument",e,1),t}function Lye(e,t=null,r){let a={type:"TypeAlias",id:e,typeParameters:t,right:r},n=te.TypeAlias;return E(n.id,a,"id",e,1),E(n.typeParameters,a,"typeParameters",t,1),E(n.right,a,"right",r,1),a}function Rye(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=te.TypeAnnotation;return E(r.typeAnnotation,t,"typeAnnotation",e,1),t}function kye(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},a=te.TypeCastExpression;return E(a.expression,r,"expression",e,1),E(a.typeAnnotation,r,"typeAnnotation",t,1),r}function Mye(e=null,t=null,r=null){let a={type:"TypeParameter",bound:e,default:t,variance:r,name:null},n=te.TypeParameter;return E(n.bound,a,"bound",e,1),E(n.default,a,"default",t,1),E(n.variance,a,"variance",r,1),a}function Dye(e){let t={type:"TypeParameterDeclaration",params:e},r=te.TypeParameterDeclaration;return E(r.params,t,"params",e,1),t}function _ye(e){let t={type:"TypeParameterInstantiation",params:e},r=te.TypeParameterInstantiation;return E(r.params,t,"params",e,1),t}function Oye(e){let t={type:"UnionTypeAnnotation",types:e},r=te.UnionTypeAnnotation;return E(r.types,t,"types",e,1),t}function Fye(e){let t={type:"Variance",kind:e},r=te.Variance;return E(r.kind,t,"kind",e),t}function Bye(){return{type:"VoidTypeAnnotation"}}function Uye(e,t){let r={type:"EnumDeclaration",id:e,body:t},a=te.EnumDeclaration;return E(a.id,r,"id",e,1),E(a.body,r,"body",t,1),r}function jye(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=te.EnumBooleanBody;return E(r.members,t,"members",e,1),t}function zye(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=te.EnumNumberBody;return E(r.members,t,"members",e,1),t}function Vye(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=te.EnumStringBody;return E(r.members,t,"members",e,1),t}function qye(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=te.EnumSymbolBody;return E(r.members,t,"members",e,1),t}function Hye(e){let t={type:"EnumBooleanMember",id:e,init:null},r=te.EnumBooleanMember;return E(r.id,t,"id",e,1),t}function $ye(e,t){let r={type:"EnumNumberMember",id:e,init:t},a=te.EnumNumberMember;return E(a.id,r,"id",e,1),E(a.init,r,"init",t,1),r}function Gye(e,t){let r={type:"EnumStringMember",id:e,init:t},a=te.EnumStringMember;return E(a.id,r,"id",e,1),E(a.init,r,"init",t,1),r}function Kye(e){let t={type:"EnumDefaultedMember",id:e},r=te.EnumDefaultedMember;return E(r.id,t,"id",e,1),t}function Wye(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},a=te.IndexedAccessType;return E(a.objectType,r,"objectType",e,1),E(a.indexType,r,"indexType",t,1),r}function Xye(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},a=te.OptionalIndexedAccessType;return E(a.objectType,r,"objectType",e,1),E(a.indexType,r,"indexType",t,1),r}function Yye(e,t=null){let r={type:"JSXAttribute",name:e,value:t},a=te.JSXAttribute;return E(a.name,r,"name",e,1),E(a.value,r,"value",t,1),r}function Jye(e){let t={type:"JSXClosingElement",name:e},r=te.JSXClosingElement;return E(r.name,t,"name",e,1),t}function Qye(e,t=null,r,a=null){let n={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:a},s=te.JSXElement;return E(s.openingElement,n,"openingElement",e,1),E(s.closingElement,n,"closingElement",t,1),E(s.children,n,"children",r,1),E(s.selfClosing,n,"selfClosing",a),n}function Zye(){return{type:"JSXEmptyExpression"}}function exe(e){let t={type:"JSXExpressionContainer",expression:e},r=te.JSXExpressionContainer;return E(r.expression,t,"expression",e,1),t}function txe(e){let t={type:"JSXSpreadChild",expression:e},r=te.JSXSpreadChild;return E(r.expression,t,"expression",e,1),t}function rxe(e){let t={type:"JSXIdentifier",name:e},r=te.JSXIdentifier;return E(r.name,t,"name",e),t}function axe(e,t){let r={type:"JSXMemberExpression",object:e,property:t},a=te.JSXMemberExpression;return E(a.object,r,"object",e,1),E(a.property,r,"property",t,1),r}function nxe(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},a=te.JSXNamespacedName;return E(a.namespace,r,"namespace",e,1),E(a.name,r,"name",t,1),r}function sxe(e,t,r=!1){let a={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},n=te.JSXOpeningElement;return E(n.name,a,"name",e,1),E(n.attributes,a,"attributes",t,1),E(n.selfClosing,a,"selfClosing",r),a}function ixe(e){let t={type:"JSXSpreadAttribute",argument:e},r=te.JSXSpreadAttribute;return E(r.argument,t,"argument",e,1),t}function oxe(e){let t={type:"JSXText",value:e},r=te.JSXText;return E(r.value,t,"value",e),t}function lxe(e,t,r){let a={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},n=te.JSXFragment;return E(n.openingFragment,a,"openingFragment",e,1),E(n.closingFragment,a,"closingFragment",t,1),E(n.children,a,"children",r,1),a}function cxe(){return{type:"JSXOpeningFragment"}}function uxe(){return{type:"JSXClosingFragment"}}function dxe(){return{type:"Noop"}}function fxe(e,t){let r={type:"Placeholder",expectedNode:e,name:t},a=te.Placeholder;return E(a.expectedNode,r,"expectedNode",e),E(a.name,r,"name",t,1),r}function pxe(e){let t={type:"V8IntrinsicIdentifier",name:e},r=te.V8IntrinsicIdentifier;return E(r.name,t,"name",e),t}function mxe(){return{type:"ArgumentPlaceholder"}}function hxe(e,t){let r={type:"BindExpression",object:e,callee:t},a=te.BindExpression;return E(a.object,r,"object",e,1),E(a.callee,r,"callee",t,1),r}function gxe(e){let t={type:"Decorator",expression:e},r=te.Decorator;return E(r.expression,t,"expression",e,1),t}function yxe(e,t=!1){let r={type:"DoExpression",body:e,async:t},a=te.DoExpression;return E(a.body,r,"body",e,1),E(a.async,r,"async",t),r}function xxe(e){let t={type:"ExportDefaultSpecifier",exported:e},r=te.ExportDefaultSpecifier;return E(r.exported,t,"exported",e,1),t}function bxe(e){let t={type:"RecordExpression",properties:e},r=te.RecordExpression;return E(r.properties,t,"properties",e,1),t}function vxe(e=[]){let t={type:"TupleExpression",elements:e},r=te.TupleExpression;return E(r.elements,t,"elements",e,1),t}function Sxe(e){let t={type:"DecimalLiteral",value:e},r=te.DecimalLiteral;return E(r.value,t,"value",e),t}function Txe(e){let t={type:"ModuleExpression",body:e},r=te.ModuleExpression;return E(r.body,t,"body",e,1),t}function wxe(){return{type:"TopicReference"}}function Cxe(e){let t={type:"PipelineTopicExpression",expression:e},r=te.PipelineTopicExpression;return E(r.expression,t,"expression",e,1),t}function Exe(e){let t={type:"PipelineBareFunction",callee:e},r=te.PipelineBareFunction;return E(r.callee,t,"callee",e,1),t}function Pxe(){return{type:"PipelinePrimaryTopicReference"}}function Axe(){return{type:"VoidPattern"}}function Ixe(e){let t={type:"TSParameterProperty",parameter:e},r=te.TSParameterProperty;return E(r.parameter,t,"parameter",e,1),t}function Nxe(e=null,t=null,r,a=null){let n={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:a},s=te.TSDeclareFunction;return E(s.id,n,"id",e,1),E(s.typeParameters,n,"typeParameters",t,1),E(s.params,n,"params",r,1),E(s.returnType,n,"returnType",a,1),n}function Lxe(e=null,t,r=null,a,n=null){let s={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:a,returnType:n},i=te.TSDeclareMethod;return E(i.decorators,s,"decorators",e,1),E(i.key,s,"key",t,1),E(i.typeParameters,s,"typeParameters",r,1),E(i.params,s,"params",a,1),E(i.returnType,s,"returnType",n,1),s}function Rxe(e,t){let r={type:"TSQualifiedName",left:e,right:t},a=te.TSQualifiedName;return E(a.left,r,"left",e,1),E(a.right,r,"right",t,1),r}function kxe(e=null,t,r=null){let a={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},n=te.TSCallSignatureDeclaration;return E(n.typeParameters,a,"typeParameters",e,1),E(n.parameters,a,"parameters",t,1),E(n.typeAnnotation,a,"typeAnnotation",r,1),a}function Mxe(e=null,t,r=null){let a={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},n=te.TSConstructSignatureDeclaration;return E(n.typeParameters,a,"typeParameters",e,1),E(n.parameters,a,"parameters",t,1),E(n.typeAnnotation,a,"typeAnnotation",r,1),a}function Dxe(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t},a=te.TSPropertySignature;return E(a.key,r,"key",e,1),E(a.typeAnnotation,r,"typeAnnotation",t,1),r}function _xe(e,t=null,r,a=null){let n={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:a,kind:null},s=te.TSMethodSignature;return E(s.key,n,"key",e,1),E(s.typeParameters,n,"typeParameters",t,1),E(s.parameters,n,"parameters",r,1),E(s.typeAnnotation,n,"typeAnnotation",a,1),n}function Oxe(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},a=te.TSIndexSignature;return E(a.parameters,r,"parameters",e,1),E(a.typeAnnotation,r,"typeAnnotation",t,1),r}function Fxe(){return{type:"TSAnyKeyword"}}function Bxe(){return{type:"TSBooleanKeyword"}}function Uxe(){return{type:"TSBigIntKeyword"}}function jxe(){return{type:"TSIntrinsicKeyword"}}function zxe(){return{type:"TSNeverKeyword"}}function Vxe(){return{type:"TSNullKeyword"}}function qxe(){return{type:"TSNumberKeyword"}}function Hxe(){return{type:"TSObjectKeyword"}}function $xe(){return{type:"TSStringKeyword"}}function Gxe(){return{type:"TSSymbolKeyword"}}function Kxe(){return{type:"TSUndefinedKeyword"}}function Wxe(){return{type:"TSUnknownKeyword"}}function Xxe(){return{type:"TSVoidKeyword"}}function Yxe(){return{type:"TSThisType"}}function Jxe(e=null,t,r=null){let a={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},n=te.TSFunctionType;return E(n.typeParameters,a,"typeParameters",e,1),E(n.parameters,a,"parameters",t,1),E(n.typeAnnotation,a,"typeAnnotation",r,1),a}function Qxe(e=null,t,r=null){let a={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},n=te.TSConstructorType;return E(n.typeParameters,a,"typeParameters",e,1),E(n.parameters,a,"parameters",t,1),E(n.typeAnnotation,a,"typeAnnotation",r,1),a}function Zxe(e,t=null){let r={type:"TSTypeReference",typeName:e,typeParameters:t},a=te.TSTypeReference;return E(a.typeName,r,"typeName",e,1),E(a.typeParameters,r,"typeParameters",t,1),r}function ebe(e,t=null,r=null){let a={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},n=te.TSTypePredicate;return E(n.parameterName,a,"parameterName",e,1),E(n.typeAnnotation,a,"typeAnnotation",t,1),E(n.asserts,a,"asserts",r),a}function tbe(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeParameters:t},a=te.TSTypeQuery;return E(a.exprName,r,"exprName",e,1),E(a.typeParameters,r,"typeParameters",t,1),r}function rbe(e){let t={type:"TSTypeLiteral",members:e},r=te.TSTypeLiteral;return E(r.members,t,"members",e,1),t}function abe(e){let t={type:"TSArrayType",elementType:e},r=te.TSArrayType;return E(r.elementType,t,"elementType",e,1),t}function nbe(e){let t={type:"TSTupleType",elementTypes:e},r=te.TSTupleType;return E(r.elementTypes,t,"elementTypes",e,1),t}function sbe(e){let t={type:"TSOptionalType",typeAnnotation:e},r=te.TSOptionalType;return E(r.typeAnnotation,t,"typeAnnotation",e,1),t}function ibe(e){let t={type:"TSRestType",typeAnnotation:e},r=te.TSRestType;return E(r.typeAnnotation,t,"typeAnnotation",e,1),t}function obe(e,t,r=!1){let a={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},n=te.TSNamedTupleMember;return E(n.label,a,"label",e,1),E(n.elementType,a,"elementType",t,1),E(n.optional,a,"optional",r),a}function lbe(e){let t={type:"TSUnionType",types:e},r=te.TSUnionType;return E(r.types,t,"types",e,1),t}function cbe(e){let t={type:"TSIntersectionType",types:e},r=te.TSIntersectionType;return E(r.types,t,"types",e,1),t}function ube(e,t,r,a){let n={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:a},s=te.TSConditionalType;return E(s.checkType,n,"checkType",e,1),E(s.extendsType,n,"extendsType",t,1),E(s.trueType,n,"trueType",r,1),E(s.falseType,n,"falseType",a,1),n}function dbe(e){let t={type:"TSInferType",typeParameter:e},r=te.TSInferType;return E(r.typeParameter,t,"typeParameter",e,1),t}function fbe(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=te.TSParenthesizedType;return E(r.typeAnnotation,t,"typeAnnotation",e,1),t}function pbe(e,t="keyof"){let r={type:"TSTypeOperator",typeAnnotation:e,operator:t},a=te.TSTypeOperator;return E(a.typeAnnotation,r,"typeAnnotation",e,1),E(a.operator,r,"operator",t),r}function mbe(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},a=te.TSIndexedAccessType;return E(a.objectType,r,"objectType",e,1),E(a.indexType,r,"indexType",t,1),r}function hbe(e,t=null,r=null){let a={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},n=te.TSMappedType;return E(n.typeParameter,a,"typeParameter",e,1),E(n.typeAnnotation,a,"typeAnnotation",t,1),E(n.nameType,a,"nameType",r,1),a}function gbe(e,t){let r={type:"TSTemplateLiteralType",quasis:e,types:t},a=te.TSTemplateLiteralType;return E(a.quasis,r,"quasis",e,1),E(a.types,r,"types",t,1),r}function ybe(e){let t={type:"TSLiteralType",literal:e},r=te.TSLiteralType;return E(r.literal,t,"literal",e,1),t}function xbe(e,t=null){let r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},a=te.TSExpressionWithTypeArguments;return E(a.expression,r,"expression",e,1),E(a.typeParameters,r,"typeParameters",t,1),r}function bbe(e,t=null,r=null,a){let n={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:a},s=te.TSInterfaceDeclaration;return E(s.id,n,"id",e,1),E(s.typeParameters,n,"typeParameters",t,1),E(s.extends,n,"extends",r,1),E(s.body,n,"body",a,1),n}function vbe(e){let t={type:"TSInterfaceBody",body:e},r=te.TSInterfaceBody;return E(r.body,t,"body",e,1),t}function Sbe(e,t=null,r){let a={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},n=te.TSTypeAliasDeclaration;return E(n.id,a,"id",e,1),E(n.typeParameters,a,"typeParameters",t,1),E(n.typeAnnotation,a,"typeAnnotation",r,1),a}function Tbe(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeParameters:t},a=te.TSInstantiationExpression;return E(a.expression,r,"expression",e,1),E(a.typeParameters,r,"typeParameters",t,1),r}function wbe(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},a=te.TSAsExpression;return E(a.expression,r,"expression",e,1),E(a.typeAnnotation,r,"typeAnnotation",t,1),r}function Cbe(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},a=te.TSSatisfiesExpression;return E(a.expression,r,"expression",e,1),E(a.typeAnnotation,r,"typeAnnotation",t,1),r}function Ebe(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},a=te.TSTypeAssertion;return E(a.typeAnnotation,r,"typeAnnotation",e,1),E(a.expression,r,"expression",t,1),r}function Pbe(e){let t={type:"TSEnumBody",members:e},r=te.TSEnumBody;return E(r.members,t,"members",e,1),t}function Abe(e,t){let r={type:"TSEnumDeclaration",id:e,members:t},a=te.TSEnumDeclaration;return E(a.id,r,"id",e,1),E(a.members,r,"members",t,1),r}function Ibe(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},a=te.TSEnumMember;return E(a.id,r,"id",e,1),E(a.initializer,r,"initializer",t,1),r}function Nbe(e,t){let r={type:"TSModuleDeclaration",id:e,body:t,kind:null},a=te.TSModuleDeclaration;return E(a.id,r,"id",e,1),E(a.body,r,"body",t,1),r}function Lbe(e){let t={type:"TSModuleBlock",body:e},r=te.TSModuleBlock;return E(r.body,t,"body",e,1),t}function Rbe(e,t=null,r=null){let a={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},n=te.TSImportType;return E(n.argument,a,"argument",e,1),E(n.qualifier,a,"qualifier",t,1),E(n.typeParameters,a,"typeParameters",r,1),a}function kbe(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},a=te.TSImportEqualsDeclaration;return E(a.id,r,"id",e,1),E(a.moduleReference,r,"moduleReference",t,1),r}function Mbe(e){let t={type:"TSExternalModuleReference",expression:e},r=te.TSExternalModuleReference;return E(r.expression,t,"expression",e,1),t}function Dbe(e){let t={type:"TSNonNullExpression",expression:e},r=te.TSNonNullExpression;return E(r.expression,t,"expression",e,1),t}function _be(e){let t={type:"TSExportAssignment",expression:e},r=te.TSExportAssignment;return E(r.expression,t,"expression",e,1),t}function Obe(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=te.TSNamespaceExportDeclaration;return E(r.id,t,"id",e,1),t}function Fbe(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=te.TSTypeAnnotation;return E(r.typeAnnotation,t,"typeAnnotation",e,1),t}function Bbe(e){let t={type:"TSTypeParameterInstantiation",params:e},r=te.TSTypeParameterInstantiation;return E(r.params,t,"params",e,1),t}function Ube(e){let t={type:"TSTypeParameterDeclaration",params:e},r=te.TSTypeParameterDeclaration;return E(r.params,t,"params",e,1),t}function jbe(e=null,t=null,r){let a={type:"TSTypeParameter",constraint:e,default:t,name:r},n=te.TSTypeParameter;return E(n.constraint,a,"constraint",e,1),E(n.default,a,"default",t,1),E(n.name,a,"name",r),a}function zbe(e){return(0,jw.default)("NumberLiteral","NumericLiteral","The node type "),n8(e)}function Vbe(e,t=""){return(0,jw.default)("RegexLiteral","RegExpLiteral","The node type "),s8(e,t)}function qbe(e){return(0,jw.default)("RestProperty","RestElement","The node type "),i8(e)}function Hbe(e){return(0,jw.default)("SpreadProperty","SpreadElement","The node type "),o8(e)}});var l8=ne(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.JSXIdentifier=T.JSXFragment=T.JSXExpressionContainer=T.JSXEmptyExpression=T.JSXElement=T.JSXClosingFragment=T.JSXClosingElement=T.JSXAttribute=T.IntersectionTypeAnnotation=T.InterpreterDirective=T.InterfaceTypeAnnotation=T.InterfaceExtends=T.InterfaceDeclaration=T.InferredPredicate=T.IndexedAccessType=T.ImportSpecifier=T.ImportNamespaceSpecifier=T.ImportExpression=T.ImportDefaultSpecifier=T.ImportDeclaration=T.ImportAttribute=T.Import=T.IfStatement=T.Identifier=T.GenericTypeAnnotation=T.FunctionTypeParam=T.FunctionTypeAnnotation=T.FunctionExpression=T.FunctionDeclaration=T.ForStatement=T.ForOfStatement=T.ForInStatement=T.File=T.ExpressionStatement=T.ExportSpecifier=T.ExportNamespaceSpecifier=T.ExportNamedDeclaration=T.ExportDefaultSpecifier=T.ExportDefaultDeclaration=T.ExportAllDeclaration=T.ExistsTypeAnnotation=T.EnumSymbolBody=T.EnumStringMember=T.EnumStringBody=T.EnumNumberMember=T.EnumNumberBody=T.EnumDefaultedMember=T.EnumDeclaration=T.EnumBooleanMember=T.EnumBooleanBody=T.EmptyTypeAnnotation=T.EmptyStatement=T.DoWhileStatement=T.DoExpression=T.DirectiveLiteral=T.Directive=T.Decorator=T.DeclaredPredicate=T.DeclareVariable=T.DeclareTypeAlias=T.DeclareOpaqueType=T.DeclareModuleExports=T.DeclareModule=T.DeclareInterface=T.DeclareFunction=T.DeclareExportDeclaration=T.DeclareExportAllDeclaration=T.DeclareClass=T.DecimalLiteral=T.DebuggerStatement=T.ContinueStatement=T.ConditionalExpression=T.ClassProperty=T.ClassPrivateProperty=T.ClassPrivateMethod=T.ClassMethod=T.ClassImplements=T.ClassExpression=T.ClassDeclaration=T.ClassBody=T.ClassAccessorProperty=T.CatchClause=T.CallExpression=T.BreakStatement=T.BooleanTypeAnnotation=T.BooleanLiteralTypeAnnotation=T.BooleanLiteral=T.BlockStatement=T.BindExpression=T.BinaryExpression=T.BigIntLiteral=T.AwaitExpression=T.AssignmentPattern=T.AssignmentExpression=T.ArrowFunctionExpression=T.ArrayTypeAnnotation=T.ArrayPattern=T.ArrayExpression=T.ArgumentPlaceholder=T.AnyTypeAnnotation=void 0;T.TSNumberKeyword=T.TSNullKeyword=T.TSNonNullExpression=T.TSNeverKeyword=T.TSNamespaceExportDeclaration=T.TSNamedTupleMember=T.TSModuleDeclaration=T.TSModuleBlock=T.TSMethodSignature=T.TSMappedType=T.TSLiteralType=T.TSIntrinsicKeyword=T.TSIntersectionType=T.TSInterfaceDeclaration=T.TSInterfaceBody=T.TSInstantiationExpression=T.TSInferType=T.TSIndexedAccessType=T.TSIndexSignature=T.TSImportType=T.TSImportEqualsDeclaration=T.TSFunctionType=T.TSExternalModuleReference=T.TSExpressionWithTypeArguments=T.TSExportAssignment=T.TSEnumMember=T.TSEnumDeclaration=T.TSEnumBody=T.TSDeclareMethod=T.TSDeclareFunction=T.TSConstructorType=T.TSConstructSignatureDeclaration=T.TSConditionalType=T.TSCallSignatureDeclaration=T.TSBooleanKeyword=T.TSBigIntKeyword=T.TSAsExpression=T.TSArrayType=T.TSAnyKeyword=T.SymbolTypeAnnotation=T.SwitchStatement=T.SwitchCase=T.Super=T.StringTypeAnnotation=T.StringLiteralTypeAnnotation=T.StringLiteral=T.StaticBlock=T.SpreadProperty=T.SpreadElement=T.SequenceExpression=T.ReturnStatement=T.RestProperty=T.RestElement=T.RegexLiteral=T.RegExpLiteral=T.RecordExpression=T.QualifiedTypeIdentifier=T.Program=T.PrivateName=T.Placeholder=T.PipelineTopicExpression=T.PipelinePrimaryTopicReference=T.PipelineBareFunction=T.ParenthesizedExpression=T.OptionalMemberExpression=T.OptionalIndexedAccessType=T.OptionalCallExpression=T.OpaqueType=T.ObjectTypeSpreadProperty=T.ObjectTypeProperty=T.ObjectTypeInternalSlot=T.ObjectTypeIndexer=T.ObjectTypeCallProperty=T.ObjectTypeAnnotation=T.ObjectProperty=T.ObjectPattern=T.ObjectMethod=T.ObjectExpression=T.NumericLiteral=T.NumberTypeAnnotation=T.NumberLiteralTypeAnnotation=T.NumberLiteral=T.NullableTypeAnnotation=T.NullLiteralTypeAnnotation=T.NullLiteral=T.Noop=T.NewExpression=T.ModuleExpression=T.MixedTypeAnnotation=T.MetaProperty=T.MemberExpression=T.LogicalExpression=T.LabeledStatement=T.JSXText=T.JSXSpreadChild=T.JSXSpreadAttribute=T.JSXOpeningFragment=T.JSXOpeningElement=T.JSXNamespacedName=T.JSXMemberExpression=void 0;T.YieldExpression=T.WithStatement=T.WhileStatement=T.VoidTypeAnnotation=T.VoidPattern=T.Variance=T.VariableDeclarator=T.VariableDeclaration=T.V8IntrinsicIdentifier=T.UpdateExpression=T.UnionTypeAnnotation=T.UnaryExpression=T.TypeofTypeAnnotation=T.TypeParameterInstantiation=T.TypeParameterDeclaration=T.TypeParameter=T.TypeCastExpression=T.TypeAnnotation=T.TypeAlias=T.TupleTypeAnnotation=T.TupleExpression=T.TryStatement=T.TopicReference=T.ThrowStatement=T.ThisTypeAnnotation=T.ThisExpression=T.TemplateLiteral=T.TemplateElement=T.TaggedTemplateExpression=T.TSVoidKeyword=T.TSUnknownKeyword=T.TSUnionType=T.TSUndefinedKeyword=T.TSTypeReference=T.TSTypeQuery=T.TSTypePredicate=T.TSTypeParameterInstantiation=T.TSTypeParameterDeclaration=T.TSTypeParameter=T.TSTypeOperator=T.TSTypeLiteral=T.TSTypeAssertion=T.TSTypeAnnotation=T.TSTypeAliasDeclaration=T.TSTupleType=T.TSThisType=T.TSTemplateLiteralType=T.TSSymbolKeyword=T.TSStringKeyword=T.TSSatisfiesExpression=T.TSRestType=T.TSQualifiedName=T.TSPropertySignature=T.TSParenthesizedType=T.TSParameterProperty=T.TSOptionalType=T.TSObjectKeyword=void 0;var w0=mL(),ytt=Ig();function G(e){return w0[e]}var xtt=T.ArrayExpression=G("arrayExpression"),btt=T.AssignmentExpression=G("assignmentExpression"),vtt=T.BinaryExpression=G("binaryExpression"),Stt=T.InterpreterDirective=G("interpreterDirective"),Ttt=T.Directive=G("directive"),wtt=T.DirectiveLiteral=G("directiveLiteral"),Ctt=T.BlockStatement=G("blockStatement"),Ett=T.BreakStatement=G("breakStatement"),Ptt=T.CallExpression=G("callExpression"),Att=T.CatchClause=G("catchClause"),Itt=T.ConditionalExpression=G("conditionalExpression"),Ntt=T.ContinueStatement=G("continueStatement"),Ltt=T.DebuggerStatement=G("debuggerStatement"),Rtt=T.DoWhileStatement=G("doWhileStatement"),ktt=T.EmptyStatement=G("emptyStatement"),Mtt=T.ExpressionStatement=G("expressionStatement"),Dtt=T.File=G("file"),_tt=T.ForInStatement=G("forInStatement"),Ott=T.ForStatement=G("forStatement"),Ftt=T.FunctionDeclaration=G("functionDeclaration"),Btt=T.FunctionExpression=G("functionExpression"),Utt=T.Identifier=G("identifier"),jtt=T.IfStatement=G("ifStatement"),ztt=T.LabeledStatement=G("labeledStatement"),Vtt=T.StringLiteral=G("stringLiteral"),qtt=T.NumericLiteral=G("numericLiteral"),Htt=T.NullLiteral=G("nullLiteral"),$tt=T.BooleanLiteral=G("booleanLiteral"),Gtt=T.RegExpLiteral=G("regExpLiteral"),Ktt=T.LogicalExpression=G("logicalExpression"),Wtt=T.MemberExpression=G("memberExpression"),Xtt=T.NewExpression=G("newExpression"),Ytt=T.Program=G("program"),Jtt=T.ObjectExpression=G("objectExpression"),Qtt=T.ObjectMethod=G("objectMethod"),Ztt=T.ObjectProperty=G("objectProperty"),ert=T.RestElement=G("restElement"),trt=T.ReturnStatement=G("returnStatement"),rrt=T.SequenceExpression=G("sequenceExpression"),art=T.ParenthesizedExpression=G("parenthesizedExpression"),nrt=T.SwitchCase=G("switchCase"),srt=T.SwitchStatement=G("switchStatement"),irt=T.ThisExpression=G("thisExpression"),ort=T.ThrowStatement=G("throwStatement"),lrt=T.TryStatement=G("tryStatement"),crt=T.UnaryExpression=G("unaryExpression"),urt=T.UpdateExpression=G("updateExpression"),drt=T.VariableDeclaration=G("variableDeclaration"),frt=T.VariableDeclarator=G("variableDeclarator"),prt=T.WhileStatement=G("whileStatement"),mrt=T.WithStatement=G("withStatement"),hrt=T.AssignmentPattern=G("assignmentPattern"),grt=T.ArrayPattern=G("arrayPattern"),yrt=T.ArrowFunctionExpression=G("arrowFunctionExpression"),xrt=T.ClassBody=G("classBody"),brt=T.ClassExpression=G("classExpression"),vrt=T.ClassDeclaration=G("classDeclaration"),Srt=T.ExportAllDeclaration=G("exportAllDeclaration"),Trt=T.ExportDefaultDeclaration=G("exportDefaultDeclaration"),wrt=T.ExportNamedDeclaration=G("exportNamedDeclaration"),Crt=T.ExportSpecifier=G("exportSpecifier"),Ert=T.ForOfStatement=G("forOfStatement"),Prt=T.ImportDeclaration=G("importDeclaration"),Art=T.ImportDefaultSpecifier=G("importDefaultSpecifier"),Irt=T.ImportNamespaceSpecifier=G("importNamespaceSpecifier"),Nrt=T.ImportSpecifier=G("importSpecifier"),Lrt=T.ImportExpression=G("importExpression"),Rrt=T.MetaProperty=G("metaProperty"),krt=T.ClassMethod=G("classMethod"),Mrt=T.ObjectPattern=G("objectPattern"),Drt=T.SpreadElement=G("spreadElement"),_rt=T.Super=G("super"),Ort=T.TaggedTemplateExpression=G("taggedTemplateExpression"),Frt=T.TemplateElement=G("templateElement"),Brt=T.TemplateLiteral=G("templateLiteral"),Urt=T.YieldExpression=G("yieldExpression"),jrt=T.AwaitExpression=G("awaitExpression"),zrt=T.Import=G("import"),Vrt=T.BigIntLiteral=G("bigIntLiteral"),qrt=T.ExportNamespaceSpecifier=G("exportNamespaceSpecifier"),Hrt=T.OptionalMemberExpression=G("optionalMemberExpression"),$rt=T.OptionalCallExpression=G("optionalCallExpression"),Grt=T.ClassProperty=G("classProperty"),Krt=T.ClassAccessorProperty=G("classAccessorProperty"),Wrt=T.ClassPrivateProperty=G("classPrivateProperty"),Xrt=T.ClassPrivateMethod=G("classPrivateMethod"),Yrt=T.PrivateName=G("privateName"),Jrt=T.StaticBlock=G("staticBlock"),Qrt=T.ImportAttribute=G("importAttribute"),Zrt=T.AnyTypeAnnotation=G("anyTypeAnnotation"),eat=T.ArrayTypeAnnotation=G("arrayTypeAnnotation"),tat=T.BooleanTypeAnnotation=G("booleanTypeAnnotation"),rat=T.BooleanLiteralTypeAnnotation=G("booleanLiteralTypeAnnotation"),aat=T.NullLiteralTypeAnnotation=G("nullLiteralTypeAnnotation"),nat=T.ClassImplements=G("classImplements"),sat=T.DeclareClass=G("declareClass"),iat=T.DeclareFunction=G("declareFunction"),oat=T.DeclareInterface=G("declareInterface"),lat=T.DeclareModule=G("declareModule"),cat=T.DeclareModuleExports=G("declareModuleExports"),uat=T.DeclareTypeAlias=G("declareTypeAlias"),dat=T.DeclareOpaqueType=G("declareOpaqueType"),fat=T.DeclareVariable=G("declareVariable"),pat=T.DeclareExportDeclaration=G("declareExportDeclaration"),mat=T.DeclareExportAllDeclaration=G("declareExportAllDeclaration"),hat=T.DeclaredPredicate=G("declaredPredicate"),gat=T.ExistsTypeAnnotation=G("existsTypeAnnotation"),yat=T.FunctionTypeAnnotation=G("functionTypeAnnotation"),xat=T.FunctionTypeParam=G("functionTypeParam"),bat=T.GenericTypeAnnotation=G("genericTypeAnnotation"),vat=T.InferredPredicate=G("inferredPredicate"),Sat=T.InterfaceExtends=G("interfaceExtends"),Tat=T.InterfaceDeclaration=G("interfaceDeclaration"),wat=T.InterfaceTypeAnnotation=G("interfaceTypeAnnotation"),Cat=T.IntersectionTypeAnnotation=G("intersectionTypeAnnotation"),Eat=T.MixedTypeAnnotation=G("mixedTypeAnnotation"),Pat=T.EmptyTypeAnnotation=G("emptyTypeAnnotation"),Aat=T.NullableTypeAnnotation=G("nullableTypeAnnotation"),Iat=T.NumberLiteralTypeAnnotation=G("numberLiteralTypeAnnotation"),Nat=T.NumberTypeAnnotation=G("numberTypeAnnotation"),Lat=T.ObjectTypeAnnotation=G("objectTypeAnnotation"),Rat=T.ObjectTypeInternalSlot=G("objectTypeInternalSlot"),kat=T.ObjectTypeCallProperty=G("objectTypeCallProperty"),Mat=T.ObjectTypeIndexer=G("objectTypeIndexer"),Dat=T.ObjectTypeProperty=G("objectTypeProperty"),_at=T.ObjectTypeSpreadProperty=G("objectTypeSpreadProperty"),Oat=T.OpaqueType=G("opaqueType"),Fat=T.QualifiedTypeIdentifier=G("qualifiedTypeIdentifier"),Bat=T.StringLiteralTypeAnnotation=G("stringLiteralTypeAnnotation"),Uat=T.StringTypeAnnotation=G("stringTypeAnnotation"),jat=T.SymbolTypeAnnotation=G("symbolTypeAnnotation"),zat=T.ThisTypeAnnotation=G("thisTypeAnnotation"),Vat=T.TupleTypeAnnotation=G("tupleTypeAnnotation"),qat=T.TypeofTypeAnnotation=G("typeofTypeAnnotation"),Hat=T.TypeAlias=G("typeAlias"),$at=T.TypeAnnotation=G("typeAnnotation"),Gat=T.TypeCastExpression=G("typeCastExpression"),Kat=T.TypeParameter=G("typeParameter"),Wat=T.TypeParameterDeclaration=G("typeParameterDeclaration"),Xat=T.TypeParameterInstantiation=G("typeParameterInstantiation"),Yat=T.UnionTypeAnnotation=G("unionTypeAnnotation"),Jat=T.Variance=G("variance"),Qat=T.VoidTypeAnnotation=G("voidTypeAnnotation"),Zat=T.EnumDeclaration=G("enumDeclaration"),ent=T.EnumBooleanBody=G("enumBooleanBody"),tnt=T.EnumNumberBody=G("enumNumberBody"),rnt=T.EnumStringBody=G("enumStringBody"),ant=T.EnumSymbolBody=G("enumSymbolBody"),nnt=T.EnumBooleanMember=G("enumBooleanMember"),snt=T.EnumNumberMember=G("enumNumberMember"),int=T.EnumStringMember=G("enumStringMember"),ont=T.EnumDefaultedMember=G("enumDefaultedMember"),lnt=T.IndexedAccessType=G("indexedAccessType"),cnt=T.OptionalIndexedAccessType=G("optionalIndexedAccessType"),unt=T.JSXAttribute=G("jsxAttribute"),dnt=T.JSXClosingElement=G("jsxClosingElement"),fnt=T.JSXElement=G("jsxElement"),pnt=T.JSXEmptyExpression=G("jsxEmptyExpression"),mnt=T.JSXExpressionContainer=G("jsxExpressionContainer"),hnt=T.JSXSpreadChild=G("jsxSpreadChild"),gnt=T.JSXIdentifier=G("jsxIdentifier"),ynt=T.JSXMemberExpression=G("jsxMemberExpression"),xnt=T.JSXNamespacedName=G("jsxNamespacedName"),bnt=T.JSXOpeningElement=G("jsxOpeningElement"),vnt=T.JSXSpreadAttribute=G("jsxSpreadAttribute"),Snt=T.JSXText=G("jsxText"),Tnt=T.JSXFragment=G("jsxFragment"),wnt=T.JSXOpeningFragment=G("jsxOpeningFragment"),Cnt=T.JSXClosingFragment=G("jsxClosingFragment"),Ent=T.Noop=G("noop"),Pnt=T.Placeholder=G("placeholder"),Ant=T.V8IntrinsicIdentifier=G("v8IntrinsicIdentifier"),Int=T.ArgumentPlaceholder=G("argumentPlaceholder"),Nnt=T.BindExpression=G("bindExpression"),Lnt=T.Decorator=G("decorator"),Rnt=T.DoExpression=G("doExpression"),knt=T.ExportDefaultSpecifier=G("exportDefaultSpecifier"),Mnt=T.RecordExpression=G("recordExpression"),Dnt=T.TupleExpression=G("tupleExpression"),_nt=T.DecimalLiteral=G("decimalLiteral"),Ont=T.ModuleExpression=G("moduleExpression"),Fnt=T.TopicReference=G("topicReference"),Bnt=T.PipelineTopicExpression=G("pipelineTopicExpression"),Unt=T.PipelineBareFunction=G("pipelineBareFunction"),jnt=T.PipelinePrimaryTopicReference=G("pipelinePrimaryTopicReference"),znt=T.VoidPattern=G("voidPattern"),Vnt=T.TSParameterProperty=G("tsParameterProperty"),qnt=T.TSDeclareFunction=G("tsDeclareFunction"),Hnt=T.TSDeclareMethod=G("tsDeclareMethod"),$nt=T.TSQualifiedName=G("tsQualifiedName"),Gnt=T.TSCallSignatureDeclaration=G("tsCallSignatureDeclaration"),Knt=T.TSConstructSignatureDeclaration=G("tsConstructSignatureDeclaration"),Wnt=T.TSPropertySignature=G("tsPropertySignature"),Xnt=T.TSMethodSignature=G("tsMethodSignature"),Ynt=T.TSIndexSignature=G("tsIndexSignature"),Jnt=T.TSAnyKeyword=G("tsAnyKeyword"),Qnt=T.TSBooleanKeyword=G("tsBooleanKeyword"),Znt=T.TSBigIntKeyword=G("tsBigIntKeyword"),est=T.TSIntrinsicKeyword=G("tsIntrinsicKeyword"),tst=T.TSNeverKeyword=G("tsNeverKeyword"),rst=T.TSNullKeyword=G("tsNullKeyword"),ast=T.TSNumberKeyword=G("tsNumberKeyword"),nst=T.TSObjectKeyword=G("tsObjectKeyword"),sst=T.TSStringKeyword=G("tsStringKeyword"),ist=T.TSSymbolKeyword=G("tsSymbolKeyword"),ost=T.TSUndefinedKeyword=G("tsUndefinedKeyword"),lst=T.TSUnknownKeyword=G("tsUnknownKeyword"),cst=T.TSVoidKeyword=G("tsVoidKeyword"),ust=T.TSThisType=G("tsThisType"),dst=T.TSFunctionType=G("tsFunctionType"),fst=T.TSConstructorType=G("tsConstructorType"),pst=T.TSTypeReference=G("tsTypeReference"),mst=T.TSTypePredicate=G("tsTypePredicate"),hst=T.TSTypeQuery=G("tsTypeQuery"),gst=T.TSTypeLiteral=G("tsTypeLiteral"),yst=T.TSArrayType=G("tsArrayType"),xst=T.TSTupleType=G("tsTupleType"),bst=T.TSOptionalType=G("tsOptionalType"),vst=T.TSRestType=G("tsRestType"),Sst=T.TSNamedTupleMember=G("tsNamedTupleMember"),Tst=T.TSUnionType=G("tsUnionType"),wst=T.TSIntersectionType=G("tsIntersectionType"),Cst=T.TSConditionalType=G("tsConditionalType"),Est=T.TSInferType=G("tsInferType"),Pst=T.TSParenthesizedType=G("tsParenthesizedType"),Ast=T.TSTypeOperator=G("tsTypeOperator"),Ist=T.TSIndexedAccessType=G("tsIndexedAccessType"),Nst=T.TSMappedType=G("tsMappedType"),Lst=T.TSTemplateLiteralType=G("tsTemplateLiteralType"),Rst=T.TSLiteralType=G("tsLiteralType"),kst=T.TSExpressionWithTypeArguments=G("tsExpressionWithTypeArguments"),Mst=T.TSInterfaceDeclaration=G("tsInterfaceDeclaration"),Dst=T.TSInterfaceBody=G("tsInterfaceBody"),_st=T.TSTypeAliasDeclaration=G("tsTypeAliasDeclaration"),Ost=T.TSInstantiationExpression=G("tsInstantiationExpression"),Fst=T.TSAsExpression=G("tsAsExpression"),Bst=T.TSSatisfiesExpression=G("tsSatisfiesExpression"),Ust=T.TSTypeAssertion=G("tsTypeAssertion"),jst=T.TSEnumBody=G("tsEnumBody"),zst=T.TSEnumDeclaration=G("tsEnumDeclaration"),Vst=T.TSEnumMember=G("tsEnumMember"),qst=T.TSModuleDeclaration=G("tsModuleDeclaration"),Hst=T.TSModuleBlock=G("tsModuleBlock"),$st=T.TSImportType=G("tsImportType"),Gst=T.TSImportEqualsDeclaration=G("tsImportEqualsDeclaration"),Kst=T.TSExternalModuleReference=G("tsExternalModuleReference"),Wst=T.TSNonNullExpression=G("tsNonNullExpression"),Xst=T.TSExportAssignment=G("tsExportAssignment"),Yst=T.TSNamespaceExportDeclaration=G("tsNamespaceExportDeclaration"),Jst=T.TSTypeAnnotation=G("tsTypeAnnotation"),Qst=T.TSTypeParameterInstantiation=G("tsTypeParameterInstantiation"),Zst=T.TSTypeParameterDeclaration=G("tsTypeParameterDeclaration"),eit=T.TSTypeParameter=G("tsTypeParameter"),tit=T.NumberLiteral=w0.numberLiteral,rit=T.RegexLiteral=w0.regexLiteral,ait=T.RestProperty=w0.restProperty,nit=T.SpreadProperty=w0.spreadProperty});var zi=ne(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});var hL=mL();Object.keys(hL).forEach(function(e){e==="default"||e==="__esModule"||e in Jd&&Jd[e]===hL[e]||Object.defineProperty(Jd,e,{enumerable:!0,get:function(){return hL[e]}})});var gL=l8();Object.keys(gL).forEach(function(e){e==="default"||e==="__esModule"||e in Jd&&Jd[e]===gL[e]||Object.defineProperty(Jd,e,{enumerable:!0,get:function(){return gL[e]}})})});var c8=ne(yL=>{"use strict";Object.defineProperty(yL,"__esModule",{value:!0});yL.default=Kbe;var $be=zi(),Gbe=fr();function Kbe(e,t){let r=e.value.split(/\r\n|\n|\r/),a=0;for(let s=0;s{"use strict";Object.defineProperty(bL,"__esModule",{value:!0});bL.default=Xbe;var xL=on(),Wbe=c8();function Xbe(e){let t=[];for(let r=0;r{"use strict";Object.defineProperty(vL,"__esModule",{value:!0});vL.default=Jbe;var Ybe=Yo();function Jbe(e){return!!(e&&Ybe.VISITOR_KEYS[e.type])}});var d8=ne(TL=>{"use strict";Object.defineProperty(TL,"__esModule",{value:!0});TL.default=Zbe;var Qbe=SL();function Zbe(e){if(!(0,Qbe.default)(e)){var t;let r=(t=e?.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var f8=ne(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.assertAccessor=bCe;B.assertAnyTypeAnnotation=Ove;B.assertArgumentPlaceholder=dTe;B.assertArrayExpression=t0e;B.assertArrayPattern=Z0e;B.assertArrayTypeAnnotation=Fve;B.assertArrowFunctionExpression=eve;B.assertAssignmentExpression=r0e;B.assertAssignmentPattern=Q0e;B.assertAwaitExpression=wve;B.assertBigIntLiteral=Eve;B.assertBinary=jwe;B.assertBinaryExpression=a0e;B.assertBindExpression=fTe;B.assertBlock=qwe;B.assertBlockParent=Vwe;B.assertBlockStatement=o0e;B.assertBooleanLiteral=I0e;B.assertBooleanLiteralTypeAnnotation=Uve;B.assertBooleanTypeAnnotation=Bve;B.assertBreakStatement=l0e;B.assertCallExpression=c0e;B.assertCatchClause=u0e;B.assertClass=hCe;B.assertClassAccessorProperty=Lve;B.assertClassBody=tve;B.assertClassDeclaration=ave;B.assertClassExpression=rve;B.assertClassImplements=zve;B.assertClassMethod=hve;B.assertClassPrivateMethod=kve;B.assertClassPrivateProperty=Rve;B.assertClassProperty=Nve;B.assertCompletionStatement=Gwe;B.assertConditional=Kwe;B.assertConditionalExpression=d0e;B.assertContinueStatement=f0e;B.assertDebuggerStatement=p0e;B.assertDecimalLiteral=xTe;B.assertDeclaration=rCe;B.assertDeclareClass=Vve;B.assertDeclareExportAllDeclaration=Jve;B.assertDeclareExportDeclaration=Yve;B.assertDeclareFunction=qve;B.assertDeclareInterface=Hve;B.assertDeclareModule=$ve;B.assertDeclareModuleExports=Gve;B.assertDeclareOpaqueType=Wve;B.assertDeclareTypeAlias=Kve;B.assertDeclareVariable=Xve;B.assertDeclaredPredicate=Qve;B.assertDecorator=pTe;B.assertDirective=s0e;B.assertDirectiveLiteral=i0e;B.assertDoExpression=mTe;B.assertDoWhileStatement=m0e;B.assertEmptyStatement=h0e;B.assertEmptyTypeAnnotation=cSe;B.assertEnumBody=PCe;B.assertEnumBooleanBody=FSe;B.assertEnumBooleanMember=zSe;B.assertEnumDeclaration=OSe;B.assertEnumDefaultedMember=HSe;B.assertEnumMember=ACe;B.assertEnumNumberBody=BSe;B.assertEnumNumberMember=VSe;B.assertEnumStringBody=USe;B.assertEnumStringMember=qSe;B.assertEnumSymbolBody=jSe;B.assertExistsTypeAnnotation=Zve;B.assertExportAllDeclaration=nve;B.assertExportDeclaration=yCe;B.assertExportDefaultDeclaration=sve;B.assertExportDefaultSpecifier=hTe;B.assertExportNamedDeclaration=ive;B.assertExportNamespaceSpecifier=Pve;B.assertExportSpecifier=ove;B.assertExpression=Uwe;B.assertExpressionStatement=g0e;B.assertExpressionWrapper=Ywe;B.assertFile=y0e;B.assertFlow=SCe;B.assertFlowBaseAnnotation=wCe;B.assertFlowDeclaration=CCe;B.assertFlowPredicate=ECe;B.assertFlowType=TCe;B.assertFor=Jwe;B.assertForInStatement=x0e;B.assertForOfStatement=lve;B.assertForStatement=b0e;B.assertForXStatement=Qwe;B.assertFunction=Zwe;B.assertFunctionDeclaration=v0e;B.assertFunctionExpression=S0e;B.assertFunctionParameter=aCe;B.assertFunctionParent=eCe;B.assertFunctionTypeAnnotation=eSe;B.assertFunctionTypeParam=tSe;B.assertGenericTypeAnnotation=rSe;B.assertIdentifier=T0e;B.assertIfStatement=w0e;B.assertImmutable=lCe;B.assertImport=Cve;B.assertImportAttribute=_ve;B.assertImportDeclaration=cve;B.assertImportDefaultSpecifier=uve;B.assertImportExpression=pve;B.assertImportNamespaceSpecifier=dve;B.assertImportOrExportDeclaration=gCe;B.assertImportSpecifier=fve;B.assertIndexedAccessType=$Se;B.assertInferredPredicate=aSe;B.assertInterfaceDeclaration=sSe;B.assertInterfaceExtends=nSe;B.assertInterfaceTypeAnnotation=iSe;B.assertInterpreterDirective=n0e;B.assertIntersectionTypeAnnotation=oSe;B.assertJSX=ICe;B.assertJSXAttribute=KSe;B.assertJSXClosingElement=WSe;B.assertJSXClosingFragment=oTe;B.assertJSXElement=XSe;B.assertJSXEmptyExpression=YSe;B.assertJSXExpressionContainer=JSe;B.assertJSXFragment=sTe;B.assertJSXIdentifier=ZSe;B.assertJSXMemberExpression=eTe;B.assertJSXNamespacedName=tTe;B.assertJSXOpeningElement=rTe;B.assertJSXOpeningFragment=iTe;B.assertJSXSpreadAttribute=aTe;B.assertJSXSpreadChild=QSe;B.assertJSXText=nTe;B.assertLVal=sCe;B.assertLabeledStatement=C0e;B.assertLiteral=oCe;B.assertLogicalExpression=L0e;B.assertLoop=Wwe;B.assertMemberExpression=R0e;B.assertMetaProperty=mve;B.assertMethod=uCe;B.assertMiscellaneous=NCe;B.assertMixedTypeAnnotation=lSe;B.assertModuleDeclaration=BCe;B.assertModuleExpression=bTe;B.assertModuleSpecifier=xCe;B.assertNewExpression=k0e;B.assertNoop=lTe;B.assertNullLiteral=A0e;B.assertNullLiteralTypeAnnotation=jve;B.assertNullableTypeAnnotation=uSe;B.assertNumberLiteral=DCe;B.assertNumberLiteralTypeAnnotation=dSe;B.assertNumberTypeAnnotation=fSe;B.assertNumericLiteral=P0e;B.assertObjectExpression=D0e;B.assertObjectMember=dCe;B.assertObjectMethod=_0e;B.assertObjectPattern=gve;B.assertObjectProperty=O0e;B.assertObjectTypeAnnotation=pSe;B.assertObjectTypeCallProperty=hSe;B.assertObjectTypeIndexer=gSe;B.assertObjectTypeInternalSlot=mSe;B.assertObjectTypeProperty=ySe;B.assertObjectTypeSpreadProperty=xSe;B.assertOpaqueType=bSe;B.assertOptionalCallExpression=Ive;B.assertOptionalIndexedAccessType=GSe;B.assertOptionalMemberExpression=Ave;B.assertParenthesizedExpression=j0e;B.assertPattern=mCe;B.assertPatternLike=nCe;B.assertPipelineBareFunction=TTe;B.assertPipelinePrimaryTopicReference=wTe;B.assertPipelineTopicExpression=STe;B.assertPlaceholder=cTe;B.assertPrivate=vCe;B.assertPrivateName=Mve;B.assertProgram=M0e;B.assertProperty=fCe;B.assertPureish=tCe;B.assertQualifiedTypeIdentifier=vSe;B.assertRecordExpression=gTe;B.assertRegExpLiteral=N0e;B.assertRegexLiteral=_Ce;B.assertRestElement=F0e;B.assertRestProperty=OCe;B.assertReturnStatement=B0e;B.assertScopable=zwe;B.assertSequenceExpression=U0e;B.assertSpreadElement=yve;B.assertSpreadProperty=FCe;B.assertStandardized=Bwe;B.assertStatement=Hwe;B.assertStaticBlock=Dve;B.assertStringLiteral=E0e;B.assertStringLiteralTypeAnnotation=SSe;B.assertStringTypeAnnotation=TSe;B.assertSuper=xve;B.assertSwitchCase=z0e;B.assertSwitchStatement=V0e;B.assertSymbolTypeAnnotation=wSe;B.assertTSAnyKeyword=DTe;B.assertTSArrayType=ewe;B.assertTSAsExpression=vwe;B.assertTSBaseType=MCe;B.assertTSBigIntKeyword=OTe;B.assertTSBooleanKeyword=_Te;B.assertTSCallSignatureDeclaration=NTe;B.assertTSConditionalType=owe;B.assertTSConstructSignatureDeclaration=LTe;B.assertTSConstructorType=XTe;B.assertTSDeclareFunction=PTe;B.assertTSDeclareMethod=ATe;B.assertTSEntityName=iCe;B.assertTSEnumBody=wwe;B.assertTSEnumDeclaration=Cwe;B.assertTSEnumMember=Ewe;B.assertTSExportAssignment=kwe;B.assertTSExpressionWithTypeArguments=hwe;B.assertTSExternalModuleReference=Lwe;B.assertTSFunctionType=WTe;B.assertTSImportEqualsDeclaration=Nwe;B.assertTSImportType=Iwe;B.assertTSIndexSignature=MTe;B.assertTSIndexedAccessType=dwe;B.assertTSInferType=lwe;B.assertTSInstantiationExpression=bwe;B.assertTSInterfaceBody=ywe;B.assertTSInterfaceDeclaration=gwe;B.assertTSIntersectionType=iwe;B.assertTSIntrinsicKeyword=FTe;B.assertTSLiteralType=mwe;B.assertTSMappedType=fwe;B.assertTSMethodSignature=kTe;B.assertTSModuleBlock=Awe;B.assertTSModuleDeclaration=Pwe;B.assertTSNamedTupleMember=nwe;B.assertTSNamespaceExportDeclaration=Mwe;B.assertTSNeverKeyword=BTe;B.assertTSNonNullExpression=Rwe;B.assertTSNullKeyword=UTe;B.assertTSNumberKeyword=jTe;B.assertTSObjectKeyword=zTe;B.assertTSOptionalType=rwe;B.assertTSParameterProperty=ETe;B.assertTSParenthesizedType=cwe;B.assertTSPropertySignature=RTe;B.assertTSQualifiedName=ITe;B.assertTSRestType=awe;B.assertTSSatisfiesExpression=Swe;B.assertTSStringKeyword=VTe;B.assertTSSymbolKeyword=qTe;B.assertTSTemplateLiteralType=pwe;B.assertTSThisType=KTe;B.assertTSTupleType=twe;B.assertTSType=kCe;B.assertTSTypeAliasDeclaration=xwe;B.assertTSTypeAnnotation=Dwe;B.assertTSTypeAssertion=Twe;B.assertTSTypeElement=RCe;B.assertTSTypeLiteral=ZTe;B.assertTSTypeOperator=uwe;B.assertTSTypeParameter=Fwe;B.assertTSTypeParameterDeclaration=Owe;B.assertTSTypeParameterInstantiation=_we;B.assertTSTypePredicate=JTe;B.assertTSTypeQuery=QTe;B.assertTSTypeReference=YTe;B.assertTSUndefinedKeyword=HTe;B.assertTSUnionType=swe;B.assertTSUnknownKeyword=$Te;B.assertTSVoidKeyword=GTe;B.assertTaggedTemplateExpression=bve;B.assertTemplateElement=vve;B.assertTemplateLiteral=Sve;B.assertTerminatorless=$we;B.assertThisExpression=q0e;B.assertThisTypeAnnotation=CSe;B.assertThrowStatement=H0e;B.assertTopicReference=vTe;B.assertTryStatement=$0e;B.assertTupleExpression=yTe;B.assertTupleTypeAnnotation=ESe;B.assertTypeAlias=ASe;B.assertTypeAnnotation=ISe;B.assertTypeCastExpression=NSe;B.assertTypeParameter=LSe;B.assertTypeParameterDeclaration=RSe;B.assertTypeParameterInstantiation=kSe;B.assertTypeScript=LCe;B.assertTypeofTypeAnnotation=PSe;B.assertUnaryExpression=G0e;B.assertUnaryLike=pCe;B.assertUnionTypeAnnotation=MSe;B.assertUpdateExpression=K0e;B.assertUserWhitespacable=cCe;B.assertV8IntrinsicIdentifier=uTe;B.assertVariableDeclaration=W0e;B.assertVariableDeclarator=X0e;B.assertVariance=DSe;B.assertVoidPattern=CTe;B.assertVoidTypeAnnotation=_Se;B.assertWhile=Xwe;B.assertWhileStatement=Y0e;B.assertWithStatement=J0e;B.assertYieldExpression=Tve;var e0e=Ng(),C0=Ig();function U(e,t,r){if(!(0,e0e.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function t0e(e,t){U("ArrayExpression",e,t)}function r0e(e,t){U("AssignmentExpression",e,t)}function a0e(e,t){U("BinaryExpression",e,t)}function n0e(e,t){U("InterpreterDirective",e,t)}function s0e(e,t){U("Directive",e,t)}function i0e(e,t){U("DirectiveLiteral",e,t)}function o0e(e,t){U("BlockStatement",e,t)}function l0e(e,t){U("BreakStatement",e,t)}function c0e(e,t){U("CallExpression",e,t)}function u0e(e,t){U("CatchClause",e,t)}function d0e(e,t){U("ConditionalExpression",e,t)}function f0e(e,t){U("ContinueStatement",e,t)}function p0e(e,t){U("DebuggerStatement",e,t)}function m0e(e,t){U("DoWhileStatement",e,t)}function h0e(e,t){U("EmptyStatement",e,t)}function g0e(e,t){U("ExpressionStatement",e,t)}function y0e(e,t){U("File",e,t)}function x0e(e,t){U("ForInStatement",e,t)}function b0e(e,t){U("ForStatement",e,t)}function v0e(e,t){U("FunctionDeclaration",e,t)}function S0e(e,t){U("FunctionExpression",e,t)}function T0e(e,t){U("Identifier",e,t)}function w0e(e,t){U("IfStatement",e,t)}function C0e(e,t){U("LabeledStatement",e,t)}function E0e(e,t){U("StringLiteral",e,t)}function P0e(e,t){U("NumericLiteral",e,t)}function A0e(e,t){U("NullLiteral",e,t)}function I0e(e,t){U("BooleanLiteral",e,t)}function N0e(e,t){U("RegExpLiteral",e,t)}function L0e(e,t){U("LogicalExpression",e,t)}function R0e(e,t){U("MemberExpression",e,t)}function k0e(e,t){U("NewExpression",e,t)}function M0e(e,t){U("Program",e,t)}function D0e(e,t){U("ObjectExpression",e,t)}function _0e(e,t){U("ObjectMethod",e,t)}function O0e(e,t){U("ObjectProperty",e,t)}function F0e(e,t){U("RestElement",e,t)}function B0e(e,t){U("ReturnStatement",e,t)}function U0e(e,t){U("SequenceExpression",e,t)}function j0e(e,t){U("ParenthesizedExpression",e,t)}function z0e(e,t){U("SwitchCase",e,t)}function V0e(e,t){U("SwitchStatement",e,t)}function q0e(e,t){U("ThisExpression",e,t)}function H0e(e,t){U("ThrowStatement",e,t)}function $0e(e,t){U("TryStatement",e,t)}function G0e(e,t){U("UnaryExpression",e,t)}function K0e(e,t){U("UpdateExpression",e,t)}function W0e(e,t){U("VariableDeclaration",e,t)}function X0e(e,t){U("VariableDeclarator",e,t)}function Y0e(e,t){U("WhileStatement",e,t)}function J0e(e,t){U("WithStatement",e,t)}function Q0e(e,t){U("AssignmentPattern",e,t)}function Z0e(e,t){U("ArrayPattern",e,t)}function eve(e,t){U("ArrowFunctionExpression",e,t)}function tve(e,t){U("ClassBody",e,t)}function rve(e,t){U("ClassExpression",e,t)}function ave(e,t){U("ClassDeclaration",e,t)}function nve(e,t){U("ExportAllDeclaration",e,t)}function sve(e,t){U("ExportDefaultDeclaration",e,t)}function ive(e,t){U("ExportNamedDeclaration",e,t)}function ove(e,t){U("ExportSpecifier",e,t)}function lve(e,t){U("ForOfStatement",e,t)}function cve(e,t){U("ImportDeclaration",e,t)}function uve(e,t){U("ImportDefaultSpecifier",e,t)}function dve(e,t){U("ImportNamespaceSpecifier",e,t)}function fve(e,t){U("ImportSpecifier",e,t)}function pve(e,t){U("ImportExpression",e,t)}function mve(e,t){U("MetaProperty",e,t)}function hve(e,t){U("ClassMethod",e,t)}function gve(e,t){U("ObjectPattern",e,t)}function yve(e,t){U("SpreadElement",e,t)}function xve(e,t){U("Super",e,t)}function bve(e,t){U("TaggedTemplateExpression",e,t)}function vve(e,t){U("TemplateElement",e,t)}function Sve(e,t){U("TemplateLiteral",e,t)}function Tve(e,t){U("YieldExpression",e,t)}function wve(e,t){U("AwaitExpression",e,t)}function Cve(e,t){U("Import",e,t)}function Eve(e,t){U("BigIntLiteral",e,t)}function Pve(e,t){U("ExportNamespaceSpecifier",e,t)}function Ave(e,t){U("OptionalMemberExpression",e,t)}function Ive(e,t){U("OptionalCallExpression",e,t)}function Nve(e,t){U("ClassProperty",e,t)}function Lve(e,t){U("ClassAccessorProperty",e,t)}function Rve(e,t){U("ClassPrivateProperty",e,t)}function kve(e,t){U("ClassPrivateMethod",e,t)}function Mve(e,t){U("PrivateName",e,t)}function Dve(e,t){U("StaticBlock",e,t)}function _ve(e,t){U("ImportAttribute",e,t)}function Ove(e,t){U("AnyTypeAnnotation",e,t)}function Fve(e,t){U("ArrayTypeAnnotation",e,t)}function Bve(e,t){U("BooleanTypeAnnotation",e,t)}function Uve(e,t){U("BooleanLiteralTypeAnnotation",e,t)}function jve(e,t){U("NullLiteralTypeAnnotation",e,t)}function zve(e,t){U("ClassImplements",e,t)}function Vve(e,t){U("DeclareClass",e,t)}function qve(e,t){U("DeclareFunction",e,t)}function Hve(e,t){U("DeclareInterface",e,t)}function $ve(e,t){U("DeclareModule",e,t)}function Gve(e,t){U("DeclareModuleExports",e,t)}function Kve(e,t){U("DeclareTypeAlias",e,t)}function Wve(e,t){U("DeclareOpaqueType",e,t)}function Xve(e,t){U("DeclareVariable",e,t)}function Yve(e,t){U("DeclareExportDeclaration",e,t)}function Jve(e,t){U("DeclareExportAllDeclaration",e,t)}function Qve(e,t){U("DeclaredPredicate",e,t)}function Zve(e,t){U("ExistsTypeAnnotation",e,t)}function eSe(e,t){U("FunctionTypeAnnotation",e,t)}function tSe(e,t){U("FunctionTypeParam",e,t)}function rSe(e,t){U("GenericTypeAnnotation",e,t)}function aSe(e,t){U("InferredPredicate",e,t)}function nSe(e,t){U("InterfaceExtends",e,t)}function sSe(e,t){U("InterfaceDeclaration",e,t)}function iSe(e,t){U("InterfaceTypeAnnotation",e,t)}function oSe(e,t){U("IntersectionTypeAnnotation",e,t)}function lSe(e,t){U("MixedTypeAnnotation",e,t)}function cSe(e,t){U("EmptyTypeAnnotation",e,t)}function uSe(e,t){U("NullableTypeAnnotation",e,t)}function dSe(e,t){U("NumberLiteralTypeAnnotation",e,t)}function fSe(e,t){U("NumberTypeAnnotation",e,t)}function pSe(e,t){U("ObjectTypeAnnotation",e,t)}function mSe(e,t){U("ObjectTypeInternalSlot",e,t)}function hSe(e,t){U("ObjectTypeCallProperty",e,t)}function gSe(e,t){U("ObjectTypeIndexer",e,t)}function ySe(e,t){U("ObjectTypeProperty",e,t)}function xSe(e,t){U("ObjectTypeSpreadProperty",e,t)}function bSe(e,t){U("OpaqueType",e,t)}function vSe(e,t){U("QualifiedTypeIdentifier",e,t)}function SSe(e,t){U("StringLiteralTypeAnnotation",e,t)}function TSe(e,t){U("StringTypeAnnotation",e,t)}function wSe(e,t){U("SymbolTypeAnnotation",e,t)}function CSe(e,t){U("ThisTypeAnnotation",e,t)}function ESe(e,t){U("TupleTypeAnnotation",e,t)}function PSe(e,t){U("TypeofTypeAnnotation",e,t)}function ASe(e,t){U("TypeAlias",e,t)}function ISe(e,t){U("TypeAnnotation",e,t)}function NSe(e,t){U("TypeCastExpression",e,t)}function LSe(e,t){U("TypeParameter",e,t)}function RSe(e,t){U("TypeParameterDeclaration",e,t)}function kSe(e,t){U("TypeParameterInstantiation",e,t)}function MSe(e,t){U("UnionTypeAnnotation",e,t)}function DSe(e,t){U("Variance",e,t)}function _Se(e,t){U("VoidTypeAnnotation",e,t)}function OSe(e,t){U("EnumDeclaration",e,t)}function FSe(e,t){U("EnumBooleanBody",e,t)}function BSe(e,t){U("EnumNumberBody",e,t)}function USe(e,t){U("EnumStringBody",e,t)}function jSe(e,t){U("EnumSymbolBody",e,t)}function zSe(e,t){U("EnumBooleanMember",e,t)}function VSe(e,t){U("EnumNumberMember",e,t)}function qSe(e,t){U("EnumStringMember",e,t)}function HSe(e,t){U("EnumDefaultedMember",e,t)}function $Se(e,t){U("IndexedAccessType",e,t)}function GSe(e,t){U("OptionalIndexedAccessType",e,t)}function KSe(e,t){U("JSXAttribute",e,t)}function WSe(e,t){U("JSXClosingElement",e,t)}function XSe(e,t){U("JSXElement",e,t)}function YSe(e,t){U("JSXEmptyExpression",e,t)}function JSe(e,t){U("JSXExpressionContainer",e,t)}function QSe(e,t){U("JSXSpreadChild",e,t)}function ZSe(e,t){U("JSXIdentifier",e,t)}function eTe(e,t){U("JSXMemberExpression",e,t)}function tTe(e,t){U("JSXNamespacedName",e,t)}function rTe(e,t){U("JSXOpeningElement",e,t)}function aTe(e,t){U("JSXSpreadAttribute",e,t)}function nTe(e,t){U("JSXText",e,t)}function sTe(e,t){U("JSXFragment",e,t)}function iTe(e,t){U("JSXOpeningFragment",e,t)}function oTe(e,t){U("JSXClosingFragment",e,t)}function lTe(e,t){U("Noop",e,t)}function cTe(e,t){U("Placeholder",e,t)}function uTe(e,t){U("V8IntrinsicIdentifier",e,t)}function dTe(e,t){U("ArgumentPlaceholder",e,t)}function fTe(e,t){U("BindExpression",e,t)}function pTe(e,t){U("Decorator",e,t)}function mTe(e,t){U("DoExpression",e,t)}function hTe(e,t){U("ExportDefaultSpecifier",e,t)}function gTe(e,t){U("RecordExpression",e,t)}function yTe(e,t){U("TupleExpression",e,t)}function xTe(e,t){U("DecimalLiteral",e,t)}function bTe(e,t){U("ModuleExpression",e,t)}function vTe(e,t){U("TopicReference",e,t)}function STe(e,t){U("PipelineTopicExpression",e,t)}function TTe(e,t){U("PipelineBareFunction",e,t)}function wTe(e,t){U("PipelinePrimaryTopicReference",e,t)}function CTe(e,t){U("VoidPattern",e,t)}function ETe(e,t){U("TSParameterProperty",e,t)}function PTe(e,t){U("TSDeclareFunction",e,t)}function ATe(e,t){U("TSDeclareMethod",e,t)}function ITe(e,t){U("TSQualifiedName",e,t)}function NTe(e,t){U("TSCallSignatureDeclaration",e,t)}function LTe(e,t){U("TSConstructSignatureDeclaration",e,t)}function RTe(e,t){U("TSPropertySignature",e,t)}function kTe(e,t){U("TSMethodSignature",e,t)}function MTe(e,t){U("TSIndexSignature",e,t)}function DTe(e,t){U("TSAnyKeyword",e,t)}function _Te(e,t){U("TSBooleanKeyword",e,t)}function OTe(e,t){U("TSBigIntKeyword",e,t)}function FTe(e,t){U("TSIntrinsicKeyword",e,t)}function BTe(e,t){U("TSNeverKeyword",e,t)}function UTe(e,t){U("TSNullKeyword",e,t)}function jTe(e,t){U("TSNumberKeyword",e,t)}function zTe(e,t){U("TSObjectKeyword",e,t)}function VTe(e,t){U("TSStringKeyword",e,t)}function qTe(e,t){U("TSSymbolKeyword",e,t)}function HTe(e,t){U("TSUndefinedKeyword",e,t)}function $Te(e,t){U("TSUnknownKeyword",e,t)}function GTe(e,t){U("TSVoidKeyword",e,t)}function KTe(e,t){U("TSThisType",e,t)}function WTe(e,t){U("TSFunctionType",e,t)}function XTe(e,t){U("TSConstructorType",e,t)}function YTe(e,t){U("TSTypeReference",e,t)}function JTe(e,t){U("TSTypePredicate",e,t)}function QTe(e,t){U("TSTypeQuery",e,t)}function ZTe(e,t){U("TSTypeLiteral",e,t)}function ewe(e,t){U("TSArrayType",e,t)}function twe(e,t){U("TSTupleType",e,t)}function rwe(e,t){U("TSOptionalType",e,t)}function awe(e,t){U("TSRestType",e,t)}function nwe(e,t){U("TSNamedTupleMember",e,t)}function swe(e,t){U("TSUnionType",e,t)}function iwe(e,t){U("TSIntersectionType",e,t)}function owe(e,t){U("TSConditionalType",e,t)}function lwe(e,t){U("TSInferType",e,t)}function cwe(e,t){U("TSParenthesizedType",e,t)}function uwe(e,t){U("TSTypeOperator",e,t)}function dwe(e,t){U("TSIndexedAccessType",e,t)}function fwe(e,t){U("TSMappedType",e,t)}function pwe(e,t){U("TSTemplateLiteralType",e,t)}function mwe(e,t){U("TSLiteralType",e,t)}function hwe(e,t){U("TSExpressionWithTypeArguments",e,t)}function gwe(e,t){U("TSInterfaceDeclaration",e,t)}function ywe(e,t){U("TSInterfaceBody",e,t)}function xwe(e,t){U("TSTypeAliasDeclaration",e,t)}function bwe(e,t){U("TSInstantiationExpression",e,t)}function vwe(e,t){U("TSAsExpression",e,t)}function Swe(e,t){U("TSSatisfiesExpression",e,t)}function Twe(e,t){U("TSTypeAssertion",e,t)}function wwe(e,t){U("TSEnumBody",e,t)}function Cwe(e,t){U("TSEnumDeclaration",e,t)}function Ewe(e,t){U("TSEnumMember",e,t)}function Pwe(e,t){U("TSModuleDeclaration",e,t)}function Awe(e,t){U("TSModuleBlock",e,t)}function Iwe(e,t){U("TSImportType",e,t)}function Nwe(e,t){U("TSImportEqualsDeclaration",e,t)}function Lwe(e,t){U("TSExternalModuleReference",e,t)}function Rwe(e,t){U("TSNonNullExpression",e,t)}function kwe(e,t){U("TSExportAssignment",e,t)}function Mwe(e,t){U("TSNamespaceExportDeclaration",e,t)}function Dwe(e,t){U("TSTypeAnnotation",e,t)}function _we(e,t){U("TSTypeParameterInstantiation",e,t)}function Owe(e,t){U("TSTypeParameterDeclaration",e,t)}function Fwe(e,t){U("TSTypeParameter",e,t)}function Bwe(e,t){U("Standardized",e,t)}function Uwe(e,t){U("Expression",e,t)}function jwe(e,t){U("Binary",e,t)}function zwe(e,t){U("Scopable",e,t)}function Vwe(e,t){U("BlockParent",e,t)}function qwe(e,t){U("Block",e,t)}function Hwe(e,t){U("Statement",e,t)}function $we(e,t){U("Terminatorless",e,t)}function Gwe(e,t){U("CompletionStatement",e,t)}function Kwe(e,t){U("Conditional",e,t)}function Wwe(e,t){U("Loop",e,t)}function Xwe(e,t){U("While",e,t)}function Ywe(e,t){U("ExpressionWrapper",e,t)}function Jwe(e,t){U("For",e,t)}function Qwe(e,t){U("ForXStatement",e,t)}function Zwe(e,t){U("Function",e,t)}function eCe(e,t){U("FunctionParent",e,t)}function tCe(e,t){U("Pureish",e,t)}function rCe(e,t){U("Declaration",e,t)}function aCe(e,t){U("FunctionParameter",e,t)}function nCe(e,t){U("PatternLike",e,t)}function sCe(e,t){U("LVal",e,t)}function iCe(e,t){U("TSEntityName",e,t)}function oCe(e,t){U("Literal",e,t)}function lCe(e,t){U("Immutable",e,t)}function cCe(e,t){U("UserWhitespacable",e,t)}function uCe(e,t){U("Method",e,t)}function dCe(e,t){U("ObjectMember",e,t)}function fCe(e,t){U("Property",e,t)}function pCe(e,t){U("UnaryLike",e,t)}function mCe(e,t){U("Pattern",e,t)}function hCe(e,t){U("Class",e,t)}function gCe(e,t){U("ImportOrExportDeclaration",e,t)}function yCe(e,t){U("ExportDeclaration",e,t)}function xCe(e,t){U("ModuleSpecifier",e,t)}function bCe(e,t){U("Accessor",e,t)}function vCe(e,t){U("Private",e,t)}function SCe(e,t){U("Flow",e,t)}function TCe(e,t){U("FlowType",e,t)}function wCe(e,t){U("FlowBaseAnnotation",e,t)}function CCe(e,t){U("FlowDeclaration",e,t)}function ECe(e,t){U("FlowPredicate",e,t)}function PCe(e,t){U("EnumBody",e,t)}function ACe(e,t){U("EnumMember",e,t)}function ICe(e,t){U("JSX",e,t)}function NCe(e,t){U("Miscellaneous",e,t)}function LCe(e,t){U("TypeScript",e,t)}function RCe(e,t){U("TSTypeElement",e,t)}function kCe(e,t){U("TSType",e,t)}function MCe(e,t){U("TSBaseType",e,t)}function DCe(e,t){(0,C0.default)("assertNumberLiteral","assertNumericLiteral"),U("NumberLiteral",e,t)}function _Ce(e,t){(0,C0.default)("assertRegexLiteral","assertRegExpLiteral"),U("RegexLiteral",e,t)}function OCe(e,t){(0,C0.default)("assertRestProperty","assertRestElement"),U("RestProperty",e,t)}function FCe(e,t){(0,C0.default)("assertSpreadProperty","assertSpreadElement"),U("SpreadProperty",e,t)}function BCe(e,t){(0,C0.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),U("ModuleDeclaration",e,t)}});var p8=ne(zw=>{"use strict";Object.defineProperty(zw,"__esModule",{value:!0});zw.default=void 0;var Vl=zi(),fit=zw.default=UCe;function UCe(e){switch(e){case"string":return(0,Vl.stringTypeAnnotation)();case"number":return(0,Vl.numberTypeAnnotation)();case"undefined":return(0,Vl.voidTypeAnnotation)();case"boolean":return(0,Vl.booleanTypeAnnotation)();case"function":return(0,Vl.genericTypeAnnotation)((0,Vl.identifier)("Function"));case"object":return(0,Vl.genericTypeAnnotation)((0,Vl.identifier)("Object"));case"symbol":return(0,Vl.genericTypeAnnotation)((0,Vl.identifier)("Symbol"));case"bigint":return(0,Vl.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var CL=ne(wL=>{"use strict";Object.defineProperty(wL,"__esModule",{value:!0});wL.default=h8;var E0=on();function m8(e){return(0,E0.isIdentifier)(e)?e.name:`${e.id.name}.${m8(e.qualification)}`}function h8(e){let t=Array.from(e),r=new Map,a=new Map,n=new Set,s=[];for(let i=0;i{"use strict";Object.defineProperty(EL,"__esModule",{value:!0});EL.default=VCe;var jCe=zi(),zCe=CL();function VCe(e){let t=(0,zCe.default)(e);return t.length===1?t[0]:(0,jCe.unionTypeAnnotation)(t)}});var b8=ne(PL=>{"use strict";Object.defineProperty(PL,"__esModule",{value:!0});PL.default=x8;var Og=on();function y8(e){return(0,Og.isIdentifier)(e)?e.name:(0,Og.isThisExpression)(e)?"this":`${e.right.name}.${y8(e.left)}`}function x8(e){let t=Array.from(e),r=new Map,a=new Map,n=new Set,s=[];for(let i=0;i{"use strict";Object.defineProperty(AL,"__esModule",{value:!0});AL.default=GCe;var qCe=zi(),HCe=b8(),$Ce=on();function GCe(e){let t=e.map(a=>(0,$Ce.isTSTypeAnnotation)(a)?a.typeAnnotation:a),r=(0,HCe.default)(t);return r.length===1?r[0]:(0,qCe.tsUnionType)(r)}});var NL=ne(IL=>{"use strict";Object.defineProperty(IL,"__esModule",{value:!0});IL.buildUndefinedNode=KCe;var S8=zi();function KCe(){return(0,S8.unaryExpression)("void",(0,S8.numericLiteral)(0),!0)}});var Qd=ne(RL=>{"use strict";Object.defineProperty(RL,"__esModule",{value:!0});RL.default=WCe;var T8=Yo(),w8=on(),{hasOwn:Pc}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function C8(e,t,r,a){return e&&typeof e.type=="string"?E8(e,t,r,a):e}function LL(e,t,r,a){return Array.isArray(e)?e.map(n=>C8(n,t,r,a)):C8(e,t,r,a)}function WCe(e,t=!0,r=!1){return E8(e,t,r,new Map)}function E8(e,t=!0,r=!1,a){if(!e)return e;let{type:n}=e,s={type:e.type};if((0,w8.isIdentifier)(e))s.name=e.name,Pc(e,"optional")&&typeof e.optional=="boolean"&&(s.optional=e.optional),Pc(e,"typeAnnotation")&&(s.typeAnnotation=t?LL(e.typeAnnotation,!0,r,a):e.typeAnnotation),Pc(e,"decorators")&&(s.decorators=t?LL(e.decorators,!0,r,a):e.decorators);else if(Pc(T8.NODE_FIELDS,n))for(let i of Object.keys(T8.NODE_FIELDS[n]))Pc(e,i)&&(t?s[i]=(0,w8.isFile)(e)&&i==="comments"?Vw(e.comments,t,r,a):LL(e[i],!0,r,a):s[i]=e[i]);else throw new Error(`Unknown node type: "${n}"`);return Pc(e,"loc")&&(r?s.loc=null:s.loc=e.loc),Pc(e,"leadingComments")&&(s.leadingComments=Vw(e.leadingComments,t,r,a)),Pc(e,"innerComments")&&(s.innerComments=Vw(e.innerComments,t,r,a)),Pc(e,"trailingComments")&&(s.trailingComments=Vw(e.trailingComments,t,r,a)),Pc(e,"extra")&&(s.extra=Object.assign({},e.extra)),s}function Vw(e,t,r,a){return!e||!t?e:e.map(n=>{let s=a.get(n);if(s)return s;let{type:i,value:o,loc:l}=n,c={type:i,value:o,loc:l};return r&&(c.loc=null),a.set(n,c),c})}});var P8=ne(kL=>{"use strict";Object.defineProperty(kL,"__esModule",{value:!0});kL.default=YCe;var XCe=Qd();function YCe(e){return(0,XCe.default)(e,!1)}});var A8=ne(ML=>{"use strict";Object.defineProperty(ML,"__esModule",{value:!0});ML.default=QCe;var JCe=Qd();function QCe(e){return(0,JCe.default)(e)}});var I8=ne(DL=>{"use strict";Object.defineProperty(DL,"__esModule",{value:!0});DL.default=e1e;var ZCe=Qd();function e1e(e){return(0,ZCe.default)(e,!0,!0)}});var N8=ne(_L=>{"use strict";Object.defineProperty(_L,"__esModule",{value:!0});_L.default=r1e;var t1e=Qd();function r1e(e){return(0,t1e.default)(e,!1,!0)}});var FL=ne(OL=>{"use strict";Object.defineProperty(OL,"__esModule",{value:!0});OL.default=a1e;function a1e(e,t,r){if(!r||!e)return e;let a=`${t}Comments`;return e[a]?t==="leading"?e[a]=r.concat(e[a]):e[a].push(...r):e[a]=r,e}});var L8=ne(BL=>{"use strict";Object.defineProperty(BL,"__esModule",{value:!0});BL.default=s1e;var n1e=FL();function s1e(e,t,r,a){return(0,n1e.default)(e,t,[{type:a?"CommentLine":"CommentBlock",value:r}])}});var qw=ne(UL=>{"use strict";Object.defineProperty(UL,"__esModule",{value:!0});UL.default=i1e;function i1e(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}});var zL=ne(jL=>{"use strict";Object.defineProperty(jL,"__esModule",{value:!0});jL.default=l1e;var o1e=qw();function l1e(e,t){(0,o1e.default)("innerComments",e,t)}});var qL=ne(VL=>{"use strict";Object.defineProperty(VL,"__esModule",{value:!0});VL.default=u1e;var c1e=qw();function u1e(e,t){(0,c1e.default)("leadingComments",e,t)}});var $L=ne(HL=>{"use strict";Object.defineProperty(HL,"__esModule",{value:!0});HL.default=f1e;var d1e=qw();function f1e(e,t){(0,d1e.default)("trailingComments",e,t)}});var KL=ne(GL=>{"use strict";Object.defineProperty(GL,"__esModule",{value:!0});GL.default=g1e;var p1e=$L(),m1e=qL(),h1e=zL();function g1e(e,t){return(0,p1e.default)(e,t),(0,m1e.default)(e,t),(0,h1e.default)(e,t),e}});var R8=ne(WL=>{"use strict";Object.defineProperty(WL,"__esModule",{value:!0});WL.default=x1e;var y1e=Rg();function x1e(e){return y1e.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}});var k8=ne(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.WHILE_TYPES=Ue.USERWHITESPACABLE_TYPES=Ue.UNARYLIKE_TYPES=Ue.TYPESCRIPT_TYPES=Ue.TSTYPE_TYPES=Ue.TSTYPEELEMENT_TYPES=Ue.TSENTITYNAME_TYPES=Ue.TSBASETYPE_TYPES=Ue.TERMINATORLESS_TYPES=Ue.STATEMENT_TYPES=Ue.STANDARDIZED_TYPES=Ue.SCOPABLE_TYPES=Ue.PUREISH_TYPES=Ue.PROPERTY_TYPES=Ue.PRIVATE_TYPES=Ue.PATTERN_TYPES=Ue.PATTERNLIKE_TYPES=Ue.OBJECTMEMBER_TYPES=Ue.MODULESPECIFIER_TYPES=Ue.MODULEDECLARATION_TYPES=Ue.MISCELLANEOUS_TYPES=Ue.METHOD_TYPES=Ue.LVAL_TYPES=Ue.LOOP_TYPES=Ue.LITERAL_TYPES=Ue.JSX_TYPES=Ue.IMPORTOREXPORTDECLARATION_TYPES=Ue.IMMUTABLE_TYPES=Ue.FUNCTION_TYPES=Ue.FUNCTIONPARENT_TYPES=Ue.FUNCTIONPARAMETER_TYPES=Ue.FOR_TYPES=Ue.FORXSTATEMENT_TYPES=Ue.FLOW_TYPES=Ue.FLOWTYPE_TYPES=Ue.FLOWPREDICATE_TYPES=Ue.FLOWDECLARATION_TYPES=Ue.FLOWBASEANNOTATION_TYPES=Ue.EXPRESSION_TYPES=Ue.EXPRESSIONWRAPPER_TYPES=Ue.EXPORTDECLARATION_TYPES=Ue.ENUMMEMBER_TYPES=Ue.ENUMBODY_TYPES=Ue.DECLARATION_TYPES=Ue.CONDITIONAL_TYPES=Ue.COMPLETIONSTATEMENT_TYPES=Ue.CLASS_TYPES=Ue.BLOCK_TYPES=Ue.BLOCKPARENT_TYPES=Ue.BINARY_TYPES=Ue.ACCESSOR_TYPES=void 0;var Kt=Yo(),kit=Ue.STANDARDIZED_TYPES=Kt.FLIPPED_ALIAS_KEYS.Standardized,Mit=Ue.EXPRESSION_TYPES=Kt.FLIPPED_ALIAS_KEYS.Expression,Dit=Ue.BINARY_TYPES=Kt.FLIPPED_ALIAS_KEYS.Binary,_it=Ue.SCOPABLE_TYPES=Kt.FLIPPED_ALIAS_KEYS.Scopable,Oit=Ue.BLOCKPARENT_TYPES=Kt.FLIPPED_ALIAS_KEYS.BlockParent,Fit=Ue.BLOCK_TYPES=Kt.FLIPPED_ALIAS_KEYS.Block,Bit=Ue.STATEMENT_TYPES=Kt.FLIPPED_ALIAS_KEYS.Statement,Uit=Ue.TERMINATORLESS_TYPES=Kt.FLIPPED_ALIAS_KEYS.Terminatorless,jit=Ue.COMPLETIONSTATEMENT_TYPES=Kt.FLIPPED_ALIAS_KEYS.CompletionStatement,zit=Ue.CONDITIONAL_TYPES=Kt.FLIPPED_ALIAS_KEYS.Conditional,Vit=Ue.LOOP_TYPES=Kt.FLIPPED_ALIAS_KEYS.Loop,qit=Ue.WHILE_TYPES=Kt.FLIPPED_ALIAS_KEYS.While,Hit=Ue.EXPRESSIONWRAPPER_TYPES=Kt.FLIPPED_ALIAS_KEYS.ExpressionWrapper,$it=Ue.FOR_TYPES=Kt.FLIPPED_ALIAS_KEYS.For,Git=Ue.FORXSTATEMENT_TYPES=Kt.FLIPPED_ALIAS_KEYS.ForXStatement,Kit=Ue.FUNCTION_TYPES=Kt.FLIPPED_ALIAS_KEYS.Function,Wit=Ue.FUNCTIONPARENT_TYPES=Kt.FLIPPED_ALIAS_KEYS.FunctionParent,Xit=Ue.PUREISH_TYPES=Kt.FLIPPED_ALIAS_KEYS.Pureish,Yit=Ue.DECLARATION_TYPES=Kt.FLIPPED_ALIAS_KEYS.Declaration,Jit=Ue.FUNCTIONPARAMETER_TYPES=Kt.FLIPPED_ALIAS_KEYS.FunctionParameter,Qit=Ue.PATTERNLIKE_TYPES=Kt.FLIPPED_ALIAS_KEYS.PatternLike,Zit=Ue.LVAL_TYPES=Kt.FLIPPED_ALIAS_KEYS.LVal,eot=Ue.TSENTITYNAME_TYPES=Kt.FLIPPED_ALIAS_KEYS.TSEntityName,tot=Ue.LITERAL_TYPES=Kt.FLIPPED_ALIAS_KEYS.Literal,rot=Ue.IMMUTABLE_TYPES=Kt.FLIPPED_ALIAS_KEYS.Immutable,aot=Ue.USERWHITESPACABLE_TYPES=Kt.FLIPPED_ALIAS_KEYS.UserWhitespacable,not=Ue.METHOD_TYPES=Kt.FLIPPED_ALIAS_KEYS.Method,sot=Ue.OBJECTMEMBER_TYPES=Kt.FLIPPED_ALIAS_KEYS.ObjectMember,iot=Ue.PROPERTY_TYPES=Kt.FLIPPED_ALIAS_KEYS.Property,oot=Ue.UNARYLIKE_TYPES=Kt.FLIPPED_ALIAS_KEYS.UnaryLike,lot=Ue.PATTERN_TYPES=Kt.FLIPPED_ALIAS_KEYS.Pattern,cot=Ue.CLASS_TYPES=Kt.FLIPPED_ALIAS_KEYS.Class,b1e=Ue.IMPORTOREXPORTDECLARATION_TYPES=Kt.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,uot=Ue.EXPORTDECLARATION_TYPES=Kt.FLIPPED_ALIAS_KEYS.ExportDeclaration,dot=Ue.MODULESPECIFIER_TYPES=Kt.FLIPPED_ALIAS_KEYS.ModuleSpecifier,fot=Ue.ACCESSOR_TYPES=Kt.FLIPPED_ALIAS_KEYS.Accessor,pot=Ue.PRIVATE_TYPES=Kt.FLIPPED_ALIAS_KEYS.Private,mot=Ue.FLOW_TYPES=Kt.FLIPPED_ALIAS_KEYS.Flow,hot=Ue.FLOWTYPE_TYPES=Kt.FLIPPED_ALIAS_KEYS.FlowType,got=Ue.FLOWBASEANNOTATION_TYPES=Kt.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,yot=Ue.FLOWDECLARATION_TYPES=Kt.FLIPPED_ALIAS_KEYS.FlowDeclaration,xot=Ue.FLOWPREDICATE_TYPES=Kt.FLIPPED_ALIAS_KEYS.FlowPredicate,bot=Ue.ENUMBODY_TYPES=Kt.FLIPPED_ALIAS_KEYS.EnumBody,vot=Ue.ENUMMEMBER_TYPES=Kt.FLIPPED_ALIAS_KEYS.EnumMember,Sot=Ue.JSX_TYPES=Kt.FLIPPED_ALIAS_KEYS.JSX,Tot=Ue.MISCELLANEOUS_TYPES=Kt.FLIPPED_ALIAS_KEYS.Miscellaneous,wot=Ue.TYPESCRIPT_TYPES=Kt.FLIPPED_ALIAS_KEYS.TypeScript,Cot=Ue.TSTYPEELEMENT_TYPES=Kt.FLIPPED_ALIAS_KEYS.TSTypeElement,Eot=Ue.TSTYPE_TYPES=Kt.FLIPPED_ALIAS_KEYS.TSType,Pot=Ue.TSBASETYPE_TYPES=Kt.FLIPPED_ALIAS_KEYS.TSBaseType,Aot=Ue.MODULEDECLARATION_TYPES=b1e});var JL=ne(YL=>{"use strict";Object.defineProperty(YL,"__esModule",{value:!0});YL.default=v1e;var Hw=on(),XL=zi();function v1e(e,t){if((0,Hw.isBlockStatement)(e))return e;let r=[];return(0,Hw.isEmptyStatement)(e)?r=[]:((0,Hw.isStatement)(e)||((0,Hw.isFunction)(t)?e=(0,XL.returnStatement)(e):e=(0,XL.expressionStatement)(e)),r=[e]),(0,XL.blockStatement)(r)}});var M8=ne(QL=>{"use strict";Object.defineProperty(QL,"__esModule",{value:!0});QL.default=T1e;var S1e=JL();function T1e(e,t="body"){let r=(0,S1e.default)(e[t],e);return e[t]=r,r}});var eR=ne(ZL=>{"use strict";Object.defineProperty(ZL,"__esModule",{value:!0});ZL.default=E1e;var w1e=Lg(),C1e=y0();function E1e(e){e=e+"";let t="";for(let r of e)t+=(0,C1e.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,a){return a?a.toUpperCase():""}),(0,w1e.default)(t)||(t=`_${t}`),t||"_"}});var D8=ne(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0});tR.default=A1e;var P1e=eR();function A1e(e){return e=(0,P1e.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var _8=ne(rR=>{"use strict";Object.defineProperty(rR,"__esModule",{value:!0});rR.default=L1e;var I1e=on(),N1e=zi();function L1e(e,t=e.key||e.property){return!e.computed&&(0,I1e.isIdentifier)(t)&&(t=(0,N1e.stringLiteral)(t.name)),t}});var O8=ne($w=>{"use strict";Object.defineProperty($w,"__esModule",{value:!0});$w.default=void 0;var P0=on(),Dot=$w.default=R1e;function R1e(e){if((0,P0.isExpressionStatement)(e)&&(e=e.expression),(0,P0.isExpression)(e))return e;if((0,P0.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,P0.isFunction)(e)&&(e.type="FunctionExpression"),!(0,P0.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var nR=ne(aR=>{"use strict";Object.defineProperty(aR,"__esModule",{value:!0});aR.default=A0;var k1e=Yo(),F8=Symbol(),B8=Symbol();function A0(e,t,r){if(!e)return!1;let a=k1e.VISITOR_KEYS[e.type];if(!a)return!1;r=r||{};let n=t(e,r);if(n!==void 0)switch(n){case F8:return!1;case B8:return!0}for(let s of a){let i=e[s];if(i){if(Array.isArray(i)){for(let o of i)if(A0(o,t,r))return!0}else if(A0(i,t,r))return!0}}return!1}A0.skip=F8;A0.stop=B8});var iR=ne(sR=>{"use strict";Object.defineProperty(sR,"__esModule",{value:!0});sR.default=_1e;var M1e=Rg(),U8=["tokens","start","end","loc","raw","rawValue"],D1e=[...M1e.COMMENT_KEYS,"comments",...U8];function _1e(e,t={}){let r=t.preserveComments?U8:D1e;for(let n of r)e[n]!=null&&(e[n]=void 0);for(let n of Object.keys(e))n[0]==="_"&&e[n]!=null&&(e[n]=void 0);let a=Object.getOwnPropertySymbols(e);for(let n of a)e[n]=null}});var lR=ne(oR=>{"use strict";Object.defineProperty(oR,"__esModule",{value:!0});oR.default=B1e;var O1e=nR(),F1e=iR();function B1e(e,t){return(0,O1e.default)(e,F1e.default,t),e}});var z8=ne(cR=>{"use strict";Object.defineProperty(cR,"__esModule",{value:!0});cR.default=nm;var j8=on(),U1e=Qd(),j1e=lR();function nm(e,t=e.key){let r;return e.kind==="method"?nm.increment()+"":((0,j8.isIdentifier)(t)?r=t.name:(0,j8.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0,j1e.default)((0,U1e.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}nm.uid=0;nm.increment=function(){return nm.uid>=Number.MAX_SAFE_INTEGER?nm.uid=0:nm.uid++}});var V8=ne(Kw=>{"use strict";Object.defineProperty(Kw,"__esModule",{value:!0});Kw.default=void 0;var Gw=on(),z1e=zi(),jot=Kw.default=V1e;function V1e(e,t){if((0,Gw.isStatement)(e))return e;let r=!1,a;if((0,Gw.isClass)(e))r=!0,a="ClassDeclaration";else if((0,Gw.isFunction)(e))r=!0,a="FunctionDeclaration";else if((0,Gw.isAssignmentExpression)(e))return(0,z1e.expressionStatement)(e);if(r&&!e.id&&(a=!1),!a){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=a,e}});var q8=ne(Ww=>{"use strict";Object.defineProperty(Ww,"__esModule",{value:!0});Ww.default=void 0;var q1e=Lg(),Rn=zi(),Vot=Ww.default=uR,H1e=Function.call.bind(Object.prototype.toString);function $1e(e){return H1e(e)==="[object RegExp]"}function G1e(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function uR(e){if(e===void 0)return(0,Rn.identifier)("undefined");if(e===!0||e===!1)return(0,Rn.booleanLiteral)(e);if(e===null)return(0,Rn.nullLiteral)();if(typeof e=="string")return(0,Rn.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0,Rn.numericLiteral)(Math.abs(e));else{let r;Number.isNaN(e)?r=(0,Rn.numericLiteral)(0):r=(0,Rn.numericLiteral)(1),t=(0,Rn.binaryExpression)("/",r,(0,Rn.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,Rn.unaryExpression)("-",t)),t}if(typeof e=="bigint")return e<0?(0,Rn.unaryExpression)("-",(0,Rn.bigIntLiteral)(-e)):(0,Rn.bigIntLiteral)(e);if($1e(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,Rn.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,Rn.arrayExpression)(e.map(uR));if(G1e(e)){let t=[];for(let r of Object.keys(e)){let a,n=!1;(0,q1e.default)(r)?r==="__proto__"?(n=!0,a=(0,Rn.stringLiteral)(r)):a=(0,Rn.identifier)(r):a=(0,Rn.stringLiteral)(r),t.push((0,Rn.objectProperty)(a,uR(e[r]),n))}return(0,Rn.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var H8=ne(dR=>{"use strict";Object.defineProperty(dR,"__esModule",{value:!0});dR.default=W1e;var K1e=zi();function W1e(e,t,r=!1){return e.object=(0,K1e.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var G8=ne(fR=>{"use strict";Object.defineProperty(fR,"__esModule",{value:!0});fR.default=Y1e;var $8=Rg(),X1e=KL();function Y1e(e,t){if(!e||!t)return e;for(let r of $8.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r[0]==="_"&&r!=="__clone"&&(e[r]=t[r]);for(let r of $8.INHERIT_KEYS.force)e[r]=t[r];return(0,X1e.default)(e,t),e}});var K8=ne(pR=>{"use strict";Object.defineProperty(pR,"__esModule",{value:!0});pR.default=Z1e;var J1e=zi(),Q1e=fr();function Z1e(e,t){if((0,Q1e.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,J1e.memberExpression)(t,e.object),e}});var W8=ne(mR=>{"use strict";Object.defineProperty(mR,"__esModule",{value:!0});mR.default=eEe;function eEe(e){let t=[].concat(e),r=Object.create(null);for(;t.length;){let a=t.pop();if(a)switch(a.type){case"ArrayPattern":t.push(...a.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(a.left);break;case"ObjectPattern":t.push(...a.properties);break;case"ObjectProperty":t.push(a.value);break;case"RestElement":case"UpdateExpression":t.push(a.argument);break;case"UnaryExpression":a.operator==="delete"&&t.push(a.argument);break;case"Identifier":r[a.name]=a;break;default:break}}return r}});var I0=ne(gR=>{"use strict";Object.defineProperty(gR,"__esModule",{value:!0});gR.default=hR;var Su=on();function hR(e,t,r,a){let n=[].concat(e),s=Object.create(null);for(;n.length;){let i=n.shift();if(!i||a&&((0,Su.isAssignmentExpression)(i)||(0,Su.isUnaryExpression)(i)||(0,Su.isUpdateExpression)(i)))continue;if((0,Su.isIdentifier)(i)){t?(s[i.name]=s[i.name]||[]).push(i):s[i.name]=i;continue}if((0,Su.isExportDeclaration)(i)&&!(0,Su.isExportAllDeclaration)(i)){(0,Su.isDeclaration)(i.declaration)&&n.push(i.declaration);continue}if(r){if((0,Su.isFunctionDeclaration)(i)){n.push(i.id);continue}if((0,Su.isFunctionExpression)(i))continue}let o=hR.keys[i.type];if(o)for(let l=0;l{"use strict";Object.defineProperty(Xw,"__esModule",{value:!0});Xw.default=void 0;var rEe=I0(),Xot=Xw.default=aEe;function aEe(e,t){return(0,rEe.default)(e,t,!0)}});var J8=ne(yR=>{"use strict";Object.defineProperty(yR,"__esModule",{value:!0});yR.default=sEe;var Jo=on();function nEe(e){return(0,Jo.isNullLiteral)(e)?"null":(0,Jo.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,Jo.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function Y8(e){if(!e.computed||(0,Jo.isLiteral)(e.key))return e.key}function sEe(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",a;if((0,Jo.isObjectProperty)(t,{value:e})?a=Y8(t):(0,Jo.isObjectMethod)(e)||(0,Jo.isClassMethod)(e)?(a=Y8(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0,Jo.isVariableDeclarator)(t,{init:e})?a=t.id:(0,Jo.isAssignmentExpression)(t,{operator:"=",right:e})&&(a=t.left),!a)return null;let n=(0,Jo.isLiteral)(a)?nEe(a):(0,Jo.isIdentifier)(a)?a.name:(0,Jo.isPrivateName)(a)?a.id.name:null;return n==null?null:{name:r+n,originalNode:a}}});var Q8=ne(bR=>{"use strict";Object.defineProperty(bR,"__esModule",{value:!0});bR.default=oEe;var iEe=Yo();function oEe(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:a,exit:n}=t;xR(e,a,n,r,[])}function xR(e,t,r,a,n){let s=iEe.VISITOR_KEYS[e.type];if(s){t&&t(e,n,a);for(let i of s){let o=e[i];if(Array.isArray(o))for(let l=0;l{"use strict";Object.defineProperty(vR,"__esModule",{value:!0});vR.default=cEe;var lEe=I0();function cEe(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let a=lEe.default.keys[t.type];if(a)for(let n=0;n{"use strict";Object.defineProperty(SR,"__esModule",{value:!0});SR.default=dEe;var uEe=on();e6=Symbol.for("var used to be block scoped");var e6;function dEe(e){return(0,uEe.isVariableDeclaration)(e)&&(e.kind!=="var"||e[e6])}});var r6=ne(wR=>{"use strict";Object.defineProperty(wR,"__esModule",{value:!0});wR.default=pEe;var t6=on(),fEe=TR();function pEe(e){return(0,t6.isFunctionDeclaration)(e)||(0,t6.isClassDeclaration)(e)||(0,fEe.default)(e)}});var a6=ne(CR=>{"use strict";Object.defineProperty(CR,"__esModule",{value:!0});CR.default=gEe;var mEe=Rw(),hEe=on();function gEe(e){return(0,mEe.default)(e.type,"Immutable")?!0:(0,hEe.isIdentifier)(e)?e.name==="undefined":!1}});var s6=ne(PR=>{"use strict";Object.defineProperty(PR,"__esModule",{value:!0});PR.default=ER;var n6=Yo();function ER(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;let r=Object.keys(n6.NODE_FIELDS[e.type]||e.type),a=n6.VISITOR_KEYS[e.type];for(let n of r){let s=e[n],i=t[n];if(typeof s!=typeof i)return!1;if(!(s==null&&i==null)){if(s==null||i==null)return!1;if(Array.isArray(s)){if(!Array.isArray(i)||s.length!==i.length)return!1;for(let o=0;o{"use strict";Object.defineProperty(AR,"__esModule",{value:!0});AR.default=yEe;function yEe(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":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return!0}});var o6=ne(IR=>{"use strict";Object.defineProperty(IR,"__esModule",{value:!0});IR.default=xEe;var sm=on();function xEe(e,t){return(0,sm.isBlockStatement)(e)&&((0,sm.isFunction)(t)||(0,sm.isCatchClause)(t))?!1:(0,sm.isPattern)(e)&&((0,sm.isFunction)(t)||(0,sm.isCatchClause)(t))?!0:(0,sm.isScopable)(e)}});var c6=ne(NR=>{"use strict";Object.defineProperty(NR,"__esModule",{value:!0});NR.default=bEe;var l6=on();function bEe(e){return(0,l6.isImportDefaultSpecifier)(e)||(0,l6.isIdentifier)(e.imported||e.exported,{name:"default"})}});var u6=ne(LR=>{"use strict";Object.defineProperty(LR,"__esModule",{value:!0});LR.default=TEe;var vEe=Lg(),SEe=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"]);function TEe(e){return(0,vEe.default)(e)&&!SEe.has(e)}});var f6=ne(RR=>{"use strict";Object.defineProperty(RR,"__esModule",{value:!0});RR.default=CEe;var wEe=on();d6=Symbol.for("var used to be block scoped");var d6;function CEe(e){return(0,wEe.isVariableDeclaration)(e,{kind:"var"})&&!e[d6]}});var p6=ne(DR=>{"use strict";Object.defineProperty(DR,"__esModule",{value:!0});DR.default=Yw;var EEe=I0(),im=on(),kR=zi(),MR=NL(),PEe=Qd();function Yw(e,t){let r=[],a=!0;for(let n of e)if((0,im.isEmptyStatement)(n)||(a=!1),(0,im.isExpression)(n))r.push(n);else if((0,im.isExpressionStatement)(n))r.push(n.expression);else if((0,im.isVariableDeclaration)(n)){if(n.kind!=="var")return;for(let s of n.declarations){let i=(0,EEe.default)(s);for(let o of Object.keys(i))t.push({kind:n.kind,id:(0,PEe.default)(i[o])});s.init&&r.push((0,kR.assignmentExpression)("=",s.id,s.init))}a=!0}else if((0,im.isIfStatement)(n)){let s=n.consequent?Yw([n.consequent],t):(0,MR.buildUndefinedNode)(),i=n.alternate?Yw([n.alternate],t):(0,MR.buildUndefinedNode)();if(!s||!i)return;r.push((0,kR.conditionalExpression)(n.test,s,i))}else if((0,im.isBlockStatement)(n)){let s=Yw(n.body,t);if(!s)return;r.push(s)}else if((0,im.isEmptyStatement)(n))e.indexOf(n)===0&&(a=!0);else return;return a&&r.push((0,MR.buildUndefinedNode)()),r.length===1?r[0]:(0,kR.sequenceExpression)(r)}});var m6=ne(_R=>{"use strict";Object.defineProperty(_R,"__esModule",{value:!0});_R.default=IEe;var AEe=p6();function IEe(e,t){if(!(e!=null&&e.length))return;let r=[],a=(0,AEe.default)(e,r);if(a){for(let n of r)t.push(n);return a}}});var fr=ne(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});var Zd={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(Xe,"__internal__deprecationWarning",{enumerable:!0,get:function(){return kPe.default}});Object.defineProperty(Xe,"addComment",{enumerable:!0,get:function(){return jEe.default}});Object.defineProperty(Xe,"addComments",{enumerable:!0,get:function(){return zEe.default}});Object.defineProperty(Xe,"appendToMemberExpression",{enumerable:!0,get:function(){return rPe.default}});Object.defineProperty(Xe,"assertNode",{enumerable:!0,get:function(){return kEe.default}});Object.defineProperty(Xe,"buildMatchMemberExpression",{enumerable:!0,get:function(){return RPe.default}});Object.defineProperty(Xe,"clone",{enumerable:!0,get:function(){return OEe.default}});Object.defineProperty(Xe,"cloneDeep",{enumerable:!0,get:function(){return FEe.default}});Object.defineProperty(Xe,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return BEe.default}});Object.defineProperty(Xe,"cloneNode",{enumerable:!0,get:function(){return _Ee.default}});Object.defineProperty(Xe,"cloneWithoutLoc",{enumerable:!0,get:function(){return UEe.default}});Object.defineProperty(Xe,"createFlowUnionType",{enumerable:!0,get:function(){return h6.default}});Object.defineProperty(Xe,"createTSUnionType",{enumerable:!0,get:function(){return DEe.default}});Object.defineProperty(Xe,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return MEe.default}});Object.defineProperty(Xe,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return h6.default}});Object.defineProperty(Xe,"ensureBlock",{enumerable:!0,get:function(){return KEe.default}});Object.defineProperty(Xe,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return lPe.default}});Object.defineProperty(Xe,"getBindingIdentifiers",{enumerable:!0,get:function(){return cPe.default}});Object.defineProperty(Xe,"getFunctionName",{enumerable:!0,get:function(){return dPe.default}});Object.defineProperty(Xe,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return uPe.default}});Object.defineProperty(Xe,"inheritInnerComments",{enumerable:!0,get:function(){return VEe.default}});Object.defineProperty(Xe,"inheritLeadingComments",{enumerable:!0,get:function(){return qEe.default}});Object.defineProperty(Xe,"inheritTrailingComments",{enumerable:!0,get:function(){return $Ee.default}});Object.defineProperty(Xe,"inherits",{enumerable:!0,get:function(){return aPe.default}});Object.defineProperty(Xe,"inheritsComments",{enumerable:!0,get:function(){return HEe.default}});Object.defineProperty(Xe,"is",{enumerable:!0,get:function(){return mPe.default}});Object.defineProperty(Xe,"isBinding",{enumerable:!0,get:function(){return hPe.default}});Object.defineProperty(Xe,"isBlockScoped",{enumerable:!0,get:function(){return gPe.default}});Object.defineProperty(Xe,"isImmutable",{enumerable:!0,get:function(){return yPe.default}});Object.defineProperty(Xe,"isLet",{enumerable:!0,get:function(){return xPe.default}});Object.defineProperty(Xe,"isNode",{enumerable:!0,get:function(){return bPe.default}});Object.defineProperty(Xe,"isNodesEquivalent",{enumerable:!0,get:function(){return vPe.default}});Object.defineProperty(Xe,"isPlaceholderType",{enumerable:!0,get:function(){return SPe.default}});Object.defineProperty(Xe,"isReferenced",{enumerable:!0,get:function(){return TPe.default}});Object.defineProperty(Xe,"isScope",{enumerable:!0,get:function(){return wPe.default}});Object.defineProperty(Xe,"isSpecifierDefault",{enumerable:!0,get:function(){return CPe.default}});Object.defineProperty(Xe,"isType",{enumerable:!0,get:function(){return EPe.default}});Object.defineProperty(Xe,"isValidES3Identifier",{enumerable:!0,get:function(){return PPe.default}});Object.defineProperty(Xe,"isValidIdentifier",{enumerable:!0,get:function(){return APe.default}});Object.defineProperty(Xe,"isVar",{enumerable:!0,get:function(){return IPe.default}});Object.defineProperty(Xe,"matchesPattern",{enumerable:!0,get:function(){return NPe.default}});Object.defineProperty(Xe,"prependToMemberExpression",{enumerable:!0,get:function(){return nPe.default}});Xe.react=void 0;Object.defineProperty(Xe,"removeComments",{enumerable:!0,get:function(){return GEe.default}});Object.defineProperty(Xe,"removeProperties",{enumerable:!0,get:function(){return sPe.default}});Object.defineProperty(Xe,"removePropertiesDeep",{enumerable:!0,get:function(){return iPe.default}});Object.defineProperty(Xe,"removeTypeDuplicates",{enumerable:!0,get:function(){return oPe.default}});Object.defineProperty(Xe,"shallowEqual",{enumerable:!0,get:function(){return pPe.default}});Object.defineProperty(Xe,"toBindingIdentifierName",{enumerable:!0,get:function(){return WEe.default}});Object.defineProperty(Xe,"toBlock",{enumerable:!0,get:function(){return XEe.default}});Object.defineProperty(Xe,"toComputedKey",{enumerable:!0,get:function(){return YEe.default}});Object.defineProperty(Xe,"toExpression",{enumerable:!0,get:function(){return JEe.default}});Object.defineProperty(Xe,"toIdentifier",{enumerable:!0,get:function(){return QEe.default}});Object.defineProperty(Xe,"toKeyAlias",{enumerable:!0,get:function(){return ZEe.default}});Object.defineProperty(Xe,"toStatement",{enumerable:!0,get:function(){return ePe.default}});Object.defineProperty(Xe,"traverse",{enumerable:!0,get:function(){return Jw.default}});Object.defineProperty(Xe,"traverseFast",{enumerable:!0,get:function(){return fPe.default}});Object.defineProperty(Xe,"validate",{enumerable:!0,get:function(){return LPe.default}});Object.defineProperty(Xe,"valueToNode",{enumerable:!0,get:function(){return tPe.default}});var NEe=x4(),LEe=b4(),REe=u8(),kEe=d8(),OR=f8();Object.keys(OR).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Zd,e)||e in Xe&&Xe[e]===OR[e]||Object.defineProperty(Xe,e,{enumerable:!0,get:function(){return OR[e]}})});var MEe=p8(),h6=g8(),DEe=v8(),FR=NL();Object.keys(FR).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Zd,e)||e in Xe&&Xe[e]===FR[e]||Object.defineProperty(Xe,e,{enumerable:!0,get:function(){return FR[e]}})});var BR=zi();Object.keys(BR).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Zd,e)||e in Xe&&Xe[e]===BR[e]||Object.defineProperty(Xe,e,{enumerable:!0,get:function(){return BR[e]}})});var _Ee=Qd(),OEe=P8(),FEe=A8(),BEe=I8(),UEe=N8(),jEe=L8(),zEe=FL(),VEe=zL(),qEe=qL(),HEe=KL(),$Ee=$L(),GEe=R8(),UR=k8();Object.keys(UR).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Zd,e)||e in Xe&&Xe[e]===UR[e]||Object.defineProperty(Xe,e,{enumerable:!0,get:function(){return UR[e]}})});var jR=Rg();Object.keys(jR).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Zd,e)||e in Xe&&Xe[e]===jR[e]||Object.defineProperty(Xe,e,{enumerable:!0,get:function(){return jR[e]}})});var KEe=M8(),WEe=D8(),XEe=JL(),YEe=_8(),JEe=O8(),QEe=eR(),ZEe=z8(),ePe=V8(),tPe=q8(),zR=Yo();Object.keys(zR).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Zd,e)||e in Xe&&Xe[e]===zR[e]||Object.defineProperty(Xe,e,{enumerable:!0,get:function(){return zR[e]}})});var rPe=H8(),aPe=G8(),nPe=K8(),sPe=iR(),iPe=lR(),oPe=CL(),lPe=W8(),cPe=I0(),uPe=X8(),dPe=J8(),Jw=Q8();Object.keys(Jw).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Zd,e)||e in Xe&&Xe[e]===Jw[e]||Object.defineProperty(Xe,e,{enumerable:!0,get:function(){return Jw[e]}})});var fPe=nR(),pPe=Nw(),mPe=Ng(),hPe=Z8(),gPe=r6(),yPe=a6(),xPe=TR(),bPe=SL(),vPe=s6(),SPe=$N(),TPe=i6(),wPe=o6(),CPe=c6(),EPe=Rw(),PPe=u6(),APe=Lg(),IPe=f6(),NPe=UN(),LPe=_w(),RPe=zN(),VR=on();Object.keys(VR).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Zd,e)||e in Xe&&Xe[e]===VR[e]||Object.defineProperty(Xe,e,{enumerable:!0,get:function(){return VR[e]}})});var kPe=Ig(),MPe=m6(),dlt=Xe.react={isReactComponent:NEe.default,isCompatTag:LEe.default,buildChildren:REe.default};Xe.toSequenceExpression=MPe.default;process.env.BABEL_TYPES_8_BREAKING});var qR=ne(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.isBindingIdentifier=rAe;kn.isBlockScoped=oAe;kn.isExpression=nAe;kn.isFlow=fAe;kn.isForAwaitStatement=hAe;kn.isGenerated=uAe;kn.isPure=dAe;kn.isReferenced=iAe;kn.isReferencedIdentifier=eAe;kn.isReferencedMemberExpression=tAe;kn.isRestProperty=pAe;kn.isScope=sAe;kn.isSpreadProperty=mAe;kn.isStatement=aAe;kn.isUser=cAe;kn.isVar=lAe;var DPe=fr(),{isBinding:_Pe,isBlockScoped:OPe,isExportDeclaration:FPe,isExpression:BPe,isFlow:UPe,isForStatement:jPe,isForXStatement:zPe,isIdentifier:g6,isImportDeclaration:VPe,isImportSpecifier:qPe,isJSXIdentifier:HPe,isJSXMemberExpression:$Pe,isMemberExpression:GPe,isRestElement:y6,isReferenced:Qw,isScope:KPe,isStatement:WPe,isVar:XPe,isVariableDeclaration:YPe,react:JPe,isForOfStatement:QPe}=DPe,{isCompatTag:ZPe}=JPe;function eAe(e){let{node:t,parent:r}=this;return g6(t,e)?Qw(t,r,this.parentPath.parent):HPe(t,e)?!$Pe(r)&&ZPe(t.name)?!1:Qw(t,r,this.parentPath.parent):!1}function tAe(){let{node:e,parent:t}=this;return GPe(e)&&Qw(e,t)}function rAe(){let{node:e,parent:t}=this,r=this.parentPath.parent;return g6(e)&&_Pe(e,t,r)}function aAe(){let{node:e,parent:t}=this;return WPe(e)?!(YPe(e)&&(zPe(t,{left:e})||jPe(t,{init:e}))):!1}function nAe(){return this.isIdentifier()?this.isReferencedIdentifier():BPe(this.node)}function sAe(){return KPe(this.node,this.parent)}function iAe(){return Qw(this.node,this.parent)}function oAe(){return OPe(this.node)}function lAe(){return XPe(this.node)}function cAe(){var e;return!!((e=this.node)!=null&&e.loc)}function uAe(){return!this.isUser()}function dAe(e){return this.scope.isPure(this.node,e)}function fAe(){let{node:e}=this;return UPe(e)?!0:VPe(e)?e.importKind==="type"||e.importKind==="typeof":FPe(e)?e.exportKind==="type":qPe(e)?e.importKind==="type"||e.importKind==="typeof":!1}function pAe(){var e;return y6(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function mAe(){var e;return y6(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function hAe(){return QPe(this.node,{await:!0})}kn.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},kn.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var L0=ne(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.environmentVisitor=wAe;lm.explode=I6;lm.isExplodedVisitor=A6;lm.merge=L6;lm.verify=N6;var P6=_N(),gAe=qR(),yAe=fr(),x6=Qo(),{DEPRECATED_KEYS:b6,DEPRECATED_ALIASES:v6,FLIPPED_ALIAS_KEYS:S6,TYPES:xAe,__internal__deprecationWarning:T6}=yAe;function bAe(e){return e in P6}function A6(e){return e?._exploded}function I6(e){if(A6(e))return e;e._exploded=!0;for(let r of Object.keys(e)){if(om(r))continue;let a=r.split("|");if(a.length===1)continue;let n=e[r];delete e[r];for(let s of a)e[s]=n}N6(e),delete e.__esModule,vAe(e),E6(e);for(let r of Object.keys(e)){if(om(r)||!bAe(r))continue;let a=e[r];for(let s of Object.keys(a))a[s]=SAe(r,a[s]);delete e[r];let n=P6[r];if(n!==null)for(let s of n){var t;(t=e[s])!=null||(e[s]={}),N0(e[s],a)}else N0(e,a)}for(let r of Object.keys(e)){if(om(r))continue;let a=S6[r];if(r in b6){let s=b6[r];T6(r,s,"Visitor "),a=[s]}else if(r in v6){let s=v6[r];T6(r,s,"Visitor "),a=S6[s]}if(!a)continue;let n=e[r];delete e[r];for(let s of a){let i=e[s];i?N0(i,n):e[s]=Object.assign({},n)}}for(let r of Object.keys(e))om(r)||E6(e[r]);return e}function N6(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&w6(t,e[t]),om(t))continue;if(!xAe.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.5`);let r=e[t];if(typeof r=="object")for(let a of Object.keys(r))if(a==="enter"||a==="exit")w6(`${t}.${a}`,r[a]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${a}`)}e._verified=!0}}function w6(e,t){let r=[].concat(t);for(let a of r)if(typeof a!="function")throw new TypeError(`Non-function found defined in ${e} with type ${typeof a}`)}function L6(e,t=[],r){let a={_verified:!0,_exploded:!0};Object.defineProperty(a,"_exploded",{enumerable:!1}),Object.defineProperty(a,"_verified",{enumerable:!1});for(let n=0;ni.toString()),o}),a[n]=s)}return a}function vAe(e){for(let t of Object.keys(e)){if(om(t))continue;let r=e[t];typeof r=="function"&&(e[t]={enter:r})}}function E6(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function SAe(e,t){let r=`is${e}`,a=gAe[r],n=function(s){if(a.call(s))return t.apply(this,arguments)};return n.toString=()=>t.toString(),n}function om(e){return e[0]==="_"||e==="enter"||e==="exit"||e==="shouldSkip"||e==="denylist"||e==="noScope"||e==="skipKeys"||e==="blacklist"}function N0(e,t){for(let r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}var TAe={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():x6.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():x6.requeueComputedKeyAndDecorators.call(e))}};function wAe(e){return L6([TAe,e])}});var R6=ne(eC=>{"use strict";Object.defineProperty(eC,"__esModule",{value:!0});eC.default=void 0;var Zw=fr(),CAe=Zw,EAe=tC(),PAe=L0(),AAe=Qo(),{getAssignmentIdentifiers:IAe}=CAe,NAe={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():AAe.requeueComputedKeyAndDecorators.call(e)))},ObjectProperty({node:e,scope:t},r){let{name:a}=e.key;if(e.shorthand&&(a===r.oldName||a===r.newName)&&t.getBindingIdentifier(a)===r.binding.identifier){e.shorthand=!1;{var n;(n=e.extra)!=null&&n.shorthand&&(e.extra.shorthand=!1)}}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?IAe(e.node):e.getOuterBindingIdentifiers();for(let a in r)a===t.oldName&&(r[a].name=t.newName)}},HR=class{constructor(t,r,a){this.newName=a,this.oldName=r,this.binding=t}maybeConvertFromExportDeclaration(t){let r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:a}=r.node;if(Zw.isDeclaration(a)&&!a.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(t){return t}maybeConvertFromClassFunctionExpression(t){return t}rename(){let{binding:t,oldName:r,newName:a}=this,{scope:n,path:s}=t,i=s.find(c=>c.isDeclaration()||c.isFunctionExpression()||c.isClassExpression());i&&i.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(i);let o=arguments[0]||n.block,l={discriminant:!0};Zw.isMethod(o)&&(o.computed&&(l.key=!0),Zw.isObjectMethod(o)||(l.decorators=!0)),(0,EAe.traverseNode)(o,(0,PAe.explode)(NAe),n,this,n.path,l),arguments[0]||(n.removeOwnBinding(r),n.bindings[a]=t,this.binding.identifier.name=a),i&&(this.maybeConvertFromClassFunctionDeclaration(s),this.maybeConvertFromClassFunctionExpression(s))}};eC.default=HR});var k6=ne($R=>{"use strict";Object.defineProperty($R,"__esModule",{value:!0});$R.default=_Ae;var LAe=fr(),RAe=Fg(),kAe=L0(),MAe=Qo(),{VISITOR_KEYS:DAe}=LAe;function _Ae(e,t,r){let a=(0,kAe.explode)(t);if(a.enter||a.exit)throw new Error("Should not be used with enter/exit visitors.");n(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e);function n(s,i,o,l,c,u,d,f){if(!o)return;let p=f||RAe.NodePath.get({hub:d,parentPath:s,parent:i,container:l,listKey:u,key:c});MAe.setScope.call(p);let m=a[o.type];if(m){if(m.enter)for(let x of m.enter)x.call(r,p,r);if(m.exit)for(let x of m.exit)x.call(r,p,r)}if(p.shouldSkip)return;let h=DAe[o.type];if(h!=null&&h.length)for(let x of h){let g=o[x];if(g)if(Array.isArray(g))for(let y=0;y{"use strict";Object.defineProperty(rC,"__esModule",{value:!0});rC.default=void 0;var GR=class{constructor({identifier:t,scope:r,path:a,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=t,this.scope=r,this.path=a,this.kind=n,(n==="var"||n==="hoisted")&&OAe(a)&&this.reassign(a),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t)}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t))}dereference(){this.references--,this.referenced=!!this.references}};rC.default=GR;function OAe(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:a}=e;r;{parentPath:r,key:a}=r){if(r.isFunctionParent())return!1;if(a==="left"&&r.isForXStatement()||t&&a==="body"&&r.isLoop())return!0}return!1}});var cm=ne(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.clear=BAe;ho.clearPath=D6;ho.clearScope=_6;ho.getCachedPaths=UAe;ho.getOrCreateCachedPaths=jAe;ho.scope=ho.path=void 0;var aC=ho.path=new WeakMap,FAe=ho.scope=new WeakMap;function BAe(){D6(),_6()}function D6(){ho.path=aC=new WeakMap}function _6(){ho.scope=FAe=new WeakMap}function UAe(e){let{parent:t,parentPath:r}=e;return aC.get(t)}function jAe(e,t){let r=aC.get(e);return r||aC.set(e,r=new Map),r}});var O6=ne((blt,zAe)=>{zAe.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var F6=ne((vlt,VAe)=>{VAe.exports=["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"]});var JR=ne(sC=>{"use strict";Object.defineProperty(sC,"__esModule",{value:!0});sC.default=void 0;var qAe=R6(),G6=Fg(),Slt=k6(),HAe=M6(),K6=fr(),W6=K6,B6=cm(),$Ae=O6(),GAe=F6(),{assignmentExpression:KAe,callExpression:U6,cloneNode:j6,getBindingIdentifiers:X6,identifier:dm,isArrayExpression:Y6,isBinary:WAe,isCallExpression:z6,isClass:XAe,isClassBody:YAe,isClassDeclaration:JAe,isExportAllDeclaration:J6,isExportDefaultDeclaration:QAe,isExportNamedDeclaration:KR,isFunctionDeclaration:ZAe,isIdentifier:um,isImportDeclaration:WR,isLiteral:eIe,isMemberExpression:tIe,isMethod:rIe,isModuleSpecifier:aIe,isNullLiteral:nIe,isObjectExpression:sIe,isProperty:iIe,isPureish:oIe,isRegExpLiteral:lIe,isSuper:cIe,isTaggedTemplateExpression:uIe,isTemplateLiteral:Q6,isThisExpression:V6,isUnaryExpression:dIe,isVariableDeclaration:fIe,expressionStatement:pIe,matchesPattern:q6,memberExpression:XR,numericLiteral:mIe,toIdentifier:hIe,variableDeclaration:gIe,variableDeclarator:yIe,isRecordExpression:xIe,isTupleExpression:bIe,isObjectProperty:vIe,isTopicReference:H6,isMetaProperty:SIe,isPrivateName:TIe,isExportDeclaration:wIe,buildUndefinedNode:CIe,sequenceExpression:EIe}=K6;function Sa(e,t){switch(e?.type){default:if(WR(e)||wIe(e)){var r;if((J6(e)||KR(e)||WR(e))&&e.source)Sa(e.source,t);else if((KR(e)||WR(e))&&(r=e.specifiers)!=null&&r.length)for(let a of e.specifiers)Sa(a,t);else(QAe(e)||KR(e))&&e.declaration&&Sa(e.declaration,t)}else aIe(e)?Sa(e.local,t):eIe(e)&&!nIe(e)&&!lIe(e)&&!Q6(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Sa(e.object,t),Sa(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Sa(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let a of e.properties)Sa(a,t);break;case"SpreadElement":case"RestElement":Sa(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Sa(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"),Sa(e.argument,t);break;case"AwaitExpression":t.push("await"),Sa(e.argument,t);break;case"AssignmentExpression":Sa(e.left,t);break;case"VariableDeclarator":Sa(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Sa(e.id,t);break;case"PrivateName":Sa(e.id,t);break;case"ParenthesizedExpression":Sa(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":Sa(e.argument,t);break;case"MetaProperty":Sa(e.meta,t),Sa(e.property,t);break;case"JSXElement":Sa(e.openingElement,t);break;case"JSXOpeningElement":Sa(e.name,t);break;case"JSXFragment":Sa(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":Sa(e.namespace,t),Sa(e.name,t);break}}function $6(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}function PIe(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}YR=Symbol.for("should not be considered a local binding");var YR,AIe={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped()||e.isImportDeclaration()||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){W6.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:a}=e;(a.getFunctionParent()||a.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(J6(t))return;let a=t.declaration;if(JAe(a)||ZAe(a)){let n=a.id;if(!n)return;let s=r.getBinding(n.name);s?.reference(e)}else if(fIe(a))for(let n of a.declarations)for(let s of Object.keys(X6(n))){let i=r.getBinding(s);i?.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){e.node.operator==="delete"&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let n=e.node.id.name;e.scope.bindings[n]=e.scope.parent.getBinding(n)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[YR]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[YR]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},nC,IIe=0,Vi=class{constructor(t){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;let{node:r}=t,a=B6.scope.get(r);if(a?.path===t)return a;B6.scope.set(r,this),this.uid=IIe++,this.block=r,this.path=t,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 t;let r,a=this.path;do{var n;let s=a.key==="key"||a.listKey==="decorators";a=a.parentPath,s&&a.isMethod()&&(a=a.parentPath),(n=a)!=null&&n.isScope()&&(r=a)}while(a&&!r);return(t=r)==null?void 0:t.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(t){let r=this.generateUidIdentifier(t);return this.push({id:r}),j6(r)}generateUidIdentifier(t){return dm(this.generateUid(t))}generateUid(t="temp"){t=hIe(t).replace(/^_+/,"").replace(/\d+$/g,"");let r,a=0;do r=`_${t}`,a>=11?r+=a-1:a>=9?r+=a-9:a>=1&&(r+=a+1),a++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let n=this.getProgramParent();return n.references[r]=!0,n.uids[r]=!0,r}generateUidBasedOnNode(t,r){let a=[];Sa(t,a);let n=a.join("$");return n=n.replace(/^_/,"")||r||"ref",this.generateUid(n.slice(0,20))}generateUidIdentifierBasedOnNode(t,r){return dm(this.generateUidBasedOnNode(t,r))}isStatic(t){if(V6(t)||cIe(t)||H6(t))return!0;if(um(t)){let r=this.getBinding(t.name);return r?r.constant:this.hasBinding(t.name)}return!1}maybeGenerateMemoised(t,r){if(this.isStatic(t))return null;{let a=this.generateUidIdentifierBasedOnNode(t);return r?a:(this.push({id:a}),j6(a))}}checkBlockScopedCollisions(t,r,a,n){if(r==="param"||t.kind==="local")return;if(r==="let"||t.kind==="let"||t.kind==="const"||t.kind==="module"||t.kind==="param"&&r==="const")throw this.path.hub.buildError(n,`Duplicate declaration "${a}"`,TypeError)}rename(t,r){let a=this.getBinding(t);a&&(r||(r=this.generateUidIdentifier(t).name),new qAe.default(a,t,r).rename(arguments[2]))}dump(){let t="-".repeat(60),r=this;do for(let a of Object.keys(r.bindings)){let n=r.bindings[a]}while(r=r.parent)}hasLabel(t){return!!this.getLabel(t)}getLabel(t){return this.labels.get(t)}registerLabel(t){this.labels.set(t.node.label.name,t)}registerDeclaration(t){if(t.isLabeledStatement())this.registerLabel(t);else if(t.isFunctionDeclaration())this.registerBinding("hoisted",t.get("id"),t);else if(t.isVariableDeclaration()){let r=t.get("declarations"),{kind:a}=t.node;for(let n of r)this.registerBinding(a==="using"||a==="await using"?"const":a,n)}else if(t.isClassDeclaration()){if(t.node.declare)return;this.registerBinding("let",t)}else if(t.isImportDeclaration()){let r=t.node.importKind==="type"||t.node.importKind==="typeof",a=t.get("specifiers");for(let n of a){let s=r||n.isImportSpecifier()&&(n.node.importKind==="type"||n.node.importKind==="typeof");this.registerBinding(s?"unknown":"module",n)}}else if(t.isExportDeclaration()){let r=t.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",t)}buildUndefinedNode(){return CIe()}registerConstantViolation(t){let r=t.getAssignmentIdentifiers();for(let n of Object.keys(r)){var a;(a=this.getBinding(n))==null||a.reassign(t)}}registerBinding(t,r,a=r){if(!t)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let i=r.get("declarations");for(let o of i)this.registerBinding(t,o);return}let n=this.getProgramParent(),s=r.getOuterBindingIdentifiers(!0);for(let i of Object.keys(s)){n.references[i]=!0;for(let o of s[i]){let l=this.getOwnBinding(i);if(l){if(l.identifier===o)continue;this.checkBlockScopedCollisions(l,t,i,o)}l?l.reassign(a):this.bindings[i]=new HAe.default({identifier:o,scope:this,path:a,kind:t})}}}addGlobal(t){this.globals[t.name]=t}hasUid(t){{let r=this;do if(r.uids[t])return!0;while(r=r.parent);return!1}}hasGlobal(t){let r=this;do if(r.globals[t])return!0;while(r=r.parent);return!1}hasReference(t){return!!this.getProgramParent().references[t]}isPure(t,r){if(um(t)){let i=this.getBinding(t.name);return i?r?i.constant:!0:!1}else{if(V6(t)||SIe(t)||H6(t)||TIe(t))return!0;if(XAe(t)){var a;return t.superClass&&!this.isPure(t.superClass,r)||((a=t.decorators)==null?void 0:a.length)>0?!1:this.isPure(t.body,r)}else if(YAe(t)){for(let i of t.body)if(!this.isPure(i,r))return!1;return!0}else{if(WAe(t))return this.isPure(t.left,r)&&this.isPure(t.right,r);if(Y6(t)||bIe(t)){for(let i of t.elements)if(i!==null&&!this.isPure(i,r))return!1;return!0}else if(sIe(t)||xIe(t)){for(let i of t.properties)if(!this.isPure(i,r))return!1;return!0}else if(rIe(t)){var n;return!(t.computed&&!this.isPure(t.key,r)||((n=t.decorators)==null?void 0:n.length)>0)}else if(iIe(t)){var s;return!(t.computed&&!this.isPure(t.key,r)||((s=t.decorators)==null?void 0:s.length)>0||(vIe(t)||t.static)&&t.value!==null&&!this.isPure(t.value,r))}else{if(dIe(t))return this.isPure(t.argument,r);if(Q6(t)){for(let i of t.expressions)if(!this.isPure(i,r))return!1;return!0}else return uIe(t)?q6(t.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(t.quasi,r):tIe(t)?!t.computed&&um(t.object)&&t.object.name==="Symbol"&&um(t.property)&&t.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):z6(t)?q6(t.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&t.arguments.length===1&&W6.isStringLiteral(t.arguments[0]):oIe(t)}}}}setData(t,r){return this.data[t]=r}getData(t){let r=this;do{let a=r.data[t];if(a!=null)return a}while(r=r.parent)}removeData(t){let r=this;do r.data[t]!=null&&(r.data[t]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let t=this.path;$6(this),this.data=Object.create(null);let r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);let a=r,n={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,nC||(nC=G6.default.visitors.merge([{Scope(s){$6(s.scope)}},AIe])),t.type!=="Program"){let s=nC[t.type];if(s)for(let i of s.enter)i.call(n,t,n)}t.traverse(nC,n),this.crawling=!1;for(let s of n.assignments){let i=s.getAssignmentIdentifiers();for(let o of Object.keys(i))s.scope.getBinding(o)||a.addGlobal(i[o]);s.scope.registerConstantViolation(s)}for(let s of n.references){let i=s.scope.getBinding(s.node.name);i?i.reference(s):a.addGlobal(s.node)}for(let s of n.constantViolations)s.scope.registerConstantViolation(s)}push(t){let r=this.path;r.isPattern()?r=this.getPatternParent().path:!r.isBlockStatement()&&!r.isProgram()&&(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path);let{init:a,unique:n,kind:s="var",id:i}=t;if(!a&&!n&&(s==="var"||s==="let")&&PIe(r)&&z6(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&um(i)){r.pushContainer("params",i),r.scope.registerBinding("param",r.get("params")[r.node.params.length-1]);return}(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let o=t._blockHoist==null?2:t._blockHoist,l=`declaration:${s}:${o}`,c=!n&&r.getData(l);if(!c){let f=gIe(s,[]);f._blockHoist=o,[c]=r.unshiftContainer("body",[f]),n||r.setData(l,c)}let u=yIe(i,a),d=c.node.declarations.push(u);r.scope.registerBinding(s,c.get("declarations")[d-1])}getProgramParent(){let t=this;do if(t.path.isProgram())return t;while(t=t.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let t=this;do if(t.path.isFunctionParent())return t;while(t=t.parent);return null}getBlockParent(){let t=this;do if(t.path.isBlockParent())return t;while(t=t.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let t=this;do if(!t.path.isPattern())return t.getBlockParent();while(t=t.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let t=Object.create(null),r=this;do{for(let a of Object.keys(r.bindings))a in t||(t[a]=r.bindings[a]);r=r.parent}while(r);return t}bindingIdentifierEquals(t,r){return this.getBindingIdentifier(t)===r}getBinding(t){let r=this,a;do{let s=r.getOwnBinding(t);if(s){var n;if(!((n=a)!=null&&n.isPattern()&&s.kind!=="param"&&s.kind!=="local"))return s}else if(!s&&t==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;a=r.path}while(r=r.parent)}getOwnBinding(t){return this.bindings[t]}getBindingIdentifier(t){var r;return(r=this.getBinding(t))==null?void 0:r.identifier}getOwnBindingIdentifier(t){let r=this.bindings[t];return r?.identifier}hasOwnBinding(t){return!!this.getOwnBinding(t)}hasBinding(t,r){if(!t)return!1;let a,n,s;typeof r=="object"?(a=r.noGlobals,n=r.noUids,s=r.upToScope):typeof r=="boolean"&&(a=r);let i=this;do{if(s===i)break;if(i.hasOwnBinding(t))return!0}while(i=i.parent);return!!(!n&&this.hasUid(t)||!a&&Vi.globals.includes(t)||!a&&Vi.contextVariables.includes(t))}parentHasBinding(t,r){var a;return(a=this.parent)==null?void 0:a.hasBinding(t,r)}moveBindingTo(t,r){let a=this.getBinding(t);a&&(a.scope.removeOwnBinding(t),a.scope=r,r.bindings[t]=a)}removeOwnBinding(t){delete this.bindings[t]}removeBinding(t){var r;(r=this.getBinding(t))==null||r.scope.removeOwnBinding(t);{let a=this;do a.uids[t]&&(a.uids[t]=!1);while(a=a.parent)}}hoistVariables(t=r=>this.push({id:r})){this.crawl();let r=new Set;for(let a of Object.keys(this.bindings)){let n=this.bindings[a];if(!n)continue;let{path:s}=n;if(!s.isVariableDeclarator())continue;let{parent:i,parentPath:o}=s;if(i.kind!=="var"||r.has(i))continue;r.add(s.parent);let l,c=[];for(let u of i.declarations){l??(l=u.id),u.init&&c.push(KAe("=",u.id,u.init));let d=Object.keys(X6(u,!1,!0,!0));for(let f of d)t(dm(f),u.init!=null)}if(o.parentPath.isForXStatement({left:i}))o.replaceWith(l);else if(c.length===0)o.remove();else{let u=c.length===1?c[0]:EIe(c);o.parentPath.isForStatement({init:i})?o.replaceWith(u):o.replaceWith(pIe(u))}}}};sC.default=Vi;Vi.globals=[...$Ae,...GAe];Vi.contextVariables=["arguments","undefined","Infinity","NaN"];Vi.prototype._renameFromMap=function(t,r,a,n){t[r]&&(t[a]=n,t[r]=null)},Vi.prototype.traverse=function(e,t,r){(0,G6.default)(e,t,this,r,this.path)},Vi.prototype._generateUid=function(t,r){let a=t;return r>1&&(a+=r),`_${a}`},Vi.prototype.toArray=function(t,r,a){if(um(t)){let i=this.getBinding(t.name);if(i!=null&&i.constant&&i.path.isGenericType("Array"))return t}if(Y6(t))return t;if(um(t,{name:"arguments"}))return U6(XR(XR(XR(dm("Array"),dm("prototype")),dm("slice")),dm("call")),[t]);let n,s=[t];return r===!0?n="toConsumableArray":typeof r=="number"?(s.push(mIe(r)),n="slicedToArray"):n="toArray",a&&(s.unshift(this.path.hub.addHelper(n)),n="maybeArrayLike"),U6(this.path.hub.addHelper(n),s)},Vi.prototype.getAllBindingsOfKind=function(...t){let r=Object.create(null);for(let a of t){let n=this;do{for(let s of Object.keys(n.bindings)){let i=n.bindings[s];i.kind===a&&(r[s]=i)}n=n.parent}while(n)}return r},Object.defineProperties(Vi.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var ZR=ne((QR,R0)=>{(function(e,t){if(typeof QR=="object"&&typeof R0<"u")t(R0),R0.exports=r(R0);else if(typeof define=="function"&&define.amd)define(["module"],function(a){t.apply(this,arguments),a.exports=r(a)});else{let a={exports:{}};t(a),e=typeof globalThis<"u"?globalThis:e||self,e.sourcemapCodec=r(a)}function r(a){return"default"in a.exports?a.exports.default:a.exports}})(QR,function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s=(V,L)=>{for(var k in L)t(V,k,{get:L[k],enumerable:!0})},i=(V,L,k,_)=>{if(L&&typeof L=="object"||typeof L=="function")for(let ee of a(L))!n.call(V,ee)&&ee!==k&&t(V,ee,{get:()=>L[ee],enumerable:!(_=r(L,ee))||_.enumerable});return V},o=V=>i(t({},"__esModule",{value:!0}),V),l={};s(l,{decode:()=>J,decodeGeneratedRanges:()=>R,decodeOriginalScopes:()=>P,encode:()=>q,encodeGeneratedRanges:()=>O,encodeOriginalScopes:()=>C}),e.exports=o(l);var c=",".charCodeAt(0),u=";".charCodeAt(0),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=new Uint8Array(64),p=new Uint8Array(128);for(let V=0;V>>=1,ie&&(k=-2147483648|-k),L+k}function h(V,L,k){let _=L-k;_=_<0?-_<<1|1:_<<1;do{let ee=_&31;_>>>=5,_>0&&(ee|=32),V.write(f[ee])}while(_>0);return L}function x(V,L){return V.pos>=L?!1:V.peek()!==c}var g=1024*16,y=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(V){return Buffer.from(V.buffer,V.byteOffset,V.byteLength).toString()}}:{decode(V){let L="";for(let k=0;k0?L+y.decode(V.subarray(0,k)):L}},S=class{constructor(V){this.pos=0,this.buffer=V}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(V){let{buffer:L,pos:k}=this,_=L.indexOf(V,k);return _===-1?L.length:_}},w=[];function P(V){let{length:L}=V,k=new S(V),_=[],ee=[],ie=0;for(;k.pos0&&k.write(c),_[0]=h(k,ie,_[0]),h(k,ae,0),h(k,$,0);let K=ee.length===6?1:0;h(k,K,0),ee.length===6&&h(k,ee[5],0);for(let he of A)h(k,he,0);for(L++;Lge||H===ge&&xe>=ue)break;L=N(V,L,k,_)}return k.write(c),_[0]=h(k,ge,_[0]),h(k,ue,0),L}function R(V){let{length:L}=V,k=new S(V),_=[],ee=[],ie=0,ae=0,ge=0,ue=0,$=0,A=0,K=0,he=0;do{let H=k.indexOf(";"),xe=0;for(;k.postt;Tt--){let Qt=K;K=m(k,K),he=m(k,K===Qt?he:0);let Ur=m(k,0);Ct.push([Ur,K,he])}}else Ct=[[tt]];Ne.push(Ct)}while(x(k,H))}Be.bindings=Ne,_.push(Be),ee.push(Be)}ie++,k.pos=H+1}while(k.pos0&&k.write(c),_[1]=h(k,ee[1],_[1]);let he=(ee.length===6?1:0)|(A?2:0)|($?4:0);if(h(k,he,0),ee.length===6){let{4:H,5:xe}=ee;H!==_[2]&&(_[3]=0),_[2]=h(k,H,_[2]),_[3]=h(k,xe,_[3])}if(A){let{0:H,1:xe,2:Pe}=ee.callsite;H!==_[4]?(_[5]=0,_[6]=0):xe!==_[5]&&(_[6]=0),_[4]=h(k,H,_[4]),_[5]=h(k,xe,_[5]),_[6]=h(k,Pe,_[6])}if(K)for(let H of K){H.length>1&&h(k,-H.length,0);let xe=H[0][0];h(k,xe,0);let Pe=ie,Ie=ae;for(let Ve=1;Vege||xe===ge&&Pe>=ue)break;L=D(V,L,k,_)}return _[0]0&&L.write(u),ge.length===0)continue;let ue=0;for(let $=0;$0&&L.write(c),ue=h(L,A[0],ue),A.length!==1&&(k=h(L,A[1],k),_=h(L,A[2],_),ee=h(L,A[3],ee),A.length!==4&&(ie=h(L,A[4],ie)))}}return L.flush()}})});var Z6=ne((ek,tk)=>{(function(e,t){typeof ek=="object"&&typeof tk<"u"?tk.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t())})(ek,function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function a(x){return e.test(x)}function n(x){return x.startsWith("//")}function s(x){return x.startsWith("/")}function i(x){return x.startsWith("file:")}function o(x){return/^[.?#]/.test(x)}function l(x){let g=t.exec(x);return u(g[1],g[2]||"",g[3],g[4]||"",g[5]||"/",g[6]||"",g[7]||"")}function c(x){let g=r.exec(x),y=g[2];return u("file:","",g[1]||"","",s(y)?y:"/"+y,g[3]||"",g[4]||"")}function u(x,g,y,v,S,w,P){return{scheme:x,user:g,host:y,port:v,path:S,query:w,hash:P,type:7}}function d(x){if(n(x)){let y=l("http:"+x);return y.scheme="",y.type=6,y}if(s(x)){let y=l("http://foo.com"+x);return y.scheme="",y.host="",y.type=5,y}if(i(x))return c(x);if(a(x))return l(x);let g=l("http://foo.com/"+x);return g.scheme="",g.host="",g.type=x?x.startsWith("?")?3:x.startsWith("#")?2:4:1,g}function f(x){if(x.endsWith("/.."))return x;let g=x.lastIndexOf("/");return x.slice(0,g+1)}function p(x,g){m(g,g.type),x.path==="/"?x.path=g.path:x.path=f(g.path)+x.path}function m(x,g){let y=g<=4,v=x.path.split("/"),S=1,w=0,P=!1;for(let N=1;Nv&&(v=P)}m(y,v);let S=y.query+y.hash;switch(v){case 2:case 3:return S;case 4:{let w=y.path.slice(1);return w?o(g||x)&&!o(w)?"./"+w+S:w+S:S||"."}case 5:return y.path+S;default:return y.scheme+"//"+y.user+y.host+y.port+y.path+S}}return h})});var ak=ne((rk,k0)=>{(function(e,t){if(typeof rk=="object"&&typeof k0<"u")t(k0,Z6(),ZR()),k0.exports=r(k0);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],function(a){t.apply(this,arguments),a.exports=r(a)});else{let a={exports:{}};t(a,e.resolveURI,e.sourcemapCodec),e=typeof globalThis<"u"?globalThis:e||self,e.traceMapping=r(a)}function r(a){return"default"in a.exports?a.exports.default:a.exports}})(rk,function(e,t,r){"use strict";var a=Object.create,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(ye,ke)=>function(){return ke||(0,ye[i(ye)[0]])((ke={exports:{}}).exports,ke),ke.exports},u=(ye,ke)=>{for(var Me in ke)n(ye,Me,{get:ke[Me],enumerable:!0})},d=(ye,ke,Me,je)=>{if(ke&&typeof ke=="object"||typeof ke=="function")for(let et of i(ke))!l.call(ye,et)&&et!==Me&&n(ye,et,{get:()=>ke[et],enumerable:!(je=s(ke,et))||je.enumerable});return ye},f=(ye,ke,Me)=>(Me=ye!=null?a(o(ye)):{},d(ke||!ye||!ye.__esModule?n(Me,"default",{value:ye,enumerable:!0}):Me,ye)),p=ye=>d(n({},"__esModule",{value:!0}),ye),m=c({"umd:@jridgewell/sourcemap-codec"(ye,ke){ke.exports=r}}),h=c({"umd:@jridgewell/resolve-uri"(ye,ke){ke.exports=t}}),x={};u(x,{AnyMap:()=>ue,FlattenMap:()=>ue,GREATEST_LOWER_BOUND:()=>Ie,LEAST_UPPER_BOUND:()=>Pe,TraceMap:()=>Ve,allGeneratedPositionsFor:()=>Tt,decodedMap:()=>qe,decodedMappings:()=>Ne,eachMapping:()=>Qt,encodedMap:()=>ut,encodedMappings:()=>we,generatedPositionFor:()=>Ct,isIgnored:()=>$e,originalPositionFor:()=>tt,presortedDecodedMap:()=>nt,sourceContentFor:()=>pe,traceSegment:()=>Be}),e.exports=p(x);var g=f(m()),y=f(h());function v(ye){if(!ye)return"";let ke=ye.lastIndexOf("/");return ye.slice(0,ke+1)}function S(ye,ke){let Me=v(ye),je=ke?ke+"/":"";return et=>(0,y.default)(je+(et||""),Me)}var w=0,P=1,C=2,N=3,R=4,O=1,D=2;function W(ye,ke){let Me=J(ye,0);if(Me===ye.length)return ye;ke||(ye=ye.slice());for(let je=Me;je[]);for(let je=0;je>1),ot=ye[et][w]-ke;if(ot===0)return L=!0,et;ot<0?Me=et+1:je=et-1}return L=!1,Me-1}function _(ye,ke,Me){for(let je=Me+1;je=0&&ye[je][w]===ke;Me=je--);return Me}function ie(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ae(ye,ke,Me,je){let{lastKey:et,lastNeedle:ot,lastIndex:ar}=Me,Lr=0,yr=ye.length-1;if(je===et){if(ke===ot)return L=ar!==-1&&ye[ar][w]===ke,ar;ke>=ot?Lr=ar===-1?0:ar:yr=ar}return Me.lastKey=je,Me.lastNeedle=ke,Me.lastIndex=k(ye,ke,Lr,yr)}function ge(ye){return typeof ye=="string"?JSON.parse(ye):ye}var ue=function(ye,ke){let Me=ge(ye);if(!("sections"in Me))return new Ve(Me,ke);let je=[],et=[],ot=[],ar=[],Lr=[];$(Me,ke,je,et,ot,ar,Lr,0,0,1/0,1/0);let yr={version:3,file:Me.file,names:ar,sources:et,sourcesContent:ot,mappings:je,ignoreList:Lr};return nt(yr)};function $(ye,ke,Me,je,et,ot,ar,Lr,yr,Za,nn){let{sections:Nn}=ye;for(let Cr=0;CrZa)return;let s5=he(Me,bI),Sse=Xo===0?yr:0,i5=Fi[Xo];for(let vI=0;vI=nn)return;if(Wp.length===1){s5.push([KT]);continue}let o5=en+Wp[P],l5=Wp[C],c5=Wp[N];s5.push(Wp.length===4?[KT,o5,l5,c5]:[KT,o5,l5,c5,jr+Wp[R]])}}}function K(ye,ke){for(let Me=0;Me=je.length)return null;let et=je[ke],ot=Qa(et,ye._decodedMemo,ke,Me,Ie);return ot===-1?null:et[ot]}function tt(ye,ke){let{line:Me,column:je,bias:et}=ke;if(Me--,Me<0)throw new Error(H);if(je<0)throw new Error(xe);let ot=Ne(ye);if(Me>=ot.length)return st(null,null,null,null);let ar=ot[Me],Lr=Qa(ar,ye._decodedMemo,Me,je,et||Ie);if(Lr===-1)return st(null,null,null,null);let yr=ar[Lr];if(yr.length===1)return st(null,null,null,null);let{names:Za,resolvedSources:nn}=ye;return st(nn[yr[P]],yr[C]+1,yr[N],yr.length===5?Za[yr[R]]:null)}function Ct(ye,ke){let{source:Me,line:je,column:et,bias:ot}=ke;return Nr(ye,Me,je,et,ot||Ie,!1)}function Tt(ye,ke){let{source:Me,line:je,column:et,bias:ot}=ke;return Nr(ye,Me,je,et,ot||Pe,!0)}function Qt(ye,ke){let Me=Ne(ye),{names:je,resolvedSources:et}=ye;for(let ot=0;ot{(function(e,t){if(typeof nk=="object"&&typeof M0<"u")t(M0,ZR(),ak()),M0.exports=r(M0);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],function(a){t.apply(this,arguments),a.exports=r(a)});else{let a={exports:{}};t(a,e.sourcemapCodec,e.traceMapping),e=typeof globalThis<"u"?globalThis:e||self,e.genMapping=r(a)}function r(a){return"default"in a.exports?a.exports.default:a.exports}})(nk,function(e,t,r){"use strict";var a=Object.create,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=(we,Ne)=>function(){return Ne||(0,we[i(we)[0]])((Ne={exports:{}}).exports,Ne),Ne.exports},u=(we,Ne)=>{for(var Be in Ne)n(we,Be,{get:Ne[Be],enumerable:!0})},d=(we,Ne,Be,tt)=>{if(Ne&&typeof Ne=="object"||typeof Ne=="function")for(let Ct of i(Ne))!l.call(we,Ct)&&Ct!==Be&&n(we,Ct,{get:()=>Ne[Ct],enumerable:!(tt=s(Ne,Ct))||tt.enumerable});return we},f=(we,Ne,Be)=>(Be=we!=null?a(o(we)):{},d(Ne||!we||!we.__esModule?n(Be,"default",{value:we,enumerable:!0}):Be,we)),p=we=>d(n({},"__esModule",{value:!0}),we),m=c({"umd:@jridgewell/sourcemap-codec"(we,Ne){Ne.exports=t}}),h=c({"umd:@jridgewell/trace-mapping"(we,Ne){Ne.exports=r}}),x={};u(x,{GenMapping:()=>me,addMapping:()=>V,addSegment:()=>q,allMappings:()=>ue,fromMap:()=>ge,maybeAddMapping:()=>k,maybeAddSegment:()=>L,setIgnore:()=>ee,setSourceContent:()=>_,toDecodedMap:()=>ie,toEncodedMap:()=>ae}),e.exports=p(x);var g=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function y(we){return we}function v(we,Ne){return we._indexes[Ne]}function S(we,Ne){let Be=v(we,Ne);if(Be!==void 0)return Be;let{array:tt,_indexes:Ct}=we,Tt=tt.push(Ne);return Ct[Ne]=Tt-1}function w(we,Ne){let Be=v(we,Ne);if(Be===void 0)return;let{array:tt,_indexes:Ct}=we;for(let Tt=Be+1;Tt$(!0,we,Ne,Be,tt,Ct,Tt,Qt,Ur),k=(we,Ne)=>ft(!0,we,Ne);function _(we,Ne,Be){let{_sources:tt,_sourcesContent:Ct}=we,Tt=S(tt,Ne);Ct[Tt]=Be}function ee(we,Ne,Be=!0){let{_sources:tt,_sourcesContent:Ct,_ignoreList:Tt}=we,Qt=S(tt,Ne);Qt===Ct.length&&(Ct[Qt]=null),Be?S(Tt,Qt):w(Tt,Qt)}function ie(we){let{_mappings:Ne,_sources:Be,_sourcesContent:tt,_names:Ct,_ignoreList:Tt}=we;return xe(Ne),{version:3,file:we.file||void 0,names:Ct.array,sourceRoot:we.sourceRoot||void 0,sources:Be.array,sourcesContent:tt,mappings:Ne,ignoreList:Tt.array}}function ae(we){let Ne=ie(we);return Object.assign({},Ne,{mappings:(0,P.encode)(Ne.mappings)})}function ge(we){let Ne=new C.TraceMap(we),Be=new me({file:Ne.file,sourceRoot:Ne.sourceRoot});return Pe(Be._names,Ne.names),Pe(Be._sources,Ne.sources),Be._sourcesContent=Ne.sourcesContent||Ne.sources.map(()=>null),Be._mappings=(0,C.decodedMappings)(Ne),Ne.ignoreList&&Pe(Be._ignoreList,Ne.ignoreList),Be}function ue(we){let Ne=[],{_mappings:Be,_sources:tt,_names:Ct}=we;for(let Tt=0;Tt=0;Be=tt--){let Ct=we[tt];if(Ne>=Ct[N])break}return Be}function H(we,Ne,Be){for(let tt=we.length;tt>Ne;tt--)we[tt]=we[tt-1];we[Ne]=Be}function xe(we){let{length:Ne}=we,Be=Ne;for(let tt=Be-1;tt>=0&&!(we[tt].length>0);Be=tt,tt--);Be{"use strict";Object.defineProperty(iC,"__esModule",{value:!0});iC.default=void 0;var ef=eU(),sk=ak(),ik=class{constructor(t,r){var a;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let n=this._map=new ef.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(a=t.sourceFileName)==null?void 0:a.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new sk.TraceMap(t.inputSourceMap);let i=this._inputMap.resolvedSources;if(i.length)for(let o=0;o{"use strict";Object.defineProperty(oC,"__esModule",{value:!0});oC.default=void 0;var ok=class{constructor(t,r){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=t,this._indentChar=r;for(let a=0;a<64;a++)this._fastIndentations.push(r.repeat(a));this._allocQueue()}_allocQueue(){let t=this._queue;for(let r=0;r<16;r++)t.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(t,r,a,n,s){let i=this._queueCursor;i===this._queue.length&&this._allocQueue();let o=this._queue[i];o.char=t,o.repeat=r,o.line=a,o.column=n,o.filename=s,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let t=this._map,r={code:(this._buf+this._str).trimRight(),decodedMap:t?.getDecoded(),get __mergedMap(){return this.map},get map(){let a=t?t.get():null;return r.map=a,a},set map(a){Object.defineProperty(r,"map",{value:a,writable:!0})},get rawMappings(){let a=t?.getRawMappings();return r.rawMappings=a,a},set rawMappings(a){Object.defineProperty(r,"rawMappings",{value:a,writable:!0})}};return r}append(t,r){this._flush(),this._append(t,this._sourcePosition,r)}appendChar(t){this._flush(),this._appendChar(t,1,this._sourcePosition)}queue(t){if(t===10)for(;this._queueCursor!==0;){let a=this._queue[this._queueCursor-1].char;if(a!==32&&a!==9)break;this._queueCursor--}let r=this._sourcePosition;this._pushQueue(t,1,r.line,r.column,r.filename)}queueIndentation(t){t!==0&&this._pushQueue(-1,t,void 0,void 0,void 0)}_flush(){let t=this._queueCursor,r=this._queue;for(let a=0;a1?this._indentChar.repeat(r):this._indentChar}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);t!==10?(this._mark(a.line,a.column,a.identifierName,a.identifierNamePos,a.filename),this._position.column+=r):(this._position.line++,this._position.column=0),this._canMarkIdName&&(a.identifierName=void 0,a.identifierNamePos=void 0)}_append(t,r,a){let n=t.length,s=this._position;if(this._last=t.charCodeAt(n-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t,!a&&!this._map){s.column+=n;return}let{column:i,identifierName:o,identifierNamePos:l,filename:c}=r,u=r.line;(o!=null||l!=null)&&this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0);let d=t.indexOf(` `),f=0;for(d!==0&&this._mark(u,i,o,l,c);d!==-1;)s.line++,s.column=0,f=d+1,f=0&&this._queue[a].char===10;a--)r++;return r===t&&this._last===10?r+1:r}endsWithCharAndNewline(){let t=this._queue,r=this._queueCursor;if(r!==0)return t[r-1].char!==10?void 0:r>1?t[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let a=t.identifierName,n=this._sourcePosition;a&&(this._canMarkIdName=!1,n.identifierName=a),r(),a&&(this._canMarkIdName=!0,n.identifierName=void 0,n.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,a){this._map&&this._normalizePosition(t,r,a)}_normalizePosition(t,r,a){let n=r[t],s=this._sourcePosition;n&&(s.line=n.line,s.column=Math.max(n.column+a,0),s.filename=r.filename)}getCurrentColumn(){let t=this._queue,r=this._queueCursor,a=-1,n=0;for(let s=0;s{"use strict";Object.defineProperty(cC,"__esModule",{value:!0});cC.nodes=void 0;var NIe=fr(),{FLIPPED_ALIAS_KEYS:LIe,isArrayExpression:RIe,isAssignmentExpression:nU,isBinary:sU,isBlockStatement:kIe,isCallExpression:iU,isFunction:D0,isIdentifier:lC,isLiteral:MIe,isMemberExpression:lk,isObjectExpression:DIe,isOptionalCallExpression:_Ie,isOptionalMemberExpression:OIe,isStringLiteral:FIe}=NIe;function Bg(e,t){return e&&(lk(e)||OIe(e)?(Bg(e.object,t),e.computed&&Bg(e.property,t)):sU(e)||nU(e)?(Bg(e.left,t),Bg(e.right,t)):iU(e)||_Ie(e)?(t.hasCall=!0,Bg(e.callee,t)):D0(e)?t.hasFunction=!0:lC(e)&&(t.hasHelper=t.hasHelper||e.callee&&Tu(e.callee))),t}function aU(e){return Bg(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function Tu(e){return e?lk(e)?Tu(e.object)||Tu(e.property):lC(e)?e.name==="require"||e.name.charCodeAt(0)===95:iU(e)?Tu(e.callee):sU(e)||nU(e)?lC(e.left)&&Tu(e.left)||Tu(e.right):!1:!1}function BIe(e){return MIe(e)||DIe(e)||RIe(e)||lC(e)||lk(e)}var fm=cC.nodes={AssignmentExpression(e){let t=aU(e.right);return t.hasCall&&t.hasHelper||t.hasFunction?t.hasFunction?3:2:0},SwitchCase(e,t){return(e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){return D0(e.left)||D0(e.right)?2:0},Literal(e){return FIe(e)&&e.value==="use strict"?2:0},CallExpression(e){return D0(e.callee)||Tu(e)?3:0},OptionalCallExpression(e){return D0(e.callee)?3:0},VariableDeclaration(e){for(let t=0;ta})})});var hU=ne(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.AssignmentExpression=gNe;kr.Binary=fU;kr.BinaryExpression=uNe;kr.ClassExpression=pNe;kr.ArrowFunctionExpression=kr.ConditionalExpression=mU;kr.DoExpression=ZIe;kr.FunctionExpression=mNe;kr.FunctionTypeAnnotation=YIe;kr.Identifier=xNe;kr.LogicalExpression=yNe;kr.NullableTypeAnnotation=XIe;kr.ObjectExpression=QIe;kr.OptionalIndexedAccessType=tNe;kr.OptionalCallExpression=kr.OptionalMemberExpression=hNe;kr.SequenceExpression=dNe;kr.TSSatisfiesExpression=kr.TSAsExpression=rNe;kr.TSConditionalType=aNe;kr.TSConstructorType=kr.TSFunctionType=cNe;kr.TSInferType=iNe;kr.TSInstantiationExpression=lNe;kr.TSIntersectionType=sNe;kr.UnaryLike=kr.TSTypeAssertion=pU;kr.TSTypeOperator=oNe;kr.TSUnionType=nNe;kr.IntersectionTypeAnnotation=kr.UnionTypeAnnotation=eNe;kr.UpdateExpression=JIe;kr.AwaitExpression=kr.YieldExpression=fNe;var UIe=fr(),go=pm(),{isArrayTypeAnnotation:jIe,isBinaryExpression:zIe,isCallExpression:VIe,isForOfStatement:qIe,isIndexedAccessType:HIe,isMemberExpression:uU,isObjectPattern:$Ie,isOptionalMemberExpression:GIe,isYieldExpression:KIe,isStatement:WIe}=UIe,lU=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 cU(e,t){if(t==="BinaryExpression"||t==="LogicalExpression")return lU.get(e.operator);if(t==="TSAsExpression"||t==="TSSatisfiesExpression")return lU.get("in")}function ck(e){return e==="TSAsExpression"||e==="TSSatisfiesExpression"||e==="TSTypeAssertion"}var uC=(e,t)=>{let r=t.type;return(r==="ClassDeclaration"||r==="ClassExpression")&&t.superClass===e},dC=(e,t)=>{let r=t.type;return(r==="MemberExpression"||r==="OptionalMemberExpression")&&t.object===e||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&t.callee===e||r==="TaggedTemplateExpression"&&t.tag===e||r==="TSNonNullExpression"};function XIe(e,t){return jIe(t)}function YIe(e,t,r){let a=t.type;return a==="UnionTypeAnnotation"||a==="IntersectionTypeAnnotation"||a==="ArrayTypeAnnotation"||Boolean(r&go.TokenContext.arrowFlowReturnType)}function JIe(e,t){return dC(e,t)||uC(e,t)}function dU(e){return Boolean(e&(go.TokenContext.expressionStatement|go.TokenContext.arrowBody))}function QIe(e,t,r){return dU(r)}function ZIe(e,t,r){return!e.async&&Boolean(r&go.TokenContext.expressionStatement)}function fU(e,t){let r=t.type;if(e.type==="BinaryExpression"&&e.operator==="**"&&r==="BinaryExpression"&&t.operator==="**")return t.left===e;if(uC(e,t)||dC(e,t)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression")return!0;let a=cU(t,r);if(a!=null){let n=cU(e,e.type);if(a===n&&r==="BinaryExpression"&&t.right===e||a>n)return!0}}function eNe(e,t){let r=t.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function tNe(e,t){return HIe(t)&&t.objectType===e}function rNe(e,t){return(t.type==="AssignmentExpression"||t.type==="AssignmentPattern")&&t.left===e||t.type==="BinaryExpression"&&(t.operator==="|"||t.operator==="&")&&e===t.left?!0:fU(e,t)}function aNe(e,t){let r=t.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"||r==="TSTypeOperator"||r==="TSTypeParameter"||(r==="TSIntersectionType"||r==="TSUnionType")&&t.types[0]===e||r==="TSConditionalType"&&(t.checkType===e||t.extendsType===e)}function nNe(e,t){let r=t.type;return r==="TSIntersectionType"||r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function sNe(e,t){let r=t.type;return r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function iNe(e,t){let r=t.type;return!!(r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"||e.typeParameter.constraint&&(r==="TSIntersectionType"||r==="TSUnionType")&&t.types[0]===e)}function oNe(e,t){let r=t.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function lNe(e,t){let r=t.type;return(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!t.typeParameters}function cNe(e,t){let r=t.type;return r==="TSIntersectionType"||r==="TSUnionType"||r==="TSTypeOperator"||r==="TSOptionalType"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSConditionalType"&&(t.checkType===e||t.extendsType===e)}function uNe(e,t,r){return e.operator==="in"&&Boolean(r&go.TokenContext.forInOrInitHeadAccumulate)}function dNe(e,t){let r=t.type;return r==="SequenceExpression"||r==="ParenthesizedExpression"||r==="MemberExpression"&&t.property===e||r==="OptionalMemberExpression"&&t.property===e||r==="TemplateLiteral"?!1:r==="ClassDeclaration"?!0:r==="ForOfStatement"?t.right===e:r==="ExportDefaultDeclaration"?!0:!WIe(t)}function fNe(e,t){let r=t.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||dC(e,t)||r==="AwaitExpression"&&KIe(e)||r==="ConditionalExpression"&&e===t.test||uC(e,t)||ck(r)}function pNe(e,t,r){return Boolean(r&(go.TokenContext.expressionStatement|go.TokenContext.exportDefault))}function pU(e,t){return dC(e,t)||zIe(t)&&t.operator==="**"&&t.left===e||uC(e,t)}function mNe(e,t,r){return Boolean(r&(go.TokenContext.expressionStatement|go.TokenContext.exportDefault))}function mU(e,t){let r=t.type;return r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&t.test===e||r==="AwaitExpression"||ck(r)?!0:pU(e,t)}function hNe(e,t){return VIe(t)&&t.callee===e||uU(t)&&t.object===e}function gNe(e,t,r){return dU(r)&&$Ie(e.left)?!0:mU(e,t)}function yNe(e,t){let r=t.type;if(ck(r))return!0;if(r!=="LogicalExpression")return!1;switch(e.operator){case"||":return t.operator==="??"||t.operator==="&&";case"&&":return t.operator==="??";case"??":return t.operator!=="??"}}function xNe(e,t,r,a){var n;let s=t.type;if((n=e.extra)!=null&&n.parenthesized&&s==="AssignmentExpression"&&t.left===e){let i=t.right.type;if((i==="FunctionExpression"||i==="ClassExpression")&&t.right.id==null)return!0}return a&&a(e)!==e.name?!1:e.name==="let"?(uU(t,{object:e,computed:!0})||GIe(t,{object:e,computed:!0,optional:!1}))&&r&(go.TokenContext.expressionStatement|go.TokenContext.forInitHead|go.TokenContext.forInHead)?!0:Boolean(r&go.TokenContext.forOfHead):e.name==="async"&&qIe(t,{left:e,await:!1})}});var pm=ne(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.TokenContext=void 0;wu.isLastChild=DNe;wu.needsParens=MNe;wu.needsWhitespace=dk;wu.needsWhitespaceAfter=kNe;wu.needsWhitespaceBefore=RNe;var bNe=oU(),vNe=hU(),SNe=fr(),{FLIPPED_ALIAS_KEYS:TNe,VISITOR_KEYS:wNe,isCallExpression:gU,isDecorator:CNe,isExpressionStatement:ENe,isMemberExpression:PNe,isNewExpression:ANe,isParenthesizedExpression:INe}=SNe,klt=wu.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};function yU(e){let t=new Map;function r(a,n){let s=t.get(a);t.set(a,s?function(i,o,l,c){var u;return(u=s(i,o,l,c))!=null?u:n(i,o,l,c)}:n)}for(let a of Object.keys(e)){let n=TNe[a];if(n)for(let s of n)r(s,e[a]);else r(a,e[a])}return t}var NNe=yU(vNe),LNe=yU(bNe.nodes);function xU(e){return gU(e)?!0:PNe(e)&&xU(e.object)}function dk(e,t,r){var a;if(!e)return!1;ENe(e)&&(e=e.expression);let n=(a=LNe.get(e.type))==null?void 0:a(e,t);return typeof n=="number"?(n&r)!==0:!1}function RNe(e,t){return dk(e,t,1)}function kNe(e,t){return dk(e,t,2)}function MNe(e,t,r,a){var n;return t?ANe(t)&&t.callee===e&&xU(e)?!0:CNe(t)?!uk(e)&&!(gU(e)&&uk(e.callee))&&!INe(e):((n=NNe.get(e.type))==null?void 0:n(e,t,r,a))||!1:!1}function uk(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&uk(e.object);default:return!1}}function DNe(e,t){let r=wNe[e.type];for(let a=r.length-1;a>=0;a--){let n=e[r[a]];if(n===t)return!0;if(Array.isArray(n)){let s=n.length-1;for(;s>=0&&n[s]===null;)s--;return s>=0&&n[s]===t}else if(n)return!1}return!1}});var bU=ne(fC=>{"use strict";Object.defineProperty(fC,"__esModule",{value:!0});fC.TokenMap=void 0;var _Ne=fr(),{traverseFast:ONe,VISITOR_KEYS:FNe}=_Ne,fk=class{constructor(t,r,a){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=a,ONe(t,n=>{let s=this._getTokensIndexesOfNode(n);s.length>0&&this._nodesToTokenIndexes.set(n,s)}),this._tokensCache.clear()}has(t){return this._nodesToTokenIndexes.has(t)}getIndexes(t){return this._nodesToTokenIndexes.get(t)}find(t,r){let a=this._nodesToTokenIndexes.get(t);if(a)for(let n=0;n=0;n--){let s=a[n],i=this._tokens[s];if(r(i,s))return s}return-1}findMatching(t,r,a=0){let n=this._nodesToTokenIndexes.get(t);if(n){let s=0,i=a;if(i>1){let o=this._nodesOccurrencesCountCache.get(t);o&&o.test===r&&o.count0&&this._nodesOccurrencesCountCache.set(t,{test:r,count:i,i:s}),o;a--}}}return null}matchesOriginal(t,r){return t.end-t.start!==r.length?!1:t.value!=null?t.value===r:this._source.startsWith(r,t.start)}startMatches(t,r){let a=this._nodesToTokenIndexes.get(t);if(!a)return!1;let n=this._tokens[a[0]];return n.start!==t.start?!1:this.matchesOriginal(n,r)}endMatches(t,r){let a=this._nodesToTokenIndexes.get(t);if(!a)return!1;let n=this._tokens[a[a.length-1]];return n.end!==t.end?!1:this.matchesOriginal(n,r)}_getTokensIndexesOfNode(t){if(t.start==null||t.end==null)return[];let{first:r,last:a}=this._findTokensOfNode(t,0,this._tokens.length-1),n=r,s=BNe(t);(t.type==="ExportNamedDeclaration"||t.type==="ExportDefaultDeclaration")&&t.declaration&&t.declaration.type==="ClassDeclaration"&&s.next();let i=[];for(let o of s){if(o==null||o.start==null||o.end==null)continue;let l=this._findTokensOfNode(o,n,a),c=l.first;for(let u=n;u>1;if(tthis._tokens[n].start)r=n+1;else return n}return r}_findLastTokenOfNode(t,r,a){for(;r<=a;){let n=a+r>>1;if(tthis._tokens[n].end)r=n+1;else return n}return a}};fC.TokenMap=fk;function*BNe(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let r=1;r{"use strict";Object.defineProperty(Ug,"__esModule",{value:!0});Ug.TaggedTemplateExpression=UNe;Ug.TemplateElement=jNe;Ug.TemplateLiteral=VNe;Ug._printTemplate=zNe;function UNe(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function jNe(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function zNe(e,t){let r=e.quasis,a="`";for(let n=0;n{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.LogicalExpression=Zr.BinaryExpression=Zr.AssignmentExpression=mLe;Zr.AssignmentPattern=pLe;Zr.AwaitExpression=cLe;Zr.BindExpression=hLe;Zr.CallExpression=oLe;Zr.ConditionalExpression=QNe;Zr.Decorator=nLe;Zr.DoExpression=XNe;Zr.EmptyStatement=dLe;Zr.ExpressionStatement=fLe;Zr.Import=lLe;Zr.MemberExpression=gLe;Zr.MetaProperty=yLe;Zr.ModuleExpression=vLe;Zr.NewExpression=ZNe;Zr.OptionalCallExpression=iLe;Zr.OptionalMemberExpression=sLe;Zr.ParenthesizedExpression=YNe;Zr.PrivateName=xLe;Zr.SequenceExpression=eLe;Zr.Super=rLe;Zr.ThisExpression=tLe;Zr.UnaryExpression=WNe;Zr.UpdateExpression=JNe;Zr.V8IntrinsicIdentifier=bLe;Zr.YieldExpression=uLe;Zr._shouldPrintDecoratorsBeforeExport=aLe;var qNe=fr(),HNe=pm(),{isCallExpression:$Ne,isLiteral:SU,isMemberExpression:pk,isNewExpression:GNe,isPattern:KNe}=qNe;function WNe(e){let{operator:t}=e;t==="void"||t==="delete"||t==="typeof"||t==="throw"?(this.word(t),this.space()):this.token(t),this.print(e.argument)}function XNe(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)}function YNe(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e)}function JNe(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))}function QNe(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)}function ZNe(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!$Ne(t,{callee:e})&&!pk(t)&&!GNe(t)||(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),r(),this.rightParens(e)}function eLe(e){this.printList(e.expressions)}function tLe(){this.word("this")}function rLe(){this.word("super")}function aLe(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function nLe(e){this.tokenChar(64),this.print(e.expression),this.newline()}function sLe(e){let{computed:t}=e,{optional:r,property:a}=e;if(this.print(e.object),!t&&pk(a))throw new TypeError("Got a MemberExpression for MemberExpression property");SU(a)&&typeof a.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(a),this.tokenChar(93)):(r||this.tokenChar(46),this.print(a))}function iLe(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e)}function oLe(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),t(),this.rightParens(e)}function lLe(){this.word("import")}function cLe(e){this.word("await"),this.space(),this.print(e.argument)}function uLe(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")}function dLe(){this.semicolon(!0)}function fLe(e){this.tokenContext|=HNe.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()}function pLe(e){this.print(e.left),(e.left.type==="Identifier"||KNe(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)}function mLe(e){this.print(e.left),this.space(),e.operator==="in"||e.operator==="instanceof"?this.word(e.operator):(this.token(e.operator),this._endsWithDiv=e.operator==="/"),this.space(),this.print(e.right)}function hLe(e){this.print(e.object),this.token("::"),this.print(e.callee)}function gLe(e){if(this.print(e.object),!e.computed&&pk(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(SU(e.property)&&typeof e.property.value=="number"&&(t=!0),t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),r()}else this.tokenChar(46),this.print(e.property)}function yLe(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)}function xLe(e){this.tokenChar(35),this.print(e.id)}function bLe(e){this.tokenChar(37),this.word(e.name)}function vLe(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)}});var PU=ne(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.BreakStatement=LLe;tn.CatchClause=OLe;tn.ContinueStatement=RLe;tn.DebuggerStatement=ULe;tn.DoWhileStatement=NLe;tn.ForOfStatement=tn.ForInStatement=void 0;tn.ForStatement=ALe;tn.IfStatement=PLe;tn.LabeledStatement=DLe;tn.ReturnStatement=kLe;tn.SwitchCase=BLe;tn.SwitchStatement=FLe;tn.ThrowStatement=MLe;tn.TryStatement=_Le;tn.VariableDeclaration=jLe;tn.VariableDeclarator=zLe;tn.WhileStatement=ILe;tn.WithStatement=ELe;var SLe=fr(),{isFor:wU,isForStatement:TLe,isIfStatement:wLe,isStatement:CLe}=SLe;function ELe(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)}function PLe(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&wLe(CU(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))}function CU(e){let{body:t}=e;return CLe(t)===!1?e:CU(t)}function ALe(e){this.word("for"),this.space(),this.tokenChar(40);{let 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)}function ILe(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)}function EU(e){this.word("for"),this.space();let t=e.type==="ForOfStatement";t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{let r=this.enterForXStatementInit(t);this.print(e.left),r?.()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}var Flt=tn.ForInStatement=EU,Blt=tn.ForOfStatement=EU;function NLe(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()}function pC(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}function LLe(e){this.word("break"),pC(this,e.label)}function RLe(e){this.word("continue"),pC(this,e.label)}function kLe(e){this.word("return"),pC(this,e.argument)}function MLe(e){this.word("throw"),pC(this,e.argument)}function DLe(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)}function _Le(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))}function OLe(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)}function FLe(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),this.rightBrace(e)}function BLe(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))}function ULe(){this.word("debugger"),this.semicolon()}function jLe(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;r==="await using"?(this.word("await"),this.space(),this.word("using",!0)):this.word(r,r==="using"),this.space();let a=!1;if(!wU(t))for(let n of e.declarations)n.init&&(a=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,a?function(n){this.token(",",!1,n),this.newline()}:void 0),wU(t)){if(TLe(t)){if(t.init===e)return}else if(t.left===e)return}this.semicolon()}function zLe(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))}});var AU=ne(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.ClassAccessorProperty=XLe;Zo.ClassBody=GLe;Zo.ClassExpression=Zo.ClassDeclaration=$Le;Zo.ClassMethod=JLe;Zo.ClassPrivateMethod=QLe;Zo.ClassPrivateProperty=YLe;Zo.ClassProperty=WLe;Zo.StaticBlock=eRe;Zo._classMethodHead=ZLe;var VLe=fr(),{isExportDefaultDeclaration:qLe,isExportNamedDeclaration:HLe}=VLe;function $Le(e,t){(!(qLe(t)||HLe(t))||!this._shouldPrintDecoratorsBeforeExport(t))&&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)}function GLe(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{this.newline();let t=KLe(this,e);t?.(-1);let r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),r(),this.endsWith(10)||this.newline(),this.rightBrace(e)}}function KLe(e,t){if(!e.tokenMap||t.start==null||t.end==null)return null;let r=e.tokenMap.getIndexes(t);if(!r)return null;let a=1,n=0,s=0,i=()=>{for(;s{s<=o&&(s=o+1,i());let l=s===t.body.length?t.end:t.body[s].start,c;for(;a{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.ArrowFunctionExpression=dRe;el.FunctionDeclaration=el.FunctionExpression=uRe;el._functionHead=cRe;el._methodHead=oRe;el._param=iRe;el._parameters=sRe;el._params=nRe;el._predicate=lRe;el._shouldPrintArrowParamsParens=fRe;var tRe=fr(),rRe=pm(),{isIdentifier:aRe}=tRe;function nRe(e,t,r){this.print(e.typeParameters);let a=pRe.call(this,t,r);a&&this.sourceIdentifierName(a.name,a.pos),this.tokenChar(40),this._parameters(e.params,")");let n=e.type==="ArrowFunctionExpression";this.print(e.returnType,n),this._noLineTerminator=n}function sRe(e,t){let r=this.enterDelimited(),a=this.shouldPrintTrailingComma(t),n=e.length;for(let s=0;s"),this.space(),this.tokenContext|=rRe.TokenContext.arrowBody,this.print(e.body)}function fRe(e){var t,r;if(e.params.length!==1||e.typeParameters||e.returnType||e.predicate)return!0;let a=e.params[0];if(!aRe(a)||a.typeAnnotation||a.optional||(t=a.leadingComments)!=null&&t.length||(r=a.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(e.loc==null||this.tokenMap.findMatching(e,"(")!==null)return!0;let n=this.tokenMap.findMatching(e,"=>");return n?.loc==null?!0:n.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function pRe(e,t){let r=e;if(!r&&t){let l=t.type;l==="VariableDeclarator"?r=t.id:l==="AssignmentExpression"||l==="AssignmentPattern"?r=t.left:l==="ObjectProperty"||l==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")&&(r=t.key)}if(!r)return;let a;if(r.type==="Identifier"){var n,s;a={pos:(n=r.loc)==null?void 0:n.start,name:((s=r.loc)==null?void 0:s.identifierName)||r.name}}else if(r.type==="PrivateName"){var i;a={pos:(i=r.loc)==null?void 0:i.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;a={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return a}});var mk=ne(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.ExportAllDeclaration=ARe;mi.ExportDefaultDeclaration=NRe;mi.ExportDefaultSpecifier=wRe;mi.ExportNamedDeclaration=IRe;mi.ExportNamespaceSpecifier=ERe;mi.ExportSpecifier=CRe;mi.ImportAttribute=RRe;mi.ImportDeclaration=LRe;mi.ImportDefaultSpecifier=TRe;mi.ImportExpression=MRe;mi.ImportNamespaceSpecifier=kRe;mi.ImportSpecifier=SRe;mi._printAttributes=PRe;var mRe=fr(),hRe=pm(),{isClassDeclaration:gRe,isExportDefaultSpecifier:yRe,isExportNamespaceSpecifier:xRe,isImportDefaultSpecifier:bRe,isImportNamespaceSpecifier:vRe,isStatement:LU}=mRe;function SRe(e){(e.importKind==="type"||e.importKind==="typeof")&&(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))}function TRe(e){this.print(e.local)}function wRe(e){this.print(e.exported)}function CRe(e){e.exportKind==="type"&&(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))}function ERe(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var NU=!1;function PRe(e,t){var r;let{importAttributesKeyword:a}=this.format,{attributes:n,assertions:s}=e;n&&!a&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!NU&&(NU=!0);let i=a==="assert"||!a&&s;if(this.word(i?"assert":"with"),this.space(),!i&&(a==="with-legacy"||!a&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(n||s);return}let o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(n||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)}function ARe(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()}function RU(e,t){gRe(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}function IRe(e){if(RU(this,e),this.word("export"),this.space(),e.declaration){let a=e.declaration;this.print(a),LU(a)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());let a=e.specifiers.slice(0),n=!1;for(;;){let i=a[0];if(yRe(i)||xRe(i))n=!0,this.print(a.shift()),a.length&&(this.tokenChar(44),this.space());else break}let s=!1;if((a.length||!a.length&&!n)&&(s=!0,this.tokenChar(123),a.length&&(this.space(),this.printList(a,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,s)):this.print(e.source)}this.semicolon()}}function NRe(e){RU(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=hRe.TokenContext.exportDefault;let t=e.declaration;this.print(t),LU(t)||this.semicolon()}function LRe(e){var t,r;this.word("import"),this.space();let a=e.importKind==="type"||e.importKind==="typeof";a?(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());let n=e.specifiers.slice(0),s=!!n.length;for(;s;){let o=n[0];if(bRe(o)||vRe(o))this.print(n.shift()),n.length&&(this.tokenChar(44),this.space());else break}let i=!1;n.length?(i=!0,this.tokenChar(123),this.space(),this.printList(n,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):a&&!s&&(i=!0,this.tokenChar(123),this.tokenChar(125)),(s||a)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,i)):this.print(e.source),this.semicolon()}function RRe(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function kRe(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function MRe(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)}});var _U=ne((qlt,DU)=>{"use strict";var kU={},DRe=kU.hasOwnProperty,MU=(e,t)=>{for(let r in e)DRe.call(e,r)&&t(r,e[r])},_Re=(e,t)=>(t&&MU(t,(r,a)=>{e[r]=a}),e),ORe=(e,t)=>{let r=e.length,a=-1;for(;++a"\\u"+("0000"+e).slice(-4),_0=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},O0=kU.toString,FRe=Array.isArray,BRe=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),URe=e=>O0.call(e)=="[object Object]",jRe=e=>typeof e=="string"||O0.call(e)=="[object String]",zRe=e=>typeof e=="number"||O0.call(e)=="[object Number]",hk=e=>typeof e=="bigint",VRe=e=>typeof e=="function",qRe=e=>O0.call(e)=="[object Map]",HRe=e=>O0.call(e)=="[object Set]",$Re={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},GRe=/[\\\b\f\n\r\t]/,KRe=/[0-9]/,WRe=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,XRe=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,YRe=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,tf=(e,t)=>{let r=()=>{c=l,++t.indentLevel,l=t.indent.repeat(t.indentLevel)},a={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},n=t&&t.json;n&&(a.quotes="double",a.wrap=!0),t=_Re(a,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let s=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",i=t.compact,o=t.lowercaseHex,l=t.indent.repeat(t.indentLevel),c="",u=t.__inline1__,d=t.__inline2__,f=i?"":` `,p,m=!0,h=t.numbers=="binary",x=t.numbers=="octal",g=t.numbers=="decimal",y=t.numbers=="hexadecimal";if(n&&e&&VRe(e.toJSON)&&(e=e.toJSON()),!jRe(e)){if(qRe(e))return e.size==0?"new Map()":(i||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+tf(Array.from(e),t)+")");if(HRe(e))return e.size==0?"new Set()":"new Set("+tf(Array.from(e),t)+")";if(BRe(e))return e.length==0?"Buffer.from([])":"Buffer.from("+tf(Array.from(e),t)+")";if(FRe(e))return p=[],t.wrap=!0,u&&(t.__inline1__=!1,t.__inline2__=!0),d||r(),ORe(e,S=>{m=!1,d&&(t.__inline2__=!1),p.push((i||d?"":l)+tf(S,t))}),m?"[]":d?"["+p.join(", ")+"]":"["+f+p.join(","+f)+f+(i?"":c)+"]";if(zRe(e)||hk(e)){if(n)return JSON.stringify(Number(e));let S;if(g)S=String(e);else if(y){let w=e.toString(16);o||(w=w.toUpperCase()),S="0x"+w}else h?S="0b"+e.toString(2):x&&(S="0o"+e.toString(8));return hk(e)?S+"n":S}else return hk(e)?n?JSON.stringify(Number(e)):e+"n":URe(e)?(p=[],t.wrap=!0,r(),MU(e,(S,w)=>{m=!1,p.push((i?"":l)+tf(S,t)+":"+(i?"":" ")+tf(w,t))}),m?"{}":"{"+f+p.join(","+f)+f+(i?"":c)+"}"):n?JSON.stringify(e)||"null":String(e)}let v=t.escapeEverything?XRe:YRe;return p=e.replace(v,(S,w,P,C,N,R)=>{if(w){if(t.minimal)return w;let D=w.charCodeAt(0),W=w.charCodeAt(1);if(t.es6){let J=(D-55296)*1024+W-56320+65536;return"\\u{"+_0(J,o)+"}"}return mC(_0(D,o))+mC(_0(W,o))}if(P)return mC(_0(P.charCodeAt(0),o));if(S=="\0"&&!n&&!KRe.test(R.charAt(N+1)))return"\\0";if(C)return C==s||t.escapeEverything?"\\"+C:C;if(GRe.test(S))return $Re[S];if(t.minimal&&!WRe.test(S))return S;let O=_0(S.charCodeAt(0),o);return n||O.length>2?mC(O):"\\x"+("00"+O).slice(-2)}),s=="`"&&(p=p.replace(/\$\{/g,"\\${")),t.isScriptContext&&(p=p.replace(/<\/(script|style)/gi,"<\\/$1").replace(/