vzcode 2.8.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
8
8
|
Released under the MIT License.
|
|
9
|
-
*/var Jo="4.46.2",Ru=44,cm=59,um="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Du=new Uint8Array(64),Ou=new Uint8Array(128);for(let t=0;t<64;t++){const e=um.charCodeAt(t);Du[t]=e,Ou[e]=t}function qs(t,e){let n=0,s=0,r=0;do{const a=t.next();r=Ou[a],n|=(31&r)<<s,s+=5}while(32&r);const i=1&n;return n>>>=1,i&&(n=-2147483648|-n),e+n}function Hs(t,e,n){let s=e-n;s=s<0?-s<<1|1:s<<1;do{let r=31&s;s>>>=5,s>0&&(r|=32),t.write(Du[r])}while(s>0);return e}function Lu(t,e){return!(t.pos>=e)&&t.peek()!==Ru}var Mu=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode:t=>Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}},hm=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){const{buffer:n}=this;n[this.pos++]=e,this.pos===16384&&(this.out+=Mu.decode(n),this.pos=0)}flush(){const{buffer:e,out:n,pos:s}=this;return s>0?n+Mu.decode(e.subarray(0,s)):n}},dm=class{constructor(
|
|
9
|
+
*/var Jo="4.46.2",Ru=44,cm=59,um="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Du=new Uint8Array(64),Ou=new Uint8Array(128);for(let t=0;t<64;t++){const e=um.charCodeAt(t);Du[t]=e,Ou[e]=t}function qs(t,e){let n=0,s=0,r=0;do{const a=t.next();r=Ou[a],n|=(31&r)<<s,s+=5}while(32&r);const i=1&n;return n>>>=1,i&&(n=-2147483648|-n),e+n}function Hs(t,e,n){let s=e-n;s=s<0?-s<<1|1:s<<1;do{let r=31&s;s>>>=5,s>0&&(r|=32),t.write(Du[r])}while(s>0);return e}function Lu(t,e){return!(t.pos>=e)&&t.peek()!==Ru}var Mu=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode:t=>Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}},hm=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){const{buffer:n}=this;n[this.pos++]=e,this.pos===16384&&(this.out+=Mu.decode(n),this.pos=0)}flush(){const{buffer:e,out:n,pos:s}=this;return s>0?n+Mu.decode(e.subarray(0,s)):n}},dm=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:s}=this,r=n.indexOf(e,s);return r===-1?n.length:r}};function pm(t){t.sort(fm)}function fm(t,e){return t[0]-e[0]}function Fu(t){const e=new hm;let n=0,s=0,r=0,i=0;for(let a=0;a<t.length;a++){const l=t[a];if(a>0&&e.write(cm),l.length===0)continue;let c=0;for(let u=0;u<l.length;u++){const d=l[u];u>0&&e.write(Ru),c=Hs(e,d[0],c),d.length!==1&&(n=Hs(e,d[1],n),s=Hs(e,d[2],s),r=Hs(e,d[3],r),d.length!==4&&(i=Hs(e,d[4],i)))}}return e.flush()}class Zr{constructor(e){this.bits=e instanceof Zr?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(31&e)}has(e){return!!(this.bits[e>>5]&1<<(31&e))}}let Bu=class Tu{constructor(e,n,s){this.start=e,this.end=n,this.original=s,this.intro="",this.outro="",this.content=s,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new Tu(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let n=this;for(;n;)e(n),n=n.next}eachPrevious(e){let n=this;for(;n;)e(n),n=n.previous}edit(e,n,s){return this.content=e,s||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){const n=e-this.start,s=this.original.slice(0,n),r=this.original.slice(n);this.original=s;const i=new Tu(e,this.end,r);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=s,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const n=this.content.replace(e,"");return n.length?(n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const n=this.content.replace(e,"");if(n.length){if(n!==this.content){const s=this.split(this.end-n.length);this.edited&&s.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0}};function mm(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const gm=mm();class ei{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Fu(e.mappings),e.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=e.x_google_ignoreList),e.debugId!==void 0&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+gm(this.toString())}}function ju(t,e){const n=t.split(/[/\\]/),s=e.split(/[/\\]/);for(n.pop();n[0]===s[0];)n.shift(),s.shift();if(n.length){let r=n.length;for(;r--;)n[r]=".."}return n.concat(s).join("/")}const ym=Object.prototype.toString;function zu(t){return ym.call(t)==="[object Object]"}function Yo(t){const e=t.split(`
|
|
10
10
|
`),n=[];for(let s=0,r=0;s<e.length;s++)n.push(r),r+=e[s].length+1;return function(s){let r=0,i=n.length;for(;r<i;){const l=r+i>>1;s<n[l]?i=l:r=l+1}const a=r-1;return{line:a,column:s-n[a]}}}const bm=/\w/;let Vu=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,n,s,r){if(n.length){const i=n.length-1;let a=n.indexOf(`
|
|
11
11
|
`,0),l=-1;for(;a>=0&&i>a;){const u=[this.generatedCodeColumn,e,s.line,s.column];r>=0&&u.push(r),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=a,a=n.indexOf(`
|
|
12
12
|
`,a+1)}const c=[this.generatedCodeColumn,e,s.line,s.column];r>=0&&c.push(r),this.rawSegments.push(c),this.advance(n.slice(l+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null}addUneditedChunk(e,n,s,r,i){let a=n.start,l=!0,c=!1;for(;a<n.end;){if(s[a]===`
|
|
@@ -58,13 +58,13 @@ ${q}`),C&&(C+=`
|
|
|
58
58
|
`,s:";"},U=A?"const":"var",O=(R,{isAsync:M,name:q})=>`${M?"async ":""}function${q?` ${q}`:""}${D}(${R.join(`,${D}`)})${D}`,_=b?(R,{isAsync:M,name:q})=>{const K=R.length===1;return`${q?`${U} ${q}${D}=${D}`:""}${M?`async${K?" ":D}`:""}${K?R[0]:`(${R.join(`,${D}`)})`}${D}=>${D}`}:O,N=(R,{functionReturn:M,lineBreakIndent:q,name:K})=>[`${_(R,{isAsync:!1,name:K})}${b?q?`${j}${q.base}${q.t}`:"":`{${q?`${j}${q.base}${q.t}`:D}${M?"return ":""}`}`,b?`${K?";":""}${q?`${j}${q.base}`:""}`:`${V}${q?`${j}${q.base}`:D}}`],C=$?R=>mi.test(R):R=>!pi.has(R)&&mi.test(R);return{_:D,cnst:U,getDirectReturnFunction:N,getDirectReturnIifeLeft:(R,M,{needsArrowReturnParens:q,needsWrappedFunction:K})=>{const[X,ae]=N(R,{functionReturn:!0,lineBreakIndent:null,name:null});return`${Dp(`${X}${Dp(M,b&&q)}${ae}`,b||K)}(`},getFunctionIntro:_,getNonArrowFunctionIntro:O,getObject(R,{lineBreakIndent:M}){const q=M?`${j}${M.base}${M.t}`:D;return`{${R.map(([K,X])=>{if(K===null)return`${q}${X}`;const ae=gi(K);return K===X&&v&&K===ae?q+K:`${q}${ae}:${D}${X}`}).join(",")}${R.length===0?"":M?`${j}${M.base}`:D}}`},getPropertyAccess:R=>C(R)?`.${R}`:`[${JSON.stringify(R)}]`,n:j,s:V}}(this.outputOptions),u=function(E){const b=[];for(const A of E.values())A instanceof st&&(A.isIncluded()||A.info.isEntry||A.includedDynamicImporters.length>0)&&b.push(A);return b}(this.graph.modulesById),d=function(E){if(E.length===0)return"/";if(E.length===1)return ln(E[0]);const b=E.slice(1).reduce((A,v)=>{const $=v.split(/\/+|\\+/);let D;for(D=0;A[D]===$[D]&&D<Math.min(A.length,$.length);D++);return A.slice(0,D)},E[0].split(/\/+|\\+/));return b.length>1?b.join("/"):"/"}(function(E,b){const A=[];for(const v of E)(v.info.isEntry||b)&&Ht(v.id)&&A.push(v.id);return A}(u,a)),m=function(E,b,A){const v=new Map;for(const $ of E.values())$ instanceof Ze&&v.set($,new Qn($,b,A));return v}(this.graph.modulesById,this.outputOptions,d),f=r?[{alias:null,modules:u}]:a?u.map(E=>({alias:null,modules:[E]})):by(this.graph.entryModules,l,s,this.inputOptions.onLog),g=new Array(f.length),w=new Map;let k=0;for(const{alias:E,modules:b}of f){wy(b);const A=new _n(b,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,w,m,this.facadeChunkByModule,this.includedNamespaces,E,n,e,d,c);g[k++]=A}for(const E of g)E.link();const I=[];for(const E of g)I.push(...E.generateFacades());return[...g,...I]}}function Vp(t,e,n){const s=n.get(e);if(typeof s=="string"&&s!==t)return oe((r=e.id,i=t,a=s,{code:"INVALID_CHUNK",message:`Cannot assign "${Ae(r)}" to the "${i}" chunk as it is already in the "${a}" chunk.`}));var r,i,a;n.set(e,t)}class Py extends Xh{constructor(){super(),this.parent=null,this.variables.set("undefined",new fd)}findVariable(e){let n=this.variables.get(e);return n||(n=new va(e),this.variables.set(e,n)),n}}async function Up(t,e,n,s,r,i,a,l,c,u){const d=await function(m,f,g,w,k,I,E,b){let A=null,v=null;if(k){A=new Set;for(const $ of k)m===$.source&&f===$.importer&&A.add($.plugin);v=($,D)=>({...$,resolve:(j,V,{attributes:U,custom:O,isEntry:_,skipSelf:N}=pt)=>(N??=!0,N&&k.findIndex(C=>C.plugin===D&&C.source===j&&C.importer===V)!==-1?Promise.resolve(null):w(j,V,O,_,U||ft,N?[...k,{importer:V,plugin:D,source:j}]:k))})}return g.hookFirstAndGetPlugin("resolveId",[m,f,{attributes:b,custom:I,isEntry:E}],v,A)}(t,e,s,r,i,a,l,c);if(d!=null){const[m,f]=d;return typeof m!="object"||m.resolvedBy?typeof m=="string"?{id:m,resolvedBy:f.name}:m:{...m,resolvedBy:f.name}}return e===void 0||Ht(t)||t[0]==="."?async function(m,f,g){return await ko(m,f,g)??await ko(m+".mjs",f,g)??await ko(m+".js",f,g)}(e?At(ln(e),t):At(t),n,u):null}async function ko(t,e,n){try{const s=await n.lstat(t);if(!e&&s.isSymbolicLink())return await ko(await n.realpath(t),e,n);if(e&&s.isSymbolicLink()||s.isFile()){const r=Wt(t);if((await n.readdir(ln(t))).includes(r))return t}}catch{}}function qp(t){return t.charCodeAt(0)===65279?qp(t.slice(1)):t}const Nl="at position ",Cl="at output position ",$y={delete:()=>!1,get(){},has:()=>!1,set(){}};function Eo(t){return t.startsWith(Nl)||t.startsWith(Cl)?oe({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):oe({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${t} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}const Hp=(t,e,n=Cy)=>{const{onwarn:s,onLog:r}=t,i=Ny(n,s);if(r){const a=Bn[e];return(l,c)=>r(l,Wp(c),(u,d)=>{if(u==="error")return oe(Zt(d));Bn[u]>=a&&i(u,Zt(d))})}return i},Ny=(t,e)=>e?(n,s)=>{n===Ee?e(Wp(s),r=>t(Ee,Zt(r))):t(n,s)}:t,Wp=t=>(Object.defineProperty(t,"toString",{value:()=>t.message,writable:!0}),t),Zt=t=>typeof t=="string"?{message:t}:typeof t=="function"?Zt(t()):t,Cy=(t,{message:e})=>{switch(t){case Ee:return console.warn(e);case Qs:return console.debug(e);default:return console.info(e)}};function Gp(t,e,n,s,r=/$./){const i=new Set(e),a=Object.keys(t).filter(l=>!(i.has(l)||r.test(l)));a.length>0&&s(Ee,function(l,c,u){return{code:"UNKNOWN_OPTION",message:`Unknown ${l}: ${c.join(", ")}. Allowed options: ${u.join(", ")}`}}(n,a,[...i].sort()))}const Ty={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:Qe,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,manualPureFunctions:Qe,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:Qe,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},Ry={preserve:{factory:null,fragment:null,importSource:null,mode:"preserve"},"preserve-react":{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"preserve"},react:{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"classic"},"react-jsx":{factory:"React.createElement",importSource:"react",jsxImportSource:"react/jsx-runtime",mode:"automatic"}},Dy={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}},Tl=(t,e,n,s,r)=>{const i=t?.preset;if(i){const a=e[i];if(a)return{...a,...t};oe(nt(`${n}.preset`,s,`valid values are ${cn(Object.keys(e))}`,i))}return((a,l,c,u)=>d=>{if(typeof d=="string"){const m=a[d];if(m)return m;oe(nt(l,c,`valid values are ${u}${cn(Object.keys(a))}. You can also supply an object for more fine-grained control`,d))}return(m=>m&&typeof m=="object"?m:{})(d)})(e,n,s,r)(t)},Ao=async t=>(await async function(e){do e=(await Promise.all(e)).flat(1/0);while(e.some(n=>n?.then));return e}([t])).filter(Boolean);async function Oy(t,e,n,s){const r=e.id,i=[];let a=t.map===null?null:Os(t.map);const l=t.code;let c=t.ast;const u=[],d=[];let m=!1;const f=()=>m=!0;let g="",w=t.code;const k=E=>(b,A)=>{b=Zt(b),A&&ci(b,A,w,r),b.id=r,b.hook="transform",E(b)};let I;try{I=await n.hookReduceArg0("transform",[w,r],function(E,b,A){let v,$;if(typeof b=="string")v=b;else{if(!b||typeof b!="object")return E;if(e.updateOptions(b),b.code==null)return(b.map||b.ast)&&s(Ee,function(D){return{code:"NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",message:`The plugin "${D}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}(A.name)),E;({code:v,map:$,ast:c}=b)}return $!==null&&i.push(Os(typeof $=="string"?JSON.parse($):$)||{missing:!0,plugin:A.name}),w=v,v},(E,b)=>{return g=b.name,{...E,addWatchFile($){u.push($),E.addWatchFile($)},cache:m?E.cache:(A=E.cache,v=f,{delete:$=>(v(),A.delete($)),get:$=>(v(),A.get($)),has:$=>(v(),A.has($)),set:($,D)=>(v(),A.set($,D))}),debug:k(E.debug),emitFile:$=>(d.push($),n.emitFile($)),error:($,D)=>(typeof $=="string"&&($={message:$}),D&&ci($,D,w,r),$.id=r,$.hook="transform",E.error($)),getCombinedSourcemap(){const $=function(D,j,V,U,O){return U.length===0?V:Os({version:3,...Mp(D,j,V,U,Lp(O)).traceMappings()})}(r,l,a,i,s);return $?(a!==$&&(a=$,i.length=0),new ei({...$,file:null,sourcesContent:$.sourcesContent})):new Gs(l).generateMap({hires:!0,includeContent:!0,source:r})},info:k(E.info),setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn:k(E.warn)};var A,v})}catch(E){return oe(er(E,g,{hook:"transform",id:r}))}return!m&&d.length>0&&(e.transformFiles=d),{ast:c,code:I,customTransformCache:m,originalCode:l,originalSourcemap:a,sourcemapChain:i,transformDependencies:u}}const Rl="resolveDependencies";class Ly{constructor(e,n,s,r){this.graph=e,this.modulesById=n,this.options=s,this.pluginDriver=r,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(i,a,l,c,u,d=null)=>this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(i,a,!1)&&await Up(i,a,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,d,l,typeof c=="boolean"?c:!a,u,this.options.fs),a,i),u),this.hasModuleSideEffects=s.treeshake?s.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(e,n){const s=this.extendLoadModulesPromise(Promise.all(e.map(r=>this.loadEntryModule(r,!1,void 0,null,n))));return await this.awaitLoadModulesPromise(),s}async addEntryModules(e,n){const s=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=e.length;const r=this.nextChunkNamePriority;this.nextChunkNamePriority+=e.length;const i=await this.extendLoadModulesPromise(Promise.all(e.map(({id:a,importer:l})=>this.loadEntryModule(a,!0,l,null))).then(a=>{for(const[l,c]of a.entries()){c.isUserDefinedEntryPoint=c.isUserDefinedEntryPoint||n,Kp(c,e[l],n,r+l);const u=this.indexedEntryModules.find(d=>d.module===c);u?u.index=Math.min(u.index,s+l):this.indexedEntryModules.push({index:s+l,module:c})}return this.indexedEntryModules.sort(({index:l},{index:c})=>l>c?1:-1),a}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:a})=>a),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:i}}async emitChunk({fileName:e,id:n,importer:s,name:r,implicitlyLoadedAfterOneOf:i,preserveSignature:a}){const l={fileName:e||null,id:n,importer:s,name:r||null},c=i?await this.addEntryWithImplicitDependants(l,i):(await this.addEntryModules([l],!1)).newEntryModules[0];return a!=null&&(c.preserveSignature=a),c}async preloadModule(e){return(await this.fetchModule(this.getResolvedIdWithDefaults(e,ft),void 0,!1,!e.resolveDependencies||Rl)).info}addEntryWithImplicitDependants(e,n){const s=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(e.id,!1,e.importer,null).then(async r=>{if(Kp(r,e,!1,s),!r.info.isEntry){const i=await Promise.all(n.map(a=>this.loadEntryModule(a,!1,e.importer,r.id)));if(!r.info.isEntry){this.implicitEntryModules.add(r);for(const a of i)r.implicitlyLoadedAfter.add(a);for(const a of r.implicitlyLoadedAfter)a.implicitlyLoadedBefore.add(r)}}return r}))}async addModuleSource(e,n,s){let r;try{r=await this.graph.fileOperationQueue.run(async()=>{const l=await this.pluginDriver.hookFirst("load",[e]);return l!==null?l:(this.graph.watchFiles[e]=!0,await this.options.fs.readFile(e,{encoding:"utf8"}))})}catch(l){let c=`Could not load ${e}`;throw n&&(c+=` (imported by ${Ae(n)})`),c+=`: ${l.message}`,l.message=c,l}const i=typeof r=="string"?{code:r}:r!=null&&typeof r=="object"&&typeof r.code=="string"?r:oe(function(l){return{code:"BAD_LOADER",message:`Error loading "${Ae(l)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`}}(e));i.code=qp(i.code);const a=this.graph.cachedModules.get(e);if(!a||a.customTransformCache||a.originalCode!==i.code||await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:a.ast,code:a.code,id:a.id,meta:a.meta,moduleSideEffects:a.moduleSideEffects,resolvedSources:a.resolvedIds,syntheticNamedExports:a.syntheticNamedExports}]))s.updateOptions(i),await s.setSource(await Oy(i,s,this.pluginDriver,this.options.onLog));else{if(a.transformFiles)for(const l of a.transformFiles)this.pluginDriver.emitFile(l);await s.setSource(a)}}async awaitLoadModulesPromise(){let e;do e=this.latestLoadModulesPromise,await e;while(e!==this.latestLoadModulesPromise)}extendLoadModulesPromise(e){return this.latestLoadModulesPromise=Promise.all([e,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),e}async fetchDynamicDependencies(e,n){const s=await Promise.all(n.map(r=>r.then(async([i,a])=>a===null?null:typeof a=="string"?(i.resolution=a,null):i.resolution=await this.fetchResolvedDependency(Ae(a.id),e.id,a))));for(const r of s)r&&(e.dynamicDependencies.add(r),r.dynamicImporters.push(e.id))}async fetchModule({attributes:e,id:n,meta:s,moduleSideEffects:r,syntheticNamedExports:i},a,l,c){const u=this.modulesById.get(n);if(u instanceof st)return a&&mo(e,u.info.attributes)&&this.options.onLog(Ee,ui(u.info.attributes,e,n,a)),await this.handleExistingModule(u,l,c),u;if(u instanceof Ze)return oe({code:"EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES",message:`${u.id} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`});const d=new st(this.graph,n,this.options,l,r,i,s,e);this.modulesById.set(n,d);const m=this.addModuleSource(n,a,d).then(()=>[this.getResolveStaticDependencyPromises(d),this.getResolveDynamicImportPromises(d),f]),f=Jp(m).then(()=>this.pluginDriver.hookParallel("moduleParsed",[d.info]));f.catch(()=>{}),this.moduleLoadPromises.set(d,m);const g=await m;return c?c===Rl&&await f:await this.fetchModuleDependencies(d,...g),d}async fetchModuleDependencies(e,n,s,r){this.modulesWithLoadedDependencies.has(e)||(this.modulesWithLoadedDependencies.add(e),await Promise.all([this.fetchStaticDependencies(e,n),this.fetchDynamicDependencies(e,s)]),e.linkImports(),await r)}fetchResolvedDependency(e,n,s){if(s.external){const{attributes:r,external:i,id:a,moduleSideEffects:l,meta:c}=s;let u=this.modulesById.get(a);if(u){if(!(u instanceof Ze))return oe(function(d,m){return{code:"INVALID_EXTERNAL_ID",message:`"${d}" is imported as an external by "${Ae(m)}", but is already an existing non-external module id.`}}(e,n));mo(u.info.attributes,r)&&this.options.onLog(Ee,ui(u.info.attributes,r,e,n))}else u=new Ze(this.options,a,l,c,i!=="absolute"&&Ht(a),r),this.modulesById.set(a,u);return Promise.resolve(u)}return this.fetchModule(s,n,!1,!1)}async fetchStaticDependencies(e,n){for(const s of await Promise.all(n.map(r=>r.then(([i,a])=>this.fetchResolvedDependency(i,e.id,a)))))e.dependencies.add(s),s.importers.push(e.id);if(!this.options.treeshake||e.info.moduleSideEffects==="no-treeshake")for(const s of e.dependencies)s instanceof st&&(s.importedFromNotTreeshaken=!0)}getNormalizedResolvedIdWithoutDefaults(e,n,s){const{makeAbsoluteExternalsRelative:r}=this.options;if(e){if(typeof e=="object"){const l=e.external||this.options.external(e.id,n,!0);return{...e,external:l&&(l==="relative"||!Ht(e.id)||l===!0&&Dl(e.id,s,r)||"absolute")}}const a=this.options.external(e,n,!0);return{external:a&&(Dl(e,s,r)||"absolute"),id:a&&r?Xp(e,n):e}}const i=r?Xp(s,n):s;return e===!1||this.options.external(i,n,!0)?{external:Dl(i,s,r)||"absolute",id:i}:null}getResolveDynamicImportPromises(e){return e.dynamicImports.map(async n=>{const s=await this.resolveDynamicImport(e,n.argument,e.id,mp(n.node));return s&&typeof s=="object"&&(n.id=s.id),[n,s]})}getResolveStaticDependencyPromises(e){return Array.from(e.sourcesWithAttributes,async([n,s])=>[n,e.resolvedIds[n]=e.resolvedIds[n]||this.handleInvalidResolvedId(await this.resolveId(n,e.id,ft,!1,s),n,e.id,s)])}getResolvedIdWithDefaults(e,n){if(!e)return null;const s=e.external||!1;return{attributes:e.attributes||n,external:s,id:e.id,meta:e.meta||{},moduleSideEffects:e.moduleSideEffects??this.hasModuleSideEffects(e.id,!!s),resolvedBy:e.resolvedBy??"rollup",syntheticNamedExports:e.syntheticNamedExports??!1}}async handleExistingModule(e,n,s){const r=this.moduleLoadPromises.get(e);if(s)return s===Rl?Jp(r):r;if(n){e.info.isEntry=!0,this.implicitEntryModules.delete(e);for(const i of e.implicitlyLoadedAfter)i.implicitlyLoadedBefore.delete(e);e.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(e,...await r)}handleInvalidResolvedId(e,n,s,r){return e===null?Qo(n)?oe(function(i,a){return{code:bh,exporter:i,id:a,message:`Could not resolve "${i}" from "${Ae(a)}"`}}(n,s)):(this.options.onLog(Ee,function(i,a){return{code:bh,exporter:i,id:a,message:`"${i}" is imported by "${Ae(a)}", but could not be resolved – treating it as an external dependency.`,url:ot("troubleshooting/#warning-treating-module-as-external-dependency")}}(n,s)),{attributes:r,external:!0,id:n,meta:{},moduleSideEffects:this.hasModuleSideEffects(n,!0),resolvedBy:"rollup",syntheticNamedExports:!1}):(e.external&&e.syntheticNamedExports&&this.options.onLog(Ee,function(i,a){return{code:"EXTERNAL_SYNTHETIC_EXPORTS",exporter:i,message:`External "${i}" cannot have "syntheticNamedExports" enabled (imported by "${Ae(a)}").`}}(n,s)),e)}async loadEntryModule(e,n,s,r,i=!1){const a=await Up(e,s,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,ft,!0,ft,this.options.fs);if(a==null)return oe(r===null?function(c){return{code:yh,message:`Could not resolve entry module "${Ae(c)}".`}}(e):function(c,u){return{code:ha,message:`Module "${Ae(c)}" that should be implicitly loaded before "${Ae(u)}" could not be resolved.`}}(e,r));const l=typeof a=="object"&&a.external;return a===!1||l?oe(r===null?l&&i?{code:"EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS",message:`"${e}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`}:function(c){return{code:yh,message:`Entry module "${Ae(c)}" cannot be external.`}}(e):function(c,u){return{code:ha,message:`Module "${Ae(c)}" that should be implicitly loaded before "${Ae(u)}" cannot be external.`}}(e,r)):this.fetchModule(this.getResolvedIdWithDefaults(typeof a=="object"?a:{id:a},ft),void 0,n,!1)}async resolveDynamicImport(e,n,s,r){const i=await this.pluginDriver.hookFirst("resolveDynamicImport",[n,s,{attributes:r}]);if(typeof n!="string")return typeof i=="string"?i:i?this.getResolvedIdWithDefaults(i,r):null;if(i==null){const a=e.resolvedIds[n];return a?(mo(a.attributes,r)&&this.options.onLog(Ee,ui(a.attributes,r,n,s)),a):e.resolvedIds[n]=this.handleInvalidResolvedId(await this.resolveId(n,e.id,ft,!1,r),n,e.id,r)}return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(i,s,n),r),n,s,r)}}function Xp(t,e){return Qo(t)?e?At(e,"..",t):At(t):t}function Kp(t,{fileName:e,name:n},s,r){if(e!==null)t.chunkFileNames.add(e);else if(n!==null){let i=0;for(;t.chunkNames[i]?.priority<r;)i++;t.chunkNames.splice(i,0,{isUserDefined:s,name:n,priority:r})}}function Dl(t,e,n){return n===!0||n==="ifRelativeSource"&&Qo(e)||!Ht(t)}async function Jp(t){const[e,n]=await t;return Promise.all([...e,...n])}function Yp(t,e,n,s,r,i,a,l,c){const u=a.sanitizeFileName(t||"asset");return vl(Il(typeof a.assetFileNames=="function"?a.assetFileNames({get name(){return jn('Accessing the "name" property of emitted assets when generating the file name is deprecated. Use the "names" property instead.',bs,!1,c),t},names:e,get originalFileName(){return jn('Accessing the "originalFileName" property of emitted assets when generating the file name is deprecated. Use the "originalFileNames" property instead.',bs,!1,c),s},originalFileNames:r,source:n,type:"asset"}):a.assetFileNames,"output.assetFileNames",{ext:()=>xn(u).slice(1),extname:()=>xn(u),hash:d=>i.slice(0,Math.min(Math.max(0,d||8),21)),name:()=>u.slice(0,Math.max(0,u.length-xn(u).length))}),l)}function Qp(t,{bundle:e},n){e[yo].has(t.toLowerCase())?n(Ee,function(s){return{code:"FILE_NAME_CONFLICT",message:`The emitted file "${s}" overwrites a previously emitted file of the same name.`}}(t)):e[t]=Sl}const My=new Set(["chunk","asset","prebuilt-chunk"]);function Zp(t,e,n){if(!(typeof t=="string"||t instanceof Uint8Array)){const s=e.fileName||e.name||n;return oe(wt(`Could not set source for ${typeof s=="string"?`asset "${s}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return t}class Fy{constructor(e,n,s){this.graph=e,this.options=n,this.facadeChunkByModule=null,this.nextIdBase=1,this.output=null,this.outputFileEmitters=[],this.emitFile=r=>function(i){return!!(i&&My.has(i.type))}(r)?r.type==="prebuilt-chunk"?this.emitPrebuiltChunk(r):function(i){const a=i.fileName||i.name;return!a||typeof a=="string"&&!ai(a)}(r)?r.type==="chunk"?this.emitChunk(r):this.emitAsset(r):oe(wt(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${r.fileName||r.name}".`)):oe(wt(`Emitted files must be of type "asset", "chunk" or "prebuilt-chunk", received "${r&&r.type}".`)),this.finaliseAssets=()=>{for(const[r,i]of this.filesByReferenceId)if(i.type==="asset"&&typeof i.fileName!="string")return oe(Om(i.name||r))},this.getFileName=r=>{const i=this.filesByReferenceId.get(r);return i?i.type==="chunk"?(a=i,l=this.facadeChunkByModule,a.fileName?a.fileName:l?l.get(a.module).getFileName():oe({code:"CHUNK_NOT_GENERATED",message:`Plugin error - Unable to get file name for emitted chunk "${a.fileName||a.name}". You can only get file names once chunks have been generated after the "renderStart" hook.`})):i.type==="prebuilt-chunk"?i.fileName:function(c,u){return typeof c.fileName!="string"?oe({code:"ASSET_NOT_FINALISED",message:`Plugin error - Unable to get file name for asset "${c.name||u}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`}):c.fileName}(i,r):oe({code:"FILE_NOT_FOUND",message:`Plugin error - Unable to get file name for unknown file "${r}".`});var a,l},this.setAssetSource=(r,i)=>{const a=this.filesByReferenceId.get(r);if(!a)return oe({code:"ASSET_NOT_FOUND",message:`Plugin error - Unable to set the source for unknown asset "${r}".`});if(a.type!=="asset")return oe(wt(`Asset sources can only be set for emitted assets but "${r}" is an emitted chunk.`));if(a.source!==void 0)return oe({code:"ASSET_SOURCE_ALREADY_SET",message:`Unable to set the source for asset "${a.name||r}", source already set.`});const l=Zp(i,a,r);if(this.output)this.finalizeAdditionalAsset(a,l,this.output);else{a.source=l;for(const c of this.outputFileEmitters)c.finalizeAdditionalAsset(a,l,c.output)}},this.setChunkInformation=r=>{this.facadeChunkByModule=r},this.setOutputBundle=(r,i)=>{const a=Pl[i.hashCharacters],l=this.output={bundle:r,fileNamesBySourceHash:new Map,getHash:a,outputOptions:i};for(const u of this.filesByReferenceId.values())u.fileName&&Qp(u.fileName,l,this.options.onLog);const c=new Map;for(const u of this.filesByReferenceId.values())u.type==="asset"&&u.source!==void 0?u.fileName?this.finalizeAdditionalAsset(u,u.source,l):bt(c,a(u.source),()=>[]).push(u):u.type==="prebuilt-chunk"&&(this.output.bundle[u.fileName]=this.createPrebuiltChunk(u));for(const[u,d]of c)this.finalizeAssetsWithSameSource(d,u,l)},this.filesByReferenceId=s?new Map(s.filesByReferenceId):new Map,s?.addOutputFileEmitter(this)}addOutputFileEmitter(e){this.outputFileEmitters.push(e)}assignReferenceId(e,n){let s=n;do s=Bp(s).slice(0,8).replaceAll("-","$");while(this.filesByReferenceId.has(s)||this.outputFileEmitters.some(({filesByReferenceId:r})=>r.has(s)));e.referenceId=s,this.filesByReferenceId.set(s,e);for(const{filesByReferenceId:r}of this.outputFileEmitters)r.set(s,e);return s}createPrebuiltChunk(e){return{code:e.code,dynamicImports:[],exports:e.exports||[],facadeModuleId:null,fileName:e.fileName,implicitlyLoadedBefore:[],importedBindings:{},imports:[],isDynamicEntry:!1,isEntry:!1,isImplicitEntry:!1,map:e.map||null,moduleIds:[],modules:{},name:e.fileName,preliminaryFileName:e.fileName,referencedFiles:[],sourcemapFileName:e.sourcemapFileName||null,type:"chunk"}}emitAsset(e){const n=e.source===void 0?void 0:Zp(e.source,e,null),s=e.originalFileName||null;typeof s=="string"&&(this.graph.watchFiles[s]=!0);const r={fileName:e.fileName,name:e.name,needsCodeReference:!!e.needsCodeReference,originalFileName:s,referenceId:"",source:n,type:"asset"},i=this.assignReferenceId(r,e.fileName||e.name||String(this.nextIdBase++));if(this.output)this.emitAssetWithReferenceId(r,this.output);else for(const a of this.outputFileEmitters)a.emitAssetWithReferenceId(r,a.output);return i}emitAssetWithReferenceId(e,n){const{fileName:s,source:r}=e;s&&Qp(s,n,this.options.onLog),r!==void 0&&this.finalizeAdditionalAsset(e,r,n)}emitChunk(e){if(this.graph.phase>ns.LOAD_AND_PARSE)return oe({code:"INVALID_ROLLUP_PHASE",message:"Cannot emit chunks after module loading has finished."});if(typeof e.id!="string")return oe(wt(`Emitted chunks need to have a valid string id, received "${e.id}"`));const n={fileName:e.fileName,module:null,name:e.name||e.id,referenceId:"",type:"chunk"};return this.graph.moduleLoader.emitChunk(e).then(s=>n.module=s).catch(()=>{}),this.assignReferenceId(n,e.id)}emitPrebuiltChunk(e){if(typeof e.code!="string")return oe(wt(`Emitted prebuilt chunks need to have a valid string code, received "${e.code}".`));if(typeof e.fileName!="string"||ai(e.fileName))return oe(wt(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${e.fileName}".`));const n={code:e.code,exports:e.exports,fileName:e.fileName,map:e.map,referenceId:"",type:"prebuilt-chunk"},s=this.assignReferenceId(n,n.fileName);return this.output&&(this.output.bundle[n.fileName]=this.createPrebuiltChunk(n)),s}finalizeAdditionalAsset(e,n,{bundle:s,fileNamesBySourceHash:r,getHash:i,outputOptions:a}){let{fileName:l,name:c,needsCodeReference:u,originalFileName:d,referenceId:m}=e;if(!l){const w=i(n);l=r.get(w),l||(l=Yp(c,c?[c]:[],n,d,d?[d]:[],w,a,s,this.options),r.set(w,l))}const f={...e,fileName:l,source:n};this.filesByReferenceId.set(m,f);const g=s[l];if(g?.type==="asset")g.needsCodeReference&&=u,c&&g.names.push(c),d&&g.originalFileNames.push(d);else{const{options:w}=this;s[l]={fileName:l,get name(){return jn('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',bs,!1,w),c},names:c?[c]:[],needsCodeReference:u,get originalFileName(){return jn('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',bs,!1,w),d},originalFileNames:d?[d]:[],source:n,type:"asset"}}}finalizeAssetsWithSameSource(e,n,{bundle:s,fileNamesBySourceHash:r,outputOptions:i}){const{names:a,originalFileNames:l}=function(f){const g=[],w=[];for(const{name:k,originalFileName:I}of f)typeof k=="string"&&g.push(k),I&&w.push(I);return w.sort(),g.sort((k,I)=>k.length-I.length||(k>I?1:k===I?0:-1)),{names:g,originalFileNames:w}}(e);let c,u="",d=!0;for(const f of e){d&&=f.needsCodeReference;const g=Yp(f.name,a,f.source,f.originalFileName,l,n,i,s,this.options);(!u||g.length<u.length||g.length===u.length&&g<u)&&(u=g,c=f)}r.set(n,u);for(const f of e){const g={...f,fileName:u};this.filesByReferenceId.set(f.referenceId,g)}const{options:m}=this;s[u]={fileName:u,get name(){return jn('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',bs,!1,m),c.name},names:a,needsCodeReference:d,get originalFileName(){return jn('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',bs,!1,m),c.originalFileName},originalFileNames:l,source:c.source,type:"asset"}}}function Ls(t,e,n,s,r){return Bn[t]<Bn[r]?Mt:(i,a)=>{a!=null&&n(Ee,{code:"INVALID_LOG_POSITION",message:`Plugin "${s}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}),(i=Zt(i)).code&&!i.pluginCode&&(i.pluginCode=i.code),i.code=e,i.plugin=s,n(t,i)}}function By(t,e,n,s,r,i){const{logLevel:a,onLog:l}=s;let c,u=!0;if(typeof t.cacheKey!="string"&&(t.name.startsWith(Nl)||t.name.startsWith(Cl)||i.has(t.name)?u=!1:i.add(t.name)),e)if(u){const f=t.cacheKey||t.name;m=e[f]||(e[f]=Object.create(null)),c={delete:g=>delete m[g],get(g){const w=m[g];if(w)return w[0]=0,w[1]},has(g){const w=m[g];return!!w&&(w[0]=0,!0)},set(g,w){m[g]=[0,w]}}}else d=t.name,c={delete:()=>Eo(d),get:()=>Eo(d),has:()=>Eo(d),set:()=>Eo(d)};else c=$y;var d,m;return{addWatchFile(f){n.watchFiles[f]=!0},cache:c,debug:Ls(Qs,"PLUGIN_LOG",l,t.name,a),emitFile:r.emitFile.bind(r),error:f=>oe(er(Zt(f),t.name)),fs:s.fs,getFileName:r.getFileName,getModuleIds:()=>n.modulesById.keys(),getModuleInfo:n.getModuleInfo,getWatchFiles:()=>Object.keys(n.watchFiles),info:Ls(Fn,"PLUGIN_LOG",l,t.name,a),load:f=>n.moduleLoader.preloadModule(f),meta:{rollupVersion:Jo,watchMode:n.watchMode},parse:bl,resolve:(f,g,{attributes:w,custom:k,isEntry:I,skipSelf:E}=pt)=>(E??=!0,n.moduleLoader.resolveId(f,g,k,I,w||ft,E?[{importer:g,plugin:t,source:f}]:null)),setAssetSource:r.setAssetSource,warn:Ls(Ee,"PLUGIN_WARNING",l,t.name,a)}}function Ol(t){return Array.isArray(t)?t.filter(Boolean):t?[t]:[]}function e1(t){if(t instanceof RegExp)return r=>{const i=an(r),a=t.test(i);return t.lastIndex=0,a};const e=process.cwd(),n=function(r,i){return r.startsWith("**")||Ht(r)?an(r):an(At(i,r))}(t,e),s=jg(n,{dot:!0});return r=>{const i=an(r);return s(i)}}function t1(t){return t instanceof RegExp?e=>{const n=t.test(e);return t.lastIndex=0,n}:e=>e.includes(t)}function n1(t,e){if(t||e)return n=>!t?.some(s=>s(n))&&(!!e?.some(s=>s(n))||!(e&&e.length>0))}function s1(t){return typeof t=="string"||t instanceof RegExp?{include:[t]}:Array.isArray(t)?{include:t}:{exclude:t.exclude?Ol(t.exclude):void 0,include:t.include?Ol(t.include):void 0}}function r1(t){if(!t)return;const{exclude:e,include:n}=s1(t),s=e?.map(e1),r=n?.map(e1);return n1(s,r)}function jy(t,e){if(!t&&!e)return;const n=r1(t),s=function(r){if(!r)return;const{exclude:i,include:a}=s1(r),l=i?.map(t1),c=a?.map(t1);return n1(l,c)}(e);return(r,i)=>{let a=!0;return n&&(a&&=n(r)),!!a&&(s&&(a&&=s(i)),a)}}const zy=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,onLog:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1});class Ll{constructor(e,n,s,r,i){this.graph=e,this.options=n,this.pluginCache=r,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,this.compiledPluginFilters={idOnlyFilter:new WeakMap,transformFilter:new WeakMap},this.fileEmitter=new Fy(e,n,i&&i.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.finaliseAssets.bind(this.fileEmitter),this.setChunkInformation=this.fileEmitter.setChunkInformation.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=[...i?i.plugins:[],...s];const a=new Set;if(this.pluginContexts=new Map(this.plugins.map(l=>[l,By(l,r,e,n,this.fileEmitter,a)])),i)for(const l of s)for(const c of zy)c in l&&n.onLog(Ee,zm(l.name,c))}createOutputPluginDriver(e){return new Ll(this.graph,this.options,e,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(e,n,s,r){return this.hookFirstAndGetPlugin(e,n,s,r).then(i=>i&&i[0])}async hookFirstAndGetPlugin(e,n,s,r){for(const i of this.getSortedPlugins(e)){if(r?.has(i))continue;const a=await this.runHook(e,n,i,s);if(a!=null)return[a,i]}return null}hookFirstSync(e,n,s){for(const r of this.getSortedPlugins(e)){const i=this.runHookSync(e,n,r,s);if(i!=null)return i}return null}async hookParallel(e,n,s){const r=[];for(const i of this.getSortedPlugins(e))i[e].sequential?(await Promise.all(r),r.length=0,await this.runHook(e,n,i,s)):r.push(this.runHook(e,n,i,s));await Promise.all(r)}hookReduceArg0(e,[n,...s],r,i){let a=Promise.resolve(n);for(const l of this.getSortedPlugins(e))a=a.then(c=>this.runHook(e,[c,...s],l,i).then(u=>r.call(this.pluginContexts.get(l),c,u,l)));return a}hookReduceArg0Sync(e,[n,...s],r,i){for(const a of this.getSortedPlugins(e)){const l=[n,...s],c=this.runHookSync(e,l,a,i);n=r.call(this.pluginContexts.get(a),n,c,a)}return n}async hookReduceValue(e,n,s,r){const i=[],a=[];for(const l of this.getSortedPlugins(e,Uy))l[e].sequential?(i.push(...await Promise.all(a)),a.length=0,i.push(await this.runHook(e,s,l))):a.push(this.runHook(e,s,l));return i.push(...await Promise.all(a)),i.reduce(r,await n)}hookReduceValueSync(e,n,s,r,i){let a=n;for(const l of this.getSortedPlugins(e)){const c=this.runHookSync(e,s,l,i);a=r.call(this.pluginContexts.get(l),a,c,l)}return a}hookSeq(e,n,s){let r=Promise.resolve();for(const i of this.getSortedPlugins(e))r=r.then(()=>this.runHook(e,n,i,s));return r.then(qy)}getSortedPlugins(e,n){return bt(this.sortedPlugins,e,()=>Ml(e,this.plugins,n))}runHook(e,n,s,r){const i=s[e],a=typeof i=="object"?i.handler:i;if(typeof i=="object"&&"filter"in i&&i.filter){if(e==="transform"){const u=i.filter,d=n,m=bt(this.compiledPluginFilters.transformFilter,u,()=>jy(u.id,u.code));if(m&&!m(d[1],d[0]))return Promise.resolve()}else if(e==="resolveId"||e==="load"){const u=i.filter,d=n,m=bt(this.compiledPluginFilters.idOnlyFilter,u,()=>function(f){const g=r1(f);return g?w=>!!g(w):void 0}(u.id));if(m&&!m(d[0]))return Promise.resolve()}}let l=this.pluginContexts.get(s);r&&(l=r(l,s));let c=null;return Promise.resolve().then(()=>{if(typeof a!="function")return a;const u=a.apply(l,n);return u?.then?(c=[s.name,e,n],this.unfulfilledActions.add(c),Promise.resolve(u).then(d=>(this.unfulfilledActions.delete(c),d))):u}).catch(u=>(c!==null&&this.unfulfilledActions.delete(c),oe(er(u,s.name,{hook:e}))))}runHookSync(e,n,s,r){const i=s[e],a=typeof i=="object"?i.handler:i;let l=this.pluginContexts.get(s);r&&(l=r(l,s));try{return a.apply(l,n)}catch(c){return oe(er(c,s.name,{hook:e}))}}}function Ml(t,e,n=Vy){const s=[],r=[],i=[];for(const a of e){const l=a[t];if(l){if(typeof l=="object"){if(n(l.handler,t,a),l.order==="pre"){s.push(a);continue}if(l.order==="post"){i.push(a);continue}}else n(l,t,a);r.push(a)}}return[...s,...r,...i]}function Vy(t,e,n){typeof t!="function"&&oe(function(s,r){return{code:hh,hook:s,message:`Error running plugin hook "${s}" for plugin "${r}", expected a function hook or an object with a "handler" function.`,plugin:r}}(e,n.name))}function Uy(t,e,n){if(typeof t!="string"&&typeof t!="function")return oe(function(s,r){return{code:hh,hook:s,message:`Error running plugin hook "${s}" for plugin "${r}", expected a string, a function hook or an object with a "handler" string or function.`,plugin:r}}(e,n.name))}function qy(){}class Hy{constructor(e){this.maxParallel=e,this.queue=[],this.workerCount=0}run(e){return new Promise((n,s)=>{this.queue.push({reject:s,resolve:n,task:e}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;let e;for(this.workerCount++;e=this.queue.shift();){const{reject:n,resolve:s,task:r}=e;try{s(await r())}catch(i){n(i)}}this.workerCount--}}class Wy{constructor(e,n){if(this.options=e,this.astLru=function(s){var r,i,a,l=s;function c(d,m){++r>l&&(a=i,u(1),++r),i[d]=m}function u(d){r=0,i=Object.create(null),d||(a=Object.create(null))}return u(),{clear:u,has:function(d){return i[d]!==void 0||a[d]!==void 0},get:function(d){var m=i[d];return m!==void 0?m:(m=a[d])!==void 0?(c(d,m),m):void 0},set:function(d,m){i[d]!==void 0?i[d]=m:c(d,m)}}}(5),this.cachedModules=new Map,this.deoptimizationTracker=new ys,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.newlyIncludedVariableInits=new Set,this.phase=ns.LOAD_AND_PARSE,this.scope=new Py,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=s=>{const r=this.modulesById.get(s);return r?r.info:null},e.cache!==!1){if(e.cache?.modules)for(const s of e.cache.modules)this.cachedModules.set(s.id,s);this.pluginCache=e.cache?.plugins||Object.create(null);for(const s in this.pluginCache){const r=this.pluginCache[s];for(const i of Object.values(r))i[0]++}}if(n){this.watchMode=!0;const s=(...i)=>this.pluginDriver.hookParallel("watchChange",i),r=()=>this.pluginDriver.hookParallel("closeWatcher",[]);n.onCurrentRun("change",s),n.onCurrentRun("close",r)}this.pluginDriver=new Ll(this,e,e.plugins,this.pluginCache),this.moduleLoader=new Ly(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new Hy(e.maxParallelFileOps),this.pureFunctions=(({treeshake:s})=>{const r=Object.create(null);for(const i of s?s.manualPureFunctions:[]){let a=r;for(const l of i.split("."))a=a[l]||=Object.create(null);a[pa]=!0}return r})(e)}async build(){ct("generate module graph",2),await this.generateModuleGraph(),at("generate module graph",2),ct("sort and bind modules",2),this.phase=ns.ANALYSE,this.sortModules(),at("sort and bind modules",2),ct("mark included statements",2),this.includeStatements(),at("mark included statements",2),this.phase=ns.GENERATE}getCache(){for(const e in this.pluginCache){const n=this.pluginCache[e];let s=!0;for(const[r,i]of Object.entries(n))i[0]>=this.options.experimentalCacheExpiry?delete n[r]:s=!1;s&&delete this.pluginCache[e]}return{modules:this.modules.map(e=>e.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var e;if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((e=this.options.input,Array.isArray(e)?e.map(n=>({fileName:null,id:n,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.entries(e).map(([n,s])=>({fileName:null,id:s,implicitlyLoadedAfter:[],importer:void 0,name:n}))),!0),this.entryModules.length===0)throw new Error("You must supply options.input to rollup");for(const n of this.modulesById.values())n.cacheInfoGetters(),n instanceof st?this.modules.push(n):this.externalModules.push(n)}includeStatements(){const e=[...this.entryModules,...this.implicitEntryModules];for(const n of e)As(n);if(this.options.treeshake){let n=1;this.newlyIncludedVariableInits.clear();do{ct(`treeshaking pass ${n}`,3),this.needsTreeshakingPass=!1;for(const s of this.modules)if(s.isExecuted){s.hasTreeShakingPassStarted=!0,s.info.moduleSideEffects==="no-treeshake"?s.includeAllInBundle():s.include();for(const r of this.newlyIncludedVariableInits)this.newlyIncludedVariableInits.delete(r),r.include(Lt(),!1)}if(n===1)for(const s of e)s.preserveSignature!==!1&&(s.includeAllExports(!1),this.needsTreeshakingPass=!0);at("treeshaking pass "+n++,3)}while(this.needsTreeshakingPass)}else for(const n of this.modules)n.includeAllInBundle();for(const n of this.externalModules)n.warnUnusedImports();for(const n of this.implicitEntryModules)for(const s of n.implicitlyLoadedAfter)s.info.isEntry||s.isIncluded()||oe(Um(s))}sortModules(){const{orderedModules:e,cyclePaths:n}=Sy(this.entryModules);for(const s of n)this.options.onLog(Ee,Mm(s));this.modules=e;for(const s of this.modules)s.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const e of this.modules)for(const n of e.importDescriptions.values())if(n.name!=="*"){const[s,r]=n.module.getVariableForExportName(n.name);s||e.log(Ee,hi(n.name,e.id,n.module.id,!!r?.missingButExportExists),n.start)}}}function i1(t,e){return e()}function o1(t,e,n,s){t=Ml("onLog",t);const r=Bn[s],i=(a,l,c=Wu)=>{if(lh(l),!(Bn[a]<r)){for(const u of t){if(c.has(u))continue;const{onLog:d}=u,m=f=>Bn[f]<r?Mt:g=>i(f,Zt(g),new Set(c).add(u));if(("handler"in d?d.handler:d).call({debug:m(Qs),error:f=>oe(Zt(f)),info:m(Fn),meta:{rollupVersion:Jo,watchMode:n},warn:m(Ee)},a,l)===!1)return}e(a,l)}};return i}const Nt=t=>()=>oe(function(e){return{code:"NO_FS_IN_BROWSER",message:`Cannot access the file system (via "${e}") when using the browser build of Rollup. Make sure you supply a plugin with custom resolveId and load hooks to Rollup.`,url:ot("plugin-development/#a-simple-example")}}(t)),Gy=Nt("fs.appendFile"),Xy=Nt("fs.copyFile"),Ky=Nt("fs.mkdir"),Jy=Nt("fs.mkdtemp"),Yy=Nt("fs.readdir"),Qy=Nt("fs.readFile"),Zy=Nt("fs.realpath"),eb=Nt("fs.rename"),tb=Nt("fs.rmdir"),nb=Nt("fs.stat"),sb=Nt("fs.lstat"),rb=Nt("fs.unlink"),ib=Nt("fs.writeFile");var ob=Object.freeze({__proto__:null,appendFile:Gy,copyFile:Xy,lstat:sb,mkdir:Ky,mkdtemp:Jy,readFile:Qy,readdir:Yy,realpath:Zy,rename:eb,rmdir:tb,stat:nb,unlink:rb,writeFile:ib});const ab=t=>t.cache===!0?void 0:t.cache?.cache||t.cache,lb=t=>{if(t===!0)return()=>!0;if(typeof t=="function")return(e,...n)=>!e.startsWith("\0")&&t(e,...n)||!1;if(t){const e=new Set,n=[];for(const s of Ol(t))s instanceof RegExp?n.push(s):e.add(s);return(s,...r)=>e.has(s)||n.some(i=>i.test(s))}return()=>!1},cb=t=>{const e=t.input;return e==null?[]:typeof e=="string"?[e]:e},ub=t=>{const e=t.jsx;if(!e)return!1;const n=Tl(e,Ry,"jsx",li,"false, "),{factory:s,importSource:r,mode:i}=n;switch(i){case"automatic":return{factory:s||"React.createElement",importSource:r||"react",jsxImportSource:n.jsxImportSource||"react/jsx-runtime",mode:"automatic"};case"preserve":return!r||s||n.fragment||oe(nt("jsx",li,"when preserving JSX and specifying an importSource, you also need to specify a factory or fragment")),{factory:s||null,fragment:n.fragment||null,importSource:r||null,mode:"preserve"};default:return i&&i!=="classic"&&oe(nt("jsx.mode",li,'mode must be "automatic", "classic" or "preserve"',i)),{factory:s||"React.createElement",fragment:n.fragment||"React.Fragment",importSource:r||null,mode:"classic"}}},hb=t=>{const e=t.maxParallelFileOps;return typeof e=="number"?e<=0?1/0:e:1e3},db=(t,e)=>{const n=t.moduleContext;if(typeof n=="function")return s=>n(s)??e;if(n){const s=Object.create(null);for(const[r,i]of Object.entries(n))s[At(r)]=i;return r=>s[r]??e}return()=>e},pb=t=>{if(t.treeshake===!1)return!1;const e=Tl(t.treeshake,Ty,"treeshake","configuration-options/#treeshake","false, true, ");return{annotations:e.annotations!==!1,correctVarValueBeforeDeclaration:e.correctVarValueBeforeDeclaration===!0,manualPureFunctions:e.manualPureFunctions??Qe,moduleSideEffects:fb(e.moduleSideEffects),propertyReadSideEffects:e.propertyReadSideEffects==="always"?"always":e.propertyReadSideEffects!==!1,tryCatchDeoptimization:e.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:e.unknownGlobalSideEffects!==!1}},fb=t=>{if(typeof t=="boolean")return()=>t;if(t==="no-external")return(e,n)=>!n;if(typeof t=="function")return(e,n)=>!!e.startsWith("\0")||t(e,n)!==!1;if(Array.isArray(t)){const e=new Set(t);return n=>e.has(n)}return t&&oe(nt("treeshake.moduleSideEffects","configuration-options/#treeshake-modulesideeffects",'please use one of false, "no-external", a function or an array')),()=>!0},mb=/[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g,gb=/^[a-z]:/i;function yb(t){const e=gb.exec(t),n=e?e[0]:"";return n+t.slice(n.length).replace(mb,"_")}const bb=(t,e,n)=>{const{file:s}=t;if(typeof s=="string"){if(e)return oe(nt("output.file",Zs,'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(n.input))return oe(nt("output.file",Zs,'you must set "output.dir" instead of "output.file" when providing named inputs'))}return s},xb=t=>{const e=t.format;switch(e){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return e;default:return oe(nt("output.format",sh,'Valid values are "amd", "cjs", "system", "es", "iife" or "umd"',e))}},kb=(t,e)=>{const n=t.inlineDynamicImports||!1,{input:s}=e;return n&&(Array.isArray(s)?s:Object.keys(s)).length>1?oe(nt("output.inlineDynamicImports",rh,'multiple inputs are not supported when "output.inlineDynamicImports" is true')):n},Eb=(t,e,n)=>{const s=t.preserveModules||!1;if(s){if(e)return oe(nt("output.inlineDynamicImports",rh,'this option is not supported for "output.preserveModules"'));if(n.preserveEntrySignatures===!1)return oe(nt("preserveEntrySignatures","configuration-options/#preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return s},Ab=t=>{const{preserveModulesRoot:e}=t;if(e!=null)return At(e)},wb=t=>{const e={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...t.amd};return(e.autoId||e.basePath)&&e.id?oe(nt("output.amd.id",nh,'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"')):e.basePath&&!e.autoId?oe(nt("output.amd.basePath","configuration-options/#output-amd-basepath",'this option only works with "output.amd.autoId"')):e.autoId?{autoId:!0,basePath:e.basePath,define:e.define,forceJsExtensionForImports:e.forceJsExtensionForImports}:{autoId:!1,define:e.define,forceJsExtensionForImports:e.forceJsExtensionForImports,id:e.id}},wo=(t,e)=>{const n=t[e];return typeof n=="function"?n:()=>n||""},Sb=(t,e)=>{const{dir:n}=t;return typeof n=="string"&&typeof e=="string"?oe(nt("output.dir",Zs,'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks')):n},Ib=(t,e)=>{const n=t.entryFileNames;return n==null&&e.add("entryFileNames"),n??"[name].js"};function vb(t,e){const n=t.exports;if(n==null)e.add("exports");else if(!["default","named","none","auto"].includes(n))return oe({code:ch,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${n}".`,url:ot(ca)});return n||"auto"}const _b=(t,e)=>(t.externalImportAssertions!=null&&jn('The "output.externalImportAssertions" option is deprecated. Use the "output.externalImportAttributes" option instead.',"configuration-options/#output-externalimportattributes",!0,e),t.externalImportAttributes??t.externalImportAssertions??!0),Pb=t=>{const e=Tl(t.generatedCode,Dy,"output.generatedCode","configuration-options/#output-generatedcode","");return{arrowFunctions:e.arrowFunctions===!0,constBindings:e.constBindings===!0,objectShorthand:e.objectShorthand===!0,reservedNamesAsProps:e.reservedNamesAsProps!==!1,symbols:e.symbols===!0}},$b=(t,e)=>{if(e)return"";const n=t.indent;return n===!1?"":n??!0},a1=new Set(["compat","auto","esModule","default","defaultOnly"]),Nb=t=>{const e=t.interop;if(typeof e=="function"){const n=Object.create(null);let s=null;return r=>r===null?s||Fl(s=e(r)):r in n?n[r]:Fl(n[r]=e(r))}return e===void 0?()=>"default":()=>Fl(e)},Fl=t=>a1.has(t)?t:oe(nt("output.interop",ua,`use one of ${Array.from(a1,e=>JSON.stringify(e)).join(", ")}`,t)),Cb=(t,e,n)=>{const s=t.manualChunks;if(s){if(e)return oe(nt("output.manualChunks",ih,'this option is not supported for "output.inlineDynamicImports"'));if(n)return oe(nt("output.manualChunks",ih,'this option is not supported for "output.preserveModules"'))}return s||{}},Tb=(t,e,n)=>t.minifyInternalExports??(n||e==="es"||e==="system"),Rb=(t,e)=>{const n=t.sourcemapFileNames;return n==null&&e.add("sourcemapFileNames"),n},Db=t=>{const{sourcemapBaseUrl:e}=t;if(e)return function(s){try{new URL(s)}catch{return!1}return!0}(e)?(n=e).endsWith("/")?n:n+"/":oe(nt("output.sourcemapBaseUrl","configuration-options/#output-sourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(e)}`));var n};function Ob(t){return async function(e,n){const{options:s,unsetOptions:r}=await async function(c,u){if(!c)throw new Error("You must supply an options object to rollup");const d=await async function(g,w){const k=Ml("options",await Ao(g.plugins)),I=g.logLevel||Fn,E=o1(k,Hp(g,I),w,I);for(const b of k){const{name:A,options:v}=b,$="handler"in v?v.handler:v,D=await $.call({debug:Ls(Qs,"PLUGIN_LOG",E,A,I),error:j=>oe(er(Zt(j),A,{hook:"onLog"})),info:Ls(Fn,"PLUGIN_LOG",E,A,I),meta:{rollupVersion:Jo,watchMode:w},warn:Ls(Ee,"PLUGIN_WARNING",E,A,I)},g);D&&(g=D)}return g}(c,u),{options:m,unsetOptions:f}=await async function(g,w){const k=new Set,I=g.context??"undefined",E=await Ao(g.plugins),b=g.logLevel||Fn,A=o1(E,Hp(g,b),w,b),v=g.strictDeprecations||!1,$=hb(g),D={cache:ab(g),context:I,experimentalCacheExpiry:g.experimentalCacheExpiry??10,experimentalLogSideEffects:g.experimentalLogSideEffects||!1,external:lb(g.external),fs:g.fs??ob,input:cb(g),jsx:ub(g),logLevel:b,makeAbsoluteExternalsRelative:g.makeAbsoluteExternalsRelative??"ifRelativeSource",maxParallelFileOps:$,moduleContext:db(g,I),onLog:A,perf:g.perf||!1,plugins:E,preserveEntrySignatures:g.preserveEntrySignatures??"exports-only",preserveSymlinks:g.preserveSymlinks||!1,shimMissingExports:g.shimMissingExports||!1,strictDeprecations:v,treeshake:pb(g)};return Gp(g,[...Object.keys(D),"onwarn","watch"],"input options",A,/^(output)$/),{options:D,unsetOptions:k}}(d,u);return l1(m.plugins,Nl),{options:m,unsetOptions:f}}(e,n!==null);(function(c){c.perf?($r=new Map,ct=sy,at=ry,c.plugins=c.plugins.map(ay)):(ct=Mt,at=Mt)})(s),await async function(){await Od()}();const i=new Wy(s,n),a=e.cache!==!1;e.cache&&(s.cache=void 0,e.cache=void 0),ct("BUILD",1),await i1(i.pluginDriver,async()=>{try{ct("initialize",2),await i.pluginDriver.hookParallel("buildStart",[s]),at("initialize",2),await i.build()}catch(c){const u=Object.keys(i.watchFiles);u.length>0&&(c.watchFiles=u);try{await i.pluginDriver.hookParallel("buildEnd",[c])}catch(d){const m=xs({...c,message:`There was an error during the build:
|
|
59
59
|
${c.message}
|
|
60
60
|
Additionally, handling the error in the 'buildEnd' hook caused the following error:
|
|
61
|
-
${d.message}`});throw await i.pluginDriver.hookParallel("closeBundle",[m]),m}throw await i.pluginDriver.hookParallel("closeBundle",[c]),c}try{await i.pluginDriver.hookParallel("buildEnd",[])}catch(c){throw await i.pluginDriver.hookParallel("closeBundle",[c]),c}}),at("BUILD",1);const l={cache:a?i.getCache():void 0,async close(){l.closed||(l.closed=!0,await i.pluginDriver.hookParallel("closeBundle",[]))},closed:!1,async[Symbol.asyncDispose](){await this.close()},generate:async c=>l.closed?oe({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):c1(!1,s,r,c,i),get watchFiles(){return Object.keys(i.watchFiles)},write:async c=>l.closed?oe({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):c1(!0,s,r,c,i)};return s.perf&&(l.getTimings=iy),l}(t,null)}function l1(t,e){for(const[n,s]of t.entries())s.name||(s.name=`${e}${n+1}`)}async function c1(t,e,n,s,r){const{options:i,outputPluginDriver:a,unsetOptions:l}=await async function(c,u,d,m){if(!c)throw new Error("You must supply an options object");const f=await Ao(c.plugins);l1(f,Cl);const g=u.createOutputPluginDriver(f);return{...await Lb(d,m,c,g),outputPluginDriver:g}}(s,r.pluginDriver,e,n);return i1(0,async()=>{const c=new _y(i,l,e,a,r),u=await c.generate(t);if(t){if(ct("WRITE",1),!i.dir&&!i.file)return oe({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.',url:ot(Zs)});await Promise.all(Object.values(u).map(m=>r.fileOperationQueue.run(()=>async function(f,g,{fs:{mkdir:w,writeFile:k}}){const I=At(g.dir||ln(g.file),f.fileName);return await w(ln(I),{recursive:!0}),k(I,f.type==="asset"?f.source:f.code)}(m,i,e)))),await a.hookParallel("writeBundle",[i,u]),at("WRITE",1)}return d=u,{output:Object.values(d).filter(m=>Object.keys(m).length>0).sort((m,f)=>u1(m)-u1(f))};var d})}function Lb(t,e,n,s){return async function(r,i,a){const l=new Set(a),c=r.compact||!1,u=xb(r),d=kb(r,i),m=Eb(r,d,i),f=bb(r,m,i),g=Pb(r),w=_b(r,i),k={amd:wb(r),assetFileNames:r.assetFileNames??"assets/[name]-[hash][extname]",banner:wo(r,"banner"),chunkFileNames:r.chunkFileNames??"[name]-[hash].js",compact:c,dir:Sb(r,f),dynamicImportInCjs:r.dynamicImportInCjs??!0,entryFileNames:Ib(r,l),esModule:r.esModule??"if-default-prop",experimentalMinChunkSize:r.experimentalMinChunkSize??1,exports:vb(r,l),extend:r.extend||!1,externalImportAssertions:w,externalImportAttributes:w,externalLiveBindings:r.externalLiveBindings??!0,file:f,footer:wo(r,"footer"),format:u,freeze:r.freeze??!0,generatedCode:g,globals:r.globals||{},hashCharacters:r.hashCharacters??"base64",hoistTransitiveImports:r.hoistTransitiveImports??!0,importAttributesKey:r.importAttributesKey??"assert",indent:$b(r,c),inlineDynamicImports:d,interop:Nb(r),intro:wo(r,"intro"),manualChunks:Cb(r,d,m),minifyInternalExports:Tb(r,u,c),name:r.name,noConflict:r.noConflict||!1,outro:wo(r,"outro"),paths:r.paths||{},plugins:await Ao(r.plugins),preserveModules:m,preserveModulesRoot:Ab(r),reexportProtoFromExternal:r.reexportProtoFromExternal??!0,sanitizeFileName:typeof r.sanitizeFileName=="function"?r.sanitizeFileName:r.sanitizeFileName===!1?I=>I:yb,sourcemap:r.sourcemap||!1,sourcemapBaseUrl:Db(r),sourcemapDebugIds:r.sourcemapDebugIds||!1,sourcemapExcludeSources:r.sourcemapExcludeSources||!1,sourcemapFile:r.sourcemapFile,sourcemapFileNames:Rb(r,l),sourcemapIgnoreList:typeof r.sourcemapIgnoreList=="function"?r.sourcemapIgnoreList:r.sourcemapIgnoreList===!1?()=>!1:I=>I.includes("node_modules"),sourcemapPathTransform:r.sourcemapPathTransform,strict:r.strict??!0,systemNullSetters:r.systemNullSetters??!0,validate:r.validate||!1,virtualDirname:r.virtualDirname||"_virtual"};return Gp(r,Object.keys(k),"output options",i.onLog),{options:k,unsetOptions:l}}(s.hookReduceArg0Sync("outputOptions",[n],(r,i)=>i||r,r=>{const i=()=>r.error({code:"CANNOT_EMIT_FROM_OPTIONS_HOOK",message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...r,emitFile:i,setAssetSource:i}}),t,e)}var Nr;function u1(t){return t.type==="asset"?Nr.ASSET:t.isEntry?Nr.ENTRY_CHUNK:Nr.SECONDARY_CHUNK}Symbol.asyncDispose??=Symbol("Symbol.asyncDispose"),function(t){t[t.ENTRY_CHUNK=0]="ENTRY_CHUNK",t[t.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",t[t.ASSET=2]="ASSET"}(Nr||(Nr={}));const Mb=t=>t.length!==32||!/^[0-9a-f]{32}$/i.test(t)?!1:t[12]==="4",Fb=()=>typeof globalThis.crypto<"u"?globalThis.crypto:require("node:crypto").webcrypto,Bb=Fb(),h1=()=>{const t=new Uint8Array(16);return Bb.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,Array.from(t,e=>e.toString(16).padStart(2,"0")).join("")},jb=()=>h1().substring(0,8),d1=(t,e)=>{if(t&&t.files)for(const n of Object.keys(t.files)){const s=t.files[n];if(s.name===e)return s.text}return null},zb=t=>{const e={};if(!t)return e;for(const n of Object.values(t))e[n.name]=n.text;return e},Vb=t=>Object.entries(t).reduce((e,[n,s])=>(e[jb()]={name:n,text:s},e),{});var S;(function(t){t[t.NONE=0]="NONE";const n=1;t[t._abstract=n]="_abstract";const s=n+1;t[t._accessor=s]="_accessor";const r=s+1;t[t._as=r]="_as";const i=r+1;t[t._assert=i]="_assert";const a=i+1;t[t._asserts=a]="_asserts";const l=a+1;t[t._async=l]="_async";const c=l+1;t[t._await=c]="_await";const u=c+1;t[t._checks=u]="_checks";const d=u+1;t[t._constructor=d]="_constructor";const m=d+1;t[t._declare=m]="_declare";const f=m+1;t[t._enum=f]="_enum";const g=f+1;t[t._exports=g]="_exports";const w=g+1;t[t._from=w]="_from";const k=w+1;t[t._get=k]="_get";const I=k+1;t[t._global=I]="_global";const E=I+1;t[t._implements=E]="_implements";const b=E+1;t[t._infer=b]="_infer";const A=b+1;t[t._interface=A]="_interface";const v=A+1;t[t._is=v]="_is";const $=v+1;t[t._keyof=$]="_keyof";const D=$+1;t[t._mixins=D]="_mixins";const j=D+1;t[t._module=j]="_module";const V=j+1;t[t._namespace=V]="_namespace";const U=V+1;t[t._of=U]="_of";const O=U+1;t[t._opaque=O]="_opaque";const _=O+1;t[t._out=_]="_out";const N=_+1;t[t._override=N]="_override";const C=N+1;t[t._private=C]="_private";const R=C+1;t[t._protected=R]="_protected";const M=R+1;t[t._proto=M]="_proto";const q=M+1;t[t._public=q]="_public";const K=q+1;t[t._readonly=K]="_readonly";const X=K+1;t[t._require=X]="_require";const ae=X+1;t[t._satisfies=ae]="_satisfies";const T=ae+1;t[t._set=T]="_set";const de=T+1;t[t._static=de]="_static";const he=de+1;t[t._symbol=he]="_symbol";const ce=he+1;t[t._type=ce]="_type";const L=ce+1;t[t._unique=L]="_unique";const x=L+1;t[t._using=x]="_using"})(S||(S={}));var o;(function(t){t[t.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const n=16;t[t.IS_KEYWORD=n]="IS_KEYWORD";const s=32;t[t.IS_ASSIGN=s]="IS_ASSIGN";const r=64;t[t.IS_RIGHT_ASSOCIATIVE=r]="IS_RIGHT_ASSOCIATIVE";const i=128;t[t.IS_PREFIX=i]="IS_PREFIX";const a=256;t[t.IS_POSTFIX=a]="IS_POSTFIX";const l=512;t[t.IS_EXPRESSION_START=l]="IS_EXPRESSION_START";const c=512;t[t.num=c]="num";const u=1536;t[t.bigint=u]="bigint";const d=2560;t[t.decimal=d]="decimal";const m=3584;t[t.regexp=m]="regexp";const f=4608;t[t.string=f]="string";const g=5632;t[t.name=g]="name";const w=6144;t[t.eof=w]="eof";const k=7680;t[t.bracketL=k]="bracketL";const I=8192;t[t.bracketR=I]="bracketR";const E=9728;t[t.braceL=E]="braceL";const b=10752;t[t.braceBarL=b]="braceBarL";const A=11264;t[t.braceR=A]="braceR";const v=12288;t[t.braceBarR=v]="braceBarR";const $=13824;t[t.parenL=$]="parenL";const D=14336;t[t.parenR=D]="parenR";const j=15360;t[t.comma=j]="comma";const V=16384;t[t.semi=V]="semi";const U=17408;t[t.colon=U]="colon";const O=18432;t[t.doubleColon=O]="doubleColon";const _=19456;t[t.dot=_]="dot";const N=20480;t[t.question=N]="question";const C=21504;t[t.questionDot=C]="questionDot";const R=22528;t[t.arrow=R]="arrow";const M=23552;t[t.template=M]="template";const q=24576;t[t.ellipsis=q]="ellipsis";const K=25600;t[t.backQuote=K]="backQuote";const X=27136;t[t.dollarBraceL=X]="dollarBraceL";const ae=27648;t[t.at=ae]="at";const T=29184;t[t.hash=T]="hash";const de=29728;t[t.eq=de]="eq";const he=30752;t[t.assign=he]="assign";const ce=32640;t[t.preIncDec=ce]="preIncDec";const L=33664;t[t.postIncDec=L]="postIncDec";const x=34432;t[t.bang=x]="bang";const F=35456;t[t.tilde=F]="tilde";const B=35841;t[t.pipeline=B]="pipeline";const J=36866;t[t.nullishCoalescing=J]="nullishCoalescing";const ee=37890;t[t.logicalOR=ee]="logicalOR";const ie=38915;t[t.logicalAND=ie]="logicalAND";const se=39940;t[t.bitwiseOR=se]="bitwiseOR";const ke=40965;t[t.bitwiseXOR=ke]="bitwiseXOR";const ye=41990;t[t.bitwiseAND=ye]="bitwiseAND";const be=43015;t[t.equality=be]="equality";const fe=44040;t[t.lessThan=fe]="lessThan";const Oe=45064;t[t.greaterThan=Oe]="greaterThan";const qe=46088;t[t.relationalOrEqual=qe]="relationalOrEqual";const ne=47113;t[t.bitShiftL=ne]="bitShiftL";const we=48137;t[t.bitShiftR=we]="bitShiftR";const Z=49802;t[t.plus=Z]="plus";const Se=50826;t[t.minus=Se]="minus";const Xe=51723;t[t.modulo=Xe]="modulo";const lt=52235;t[t.star=lt]="star";const Ye=53259;t[t.slash=Ye]="slash";const bn=54348;t[t.exponent=bn]="exponent";const on=55296;t[t.jsxName=on]="jsxName";const Qr=56320;t[t.jsxText=Qr]="jsxText";const Hc=57344;t[t.jsxEmptyText=Hc]="jsxEmptyText";const Wc=58880;t[t.jsxTagStart=Wc]="jsxTagStart";const Gc=59392;t[t.jsxTagEnd=Gc]="jsxTagEnd";const Xc=60928;t[t.typeParameterStart=Xc]="typeParameterStart";const Kc=61440;t[t.nonNullAssertion=Kc]="nonNullAssertion";const Jc=62480;t[t._break=Jc]="_break";const Yc=63504;t[t._case=Yc]="_case";const Qc=64528;t[t._catch=Qc]="_catch";const Zc=65552;t[t._continue=Zc]="_continue";const eu=66576;t[t._debugger=eu]="_debugger";const tu=67600;t[t._default=tu]="_default";const nu=68624;t[t._do=nu]="_do";const su=69648;t[t._else=su]="_else";const ru=70672;t[t._finally=ru]="_finally";const iu=71696;t[t._for=iu]="_for";const ou=73232;t[t._function=ou]="_function";const au=73744;t[t._if=au]="_if";const lu=74768;t[t._return=lu]="_return";const cu=75792;t[t._switch=cu]="_switch";const uu=77456;t[t._throw=uu]="_throw";const hu=77840;t[t._try=hu]="_try";const du=78864;t[t._var=du]="_var";const pu=79888;t[t._let=pu]="_let";const fu=80912;t[t._const=fu]="_const";const mu=81936;t[t._while=mu]="_while";const gu=82960;t[t._with=gu]="_with";const yu=84496;t[t._new=yu]="_new";const bu=85520;t[t._this=bu]="_this";const xu=86544;t[t._super=xu]="_super";const ku=87568;t[t._class=ku]="_class";const Eu=88080;t[t._extends=Eu]="_extends";const Au=89104;t[t._export=Au]="_export";const wu=90640;t[t._import=wu]="_import";const Su=91664;t[t._yield=Su]="_yield";const Iu=92688;t[t._null=Iu]="_null";const vu=93712;t[t._true=vu]="_true";const _u=94736;t[t._false=_u]="_false";const Pu=95256;t[t._in=Pu]="_in";const $u=96280;t[t._instanceof=$u]="_instanceof";const Nu=97936;t[t._typeof=Nu]="_typeof";const Cu=98960;t[t._void=Cu]="_void";const MS=99984;t[t._delete=MS]="_delete";const FS=100880;t[t._async=FS]="_async";const BS=101904;t[t._get=BS]="_get";const jS=102928;t[t._set=jS]="_set";const zS=103952;t[t._declare=zS]="_declare";const VS=104976;t[t._readonly=VS]="_readonly";const US=106e3;t[t._abstract=US]="_abstract";const qS=107024;t[t._static=qS]="_static";const HS=107536;t[t._public=HS]="_public";const WS=108560;t[t._private=WS]="_private";const GS=109584;t[t._protected=GS]="_protected";const XS=110608;t[t._override=XS]="_override";const KS=112144;t[t._as=KS]="_as";const JS=113168;t[t._enum=JS]="_enum";const YS=114192;t[t._type=YS]="_type";const QS=115216;t[t._implements=QS]="_implements"})(o||(o={}));function Ub(t){switch(t){case o.num:return"num";case o.bigint:return"bigint";case o.decimal:return"decimal";case o.regexp:return"regexp";case o.string:return"string";case o.name:return"name";case o.eof:return"eof";case o.bracketL:return"[";case o.bracketR:return"]";case o.braceL:return"{";case o.braceBarL:return"{|";case o.braceR:return"}";case o.braceBarR:return"|}";case o.parenL:return"(";case o.parenR:return")";case o.comma:return",";case o.semi:return";";case o.colon:return":";case o.doubleColon:return"::";case o.dot:return".";case o.question:return"?";case o.questionDot:return"?.";case o.arrow:return"=>";case o.template:return"template";case o.ellipsis:return"...";case o.backQuote:return"`";case o.dollarBraceL:return"${";case o.at:return"@";case o.hash:return"#";case o.eq:return"=";case o.assign:return"_=";case o.preIncDec:return"++/--";case o.postIncDec:return"++/--";case o.bang:return"!";case o.tilde:return"~";case o.pipeline:return"|>";case o.nullishCoalescing:return"??";case o.logicalOR:return"||";case o.logicalAND:return"&&";case o.bitwiseOR:return"|";case o.bitwiseXOR:return"^";case o.bitwiseAND:return"&";case o.equality:return"==/!=";case o.lessThan:return"<";case o.greaterThan:return">";case o.relationalOrEqual:return"<=/>=";case o.bitShiftL:return"<<";case o.bitShiftR:return">>/>>>";case o.plus:return"+";case o.minus:return"-";case o.modulo:return"%";case o.star:return"*";case o.slash:return"/";case o.exponent:return"**";case o.jsxName:return"jsxName";case o.jsxText:return"jsxText";case o.jsxEmptyText:return"jsxEmptyText";case o.jsxTagStart:return"jsxTagStart";case o.jsxTagEnd:return"jsxTagEnd";case o.typeParameterStart:return"typeParameterStart";case o.nonNullAssertion:return"nonNullAssertion";case o._break:return"break";case o._case:return"case";case o._catch:return"catch";case o._continue:return"continue";case o._debugger:return"debugger";case o._default:return"default";case o._do:return"do";case o._else:return"else";case o._finally:return"finally";case o._for:return"for";case o._function:return"function";case o._if:return"if";case o._return:return"return";case o._switch:return"switch";case o._throw:return"throw";case o._try:return"try";case o._var:return"var";case o._let:return"let";case o._const:return"const";case o._while:return"while";case o._with:return"with";case o._new:return"new";case o._this:return"this";case o._super:return"super";case o._class:return"class";case o._extends:return"extends";case o._export:return"export";case o._import:return"import";case o._yield:return"yield";case o._null:return"null";case o._true:return"true";case o._false:return"false";case o._in:return"in";case o._instanceof:return"instanceof";case o._typeof:return"typeof";case o._void:return"void";case o._delete:return"delete";case o._async:return"async";case o._get:return"get";case o._set:return"set";case o._declare:return"declare";case o._readonly:return"readonly";case o._abstract:return"abstract";case o._static:return"static";case o._public:return"public";case o._private:return"private";case o._protected:return"protected";case o._override:return"override";case o._as:return"as";case o._enum:return"enum";case o._type:return"type";case o._implements:return"implements";default:return""}}class en{constructor(e,n,s){this.startTokenIndex=e,this.endTokenIndex=n,this.isFunctionScope=s}}class qb{constructor(e,n,s,r,i,a,l,c,u,d,m,f,g){this.potentialArrowAt=e,this.noAnonFunctionType=n,this.inDisallowConditionalTypesContext=s,this.tokensLength=r,this.scopesLength=i,this.pos=a,this.type=l,this.contextualKeyword=c,this.start=u,this.end=d,this.isType=m,this.scopeDepth=f,this.error=g}}class kt{constructor(){kt.prototype.__init.call(this),kt.prototype.__init2.call(this),kt.prototype.__init3.call(this),kt.prototype.__init4.call(this),kt.prototype.__init5.call(this),kt.prototype.__init6.call(this),kt.prototype.__init7.call(this),kt.prototype.__init8.call(this),kt.prototype.__init9.call(this),kt.prototype.__init10.call(this),kt.prototype.__init11.call(this),kt.prototype.__init12.call(this),kt.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=o.eof}__init8(){this.contextualKeyword=S.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new qb(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(e){this.potentialArrowAt=e.potentialArrowAt,this.noAnonFunctionType=e.noAnonFunctionType,this.inDisallowConditionalTypesContext=e.inDisallowConditionalTypesContext,this.tokens.length=e.tokensLength,this.scopes.length=e.scopesLength,this.pos=e.pos,this.type=e.type,this.contextualKeyword=e.contextualKeyword,this.start=e.start,this.end=e.end,this.isType=e.isType,this.scopeDepth=e.scopeDepth,this.error=e.error}}var P;(function(t){t[t.backSpace=8]="backSpace";const n=10;t[t.lineFeed=n]="lineFeed";const s=9;t[t.tab=s]="tab";const r=13;t[t.carriageReturn=r]="carriageReturn";const i=14;t[t.shiftOut=i]="shiftOut";const a=32;t[t.space=a]="space";const l=33;t[t.exclamationMark=l]="exclamationMark";const c=34;t[t.quotationMark=c]="quotationMark";const u=35;t[t.numberSign=u]="numberSign";const d=36;t[t.dollarSign=d]="dollarSign";const m=37;t[t.percentSign=m]="percentSign";const f=38;t[t.ampersand=f]="ampersand";const g=39;t[t.apostrophe=g]="apostrophe";const w=40;t[t.leftParenthesis=w]="leftParenthesis";const k=41;t[t.rightParenthesis=k]="rightParenthesis";const I=42;t[t.asterisk=I]="asterisk";const E=43;t[t.plusSign=E]="plusSign";const b=44;t[t.comma=b]="comma";const A=45;t[t.dash=A]="dash";const v=46;t[t.dot=v]="dot";const $=47;t[t.slash=$]="slash";const D=48;t[t.digit0=D]="digit0";const j=49;t[t.digit1=j]="digit1";const V=50;t[t.digit2=V]="digit2";const U=51;t[t.digit3=U]="digit3";const O=52;t[t.digit4=O]="digit4";const _=53;t[t.digit5=_]="digit5";const N=54;t[t.digit6=N]="digit6";const C=55;t[t.digit7=C]="digit7";const R=56;t[t.digit8=R]="digit8";const M=57;t[t.digit9=M]="digit9";const q=58;t[t.colon=q]="colon";const K=59;t[t.semicolon=K]="semicolon";const X=60;t[t.lessThan=X]="lessThan";const ae=61;t[t.equalsTo=ae]="equalsTo";const T=62;t[t.greaterThan=T]="greaterThan";const de=63;t[t.questionMark=de]="questionMark";const he=64;t[t.atSign=he]="atSign";const ce=65;t[t.uppercaseA=ce]="uppercaseA";const L=66;t[t.uppercaseB=L]="uppercaseB";const x=67;t[t.uppercaseC=x]="uppercaseC";const F=68;t[t.uppercaseD=F]="uppercaseD";const B=69;t[t.uppercaseE=B]="uppercaseE";const J=70;t[t.uppercaseF=J]="uppercaseF";const ee=71;t[t.uppercaseG=ee]="uppercaseG";const ie=72;t[t.uppercaseH=ie]="uppercaseH";const se=73;t[t.uppercaseI=se]="uppercaseI";const ke=74;t[t.uppercaseJ=ke]="uppercaseJ";const ye=75;t[t.uppercaseK=ye]="uppercaseK";const be=76;t[t.uppercaseL=be]="uppercaseL";const fe=77;t[t.uppercaseM=fe]="uppercaseM";const Oe=78;t[t.uppercaseN=Oe]="uppercaseN";const qe=79;t[t.uppercaseO=qe]="uppercaseO";const ne=80;t[t.uppercaseP=ne]="uppercaseP";const we=81;t[t.uppercaseQ=we]="uppercaseQ";const Z=82;t[t.uppercaseR=Z]="uppercaseR";const Se=83;t[t.uppercaseS=Se]="uppercaseS";const Xe=84;t[t.uppercaseT=Xe]="uppercaseT";const lt=85;t[t.uppercaseU=lt]="uppercaseU";const Ye=86;t[t.uppercaseV=Ye]="uppercaseV";const bn=87;t[t.uppercaseW=bn]="uppercaseW";const on=88;t[t.uppercaseX=on]="uppercaseX";const Qr=89;t[t.uppercaseY=Qr]="uppercaseY";const Hc=90;t[t.uppercaseZ=Hc]="uppercaseZ";const Wc=91;t[t.leftSquareBracket=Wc]="leftSquareBracket";const Gc=92;t[t.backslash=Gc]="backslash";const Xc=93;t[t.rightSquareBracket=Xc]="rightSquareBracket";const Kc=94;t[t.caret=Kc]="caret";const Jc=95;t[t.underscore=Jc]="underscore";const Yc=96;t[t.graveAccent=Yc]="graveAccent";const Qc=97;t[t.lowercaseA=Qc]="lowercaseA";const Zc=98;t[t.lowercaseB=Zc]="lowercaseB";const eu=99;t[t.lowercaseC=eu]="lowercaseC";const tu=100;t[t.lowercaseD=tu]="lowercaseD";const nu=101;t[t.lowercaseE=nu]="lowercaseE";const su=102;t[t.lowercaseF=su]="lowercaseF";const ru=103;t[t.lowercaseG=ru]="lowercaseG";const iu=104;t[t.lowercaseH=iu]="lowercaseH";const ou=105;t[t.lowercaseI=ou]="lowercaseI";const au=106;t[t.lowercaseJ=au]="lowercaseJ";const lu=107;t[t.lowercaseK=lu]="lowercaseK";const cu=108;t[t.lowercaseL=cu]="lowercaseL";const uu=109;t[t.lowercaseM=uu]="lowercaseM";const hu=110;t[t.lowercaseN=hu]="lowercaseN";const du=111;t[t.lowercaseO=du]="lowercaseO";const pu=112;t[t.lowercaseP=pu]="lowercaseP";const fu=113;t[t.lowercaseQ=fu]="lowercaseQ";const mu=114;t[t.lowercaseR=mu]="lowercaseR";const gu=115;t[t.lowercaseS=gu]="lowercaseS";const yu=116;t[t.lowercaseT=yu]="lowercaseT";const bu=117;t[t.lowercaseU=bu]="lowercaseU";const xu=118;t[t.lowercaseV=xu]="lowercaseV";const ku=119;t[t.lowercaseW=ku]="lowercaseW";const Eu=120;t[t.lowercaseX=Eu]="lowercaseX";const Au=121;t[t.lowercaseY=Au]="lowercaseY";const wu=122;t[t.lowercaseZ=wu]="lowercaseZ";const Su=123;t[t.leftCurlyBrace=Su]="leftCurlyBrace";const Iu=124;t[t.verticalBar=Iu]="verticalBar";const vu=125;t[t.rightCurlyBrace=vu]="rightCurlyBrace";const _u=126;t[t.tilde=_u]="tilde";const Pu=160;t[t.nonBreakingSpace=Pu]="nonBreakingSpace";const $u=5760;t[t.oghamSpaceMark=$u]="oghamSpaceMark";const Nu=8232;t[t.lineSeparator=Nu]="lineSeparator";const Cu=8233;t[t.paragraphSeparator=Cu]="paragraphSeparator"})(P||(P={}));let So,De,Be,h,re,p1;function Cr(){return p1++}function Hb(t){if("pos"in t){const e=Gb(t.pos);t.message+=` (${e.line}:${e.column})`,t.loc=e}return t}class Wb{constructor(e,n){this.line=e,this.column=n}}function Gb(t){let e=1,n=1;for(let s=0;s<t;s++)re.charCodeAt(s)===P.lineFeed?(e++,n=1):n++;return new Wb(e,n)}function Xb(t,e,n,s){re=t,h=new kt,p1=1,So=e,De=n,Be=s}function me(t){return h.contextualKeyword===t}function Bl(t){const e=Rr();return e.type===o.name&&e.contextualKeyword===t}function ut(t){return h.contextualKeyword===t&&z(o.name)}function rt(t){ut(t)||Ie()}function Ct(){return y(o.eof)||y(o.braceR)||Et()}function Et(){const t=h.tokens[h.tokens.length-1],e=t?t.end:0;for(let n=e;n<h.start;n++){const s=re.charCodeAt(n);if(s===P.lineFeed||s===P.carriageReturn||s===8232||s===8233)return!0}return!1}function f1(){const t=jl();for(let e=h.end;e<t;e++){const n=re.charCodeAt(e);if(n===P.lineFeed||n===P.carriageReturn||n===8232||n===8233)return!0}return!1}function tn(){return z(o.semi)||Ct()}function Je(){tn()||Ie('Unexpected token, expected ";"')}function H(t){z(t)||Ie(`Unexpected token, expected "${Ub(t)}"`)}function Ie(t="Unexpected token",e=h.start){if(h.error)return;const n=new SyntaxError(t);n.pos=e,h.error=n,h.pos=re.length,ve(o.eof)}const m1=[9,11,12,P.space,P.nonBreakingSpace,P.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],g1=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,y1=new Uint8Array(65536);for(const t of m1)y1[t]=1;function Kb(t){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const jt=new Uint8Array(65536);for(let t=0;t<128;t++)jt[t]=Kb(t)?1:0;for(let t=128;t<65536;t++)jt[t]=1;for(const t of m1)jt[t]=0;jt[8232]=0,jt[8233]=0;const Tr=jt.slice();for(let t=P.digit0;t<=P.digit9;t++)Tr[t]=0;const b1=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,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,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function Jb(){let t=0,e=0,n=h.pos;for(;n<re.length&&(e=re.charCodeAt(n),!(e<P.lowercaseA||e>P.lowercaseZ));){const r=b1[t+(e-P.lowercaseA)+1];if(r===-1)break;t=r,n++}const s=b1[t];if(s>-1&&!jt[e]){h.pos=n,s&1?ve(s>>>1):ve(o.name,s>>>1);return}for(;n<re.length;){const r=re.charCodeAt(n);if(jt[r])n++;else if(r===P.backslash){if(n+=2,re.charCodeAt(n)===P.leftCurlyBrace){for(;n<re.length&&re.charCodeAt(n)!==P.rightCurlyBrace;)n++;n++}}else if(r===P.atSign&&re.charCodeAt(n+1)===P.atSign)n+=2;else break}h.pos=n,ve(o.name)}var ge;(function(t){t[t.Access=0]="Access";const n=1;t[t.ExportAccess=n]="ExportAccess";const s=n+1;t[t.TopLevelDeclaration=s]="TopLevelDeclaration";const r=s+1;t[t.FunctionScopedDeclaration=r]="FunctionScopedDeclaration";const i=r+1;t[t.BlockScopedDeclaration=i]="BlockScopedDeclaration";const a=i+1;t[t.ObjectShorthandTopLevelDeclaration=a]="ObjectShorthandTopLevelDeclaration";const l=a+1;t[t.ObjectShorthandFunctionScopedDeclaration=l]="ObjectShorthandFunctionScopedDeclaration";const c=l+1;t[t.ObjectShorthandBlockScopedDeclaration=c]="ObjectShorthandBlockScopedDeclaration";const u=c+1;t[t.ObjectShorthand=u]="ObjectShorthand";const d=u+1;t[t.ImportDeclaration=d]="ImportDeclaration";const m=d+1;t[t.ObjectKey=m]="ObjectKey";const f=m+1;t[t.ImportAccess=f]="ImportAccess"})(ge||(ge={}));var zt;(function(t){t[t.NoChildren=0]="NoChildren";const n=1;t[t.OneChild=n]="OneChild";const s=n+1;t[t.StaticChildren=s]="StaticChildren";const r=s+1;t[t.KeyAfterPropSpread=r]="KeyAfterPropSpread"})(zt||(zt={}));function x1(t){const e=t.identifierRole;return e===ge.TopLevelDeclaration||e===ge.FunctionScopedDeclaration||e===ge.BlockScopedDeclaration||e===ge.ObjectShorthandTopLevelDeclaration||e===ge.ObjectShorthandFunctionScopedDeclaration||e===ge.ObjectShorthandBlockScopedDeclaration}function Yb(t){const e=t.identifierRole;return e===ge.FunctionScopedDeclaration||e===ge.BlockScopedDeclaration||e===ge.ObjectShorthandFunctionScopedDeclaration||e===ge.ObjectShorthandBlockScopedDeclaration}function k1(t){const e=t.identifierRole;return e===ge.TopLevelDeclaration||e===ge.ObjectShorthandTopLevelDeclaration||e===ge.ImportDeclaration}function Qb(t){const e=t.identifierRole;return e===ge.TopLevelDeclaration||e===ge.BlockScopedDeclaration||e===ge.ObjectShorthandTopLevelDeclaration||e===ge.ObjectShorthandBlockScopedDeclaration}function Zb(t){const e=t.identifierRole;return e===ge.FunctionScopedDeclaration||e===ge.ObjectShorthandFunctionScopedDeclaration}function ex(t){return t.identifierRole===ge.ObjectShorthandTopLevelDeclaration||t.identifierRole===ge.ObjectShorthandBlockScopedDeclaration||t.identifierRole===ge.ObjectShorthandFunctionScopedDeclaration}class Io{constructor(){this.type=h.type,this.contextualKeyword=h.contextualKeyword,this.start=h.start,this.end=h.end,this.scopeDepth=h.scopeDepth,this.isType=h.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function W(){h.tokens.push(new Io),S1()}function Pn(){h.tokens.push(new Io),h.start=h.pos,yx()}function tx(){h.type===o.assign&&--h.pos,fx()}function Ne(t){for(let n=h.tokens.length-t;n<h.tokens.length;n++)h.tokens[n].isType=!0;const e=h.isType;return h.isType=!0,e}function $e(t){h.isType=t}function z(t){return y(t)?(W(),!0):!1}function E1(t){const e=h.isType;h.isType=!0,z(t),h.isType=e}function y(t){return h.type===t}function et(){const t=h.snapshot();W();const e=h.type;return h.restoreFromSnapshot(t),e}class nx{constructor(e,n){this.type=e,this.contextualKeyword=n}}function Rr(){const t=h.snapshot();W();const e=h.type,n=h.contextualKeyword;return h.restoreFromSnapshot(t),new nx(e,n)}function jl(){return A1(h.pos)}function A1(t){g1.lastIndex=t;const e=g1.exec(re);return t+e[0].length}function w1(){return re.charCodeAt(jl())}function S1(){if(v1(),h.start=h.pos,h.pos>=re.length){const t=h.tokens;t.length>=2&&t[t.length-1].start>=re.length&&t[t.length-2].start>=re.length&&Ie("Unexpectedly reached the end of input."),ve(o.eof);return}sx(re.charCodeAt(h.pos))}function sx(t){Tr[t]||t===P.backslash||t===P.atSign&&re.charCodeAt(h.pos+1)===P.atSign?Jb():$1(t)}function rx(){for(;re.charCodeAt(h.pos)!==P.asterisk||re.charCodeAt(h.pos+1)!==P.slash;)if(h.pos++,h.pos>re.length){Ie("Unterminated comment",h.pos-2);return}h.pos+=2}function I1(t){let e=re.charCodeAt(h.pos+=t);if(h.pos<re.length)for(;e!==P.lineFeed&&e!==P.carriageReturn&&e!==P.lineSeparator&&e!==P.paragraphSeparator&&++h.pos<re.length;)e=re.charCodeAt(h.pos)}function v1(){for(;h.pos<re.length;){const t=re.charCodeAt(h.pos);switch(t){case P.carriageReturn:re.charCodeAt(h.pos+1)===P.lineFeed&&++h.pos;case P.lineFeed:case P.lineSeparator:case P.paragraphSeparator:++h.pos;break;case P.slash:switch(re.charCodeAt(h.pos+1)){case P.asterisk:h.pos+=2,rx();break;case P.slash:I1(2);break;default:return}break;default:if(y1[t])++h.pos;else return}}}function ve(t,e=S.NONE){h.end=h.pos,h.type=t,h.contextualKeyword=e}function ix(){const t=re.charCodeAt(h.pos+1);if(t>=P.digit0&&t<=P.digit9){N1(!0);return}t===P.dot&&re.charCodeAt(h.pos+2)===P.dot?(h.pos+=3,ve(o.ellipsis)):(++h.pos,ve(o.dot))}function ox(){re.charCodeAt(h.pos+1)===P.equalsTo?je(o.assign,2):je(o.slash,1)}function ax(t){let e=t===P.asterisk?o.star:o.modulo,n=1,s=re.charCodeAt(h.pos+1);t===P.asterisk&&s===P.asterisk&&(n++,s=re.charCodeAt(h.pos+2),e=o.exponent),s===P.equalsTo&&re.charCodeAt(h.pos+2)!==P.greaterThan&&(n++,e=o.assign),je(e,n)}function lx(t){const e=re.charCodeAt(h.pos+1);if(e===t){re.charCodeAt(h.pos+2)===P.equalsTo?je(o.assign,3):je(t===P.verticalBar?o.logicalOR:o.logicalAND,2);return}if(t===P.verticalBar){if(e===P.greaterThan){je(o.pipeline,2);return}else if(e===P.rightCurlyBrace&&Be){je(o.braceBarR,2);return}}if(e===P.equalsTo){je(o.assign,2);return}je(t===P.verticalBar?o.bitwiseOR:o.bitwiseAND,1)}function cx(){re.charCodeAt(h.pos+1)===P.equalsTo?je(o.assign,2):je(o.bitwiseXOR,1)}function ux(t){const e=re.charCodeAt(h.pos+1);if(e===t){je(o.preIncDec,2);return}e===P.equalsTo?je(o.assign,2):t===P.plusSign?je(o.plus,1):je(o.minus,1)}function hx(){const t=re.charCodeAt(h.pos+1);if(t===P.lessThan){if(re.charCodeAt(h.pos+2)===P.equalsTo){je(o.assign,3);return}h.isType?je(o.lessThan,1):je(o.bitShiftL,2);return}t===P.equalsTo?je(o.relationalOrEqual,2):je(o.lessThan,1)}function _1(){if(h.isType){je(o.greaterThan,1);return}const t=re.charCodeAt(h.pos+1);if(t===P.greaterThan){const e=re.charCodeAt(h.pos+2)===P.greaterThan?3:2;if(re.charCodeAt(h.pos+e)===P.equalsTo){je(o.assign,e+1);return}je(o.bitShiftR,e);return}t===P.equalsTo?je(o.relationalOrEqual,2):je(o.greaterThan,1)}function P1(){h.type===o.greaterThan&&(h.pos-=1,_1())}function dx(t){const e=re.charCodeAt(h.pos+1);if(e===P.equalsTo){je(o.equality,re.charCodeAt(h.pos+2)===P.equalsTo?3:2);return}if(t===P.equalsTo&&e===P.greaterThan){h.pos+=2,ve(o.arrow);return}je(t===P.equalsTo?o.eq:o.bang,1)}function px(){const t=re.charCodeAt(h.pos+1),e=re.charCodeAt(h.pos+2);t===P.questionMark&&!(Be&&h.isType)?e===P.equalsTo?je(o.assign,3):je(o.nullishCoalescing,2):t===P.dot&&!(e>=P.digit0&&e<=P.digit9)?(h.pos+=2,ve(o.questionDot)):(++h.pos,ve(o.question))}function $1(t){switch(t){case P.numberSign:++h.pos,ve(o.hash);return;case P.dot:ix();return;case P.leftParenthesis:++h.pos,ve(o.parenL);return;case P.rightParenthesis:++h.pos,ve(o.parenR);return;case P.semicolon:++h.pos,ve(o.semi);return;case P.comma:++h.pos,ve(o.comma);return;case P.leftSquareBracket:++h.pos,ve(o.bracketL);return;case P.rightSquareBracket:++h.pos,ve(o.bracketR);return;case P.leftCurlyBrace:Be&&re.charCodeAt(h.pos+1)===P.verticalBar?je(o.braceBarL,2):(++h.pos,ve(o.braceL));return;case P.rightCurlyBrace:++h.pos,ve(o.braceR);return;case P.colon:re.charCodeAt(h.pos+1)===P.colon?je(o.doubleColon,2):(++h.pos,ve(o.colon));return;case P.questionMark:px();return;case P.atSign:++h.pos,ve(o.at);return;case P.graveAccent:++h.pos,ve(o.backQuote);return;case P.digit0:{const e=re.charCodeAt(h.pos+1);if(e===P.lowercaseX||e===P.uppercaseX||e===P.lowercaseO||e===P.uppercaseO||e===P.lowercaseB||e===P.uppercaseB){mx();return}}case P.digit1:case P.digit2:case P.digit3:case P.digit4:case P.digit5:case P.digit6:case P.digit7:case P.digit8:case P.digit9:N1(!1);return;case P.quotationMark:case P.apostrophe:gx(t);return;case P.slash:ox();return;case P.percentSign:case P.asterisk:ax(t);return;case P.verticalBar:case P.ampersand:lx(t);return;case P.caret:cx();return;case P.plusSign:case P.dash:ux(t);return;case P.lessThan:hx();return;case P.greaterThan:_1();return;case P.equalsTo:case P.exclamationMark:dx(t);return;case P.tilde:je(o.tilde,1);return}Ie(`Unexpected character '${String.fromCharCode(t)}'`,h.pos)}function je(t,e){h.pos+=e,ve(t)}function fx(){const t=h.pos;let e=!1,n=!1;for(;;){if(h.pos>=re.length){Ie("Unterminated regular expression",t);return}const s=re.charCodeAt(h.pos);if(e)e=!1;else{if(s===P.leftSquareBracket)n=!0;else if(s===P.rightSquareBracket&&n)n=!1;else if(s===P.slash&&!n)break;e=s===P.backslash}++h.pos}++h.pos,bx(),ve(o.regexp)}function zl(){for(;;){const t=re.charCodeAt(h.pos);if(t>=P.digit0&&t<=P.digit9||t===P.underscore)h.pos++;else break}}function mx(){for(h.pos+=2;;){const e=re.charCodeAt(h.pos);if(e>=P.digit0&&e<=P.digit9||e>=P.lowercaseA&&e<=P.lowercaseF||e>=P.uppercaseA&&e<=P.uppercaseF||e===P.underscore)h.pos++;else break}re.charCodeAt(h.pos)===P.lowercaseN?(++h.pos,ve(o.bigint)):ve(o.num)}function N1(t){let e=!1,n=!1;t||zl();let s=re.charCodeAt(h.pos);if(s===P.dot&&(++h.pos,zl(),s=re.charCodeAt(h.pos)),(s===P.uppercaseE||s===P.lowercaseE)&&(s=re.charCodeAt(++h.pos),(s===P.plusSign||s===P.dash)&&++h.pos,zl(),s=re.charCodeAt(h.pos)),s===P.lowercaseN?(++h.pos,e=!0):s===P.lowercaseM&&(++h.pos,n=!0),e){ve(o.bigint);return}if(n){ve(o.decimal);return}ve(o.num)}function gx(t){for(h.pos++;;){if(h.pos>=re.length){Ie("Unterminated string constant");return}const e=re.charCodeAt(h.pos);if(e===P.backslash)h.pos++;else if(e===t)break;h.pos++}h.pos++,ve(o.string)}function yx(){for(;;){if(h.pos>=re.length){Ie("Unterminated template");return}const t=re.charCodeAt(h.pos);if(t===P.graveAccent||t===P.dollarSign&&re.charCodeAt(h.pos+1)===P.leftCurlyBrace){if(h.pos===h.start&&y(o.template))if(t===P.dollarSign){h.pos+=2,ve(o.dollarBraceL);return}else{++h.pos,ve(o.backQuote);return}ve(o.template);return}t===P.backslash&&h.pos++,h.pos++}}function bx(){for(;h.pos<re.length;){const t=re.charCodeAt(h.pos);if(jt[t])h.pos++;else if(t===P.backslash){if(h.pos+=2,re.charCodeAt(h.pos)===P.leftCurlyBrace){for(;h.pos<re.length&&re.charCodeAt(h.pos)!==P.rightCurlyBrace;)h.pos++;h.pos++}}else break}}function Dr(t,e=t.currentIndex()){let n=e+1;if(vo(t,n)){const s=t.identifierNameAtIndex(e);return{isType:!1,leftName:s,rightName:s,endIndex:n}}if(n++,vo(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,vo(t,n))return{isType:!1,leftName:t.identifierNameAtIndex(e),rightName:t.identifierNameAtIndex(e+2),endIndex:n};if(n++,vo(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${e}`)}function vo(t,e){const n=t.tokens[e];return n.type===o.braceR||n.type===o.comma}var xx=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp"," "],["iexcl","¡"],["cent","¢"],["pound","£"],["curren","¤"],["yen","¥"],["brvbar","¦"],["sect","§"],["uml","¨"],["copy","©"],["ordf","ª"],["laquo","«"],["not","¬"],["shy",""],["reg","®"],["macr","¯"],["deg","°"],["plusmn","±"],["sup2","²"],["sup3","³"],["acute","´"],["micro","µ"],["para","¶"],["middot","·"],["cedil","¸"],["sup1","¹"],["ordm","º"],["raquo","»"],["frac14","¼"],["frac12","½"],["frac34","¾"],["iquest","¿"],["Agrave","À"],["Aacute","Á"],["Acirc","Â"],["Atilde","Ã"],["Auml","Ä"],["Aring","Å"],["AElig","Æ"],["Ccedil","Ç"],["Egrave","È"],["Eacute","É"],["Ecirc","Ê"],["Euml","Ë"],["Igrave","Ì"],["Iacute","Í"],["Icirc","Î"],["Iuml","Ï"],["ETH","Ð"],["Ntilde","Ñ"],["Ograve","Ò"],["Oacute","Ó"],["Ocirc","Ô"],["Otilde","Õ"],["Ouml","Ö"],["times","×"],["Oslash","Ø"],["Ugrave","Ù"],["Uacute","Ú"],["Ucirc","Û"],["Uuml","Ü"],["Yacute","Ý"],["THORN","Þ"],["szlig","ß"],["agrave","à"],["aacute","á"],["acirc","â"],["atilde","ã"],["auml","ä"],["aring","å"],["aelig","æ"],["ccedil","ç"],["egrave","è"],["eacute","é"],["ecirc","ê"],["euml","ë"],["igrave","ì"],["iacute","í"],["icirc","î"],["iuml","ï"],["eth","ð"],["ntilde","ñ"],["ograve","ò"],["oacute","ó"],["ocirc","ô"],["otilde","õ"],["ouml","ö"],["divide","÷"],["oslash","ø"],["ugrave","ù"],["uacute","ú"],["ucirc","û"],["uuml","ü"],["yacute","ý"],["thorn","þ"],["yuml","ÿ"],["OElig","Œ"],["oelig","œ"],["Scaron","Š"],["scaron","š"],["Yuml","Ÿ"],["fnof","ƒ"],["circ","ˆ"],["tilde","˜"],["Alpha","Α"],["Beta","Β"],["Gamma","Γ"],["Delta","Δ"],["Epsilon","Ε"],["Zeta","Ζ"],["Eta","Η"],["Theta","Θ"],["Iota","Ι"],["Kappa","Κ"],["Lambda","Λ"],["Mu","Μ"],["Nu","Ν"],["Xi","Ξ"],["Omicron","Ο"],["Pi","Π"],["Rho","Ρ"],["Sigma","Σ"],["Tau","Τ"],["Upsilon","Υ"],["Phi","Φ"],["Chi","Χ"],["Psi","Ψ"],["Omega","Ω"],["alpha","α"],["beta","β"],["gamma","γ"],["delta","δ"],["epsilon","ε"],["zeta","ζ"],["eta","η"],["theta","θ"],["iota","ι"],["kappa","κ"],["lambda","λ"],["mu","μ"],["nu","ν"],["xi","ξ"],["omicron","ο"],["pi","π"],["rho","ρ"],["sigmaf","ς"],["sigma","σ"],["tau","τ"],["upsilon","υ"],["phi","φ"],["chi","χ"],["psi","ψ"],["omega","ω"],["thetasym","ϑ"],["upsih","ϒ"],["piv","ϖ"],["ensp"," "],["emsp"," "],["thinsp"," "],["zwnj",""],["zwj",""],["lrm",""],["rlm",""],["ndash","–"],["mdash","—"],["lsquo","‘"],["rsquo","’"],["sbquo","‚"],["ldquo","“"],["rdquo","”"],["bdquo","„"],["dagger","†"],["Dagger","‡"],["bull","•"],["hellip","…"],["permil","‰"],["prime","′"],["Prime","″"],["lsaquo","‹"],["rsaquo","›"],["oline","‾"],["frasl","⁄"],["euro","€"],["image","ℑ"],["weierp","℘"],["real","ℜ"],["trade","™"],["alefsym","ℵ"],["larr","←"],["uarr","↑"],["rarr","→"],["darr","↓"],["harr","↔"],["crarr","↵"],["lArr","⇐"],["uArr","⇑"],["rArr","⇒"],["dArr","⇓"],["hArr","⇔"],["forall","∀"],["part","∂"],["exist","∃"],["empty","∅"],["nabla","∇"],["isin","∈"],["notin","∉"],["ni","∋"],["prod","∏"],["sum","∑"],["minus","−"],["lowast","∗"],["radic","√"],["prop","∝"],["infin","∞"],["ang","∠"],["and","∧"],["or","∨"],["cap","∩"],["cup","∪"],["int","∫"],["there4","∴"],["sim","∼"],["cong","≅"],["asymp","≈"],["ne","≠"],["equiv","≡"],["le","≤"],["ge","≥"],["sub","⊂"],["sup","⊃"],["nsub","⊄"],["sube","⊆"],["supe","⊇"],["oplus","⊕"],["otimes","⊗"],["perp","⊥"],["sdot","⋅"],["lceil","⌈"],["rceil","⌉"],["lfloor","⌊"],["rfloor","⌋"],["lang","〈"],["rang","〉"],["loz","◊"],["spades","♠"],["clubs","♣"],["hearts","♥"],["diams","♦"]]);function C1(t){const[e,n]=T1(t.jsxPragma||"React.createElement"),[s,r]=T1(t.jsxFragmentPragma||"React.Fragment");return{base:e,suffix:n,fragmentBase:s,fragmentSuffix:r}}function T1(t){let e=t.indexOf(".");return e===-1&&(e=t.length),[t.slice(0,e),t.slice(e)]}class Vt{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class rs extends Vt{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(e,n,s,r,i){super(),this.rootTransformer=e,this.tokens=n,this.importProcessor=s,this.nameManager=r,this.options=i,rs.prototype.__init.call(this),rs.prototype.__init2.call(this),rs.prototype.__init3.call(this),rs.prototype.__init4.call(this),rs.prototype.__init5.call(this),this.jsxPragmaInfo=C1(i),this.isAutomaticRuntime=i.jsxRuntime==="automatic",this.jsxImportSource=i.jsxImportSource||"react"}process(){return this.tokens.matches1(o.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let e="";if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[n,s]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${s} = require("${n}");`;else{const{createElement:n,...s}=this.esmAutomaticImportNameResolutions;n&&(e+=`import {createElement as ${n}} from "${this.jsxImportSource}";`);const r=Object.entries(s).map(([i,a])=>`${i} as ${a}`).join(", ");if(r){const i=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");e+=`import {${r}} from "${i}";`}}return e}processJSXTag(){const{jsxRole:e,start:n}=this.tokens.currentToken(),s=this.options.production?null:this.getElementLocationCode(n);this.isAutomaticRuntime&&e!==zt.KeyAfterPropSpread?this.transformTagToJSXFunc(s,e):this.transformTagToCreateElement(s)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){const n=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<n.length;)n[this.lastIndex]===`
|
|
62
|
-
`&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(e,n){const s=n===zt.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(s));let r=null;if(this.tokens.matches1(o.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(n);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),r=this.processProps(!0),this.tokens.matches2(o.slash,o.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(o.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(n);else throw new Error("Expected either /> or > at the end of the tag.");r&&this.tokens.appendCode(`, ${r}`)}for(this.options.production||(r===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${s}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(o.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(o.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),!this.tokens.matches2(o.slash,o.jsxTagEnd))if(this.tokens.matches1(o.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(o.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,n){const s=this.claimAutoImportedName(e,n);return this.importProcessor?`${s}.call(void 0, `:`${s}(`}claimAutoImportedName(e,n){if(this.importProcessor){const s=this.jsxImportSource+n;return this.cjsAutomaticModuleNameResolutions[s]||(this.cjsAutomaticModuleNameResolutions[s]=this.importProcessor.getFreeIdentifierForPath(s)),`${this.cjsAutomaticModuleNameResolutions[s]}.${e}`}else return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,o.jsxName,o.jsxName)&&!this.tokens.matches2AtIndex(e-1,o.greaterThan,o.jsxName)&&!this.tokens.matches1AtIndex(e,o.braceL)&&!this.tokens.matches1AtIndex(e,o.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,o.slash,o.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){const n=this.tokens.identifierName();R1(n)&&this.tokens.replaceToken(`'${n}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(e){const n=this.options.production?"":`__self: this, __source: ${this.getDevSource(e)}`;if(!this.tokens.matches1(o.jsxName)&&!this.tokens.matches1(o.braceL)){n?this.tokens.appendCode(`, {${n}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),n?this.tokens.appendCode(` ${n}}`):this.tokens.appendCode("}")}processProps(e){let n=null;for(;;){if(this.tokens.matches2(o.jsxName,o.eq)){const s=this.tokens.identifierName();if(e&&s==="key"){n!==null&&this.tokens.appendCode(n.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const r=this.tokens.snapshot();this.processPropValue(),n=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(r);continue}else this.processPropName(s),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(o.jsxName)){const s=this.tokens.identifierName();this.processPropName(s),this.tokens.appendCode(": true")}else if(this.tokens.matches1(o.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return n}processPropName(e){e.includes("-")?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(o.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(o.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const e=this.tokens.currentToken(),n=this.tokens.code.slice(e.start+1,e.end-1),s=D1(n),r=
|
|
61
|
+
${d.message}`});throw await i.pluginDriver.hookParallel("closeBundle",[m]),m}throw await i.pluginDriver.hookParallel("closeBundle",[c]),c}try{await i.pluginDriver.hookParallel("buildEnd",[])}catch(c){throw await i.pluginDriver.hookParallel("closeBundle",[c]),c}}),at("BUILD",1);const l={cache:a?i.getCache():void 0,async close(){l.closed||(l.closed=!0,await i.pluginDriver.hookParallel("closeBundle",[]))},closed:!1,async[Symbol.asyncDispose](){await this.close()},generate:async c=>l.closed?oe({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):c1(!1,s,r,c,i),get watchFiles(){return Object.keys(i.watchFiles)},write:async c=>l.closed?oe({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):c1(!0,s,r,c,i)};return s.perf&&(l.getTimings=iy),l}(t,null)}function l1(t,e){for(const[n,s]of t.entries())s.name||(s.name=`${e}${n+1}`)}async function c1(t,e,n,s,r){const{options:i,outputPluginDriver:a,unsetOptions:l}=await async function(c,u,d,m){if(!c)throw new Error("You must supply an options object");const f=await Ao(c.plugins);l1(f,Cl);const g=u.createOutputPluginDriver(f);return{...await Lb(d,m,c,g),outputPluginDriver:g}}(s,r.pluginDriver,e,n);return i1(0,async()=>{const c=new _y(i,l,e,a,r),u=await c.generate(t);if(t){if(ct("WRITE",1),!i.dir&&!i.file)return oe({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.',url:ot(Zs)});await Promise.all(Object.values(u).map(m=>r.fileOperationQueue.run(()=>async function(f,g,{fs:{mkdir:w,writeFile:k}}){const I=At(g.dir||ln(g.file),f.fileName);return await w(ln(I),{recursive:!0}),k(I,f.type==="asset"?f.source:f.code)}(m,i,e)))),await a.hookParallel("writeBundle",[i,u]),at("WRITE",1)}return d=u,{output:Object.values(d).filter(m=>Object.keys(m).length>0).sort((m,f)=>u1(m)-u1(f))};var d})}function Lb(t,e,n,s){return async function(r,i,a){const l=new Set(a),c=r.compact||!1,u=xb(r),d=kb(r,i),m=Eb(r,d,i),f=bb(r,m,i),g=Pb(r),w=_b(r,i),k={amd:wb(r),assetFileNames:r.assetFileNames??"assets/[name]-[hash][extname]",banner:wo(r,"banner"),chunkFileNames:r.chunkFileNames??"[name]-[hash].js",compact:c,dir:Sb(r,f),dynamicImportInCjs:r.dynamicImportInCjs??!0,entryFileNames:Ib(r,l),esModule:r.esModule??"if-default-prop",experimentalMinChunkSize:r.experimentalMinChunkSize??1,exports:vb(r,l),extend:r.extend||!1,externalImportAssertions:w,externalImportAttributes:w,externalLiveBindings:r.externalLiveBindings??!0,file:f,footer:wo(r,"footer"),format:u,freeze:r.freeze??!0,generatedCode:g,globals:r.globals||{},hashCharacters:r.hashCharacters??"base64",hoistTransitiveImports:r.hoistTransitiveImports??!0,importAttributesKey:r.importAttributesKey??"assert",indent:$b(r,c),inlineDynamicImports:d,interop:Nb(r),intro:wo(r,"intro"),manualChunks:Cb(r,d,m),minifyInternalExports:Tb(r,u,c),name:r.name,noConflict:r.noConflict||!1,outro:wo(r,"outro"),paths:r.paths||{},plugins:await Ao(r.plugins),preserveModules:m,preserveModulesRoot:Ab(r),reexportProtoFromExternal:r.reexportProtoFromExternal??!0,sanitizeFileName:typeof r.sanitizeFileName=="function"?r.sanitizeFileName:r.sanitizeFileName===!1?I=>I:yb,sourcemap:r.sourcemap||!1,sourcemapBaseUrl:Db(r),sourcemapDebugIds:r.sourcemapDebugIds||!1,sourcemapExcludeSources:r.sourcemapExcludeSources||!1,sourcemapFile:r.sourcemapFile,sourcemapFileNames:Rb(r,l),sourcemapIgnoreList:typeof r.sourcemapIgnoreList=="function"?r.sourcemapIgnoreList:r.sourcemapIgnoreList===!1?()=>!1:I=>I.includes("node_modules"),sourcemapPathTransform:r.sourcemapPathTransform,strict:r.strict??!0,systemNullSetters:r.systemNullSetters??!0,validate:r.validate||!1,virtualDirname:r.virtualDirname||"_virtual"};return Gp(r,Object.keys(k),"output options",i.onLog),{options:k,unsetOptions:l}}(s.hookReduceArg0Sync("outputOptions",[n],(r,i)=>i||r,r=>{const i=()=>r.error({code:"CANNOT_EMIT_FROM_OPTIONS_HOOK",message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...r,emitFile:i,setAssetSource:i}}),t,e)}var Nr;function u1(t){return t.type==="asset"?Nr.ASSET:t.isEntry?Nr.ENTRY_CHUNK:Nr.SECONDARY_CHUNK}Symbol.asyncDispose??=Symbol("Symbol.asyncDispose"),function(t){t[t.ENTRY_CHUNK=0]="ENTRY_CHUNK",t[t.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",t[t.ASSET=2]="ASSET"}(Nr||(Nr={}));const Mb=t=>t.length!==32||!/^[0-9a-f]{32}$/i.test(t)?!1:t[12]==="4",Fb=()=>typeof globalThis.crypto<"u"?globalThis.crypto:require("node:crypto").webcrypto,Bb=Fb(),h1=()=>{const t=new Uint8Array(16);return Bb.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,Array.from(t,e=>e.toString(16).padStart(2,"0")).join("")},jb=()=>h1().substring(0,8),zb=(t,e)=>{if(t&&t.files){for(const n of Object.keys(t.files))if(t.files[n].name===e)return n}return null},d1=(t,e)=>{const n=zb(t,e);return n&&t&&t.files?t.files[n].text:null},Vb=t=>{const e={};if(!t)return e;for(const n of Object.values(t))e[n.name]=n.text;return e},Ub=t=>Object.entries(t).reduce((e,[n,s])=>(e[jb()]={name:n,text:s},e),{});var S;(function(t){t[t.NONE=0]="NONE";const n=1;t[t._abstract=n]="_abstract";const s=n+1;t[t._accessor=s]="_accessor";const r=s+1;t[t._as=r]="_as";const i=r+1;t[t._assert=i]="_assert";const a=i+1;t[t._asserts=a]="_asserts";const l=a+1;t[t._async=l]="_async";const c=l+1;t[t._await=c]="_await";const u=c+1;t[t._checks=u]="_checks";const d=u+1;t[t._constructor=d]="_constructor";const m=d+1;t[t._declare=m]="_declare";const f=m+1;t[t._enum=f]="_enum";const g=f+1;t[t._exports=g]="_exports";const w=g+1;t[t._from=w]="_from";const k=w+1;t[t._get=k]="_get";const I=k+1;t[t._global=I]="_global";const E=I+1;t[t._implements=E]="_implements";const b=E+1;t[t._infer=b]="_infer";const A=b+1;t[t._interface=A]="_interface";const v=A+1;t[t._is=v]="_is";const $=v+1;t[t._keyof=$]="_keyof";const D=$+1;t[t._mixins=D]="_mixins";const j=D+1;t[t._module=j]="_module";const V=j+1;t[t._namespace=V]="_namespace";const U=V+1;t[t._of=U]="_of";const O=U+1;t[t._opaque=O]="_opaque";const _=O+1;t[t._out=_]="_out";const N=_+1;t[t._override=N]="_override";const C=N+1;t[t._private=C]="_private";const R=C+1;t[t._protected=R]="_protected";const M=R+1;t[t._proto=M]="_proto";const q=M+1;t[t._public=q]="_public";const K=q+1;t[t._readonly=K]="_readonly";const X=K+1;t[t._require=X]="_require";const ae=X+1;t[t._satisfies=ae]="_satisfies";const T=ae+1;t[t._set=T]="_set";const de=T+1;t[t._static=de]="_static";const he=de+1;t[t._symbol=he]="_symbol";const ce=he+1;t[t._type=ce]="_type";const L=ce+1;t[t._unique=L]="_unique";const x=L+1;t[t._using=x]="_using"})(S||(S={}));var o;(function(t){t[t.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const n=16;t[t.IS_KEYWORD=n]="IS_KEYWORD";const s=32;t[t.IS_ASSIGN=s]="IS_ASSIGN";const r=64;t[t.IS_RIGHT_ASSOCIATIVE=r]="IS_RIGHT_ASSOCIATIVE";const i=128;t[t.IS_PREFIX=i]="IS_PREFIX";const a=256;t[t.IS_POSTFIX=a]="IS_POSTFIX";const l=512;t[t.IS_EXPRESSION_START=l]="IS_EXPRESSION_START";const c=512;t[t.num=c]="num";const u=1536;t[t.bigint=u]="bigint";const d=2560;t[t.decimal=d]="decimal";const m=3584;t[t.regexp=m]="regexp";const f=4608;t[t.string=f]="string";const g=5632;t[t.name=g]="name";const w=6144;t[t.eof=w]="eof";const k=7680;t[t.bracketL=k]="bracketL";const I=8192;t[t.bracketR=I]="bracketR";const E=9728;t[t.braceL=E]="braceL";const b=10752;t[t.braceBarL=b]="braceBarL";const A=11264;t[t.braceR=A]="braceR";const v=12288;t[t.braceBarR=v]="braceBarR";const $=13824;t[t.parenL=$]="parenL";const D=14336;t[t.parenR=D]="parenR";const j=15360;t[t.comma=j]="comma";const V=16384;t[t.semi=V]="semi";const U=17408;t[t.colon=U]="colon";const O=18432;t[t.doubleColon=O]="doubleColon";const _=19456;t[t.dot=_]="dot";const N=20480;t[t.question=N]="question";const C=21504;t[t.questionDot=C]="questionDot";const R=22528;t[t.arrow=R]="arrow";const M=23552;t[t.template=M]="template";const q=24576;t[t.ellipsis=q]="ellipsis";const K=25600;t[t.backQuote=K]="backQuote";const X=27136;t[t.dollarBraceL=X]="dollarBraceL";const ae=27648;t[t.at=ae]="at";const T=29184;t[t.hash=T]="hash";const de=29728;t[t.eq=de]="eq";const he=30752;t[t.assign=he]="assign";const ce=32640;t[t.preIncDec=ce]="preIncDec";const L=33664;t[t.postIncDec=L]="postIncDec";const x=34432;t[t.bang=x]="bang";const F=35456;t[t.tilde=F]="tilde";const B=35841;t[t.pipeline=B]="pipeline";const J=36866;t[t.nullishCoalescing=J]="nullishCoalescing";const ee=37890;t[t.logicalOR=ee]="logicalOR";const ie=38915;t[t.logicalAND=ie]="logicalAND";const se=39940;t[t.bitwiseOR=se]="bitwiseOR";const ke=40965;t[t.bitwiseXOR=ke]="bitwiseXOR";const ye=41990;t[t.bitwiseAND=ye]="bitwiseAND";const be=43015;t[t.equality=be]="equality";const fe=44040;t[t.lessThan=fe]="lessThan";const Oe=45064;t[t.greaterThan=Oe]="greaterThan";const qe=46088;t[t.relationalOrEqual=qe]="relationalOrEqual";const ne=47113;t[t.bitShiftL=ne]="bitShiftL";const we=48137;t[t.bitShiftR=we]="bitShiftR";const Z=49802;t[t.plus=Z]="plus";const Se=50826;t[t.minus=Se]="minus";const Xe=51723;t[t.modulo=Xe]="modulo";const lt=52235;t[t.star=lt]="star";const Ye=53259;t[t.slash=Ye]="slash";const bn=54348;t[t.exponent=bn]="exponent";const on=55296;t[t.jsxName=on]="jsxName";const Qr=56320;t[t.jsxText=Qr]="jsxText";const Hc=57344;t[t.jsxEmptyText=Hc]="jsxEmptyText";const Wc=58880;t[t.jsxTagStart=Wc]="jsxTagStart";const Gc=59392;t[t.jsxTagEnd=Gc]="jsxTagEnd";const Xc=60928;t[t.typeParameterStart=Xc]="typeParameterStart";const Kc=61440;t[t.nonNullAssertion=Kc]="nonNullAssertion";const Jc=62480;t[t._break=Jc]="_break";const Yc=63504;t[t._case=Yc]="_case";const Qc=64528;t[t._catch=Qc]="_catch";const Zc=65552;t[t._continue=Zc]="_continue";const eu=66576;t[t._debugger=eu]="_debugger";const tu=67600;t[t._default=tu]="_default";const nu=68624;t[t._do=nu]="_do";const su=69648;t[t._else=su]="_else";const ru=70672;t[t._finally=ru]="_finally";const iu=71696;t[t._for=iu]="_for";const ou=73232;t[t._function=ou]="_function";const au=73744;t[t._if=au]="_if";const lu=74768;t[t._return=lu]="_return";const cu=75792;t[t._switch=cu]="_switch";const uu=77456;t[t._throw=uu]="_throw";const hu=77840;t[t._try=hu]="_try";const du=78864;t[t._var=du]="_var";const pu=79888;t[t._let=pu]="_let";const fu=80912;t[t._const=fu]="_const";const mu=81936;t[t._while=mu]="_while";const gu=82960;t[t._with=gu]="_with";const yu=84496;t[t._new=yu]="_new";const bu=85520;t[t._this=bu]="_this";const xu=86544;t[t._super=xu]="_super";const ku=87568;t[t._class=ku]="_class";const Eu=88080;t[t._extends=Eu]="_extends";const Au=89104;t[t._export=Au]="_export";const wu=90640;t[t._import=wu]="_import";const Su=91664;t[t._yield=Su]="_yield";const Iu=92688;t[t._null=Iu]="_null";const vu=93712;t[t._true=vu]="_true";const _u=94736;t[t._false=_u]="_false";const Pu=95256;t[t._in=Pu]="_in";const $u=96280;t[t._instanceof=$u]="_instanceof";const Nu=97936;t[t._typeof=Nu]="_typeof";const Cu=98960;t[t._void=Cu]="_void";const FS=99984;t[t._delete=FS]="_delete";const BS=100880;t[t._async=BS]="_async";const jS=101904;t[t._get=jS]="_get";const zS=102928;t[t._set=zS]="_set";const VS=103952;t[t._declare=VS]="_declare";const US=104976;t[t._readonly=US]="_readonly";const qS=106e3;t[t._abstract=qS]="_abstract";const HS=107024;t[t._static=HS]="_static";const WS=107536;t[t._public=WS]="_public";const GS=108560;t[t._private=GS]="_private";const XS=109584;t[t._protected=XS]="_protected";const KS=110608;t[t._override=KS]="_override";const JS=112144;t[t._as=JS]="_as";const YS=113168;t[t._enum=YS]="_enum";const QS=114192;t[t._type=QS]="_type";const ZS=115216;t[t._implements=ZS]="_implements"})(o||(o={}));function qb(t){switch(t){case o.num:return"num";case o.bigint:return"bigint";case o.decimal:return"decimal";case o.regexp:return"regexp";case o.string:return"string";case o.name:return"name";case o.eof:return"eof";case o.bracketL:return"[";case o.bracketR:return"]";case o.braceL:return"{";case o.braceBarL:return"{|";case o.braceR:return"}";case o.braceBarR:return"|}";case o.parenL:return"(";case o.parenR:return")";case o.comma:return",";case o.semi:return";";case o.colon:return":";case o.doubleColon:return"::";case o.dot:return".";case o.question:return"?";case o.questionDot:return"?.";case o.arrow:return"=>";case o.template:return"template";case o.ellipsis:return"...";case o.backQuote:return"`";case o.dollarBraceL:return"${";case o.at:return"@";case o.hash:return"#";case o.eq:return"=";case o.assign:return"_=";case o.preIncDec:return"++/--";case o.postIncDec:return"++/--";case o.bang:return"!";case o.tilde:return"~";case o.pipeline:return"|>";case o.nullishCoalescing:return"??";case o.logicalOR:return"||";case o.logicalAND:return"&&";case o.bitwiseOR:return"|";case o.bitwiseXOR:return"^";case o.bitwiseAND:return"&";case o.equality:return"==/!=";case o.lessThan:return"<";case o.greaterThan:return">";case o.relationalOrEqual:return"<=/>=";case o.bitShiftL:return"<<";case o.bitShiftR:return">>/>>>";case o.plus:return"+";case o.minus:return"-";case o.modulo:return"%";case o.star:return"*";case o.slash:return"/";case o.exponent:return"**";case o.jsxName:return"jsxName";case o.jsxText:return"jsxText";case o.jsxEmptyText:return"jsxEmptyText";case o.jsxTagStart:return"jsxTagStart";case o.jsxTagEnd:return"jsxTagEnd";case o.typeParameterStart:return"typeParameterStart";case o.nonNullAssertion:return"nonNullAssertion";case o._break:return"break";case o._case:return"case";case o._catch:return"catch";case o._continue:return"continue";case o._debugger:return"debugger";case o._default:return"default";case o._do:return"do";case o._else:return"else";case o._finally:return"finally";case o._for:return"for";case o._function:return"function";case o._if:return"if";case o._return:return"return";case o._switch:return"switch";case o._throw:return"throw";case o._try:return"try";case o._var:return"var";case o._let:return"let";case o._const:return"const";case o._while:return"while";case o._with:return"with";case o._new:return"new";case o._this:return"this";case o._super:return"super";case o._class:return"class";case o._extends:return"extends";case o._export:return"export";case o._import:return"import";case o._yield:return"yield";case o._null:return"null";case o._true:return"true";case o._false:return"false";case o._in:return"in";case o._instanceof:return"instanceof";case o._typeof:return"typeof";case o._void:return"void";case o._delete:return"delete";case o._async:return"async";case o._get:return"get";case o._set:return"set";case o._declare:return"declare";case o._readonly:return"readonly";case o._abstract:return"abstract";case o._static:return"static";case o._public:return"public";case o._private:return"private";case o._protected:return"protected";case o._override:return"override";case o._as:return"as";case o._enum:return"enum";case o._type:return"type";case o._implements:return"implements";default:return""}}class en{constructor(e,n,s){this.startTokenIndex=e,this.endTokenIndex=n,this.isFunctionScope=s}}class Hb{constructor(e,n,s,r,i,a,l,c,u,d,m,f,g){this.potentialArrowAt=e,this.noAnonFunctionType=n,this.inDisallowConditionalTypesContext=s,this.tokensLength=r,this.scopesLength=i,this.pos=a,this.type=l,this.contextualKeyword=c,this.start=u,this.end=d,this.isType=m,this.scopeDepth=f,this.error=g}}class kt{constructor(){kt.prototype.__init.call(this),kt.prototype.__init2.call(this),kt.prototype.__init3.call(this),kt.prototype.__init4.call(this),kt.prototype.__init5.call(this),kt.prototype.__init6.call(this),kt.prototype.__init7.call(this),kt.prototype.__init8.call(this),kt.prototype.__init9.call(this),kt.prototype.__init10.call(this),kt.prototype.__init11.call(this),kt.prototype.__init12.call(this),kt.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=o.eof}__init8(){this.contextualKeyword=S.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new Hb(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(e){this.potentialArrowAt=e.potentialArrowAt,this.noAnonFunctionType=e.noAnonFunctionType,this.inDisallowConditionalTypesContext=e.inDisallowConditionalTypesContext,this.tokens.length=e.tokensLength,this.scopes.length=e.scopesLength,this.pos=e.pos,this.type=e.type,this.contextualKeyword=e.contextualKeyword,this.start=e.start,this.end=e.end,this.isType=e.isType,this.scopeDepth=e.scopeDepth,this.error=e.error}}var P;(function(t){t[t.backSpace=8]="backSpace";const n=10;t[t.lineFeed=n]="lineFeed";const s=9;t[t.tab=s]="tab";const r=13;t[t.carriageReturn=r]="carriageReturn";const i=14;t[t.shiftOut=i]="shiftOut";const a=32;t[t.space=a]="space";const l=33;t[t.exclamationMark=l]="exclamationMark";const c=34;t[t.quotationMark=c]="quotationMark";const u=35;t[t.numberSign=u]="numberSign";const d=36;t[t.dollarSign=d]="dollarSign";const m=37;t[t.percentSign=m]="percentSign";const f=38;t[t.ampersand=f]="ampersand";const g=39;t[t.apostrophe=g]="apostrophe";const w=40;t[t.leftParenthesis=w]="leftParenthesis";const k=41;t[t.rightParenthesis=k]="rightParenthesis";const I=42;t[t.asterisk=I]="asterisk";const E=43;t[t.plusSign=E]="plusSign";const b=44;t[t.comma=b]="comma";const A=45;t[t.dash=A]="dash";const v=46;t[t.dot=v]="dot";const $=47;t[t.slash=$]="slash";const D=48;t[t.digit0=D]="digit0";const j=49;t[t.digit1=j]="digit1";const V=50;t[t.digit2=V]="digit2";const U=51;t[t.digit3=U]="digit3";const O=52;t[t.digit4=O]="digit4";const _=53;t[t.digit5=_]="digit5";const N=54;t[t.digit6=N]="digit6";const C=55;t[t.digit7=C]="digit7";const R=56;t[t.digit8=R]="digit8";const M=57;t[t.digit9=M]="digit9";const q=58;t[t.colon=q]="colon";const K=59;t[t.semicolon=K]="semicolon";const X=60;t[t.lessThan=X]="lessThan";const ae=61;t[t.equalsTo=ae]="equalsTo";const T=62;t[t.greaterThan=T]="greaterThan";const de=63;t[t.questionMark=de]="questionMark";const he=64;t[t.atSign=he]="atSign";const ce=65;t[t.uppercaseA=ce]="uppercaseA";const L=66;t[t.uppercaseB=L]="uppercaseB";const x=67;t[t.uppercaseC=x]="uppercaseC";const F=68;t[t.uppercaseD=F]="uppercaseD";const B=69;t[t.uppercaseE=B]="uppercaseE";const J=70;t[t.uppercaseF=J]="uppercaseF";const ee=71;t[t.uppercaseG=ee]="uppercaseG";const ie=72;t[t.uppercaseH=ie]="uppercaseH";const se=73;t[t.uppercaseI=se]="uppercaseI";const ke=74;t[t.uppercaseJ=ke]="uppercaseJ";const ye=75;t[t.uppercaseK=ye]="uppercaseK";const be=76;t[t.uppercaseL=be]="uppercaseL";const fe=77;t[t.uppercaseM=fe]="uppercaseM";const Oe=78;t[t.uppercaseN=Oe]="uppercaseN";const qe=79;t[t.uppercaseO=qe]="uppercaseO";const ne=80;t[t.uppercaseP=ne]="uppercaseP";const we=81;t[t.uppercaseQ=we]="uppercaseQ";const Z=82;t[t.uppercaseR=Z]="uppercaseR";const Se=83;t[t.uppercaseS=Se]="uppercaseS";const Xe=84;t[t.uppercaseT=Xe]="uppercaseT";const lt=85;t[t.uppercaseU=lt]="uppercaseU";const Ye=86;t[t.uppercaseV=Ye]="uppercaseV";const bn=87;t[t.uppercaseW=bn]="uppercaseW";const on=88;t[t.uppercaseX=on]="uppercaseX";const Qr=89;t[t.uppercaseY=Qr]="uppercaseY";const Hc=90;t[t.uppercaseZ=Hc]="uppercaseZ";const Wc=91;t[t.leftSquareBracket=Wc]="leftSquareBracket";const Gc=92;t[t.backslash=Gc]="backslash";const Xc=93;t[t.rightSquareBracket=Xc]="rightSquareBracket";const Kc=94;t[t.caret=Kc]="caret";const Jc=95;t[t.underscore=Jc]="underscore";const Yc=96;t[t.graveAccent=Yc]="graveAccent";const Qc=97;t[t.lowercaseA=Qc]="lowercaseA";const Zc=98;t[t.lowercaseB=Zc]="lowercaseB";const eu=99;t[t.lowercaseC=eu]="lowercaseC";const tu=100;t[t.lowercaseD=tu]="lowercaseD";const nu=101;t[t.lowercaseE=nu]="lowercaseE";const su=102;t[t.lowercaseF=su]="lowercaseF";const ru=103;t[t.lowercaseG=ru]="lowercaseG";const iu=104;t[t.lowercaseH=iu]="lowercaseH";const ou=105;t[t.lowercaseI=ou]="lowercaseI";const au=106;t[t.lowercaseJ=au]="lowercaseJ";const lu=107;t[t.lowercaseK=lu]="lowercaseK";const cu=108;t[t.lowercaseL=cu]="lowercaseL";const uu=109;t[t.lowercaseM=uu]="lowercaseM";const hu=110;t[t.lowercaseN=hu]="lowercaseN";const du=111;t[t.lowercaseO=du]="lowercaseO";const pu=112;t[t.lowercaseP=pu]="lowercaseP";const fu=113;t[t.lowercaseQ=fu]="lowercaseQ";const mu=114;t[t.lowercaseR=mu]="lowercaseR";const gu=115;t[t.lowercaseS=gu]="lowercaseS";const yu=116;t[t.lowercaseT=yu]="lowercaseT";const bu=117;t[t.lowercaseU=bu]="lowercaseU";const xu=118;t[t.lowercaseV=xu]="lowercaseV";const ku=119;t[t.lowercaseW=ku]="lowercaseW";const Eu=120;t[t.lowercaseX=Eu]="lowercaseX";const Au=121;t[t.lowercaseY=Au]="lowercaseY";const wu=122;t[t.lowercaseZ=wu]="lowercaseZ";const Su=123;t[t.leftCurlyBrace=Su]="leftCurlyBrace";const Iu=124;t[t.verticalBar=Iu]="verticalBar";const vu=125;t[t.rightCurlyBrace=vu]="rightCurlyBrace";const _u=126;t[t.tilde=_u]="tilde";const Pu=160;t[t.nonBreakingSpace=Pu]="nonBreakingSpace";const $u=5760;t[t.oghamSpaceMark=$u]="oghamSpaceMark";const Nu=8232;t[t.lineSeparator=Nu]="lineSeparator";const Cu=8233;t[t.paragraphSeparator=Cu]="paragraphSeparator"})(P||(P={}));let So,De,Be,h,re,p1;function Cr(){return p1++}function Wb(t){if("pos"in t){const e=Xb(t.pos);t.message+=` (${e.line}:${e.column})`,t.loc=e}return t}class Gb{constructor(e,n){this.line=e,this.column=n}}function Xb(t){let e=1,n=1;for(let s=0;s<t;s++)re.charCodeAt(s)===P.lineFeed?(e++,n=1):n++;return new Gb(e,n)}function Kb(t,e,n,s){re=t,h=new kt,p1=1,So=e,De=n,Be=s}function me(t){return h.contextualKeyword===t}function Bl(t){const e=Rr();return e.type===o.name&&e.contextualKeyword===t}function ut(t){return h.contextualKeyword===t&&z(o.name)}function rt(t){ut(t)||Ie()}function Ct(){return y(o.eof)||y(o.braceR)||Et()}function Et(){const t=h.tokens[h.tokens.length-1],e=t?t.end:0;for(let n=e;n<h.start;n++){const s=re.charCodeAt(n);if(s===P.lineFeed||s===P.carriageReturn||s===8232||s===8233)return!0}return!1}function f1(){const t=jl();for(let e=h.end;e<t;e++){const n=re.charCodeAt(e);if(n===P.lineFeed||n===P.carriageReturn||n===8232||n===8233)return!0}return!1}function tn(){return z(o.semi)||Ct()}function Je(){tn()||Ie('Unexpected token, expected ";"')}function H(t){z(t)||Ie(`Unexpected token, expected "${qb(t)}"`)}function Ie(t="Unexpected token",e=h.start){if(h.error)return;const n=new SyntaxError(t);n.pos=e,h.error=n,h.pos=re.length,ve(o.eof)}const m1=[9,11,12,P.space,P.nonBreakingSpace,P.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],g1=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,y1=new Uint8Array(65536);for(const t of m1)y1[t]=1;function Jb(t){if(t<48)return t===36;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return t===95;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const jt=new Uint8Array(65536);for(let t=0;t<128;t++)jt[t]=Jb(t)?1:0;for(let t=128;t<65536;t++)jt[t]=1;for(const t of m1)jt[t]=0;jt[8232]=0,jt[8233]=0;const Tr=jt.slice();for(let t=P.digit0;t<=P.digit9;t++)Tr[t]=0;const b1=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-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,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(o._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function Yb(){let t=0,e=0,n=h.pos;for(;n<re.length&&(e=re.charCodeAt(n),!(e<P.lowercaseA||e>P.lowercaseZ));){const r=b1[t+(e-P.lowercaseA)+1];if(r===-1)break;t=r,n++}const s=b1[t];if(s>-1&&!jt[e]){h.pos=n,s&1?ve(s>>>1):ve(o.name,s>>>1);return}for(;n<re.length;){const r=re.charCodeAt(n);if(jt[r])n++;else if(r===P.backslash){if(n+=2,re.charCodeAt(n)===P.leftCurlyBrace){for(;n<re.length&&re.charCodeAt(n)!==P.rightCurlyBrace;)n++;n++}}else if(r===P.atSign&&re.charCodeAt(n+1)===P.atSign)n+=2;else break}h.pos=n,ve(o.name)}var ge;(function(t){t[t.Access=0]="Access";const n=1;t[t.ExportAccess=n]="ExportAccess";const s=n+1;t[t.TopLevelDeclaration=s]="TopLevelDeclaration";const r=s+1;t[t.FunctionScopedDeclaration=r]="FunctionScopedDeclaration";const i=r+1;t[t.BlockScopedDeclaration=i]="BlockScopedDeclaration";const a=i+1;t[t.ObjectShorthandTopLevelDeclaration=a]="ObjectShorthandTopLevelDeclaration";const l=a+1;t[t.ObjectShorthandFunctionScopedDeclaration=l]="ObjectShorthandFunctionScopedDeclaration";const c=l+1;t[t.ObjectShorthandBlockScopedDeclaration=c]="ObjectShorthandBlockScopedDeclaration";const u=c+1;t[t.ObjectShorthand=u]="ObjectShorthand";const d=u+1;t[t.ImportDeclaration=d]="ImportDeclaration";const m=d+1;t[t.ObjectKey=m]="ObjectKey";const f=m+1;t[t.ImportAccess=f]="ImportAccess"})(ge||(ge={}));var zt;(function(t){t[t.NoChildren=0]="NoChildren";const n=1;t[t.OneChild=n]="OneChild";const s=n+1;t[t.StaticChildren=s]="StaticChildren";const r=s+1;t[t.KeyAfterPropSpread=r]="KeyAfterPropSpread"})(zt||(zt={}));function x1(t){const e=t.identifierRole;return e===ge.TopLevelDeclaration||e===ge.FunctionScopedDeclaration||e===ge.BlockScopedDeclaration||e===ge.ObjectShorthandTopLevelDeclaration||e===ge.ObjectShorthandFunctionScopedDeclaration||e===ge.ObjectShorthandBlockScopedDeclaration}function Qb(t){const e=t.identifierRole;return e===ge.FunctionScopedDeclaration||e===ge.BlockScopedDeclaration||e===ge.ObjectShorthandFunctionScopedDeclaration||e===ge.ObjectShorthandBlockScopedDeclaration}function k1(t){const e=t.identifierRole;return e===ge.TopLevelDeclaration||e===ge.ObjectShorthandTopLevelDeclaration||e===ge.ImportDeclaration}function Zb(t){const e=t.identifierRole;return e===ge.TopLevelDeclaration||e===ge.BlockScopedDeclaration||e===ge.ObjectShorthandTopLevelDeclaration||e===ge.ObjectShorthandBlockScopedDeclaration}function ex(t){const e=t.identifierRole;return e===ge.FunctionScopedDeclaration||e===ge.ObjectShorthandFunctionScopedDeclaration}function tx(t){return t.identifierRole===ge.ObjectShorthandTopLevelDeclaration||t.identifierRole===ge.ObjectShorthandBlockScopedDeclaration||t.identifierRole===ge.ObjectShorthandFunctionScopedDeclaration}class Io{constructor(){this.type=h.type,this.contextualKeyword=h.contextualKeyword,this.start=h.start,this.end=h.end,this.scopeDepth=h.scopeDepth,this.isType=h.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function W(){h.tokens.push(new Io),S1()}function Pn(){h.tokens.push(new Io),h.start=h.pos,bx()}function nx(){h.type===o.assign&&--h.pos,mx()}function Ne(t){for(let n=h.tokens.length-t;n<h.tokens.length;n++)h.tokens[n].isType=!0;const e=h.isType;return h.isType=!0,e}function $e(t){h.isType=t}function z(t){return y(t)?(W(),!0):!1}function E1(t){const e=h.isType;h.isType=!0,z(t),h.isType=e}function y(t){return h.type===t}function et(){const t=h.snapshot();W();const e=h.type;return h.restoreFromSnapshot(t),e}class sx{constructor(e,n){this.type=e,this.contextualKeyword=n}}function Rr(){const t=h.snapshot();W();const e=h.type,n=h.contextualKeyword;return h.restoreFromSnapshot(t),new sx(e,n)}function jl(){return A1(h.pos)}function A1(t){g1.lastIndex=t;const e=g1.exec(re);return t+e[0].length}function w1(){return re.charCodeAt(jl())}function S1(){if(v1(),h.start=h.pos,h.pos>=re.length){const t=h.tokens;t.length>=2&&t[t.length-1].start>=re.length&&t[t.length-2].start>=re.length&&Ie("Unexpectedly reached the end of input."),ve(o.eof);return}rx(re.charCodeAt(h.pos))}function rx(t){Tr[t]||t===P.backslash||t===P.atSign&&re.charCodeAt(h.pos+1)===P.atSign?Yb():$1(t)}function ix(){for(;re.charCodeAt(h.pos)!==P.asterisk||re.charCodeAt(h.pos+1)!==P.slash;)if(h.pos++,h.pos>re.length){Ie("Unterminated comment",h.pos-2);return}h.pos+=2}function I1(t){let e=re.charCodeAt(h.pos+=t);if(h.pos<re.length)for(;e!==P.lineFeed&&e!==P.carriageReturn&&e!==P.lineSeparator&&e!==P.paragraphSeparator&&++h.pos<re.length;)e=re.charCodeAt(h.pos)}function v1(){for(;h.pos<re.length;){const t=re.charCodeAt(h.pos);switch(t){case P.carriageReturn:re.charCodeAt(h.pos+1)===P.lineFeed&&++h.pos;case P.lineFeed:case P.lineSeparator:case P.paragraphSeparator:++h.pos;break;case P.slash:switch(re.charCodeAt(h.pos+1)){case P.asterisk:h.pos+=2,ix();break;case P.slash:I1(2);break;default:return}break;default:if(y1[t])++h.pos;else return}}}function ve(t,e=S.NONE){h.end=h.pos,h.type=t,h.contextualKeyword=e}function ox(){const t=re.charCodeAt(h.pos+1);if(t>=P.digit0&&t<=P.digit9){N1(!0);return}t===P.dot&&re.charCodeAt(h.pos+2)===P.dot?(h.pos+=3,ve(o.ellipsis)):(++h.pos,ve(o.dot))}function ax(){re.charCodeAt(h.pos+1)===P.equalsTo?je(o.assign,2):je(o.slash,1)}function lx(t){let e=t===P.asterisk?o.star:o.modulo,n=1,s=re.charCodeAt(h.pos+1);t===P.asterisk&&s===P.asterisk&&(n++,s=re.charCodeAt(h.pos+2),e=o.exponent),s===P.equalsTo&&re.charCodeAt(h.pos+2)!==P.greaterThan&&(n++,e=o.assign),je(e,n)}function cx(t){const e=re.charCodeAt(h.pos+1);if(e===t){re.charCodeAt(h.pos+2)===P.equalsTo?je(o.assign,3):je(t===P.verticalBar?o.logicalOR:o.logicalAND,2);return}if(t===P.verticalBar){if(e===P.greaterThan){je(o.pipeline,2);return}else if(e===P.rightCurlyBrace&&Be){je(o.braceBarR,2);return}}if(e===P.equalsTo){je(o.assign,2);return}je(t===P.verticalBar?o.bitwiseOR:o.bitwiseAND,1)}function ux(){re.charCodeAt(h.pos+1)===P.equalsTo?je(o.assign,2):je(o.bitwiseXOR,1)}function hx(t){const e=re.charCodeAt(h.pos+1);if(e===t){je(o.preIncDec,2);return}e===P.equalsTo?je(o.assign,2):t===P.plusSign?je(o.plus,1):je(o.minus,1)}function dx(){const t=re.charCodeAt(h.pos+1);if(t===P.lessThan){if(re.charCodeAt(h.pos+2)===P.equalsTo){je(o.assign,3);return}h.isType?je(o.lessThan,1):je(o.bitShiftL,2);return}t===P.equalsTo?je(o.relationalOrEqual,2):je(o.lessThan,1)}function _1(){if(h.isType){je(o.greaterThan,1);return}const t=re.charCodeAt(h.pos+1);if(t===P.greaterThan){const e=re.charCodeAt(h.pos+2)===P.greaterThan?3:2;if(re.charCodeAt(h.pos+e)===P.equalsTo){je(o.assign,e+1);return}je(o.bitShiftR,e);return}t===P.equalsTo?je(o.relationalOrEqual,2):je(o.greaterThan,1)}function P1(){h.type===o.greaterThan&&(h.pos-=1,_1())}function px(t){const e=re.charCodeAt(h.pos+1);if(e===P.equalsTo){je(o.equality,re.charCodeAt(h.pos+2)===P.equalsTo?3:2);return}if(t===P.equalsTo&&e===P.greaterThan){h.pos+=2,ve(o.arrow);return}je(t===P.equalsTo?o.eq:o.bang,1)}function fx(){const t=re.charCodeAt(h.pos+1),e=re.charCodeAt(h.pos+2);t===P.questionMark&&!(Be&&h.isType)?e===P.equalsTo?je(o.assign,3):je(o.nullishCoalescing,2):t===P.dot&&!(e>=P.digit0&&e<=P.digit9)?(h.pos+=2,ve(o.questionDot)):(++h.pos,ve(o.question))}function $1(t){switch(t){case P.numberSign:++h.pos,ve(o.hash);return;case P.dot:ox();return;case P.leftParenthesis:++h.pos,ve(o.parenL);return;case P.rightParenthesis:++h.pos,ve(o.parenR);return;case P.semicolon:++h.pos,ve(o.semi);return;case P.comma:++h.pos,ve(o.comma);return;case P.leftSquareBracket:++h.pos,ve(o.bracketL);return;case P.rightSquareBracket:++h.pos,ve(o.bracketR);return;case P.leftCurlyBrace:Be&&re.charCodeAt(h.pos+1)===P.verticalBar?je(o.braceBarL,2):(++h.pos,ve(o.braceL));return;case P.rightCurlyBrace:++h.pos,ve(o.braceR);return;case P.colon:re.charCodeAt(h.pos+1)===P.colon?je(o.doubleColon,2):(++h.pos,ve(o.colon));return;case P.questionMark:fx();return;case P.atSign:++h.pos,ve(o.at);return;case P.graveAccent:++h.pos,ve(o.backQuote);return;case P.digit0:{const e=re.charCodeAt(h.pos+1);if(e===P.lowercaseX||e===P.uppercaseX||e===P.lowercaseO||e===P.uppercaseO||e===P.lowercaseB||e===P.uppercaseB){gx();return}}case P.digit1:case P.digit2:case P.digit3:case P.digit4:case P.digit5:case P.digit6:case P.digit7:case P.digit8:case P.digit9:N1(!1);return;case P.quotationMark:case P.apostrophe:yx(t);return;case P.slash:ax();return;case P.percentSign:case P.asterisk:lx(t);return;case P.verticalBar:case P.ampersand:cx(t);return;case P.caret:ux();return;case P.plusSign:case P.dash:hx(t);return;case P.lessThan:dx();return;case P.greaterThan:_1();return;case P.equalsTo:case P.exclamationMark:px(t);return;case P.tilde:je(o.tilde,1);return}Ie(`Unexpected character '${String.fromCharCode(t)}'`,h.pos)}function je(t,e){h.pos+=e,ve(t)}function mx(){const t=h.pos;let e=!1,n=!1;for(;;){if(h.pos>=re.length){Ie("Unterminated regular expression",t);return}const s=re.charCodeAt(h.pos);if(e)e=!1;else{if(s===P.leftSquareBracket)n=!0;else if(s===P.rightSquareBracket&&n)n=!1;else if(s===P.slash&&!n)break;e=s===P.backslash}++h.pos}++h.pos,xx(),ve(o.regexp)}function zl(){for(;;){const t=re.charCodeAt(h.pos);if(t>=P.digit0&&t<=P.digit9||t===P.underscore)h.pos++;else break}}function gx(){for(h.pos+=2;;){const e=re.charCodeAt(h.pos);if(e>=P.digit0&&e<=P.digit9||e>=P.lowercaseA&&e<=P.lowercaseF||e>=P.uppercaseA&&e<=P.uppercaseF||e===P.underscore)h.pos++;else break}re.charCodeAt(h.pos)===P.lowercaseN?(++h.pos,ve(o.bigint)):ve(o.num)}function N1(t){let e=!1,n=!1;t||zl();let s=re.charCodeAt(h.pos);if(s===P.dot&&(++h.pos,zl(),s=re.charCodeAt(h.pos)),(s===P.uppercaseE||s===P.lowercaseE)&&(s=re.charCodeAt(++h.pos),(s===P.plusSign||s===P.dash)&&++h.pos,zl(),s=re.charCodeAt(h.pos)),s===P.lowercaseN?(++h.pos,e=!0):s===P.lowercaseM&&(++h.pos,n=!0),e){ve(o.bigint);return}if(n){ve(o.decimal);return}ve(o.num)}function yx(t){for(h.pos++;;){if(h.pos>=re.length){Ie("Unterminated string constant");return}const e=re.charCodeAt(h.pos);if(e===P.backslash)h.pos++;else if(e===t)break;h.pos++}h.pos++,ve(o.string)}function bx(){for(;;){if(h.pos>=re.length){Ie("Unterminated template");return}const t=re.charCodeAt(h.pos);if(t===P.graveAccent||t===P.dollarSign&&re.charCodeAt(h.pos+1)===P.leftCurlyBrace){if(h.pos===h.start&&y(o.template))if(t===P.dollarSign){h.pos+=2,ve(o.dollarBraceL);return}else{++h.pos,ve(o.backQuote);return}ve(o.template);return}t===P.backslash&&h.pos++,h.pos++}}function xx(){for(;h.pos<re.length;){const t=re.charCodeAt(h.pos);if(jt[t])h.pos++;else if(t===P.backslash){if(h.pos+=2,re.charCodeAt(h.pos)===P.leftCurlyBrace){for(;h.pos<re.length&&re.charCodeAt(h.pos)!==P.rightCurlyBrace;)h.pos++;h.pos++}}else break}}function Dr(t,e=t.currentIndex()){let n=e+1;if(vo(t,n)){const s=t.identifierNameAtIndex(e);return{isType:!1,leftName:s,rightName:s,endIndex:n}}if(n++,vo(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,vo(t,n))return{isType:!1,leftName:t.identifierNameAtIndex(e),rightName:t.identifierNameAtIndex(e+2),endIndex:n};if(n++,vo(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${e}`)}function vo(t,e){const n=t.tokens[e];return n.type===o.braceR||n.type===o.comma}var kx=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp"," "],["iexcl","¡"],["cent","¢"],["pound","£"],["curren","¤"],["yen","¥"],["brvbar","¦"],["sect","§"],["uml","¨"],["copy","©"],["ordf","ª"],["laquo","«"],["not","¬"],["shy",""],["reg","®"],["macr","¯"],["deg","°"],["plusmn","±"],["sup2","²"],["sup3","³"],["acute","´"],["micro","µ"],["para","¶"],["middot","·"],["cedil","¸"],["sup1","¹"],["ordm","º"],["raquo","»"],["frac14","¼"],["frac12","½"],["frac34","¾"],["iquest","¿"],["Agrave","À"],["Aacute","Á"],["Acirc","Â"],["Atilde","Ã"],["Auml","Ä"],["Aring","Å"],["AElig","Æ"],["Ccedil","Ç"],["Egrave","È"],["Eacute","É"],["Ecirc","Ê"],["Euml","Ë"],["Igrave","Ì"],["Iacute","Í"],["Icirc","Î"],["Iuml","Ï"],["ETH","Ð"],["Ntilde","Ñ"],["Ograve","Ò"],["Oacute","Ó"],["Ocirc","Ô"],["Otilde","Õ"],["Ouml","Ö"],["times","×"],["Oslash","Ø"],["Ugrave","Ù"],["Uacute","Ú"],["Ucirc","Û"],["Uuml","Ü"],["Yacute","Ý"],["THORN","Þ"],["szlig","ß"],["agrave","à"],["aacute","á"],["acirc","â"],["atilde","ã"],["auml","ä"],["aring","å"],["aelig","æ"],["ccedil","ç"],["egrave","è"],["eacute","é"],["ecirc","ê"],["euml","ë"],["igrave","ì"],["iacute","í"],["icirc","î"],["iuml","ï"],["eth","ð"],["ntilde","ñ"],["ograve","ò"],["oacute","ó"],["ocirc","ô"],["otilde","õ"],["ouml","ö"],["divide","÷"],["oslash","ø"],["ugrave","ù"],["uacute","ú"],["ucirc","û"],["uuml","ü"],["yacute","ý"],["thorn","þ"],["yuml","ÿ"],["OElig","Œ"],["oelig","œ"],["Scaron","Š"],["scaron","š"],["Yuml","Ÿ"],["fnof","ƒ"],["circ","ˆ"],["tilde","˜"],["Alpha","Α"],["Beta","Β"],["Gamma","Γ"],["Delta","Δ"],["Epsilon","Ε"],["Zeta","Ζ"],["Eta","Η"],["Theta","Θ"],["Iota","Ι"],["Kappa","Κ"],["Lambda","Λ"],["Mu","Μ"],["Nu","Ν"],["Xi","Ξ"],["Omicron","Ο"],["Pi","Π"],["Rho","Ρ"],["Sigma","Σ"],["Tau","Τ"],["Upsilon","Υ"],["Phi","Φ"],["Chi","Χ"],["Psi","Ψ"],["Omega","Ω"],["alpha","α"],["beta","β"],["gamma","γ"],["delta","δ"],["epsilon","ε"],["zeta","ζ"],["eta","η"],["theta","θ"],["iota","ι"],["kappa","κ"],["lambda","λ"],["mu","μ"],["nu","ν"],["xi","ξ"],["omicron","ο"],["pi","π"],["rho","ρ"],["sigmaf","ς"],["sigma","σ"],["tau","τ"],["upsilon","υ"],["phi","φ"],["chi","χ"],["psi","ψ"],["omega","ω"],["thetasym","ϑ"],["upsih","ϒ"],["piv","ϖ"],["ensp"," "],["emsp"," "],["thinsp"," "],["zwnj",""],["zwj",""],["lrm",""],["rlm",""],["ndash","–"],["mdash","—"],["lsquo","‘"],["rsquo","’"],["sbquo","‚"],["ldquo","“"],["rdquo","”"],["bdquo","„"],["dagger","†"],["Dagger","‡"],["bull","•"],["hellip","…"],["permil","‰"],["prime","′"],["Prime","″"],["lsaquo","‹"],["rsaquo","›"],["oline","‾"],["frasl","⁄"],["euro","€"],["image","ℑ"],["weierp","℘"],["real","ℜ"],["trade","™"],["alefsym","ℵ"],["larr","←"],["uarr","↑"],["rarr","→"],["darr","↓"],["harr","↔"],["crarr","↵"],["lArr","⇐"],["uArr","⇑"],["rArr","⇒"],["dArr","⇓"],["hArr","⇔"],["forall","∀"],["part","∂"],["exist","∃"],["empty","∅"],["nabla","∇"],["isin","∈"],["notin","∉"],["ni","∋"],["prod","∏"],["sum","∑"],["minus","−"],["lowast","∗"],["radic","√"],["prop","∝"],["infin","∞"],["ang","∠"],["and","∧"],["or","∨"],["cap","∩"],["cup","∪"],["int","∫"],["there4","∴"],["sim","∼"],["cong","≅"],["asymp","≈"],["ne","≠"],["equiv","≡"],["le","≤"],["ge","≥"],["sub","⊂"],["sup","⊃"],["nsub","⊄"],["sube","⊆"],["supe","⊇"],["oplus","⊕"],["otimes","⊗"],["perp","⊥"],["sdot","⋅"],["lceil","⌈"],["rceil","⌉"],["lfloor","⌊"],["rfloor","⌋"],["lang","〈"],["rang","〉"],["loz","◊"],["spades","♠"],["clubs","♣"],["hearts","♥"],["diams","♦"]]);function C1(t){const[e,n]=T1(t.jsxPragma||"React.createElement"),[s,r]=T1(t.jsxFragmentPragma||"React.Fragment");return{base:e,suffix:n,fragmentBase:s,fragmentSuffix:r}}function T1(t){let e=t.indexOf(".");return e===-1&&(e=t.length),[t.slice(0,e),t.slice(e)]}class Vt{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class rs extends Vt{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(e,n,s,r,i){super(),this.rootTransformer=e,this.tokens=n,this.importProcessor=s,this.nameManager=r,this.options=i,rs.prototype.__init.call(this),rs.prototype.__init2.call(this),rs.prototype.__init3.call(this),rs.prototype.__init4.call(this),rs.prototype.__init5.call(this),this.jsxPragmaInfo=C1(i),this.isAutomaticRuntime=i.jsxRuntime==="automatic",this.jsxImportSource=i.jsxImportSource||"react"}process(){return this.tokens.matches1(o.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let e="";if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[n,s]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${s} = require("${n}");`;else{const{createElement:n,...s}=this.esmAutomaticImportNameResolutions;n&&(e+=`import {createElement as ${n}} from "${this.jsxImportSource}";`);const r=Object.entries(s).map(([i,a])=>`${i} as ${a}`).join(", ");if(r){const i=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");e+=`import {${r}} from "${i}";`}}return e}processJSXTag(){const{jsxRole:e,start:n}=this.tokens.currentToken(),s=this.options.production?null:this.getElementLocationCode(n);this.isAutomaticRuntime&&e!==zt.KeyAfterPropSpread?this.transformTagToJSXFunc(s,e):this.transformTagToCreateElement(s)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){const n=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<n.length;)n[this.lastIndex]===`
|
|
62
|
+
`&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(e,n){const s=n===zt.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(s));let r=null;if(this.tokens.matches1(o.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(n);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),r=this.processProps(!0),this.tokens.matches2(o.slash,o.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(o.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(n);else throw new Error("Expected either /> or > at the end of the tag.");r&&this.tokens.appendCode(`, ${r}`)}for(this.options.production||(r===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${s}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(o.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(o.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),!this.tokens.matches2(o.slash,o.jsxTagEnd))if(this.tokens.matches1(o.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(o.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,n){const s=this.claimAutoImportedName(e,n);return this.importProcessor?`${s}.call(void 0, `:`${s}(`}claimAutoImportedName(e,n){if(this.importProcessor){const s=this.jsxImportSource+n;return this.cjsAutomaticModuleNameResolutions[s]||(this.cjsAutomaticModuleNameResolutions[s]=this.importProcessor.getFreeIdentifierForPath(s)),`${this.cjsAutomaticModuleNameResolutions[s]}.${e}`}else return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,o.jsxName,o.jsxName)&&!this.tokens.matches2AtIndex(e-1,o.greaterThan,o.jsxName)&&!this.tokens.matches1AtIndex(e,o.braceL)&&!this.tokens.matches1AtIndex(e,o.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,o.slash,o.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){const n=this.tokens.identifierName();R1(n)&&this.tokens.replaceToken(`'${n}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(e){const n=this.options.production?"":`__self: this, __source: ${this.getDevSource(e)}`;if(!this.tokens.matches1(o.jsxName)&&!this.tokens.matches1(o.braceL)){n?this.tokens.appendCode(`, {${n}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),n?this.tokens.appendCode(` ${n}}`):this.tokens.appendCode("}")}processProps(e){let n=null;for(;;){if(this.tokens.matches2(o.jsxName,o.eq)){const s=this.tokens.identifierName();if(e&&s==="key"){n!==null&&this.tokens.appendCode(n.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const r=this.tokens.snapshot();this.processPropValue(),n=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(r);continue}else this.processPropName(s),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(o.jsxName)){const s=this.tokens.identifierName();this.processPropName(s),this.tokens.appendCode(": true")}else if(this.tokens.matches1(o.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return n}processPropName(e){e.includes("-")?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(o.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(o.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const e=this.tokens.currentToken(),n=this.tokens.code.slice(e.start+1,e.end-1),s=D1(n),r=Ax(n);this.tokens.replaceToken(r+s)}processAutomaticChildrenAndEndProps(e){e===zt.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(e===zt.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(e){let n=e;for(;;){if(this.tokens.matches2(o.jsxTagStart,o.slash))return;let s=!1;if(this.tokens.matches1(o.braceL))this.tokens.matches2(o.braceL,o.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(n?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),s=!0);else if(this.tokens.matches1(o.jsxTagStart))this.tokens.appendCode(n?", ":""),this.processJSXTag(),s=!0;else if(this.tokens.matches1(o.jsxText)||this.tokens.matches1(o.jsxEmptyText))s=this.processChildTextElement(n);else throw new Error("Unexpected token when processing JSX children.");s&&(n=!0)}}processChildTextElement(e){const n=this.tokens.currentToken(),s=this.tokens.code.slice(n.start,n.end),r=D1(s),i=Ex(s);return i==='""'?(this.tokens.replaceToken(r),!1):(this.tokens.replaceToken(`${e?", ":""}${i}${r}`),!0)}getDevSource(e){return`{fileName: ${this.getFilenameVarName()}, ${e}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function R1(t){const e=t.charCodeAt(0);return e>=P.lowercaseA&&e<=P.lowercaseZ}function Ex(t){let e="",n="",s=!1,r=!1;for(let i=0;i<t.length;i++){const a=t[i];if(a===" "||a===" "||a==="\r")s||(n+=a);else if(a===`
|
|
63
63
|
`)n="",s=!0;else{if(r&&s&&(e+=" "),e+=n,n="",a==="&"){const{entity:l,newI:c}=O1(t,i+1);i=c-1,e+=l}else e+=a;r=!0,s=!1}}return s||(e+=n),JSON.stringify(e)}function D1(t){let e=0,n=0;for(const s of t)s===`
|
|
64
64
|
`?(e++,n=0):s===" "&&n++;return`
|
|
65
|
-
`.repeat(e)+" ".repeat(n)}function
|
|
65
|
+
`.repeat(e)+" ".repeat(n)}function Ax(t){let e="";for(let n=0;n<t.length;n++){const s=t[n];if(s===`
|
|
66
66
|
`)if(/\s/.test(t[n+1]))for(e+=" ";n<t.length&&/\s/.test(t[n+1]);)n++;else e+=`
|
|
67
|
-
`;else if(s==="&"){const{entity:r,newI:i}=O1(t,n+1);e+=r,n=i-1}else e+=s}return JSON.stringify(e)}function O1(t,e){let n="",s=0,r,i=e;if(t[i]==="#"){let a=10;i++;let l;if(t[i]==="x")for(a=16,i++,l=i;i<t.length&&wx(t.charCodeAt(i));)i++;else for(l=i;i<t.length&&Ax(t.charCodeAt(i));)i++;if(t[i]===";"){const c=t.slice(l,i);c&&(i++,r=String.fromCodePoint(parseInt(c,a)))}}else for(;i<t.length&&s++<10;){const a=t[i];if(i++,a===";"){r=xx.get(n);break}n+=a}return r?{entity:r,newI:i}:{entity:"&",newI:e}}function Ax(t){return t>=P.digit0&&t<=P.digit9}function wx(t){return t>=P.digit0&&t<=P.digit9||t>=P.lowercaseA&&t<=P.lowercaseF||t>=P.uppercaseA&&t<=P.uppercaseF}function L1(t,e){const n=C1(e),s=new Set;for(let r=0;r<t.tokens.length;r++){const i=t.tokens[r];if(i.type===o.name&&!i.isType&&(i.identifierRole===ge.Access||i.identifierRole===ge.ObjectShorthand||i.identifierRole===ge.ExportAccess)&&!i.shadowsGlobal&&s.add(t.identifierNameForToken(i)),i.type===o.jsxTagStart&&s.add(n.base),i.type===o.jsxTagStart&&r+1<t.tokens.length&&t.tokens[r+1].type===o.jsxTagEnd&&(s.add(n.base),s.add(n.fragmentBase)),i.type===o.jsxName&&i.identifierRole===ge.Access){const a=t.identifierNameForToken(i);(!R1(a)||t.tokens[r+1].type===o.dot)&&s.add(t.identifierNameForToken(i))}}return s}class is{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(e,n,s,r,i,a,l){this.nameManager=e,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=s,this.options=r,this.isTypeScriptTransformEnabled=i,this.keepUnusedImports=a,this.helperManager=l,is.prototype.__init.call(this),is.prototype.__init2.call(this),is.prototype.__init3.call(this),is.prototype.__init4.call(this),is.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,o._import)&&!this.tokens.matches3AtIndex(e,o._import,o.name,o.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,o._export)&&!this.tokens.matches2AtIndex(e,o._export,o.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=L1(this.tokens,this.options);for(const[e,n]of this.importInfoByPath.entries()){if(n.hasBareImport||n.hasStarExport||n.exportStarNames.length>0||n.namedExports.length>0)continue;[...n.defaultNames,...n.wildcardNames,...n.namedImports.map(({localName:r})=>r)].every(r=>this.shouldAutomaticallyElideImportedName(r))&&this.importsToReplace.set(e,"")}}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(const[e,n]of this.importInfoByPath.entries()){const{defaultNames:s,wildcardNames:r,namedImports:i,namedExports:a,exportStarNames:l,hasStarExport:c}=n;if(s.length===0&&r.length===0&&i.length===0&&a.length===0&&l.length===0&&!c){this.importsToReplace.set(e,`require('${e}');`);continue}const u=this.getFreeIdentifierForPath(e);let d;this.enableLegacyTypeScriptModuleInterop?d=u:d=r.length>0?r[0]:this.getFreeIdentifierForPath(e);let m=`var ${u} = require('${e}');`;if(r.length>0)for(const f of r){const g=this.enableLegacyTypeScriptModuleInterop?u:`${this.helperManager.getHelperName("interopRequireWildcard")}(${u})`;m+=` var ${f} = ${g};`}else l.length>0&&d!==u?m+=` var ${d} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${u});`:s.length>0&&d!==u&&(m+=` var ${d} = ${this.helperManager.getHelperName("interopRequireDefault")}(${u});`);for(const{importedName:f,localName:g}of a)m+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${u}, '${g}', '${f}');`;for(const f of l)m+=` exports.${f} = ${d};`;c&&(m+=` ${this.helperManager.getHelperName("createStarExport")}(${u});`),this.importsToReplace.set(e,m);for(const f of s)this.identifierReplacements.set(f,`${d}.default`);for(const{importedName:f,localName:g}of i)this.identifierReplacements.set(g,`${u}.${f}`)}}getFreeIdentifierForPath(e){const n=e.split("/"),r=n[n.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${r}`)}preprocessImportAtIndex(e){const n=[],s=[],r=[];if(e++,(this.tokens.matchesContextualAtIndex(e,S._type)||this.tokens.matches1AtIndex(e,o._typeof))&&!this.tokens.matches1AtIndex(e+1,o.comma)&&!this.tokens.matchesContextualAtIndex(e+1,S._from)||this.tokens.matches1AtIndex(e,o.parenL))return;if(this.tokens.matches1AtIndex(e,o.name)&&(n.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,o.comma)&&e++),this.tokens.matches1AtIndex(e,o.star)&&(e+=2,s.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,o.braceL)){const l=this.getNamedImports(e+1);e=l.newIndex;for(const c of l.namedImports)c.importedName==="default"?n.push(c.localName):r.push(c)}if(this.tokens.matchesContextualAtIndex(e,S._from)&&e++,!this.tokens.matches1AtIndex(e,o.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(e),a=this.getImportInfo(i);a.defaultNames.push(...n),a.wildcardNames.push(...s),a.namedImports.push(...r),n.length===0&&s.length===0&&r.length===0&&(a.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,o._export,o._var)||this.tokens.matches2AtIndex(e,o._export,o._let)||this.tokens.matches2AtIndex(e,o._export,o._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,o._export,o._function)||this.tokens.matches2AtIndex(e,o._export,o._class)){const n=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(n,n)}else if(this.tokens.matches3AtIndex(e,o._export,o.name,o._function)){const n=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(n,n)}else this.tokens.matches2AtIndex(e,o._export,o.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,o._export,o.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let n=0;for(let s=e+2;;s++)if(this.tokens.matches1AtIndex(s,o.braceL)||this.tokens.matches1AtIndex(s,o.dollarBraceL)||this.tokens.matches1AtIndex(s,o.bracketL))n++;else if(this.tokens.matches1AtIndex(s,o.braceR)||this.tokens.matches1AtIndex(s,o.bracketR))n--;else{if(n===0&&!this.tokens.matches1AtIndex(s,o.name))break;if(this.tokens.matches1AtIndex(1,o.eq)){const r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error("Expected = token with an end index.");s=r-1}else{const r=this.tokens.tokens[s];if(x1(r)){const i=this.tokens.identifierNameAtIndex(s);this.identifierReplacements.set(i,`exports.${i}`)}}}}preprocessNamedExportAtIndex(e){e+=2;const{newIndex:n,namedImports:s}=this.getNamedImports(e);if(e=n,this.tokens.matchesContextualAtIndex(e,S._from))e++;else{for(const{importedName:a,localName:l}of s)this.addExportBinding(a,l);return}if(!this.tokens.matches1AtIndex(e,o.string))throw new Error("Expected string token at the end of import statement.");const r=this.tokens.stringValueAtIndex(e);this.getImportInfo(r).namedExports.push(...s)}preprocessExportStarAtIndex(e){let n=null;if(this.tokens.matches3AtIndex(e,o._export,o.star,o._as)?(e+=3,n=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,o.string))throw new Error("Expected string token at the end of star export statement.");const s=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(s);n!==null?r.exportStarNames.push(n):r.hasStarExport=!0}getNamedImports(e){const n=[];for(;;){if(this.tokens.matches1AtIndex(e,o.braceR)){e++;break}const s=Dr(this.tokens,e);if(e=s.endIndex,s.isType||n.push({importedName:s.leftName,localName:s.rightName}),this.tokens.matches2AtIndex(e,o.comma,o.braceR)){e+=2;break}else if(this.tokens.matches1AtIndex(e,o.braceR)){e++;break}else if(this.tokens.matches1AtIndex(e,o.comma))e++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`)}return{newIndex:e,namedImports:n}}getImportInfo(e){const n=this.importInfoByPath.get(e);if(n)return n;const s={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,s),s}addExportBinding(e,n){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(n)}claimImportCode(e){const n=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),n||""}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){const n=this.exportBindingsByLocalName.get(e);return!n||n.length===0?null:n.map(s=>`exports.${s}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Or={exports:{}},Sx=Or.exports,M1;function Ix(){return M1||(M1=1,function(t,e){(function(n,s){s(e)})(Sx,function(n){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),l=new Uint8Array(128);for(let _=0;_<i.length;_++){const N=i.charCodeAt(_);a[_]=N,l[N]=_}function c(_,N){let C=0,R=0,M=0;do{const K=_.next();M=l[K],C|=(M&31)<<R,R+=5}while(M&32);const q=C&1;return C>>>=1,q&&(C=-2147483648|-C),N+C}function u(_,N,C){let R=N-C;R=R<0?-R<<1|1:R<<1;do{let M=R&31;R>>>=5,R>0&&(M|=32),_.write(a[M])}while(R>0);return N}function d(_,N){return _.pos>=N?!1:_.peek()!==44}const m=1024*16,f=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let N="";for(let C=0;C<_.length;C++)N+=String.fromCharCode(_[C]);return N}};class g{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(m)}write(N){const{buffer:C}=this;C[this.pos++]=N,this.pos===m&&(this.out+=f.decode(C),this.pos=0)}flush(){const{buffer:N,out:C,pos:R}=this;return R>0?C+f.decode(N.subarray(0,R)):C}}class w{constructor(N){this.pos=0,this.buffer=N}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(N){const{buffer:C,pos:R}=this,M=C.indexOf(N,R);return M===-1?C.length:M}}const k=[];function I(_){const{length:N}=_,C=new w(_),R=[],M=[];let q=0;for(;C.pos<N;C.pos++){q=c(C,q);const K=c(C,0);if(!d(C,N)){const ce=M.pop();ce[2]=q,ce[3]=K;continue}const X=c(C,0),de=c(C,0)&1?[q,K,0,0,X,c(C,0)]:[q,K,0,0,X];let he=k;if(d(C,N)){he=[];do{const ce=c(C,0);he.push(ce)}while(d(C,N))}de.vars=he,R.push(de),M.push(de)}return R}function E(_){const N=new g;for(let C=0;C<_.length;)C=b(_,C,N,[0]);return N.flush()}function b(_,N,C,R){const M=_[N],{0:q,1:K,2:X,3:ae,4:T,vars:de}=M;N>0&&C.write(44),R[0]=u(C,q,R[0]),u(C,K,0),u(C,T,0);const he=M.length===6?1:0;u(C,he,0),M.length===6&&u(C,M[5],0);for(const ce of de)u(C,ce,0);for(N++;N<_.length;){const ce=_[N],{0:L,1:x}=ce;if(L>X||L===X&&x>=ae)break;N=b(_,N,C,R)}return C.write(44),R[0]=u(C,X,R[0]),u(C,ae,0),N}function A(_){const{length:N}=_,C=new w(_),R=[],M=[];let q=0,K=0,X=0,ae=0,T=0,de=0,he=0,ce=0;do{const L=C.indexOf(";");let x=0;for(;C.pos<L;C.pos++){if(x=c(C,x),!d(C,L)){const ye=M.pop();ye[2]=q,ye[3]=x;continue}const F=c(C,0),B=F&1,J=F&2,ee=F&4;let ie=null,se=k,ke;if(B){const ye=c(C,K);X=c(C,K===ye?X:0),K=ye,ke=[q,x,0,0,ye,X]}else ke=[q,x,0,0];if(ke.isScope=!!ee,J){const ye=ae,be=T;ae=c(C,ae);const fe=ye===ae;T=c(C,fe?T:0),de=c(C,fe&&be===T?de:0),ie=[ae,T,de]}if(ke.callsite=ie,d(C,L)){se=[];do{he=q,ce=x;const ye=c(C,0);let be;if(ye<-1){be=[[c(C,0)]];for(let fe=-1;fe>ye;fe--){const Oe=he;he=c(C,he),ce=c(C,he===Oe?ce:0);const qe=c(C,0);be.push([qe,he,ce])}}else be=[[ye]];se.push(be)}while(d(C,L))}ke.bindings=se,R.push(ke),M.push(ke)}q++,C.pos=L+1}while(C.pos<N);return R}function v(_){if(_.length===0)return"";const N=new g;for(let C=0;C<_.length;)C=$(_,C,N,[0,0,0,0,0,0,0]);return N.flush()}function $(_,N,C,R){const M=_[N],{0:q,1:K,2:X,3:ae,isScope:T,callsite:de,bindings:he}=M;R[0]<q?(D(C,R[0],q),R[0]=q,R[1]=0):N>0&&C.write(44),R[1]=u(C,M[1],R[1]);const ce=(M.length===6?1:0)|(de?2:0)|(T?4:0);if(u(C,ce,0),M.length===6){const{4:L,5:x}=M;L!==R[2]&&(R[3]=0),R[2]=u(C,L,R[2]),R[3]=u(C,x,R[3])}if(de){const{0:L,1:x,2:F}=M.callsite;L!==R[4]?(R[5]=0,R[6]=0):x!==R[5]&&(R[6]=0),R[4]=u(C,L,R[4]),R[5]=u(C,x,R[5]),R[6]=u(C,F,R[6])}if(he)for(const L of he){L.length>1&&u(C,-L.length,0);const x=L[0][0];u(C,x,0);let F=q,B=K;for(let J=1;J<L.length;J++){const ee=L[J];F=u(C,ee[1],F),B=u(C,ee[2],B),u(C,ee[0],0)}}for(N++;N<_.length;){const L=_[N],{0:x,1:F}=L;if(x>X||x===X&&F>=ae)break;N=$(_,N,C,R)}return R[0]<X?(D(C,R[0],X),R[0]=X,R[1]=0):C.write(44),R[1]=u(C,ae,R[1]),N}function D(_,N,C){do _.write(59);while(++N<C)}function j(_){const{length:N}=_,C=new w(_),R=[];let M=0,q=0,K=0,X=0,ae=0;do{const T=C.indexOf(";"),de=[];let he=!0,ce=0;for(M=0;C.pos<T;){let L;M=c(C,M),M<ce&&(he=!1),ce=M,d(C,T)?(q=c(C,q),K=c(C,K),X=c(C,X),d(C,T)?(ae=c(C,ae),L=[M,q,K,X,ae]):L=[M,q,K,X]):L=[M],de.push(L),C.pos++}he||V(de),R.push(de),C.pos=T+1}while(C.pos<=N);return R}function V(_){_.sort(U)}function U(_,N){return _[0]-N[0]}function O(_){const N=new g;let C=0,R=0,M=0,q=0;for(let K=0;K<_.length;K++){const X=_[K];if(K>0&&N.write(59),X.length===0)continue;let ae=0;for(let T=0;T<X.length;T++){const de=X[T];T>0&&N.write(44),ae=u(N,de[0],ae),de.length!==1&&(C=u(N,de[1],C),R=u(N,de[2],R),M=u(N,de[3],M),de.length!==4&&(q=u(N,de[4],q)))}}return N.flush()}n.decode=j,n.decodeGeneratedRanges=A,n.decodeOriginalScopes=I,n.encode=O,n.encodeGeneratedRanges=v,n.encodeOriginalScopes=E,Object.defineProperty(n,"__esModule",{value:!0})})}(Or,Or.exports)),Or.exports}var vx=Ix(),_o={exports:{}},_x=_o.exports,F1;function Px(){return F1||(F1=1,function(t,e){(function(n,s){t.exports=s()})(_x,function(){const n=/^[\w+.-]+:\/\//,s=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(b){return n.test(b)}function a(b){return b.startsWith("//")}function l(b){return b.startsWith("/")}function c(b){return b.startsWith("file:")}function u(b){return/^[.?#]/.test(b)}function d(b){const A=s.exec(b);return f(A[1],A[2]||"",A[3],A[4]||"",A[5]||"/",A[6]||"",A[7]||"")}function m(b){const A=r.exec(b),v=A[2];return f("file:","",A[1]||"","",l(v)?v:"/"+v,A[3]||"",A[4]||"")}function f(b,A,v,$,D,j,V){return{scheme:b,user:A,host:v,port:$,path:D,query:j,hash:V,type:7}}function g(b){if(a(b)){const v=d("http:"+b);return v.scheme="",v.type=6,v}if(l(b)){const v=d("http://foo.com"+b);return v.scheme="",v.host="",v.type=5,v}if(c(b))return m(b);if(i(b))return d(b);const A=d("http://foo.com/"+b);return A.scheme="",A.host="",A.type=b?b.startsWith("?")?3:b.startsWith("#")?2:4:1,A}function w(b){if(b.endsWith("/.."))return b;const A=b.lastIndexOf("/");return b.slice(0,A+1)}function k(b,A){I(A,A.type),b.path==="/"?b.path=A.path:b.path=w(A.path)+b.path}function I(b,A){const v=A<=4,$=b.path.split("/");let D=1,j=0,V=!1;for(let O=1;O<$.length;O++){const _=$[O];if(!_){V=!0;continue}if(V=!1,_!=="."){if(_===".."){j?(V=!0,j--,D--):v&&($[D++]=_);continue}$[D++]=_,j++}}let U="";for(let O=1;O<D;O++)U+="/"+$[O];(!U||V&&!U.endsWith("/.."))&&(U+="/"),b.path=U}function E(b,A){if(!b&&!A)return"";const v=g(b);let $=v.type;if(A&&$!==7){const j=g(A),V=j.type;switch($){case 1:v.hash=j.hash;case 2:v.query=j.query;case 3:case 4:k(v,j);case 5:v.user=j.user,v.host=j.host,v.port=j.port;case 6:v.scheme=j.scheme}V>$&&($=V)}I(v,$);const D=v.query+v.hash;switch($){case 2:case 3:return D;case 4:{const j=v.path.slice(1);return j?u(A||b)&&!u(j)?"./"+j+D:j+D:D||"."}case 5:return v.path+D;default:return v.scheme+"//"+v.user+v.host+v.port+v.path+D}}return E})}(_o)),_o.exports}Px();var Vl=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function ZS(t){return t}function $x(t,e){return t._indexes[e]}function Nx(t,e){const n=$x(t,e);if(n!==void 0)return n;const{array:s,_indexes:r}=t,i=s.push(e);return r[e]=i-1}var Cx=0,Tx=1,Rx=2,Dx=3,Ox=4,B1=-1,Lx=class{constructor({file:t,sourceRoot:e}={}){this._names=new Vl,this._sources=new Vl,this._sourcesContent=[],this._mappings=[],this.file=t,this.sourceRoot=e,this._ignoreList=new Vl}};function eI(t){return t}var Ul=(t,e,n,s,r,i,a,l)=>Bx(!0,t,e,n,s,r,i);function Mx(t){const{_mappings:e,_sources:n,_sourcesContent:s,_names:r,_ignoreList:i}=t;return Vx(e),{version:3,file:t.file||void 0,names:r.array,sourceRoot:t.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:e,ignoreList:i.array}}function Fx(t){const e=Mx(t);return Object.assign({},e,{mappings:vx.encode(e.mappings)})}function Bx(t,e,n,s,r,i,a,l,c){const{_mappings:u,_sources:d,_sourcesContent:m,_names:f}=e,g=jx(u,n),w=zx(g,s);if(!r)return Ux(g,w)?void 0:j1(g,w,[s]);const k=Nx(d,r),I=B1;if(k===m.length&&(m[k]=null),!qx(g,w,k,i,a,I))return j1(g,w,[s,k,i,a])}function jx(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e]}function zx(t,e){let n=t.length;for(let s=n-1;s>=0;n=s--){const r=t[s];if(e>=r[Cx])break}return n}function j1(t,e,n){for(let s=t.length;s>e;s--)t[s]=t[s-1];t[e]=n}function Vx(t){const{length:e}=t;let n=e;for(let s=n-1;s>=0&&!(t[s].length>0);n=s,s--);n<e&&(t.length=n)}function Ux(t,e){return e===0?!0:t[e-1].length===1}function qx(t,e,n,s,r,i){if(e===0)return!1;const a=t[e-1];return a.length===1?!1:n===a[Tx]&&s===a[Rx]&&r===a[Dx]&&i===(a.length===5?a[Ox]:B1)}function Hx({code:t,mappings:e},n,s,r,i){const a=Wx(r,i),l=new Lx({file:s.compiledFilename});let c=0,u=e[0];for(;u===void 0&&c<e.length-1;)c++,u=e[c];let d=0,m=0;u!==m&&Ul(l,d,0,n,d,0);for(let k=0;k<t.length;k++){if(k===u){const I=u-m,E=a[c];for(Ul(l,d,I,n,d,E);(u===k||u===void 0)&&c<e.length-1;)c++,u=e[c]}t.charCodeAt(k)===P.lineFeed&&(d++,m=k+1,u!==m&&Ul(l,d,0,n,d,0))}const{sourceRoot:f,sourcesContent:g,...w}=Fx(l);return w}function Wx(t,e){const n=new Array(e.length);let s=0,r=e[s].start,i=0;for(let a=0;a<t.length;a++)a===r&&(n[s]=r-i,s++,r=e[s].start),t.charCodeAt(a)===P.lineFeed&&(i=a+1);return n}const Gx={require:`
|
|
67
|
+
`;else if(s==="&"){const{entity:r,newI:i}=O1(t,n+1);e+=r,n=i-1}else e+=s}return JSON.stringify(e)}function O1(t,e){let n="",s=0,r,i=e;if(t[i]==="#"){let a=10;i++;let l;if(t[i]==="x")for(a=16,i++,l=i;i<t.length&&Sx(t.charCodeAt(i));)i++;else for(l=i;i<t.length&&wx(t.charCodeAt(i));)i++;if(t[i]===";"){const c=t.slice(l,i);c&&(i++,r=String.fromCodePoint(parseInt(c,a)))}}else for(;i<t.length&&s++<10;){const a=t[i];if(i++,a===";"){r=kx.get(n);break}n+=a}return r?{entity:r,newI:i}:{entity:"&",newI:e}}function wx(t){return t>=P.digit0&&t<=P.digit9}function Sx(t){return t>=P.digit0&&t<=P.digit9||t>=P.lowercaseA&&t<=P.lowercaseF||t>=P.uppercaseA&&t<=P.uppercaseF}function L1(t,e){const n=C1(e),s=new Set;for(let r=0;r<t.tokens.length;r++){const i=t.tokens[r];if(i.type===o.name&&!i.isType&&(i.identifierRole===ge.Access||i.identifierRole===ge.ObjectShorthand||i.identifierRole===ge.ExportAccess)&&!i.shadowsGlobal&&s.add(t.identifierNameForToken(i)),i.type===o.jsxTagStart&&s.add(n.base),i.type===o.jsxTagStart&&r+1<t.tokens.length&&t.tokens[r+1].type===o.jsxTagEnd&&(s.add(n.base),s.add(n.fragmentBase)),i.type===o.jsxName&&i.identifierRole===ge.Access){const a=t.identifierNameForToken(i);(!R1(a)||t.tokens[r+1].type===o.dot)&&s.add(t.identifierNameForToken(i))}}return s}class is{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(e,n,s,r,i,a,l){this.nameManager=e,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=s,this.options=r,this.isTypeScriptTransformEnabled=i,this.keepUnusedImports=a,this.helperManager=l,is.prototype.__init.call(this),is.prototype.__init2.call(this),is.prototype.__init3.call(this),is.prototype.__init4.call(this),is.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,o._import)&&!this.tokens.matches3AtIndex(e,o._import,o.name,o.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,o._export)&&!this.tokens.matches2AtIndex(e,o._export,o.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=L1(this.tokens,this.options);for(const[e,n]of this.importInfoByPath.entries()){if(n.hasBareImport||n.hasStarExport||n.exportStarNames.length>0||n.namedExports.length>0)continue;[...n.defaultNames,...n.wildcardNames,...n.namedImports.map(({localName:r})=>r)].every(r=>this.shouldAutomaticallyElideImportedName(r))&&this.importsToReplace.set(e,"")}}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(const[e,n]of this.importInfoByPath.entries()){const{defaultNames:s,wildcardNames:r,namedImports:i,namedExports:a,exportStarNames:l,hasStarExport:c}=n;if(s.length===0&&r.length===0&&i.length===0&&a.length===0&&l.length===0&&!c){this.importsToReplace.set(e,`require('${e}');`);continue}const u=this.getFreeIdentifierForPath(e);let d;this.enableLegacyTypeScriptModuleInterop?d=u:d=r.length>0?r[0]:this.getFreeIdentifierForPath(e);let m=`var ${u} = require('${e}');`;if(r.length>0)for(const f of r){const g=this.enableLegacyTypeScriptModuleInterop?u:`${this.helperManager.getHelperName("interopRequireWildcard")}(${u})`;m+=` var ${f} = ${g};`}else l.length>0&&d!==u?m+=` var ${d} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${u});`:s.length>0&&d!==u&&(m+=` var ${d} = ${this.helperManager.getHelperName("interopRequireDefault")}(${u});`);for(const{importedName:f,localName:g}of a)m+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${u}, '${g}', '${f}');`;for(const f of l)m+=` exports.${f} = ${d};`;c&&(m+=` ${this.helperManager.getHelperName("createStarExport")}(${u});`),this.importsToReplace.set(e,m);for(const f of s)this.identifierReplacements.set(f,`${d}.default`);for(const{importedName:f,localName:g}of i)this.identifierReplacements.set(g,`${u}.${f}`)}}getFreeIdentifierForPath(e){const n=e.split("/"),r=n[n.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${r}`)}preprocessImportAtIndex(e){const n=[],s=[],r=[];if(e++,(this.tokens.matchesContextualAtIndex(e,S._type)||this.tokens.matches1AtIndex(e,o._typeof))&&!this.tokens.matches1AtIndex(e+1,o.comma)&&!this.tokens.matchesContextualAtIndex(e+1,S._from)||this.tokens.matches1AtIndex(e,o.parenL))return;if(this.tokens.matches1AtIndex(e,o.name)&&(n.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,o.comma)&&e++),this.tokens.matches1AtIndex(e,o.star)&&(e+=2,s.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,o.braceL)){const l=this.getNamedImports(e+1);e=l.newIndex;for(const c of l.namedImports)c.importedName==="default"?n.push(c.localName):r.push(c)}if(this.tokens.matchesContextualAtIndex(e,S._from)&&e++,!this.tokens.matches1AtIndex(e,o.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(e),a=this.getImportInfo(i);a.defaultNames.push(...n),a.wildcardNames.push(...s),a.namedImports.push(...r),n.length===0&&s.length===0&&r.length===0&&(a.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,o._export,o._var)||this.tokens.matches2AtIndex(e,o._export,o._let)||this.tokens.matches2AtIndex(e,o._export,o._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,o._export,o._function)||this.tokens.matches2AtIndex(e,o._export,o._class)){const n=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(n,n)}else if(this.tokens.matches3AtIndex(e,o._export,o.name,o._function)){const n=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(n,n)}else this.tokens.matches2AtIndex(e,o._export,o.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,o._export,o.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let n=0;for(let s=e+2;;s++)if(this.tokens.matches1AtIndex(s,o.braceL)||this.tokens.matches1AtIndex(s,o.dollarBraceL)||this.tokens.matches1AtIndex(s,o.bracketL))n++;else if(this.tokens.matches1AtIndex(s,o.braceR)||this.tokens.matches1AtIndex(s,o.bracketR))n--;else{if(n===0&&!this.tokens.matches1AtIndex(s,o.name))break;if(this.tokens.matches1AtIndex(1,o.eq)){const r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error("Expected = token with an end index.");s=r-1}else{const r=this.tokens.tokens[s];if(x1(r)){const i=this.tokens.identifierNameAtIndex(s);this.identifierReplacements.set(i,`exports.${i}`)}}}}preprocessNamedExportAtIndex(e){e+=2;const{newIndex:n,namedImports:s}=this.getNamedImports(e);if(e=n,this.tokens.matchesContextualAtIndex(e,S._from))e++;else{for(const{importedName:a,localName:l}of s)this.addExportBinding(a,l);return}if(!this.tokens.matches1AtIndex(e,o.string))throw new Error("Expected string token at the end of import statement.");const r=this.tokens.stringValueAtIndex(e);this.getImportInfo(r).namedExports.push(...s)}preprocessExportStarAtIndex(e){let n=null;if(this.tokens.matches3AtIndex(e,o._export,o.star,o._as)?(e+=3,n=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,o.string))throw new Error("Expected string token at the end of star export statement.");const s=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(s);n!==null?r.exportStarNames.push(n):r.hasStarExport=!0}getNamedImports(e){const n=[];for(;;){if(this.tokens.matches1AtIndex(e,o.braceR)){e++;break}const s=Dr(this.tokens,e);if(e=s.endIndex,s.isType||n.push({importedName:s.leftName,localName:s.rightName}),this.tokens.matches2AtIndex(e,o.comma,o.braceR)){e+=2;break}else if(this.tokens.matches1AtIndex(e,o.braceR)){e++;break}else if(this.tokens.matches1AtIndex(e,o.comma))e++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`)}return{newIndex:e,namedImports:n}}getImportInfo(e){const n=this.importInfoByPath.get(e);if(n)return n;const s={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,s),s}addExportBinding(e,n){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(n)}claimImportCode(e){const n=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),n||""}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){const n=this.exportBindingsByLocalName.get(e);return!n||n.length===0?null:n.map(s=>`exports.${s}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Or={exports:{}},Ix=Or.exports,M1;function vx(){return M1||(M1=1,function(t,e){(function(n,s){s(e)})(Ix,function(n){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),l=new Uint8Array(128);for(let _=0;_<i.length;_++){const N=i.charCodeAt(_);a[_]=N,l[N]=_}function c(_,N){let C=0,R=0,M=0;do{const K=_.next();M=l[K],C|=(M&31)<<R,R+=5}while(M&32);const q=C&1;return C>>>=1,q&&(C=-2147483648|-C),N+C}function u(_,N,C){let R=N-C;R=R<0?-R<<1|1:R<<1;do{let M=R&31;R>>>=5,R>0&&(M|=32),_.write(a[M])}while(R>0);return N}function d(_,N){return _.pos>=N?!1:_.peek()!==44}const m=1024*16,f=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let N="";for(let C=0;C<_.length;C++)N+=String.fromCharCode(_[C]);return N}};class g{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(m)}write(N){const{buffer:C}=this;C[this.pos++]=N,this.pos===m&&(this.out+=f.decode(C),this.pos=0)}flush(){const{buffer:N,out:C,pos:R}=this;return R>0?C+f.decode(N.subarray(0,R)):C}}class w{constructor(N){this.pos=0,this.buffer=N}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(N){const{buffer:C,pos:R}=this,M=C.indexOf(N,R);return M===-1?C.length:M}}const k=[];function I(_){const{length:N}=_,C=new w(_),R=[],M=[];let q=0;for(;C.pos<N;C.pos++){q=c(C,q);const K=c(C,0);if(!d(C,N)){const ce=M.pop();ce[2]=q,ce[3]=K;continue}const X=c(C,0),de=c(C,0)&1?[q,K,0,0,X,c(C,0)]:[q,K,0,0,X];let he=k;if(d(C,N)){he=[];do{const ce=c(C,0);he.push(ce)}while(d(C,N))}de.vars=he,R.push(de),M.push(de)}return R}function E(_){const N=new g;for(let C=0;C<_.length;)C=b(_,C,N,[0]);return N.flush()}function b(_,N,C,R){const M=_[N],{0:q,1:K,2:X,3:ae,4:T,vars:de}=M;N>0&&C.write(44),R[0]=u(C,q,R[0]),u(C,K,0),u(C,T,0);const he=M.length===6?1:0;u(C,he,0),M.length===6&&u(C,M[5],0);for(const ce of de)u(C,ce,0);for(N++;N<_.length;){const ce=_[N],{0:L,1:x}=ce;if(L>X||L===X&&x>=ae)break;N=b(_,N,C,R)}return C.write(44),R[0]=u(C,X,R[0]),u(C,ae,0),N}function A(_){const{length:N}=_,C=new w(_),R=[],M=[];let q=0,K=0,X=0,ae=0,T=0,de=0,he=0,ce=0;do{const L=C.indexOf(";");let x=0;for(;C.pos<L;C.pos++){if(x=c(C,x),!d(C,L)){const ye=M.pop();ye[2]=q,ye[3]=x;continue}const F=c(C,0),B=F&1,J=F&2,ee=F&4;let ie=null,se=k,ke;if(B){const ye=c(C,K);X=c(C,K===ye?X:0),K=ye,ke=[q,x,0,0,ye,X]}else ke=[q,x,0,0];if(ke.isScope=!!ee,J){const ye=ae,be=T;ae=c(C,ae);const fe=ye===ae;T=c(C,fe?T:0),de=c(C,fe&&be===T?de:0),ie=[ae,T,de]}if(ke.callsite=ie,d(C,L)){se=[];do{he=q,ce=x;const ye=c(C,0);let be;if(ye<-1){be=[[c(C,0)]];for(let fe=-1;fe>ye;fe--){const Oe=he;he=c(C,he),ce=c(C,he===Oe?ce:0);const qe=c(C,0);be.push([qe,he,ce])}}else be=[[ye]];se.push(be)}while(d(C,L))}ke.bindings=se,R.push(ke),M.push(ke)}q++,C.pos=L+1}while(C.pos<N);return R}function v(_){if(_.length===0)return"";const N=new g;for(let C=0;C<_.length;)C=$(_,C,N,[0,0,0,0,0,0,0]);return N.flush()}function $(_,N,C,R){const M=_[N],{0:q,1:K,2:X,3:ae,isScope:T,callsite:de,bindings:he}=M;R[0]<q?(D(C,R[0],q),R[0]=q,R[1]=0):N>0&&C.write(44),R[1]=u(C,M[1],R[1]);const ce=(M.length===6?1:0)|(de?2:0)|(T?4:0);if(u(C,ce,0),M.length===6){const{4:L,5:x}=M;L!==R[2]&&(R[3]=0),R[2]=u(C,L,R[2]),R[3]=u(C,x,R[3])}if(de){const{0:L,1:x,2:F}=M.callsite;L!==R[4]?(R[5]=0,R[6]=0):x!==R[5]&&(R[6]=0),R[4]=u(C,L,R[4]),R[5]=u(C,x,R[5]),R[6]=u(C,F,R[6])}if(he)for(const L of he){L.length>1&&u(C,-L.length,0);const x=L[0][0];u(C,x,0);let F=q,B=K;for(let J=1;J<L.length;J++){const ee=L[J];F=u(C,ee[1],F),B=u(C,ee[2],B),u(C,ee[0],0)}}for(N++;N<_.length;){const L=_[N],{0:x,1:F}=L;if(x>X||x===X&&F>=ae)break;N=$(_,N,C,R)}return R[0]<X?(D(C,R[0],X),R[0]=X,R[1]=0):C.write(44),R[1]=u(C,ae,R[1]),N}function D(_,N,C){do _.write(59);while(++N<C)}function j(_){const{length:N}=_,C=new w(_),R=[];let M=0,q=0,K=0,X=0,ae=0;do{const T=C.indexOf(";"),de=[];let he=!0,ce=0;for(M=0;C.pos<T;){let L;M=c(C,M),M<ce&&(he=!1),ce=M,d(C,T)?(q=c(C,q),K=c(C,K),X=c(C,X),d(C,T)?(ae=c(C,ae),L=[M,q,K,X,ae]):L=[M,q,K,X]):L=[M],de.push(L),C.pos++}he||V(de),R.push(de),C.pos=T+1}while(C.pos<=N);return R}function V(_){_.sort(U)}function U(_,N){return _[0]-N[0]}function O(_){const N=new g;let C=0,R=0,M=0,q=0;for(let K=0;K<_.length;K++){const X=_[K];if(K>0&&N.write(59),X.length===0)continue;let ae=0;for(let T=0;T<X.length;T++){const de=X[T];T>0&&N.write(44),ae=u(N,de[0],ae),de.length!==1&&(C=u(N,de[1],C),R=u(N,de[2],R),M=u(N,de[3],M),de.length!==4&&(q=u(N,de[4],q)))}}return N.flush()}n.decode=j,n.decodeGeneratedRanges=A,n.decodeOriginalScopes=I,n.encode=O,n.encodeGeneratedRanges=v,n.encodeOriginalScopes=E,Object.defineProperty(n,"__esModule",{value:!0})})}(Or,Or.exports)),Or.exports}var _x=vx(),_o={exports:{}},Px=_o.exports,F1;function $x(){return F1||(F1=1,function(t,e){(function(n,s){t.exports=s()})(Px,function(){const n=/^[\w+.-]+:\/\//,s=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(b){return n.test(b)}function a(b){return b.startsWith("//")}function l(b){return b.startsWith("/")}function c(b){return b.startsWith("file:")}function u(b){return/^[.?#]/.test(b)}function d(b){const A=s.exec(b);return f(A[1],A[2]||"",A[3],A[4]||"",A[5]||"/",A[6]||"",A[7]||"")}function m(b){const A=r.exec(b),v=A[2];return f("file:","",A[1]||"","",l(v)?v:"/"+v,A[3]||"",A[4]||"")}function f(b,A,v,$,D,j,V){return{scheme:b,user:A,host:v,port:$,path:D,query:j,hash:V,type:7}}function g(b){if(a(b)){const v=d("http:"+b);return v.scheme="",v.type=6,v}if(l(b)){const v=d("http://foo.com"+b);return v.scheme="",v.host="",v.type=5,v}if(c(b))return m(b);if(i(b))return d(b);const A=d("http://foo.com/"+b);return A.scheme="",A.host="",A.type=b?b.startsWith("?")?3:b.startsWith("#")?2:4:1,A}function w(b){if(b.endsWith("/.."))return b;const A=b.lastIndexOf("/");return b.slice(0,A+1)}function k(b,A){I(A,A.type),b.path==="/"?b.path=A.path:b.path=w(A.path)+b.path}function I(b,A){const v=A<=4,$=b.path.split("/");let D=1,j=0,V=!1;for(let O=1;O<$.length;O++){const _=$[O];if(!_){V=!0;continue}if(V=!1,_!=="."){if(_===".."){j?(V=!0,j--,D--):v&&($[D++]=_);continue}$[D++]=_,j++}}let U="";for(let O=1;O<D;O++)U+="/"+$[O];(!U||V&&!U.endsWith("/.."))&&(U+="/"),b.path=U}function E(b,A){if(!b&&!A)return"";const v=g(b);let $=v.type;if(A&&$!==7){const j=g(A),V=j.type;switch($){case 1:v.hash=j.hash;case 2:v.query=j.query;case 3:case 4:k(v,j);case 5:v.user=j.user,v.host=j.host,v.port=j.port;case 6:v.scheme=j.scheme}V>$&&($=V)}I(v,$);const D=v.query+v.hash;switch($){case 2:case 3:return D;case 4:{const j=v.path.slice(1);return j?u(A||b)&&!u(j)?"./"+j+D:j+D:D||"."}case 5:return v.path+D;default:return v.scheme+"//"+v.user+v.host+v.port+v.path+D}}return E})}(_o)),_o.exports}$x();var Vl=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function eI(t){return t}function Nx(t,e){return t._indexes[e]}function Cx(t,e){const n=Nx(t,e);if(n!==void 0)return n;const{array:s,_indexes:r}=t,i=s.push(e);return r[e]=i-1}var Tx=0,Rx=1,Dx=2,Ox=3,Lx=4,B1=-1,Mx=class{constructor({file:t,sourceRoot:e}={}){this._names=new Vl,this._sources=new Vl,this._sourcesContent=[],this._mappings=[],this.file=t,this.sourceRoot=e,this._ignoreList=new Vl}};function tI(t){return t}var Ul=(t,e,n,s,r,i,a,l)=>jx(!0,t,e,n,s,r,i);function Fx(t){const{_mappings:e,_sources:n,_sourcesContent:s,_names:r,_ignoreList:i}=t;return Ux(e),{version:3,file:t.file||void 0,names:r.array,sourceRoot:t.sourceRoot||void 0,sources:n.array,sourcesContent:s,mappings:e,ignoreList:i.array}}function Bx(t){const e=Fx(t);return Object.assign({},e,{mappings:_x.encode(e.mappings)})}function jx(t,e,n,s,r,i,a,l,c){const{_mappings:u,_sources:d,_sourcesContent:m,_names:f}=e,g=zx(u,n),w=Vx(g,s);if(!r)return qx(g,w)?void 0:j1(g,w,[s]);const k=Cx(d,r),I=B1;if(k===m.length&&(m[k]=null),!Hx(g,w,k,i,a,I))return j1(g,w,[s,k,i,a])}function zx(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e]}function Vx(t,e){let n=t.length;for(let s=n-1;s>=0;n=s--){const r=t[s];if(e>=r[Tx])break}return n}function j1(t,e,n){for(let s=t.length;s>e;s--)t[s]=t[s-1];t[e]=n}function Ux(t){const{length:e}=t;let n=e;for(let s=n-1;s>=0&&!(t[s].length>0);n=s,s--);n<e&&(t.length=n)}function qx(t,e){return e===0?!0:t[e-1].length===1}function Hx(t,e,n,s,r,i){if(e===0)return!1;const a=t[e-1];return a.length===1?!1:n===a[Rx]&&s===a[Dx]&&r===a[Ox]&&i===(a.length===5?a[Lx]:B1)}function Wx({code:t,mappings:e},n,s,r,i){const a=Gx(r,i),l=new Mx({file:s.compiledFilename});let c=0,u=e[0];for(;u===void 0&&c<e.length-1;)c++,u=e[c];let d=0,m=0;u!==m&&Ul(l,d,0,n,d,0);for(let k=0;k<t.length;k++){if(k===u){const I=u-m,E=a[c];for(Ul(l,d,I,n,d,E);(u===k||u===void 0)&&c<e.length-1;)c++,u=e[c]}t.charCodeAt(k)===P.lineFeed&&(d++,m=k+1,u!==m&&Ul(l,d,0,n,d,0))}const{sourceRoot:f,sourcesContent:g,...w}=Bx(l);return w}function Gx(t,e){const n=new Array(e.length);let s=0,r=e[s].start,i=0;for(let a=0;a<t.length;a++)a===r&&(n[s]=r-i,s++,r=e[s].start),t.charCodeAt(a)===P.lineFeed&&(i=a+1);return n}const Xx={require:`
|
|
68
68
|
import {createRequire as CREATE_REQUIRE_NAME} from "module";
|
|
69
69
|
const require = CREATE_REQUIRE_NAME(import.meta.url);
|
|
70
70
|
`,interopRequireWildcard:`
|
|
@@ -173,9 +173,9 @@ Additionally, handling the error in the 'buildEnd' hook caused the following err
|
|
|
173
173
|
const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
|
|
174
174
|
return result == null ? true : result;
|
|
175
175
|
}
|
|
176
|
-
`};class Po{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(e){this.nameManager=e,Po.prototype.__init.call(this),Po.prototype.__init2.call(this)}getHelperName(e){let n=this.helperNames[e];return n||(n=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=n,n)}emitHelpers(){let e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[n,s]of Object.entries(Gx)){const r=this.helperNames[n];let i=s;n==="optionalChainDelete"?i=i.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):n==="asyncOptionalChainDelete"?i=i.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):n==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),i=i.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),r&&(e+=" ",e+=i.replace(n,r).replace(/\s+/g," ").trim())}return e}}function z1(t,e,n){Xx(t,n)&&Kx(t,e,n)}function Xx(t,e){for(const n of t.tokens)if(n.type===o.name&&!n.isType&&Yb(n)&&e.has(t.identifierNameForToken(n)))return!0;return!1}function Kx(t,e,n){const s=[];let r=e.length-1;for(let i=t.tokens.length-1;;i--){for(;s.length>0&&s[s.length-1].startTokenIndex===i+1;)s.pop();for(;r>=0&&e[r].endTokenIndex===i+1;)s.push(e[r]),r--;if(i<0)break;const a=t.tokens[i],l=t.identifierNameForToken(a);if(s.length>1&&!a.isType&&a.type===o.name&&n.has(l)){if(Qb(a))V1(s[s.length-1],t,l);else if(Zb(a)){let c=s.length-1;for(;c>0&&!s[c].isFunctionScope;)c--;if(c<0)throw new Error("Did not find parent function scope.");V1(s[c],t,l)}}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}function V1(t,e,n){for(let s=t.startTokenIndex;s<t.endTokenIndex;s++){const r=e.tokens[s];(r.type===o.name||r.type===o.jsxName)&&e.identifierNameForToken(r)===n&&(r.shadowsGlobal=!0)}}function Jx(t,e){const n=[];for(const s of e)s.type===o.name&&n.push(t.slice(s.start,s.end));return n}class ql{__init(){this.usedNames=new Set}constructor(e,n){ql.prototype.__init.call(this),this.usedNames=new Set(Jx(e,n))}claimFreeName(e){const n=this.findFreeName(e);return this.usedNames.add(n),n}findFreeName(e){if(!this.usedNames.has(e))return e;let n=2;for(;this.usedNames.has(e+String(n));)n++;return e+String(n)}}var Lr={},Mr={},Ut={},U1;function Hl(){if(U1)return Ut;U1=1;var t=Ut&&Ut.__extends||function(){var i=function(a,l){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var d in u)u.hasOwnProperty(d)&&(c[d]=u[d])},i(a,l)};return function(a,l){i(a,l);function c(){this.constructor=a}a.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.DetailContext=Ut.NoopContext=Ut.VError=void 0;var e=function(i){t(a,i);function a(l,c){var u=i.call(this,c)||this;return u.path=l,Object.setPrototypeOf(u,a.prototype),u}return a}(Error);Ut.VError=e;var n=function(){function i(){}return i.prototype.fail=function(a,l,c){return!1},i.prototype.unionResolver=function(){return this},i.prototype.createContext=function(){return this},i.prototype.resolveUnion=function(a){},i}();Ut.NoopContext=n;var s=function(){function i(){this._propNames=[""],this._messages=[null],this._score=0}return i.prototype.fail=function(a,l,c){return this._propNames.push(a),this._messages.push(l),this._score+=c,!1},i.prototype.unionResolver=function(){return new r},i.prototype.resolveUnion=function(a){for(var l,c,u=a,d=null,m=0,f=u.contexts;m<f.length;m++){var g=f[m];(!d||g._score>=d._score)&&(d=g)}d&&d._score>0&&((l=this._propNames).push.apply(l,d._propNames),(c=this._messages).push.apply(c,d._messages))},i.prototype.getError=function(a){for(var l=[],c=this._propNames.length-1;c>=0;c--){var u=this._propNames[c];a+=typeof u=="number"?"["+u+"]":u?"."+u:"";var d=this._messages[c];d&&l.push(a+" "+d)}return new e(a,l.join("; "))},i.prototype.getErrorDetail=function(a){for(var l=[],c=this._propNames.length-1;c>=0;c--){var u=this._propNames[c];a+=typeof u=="number"?"["+u+"]":u?"."+u:"";var d=this._messages[c];d&&l.push({path:a,message:d})}for(var m=null,c=l.length-1;c>=0;c--)m&&(l[c].nested=[m]),m=l[c];return m},i}();Ut.DetailContext=s;var r=function(){function i(){this.contexts=[]}return i.prototype.createContext=function(){var a=new s;return this.contexts.push(a),a},i}();return Ut}var q1;function H1(){return q1||(q1=1,function(t){var e=Mr&&Mr.__extends||function(){var x=function(F,B){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ee){J.__proto__=ee}||function(J,ee){for(var ie in ee)ee.hasOwnProperty(ie)&&(J[ie]=ee[ie])},x(F,B)};return function(F,B){x(F,B);function J(){this.constructor=F}F.prototype=B===null?Object.create(B):(J.prototype=B.prototype,new J)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.basicTypes=t.BasicType=t.TParamList=t.TParam=t.param=t.TFunc=t.func=t.TProp=t.TOptional=t.opt=t.TIface=t.iface=t.TEnumLiteral=t.enumlit=t.TEnumType=t.enumtype=t.TIntersection=t.intersection=t.TUnion=t.union=t.TTuple=t.tuple=t.TArray=t.array=t.TLiteral=t.lit=t.TName=t.name=t.TType=void 0;var n=Hl(),s=function(){function x(){}return x}();t.TType=s;function r(x){return typeof x=="string"?a(x):x}function i(x,F){var B=x[F];if(!B)throw new Error("Unknown type "+F);return B}function a(x){return new l(x)}t.name=a;var l=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.name=B,J._failMsg="is not a "+B,J}return F.prototype.getChecker=function(B,J,ee){var ie=this,se=i(B,this.name),ke=se.getChecker(B,J,ee);return se instanceof X||se instanceof F?ke:function(ye,be){return ke(ye,be)?!0:be.fail(null,ie._failMsg,0)}},F}(s);t.TName=l;function c(x){return new u(x)}t.lit=c;var u=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.value=B,J.name=JSON.stringify(B),J._failMsg="is not "+J.name,J}return F.prototype.getChecker=function(B,J){var ee=this;return function(ie,se){return ie===ee.value?!0:se.fail(null,ee._failMsg,-1)}},F}(s);t.TLiteral=u;function d(x){return new m(r(x))}t.array=d;var m=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.ttype=B,J}return F.prototype.getChecker=function(B,J){var ee=this.ttype.getChecker(B,J);return function(ie,se){if(!Array.isArray(ie))return se.fail(null,"is not an array",0);for(var ke=0;ke<ie.length;ke++){var ye=ee(ie[ke],se);if(!ye)return se.fail(ke,null,1)}return!0}},F}(s);t.TArray=m;function f(){for(var x=[],F=0;F<arguments.length;F++)x[F]=arguments[F];return new g(x.map(function(B){return r(B)}))}t.tuple=f;var g=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.ttypes=B,J}return F.prototype.getChecker=function(B,J){var ee=this.ttypes.map(function(se){return se.getChecker(B,J)}),ie=function(se,ke){if(!Array.isArray(se))return ke.fail(null,"is not an array",0);for(var ye=0;ye<ee.length;ye++){var be=ee[ye](se[ye],ke);if(!be)return ke.fail(ye,null,1)}return!0};return J?function(se,ke){return ie(se,ke)?se.length<=ee.length?!0:ke.fail(ee.length,"is extraneous",2):!1}:ie},F}(s);t.TTuple=g;function w(){for(var x=[],F=0;F<arguments.length;F++)x[F]=arguments[F];return new k(x.map(function(B){return r(B)}))}t.union=w;var k=function(x){e(F,x);function F(B){var J=x.call(this)||this;J.ttypes=B;var ee=B.map(function(se){return se instanceof l||se instanceof u?se.name:null}).filter(function(se){return se}),ie=B.length-ee.length;return ee.length?(ie>0&&ee.push(ie+" more"),J._failMsg="is none of "+ee.join(", ")):J._failMsg="is none of "+ie+" types",J}return F.prototype.getChecker=function(B,J){var ee=this,ie=this.ttypes.map(function(se){return se.getChecker(B,J)});return function(se,ke){for(var ye=ke.unionResolver(),be=0;be<ie.length;be++){var fe=ie[be](se,ye.createContext());if(fe)return!0}return ke.resolveUnion(ye),ke.fail(null,ee._failMsg,0)}},F}(s);t.TUnion=k;function I(){for(var x=[],F=0;F<arguments.length;F++)x[F]=arguments[F];return new E(x.map(function(B){return r(B)}))}t.intersection=I;var E=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.ttypes=B,J}return F.prototype.getChecker=function(B,J){var ee=new Set,ie=this.ttypes.map(function(se){return se.getChecker(B,J,ee)});return function(se,ke){var ye=ie.every(function(be){return be(se,ke)});return ye?!0:ke.fail(null,null,0)}},F}(s);t.TIntersection=E;function b(x){return new A(x)}t.enumtype=b;var A=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.members=B,J.validValues=new Set,J._failMsg="is not a valid enum value",J.validValues=new Set(Object.keys(B).map(function(ee){return B[ee]})),J}return F.prototype.getChecker=function(B,J){var ee=this;return function(ie,se){return ee.validValues.has(ie)?!0:se.fail(null,ee._failMsg,0)}},F}(s);t.TEnumType=A;function v(x,F){return new $(x,F)}t.enumlit=v;var $=function(x){e(F,x);function F(B,J){var ee=x.call(this)||this;return ee.enumName=B,ee.prop=J,ee._failMsg="is not "+B+"."+J,ee}return F.prototype.getChecker=function(B,J){var ee=this,ie=i(B,this.enumName);if(!(ie instanceof A))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var se=ie.members[this.prop];if(!ie.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(ke,ye){return ke===se?!0:ye.fail(null,ee._failMsg,-1)}},F}(s);t.TEnumLiteral=$;function D(x){return Object.keys(x).map(function(F){return j(F,x[F])})}function j(x,F){return F instanceof _?new N(x,F.ttype,!0):new N(x,r(F),!1)}function V(x,F){return new U(x,D(F))}t.iface=V;var U=function(x){e(F,x);function F(B,J){var ee=x.call(this)||this;return ee.bases=B,ee.props=J,ee.propSet=new Set(J.map(function(ie){return ie.name})),ee}return F.prototype.getChecker=function(B,J,ee){var ie=this,se=this.bases.map(function(qe){return i(B,qe).getChecker(B,J)}),ke=this.props.map(function(qe){return qe.ttype.getChecker(B,J)}),ye=new n.NoopContext,be=this.props.map(function(qe,ne){return!qe.isOpt&&!ke[ne](void 0,ye)}),fe=function(qe,ne){if(typeof qe!="object"||qe===null)return ne.fail(null,"is not an object",0);for(var we=0;we<se.length;we++)if(!se[we](qe,ne))return!1;for(var we=0;we<ke.length;we++){var Z=ie.props[we].name,Se=qe[Z];if(Se===void 0){if(be[we])return ne.fail(Z,"is missing",1)}else{var Xe=ke[we](Se,ne);if(!Xe)return ne.fail(Z,null,1)}}return!0};if(!J)return fe;var Oe=this.propSet;return ee&&(this.propSet.forEach(function(qe){return ee.add(qe)}),Oe=ee),function(qe,ne){if(!fe(qe,ne))return!1;for(var we in qe)if(!Oe.has(we))return ne.fail(we,"is extraneous",2);return!0}},F}(s);t.TIface=U;function O(x){return new _(r(x))}t.opt=O;var _=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.ttype=B,J}return F.prototype.getChecker=function(B,J){var ee=this.ttype.getChecker(B,J);return function(ie,se){return ie===void 0||ee(ie,se)}},F}(s);t.TOptional=_;var N=function(){function x(F,B,J){this.name=F,this.ttype=B,this.isOpt=J}return x}();t.TProp=N;function C(x){for(var F=[],B=1;B<arguments.length;B++)F[B-1]=arguments[B];return new R(new K(F),r(x))}t.func=C;var R=function(x){e(F,x);function F(B,J){var ee=x.call(this)||this;return ee.paramList=B,ee.result=J,ee}return F.prototype.getChecker=function(B,J){return function(ee,ie){return typeof ee=="function"?!0:ie.fail(null,"is not a function",0)}},F}(s);t.TFunc=R;function M(x,F,B){return new q(x,r(F),!!B)}t.param=M;var q=function(){function x(F,B,J){this.name=F,this.ttype=B,this.isOpt=J}return x}();t.TParam=q;var K=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.params=B,J}return F.prototype.getChecker=function(B,J){var ee=this,ie=this.params.map(function(be){return be.ttype.getChecker(B,J)}),se=new n.NoopContext,ke=this.params.map(function(be,fe){return!be.isOpt&&!ie[fe](void 0,se)}),ye=function(be,fe){if(!Array.isArray(be))return fe.fail(null,"is not an array",0);for(var Oe=0;Oe<ie.length;Oe++){var qe=ee.params[Oe];if(be[Oe]===void 0){if(ke[Oe])return fe.fail(qe.name,"is missing",1)}else{var ne=ie[Oe](be[Oe],fe);if(!ne)return fe.fail(qe.name,null,1)}}return!0};return J?function(be,fe){return ye(be,fe)?be.length<=ie.length?!0:fe.fail(ie.length,"is extraneous",2):!1}:ye},F}(s);t.TParamList=K;var X=function(x){e(F,x);function F(B,J){var ee=x.call(this)||this;return ee.validator=B,ee.message=J,ee}return F.prototype.getChecker=function(B,J){var ee=this;return function(ie,se){return ee.validator(ie)?!0:se.fail(null,ee.message,0)}},F}(s);t.BasicType=X,t.basicTypes={any:new X(function(x){return!0},"is invalid"),number:new X(function(x){return typeof x=="number"},"is not a number"),object:new X(function(x){return typeof x=="object"&&x},"is not an object"),boolean:new X(function(x){return typeof x=="boolean"},"is not a boolean"),string:new X(function(x){return typeof x=="string"},"is not a string"),symbol:new X(function(x){return typeof x=="symbol"},"is not a symbol"),void:new X(function(x){return x==null},"is not void"),undefined:new X(function(x){return x===void 0},"is not undefined"),null:new X(function(x){return x===null},"is not null"),never:new X(function(x){return!1},"is unexpected"),Date:new X(T("[object Date]"),"is not a Date"),RegExp:new X(T("[object RegExp]"),"is not a RegExp")};var ae=Object.prototype.toString;function T(x){return function(F){return typeof F=="object"&&F&&ae.call(F)===x}}typeof Buffer<"u"&&(t.basicTypes.Buffer=new X(function(x){return Buffer.isBuffer(x)},"is not a Buffer"));for(var de=function(x){t.basicTypes[x.name]=new X(function(F){return F instanceof x},"is not a "+x.name)},he=0,ce=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];he<ce.length;he++){var L=ce[he];de(L)}}(Mr)),Mr}var W1;function Yx(){return W1||(W1=1,function(t){var e=Lr&&Lr.__spreadArrays||function(){for(var c=0,u=0,d=arguments.length;u<d;u++)c+=arguments[u].length;for(var m=Array(c),f=0,u=0;u<d;u++)for(var g=arguments[u],w=0,k=g.length;w<k;w++,f++)m[f]=g[w];return m};Object.defineProperty(t,"__esModule",{value:!0}),t.Checker=t.createCheckers=void 0;var n=H1(),s=Hl(),r=H1();Object.defineProperty(t,"TArray",{enumerable:!0,get:function(){return r.TArray}}),Object.defineProperty(t,"TEnumType",{enumerable:!0,get:function(){return r.TEnumType}}),Object.defineProperty(t,"TEnumLiteral",{enumerable:!0,get:function(){return r.TEnumLiteral}}),Object.defineProperty(t,"TFunc",{enumerable:!0,get:function(){return r.TFunc}}),Object.defineProperty(t,"TIface",{enumerable:!0,get:function(){return r.TIface}}),Object.defineProperty(t,"TLiteral",{enumerable:!0,get:function(){return r.TLiteral}}),Object.defineProperty(t,"TName",{enumerable:!0,get:function(){return r.TName}}),Object.defineProperty(t,"TOptional",{enumerable:!0,get:function(){return r.TOptional}}),Object.defineProperty(t,"TParam",{enumerable:!0,get:function(){return r.TParam}}),Object.defineProperty(t,"TParamList",{enumerable:!0,get:function(){return r.TParamList}}),Object.defineProperty(t,"TProp",{enumerable:!0,get:function(){return r.TProp}}),Object.defineProperty(t,"TTuple",{enumerable:!0,get:function(){return r.TTuple}}),Object.defineProperty(t,"TType",{enumerable:!0,get:function(){return r.TType}}),Object.defineProperty(t,"TUnion",{enumerable:!0,get:function(){return r.TUnion}}),Object.defineProperty(t,"TIntersection",{enumerable:!0,get:function(){return r.TIntersection}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return r.array}}),Object.defineProperty(t,"enumlit",{enumerable:!0,get:function(){return r.enumlit}}),Object.defineProperty(t,"enumtype",{enumerable:!0,get:function(){return r.enumtype}}),Object.defineProperty(t,"func",{enumerable:!0,get:function(){return r.func}}),Object.defineProperty(t,"iface",{enumerable:!0,get:function(){return r.iface}}),Object.defineProperty(t,"lit",{enumerable:!0,get:function(){return r.lit}}),Object.defineProperty(t,"name",{enumerable:!0,get:function(){return r.name}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return r.opt}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return r.param}}),Object.defineProperty(t,"tuple",{enumerable:!0,get:function(){return r.tuple}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return r.union}}),Object.defineProperty(t,"intersection",{enumerable:!0,get:function(){return r.intersection}}),Object.defineProperty(t,"BasicType",{enumerable:!0,get:function(){return r.BasicType}});var i=Hl();Object.defineProperty(t,"VError",{enumerable:!0,get:function(){return i.VError}});function a(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];for(var d=Object.assign.apply(Object,e([{},n.basicTypes],c)),m={},f=0,g=c;f<g.length;f++)for(var w=g[f],k=0,I=Object.keys(w);k<I.length;k++){var E=I[k];m[E]=new l(d,w[E])}return m}t.createCheckers=a;var l=function(){function c(u,d,m){if(m===void 0&&(m="value"),this.suite=u,this.ttype=d,this._path=m,this.props=new Map,d instanceof n.TIface)for(var f=0,g=d.props;f<g.length;f++){var w=g[f];this.props.set(w.name,w.ttype)}this.checkerPlain=this.ttype.getChecker(u,!1),this.checkerStrict=this.ttype.getChecker(u,!0)}return c.prototype.setReportedPath=function(u){this._path=u},c.prototype.check=function(u){return this._doCheck(this.checkerPlain,u)},c.prototype.test=function(u){return this.checkerPlain(u,new s.NoopContext)},c.prototype.validate=function(u){return this._doValidate(this.checkerPlain,u)},c.prototype.strictCheck=function(u){return this._doCheck(this.checkerStrict,u)},c.prototype.strictTest=function(u){return this.checkerStrict(u,new s.NoopContext)},c.prototype.strictValidate=function(u){return this._doValidate(this.checkerStrict,u)},c.prototype.getProp=function(u){var d=this.props.get(u);if(!d)throw new Error("Type has no property "+u);return new c(this.suite,d,this._path+"."+u)},c.prototype.methodArgs=function(u){var d=this._getMethod(u);return new c(this.suite,d.paramList)},c.prototype.methodResult=function(u){var d=this._getMethod(u);return new c(this.suite,d.result)},c.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new c(this.suite,this.ttype.paramList)},c.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new c(this.suite,this.ttype.result)},c.prototype.getType=function(){return this.ttype},c.prototype._doCheck=function(u,d){var m=new s.NoopContext;if(!u(d,m)){var f=new s.DetailContext;throw u(d,f),f.getError(this._path)}},c.prototype._doValidate=function(u,d){var m=new s.NoopContext;if(u(d,m))return null;var f=new s.DetailContext;return u(d,f),f.getErrorDetail(this._path)},c.prototype._getMethod=function(u){var d=this.props.get(u);if(!d)throw new Error("Type has no property "+u);if(!(d instanceof n.TFunc))throw new Error("Property "+u+" is not a method");return d},c}();t.Checker=l}(Lr)),Lr}var Ge=Yx();const Qx=Ge.union(Ge.lit("jsx"),Ge.lit("typescript"),Ge.lit("flow"),Ge.lit("imports"),Ge.lit("react-hot-loader"),Ge.lit("jest")),Zx=Ge.iface([],{compiledFilename:"string"}),ek=Ge.iface([],{transforms:Ge.array("Transform"),disableESTransforms:Ge.opt("boolean"),jsxRuntime:Ge.opt(Ge.union(Ge.lit("classic"),Ge.lit("automatic"),Ge.lit("preserve"))),production:Ge.opt("boolean"),jsxImportSource:Ge.opt("string"),jsxPragma:Ge.opt("string"),jsxFragmentPragma:Ge.opt("string"),keepUnusedImports:Ge.opt("boolean"),preserveDynamicImport:Ge.opt("boolean"),injectCreateRequireForImportRequire:Ge.opt("boolean"),enableLegacyTypeScriptModuleInterop:Ge.opt("boolean"),enableLegacyBabel5ModuleInterop:Ge.opt("boolean"),sourceMapOptions:Ge.opt("SourceMapOptions"),filePath:Ge.opt("string")}),tk={Transform:Qx,SourceMapOptions:Zx,Options:ek},{Options:nk}=Ge.createCheckers(tk);function sk(t){nk.strictCheck(t)}function G1(){W(),gt(!1)}function X1(t){W(),No(t)}function $n(t){xe(),Wl(t)}function $o(){xe(),h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration}function Wl(t){let e;h.scopeDepth===0?e=ge.TopLevelDeclaration:t?e=ge.BlockScopedDeclaration:e=ge.FunctionScopedDeclaration,h.tokens[h.tokens.length-1].identifierRole=e}function No(t){switch(h.type){case o._this:{const e=Ne(0);W(),$e(e);return}case o._yield:case o.name:{h.type=o.name,$n(t);return}case o.bracketL:{W(),Gl(o.bracketR,t,!0);return}case o.braceL:hc(!0,t);return;default:Ie()}}function Gl(t,e,n=!1,s=!1,r=0){let i=!0,a=!1;const l=h.tokens.length;for(;!z(t)&&!h.error;)if(i?i=!1:(H(o.comma),h.tokens[h.tokens.length-1].contextId=r,!a&&h.tokens[l].isType&&(h.tokens[h.tokens.length-1].isType=!0,a=!0)),!(n&&y(o.comma))){if(z(t))break;if(y(o.ellipsis)){X1(e),K1(),z(o.comma),H(t);break}else rk(s,e)}}function rk(t,e){t&&Kl([S._public,S._protected,S._private,S._readonly,S._override]),Co(e),K1(),Co(e,!0)}function K1(){Be?AA():De&&dE()}function Co(t,e=!1){if(e||No(t),!z(o.eq))return;const n=h.tokens.length-1;gt(),h.tokens[n].rhsEndIndex=h.tokens.length}function Xl(){return y(o.name)}function ik(){return y(o.name)||!!(h.type&o.IS_KEYWORD)||y(o.string)||y(o.num)||y(o.bigint)||y(o.decimal)}function J1(){const t=h.snapshot();return W(),(y(o.bracketL)||y(o.braceL)||y(o.star)||y(o.ellipsis)||y(o.hash)||ik())&&!Et()?!0:(h.restoreFromSnapshot(t),!1)}function Kl(t){for(;Y1(t)!==null;);}function Y1(t){if(!y(o.name))return null;const e=h.contextualKeyword;if(t.indexOf(e)!==-1&&J1()){switch(e){case S._readonly:h.tokens[h.tokens.length-1].type=o._readonly;break;case S._abstract:h.tokens[h.tokens.length-1].type=o._abstract;break;case S._static:h.tokens[h.tokens.length-1].type=o._static;break;case S._public:h.tokens[h.tokens.length-1].type=o._public;break;case S._private:h.tokens[h.tokens.length-1].type=o._private;break;case S._protected:h.tokens[h.tokens.length-1].type=o._protected;break;case S._override:h.tokens[h.tokens.length-1].type=o._override;break;case S._declare:h.tokens[h.tokens.length-1].type=o._declare;break}return e}return null}function Fr(){for(xe();z(o.dot);)xe()}function ok(){Fr(),!Et()&&y(o.lessThan)&&Bs()}function ak(){W(),jr()}function lk(){W()}function ck(){H(o._typeof),y(o._import)?Q1():Fr(),!Et()&&y(o.lessThan)&&Bs()}function Q1(){H(o._import),H(o.parenL),H(o.string),H(o.parenR),z(o.dot)&&Fr(),y(o.lessThan)&&Bs()}function uk(){z(o._const);const t=z(o._in),e=ut(S._out);z(o._const),(t||e)&&!y(o.name)?h.tokens[h.tokens.length-1].type=o.name:xe(),z(o._extends)&&tt(),z(o.eq)&&tt()}function os(){y(o.lessThan)&&To()}function To(){const t=Ne(0);for(y(o.lessThan)||y(o.typeParameterStart)?W():Ie();!z(o.greaterThan)&&!h.error;)uk(),z(o.comma);$e(t)}function Jl(t){const e=t===o.arrow;os(),H(o.parenL),h.scopeDepth++,hk(!1),h.scopeDepth--,(e||y(t))&&Br(t)}function hk(t){Gl(o.parenR,t)}function Ro(){z(o.comma)||Je()}function Z1(){Jl(o.colon),Ro()}function dk(){const t=h.snapshot();W();const e=z(o.name)&&y(o.colon);return h.restoreFromSnapshot(t),e}function ef(){if(!(y(o.bracketL)&&dk()))return!1;const t=Ne(0);return H(o.bracketL),xe(),jr(),H(o.bracketR),Ms(),Ro(),$e(t),!0}function tf(t){z(o.question),!t&&(y(o.parenL)||y(o.lessThan))?(Jl(o.colon),Ro()):(Ms(),Ro())}function pk(){if(y(o.parenL)||y(o.lessThan)){Z1();return}if(y(o._new)){W(),y(o.parenL)||y(o.lessThan)?Z1():tf(!1);return}const t=!!Y1([S._readonly]);ef()||((me(S._get)||me(S._set))&&J1(),Vr(-1),tf(t))}function fk(){nf()}function nf(){for(H(o.braceL);!z(o.braceR)&&!h.error;)pk()}function mk(){const t=h.snapshot(),e=gk();return h.restoreFromSnapshot(t),e}function gk(){return W(),z(o.plus)||z(o.minus)?me(S._readonly):(me(S._readonly)&&W(),!y(o.bracketL)||(W(),!Xl())?!1:(W(),y(o._in)))}function yk(){xe(),H(o._in),tt()}function bk(){H(o.braceL),y(o.plus)||y(o.minus)?(W(),rt(S._readonly)):ut(S._readonly),H(o.bracketL),yk(),ut(S._as)&&tt(),H(o.bracketR),y(o.plus)||y(o.minus)?(W(),H(o.question)):z(o.question),Tk(),Je(),H(o.braceR)}function xk(){for(H(o.bracketL);!z(o.bracketR)&&!h.error;)kk(),z(o.comma)}function kk(){z(o.ellipsis)?tt():(tt(),z(o.question)),z(o.colon)&&tt()}function Ek(){H(o.parenL),tt(),H(o.parenR)}function Ak(){for(Pn(),Pn();!y(o.backQuote)&&!h.error;)H(o.dollarBraceL),tt(),Pn(),Pn();W()}var Nn;(function(t){t[t.TSFunctionType=0]="TSFunctionType";const n=1;t[t.TSConstructorType=n]="TSConstructorType";const s=n+1;t[t.TSAbstractConstructorType=s]="TSAbstractConstructorType"})(Nn||(Nn={}));function Yl(t){t===Nn.TSAbstractConstructorType&&rt(S._abstract),(t===Nn.TSConstructorType||t===Nn.TSAbstractConstructorType)&&H(o._new);const e=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!1,Jl(o.arrow),h.inDisallowConditionalTypesContext=e}function wk(){switch(h.type){case o.name:ok();return;case o._void:case o._null:W();return;case o.string:case o.num:case o.bigint:case o.decimal:case o._true:case o._false:zs();return;case o.minus:W(),zs();return;case o._this:{lk(),me(S._is)&&!Et()&&ak();return}case o._typeof:ck();return;case o._import:Q1();return;case o.braceL:mk()?bk():fk();return;case o.bracketL:xk();return;case o.parenL:Ek();return;case o.backQuote:Ak();return;default:if(h.type&o.IS_KEYWORD){W(),h.tokens[h.tokens.length-1].type=o.name;return}break}Ie()}function Sk(){for(wk();!Et()&&z(o.bracketL);)z(o.bracketR)||(tt(),H(o.bracketR))}function Ik(){if(rt(S._infer),xe(),y(o._extends)){const t=h.snapshot();H(o._extends);const e=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!0,tt(),h.inDisallowConditionalTypesContext=e,(h.error||!h.inDisallowConditionalTypesContext&&y(o.question))&&h.restoreFromSnapshot(t)}}function Ql(){if(me(S._keyof)||me(S._unique)||me(S._readonly))W(),Ql();else if(me(S._infer))Ik();else{const t=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!1,Sk(),h.inDisallowConditionalTypesContext=t}}function sf(){if(z(o.bitwiseAND),Ql(),y(o.bitwiseAND))for(;z(o.bitwiseAND);)Ql()}function vk(){if(z(o.bitwiseOR),sf(),y(o.bitwiseOR))for(;z(o.bitwiseOR);)sf()}function _k(){return y(o.lessThan)?!0:y(o.parenL)&&$k()}function Pk(){if(y(o.name)||y(o._this))return W(),!0;if(y(o.braceL)||y(o.bracketL)){let t=1;for(W();t>0&&!h.error;)y(o.braceL)||y(o.bracketL)?t++:(y(o.braceR)||y(o.bracketR))&&t--,W();return!0}return!1}function $k(){const t=h.snapshot(),e=Nk();return h.restoreFromSnapshot(t),e}function Nk(){return W(),!!(y(o.parenR)||y(o.ellipsis)||Pk()&&(y(o.colon)||y(o.comma)||y(o.question)||y(o.eq)||y(o.parenR)&&(W(),y(o.arrow))))}function Br(t){const e=Ne(0);H(t),Rk()||tt(),$e(e)}function Ck(){y(o.colon)&&Br(o.colon)}function Ms(){y(o.colon)&&jr()}function Tk(){z(o.colon)&&tt()}function Rk(){const t=h.snapshot();return me(S._asserts)?(W(),ut(S._is)?(tt(),!0):Xl()||y(o._this)?(W(),ut(S._is)&&tt(),!0):(h.restoreFromSnapshot(t),!1)):Xl()||y(o._this)?(W(),me(S._is)&&!Et()?(W(),tt(),!0):(h.restoreFromSnapshot(t),!1)):!1}function jr(){const t=Ne(0);H(o.colon),tt(),$e(t)}function tt(){if(rf(),h.inDisallowConditionalTypesContext||Et()||!z(o._extends))return;const t=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!0,rf(),h.inDisallowConditionalTypesContext=t,H(o.question),tt(),H(o.colon),tt()}function Dk(){return me(S._abstract)&&et()===o._new}function rf(){if(_k()){Yl(Nn.TSFunctionType);return}if(y(o._new)){Yl(Nn.TSConstructorType);return}else if(Dk()){Yl(Nn.TSAbstractConstructorType);return}vk()}function Ok(){const t=Ne(1);tt(),H(o.greaterThan),$e(t),zr()}function Lk(){if(z(o.jsxTagStart)){h.tokens[h.tokens.length-1].type=o.typeParameterStart;const t=Ne(1);for(;!y(o.greaterThan)&&!h.error;)tt(),z(o.comma);Ot(),$e(t)}}function of(){for(;!y(o.braceL)&&!h.error;)Mk(),z(o.comma)}function Mk(){Fr(),y(o.lessThan)&&Bs()}function Fk(){$n(!1),os(),z(o._extends)&&of(),nf()}function Bk(){$n(!1),os(),H(o.eq),tt(),Je()}function jk(){if(y(o.string)?zs():xe(),z(o.eq)){const t=h.tokens.length-1;gt(),h.tokens[t].rhsEndIndex=h.tokens.length}}function Zl(){for($n(!1),H(o.braceL);!z(o.braceR)&&!h.error;)jk(),z(o.comma)}function ec(){H(o.braceL),Uo(o.braceR)}function tc(){$n(!1),z(o.dot)?tc():ec()}function af(){me(S._global)?xe():y(o.string)?yn():Ie(),y(o.braceL)?ec():Je()}function nc(){$o(),H(o.eq),Vk(),Je()}function zk(){return me(S._require)&&et()===o.parenL}function Vk(){zk()?Uk():Fr()}function Uk(){rt(S._require),H(o.parenL),y(o.string)||Ie(),zs(),H(o.parenR)}function qk(){if(tn())return!1;switch(h.type){case o._function:{const t=Ne(1);W();const e=h.start;return cs(e,!0),$e(t),!0}case o._class:{const t=Ne(1);return us(!0,!1),$e(t),!0}case o._const:if(y(o._const)&&Bl(S._enum)){const t=Ne(1);return H(o._const),rt(S._enum),h.tokens[h.tokens.length-1].type=o._enum,Zl(),$e(t),!0}case o._var:case o._let:{const t=Ne(1);return Vo(h.type!==o._var),$e(t),!0}case o.name:{const t=Ne(1),e=h.contextualKeyword;let n=!1;return e===S._global?(af(),n=!0):n=Do(e,!0),$e(t),n}default:return!1}}function lf(){return Do(h.contextualKeyword,!0)}function Hk(t){switch(t){case S._declare:{const e=h.tokens.length-1;if(qk())return h.tokens[e].type=o._declare,!0;break}case S._global:if(y(o.braceL))return ec(),!0;break;default:return Do(t,!1)}return!1}function Do(t,e){switch(t){case S._abstract:if(Fs(e)&&y(o._class))return h.tokens[h.tokens.length-1].type=o._abstract,us(!0,!1),!0;break;case S._enum:if(Fs(e)&&y(o.name))return h.tokens[h.tokens.length-1].type=o._enum,Zl(),!0;break;case S._interface:if(Fs(e)&&y(o.name)){const n=Ne(e?2:1);return Fk(),$e(n),!0}break;case S._module:if(Fs(e)){if(y(o.string)){const n=Ne(e?2:1);return af(),$e(n),!0}else if(y(o.name)){const n=Ne(e?2:1);return tc(),$e(n),!0}}break;case S._namespace:if(Fs(e)&&y(o.name)){const n=Ne(e?2:1);return tc(),$e(n),!0}break;case S._type:if(Fs(e)&&y(o.name)){const n=Ne(e?2:1);return Bk(),$e(n),!0}break}return!1}function Fs(t){return t?(W(),!0):!tn()}function Wk(){const t=h.snapshot();return To(),Vs(),Ck(),H(o.arrow),h.error?(h.restoreFromSnapshot(t),!1):(qr(!0),!0)}function sc(){h.type===o.bitShiftL&&(h.pos-=1,ve(o.lessThan)),Bs()}function Bs(){const t=Ne(0);for(H(o.lessThan);!y(o.greaterThan)&&!h.error;)tt(),z(o.comma);t?(H(o.greaterThan),$e(t)):($e(t),P1(),H(o.greaterThan),h.tokens[h.tokens.length-1].isType=!0)}function cf(){if(y(o.name))switch(h.contextualKeyword){case S._abstract:case S._declare:case S._enum:case S._interface:case S._module:case S._namespace:case S._type:return!0}return!1}function Gk(t,e){if(y(o.colon)&&Br(o.colon),!y(o.braceL)&&tn()){let n=h.tokens.length-1;for(;n>=0&&(h.tokens[n].start>=t||h.tokens[n].type===o._default||h.tokens[n].type===o._export);)h.tokens[n].isType=!0,n--;return}qr(!1,e)}function Xk(t,e,n){if(!Et()&&z(o.bang)){h.tokens[h.tokens.length-1].type=o.nonNullAssertion;return}if(y(o.lessThan)||y(o.bitShiftL)){const s=h.snapshot();if(!e&&yf()&&Wk())return;if(sc(),!e&&z(o.parenL)?(h.tokens[h.tokens.length-1].subscriptStartIndex=t,Cn()):y(o.backQuote)?uc():(h.type===o.greaterThan||h.type!==o.parenL&&h.type&o.IS_EXPRESSION_START&&!Et())&&Ie(),h.error)h.restoreFromSnapshot(s);else return}else!e&&y(o.questionDot)&&et()===o.lessThan&&(W(),h.tokens[t].isOptionalChainStart=!0,h.tokens[h.tokens.length-1].subscriptStartIndex=t,Bs(),H(o.parenL),Cn());oc(t,e,n)}function Kk(){if(z(o._import))return me(S._type)&&et()!==o.eq&&rt(S._type),nc(),!0;if(z(o.eq))return mt(),Je(),!0;if(ut(S._as))return rt(S._namespace),xe(),Je(),!0;if(me(S._type)){const t=et();(t===o.braceL||t===o.star)&&W()}return!1}function Jk(){if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-3].identifierRole=ge.ImportAccess,h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration;return}xe(),h.tokens[h.tokens.length-3].identifierRole=ge.ImportAccess,h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration,h.tokens[h.tokens.length-4].isType=!0,h.tokens[h.tokens.length-3].isType=!0,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0}function Yk(){if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ExportAccess;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ExportAccess,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-3].identifierRole=ge.ExportAccess;return}xe(),h.tokens[h.tokens.length-3].identifierRole=ge.ExportAccess,h.tokens[h.tokens.length-4].isType=!0,h.tokens[h.tokens.length-3].isType=!0,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0}function Qk(){if(me(S._abstract)&&et()===o._class)return h.type=o._abstract,W(),us(!0,!0),!0;if(me(S._interface)){const t=Ne(2);return Do(S._interface,!0),$e(t),!0}return!1}function Zk(){if(h.type===o._const){const t=Rr();if(t.type===o.name&&t.contextualKeyword===S._enum)return H(o._const),rt(S._enum),h.tokens[h.tokens.length-1].type=o._enum,Zl(),!0}return!1}function eE(t){const e=h.tokens.length;Kl([S._abstract,S._readonly,S._declare,S._static,S._override]);const n=h.tokens.length;if(ef()){const r=t?e-1:e;for(let i=r;i<n;i++)h.tokens[i].isType=!0;return!0}return!1}function tE(t){Hk(t)||Je()}function nE(){const t=ut(S._declare);t&&(h.tokens[h.tokens.length-1].type=o._declare);let e=!1;if(y(o.name))if(t){const n=Ne(2);e=lf(),$e(n)}else e=lf();if(!e)if(t){const n=Ne(2);Tt(!0),$e(n)}else Tt(!0)}function sE(t){if(t&&(y(o.lessThan)||y(o.bitShiftL))&&sc(),ut(S._implements)){h.tokens[h.tokens.length-1].type=o._implements;const e=Ne(1);of(),$e(e)}}function rE(){os()}function iE(){os()}function oE(){const t=Ne(0);Et()||z(o.bang),Ms(),$e(t)}function aE(){y(o.colon)&&jr()}function lE(t,e){return So?cE(t,e):uE(t,e)}function cE(t,e){if(!y(o.lessThan))return nn(t,e);const n=h.snapshot();let s=nn(t,e);if(h.error)h.restoreFromSnapshot(n);else return s;return h.type=o.typeParameterStart,To(),s=nn(t,e),s||Ie(),s}function uE(t,e){if(!y(o.lessThan))return nn(t,e);const n=h.snapshot();To();const s=nn(t,e);if(s||Ie(),h.error)h.restoreFromSnapshot(n);else return s;return nn(t,e)}function hE(){if(y(o.colon)){const t=h.snapshot();Br(o.colon),Ct()&&Ie(),y(o.arrow)||Ie(),h.error&&h.restoreFromSnapshot(t)}return z(o.arrow)}function dE(){const t=Ne(0);z(o.question),Ms(),$e(t)}function pE(){(y(o.lessThan)||y(o.bitShiftL))&&sc(),Tf()}function fE(){let t=!1,e=!1;for(;;){if(h.pos>=re.length){Ie("Unterminated JSX contents");return}const n=re.charCodeAt(h.pos);if(n===P.lessThan||n===P.leftCurlyBrace){if(h.pos===h.start){if(n===P.lessThan){h.pos++,ve(o.jsxTagStart);return}$1(n);return}ve(t&&!e?o.jsxEmptyText:o.jsxText);return}n===P.lineFeed?t=!0:n!==P.space&&n!==P.carriageReturn&&n!==P.tab&&(e=!0),h.pos++}}function mE(t){for(h.pos++;;){if(h.pos>=re.length){Ie("Unterminated string constant");return}if(re.charCodeAt(h.pos)===t){h.pos++;break}h.pos++}ve(o.string)}function gE(){let t;do{if(h.pos>re.length){Ie("Unexpectedly reached the end of input.");return}t=re.charCodeAt(++h.pos)}while(jt[t]||t===P.dash);ve(o.jsxName)}function rc(){Ot()}function uf(t){if(rc(),!z(o.colon)){h.tokens[h.tokens.length-1].identifierRole=t;return}rc()}function hf(){const t=h.tokens.length;uf(ge.Access);let e=!1;for(;y(o.dot);)e=!0,Ot(),rc();if(!e){const n=h.tokens[t],s=re.charCodeAt(n.start);s>=P.lowercaseA&&s<=P.lowercaseZ&&(n.identifierRole=null)}}function yE(){switch(h.type){case o.braceL:W(),mt(),Ot();return;case o.jsxTagStart:pf(),Ot();return;case o.string:Ot();return;default:Ie("JSX value should be either an expression or a quoted JSX text")}}function bE(){H(o.ellipsis),mt()}function xE(t){if(y(o.jsxTagEnd))return!1;hf(),De&&Lk();let e=!1;for(;!y(o.slash)&&!y(o.jsxTagEnd)&&!h.error;){if(z(o.braceL)){e=!0,H(o.ellipsis),gt(),Ot();continue}e&&h.end-h.start===3&&re.charCodeAt(h.start)===P.lowercaseK&&re.charCodeAt(h.start+1)===P.lowercaseE&&re.charCodeAt(h.start+2)===P.lowercaseY&&(h.tokens[t].jsxRole=zt.KeyAfterPropSpread),uf(ge.ObjectKey),y(o.eq)&&(Ot(),yE())}const n=y(o.slash);return n&&Ot(),n}function kE(){y(o.jsxTagEnd)||hf()}function df(){const t=h.tokens.length-1;h.tokens[t].jsxRole=zt.NoChildren;let e=0;if(!xE(t))for(js();;)switch(h.type){case o.jsxTagStart:if(Ot(),y(o.slash)){Ot(),kE(),h.tokens[t].jsxRole!==zt.KeyAfterPropSpread&&(e===1?h.tokens[t].jsxRole=zt.OneChild:e>1&&(h.tokens[t].jsxRole=zt.StaticChildren));return}e++,df(),js();break;case o.jsxText:e++,js();break;case o.jsxEmptyText:js();break;case o.braceL:W(),y(o.ellipsis)?(bE(),js(),e+=2):(y(o.braceR)||(e++,mt()),js());break;default:Ie();return}}function pf(){Ot(),df()}function Ot(){h.tokens.push(new Io),v1(),h.start=h.pos;const t=re.charCodeAt(h.pos);if(Tr[t])gE();else if(t===P.quotationMark||t===P.apostrophe)mE(t);else switch(++h.pos,t){case P.greaterThan:ve(o.jsxTagEnd);break;case P.lessThan:ve(o.jsxTagStart);break;case P.slash:ve(o.slash);break;case P.equalsTo:ve(o.eq);break;case P.leftCurlyBrace:ve(o.braceL);break;case P.dot:ve(o.dot);break;case P.colon:ve(o.colon);break;default:Ie()}}function js(){h.tokens.push(new Io),h.start=h.pos,fE()}function EE(t){if(y(o.question)){const e=et();if(e===o.colon||e===o.comma||e===o.parenR)return}ff(t)}function AE(){E1(o.question),y(o.colon)&&(De?jr():Be&&ls())}class wE{constructor(e){this.stop=e}}function mt(t=!1){if(gt(t),y(o.comma))for(;z(o.comma);)gt(t)}function gt(t=!1,e=!1){return De?lE(t,e):Be?PA(t,e):nn(t,e)}function nn(t,e){if(y(o._yield))return BE(),!1;(y(o.parenL)||y(o.name)||y(o._yield))&&(h.potentialArrowAt=h.start);const n=SE(t);return e&&cc(),h.type&o.IS_ASSIGN?(W(),gt(t),!1):n}function SE(t){return vE(t)?!0:(IE(t),!1)}function IE(t){De||Be?EE(t):ff(t)}function ff(t){z(o.question)&&(gt(),H(o.colon),gt(t))}function vE(t){const e=h.tokens.length;return zr()?!0:(Oo(e,-1,t),!1)}function Oo(t,e,n){if(De&&(o._in&o.PRECEDENCE_MASK)>e&&!Et()&&(ut(S._as)||ut(S._satisfies))){const r=Ne(1);tt(),$e(r),P1(),Oo(t,e,n);return}const s=h.type&o.PRECEDENCE_MASK;if(s>0&&(!n||!y(o._in))&&s>e){const r=h.type;W(),r===o.nullishCoalescing&&(h.tokens[h.tokens.length-1].nullishStartIndex=t);const i=h.tokens.length;zr(),Oo(i,r&o.IS_RIGHT_ASSOCIATIVE?s-1:s,n),r===o.nullishCoalescing&&(h.tokens[t].numNullishCoalesceStarts++,h.tokens[h.tokens.length-1].numNullishCoalesceEnds++),Oo(t,e,n)}}function zr(){if(De&&!So&&z(o.lessThan))return Ok(),!1;if(me(S._module)&&w1()===P.leftCurlyBrace&&!f1())return jE(),!1;if(h.type&o.IS_PREFIX)return W(),zr(),!1;if(mf())return!0;for(;h.type&o.IS_POSTFIX&&!Ct();)h.type===o.preIncDec&&(h.type=o.postIncDec),W();return!1}function mf(){const t=h.tokens.length;return yn()?!0:(ic(t),h.tokens.length>t&&h.tokens[t].isOptionalChainStart&&(h.tokens[h.tokens.length-1].isOptionalChainEnd=!0),!1)}function ic(t,e=!1){Be?NA(t,e):gf(t,e)}function gf(t,e=!1){const n=new wE(!1);do _E(t,e,n);while(!n.stop&&!h.error)}function _E(t,e,n){De?Xk(t,e,n):Be?uA(t,e,n):oc(t,e,n)}function oc(t,e,n){if(!e&&z(o.doubleColon))ac(),n.stop=!0,ic(t,e);else if(y(o.questionDot)){if(h.tokens[t].isOptionalChainStart=!0,e&&et()===o.parenL){n.stop=!0;return}W(),h.tokens[h.tokens.length-1].subscriptStartIndex=t,z(o.bracketL)?(mt(),H(o.bracketR)):z(o.parenL)?Cn():Lo()}else if(z(o.dot))h.tokens[h.tokens.length-1].subscriptStartIndex=t,Lo();else if(z(o.bracketL))h.tokens[h.tokens.length-1].subscriptStartIndex=t,mt(),H(o.bracketR);else if(!e&&y(o.parenL))if(yf()){const s=h.snapshot(),r=h.tokens.length;W(),h.tokens[h.tokens.length-1].subscriptStartIndex=t;const i=Cr();h.tokens[h.tokens.length-1].contextId=i,Cn(),h.tokens[h.tokens.length-1].contextId=i,PE()&&(h.restoreFromSnapshot(s),n.stop=!0,h.scopeDepth++,Vs(),$E(r))}else{W(),h.tokens[h.tokens.length-1].subscriptStartIndex=t;const s=Cr();h.tokens[h.tokens.length-1].contextId=s,Cn(),h.tokens[h.tokens.length-1].contextId=s}else y(o.backQuote)?uc():n.stop=!0}function yf(){return h.tokens[h.tokens.length-1].contextualKeyword===S._async&&!Ct()}function Cn(){let t=!0;for(;!z(o.parenR)&&!h.error;){if(t)t=!1;else if(H(o.comma),z(o.parenR))break;Ef(!1)}}function PE(){return y(o.colon)||y(o.arrow)}function $E(t){De?aE():Be&&_A(),H(o.arrow),Ur(t)}function ac(){const t=h.tokens.length;yn(),ic(t,!0)}function yn(){if(z(o.modulo))return xe(),!1;if(y(o.jsxText)||y(o.jsxEmptyText))return zs(),!1;if(y(o.lessThan)&&So)return h.type=o.jsxTagStart,pf(),W(),!1;const t=h.potentialArrowAt===h.start;switch(h.type){case o.slash:case o.assign:tx();case o._super:case o._this:case o.regexp:case o.num:case o.bigint:case o.decimal:case o.string:case o._null:case o._true:case o._false:return W(),!1;case o._import:return W(),y(o.dot)&&(h.tokens[h.tokens.length-1].type=o.name,W(),xe()),!1;case o.name:{const e=h.tokens.length,n=h.start,s=h.contextualKeyword;return xe(),s===S._await?(FE(),!1):s===S._async&&y(o._function)&&!Ct()?(W(),cs(n,!1),!1):t&&s===S._async&&!Ct()&&y(o.name)?(h.scopeDepth++,$n(!1),H(o.arrow),Ur(e),!0):y(o._do)&&!Ct()?(W(),Tn(),!1):t&&!Ct()&&y(o.arrow)?(h.scopeDepth++,Wl(!1),H(o.arrow),Ur(e),!0):(h.tokens[h.tokens.length-1].identifierRole=ge.Access,!1)}case o._do:return W(),Tn(),!1;case o.parenL:return bf(t);case o.bracketL:return W(),kf(o.bracketR,!0),!1;case o.braceL:return hc(!1,!1),!1;case o._function:return NE(),!1;case o.at:wc();case o._class:return us(!1),!1;case o._new:return TE(),!1;case o.backQuote:return uc(),!1;case o.doubleColon:return W(),ac(),!1;case o.hash:{const e=w1();return Tr[e]||e===P.backslash?Lo():W(),!1}default:return Ie(),!1}}function Lo(){z(o.hash),xe()}function NE(){const t=h.start;xe(),z(o.dot)&&xe(),cs(t,!1)}function zs(){W()}function Mo(){H(o.parenL),mt(),H(o.parenR)}function bf(t){const e=h.snapshot(),n=h.tokens.length;H(o.parenL);let s=!0;for(;!y(o.parenR)&&!h.error;){if(s)s=!1;else if(H(o.comma),y(o.parenR))break;if(y(o.ellipsis)){X1(!1),cc();break}else gt(!1,!0)}return H(o.parenR),t&&CE()&&lc()?(h.restoreFromSnapshot(e),h.scopeDepth++,Vs(),lc(),Ur(n),h.error?(h.restoreFromSnapshot(e),bf(!1),!1):!0):!1}function CE(){return y(o.colon)||!Ct()}function lc(){return De?hE():Be?$A():z(o.arrow)}function cc(){(De||Be)&&AE()}function TE(){if(H(o._new),z(o.dot)){xe();return}RE(),Be&&hA(),z(o.parenL)&&kf(o.parenR)}function RE(){ac(),z(o.questionDot)}function uc(){for(Pn(),Pn();!y(o.backQuote)&&!h.error;)H(o.dollarBraceL),mt(),Pn(),Pn();W()}function hc(t,e){const n=Cr();let s=!0;for(W(),h.tokens[h.tokens.length-1].contextId=n;!z(o.braceR)&&!h.error;){if(s)s=!1;else if(H(o.comma),z(o.braceR))break;let r=!1;if(y(o.ellipsis)){const i=h.tokens.length;if(G1(),t&&(h.tokens.length===i+2&&Wl(e),z(o.braceR)))break;continue}t||(r=z(o.star)),!t&&me(S._async)?(r&&Ie(),xe(),y(o.colon)||y(o.parenL)||y(o.braceR)||y(o.eq)||y(o.comma)||(y(o.star)&&(W(),r=!0),Vr(n))):Vr(n),ME(t,e,n)}h.tokens[h.tokens.length-1].contextId=n}function DE(t){return!t&&(y(o.string)||y(o.num)||y(o.bracketL)||y(o.name)||!!(h.type&o.IS_KEYWORD))}function OE(t,e){const n=h.start;return y(o.parenL)?(t&&Ie(),dc(n,!1),!0):DE(t)?(Vr(e),dc(n,!1),!0):!1}function LE(t,e){if(z(o.colon)){t?Co(e):gt(!1);return}let n;t?h.scopeDepth===0?n=ge.ObjectShorthandTopLevelDeclaration:e?n=ge.ObjectShorthandBlockScopedDeclaration:n=ge.ObjectShorthandFunctionScopedDeclaration:n=ge.ObjectShorthand,h.tokens[h.tokens.length-1].identifierRole=n,Co(e,!0)}function ME(t,e,n){De?rE():Be&&EA(),OE(t,n)||LE(t,e)}function Vr(t){Be&&Ac(),z(o.bracketL)?(h.tokens[h.tokens.length-1].contextId=t,gt(),H(o.bracketR),h.tokens[h.tokens.length-1].contextId=t):(y(o.num)||y(o.string)||y(o.bigint)||y(o.decimal)?yn():Lo(),h.tokens[h.tokens.length-1].identifierRole=ge.ObjectKey,h.tokens[h.tokens.length-1].contextId=t)}function dc(t,e){const n=Cr();h.scopeDepth++;const s=h.tokens.length;Vs(e,n),xf(t,n);const i=h.tokens.length;h.scopes.push(new en(s,i,!0)),h.scopeDepth--}function Ur(t){qr(!0);const e=h.tokens.length;h.scopes.push(new en(t,e,!0)),h.scopeDepth--}function xf(t,e=0){De?Gk(t,e):Be?cA(e):qr(!1,e)}function qr(t,e=0){t&&!y(o.braceL)?gt():Tn(!0,e)}function kf(t,e=!1){let n=!0;for(;!z(t)&&!h.error;){if(n)n=!1;else if(H(o.comma),z(t))break;Ef(e)}}function Ef(t){t&&y(o.comma)||(y(o.ellipsis)?(G1(),cc()):y(o.question)?W():gt(!1,!0))}function xe(){W(),h.tokens[h.tokens.length-1].type=o.name}function FE(){zr()}function BE(){W(),!y(o.semi)&&!Ct()&&(z(o.star),gt())}function jE(){rt(S._module),H(o.braceL),Uo(o.braceR)}function zE(t){return(t.type===o.name||!!(t.type&o.IS_KEYWORD))&&t.contextualKeyword!==S._from}function sn(t){const e=Ne(0);H(t||o.colon),_t(),$e(e)}function Af(){H(o.modulo),rt(S._checks),z(o.parenL)&&(mt(),H(o.parenR))}function pc(){const t=Ne(0);H(o.colon),y(o.modulo)?Af():(_t(),y(o.modulo)&&Af()),$e(t)}function VE(){W(),mc(!0)}function UE(){W(),xe(),y(o.lessThan)&&qt(),H(o.parenL),Ec(),H(o.parenR),pc(),Je()}function fc(){y(o._class)?VE():y(o._function)?UE():y(o._var)?qE():ut(S._module)?z(o.dot)?GE():HE():me(S._type)?XE():me(S._opaque)?KE():me(S._interface)?JE():y(o._export)?WE():Ie()}function qE(){W(),Pf(),Je()}function HE(){for(y(o.string)?yn():xe(),H(o.braceL);!y(o.braceR)&&!h.error;)y(o._import)?(W(),jf()):Ie();H(o.braceR)}function WE(){H(o._export),z(o._default)?y(o._function)||y(o._class)?fc():(_t(),Je()):y(o._var)||y(o._function)||y(o._class)||me(S._opaque)?fc():y(o.star)||y(o.braceL)||me(S._interface)||me(S._type)||me(S._opaque)?Ff():Ie()}function GE(){rt(S._exports),ls(),Je()}function XE(){W(),yc()}function KE(){W(),bc(!0)}function JE(){W(),mc()}function mc(t=!1){if(Bo(),y(o.lessThan)&&qt(),z(o._extends))do Fo();while(!t&&z(o.comma));if(me(S._mixins)){W();do Fo();while(z(o.comma))}if(me(S._implements)){W();do Fo();while(z(o.comma))}jo(t,!1,t)}function Fo(){wf(!1),y(o.lessThan)&&as()}function gc(){mc()}function Bo(){xe()}function yc(){Bo(),y(o.lessThan)&&qt(),sn(o.eq),Je()}function bc(t){rt(S._type),Bo(),y(o.lessThan)&&qt(),y(o.colon)&&sn(o.colon),t||sn(o.eq),Je()}function YE(){Ac(),Pf(),z(o.eq)&&_t()}function qt(){const t=Ne(0);y(o.lessThan)||y(o.typeParameterStart)?W():Ie();do YE(),y(o.greaterThan)||H(o.comma);while(!y(o.greaterThan)&&!h.error);H(o.greaterThan),$e(t)}function as(){const t=Ne(0);for(H(o.lessThan);!y(o.greaterThan)&&!h.error;)_t(),y(o.greaterThan)||H(o.comma);H(o.greaterThan),$e(t)}function QE(){if(rt(S._interface),z(o._extends))do Fo();while(z(o.comma));jo(!1,!1,!1)}function xc(){y(o.num)||y(o.string)?yn():xe()}function ZE(){et()===o.colon?(xc(),sn()):_t(),H(o.bracketR),sn()}function eA(){xc(),H(o.bracketR),H(o.bracketR),y(o.lessThan)||y(o.parenL)?kc():(z(o.question),sn())}function kc(){for(y(o.lessThan)&&qt(),H(o.parenL);!y(o.parenR)&&!y(o.ellipsis)&&!h.error;)zo(),y(o.parenR)||H(o.comma);z(o.ellipsis)&&zo(),H(o.parenR),sn()}function tA(){kc()}function jo(t,e,n){let s;for(e&&y(o.braceBarL)?(H(o.braceBarL),s=o.braceBarR):(H(o.braceL),s=o.braceR);!y(s)&&!h.error;){if(n&&me(S._proto)){const r=et();r!==o.colon&&r!==o.question&&(W(),t=!1)}if(t&&me(S._static)){const r=et();r!==o.colon&&r!==o.question&&W()}if(Ac(),z(o.bracketL))z(o.bracketL)?eA():ZE();else if(y(o.parenL)||y(o.lessThan))tA();else{if(me(S._get)||me(S._set)){const r=et();(r===o.name||r===o.string||r===o.num)&&W()}nA()}sA()}H(s)}function nA(){if(y(o.ellipsis)){if(H(o.ellipsis),z(o.comma)||z(o.semi),y(o.braceR))return;_t()}else xc(),y(o.lessThan)||y(o.parenL)?kc():(z(o.question),sn())}function sA(){!z(o.semi)&&!z(o.comma)&&!y(o.braceR)&&!y(o.braceBarR)&&Ie()}function wf(t){for(t||xe();z(o.dot);)xe()}function rA(){wf(!0),y(o.lessThan)&&as()}function iA(){H(o._typeof),Sf()}function oA(){for(H(o.bracketL);h.pos<re.length&&!y(o.bracketR)&&(_t(),!y(o.bracketR));)H(o.comma);H(o.bracketR)}function zo(){const t=et();t===o.colon||t===o.question?(xe(),z(o.question),sn()):_t()}function Ec(){for(;!y(o.parenR)&&!y(o.ellipsis)&&!h.error;)zo(),y(o.parenR)||H(o.comma);z(o.ellipsis)&&zo()}function Sf(){let t=!1;const e=h.noAnonFunctionType;switch(h.type){case o.name:{if(me(S._interface)){QE();return}xe(),rA();return}case o.braceL:jo(!1,!1,!1);return;case o.braceBarL:jo(!1,!0,!1);return;case o.bracketL:oA();return;case o.lessThan:qt(),H(o.parenL),Ec(),H(o.parenR),H(o.arrow),_t();return;case o.parenL:if(W(),!y(o.parenR)&&!y(o.ellipsis))if(y(o.name)){const n=et();t=n!==o.question&&n!==o.colon}else t=!0;if(t)if(h.noAnonFunctionType=!1,_t(),h.noAnonFunctionType=e,h.noAnonFunctionType||!(y(o.comma)||y(o.parenR)&&et()===o.arrow)){H(o.parenR);return}else z(o.comma);Ec(),H(o.parenR),H(o.arrow),_t();return;case o.minus:W(),zs();return;case o.string:case o.num:case o._true:case o._false:case o._null:case o._this:case o._void:case o.star:W();return;default:if(h.type===o._typeof){iA();return}else if(h.type&o.IS_KEYWORD){W(),h.tokens[h.tokens.length-1].type=o.name;return}}Ie()}function aA(){for(Sf();!Ct()&&(y(o.bracketL)||y(o.questionDot));)z(o.questionDot),H(o.bracketL),z(o.bracketR)||(_t(),H(o.bracketR))}function If(){z(o.question)?If():aA()}function vf(){If(),!h.noAnonFunctionType&&z(o.arrow)&&_t()}function _f(){for(z(o.bitwiseAND),vf();z(o.bitwiseAND);)vf()}function lA(){for(z(o.bitwiseOR),_f();z(o.bitwiseOR);)_f()}function _t(){lA()}function ls(){sn()}function Pf(){xe(),y(o.colon)&&ls()}function Ac(){(y(o.plus)||y(o.minus))&&(W(),h.tokens[h.tokens.length-1].isType=!0)}function cA(t){y(o.colon)&&pc(),qr(!1,t)}function uA(t,e,n){if(y(o.questionDot)&&et()===o.lessThan){if(e){n.stop=!0;return}W(),as(),H(o.parenL),Cn();return}else if(!e&&y(o.lessThan)){const s=h.snapshot();if(as(),H(o.parenL),Cn(),h.error)h.restoreFromSnapshot(s);else return}oc(t,e,n)}function hA(){if(y(o.lessThan)){const t=h.snapshot();as(),h.error&&h.restoreFromSnapshot(t)}}function dA(){if(y(o.name)&&h.contextualKeyword===S._interface){const t=Ne(0);return W(),gc(),$e(t),!0}else if(me(S._enum))return $f(),!0;return!1}function pA(){return me(S._enum)?($f(),!0):!1}function fA(t){if(t===S._declare){if(y(o._class)||y(o.name)||y(o._function)||y(o._var)||y(o._export)){const e=Ne(1);fc(),$e(e)}}else if(y(o.name)){if(t===S._interface){const e=Ne(1);gc(),$e(e)}else if(t===S._type){const e=Ne(1);yc(),$e(e)}else if(t===S._opaque){const e=Ne(1);bc(!1),$e(e)}}Je()}function mA(){return me(S._type)||me(S._interface)||me(S._opaque)||me(S._enum)}function gA(){return y(o.name)&&(h.contextualKeyword===S._type||h.contextualKeyword===S._interface||h.contextualKeyword===S._opaque||h.contextualKeyword===S._enum)}function yA(){if(me(S._type)){const t=Ne(1);W(),y(o.braceL)?(vc(),Gr()):yc(),$e(t)}else if(me(S._opaque)){const t=Ne(1);W(),bc(!1),$e(t)}else if(me(S._interface)){const t=Ne(1);W(),gc(),$e(t)}else Tt(!0)}function bA(){return y(o.star)||me(S._type)&&et()===o.star}function xA(){if(ut(S._type)){const t=Ne(2);Ic(),$e(t)}else Ic()}function kA(t){if(t&&y(o.lessThan)&&as(),me(S._implements)){const e=Ne(0);W(),h.tokens[h.tokens.length-1].type=o._implements;do Bo(),y(o.lessThan)&&as();while(z(o.comma));$e(e)}}function EA(){y(o.lessThan)&&(qt(),y(o.parenL)||Ie())}function AA(){const t=Ne(0);z(o.question),y(o.colon)&&ls(),$e(t)}function wA(){if(y(o._typeof)||me(S._type)){const t=Rr();(zE(t)||t.type===o.braceL||t.type===o.star)&&W()}}function SA(){const t=h.contextualKeyword===S._type||h.type===o._typeof;t?W():xe(),me(S._as)&&!Bl(S._as)?(xe(),t&&!y(o.name)&&!(h.type&o.IS_KEYWORD)||xe()):(t&&(y(o.name)||h.type&o.IS_KEYWORD)&&xe(),ut(S._as)&&xe())}function IA(){if(y(o.lessThan)){const t=Ne(0);qt(),$e(t)}}function vA(){y(o.colon)&&ls()}function _A(){if(y(o.colon)){const t=h.noAnonFunctionType;h.noAnonFunctionType=!0,ls(),h.noAnonFunctionType=t}}function PA(t,e){if(y(o.lessThan)){const n=h.snapshot();let s=nn(t,e);if(h.error)h.restoreFromSnapshot(n),h.type=o.typeParameterStart;else return s;const r=Ne(0);if(qt(),$e(r),s=nn(t,e),s)return!0;Ie()}return nn(t,e)}function $A(){if(y(o.colon)){const t=Ne(0),e=h.snapshot(),n=h.noAnonFunctionType;h.noAnonFunctionType=!0,pc(),h.noAnonFunctionType=n,Ct()&&Ie(),y(o.arrow)||Ie(),h.error&&h.restoreFromSnapshot(e),$e(t)}return z(o.arrow)}function NA(t,e=!1){if(h.tokens[h.tokens.length-1].contextualKeyword===S._async&&y(o.lessThan)){const n=h.snapshot();if(CA()&&!h.error)return;h.restoreFromSnapshot(n)}gf(t,e)}function CA(){h.scopeDepth++;const t=h.tokens.length;return Vs(),lc()?(Ur(t),!0):!1}function $f(){rt(S._enum),h.tokens[h.tokens.length-1].type=o._enum,xe(),TA()}function TA(){ut(S._of)&&W(),H(o.braceL),RA(),H(o.braceR)}function RA(){for(;!y(o.braceR)&&!h.error&&!z(o.ellipsis);)DA(),y(o.braceR)||H(o.comma)}function DA(){xe(),z(o.eq)&&W()}function OA(){if(Uo(o.eof),h.scopes.push(new en(0,h.tokens.length,!0)),h.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${h.scopeDepth}`);return new Ew(h.tokens,h.scopes)}function Tt(t){Be&&dA()||(y(o.at)&&wc(),LA(t))}function LA(t){if(De&&Zk())return;const e=h.type;switch(e){case o._break:case o._continue:FA();return;case o._debugger:BA();return;case o._do:jA();return;case o._for:zA();return;case o._function:if(et()===o.dot)break;t||Ie(),qA();return;case o._class:t||Ie(),us(!0);return;case o._if:HA();return;case o._return:WA();return;case o._switch:GA();return;case o._throw:XA();return;case o._try:JA();return;case o._let:case o._const:t||Ie();case o._var:Vo(e!==o._var);return;case o._while:YA();return;case o.braceL:Tn();return;case o.semi:QA();return;case o._export:case o._import:{const r=et();if(r===o.parenL||r===o.dot)break;W(),e===o._import?jf():Ff();return}case o.name:if(h.contextualKeyword===S._async){const r=h.start,i=h.snapshot();if(W(),y(o._function)&&!Ct()){H(o._function),cs(r,!0);return}else h.restoreFromSnapshot(i)}else if(h.contextualKeyword===S._using&&!f1()&&et()===o.name){Vo(!0);return}else if(Nf()){rt(S._await),Vo(!0);return}}const n=h.tokens.length;mt();let s=null;if(h.tokens.length===n+1){const r=h.tokens[h.tokens.length-1];r.type===o.name&&(s=r.contextualKeyword)}if(s==null){Je();return}z(o.colon)?ZA():ew(s)}function Nf(){if(!me(S._await))return!1;const t=h.snapshot();return W(),!me(S._using)||Et()||(W(),!y(o.name)||Et())?(h.restoreFromSnapshot(t),!1):(h.restoreFromSnapshot(t),!0)}function wc(){for(;y(o.at);)Cf()}function Cf(){if(W(),z(o.parenL))mt(),H(o.parenR);else{for(xe();z(o.dot);)xe();MA()}}function MA(){De?pE():Tf()}function Tf(){z(o.parenL)&&Cn()}function FA(){W(),tn()||(xe(),Je())}function BA(){W(),Je()}function jA(){W(),Tt(!1),H(o._while),Mo(),z(o.semi)}function zA(){h.scopeDepth++;const t=h.tokens.length;UA();const e=h.tokens.length;h.scopes.push(new en(t,e,!1)),h.scopeDepth--}function VA(){return!(!me(S._using)||Bl(S._of))}function UA(){W();let t=!1;if(me(S._await)&&(t=!0,W()),H(o.parenL),y(o.semi)){t&&Ie(),Sc();return}const e=Nf();if(e||y(o._var)||y(o._let)||y(o._const)||VA()){if(e&&rt(S._await),W(),Df(!0,h.type!==o._var),y(o._in)||me(S._of)){Rf(t);return}Sc();return}if(mt(!0),y(o._in)||me(S._of)){Rf(t);return}t&&Ie(),Sc()}function qA(){const t=h.start;W(),cs(t,!0)}function HA(){W(),Mo(),Tt(!1),z(o._else)&&Tt(!1)}function WA(){W(),tn()||(mt(),Je())}function GA(){W(),Mo(),h.scopeDepth++;const t=h.tokens.length;for(H(o.braceL);!y(o.braceR)&&!h.error;)if(y(o._case)||y(o._default)){const n=y(o._case);W(),n&&mt(),H(o.colon)}else Tt(!0);W();const e=h.tokens.length;h.scopes.push(new en(t,e,!1)),h.scopeDepth--}function XA(){W(),mt(),Je()}function KA(){No(!0),De&&Ms()}function JA(){if(W(),Tn(),y(o._catch)){W();let t=null;if(y(o.parenL)&&(h.scopeDepth++,t=h.tokens.length,H(o.parenL),KA(),H(o.parenR)),Tn(),t!=null){const e=h.tokens.length;h.scopes.push(new en(t,e,!1)),h.scopeDepth--}}z(o._finally)&&Tn()}function Vo(t){W(),Df(!1,t),Je()}function YA(){W(),Mo(),Tt(!1)}function QA(){W()}function ZA(){Tt(!0)}function ew(t){De?tE(t):Be?fA(t):Je()}function Tn(t=!1,e=0){const n=h.tokens.length;h.scopeDepth++,H(o.braceL),e&&(h.tokens[h.tokens.length-1].contextId=e),Uo(o.braceR),e&&(h.tokens[h.tokens.length-1].contextId=e);const s=h.tokens.length;h.scopes.push(new en(n,s,t)),h.scopeDepth--}function Uo(t){for(;!z(t)&&!h.error;)Tt(!0)}function Sc(){H(o.semi),y(o.semi)||mt(),H(o.semi),y(o.parenR)||mt(),H(o.parenR),Tt(!1)}function Rf(t){t?ut(S._of):W(),mt(),H(o.parenR),Tt(!1)}function Df(t,e){for(;;){if(tw(e),z(o.eq)){const n=h.tokens.length-1;gt(t),h.tokens[n].rhsEndIndex=h.tokens.length}if(!z(o.comma))break}}function tw(t){No(t),De?oE():Be&&vA()}function cs(t,e,n=!1){y(o.star)&&W(),e&&!n&&!y(o.name)&&!y(o._yield)&&Ie();let s=null;y(o.name)&&(e||(s=h.tokens.length,h.scopeDepth++),$n(!1));const r=h.tokens.length;h.scopeDepth++,Vs(),xf(t);const i=h.tokens.length;h.scopes.push(new en(r,i,!0)),h.scopeDepth--,s!==null&&(h.scopes.push(new en(s,i,!0)),h.scopeDepth--)}function Vs(t=!1,e=0){De?iE():Be&&IA(),H(o.parenL),e&&(h.tokens[h.tokens.length-1].contextId=e),Gl(o.parenR,!1,!1,t,e),e&&(h.tokens[h.tokens.length-1].contextId=e)}function us(t,e=!1){const n=Cr();W(),h.tokens[h.tokens.length-1].contextId=n,h.tokens[h.tokens.length-1].isExpression=!t;let s=null;t||(s=h.tokens.length,h.scopeDepth++),iw(t,e),ow();const r=h.tokens.length;if(nw(n),!h.error&&(h.tokens[r].contextId=n,h.tokens[h.tokens.length-1].contextId=n,s!==null)){const i=h.tokens.length;h.scopes.push(new en(s,i,!1)),h.scopeDepth--}}function Of(){return y(o.eq)||y(o.semi)||y(o.braceR)||y(o.bang)||y(o.colon)}function Lf(){return y(o.parenL)||y(o.lessThan)}function nw(t){for(H(o.braceL);!z(o.braceR)&&!h.error;){if(z(o.semi))continue;if(y(o.at)){Cf();continue}const e=h.start;sw(e,t)}}function sw(t,e){De&&Kl([S._declare,S._public,S._protected,S._private,S._override]);let n=!1;if(y(o.name)&&h.contextualKeyword===S._static){if(xe(),Lf()){Hr(t,!1);return}else if(Of()){qo();return}if(h.tokens[h.tokens.length-1].type=o._static,n=!0,y(o.braceL)){h.tokens[h.tokens.length-1].contextId=e,Tn();return}}rw(t,n,e)}function rw(t,e,n){if(De&&eE(e))return;if(z(o.star)){Wr(n),Hr(t,!1);return}Wr(n);let s=!1;const r=h.tokens[h.tokens.length-1];r.contextualKeyword===S._constructor&&(s=!0),Mf(),Lf()?Hr(t,s):Of()?qo():r.contextualKeyword===S._async&&!tn()?(h.tokens[h.tokens.length-1].type=o._async,y(o.star)&&W(),Wr(n),Mf(),Hr(t,!1)):(r.contextualKeyword===S._get||r.contextualKeyword===S._set)&&!(tn()&&y(o.star))?(r.contextualKeyword===S._get?h.tokens[h.tokens.length-1].type=o._get:h.tokens[h.tokens.length-1].type=o._set,Wr(n),Hr(t,!1)):r.contextualKeyword===S._accessor&&!tn()?(Wr(n),qo()):tn()?qo():Ie()}function Hr(t,e){De?os():Be&&y(o.lessThan)&&qt(),dc(t,e)}function Wr(t){Vr(t)}function Mf(){if(De){const t=Ne(0);z(o.question),$e(t)}}function qo(){if(De?(E1(o.bang),Ms()):Be&&y(o.colon)&&ls(),y(o.eq)){const t=h.tokens.length;W(),gt(),h.tokens[t].rhsEndIndex=h.tokens.length}Je()}function iw(t,e=!1){De&&(!t||e)&&me(S._implements)||(y(o.name)&&$n(!0),De?os():Be&&y(o.lessThan)&&qt())}function ow(){let t=!1;z(o._extends)?(mf(),t=!0):t=!1,De?sE(t):Be&&kA(t)}function Ff(){const t=h.tokens.length-1;De&&Kk()||(uw()?hw():cw()?(xe(),y(o.comma)&&et()===o.star?(H(o.comma),H(o.star),rt(S._as),xe()):Bf(),Gr()):z(o._default)?aw():pw()?lw():(vc(),Gr()),h.tokens[t].rhsEndIndex=h.tokens.length)}function aw(){if(De&&Qk()||Be&&pA())return;const t=h.start;z(o._function)?cs(t,!0,!0):me(S._async)&&et()===o._function?(ut(S._async),z(o._function),cs(t,!0,!0)):y(o._class)?us(!0,!0):y(o.at)?(wc(),us(!0,!0)):(gt(),Je())}function lw(){De?nE():Be?yA():Tt(!0)}function cw(){if(De&&cf())return!1;if(Be&&gA())return!1;if(y(o.name))return h.contextualKeyword!==S._async;if(!y(o._default))return!1;const t=jl(),e=Rr(),n=e.type===o.name&&e.contextualKeyword===S._from;if(e.type===o.comma)return!0;if(n){const s=re.charCodeAt(A1(t+4));return s===P.quotationMark||s===P.apostrophe}return!1}function Bf(){z(o.comma)&&vc()}function Gr(){ut(S._from)&&(yn(),Vf()),Je()}function uw(){return Be?bA():y(o.star)}function hw(){Be?xA():Ic()}function Ic(){H(o.star),me(S._as)?dw():Gr()}function dw(){W(),h.tokens[h.tokens.length-1].type=o._as,xe(),Bf(),Gr()}function pw(){return De&&cf()||Be&&mA()||h.type===o._var||h.type===o._const||h.type===o._let||h.type===o._function||h.type===o._class||me(S._async)||y(o.at)}function vc(){let t=!0;for(H(o.braceL);!z(o.braceR)&&!h.error;){if(t)t=!1;else if(H(o.comma),z(o.braceR))break;fw()}}function fw(){if(De){Yk();return}xe(),h.tokens[h.tokens.length-1].identifierRole=ge.ExportAccess,ut(S._as)&&xe()}function mw(){const t=h.snapshot();return rt(S._module),ut(S._from)?me(S._from)?(h.restoreFromSnapshot(t),!0):(h.restoreFromSnapshot(t),!1):y(o.comma)?(h.restoreFromSnapshot(t),!1):(h.restoreFromSnapshot(t),!0)}function gw(){me(S._module)&&mw()&&W()}function jf(){if(De&&y(o.name)&&et()===o.eq){nc();return}if(De&&me(S._type)){const t=Rr();if(t.type===o.name&&t.contextualKeyword!==S._from){if(rt(S._type),et()===o.eq){nc();return}}else(t.type===o.star||t.type===o.braceL)&&rt(S._type)}y(o.string)||(gw(),bw(),rt(S._from)),yn(),Vf(),Je()}function yw(){return y(o.name)}function zf(){$o()}function bw(){Be&&wA();let t=!0;if(!(yw()&&(zf(),!z(o.comma)))){if(y(o.star)){W(),rt(S._as),zf();return}for(H(o.braceL);!z(o.braceR)&&!h.error;){if(t)t=!1;else if(z(o.colon)&&Ie("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),H(o.comma),z(o.braceR))break;xw()}}}function xw(){if(De){Jk();return}if(Be){SA();return}$o(),me(S._as)&&(h.tokens[h.tokens.length-1].identifierRole=ge.ImportAccess,W(),$o())}function Vf(){(y(o._with)||me(S._assert)&&!Et())&&(W(),hc(!1,!1))}function kw(){return h.pos===0&&re.charCodeAt(0)===P.numberSign&&re.charCodeAt(1)===P.exclamationMark&&I1(2),S1(),OA()}class Ew{constructor(e,n){this.tokens=e,this.scopes=n}}function Aw(t,e,n,s){if(s&&n)throw new Error("Cannot combine flow and typescript plugins.");Xb(t,e,n,s);const r=kw();if(h.error)throw Hb(h.error);return r}function ww(t){let e=t.currentIndex(),n=0;const s=t.currentToken();do{const r=t.tokens[e];if(r.isOptionalChainStart&&n++,r.isOptionalChainEnd&&n--,n+=r.numNullishCoalesceStarts,n-=r.numNullishCoalesceEnds,r.contextualKeyword===S._await&&r.identifierRole==null&&r.scopeDepth===s.scopeDepth)return!0;e+=1}while(n>0&&e<t.tokens.length);return!1}class Xr{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(e,n,s,r,i){this.code=e,this.tokens=n,this.isFlowEnabled=s,this.disableESTransforms=r,this.helperManager=i,Xr.prototype.__init.call(this),Xr.prototype.__init2.call(this),Xr.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(e){const n=this.resultCode.slice(e.resultCode.length);return this.resultCode=e.resultCode,n}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(e,n){return this.matches1AtIndex(e,o.name)&&this.tokens[e].contextualKeyword===n}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierNameAtRelativeIndex(e){return this.identifierNameForToken(this.tokenAtRelativeIndex(e))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,n){return this.tokens[e].type===n}matches2AtIndex(e,n,s){return this.tokens[e].type===n&&this.tokens[e+1].type===s}matches3AtIndex(e,n,s,r){return this.tokens[e].type===n&&this.tokens[e+1].type===s&&this.tokens[e+2].type===r}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,n){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n}matches3(e,n,s){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s}matches4(e,n,s,r){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===r}matches5(e,n,s,r,i){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===r&&this.tokens[this.tokenIndex+4].type===i}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,n){return this.matches1(e)&&this.currentToken().contextId===n}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,"")),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let e=0;for(;!this.isAtEnd();){if(this.matches1(o.braceL))e++;else if(this.matches1(o.braceR)){if(e===0)return;e--}this.removeToken()}}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw new Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=ww(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let n=0;n<e.numNullishCoalesceStarts;n++)e.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===o._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let n=0;n<e.numNullishCoalesceEnds;n++)this.resultCode+="))"}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function Sw(t,e,n,s){const r=e.snapshot(),i=Iw(e);let a=[];const l=[],c=[];let u=null;const d=[],m=[],f=e.currentToken().contextId;if(f==null)throw new Error("Expected non-null class context ID on class open-brace.");for(e.nextToken();!e.matchesContextIdAndLabel(o.braceR,f);)if(e.matchesContextual(S._constructor)&&!e.currentToken().isType)({constructorInitializerStatements:a,constructorInsertPos:u}=Uf(e));else if(e.matches1(o.semi))s||m.push({start:e.currentIndex(),end:e.currentIndex()+1}),e.nextToken();else if(e.currentToken().isType)e.nextToken();else{const g=e.currentIndex();let w=!1,k=!1,I=!1;for(;Ho(e.currentToken());)e.matches1(o._static)&&(w=!0),e.matches1(o.hash)&&(k=!0),(e.matches1(o._declare)||e.matches1(o._abstract))&&(I=!0),e.nextToken();if(w&&e.matches1(o.braceL)){_c(e,f);continue}if(k){_c(e,f);continue}if(e.matchesContextual(S._constructor)&&!e.currentToken().isType){({constructorInitializerStatements:a,constructorInsertPos:u}=Uf(e));continue}const E=e.currentIndex();if(vw(e),e.matches1(o.lessThan)||e.matches1(o.parenL)){_c(e,f);continue}for(;e.currentToken().isType;)e.nextToken();if(e.matches1(o.eq)){const b=e.currentIndex(),A=e.currentToken().rhsEndIndex;if(A==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(e.nextToken();e.currentIndex()<A;)t.processToken();let v;w?(v=n.claimFreeName("__initStatic"),c.push(v)):(v=n.claimFreeName("__init"),l.push(v)),d.push({initializerName:v,equalsIndex:b,start:E,end:e.currentIndex()})}else(!s||I)&&m.push({start:g,end:e.currentIndex()})}return e.restoreToSnapshot(r),s?{headerInfo:i,constructorInitializerStatements:a,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:u,fields:[],rangesToRemove:m}:{headerInfo:i,constructorInitializerStatements:a,instanceInitializerNames:l,staticInitializerNames:c,constructorInsertPos:u,fields:d,rangesToRemove:m}}function _c(t,e){for(t.nextToken();t.currentToken().contextId!==e;)t.nextToken();for(;Ho(t.tokenAtRelativeIndex(-1));)t.previousToken()}function Iw(t){const e=t.currentToken(),n=e.contextId;if(n==null)throw new Error("Expected context ID on class token.");const s=e.isExpression;if(s==null)throw new Error("Expected isExpression on class token.");let r=null,i=!1;for(t.nextToken(),t.matches1(o.name)&&(r=t.identifierName());!t.matchesContextIdAndLabel(o.braceL,n);)t.matches1(o._extends)&&!t.currentToken().isType&&(i=!0),t.nextToken();return{isExpression:s,className:r,hasSuperclass:i}}function Uf(t){const e=[];t.nextToken();const n=t.currentToken().contextId;if(n==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!t.matchesContextIdAndLabel(o.parenR,n);)if(t.currentToken().contextId===n){if(t.nextToken(),Ho(t.currentToken())){for(t.nextToken();Ho(t.currentToken());)t.nextToken();const i=t.currentToken();if(i.type!==o.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const a=t.identifierNameForToken(i);e.push(`this.${a} = ${a}`)}}else t.nextToken();for(t.nextToken();t.currentToken().isType;)t.nextToken();let s=t.currentIndex(),r=!1;for(;!t.matchesContextIdAndLabel(o.braceR,n);){if(!r&&t.matches2(o._super,o.parenL)){t.nextToken();const i=t.currentToken().contextId;if(i==null)throw new Error("Expected a context ID on the super call");for(;!t.matchesContextIdAndLabel(o.parenR,i);)t.nextToken();s=t.currentIndex(),r=!0}t.nextToken()}return t.nextToken(),{constructorInitializerStatements:e,constructorInsertPos:s}}function Ho(t){return[o._async,o._get,o._set,o.plus,o.minus,o._readonly,o._static,o._public,o._private,o._protected,o._override,o._abstract,o.star,o._declare,o.hash].includes(t.type)}function vw(t){if(t.matches1(o.bracketL)){const n=t.currentToken().contextId;if(n==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!t.matchesContextIdAndLabel(o.bracketR,n);)t.nextToken();t.nextToken()}else t.nextToken()}function qf(t){if(t.removeInitialToken(),t.removeToken(),t.removeToken(),t.removeToken(),t.matches1(o.parenL))t.removeToken(),t.removeToken(),t.removeToken();else for(;t.matches1(o.dot);)t.removeToken(),t.removeToken()}const Hf={typeDeclarations:new Set,valueDeclarations:new Set};function Wf(t){const e=new Set,n=new Set;for(let s=0;s<t.tokens.length;s++){const r=t.tokens[s];r.type===o.name&&k1(r)&&(r.isType?e.add(t.identifierNameForToken(r)):n.add(t.identifierNameForToken(r)))}return{typeDeclarations:e,valueDeclarations:n}}function Gf(t){let e=t.currentIndex();for(;!t.matches1AtIndex(e,o.braceR);)e++;return t.matchesContextualAtIndex(e+1,S._from)&&t.matches1AtIndex(e+2,o.string)}function hs(t){(t.matches2(o._with,o.braceL)||t.matches2(o.name,o.braceL)&&t.matchesContextual(S._assert))&&(t.removeToken(),t.removeToken(),t.removeBalancedCode(),t.removeToken())}function Xf(t,e,n,s){if(!t||e)return!1;const r=n.currentToken();if(r.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const i=r.rhsEndIndex-n.currentIndex();if(i!==3&&!(i===4&&n.matches1AtIndex(r.rhsEndIndex-1,o.semi)))return!1;const a=n.tokenAtRelativeIndex(2);if(a.type!==o.name)return!1;const l=n.identifierNameForToken(a);return s.typeDeclarations.has(l)&&!s.valueDeclarations.has(l)}class Kr extends Vt{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(e,n,s,r,i,a,l,c,u,d,m,f){super(),this.rootTransformer=e,this.tokens=n,this.importProcessor=s,this.nameManager=r,this.helperManager=i,this.reactHotLoaderTransformer=a,this.enableLegacyBabel5ModuleInterop=l,this.enableLegacyTypeScriptModuleInterop=c,this.isTypeScriptTransformEnabled=u,this.isFlowTransformEnabled=d,this.preserveDynamicImport=m,this.keepUnusedImports=f,Kr.prototype.__init.call(this),Kr.prototype.__init2.call(this),Kr.prototype.__init3.call(this),this.declarationInfo=u?Wf(n):Hf}getPrefixCode(){let e="";return this.hadExport&&(e+='Object.defineProperty(exports, "__esModule", {value: true});'),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
|
|
176
|
+
`};class Po{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(e){this.nameManager=e,Po.prototype.__init.call(this),Po.prototype.__init2.call(this)}getHelperName(e){let n=this.helperNames[e];return n||(n=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=n,n)}emitHelpers(){let e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[n,s]of Object.entries(Xx)){const r=this.helperNames[n];let i=s;n==="optionalChainDelete"?i=i.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):n==="asyncOptionalChainDelete"?i=i.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):n==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),i=i.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),r&&(e+=" ",e+=i.replace(n,r).replace(/\s+/g," ").trim())}return e}}function z1(t,e,n){Kx(t,n)&&Jx(t,e,n)}function Kx(t,e){for(const n of t.tokens)if(n.type===o.name&&!n.isType&&Qb(n)&&e.has(t.identifierNameForToken(n)))return!0;return!1}function Jx(t,e,n){const s=[];let r=e.length-1;for(let i=t.tokens.length-1;;i--){for(;s.length>0&&s[s.length-1].startTokenIndex===i+1;)s.pop();for(;r>=0&&e[r].endTokenIndex===i+1;)s.push(e[r]),r--;if(i<0)break;const a=t.tokens[i],l=t.identifierNameForToken(a);if(s.length>1&&!a.isType&&a.type===o.name&&n.has(l)){if(Zb(a))V1(s[s.length-1],t,l);else if(ex(a)){let c=s.length-1;for(;c>0&&!s[c].isFunctionScope;)c--;if(c<0)throw new Error("Did not find parent function scope.");V1(s[c],t,l)}}}if(s.length>0)throw new Error("Expected empty scope stack after processing file.")}function V1(t,e,n){for(let s=t.startTokenIndex;s<t.endTokenIndex;s++){const r=e.tokens[s];(r.type===o.name||r.type===o.jsxName)&&e.identifierNameForToken(r)===n&&(r.shadowsGlobal=!0)}}function Yx(t,e){const n=[];for(const s of e)s.type===o.name&&n.push(t.slice(s.start,s.end));return n}class ql{__init(){this.usedNames=new Set}constructor(e,n){ql.prototype.__init.call(this),this.usedNames=new Set(Yx(e,n))}claimFreeName(e){const n=this.findFreeName(e);return this.usedNames.add(n),n}findFreeName(e){if(!this.usedNames.has(e))return e;let n=2;for(;this.usedNames.has(e+String(n));)n++;return e+String(n)}}var Lr={},Mr={},Ut={},U1;function Hl(){if(U1)return Ut;U1=1;var t=Ut&&Ut.__extends||function(){var i=function(a,l){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var d in u)u.hasOwnProperty(d)&&(c[d]=u[d])},i(a,l)};return function(a,l){i(a,l);function c(){this.constructor=a}a.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.DetailContext=Ut.NoopContext=Ut.VError=void 0;var e=function(i){t(a,i);function a(l,c){var u=i.call(this,c)||this;return u.path=l,Object.setPrototypeOf(u,a.prototype),u}return a}(Error);Ut.VError=e;var n=function(){function i(){}return i.prototype.fail=function(a,l,c){return!1},i.prototype.unionResolver=function(){return this},i.prototype.createContext=function(){return this},i.prototype.resolveUnion=function(a){},i}();Ut.NoopContext=n;var s=function(){function i(){this._propNames=[""],this._messages=[null],this._score=0}return i.prototype.fail=function(a,l,c){return this._propNames.push(a),this._messages.push(l),this._score+=c,!1},i.prototype.unionResolver=function(){return new r},i.prototype.resolveUnion=function(a){for(var l,c,u=a,d=null,m=0,f=u.contexts;m<f.length;m++){var g=f[m];(!d||g._score>=d._score)&&(d=g)}d&&d._score>0&&((l=this._propNames).push.apply(l,d._propNames),(c=this._messages).push.apply(c,d._messages))},i.prototype.getError=function(a){for(var l=[],c=this._propNames.length-1;c>=0;c--){var u=this._propNames[c];a+=typeof u=="number"?"["+u+"]":u?"."+u:"";var d=this._messages[c];d&&l.push(a+" "+d)}return new e(a,l.join("; "))},i.prototype.getErrorDetail=function(a){for(var l=[],c=this._propNames.length-1;c>=0;c--){var u=this._propNames[c];a+=typeof u=="number"?"["+u+"]":u?"."+u:"";var d=this._messages[c];d&&l.push({path:a,message:d})}for(var m=null,c=l.length-1;c>=0;c--)m&&(l[c].nested=[m]),m=l[c];return m},i}();Ut.DetailContext=s;var r=function(){function i(){this.contexts=[]}return i.prototype.createContext=function(){var a=new s;return this.contexts.push(a),a},i}();return Ut}var q1;function H1(){return q1||(q1=1,function(t){var e=Mr&&Mr.__extends||function(){var x=function(F,B){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ee){J.__proto__=ee}||function(J,ee){for(var ie in ee)ee.hasOwnProperty(ie)&&(J[ie]=ee[ie])},x(F,B)};return function(F,B){x(F,B);function J(){this.constructor=F}F.prototype=B===null?Object.create(B):(J.prototype=B.prototype,new J)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.basicTypes=t.BasicType=t.TParamList=t.TParam=t.param=t.TFunc=t.func=t.TProp=t.TOptional=t.opt=t.TIface=t.iface=t.TEnumLiteral=t.enumlit=t.TEnumType=t.enumtype=t.TIntersection=t.intersection=t.TUnion=t.union=t.TTuple=t.tuple=t.TArray=t.array=t.TLiteral=t.lit=t.TName=t.name=t.TType=void 0;var n=Hl(),s=function(){function x(){}return x}();t.TType=s;function r(x){return typeof x=="string"?a(x):x}function i(x,F){var B=x[F];if(!B)throw new Error("Unknown type "+F);return B}function a(x){return new l(x)}t.name=a;var l=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.name=B,J._failMsg="is not a "+B,J}return F.prototype.getChecker=function(B,J,ee){var ie=this,se=i(B,this.name),ke=se.getChecker(B,J,ee);return se instanceof X||se instanceof F?ke:function(ye,be){return ke(ye,be)?!0:be.fail(null,ie._failMsg,0)}},F}(s);t.TName=l;function c(x){return new u(x)}t.lit=c;var u=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.value=B,J.name=JSON.stringify(B),J._failMsg="is not "+J.name,J}return F.prototype.getChecker=function(B,J){var ee=this;return function(ie,se){return ie===ee.value?!0:se.fail(null,ee._failMsg,-1)}},F}(s);t.TLiteral=u;function d(x){return new m(r(x))}t.array=d;var m=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.ttype=B,J}return F.prototype.getChecker=function(B,J){var ee=this.ttype.getChecker(B,J);return function(ie,se){if(!Array.isArray(ie))return se.fail(null,"is not an array",0);for(var ke=0;ke<ie.length;ke++){var ye=ee(ie[ke],se);if(!ye)return se.fail(ke,null,1)}return!0}},F}(s);t.TArray=m;function f(){for(var x=[],F=0;F<arguments.length;F++)x[F]=arguments[F];return new g(x.map(function(B){return r(B)}))}t.tuple=f;var g=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.ttypes=B,J}return F.prototype.getChecker=function(B,J){var ee=this.ttypes.map(function(se){return se.getChecker(B,J)}),ie=function(se,ke){if(!Array.isArray(se))return ke.fail(null,"is not an array",0);for(var ye=0;ye<ee.length;ye++){var be=ee[ye](se[ye],ke);if(!be)return ke.fail(ye,null,1)}return!0};return J?function(se,ke){return ie(se,ke)?se.length<=ee.length?!0:ke.fail(ee.length,"is extraneous",2):!1}:ie},F}(s);t.TTuple=g;function w(){for(var x=[],F=0;F<arguments.length;F++)x[F]=arguments[F];return new k(x.map(function(B){return r(B)}))}t.union=w;var k=function(x){e(F,x);function F(B){var J=x.call(this)||this;J.ttypes=B;var ee=B.map(function(se){return se instanceof l||se instanceof u?se.name:null}).filter(function(se){return se}),ie=B.length-ee.length;return ee.length?(ie>0&&ee.push(ie+" more"),J._failMsg="is none of "+ee.join(", ")):J._failMsg="is none of "+ie+" types",J}return F.prototype.getChecker=function(B,J){var ee=this,ie=this.ttypes.map(function(se){return se.getChecker(B,J)});return function(se,ke){for(var ye=ke.unionResolver(),be=0;be<ie.length;be++){var fe=ie[be](se,ye.createContext());if(fe)return!0}return ke.resolveUnion(ye),ke.fail(null,ee._failMsg,0)}},F}(s);t.TUnion=k;function I(){for(var x=[],F=0;F<arguments.length;F++)x[F]=arguments[F];return new E(x.map(function(B){return r(B)}))}t.intersection=I;var E=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.ttypes=B,J}return F.prototype.getChecker=function(B,J){var ee=new Set,ie=this.ttypes.map(function(se){return se.getChecker(B,J,ee)});return function(se,ke){var ye=ie.every(function(be){return be(se,ke)});return ye?!0:ke.fail(null,null,0)}},F}(s);t.TIntersection=E;function b(x){return new A(x)}t.enumtype=b;var A=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.members=B,J.validValues=new Set,J._failMsg="is not a valid enum value",J.validValues=new Set(Object.keys(B).map(function(ee){return B[ee]})),J}return F.prototype.getChecker=function(B,J){var ee=this;return function(ie,se){return ee.validValues.has(ie)?!0:se.fail(null,ee._failMsg,0)}},F}(s);t.TEnumType=A;function v(x,F){return new $(x,F)}t.enumlit=v;var $=function(x){e(F,x);function F(B,J){var ee=x.call(this)||this;return ee.enumName=B,ee.prop=J,ee._failMsg="is not "+B+"."+J,ee}return F.prototype.getChecker=function(B,J){var ee=this,ie=i(B,this.enumName);if(!(ie instanceof A))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var se=ie.members[this.prop];if(!ie.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(ke,ye){return ke===se?!0:ye.fail(null,ee._failMsg,-1)}},F}(s);t.TEnumLiteral=$;function D(x){return Object.keys(x).map(function(F){return j(F,x[F])})}function j(x,F){return F instanceof _?new N(x,F.ttype,!0):new N(x,r(F),!1)}function V(x,F){return new U(x,D(F))}t.iface=V;var U=function(x){e(F,x);function F(B,J){var ee=x.call(this)||this;return ee.bases=B,ee.props=J,ee.propSet=new Set(J.map(function(ie){return ie.name})),ee}return F.prototype.getChecker=function(B,J,ee){var ie=this,se=this.bases.map(function(qe){return i(B,qe).getChecker(B,J)}),ke=this.props.map(function(qe){return qe.ttype.getChecker(B,J)}),ye=new n.NoopContext,be=this.props.map(function(qe,ne){return!qe.isOpt&&!ke[ne](void 0,ye)}),fe=function(qe,ne){if(typeof qe!="object"||qe===null)return ne.fail(null,"is not an object",0);for(var we=0;we<se.length;we++)if(!se[we](qe,ne))return!1;for(var we=0;we<ke.length;we++){var Z=ie.props[we].name,Se=qe[Z];if(Se===void 0){if(be[we])return ne.fail(Z,"is missing",1)}else{var Xe=ke[we](Se,ne);if(!Xe)return ne.fail(Z,null,1)}}return!0};if(!J)return fe;var Oe=this.propSet;return ee&&(this.propSet.forEach(function(qe){return ee.add(qe)}),Oe=ee),function(qe,ne){if(!fe(qe,ne))return!1;for(var we in qe)if(!Oe.has(we))return ne.fail(we,"is extraneous",2);return!0}},F}(s);t.TIface=U;function O(x){return new _(r(x))}t.opt=O;var _=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.ttype=B,J}return F.prototype.getChecker=function(B,J){var ee=this.ttype.getChecker(B,J);return function(ie,se){return ie===void 0||ee(ie,se)}},F}(s);t.TOptional=_;var N=function(){function x(F,B,J){this.name=F,this.ttype=B,this.isOpt=J}return x}();t.TProp=N;function C(x){for(var F=[],B=1;B<arguments.length;B++)F[B-1]=arguments[B];return new R(new K(F),r(x))}t.func=C;var R=function(x){e(F,x);function F(B,J){var ee=x.call(this)||this;return ee.paramList=B,ee.result=J,ee}return F.prototype.getChecker=function(B,J){return function(ee,ie){return typeof ee=="function"?!0:ie.fail(null,"is not a function",0)}},F}(s);t.TFunc=R;function M(x,F,B){return new q(x,r(F),!!B)}t.param=M;var q=function(){function x(F,B,J){this.name=F,this.ttype=B,this.isOpt=J}return x}();t.TParam=q;var K=function(x){e(F,x);function F(B){var J=x.call(this)||this;return J.params=B,J}return F.prototype.getChecker=function(B,J){var ee=this,ie=this.params.map(function(be){return be.ttype.getChecker(B,J)}),se=new n.NoopContext,ke=this.params.map(function(be,fe){return!be.isOpt&&!ie[fe](void 0,se)}),ye=function(be,fe){if(!Array.isArray(be))return fe.fail(null,"is not an array",0);for(var Oe=0;Oe<ie.length;Oe++){var qe=ee.params[Oe];if(be[Oe]===void 0){if(ke[Oe])return fe.fail(qe.name,"is missing",1)}else{var ne=ie[Oe](be[Oe],fe);if(!ne)return fe.fail(qe.name,null,1)}}return!0};return J?function(be,fe){return ye(be,fe)?be.length<=ie.length?!0:fe.fail(ie.length,"is extraneous",2):!1}:ye},F}(s);t.TParamList=K;var X=function(x){e(F,x);function F(B,J){var ee=x.call(this)||this;return ee.validator=B,ee.message=J,ee}return F.prototype.getChecker=function(B,J){var ee=this;return function(ie,se){return ee.validator(ie)?!0:se.fail(null,ee.message,0)}},F}(s);t.BasicType=X,t.basicTypes={any:new X(function(x){return!0},"is invalid"),number:new X(function(x){return typeof x=="number"},"is not a number"),object:new X(function(x){return typeof x=="object"&&x},"is not an object"),boolean:new X(function(x){return typeof x=="boolean"},"is not a boolean"),string:new X(function(x){return typeof x=="string"},"is not a string"),symbol:new X(function(x){return typeof x=="symbol"},"is not a symbol"),void:new X(function(x){return x==null},"is not void"),undefined:new X(function(x){return x===void 0},"is not undefined"),null:new X(function(x){return x===null},"is not null"),never:new X(function(x){return!1},"is unexpected"),Date:new X(T("[object Date]"),"is not a Date"),RegExp:new X(T("[object RegExp]"),"is not a RegExp")};var ae=Object.prototype.toString;function T(x){return function(F){return typeof F=="object"&&F&&ae.call(F)===x}}typeof Buffer<"u"&&(t.basicTypes.Buffer=new X(function(x){return Buffer.isBuffer(x)},"is not a Buffer"));for(var de=function(x){t.basicTypes[x.name]=new X(function(F){return F instanceof x},"is not a "+x.name)},he=0,ce=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];he<ce.length;he++){var L=ce[he];de(L)}}(Mr)),Mr}var W1;function Qx(){return W1||(W1=1,function(t){var e=Lr&&Lr.__spreadArrays||function(){for(var c=0,u=0,d=arguments.length;u<d;u++)c+=arguments[u].length;for(var m=Array(c),f=0,u=0;u<d;u++)for(var g=arguments[u],w=0,k=g.length;w<k;w++,f++)m[f]=g[w];return m};Object.defineProperty(t,"__esModule",{value:!0}),t.Checker=t.createCheckers=void 0;var n=H1(),s=Hl(),r=H1();Object.defineProperty(t,"TArray",{enumerable:!0,get:function(){return r.TArray}}),Object.defineProperty(t,"TEnumType",{enumerable:!0,get:function(){return r.TEnumType}}),Object.defineProperty(t,"TEnumLiteral",{enumerable:!0,get:function(){return r.TEnumLiteral}}),Object.defineProperty(t,"TFunc",{enumerable:!0,get:function(){return r.TFunc}}),Object.defineProperty(t,"TIface",{enumerable:!0,get:function(){return r.TIface}}),Object.defineProperty(t,"TLiteral",{enumerable:!0,get:function(){return r.TLiteral}}),Object.defineProperty(t,"TName",{enumerable:!0,get:function(){return r.TName}}),Object.defineProperty(t,"TOptional",{enumerable:!0,get:function(){return r.TOptional}}),Object.defineProperty(t,"TParam",{enumerable:!0,get:function(){return r.TParam}}),Object.defineProperty(t,"TParamList",{enumerable:!0,get:function(){return r.TParamList}}),Object.defineProperty(t,"TProp",{enumerable:!0,get:function(){return r.TProp}}),Object.defineProperty(t,"TTuple",{enumerable:!0,get:function(){return r.TTuple}}),Object.defineProperty(t,"TType",{enumerable:!0,get:function(){return r.TType}}),Object.defineProperty(t,"TUnion",{enumerable:!0,get:function(){return r.TUnion}}),Object.defineProperty(t,"TIntersection",{enumerable:!0,get:function(){return r.TIntersection}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return r.array}}),Object.defineProperty(t,"enumlit",{enumerable:!0,get:function(){return r.enumlit}}),Object.defineProperty(t,"enumtype",{enumerable:!0,get:function(){return r.enumtype}}),Object.defineProperty(t,"func",{enumerable:!0,get:function(){return r.func}}),Object.defineProperty(t,"iface",{enumerable:!0,get:function(){return r.iface}}),Object.defineProperty(t,"lit",{enumerable:!0,get:function(){return r.lit}}),Object.defineProperty(t,"name",{enumerable:!0,get:function(){return r.name}}),Object.defineProperty(t,"opt",{enumerable:!0,get:function(){return r.opt}}),Object.defineProperty(t,"param",{enumerable:!0,get:function(){return r.param}}),Object.defineProperty(t,"tuple",{enumerable:!0,get:function(){return r.tuple}}),Object.defineProperty(t,"union",{enumerable:!0,get:function(){return r.union}}),Object.defineProperty(t,"intersection",{enumerable:!0,get:function(){return r.intersection}}),Object.defineProperty(t,"BasicType",{enumerable:!0,get:function(){return r.BasicType}});var i=Hl();Object.defineProperty(t,"VError",{enumerable:!0,get:function(){return i.VError}});function a(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];for(var d=Object.assign.apply(Object,e([{},n.basicTypes],c)),m={},f=0,g=c;f<g.length;f++)for(var w=g[f],k=0,I=Object.keys(w);k<I.length;k++){var E=I[k];m[E]=new l(d,w[E])}return m}t.createCheckers=a;var l=function(){function c(u,d,m){if(m===void 0&&(m="value"),this.suite=u,this.ttype=d,this._path=m,this.props=new Map,d instanceof n.TIface)for(var f=0,g=d.props;f<g.length;f++){var w=g[f];this.props.set(w.name,w.ttype)}this.checkerPlain=this.ttype.getChecker(u,!1),this.checkerStrict=this.ttype.getChecker(u,!0)}return c.prototype.setReportedPath=function(u){this._path=u},c.prototype.check=function(u){return this._doCheck(this.checkerPlain,u)},c.prototype.test=function(u){return this.checkerPlain(u,new s.NoopContext)},c.prototype.validate=function(u){return this._doValidate(this.checkerPlain,u)},c.prototype.strictCheck=function(u){return this._doCheck(this.checkerStrict,u)},c.prototype.strictTest=function(u){return this.checkerStrict(u,new s.NoopContext)},c.prototype.strictValidate=function(u){return this._doValidate(this.checkerStrict,u)},c.prototype.getProp=function(u){var d=this.props.get(u);if(!d)throw new Error("Type has no property "+u);return new c(this.suite,d,this._path+"."+u)},c.prototype.methodArgs=function(u){var d=this._getMethod(u);return new c(this.suite,d.paramList)},c.prototype.methodResult=function(u){var d=this._getMethod(u);return new c(this.suite,d.result)},c.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getArgs() applied to non-function");return new c(this.suite,this.ttype.paramList)},c.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw new Error("getResult() applied to non-function");return new c(this.suite,this.ttype.result)},c.prototype.getType=function(){return this.ttype},c.prototype._doCheck=function(u,d){var m=new s.NoopContext;if(!u(d,m)){var f=new s.DetailContext;throw u(d,f),f.getError(this._path)}},c.prototype._doValidate=function(u,d){var m=new s.NoopContext;if(u(d,m))return null;var f=new s.DetailContext;return u(d,f),f.getErrorDetail(this._path)},c.prototype._getMethod=function(u){var d=this.props.get(u);if(!d)throw new Error("Type has no property "+u);if(!(d instanceof n.TFunc))throw new Error("Property "+u+" is not a method");return d},c}();t.Checker=l}(Lr)),Lr}var Ge=Qx();const Zx=Ge.union(Ge.lit("jsx"),Ge.lit("typescript"),Ge.lit("flow"),Ge.lit("imports"),Ge.lit("react-hot-loader"),Ge.lit("jest")),ek=Ge.iface([],{compiledFilename:"string"}),tk=Ge.iface([],{transforms:Ge.array("Transform"),disableESTransforms:Ge.opt("boolean"),jsxRuntime:Ge.opt(Ge.union(Ge.lit("classic"),Ge.lit("automatic"),Ge.lit("preserve"))),production:Ge.opt("boolean"),jsxImportSource:Ge.opt("string"),jsxPragma:Ge.opt("string"),jsxFragmentPragma:Ge.opt("string"),keepUnusedImports:Ge.opt("boolean"),preserveDynamicImport:Ge.opt("boolean"),injectCreateRequireForImportRequire:Ge.opt("boolean"),enableLegacyTypeScriptModuleInterop:Ge.opt("boolean"),enableLegacyBabel5ModuleInterop:Ge.opt("boolean"),sourceMapOptions:Ge.opt("SourceMapOptions"),filePath:Ge.opt("string")}),nk={Transform:Zx,SourceMapOptions:ek,Options:tk},{Options:sk}=Ge.createCheckers(nk);function rk(t){sk.strictCheck(t)}function G1(){W(),gt(!1)}function X1(t){W(),No(t)}function $n(t){xe(),Wl(t)}function $o(){xe(),h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration}function Wl(t){let e;h.scopeDepth===0?e=ge.TopLevelDeclaration:t?e=ge.BlockScopedDeclaration:e=ge.FunctionScopedDeclaration,h.tokens[h.tokens.length-1].identifierRole=e}function No(t){switch(h.type){case o._this:{const e=Ne(0);W(),$e(e);return}case o._yield:case o.name:{h.type=o.name,$n(t);return}case o.bracketL:{W(),Gl(o.bracketR,t,!0);return}case o.braceL:hc(!0,t);return;default:Ie()}}function Gl(t,e,n=!1,s=!1,r=0){let i=!0,a=!1;const l=h.tokens.length;for(;!z(t)&&!h.error;)if(i?i=!1:(H(o.comma),h.tokens[h.tokens.length-1].contextId=r,!a&&h.tokens[l].isType&&(h.tokens[h.tokens.length-1].isType=!0,a=!0)),!(n&&y(o.comma))){if(z(t))break;if(y(o.ellipsis)){X1(e),K1(),z(o.comma),H(t);break}else ik(s,e)}}function ik(t,e){t&&Kl([S._public,S._protected,S._private,S._readonly,S._override]),Co(e),K1(),Co(e,!0)}function K1(){Be?wA():De&&pE()}function Co(t,e=!1){if(e||No(t),!z(o.eq))return;const n=h.tokens.length-1;gt(),h.tokens[n].rhsEndIndex=h.tokens.length}function Xl(){return y(o.name)}function ok(){return y(o.name)||!!(h.type&o.IS_KEYWORD)||y(o.string)||y(o.num)||y(o.bigint)||y(o.decimal)}function J1(){const t=h.snapshot();return W(),(y(o.bracketL)||y(o.braceL)||y(o.star)||y(o.ellipsis)||y(o.hash)||ok())&&!Et()?!0:(h.restoreFromSnapshot(t),!1)}function Kl(t){for(;Y1(t)!==null;);}function Y1(t){if(!y(o.name))return null;const e=h.contextualKeyword;if(t.indexOf(e)!==-1&&J1()){switch(e){case S._readonly:h.tokens[h.tokens.length-1].type=o._readonly;break;case S._abstract:h.tokens[h.tokens.length-1].type=o._abstract;break;case S._static:h.tokens[h.tokens.length-1].type=o._static;break;case S._public:h.tokens[h.tokens.length-1].type=o._public;break;case S._private:h.tokens[h.tokens.length-1].type=o._private;break;case S._protected:h.tokens[h.tokens.length-1].type=o._protected;break;case S._override:h.tokens[h.tokens.length-1].type=o._override;break;case S._declare:h.tokens[h.tokens.length-1].type=o._declare;break}return e}return null}function Fr(){for(xe();z(o.dot);)xe()}function ak(){Fr(),!Et()&&y(o.lessThan)&&Bs()}function lk(){W(),jr()}function ck(){W()}function uk(){H(o._typeof),y(o._import)?Q1():Fr(),!Et()&&y(o.lessThan)&&Bs()}function Q1(){H(o._import),H(o.parenL),H(o.string),H(o.parenR),z(o.dot)&&Fr(),y(o.lessThan)&&Bs()}function hk(){z(o._const);const t=z(o._in),e=ut(S._out);z(o._const),(t||e)&&!y(o.name)?h.tokens[h.tokens.length-1].type=o.name:xe(),z(o._extends)&&tt(),z(o.eq)&&tt()}function os(){y(o.lessThan)&&To()}function To(){const t=Ne(0);for(y(o.lessThan)||y(o.typeParameterStart)?W():Ie();!z(o.greaterThan)&&!h.error;)hk(),z(o.comma);$e(t)}function Jl(t){const e=t===o.arrow;os(),H(o.parenL),h.scopeDepth++,dk(!1),h.scopeDepth--,(e||y(t))&&Br(t)}function dk(t){Gl(o.parenR,t)}function Ro(){z(o.comma)||Je()}function Z1(){Jl(o.colon),Ro()}function pk(){const t=h.snapshot();W();const e=z(o.name)&&y(o.colon);return h.restoreFromSnapshot(t),e}function ef(){if(!(y(o.bracketL)&&pk()))return!1;const t=Ne(0);return H(o.bracketL),xe(),jr(),H(o.bracketR),Ms(),Ro(),$e(t),!0}function tf(t){z(o.question),!t&&(y(o.parenL)||y(o.lessThan))?(Jl(o.colon),Ro()):(Ms(),Ro())}function fk(){if(y(o.parenL)||y(o.lessThan)){Z1();return}if(y(o._new)){W(),y(o.parenL)||y(o.lessThan)?Z1():tf(!1);return}const t=!!Y1([S._readonly]);ef()||((me(S._get)||me(S._set))&&J1(),Vr(-1),tf(t))}function mk(){nf()}function nf(){for(H(o.braceL);!z(o.braceR)&&!h.error;)fk()}function gk(){const t=h.snapshot(),e=yk();return h.restoreFromSnapshot(t),e}function yk(){return W(),z(o.plus)||z(o.minus)?me(S._readonly):(me(S._readonly)&&W(),!y(o.bracketL)||(W(),!Xl())?!1:(W(),y(o._in)))}function bk(){xe(),H(o._in),tt()}function xk(){H(o.braceL),y(o.plus)||y(o.minus)?(W(),rt(S._readonly)):ut(S._readonly),H(o.bracketL),bk(),ut(S._as)&&tt(),H(o.bracketR),y(o.plus)||y(o.minus)?(W(),H(o.question)):z(o.question),Rk(),Je(),H(o.braceR)}function kk(){for(H(o.bracketL);!z(o.bracketR)&&!h.error;)Ek(),z(o.comma)}function Ek(){z(o.ellipsis)?tt():(tt(),z(o.question)),z(o.colon)&&tt()}function Ak(){H(o.parenL),tt(),H(o.parenR)}function wk(){for(Pn(),Pn();!y(o.backQuote)&&!h.error;)H(o.dollarBraceL),tt(),Pn(),Pn();W()}var Nn;(function(t){t[t.TSFunctionType=0]="TSFunctionType";const n=1;t[t.TSConstructorType=n]="TSConstructorType";const s=n+1;t[t.TSAbstractConstructorType=s]="TSAbstractConstructorType"})(Nn||(Nn={}));function Yl(t){t===Nn.TSAbstractConstructorType&&rt(S._abstract),(t===Nn.TSConstructorType||t===Nn.TSAbstractConstructorType)&&H(o._new);const e=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!1,Jl(o.arrow),h.inDisallowConditionalTypesContext=e}function Sk(){switch(h.type){case o.name:ak();return;case o._void:case o._null:W();return;case o.string:case o.num:case o.bigint:case o.decimal:case o._true:case o._false:zs();return;case o.minus:W(),zs();return;case o._this:{ck(),me(S._is)&&!Et()&&lk();return}case o._typeof:uk();return;case o._import:Q1();return;case o.braceL:gk()?xk():mk();return;case o.bracketL:kk();return;case o.parenL:Ak();return;case o.backQuote:wk();return;default:if(h.type&o.IS_KEYWORD){W(),h.tokens[h.tokens.length-1].type=o.name;return}break}Ie()}function Ik(){for(Sk();!Et()&&z(o.bracketL);)z(o.bracketR)||(tt(),H(o.bracketR))}function vk(){if(rt(S._infer),xe(),y(o._extends)){const t=h.snapshot();H(o._extends);const e=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!0,tt(),h.inDisallowConditionalTypesContext=e,(h.error||!h.inDisallowConditionalTypesContext&&y(o.question))&&h.restoreFromSnapshot(t)}}function Ql(){if(me(S._keyof)||me(S._unique)||me(S._readonly))W(),Ql();else if(me(S._infer))vk();else{const t=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!1,Ik(),h.inDisallowConditionalTypesContext=t}}function sf(){if(z(o.bitwiseAND),Ql(),y(o.bitwiseAND))for(;z(o.bitwiseAND);)Ql()}function _k(){if(z(o.bitwiseOR),sf(),y(o.bitwiseOR))for(;z(o.bitwiseOR);)sf()}function Pk(){return y(o.lessThan)?!0:y(o.parenL)&&Nk()}function $k(){if(y(o.name)||y(o._this))return W(),!0;if(y(o.braceL)||y(o.bracketL)){let t=1;for(W();t>0&&!h.error;)y(o.braceL)||y(o.bracketL)?t++:(y(o.braceR)||y(o.bracketR))&&t--,W();return!0}return!1}function Nk(){const t=h.snapshot(),e=Ck();return h.restoreFromSnapshot(t),e}function Ck(){return W(),!!(y(o.parenR)||y(o.ellipsis)||$k()&&(y(o.colon)||y(o.comma)||y(o.question)||y(o.eq)||y(o.parenR)&&(W(),y(o.arrow))))}function Br(t){const e=Ne(0);H(t),Dk()||tt(),$e(e)}function Tk(){y(o.colon)&&Br(o.colon)}function Ms(){y(o.colon)&&jr()}function Rk(){z(o.colon)&&tt()}function Dk(){const t=h.snapshot();return me(S._asserts)?(W(),ut(S._is)?(tt(),!0):Xl()||y(o._this)?(W(),ut(S._is)&&tt(),!0):(h.restoreFromSnapshot(t),!1)):Xl()||y(o._this)?(W(),me(S._is)&&!Et()?(W(),tt(),!0):(h.restoreFromSnapshot(t),!1)):!1}function jr(){const t=Ne(0);H(o.colon),tt(),$e(t)}function tt(){if(rf(),h.inDisallowConditionalTypesContext||Et()||!z(o._extends))return;const t=h.inDisallowConditionalTypesContext;h.inDisallowConditionalTypesContext=!0,rf(),h.inDisallowConditionalTypesContext=t,H(o.question),tt(),H(o.colon),tt()}function Ok(){return me(S._abstract)&&et()===o._new}function rf(){if(Pk()){Yl(Nn.TSFunctionType);return}if(y(o._new)){Yl(Nn.TSConstructorType);return}else if(Ok()){Yl(Nn.TSAbstractConstructorType);return}_k()}function Lk(){const t=Ne(1);tt(),H(o.greaterThan),$e(t),zr()}function Mk(){if(z(o.jsxTagStart)){h.tokens[h.tokens.length-1].type=o.typeParameterStart;const t=Ne(1);for(;!y(o.greaterThan)&&!h.error;)tt(),z(o.comma);Ot(),$e(t)}}function of(){for(;!y(o.braceL)&&!h.error;)Fk(),z(o.comma)}function Fk(){Fr(),y(o.lessThan)&&Bs()}function Bk(){$n(!1),os(),z(o._extends)&&of(),nf()}function jk(){$n(!1),os(),H(o.eq),tt(),Je()}function zk(){if(y(o.string)?zs():xe(),z(o.eq)){const t=h.tokens.length-1;gt(),h.tokens[t].rhsEndIndex=h.tokens.length}}function Zl(){for($n(!1),H(o.braceL);!z(o.braceR)&&!h.error;)zk(),z(o.comma)}function ec(){H(o.braceL),Uo(o.braceR)}function tc(){$n(!1),z(o.dot)?tc():ec()}function af(){me(S._global)?xe():y(o.string)?yn():Ie(),y(o.braceL)?ec():Je()}function nc(){$o(),H(o.eq),Uk(),Je()}function Vk(){return me(S._require)&&et()===o.parenL}function Uk(){Vk()?qk():Fr()}function qk(){rt(S._require),H(o.parenL),y(o.string)||Ie(),zs(),H(o.parenR)}function Hk(){if(tn())return!1;switch(h.type){case o._function:{const t=Ne(1);W();const e=h.start;return cs(e,!0),$e(t),!0}case o._class:{const t=Ne(1);return us(!0,!1),$e(t),!0}case o._const:if(y(o._const)&&Bl(S._enum)){const t=Ne(1);return H(o._const),rt(S._enum),h.tokens[h.tokens.length-1].type=o._enum,Zl(),$e(t),!0}case o._var:case o._let:{const t=Ne(1);return Vo(h.type!==o._var),$e(t),!0}case o.name:{const t=Ne(1),e=h.contextualKeyword;let n=!1;return e===S._global?(af(),n=!0):n=Do(e,!0),$e(t),n}default:return!1}}function lf(){return Do(h.contextualKeyword,!0)}function Wk(t){switch(t){case S._declare:{const e=h.tokens.length-1;if(Hk())return h.tokens[e].type=o._declare,!0;break}case S._global:if(y(o.braceL))return ec(),!0;break;default:return Do(t,!1)}return!1}function Do(t,e){switch(t){case S._abstract:if(Fs(e)&&y(o._class))return h.tokens[h.tokens.length-1].type=o._abstract,us(!0,!1),!0;break;case S._enum:if(Fs(e)&&y(o.name))return h.tokens[h.tokens.length-1].type=o._enum,Zl(),!0;break;case S._interface:if(Fs(e)&&y(o.name)){const n=Ne(e?2:1);return Bk(),$e(n),!0}break;case S._module:if(Fs(e)){if(y(o.string)){const n=Ne(e?2:1);return af(),$e(n),!0}else if(y(o.name)){const n=Ne(e?2:1);return tc(),$e(n),!0}}break;case S._namespace:if(Fs(e)&&y(o.name)){const n=Ne(e?2:1);return tc(),$e(n),!0}break;case S._type:if(Fs(e)&&y(o.name)){const n=Ne(e?2:1);return jk(),$e(n),!0}break}return!1}function Fs(t){return t?(W(),!0):!tn()}function Gk(){const t=h.snapshot();return To(),Vs(),Tk(),H(o.arrow),h.error?(h.restoreFromSnapshot(t),!1):(qr(!0),!0)}function sc(){h.type===o.bitShiftL&&(h.pos-=1,ve(o.lessThan)),Bs()}function Bs(){const t=Ne(0);for(H(o.lessThan);!y(o.greaterThan)&&!h.error;)tt(),z(o.comma);t?(H(o.greaterThan),$e(t)):($e(t),P1(),H(o.greaterThan),h.tokens[h.tokens.length-1].isType=!0)}function cf(){if(y(o.name))switch(h.contextualKeyword){case S._abstract:case S._declare:case S._enum:case S._interface:case S._module:case S._namespace:case S._type:return!0}return!1}function Xk(t,e){if(y(o.colon)&&Br(o.colon),!y(o.braceL)&&tn()){let n=h.tokens.length-1;for(;n>=0&&(h.tokens[n].start>=t||h.tokens[n].type===o._default||h.tokens[n].type===o._export);)h.tokens[n].isType=!0,n--;return}qr(!1,e)}function Kk(t,e,n){if(!Et()&&z(o.bang)){h.tokens[h.tokens.length-1].type=o.nonNullAssertion;return}if(y(o.lessThan)||y(o.bitShiftL)){const s=h.snapshot();if(!e&&yf()&&Gk())return;if(sc(),!e&&z(o.parenL)?(h.tokens[h.tokens.length-1].subscriptStartIndex=t,Cn()):y(o.backQuote)?uc():(h.type===o.greaterThan||h.type!==o.parenL&&h.type&o.IS_EXPRESSION_START&&!Et())&&Ie(),h.error)h.restoreFromSnapshot(s);else return}else!e&&y(o.questionDot)&&et()===o.lessThan&&(W(),h.tokens[t].isOptionalChainStart=!0,h.tokens[h.tokens.length-1].subscriptStartIndex=t,Bs(),H(o.parenL),Cn());oc(t,e,n)}function Jk(){if(z(o._import))return me(S._type)&&et()!==o.eq&&rt(S._type),nc(),!0;if(z(o.eq))return mt(),Je(),!0;if(ut(S._as))return rt(S._namespace),xe(),Je(),!0;if(me(S._type)){const t=et();(t===o.braceL||t===o.star)&&W()}return!1}function Yk(){if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-3].identifierRole=ge.ImportAccess,h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration;return}xe(),h.tokens[h.tokens.length-3].identifierRole=ge.ImportAccess,h.tokens[h.tokens.length-1].identifierRole=ge.ImportDeclaration,h.tokens[h.tokens.length-4].isType=!0,h.tokens[h.tokens.length-3].isType=!0,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0}function Qk(){if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ExportAccess;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-1].identifierRole=ge.ExportAccess,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0;return}if(xe(),y(o.comma)||y(o.braceR)){h.tokens[h.tokens.length-3].identifierRole=ge.ExportAccess;return}xe(),h.tokens[h.tokens.length-3].identifierRole=ge.ExportAccess,h.tokens[h.tokens.length-4].isType=!0,h.tokens[h.tokens.length-3].isType=!0,h.tokens[h.tokens.length-2].isType=!0,h.tokens[h.tokens.length-1].isType=!0}function Zk(){if(me(S._abstract)&&et()===o._class)return h.type=o._abstract,W(),us(!0,!0),!0;if(me(S._interface)){const t=Ne(2);return Do(S._interface,!0),$e(t),!0}return!1}function eE(){if(h.type===o._const){const t=Rr();if(t.type===o.name&&t.contextualKeyword===S._enum)return H(o._const),rt(S._enum),h.tokens[h.tokens.length-1].type=o._enum,Zl(),!0}return!1}function tE(t){const e=h.tokens.length;Kl([S._abstract,S._readonly,S._declare,S._static,S._override]);const n=h.tokens.length;if(ef()){const r=t?e-1:e;for(let i=r;i<n;i++)h.tokens[i].isType=!0;return!0}return!1}function nE(t){Wk(t)||Je()}function sE(){const t=ut(S._declare);t&&(h.tokens[h.tokens.length-1].type=o._declare);let e=!1;if(y(o.name))if(t){const n=Ne(2);e=lf(),$e(n)}else e=lf();if(!e)if(t){const n=Ne(2);Tt(!0),$e(n)}else Tt(!0)}function rE(t){if(t&&(y(o.lessThan)||y(o.bitShiftL))&&sc(),ut(S._implements)){h.tokens[h.tokens.length-1].type=o._implements;const e=Ne(1);of(),$e(e)}}function iE(){os()}function oE(){os()}function aE(){const t=Ne(0);Et()||z(o.bang),Ms(),$e(t)}function lE(){y(o.colon)&&jr()}function cE(t,e){return So?uE(t,e):hE(t,e)}function uE(t,e){if(!y(o.lessThan))return nn(t,e);const n=h.snapshot();let s=nn(t,e);if(h.error)h.restoreFromSnapshot(n);else return s;return h.type=o.typeParameterStart,To(),s=nn(t,e),s||Ie(),s}function hE(t,e){if(!y(o.lessThan))return nn(t,e);const n=h.snapshot();To();const s=nn(t,e);if(s||Ie(),h.error)h.restoreFromSnapshot(n);else return s;return nn(t,e)}function dE(){if(y(o.colon)){const t=h.snapshot();Br(o.colon),Ct()&&Ie(),y(o.arrow)||Ie(),h.error&&h.restoreFromSnapshot(t)}return z(o.arrow)}function pE(){const t=Ne(0);z(o.question),Ms(),$e(t)}function fE(){(y(o.lessThan)||y(o.bitShiftL))&&sc(),Tf()}function mE(){let t=!1,e=!1;for(;;){if(h.pos>=re.length){Ie("Unterminated JSX contents");return}const n=re.charCodeAt(h.pos);if(n===P.lessThan||n===P.leftCurlyBrace){if(h.pos===h.start){if(n===P.lessThan){h.pos++,ve(o.jsxTagStart);return}$1(n);return}ve(t&&!e?o.jsxEmptyText:o.jsxText);return}n===P.lineFeed?t=!0:n!==P.space&&n!==P.carriageReturn&&n!==P.tab&&(e=!0),h.pos++}}function gE(t){for(h.pos++;;){if(h.pos>=re.length){Ie("Unterminated string constant");return}if(re.charCodeAt(h.pos)===t){h.pos++;break}h.pos++}ve(o.string)}function yE(){let t;do{if(h.pos>re.length){Ie("Unexpectedly reached the end of input.");return}t=re.charCodeAt(++h.pos)}while(jt[t]||t===P.dash);ve(o.jsxName)}function rc(){Ot()}function uf(t){if(rc(),!z(o.colon)){h.tokens[h.tokens.length-1].identifierRole=t;return}rc()}function hf(){const t=h.tokens.length;uf(ge.Access);let e=!1;for(;y(o.dot);)e=!0,Ot(),rc();if(!e){const n=h.tokens[t],s=re.charCodeAt(n.start);s>=P.lowercaseA&&s<=P.lowercaseZ&&(n.identifierRole=null)}}function bE(){switch(h.type){case o.braceL:W(),mt(),Ot();return;case o.jsxTagStart:pf(),Ot();return;case o.string:Ot();return;default:Ie("JSX value should be either an expression or a quoted JSX text")}}function xE(){H(o.ellipsis),mt()}function kE(t){if(y(o.jsxTagEnd))return!1;hf(),De&&Mk();let e=!1;for(;!y(o.slash)&&!y(o.jsxTagEnd)&&!h.error;){if(z(o.braceL)){e=!0,H(o.ellipsis),gt(),Ot();continue}e&&h.end-h.start===3&&re.charCodeAt(h.start)===P.lowercaseK&&re.charCodeAt(h.start+1)===P.lowercaseE&&re.charCodeAt(h.start+2)===P.lowercaseY&&(h.tokens[t].jsxRole=zt.KeyAfterPropSpread),uf(ge.ObjectKey),y(o.eq)&&(Ot(),bE())}const n=y(o.slash);return n&&Ot(),n}function EE(){y(o.jsxTagEnd)||hf()}function df(){const t=h.tokens.length-1;h.tokens[t].jsxRole=zt.NoChildren;let e=0;if(!kE(t))for(js();;)switch(h.type){case o.jsxTagStart:if(Ot(),y(o.slash)){Ot(),EE(),h.tokens[t].jsxRole!==zt.KeyAfterPropSpread&&(e===1?h.tokens[t].jsxRole=zt.OneChild:e>1&&(h.tokens[t].jsxRole=zt.StaticChildren));return}e++,df(),js();break;case o.jsxText:e++,js();break;case o.jsxEmptyText:js();break;case o.braceL:W(),y(o.ellipsis)?(xE(),js(),e+=2):(y(o.braceR)||(e++,mt()),js());break;default:Ie();return}}function pf(){Ot(),df()}function Ot(){h.tokens.push(new Io),v1(),h.start=h.pos;const t=re.charCodeAt(h.pos);if(Tr[t])yE();else if(t===P.quotationMark||t===P.apostrophe)gE(t);else switch(++h.pos,t){case P.greaterThan:ve(o.jsxTagEnd);break;case P.lessThan:ve(o.jsxTagStart);break;case P.slash:ve(o.slash);break;case P.equalsTo:ve(o.eq);break;case P.leftCurlyBrace:ve(o.braceL);break;case P.dot:ve(o.dot);break;case P.colon:ve(o.colon);break;default:Ie()}}function js(){h.tokens.push(new Io),h.start=h.pos,mE()}function AE(t){if(y(o.question)){const e=et();if(e===o.colon||e===o.comma||e===o.parenR)return}ff(t)}function wE(){E1(o.question),y(o.colon)&&(De?jr():Be&&ls())}class SE{constructor(e){this.stop=e}}function mt(t=!1){if(gt(t),y(o.comma))for(;z(o.comma);)gt(t)}function gt(t=!1,e=!1){return De?cE(t,e):Be?$A(t,e):nn(t,e)}function nn(t,e){if(y(o._yield))return jE(),!1;(y(o.parenL)||y(o.name)||y(o._yield))&&(h.potentialArrowAt=h.start);const n=IE(t);return e&&cc(),h.type&o.IS_ASSIGN?(W(),gt(t),!1):n}function IE(t){return _E(t)?!0:(vE(t),!1)}function vE(t){De||Be?AE(t):ff(t)}function ff(t){z(o.question)&&(gt(),H(o.colon),gt(t))}function _E(t){const e=h.tokens.length;return zr()?!0:(Oo(e,-1,t),!1)}function Oo(t,e,n){if(De&&(o._in&o.PRECEDENCE_MASK)>e&&!Et()&&(ut(S._as)||ut(S._satisfies))){const r=Ne(1);tt(),$e(r),P1(),Oo(t,e,n);return}const s=h.type&o.PRECEDENCE_MASK;if(s>0&&(!n||!y(o._in))&&s>e){const r=h.type;W(),r===o.nullishCoalescing&&(h.tokens[h.tokens.length-1].nullishStartIndex=t);const i=h.tokens.length;zr(),Oo(i,r&o.IS_RIGHT_ASSOCIATIVE?s-1:s,n),r===o.nullishCoalescing&&(h.tokens[t].numNullishCoalesceStarts++,h.tokens[h.tokens.length-1].numNullishCoalesceEnds++),Oo(t,e,n)}}function zr(){if(De&&!So&&z(o.lessThan))return Lk(),!1;if(me(S._module)&&w1()===P.leftCurlyBrace&&!f1())return zE(),!1;if(h.type&o.IS_PREFIX)return W(),zr(),!1;if(mf())return!0;for(;h.type&o.IS_POSTFIX&&!Ct();)h.type===o.preIncDec&&(h.type=o.postIncDec),W();return!1}function mf(){const t=h.tokens.length;return yn()?!0:(ic(t),h.tokens.length>t&&h.tokens[t].isOptionalChainStart&&(h.tokens[h.tokens.length-1].isOptionalChainEnd=!0),!1)}function ic(t,e=!1){Be?CA(t,e):gf(t,e)}function gf(t,e=!1){const n=new SE(!1);do PE(t,e,n);while(!n.stop&&!h.error)}function PE(t,e,n){De?Kk(t,e,n):Be?hA(t,e,n):oc(t,e,n)}function oc(t,e,n){if(!e&&z(o.doubleColon))ac(),n.stop=!0,ic(t,e);else if(y(o.questionDot)){if(h.tokens[t].isOptionalChainStart=!0,e&&et()===o.parenL){n.stop=!0;return}W(),h.tokens[h.tokens.length-1].subscriptStartIndex=t,z(o.bracketL)?(mt(),H(o.bracketR)):z(o.parenL)?Cn():Lo()}else if(z(o.dot))h.tokens[h.tokens.length-1].subscriptStartIndex=t,Lo();else if(z(o.bracketL))h.tokens[h.tokens.length-1].subscriptStartIndex=t,mt(),H(o.bracketR);else if(!e&&y(o.parenL))if(yf()){const s=h.snapshot(),r=h.tokens.length;W(),h.tokens[h.tokens.length-1].subscriptStartIndex=t;const i=Cr();h.tokens[h.tokens.length-1].contextId=i,Cn(),h.tokens[h.tokens.length-1].contextId=i,$E()&&(h.restoreFromSnapshot(s),n.stop=!0,h.scopeDepth++,Vs(),NE(r))}else{W(),h.tokens[h.tokens.length-1].subscriptStartIndex=t;const s=Cr();h.tokens[h.tokens.length-1].contextId=s,Cn(),h.tokens[h.tokens.length-1].contextId=s}else y(o.backQuote)?uc():n.stop=!0}function yf(){return h.tokens[h.tokens.length-1].contextualKeyword===S._async&&!Ct()}function Cn(){let t=!0;for(;!z(o.parenR)&&!h.error;){if(t)t=!1;else if(H(o.comma),z(o.parenR))break;Ef(!1)}}function $E(){return y(o.colon)||y(o.arrow)}function NE(t){De?lE():Be&&PA(),H(o.arrow),Ur(t)}function ac(){const t=h.tokens.length;yn(),ic(t,!0)}function yn(){if(z(o.modulo))return xe(),!1;if(y(o.jsxText)||y(o.jsxEmptyText))return zs(),!1;if(y(o.lessThan)&&So)return h.type=o.jsxTagStart,pf(),W(),!1;const t=h.potentialArrowAt===h.start;switch(h.type){case o.slash:case o.assign:nx();case o._super:case o._this:case o.regexp:case o.num:case o.bigint:case o.decimal:case o.string:case o._null:case o._true:case o._false:return W(),!1;case o._import:return W(),y(o.dot)&&(h.tokens[h.tokens.length-1].type=o.name,W(),xe()),!1;case o.name:{const e=h.tokens.length,n=h.start,s=h.contextualKeyword;return xe(),s===S._await?(BE(),!1):s===S._async&&y(o._function)&&!Ct()?(W(),cs(n,!1),!1):t&&s===S._async&&!Ct()&&y(o.name)?(h.scopeDepth++,$n(!1),H(o.arrow),Ur(e),!0):y(o._do)&&!Ct()?(W(),Tn(),!1):t&&!Ct()&&y(o.arrow)?(h.scopeDepth++,Wl(!1),H(o.arrow),Ur(e),!0):(h.tokens[h.tokens.length-1].identifierRole=ge.Access,!1)}case o._do:return W(),Tn(),!1;case o.parenL:return bf(t);case o.bracketL:return W(),kf(o.bracketR,!0),!1;case o.braceL:return hc(!1,!1),!1;case o._function:return CE(),!1;case o.at:wc();case o._class:return us(!1),!1;case o._new:return RE(),!1;case o.backQuote:return uc(),!1;case o.doubleColon:return W(),ac(),!1;case o.hash:{const e=w1();return Tr[e]||e===P.backslash?Lo():W(),!1}default:return Ie(),!1}}function Lo(){z(o.hash),xe()}function CE(){const t=h.start;xe(),z(o.dot)&&xe(),cs(t,!1)}function zs(){W()}function Mo(){H(o.parenL),mt(),H(o.parenR)}function bf(t){const e=h.snapshot(),n=h.tokens.length;H(o.parenL);let s=!0;for(;!y(o.parenR)&&!h.error;){if(s)s=!1;else if(H(o.comma),y(o.parenR))break;if(y(o.ellipsis)){X1(!1),cc();break}else gt(!1,!0)}return H(o.parenR),t&&TE()&&lc()?(h.restoreFromSnapshot(e),h.scopeDepth++,Vs(),lc(),Ur(n),h.error?(h.restoreFromSnapshot(e),bf(!1),!1):!0):!1}function TE(){return y(o.colon)||!Ct()}function lc(){return De?dE():Be?NA():z(o.arrow)}function cc(){(De||Be)&&wE()}function RE(){if(H(o._new),z(o.dot)){xe();return}DE(),Be&&dA(),z(o.parenL)&&kf(o.parenR)}function DE(){ac(),z(o.questionDot)}function uc(){for(Pn(),Pn();!y(o.backQuote)&&!h.error;)H(o.dollarBraceL),mt(),Pn(),Pn();W()}function hc(t,e){const n=Cr();let s=!0;for(W(),h.tokens[h.tokens.length-1].contextId=n;!z(o.braceR)&&!h.error;){if(s)s=!1;else if(H(o.comma),z(o.braceR))break;let r=!1;if(y(o.ellipsis)){const i=h.tokens.length;if(G1(),t&&(h.tokens.length===i+2&&Wl(e),z(o.braceR)))break;continue}t||(r=z(o.star)),!t&&me(S._async)?(r&&Ie(),xe(),y(o.colon)||y(o.parenL)||y(o.braceR)||y(o.eq)||y(o.comma)||(y(o.star)&&(W(),r=!0),Vr(n))):Vr(n),FE(t,e,n)}h.tokens[h.tokens.length-1].contextId=n}function OE(t){return!t&&(y(o.string)||y(o.num)||y(o.bracketL)||y(o.name)||!!(h.type&o.IS_KEYWORD))}function LE(t,e){const n=h.start;return y(o.parenL)?(t&&Ie(),dc(n,!1),!0):OE(t)?(Vr(e),dc(n,!1),!0):!1}function ME(t,e){if(z(o.colon)){t?Co(e):gt(!1);return}let n;t?h.scopeDepth===0?n=ge.ObjectShorthandTopLevelDeclaration:e?n=ge.ObjectShorthandBlockScopedDeclaration:n=ge.ObjectShorthandFunctionScopedDeclaration:n=ge.ObjectShorthand,h.tokens[h.tokens.length-1].identifierRole=n,Co(e,!0)}function FE(t,e,n){De?iE():Be&&AA(),LE(t,n)||ME(t,e)}function Vr(t){Be&&Ac(),z(o.bracketL)?(h.tokens[h.tokens.length-1].contextId=t,gt(),H(o.bracketR),h.tokens[h.tokens.length-1].contextId=t):(y(o.num)||y(o.string)||y(o.bigint)||y(o.decimal)?yn():Lo(),h.tokens[h.tokens.length-1].identifierRole=ge.ObjectKey,h.tokens[h.tokens.length-1].contextId=t)}function dc(t,e){const n=Cr();h.scopeDepth++;const s=h.tokens.length;Vs(e,n),xf(t,n);const i=h.tokens.length;h.scopes.push(new en(s,i,!0)),h.scopeDepth--}function Ur(t){qr(!0);const e=h.tokens.length;h.scopes.push(new en(t,e,!0)),h.scopeDepth--}function xf(t,e=0){De?Xk(t,e):Be?uA(e):qr(!1,e)}function qr(t,e=0){t&&!y(o.braceL)?gt():Tn(!0,e)}function kf(t,e=!1){let n=!0;for(;!z(t)&&!h.error;){if(n)n=!1;else if(H(o.comma),z(t))break;Ef(e)}}function Ef(t){t&&y(o.comma)||(y(o.ellipsis)?(G1(),cc()):y(o.question)?W():gt(!1,!0))}function xe(){W(),h.tokens[h.tokens.length-1].type=o.name}function BE(){zr()}function jE(){W(),!y(o.semi)&&!Ct()&&(z(o.star),gt())}function zE(){rt(S._module),H(o.braceL),Uo(o.braceR)}function VE(t){return(t.type===o.name||!!(t.type&o.IS_KEYWORD))&&t.contextualKeyword!==S._from}function sn(t){const e=Ne(0);H(t||o.colon),_t(),$e(e)}function Af(){H(o.modulo),rt(S._checks),z(o.parenL)&&(mt(),H(o.parenR))}function pc(){const t=Ne(0);H(o.colon),y(o.modulo)?Af():(_t(),y(o.modulo)&&Af()),$e(t)}function UE(){W(),mc(!0)}function qE(){W(),xe(),y(o.lessThan)&&qt(),H(o.parenL),Ec(),H(o.parenR),pc(),Je()}function fc(){y(o._class)?UE():y(o._function)?qE():y(o._var)?HE():ut(S._module)?z(o.dot)?XE():WE():me(S._type)?KE():me(S._opaque)?JE():me(S._interface)?YE():y(o._export)?GE():Ie()}function HE(){W(),Pf(),Je()}function WE(){for(y(o.string)?yn():xe(),H(o.braceL);!y(o.braceR)&&!h.error;)y(o._import)?(W(),jf()):Ie();H(o.braceR)}function GE(){H(o._export),z(o._default)?y(o._function)||y(o._class)?fc():(_t(),Je()):y(o._var)||y(o._function)||y(o._class)||me(S._opaque)?fc():y(o.star)||y(o.braceL)||me(S._interface)||me(S._type)||me(S._opaque)?Ff():Ie()}function XE(){rt(S._exports),ls(),Je()}function KE(){W(),yc()}function JE(){W(),bc(!0)}function YE(){W(),mc()}function mc(t=!1){if(Bo(),y(o.lessThan)&&qt(),z(o._extends))do Fo();while(!t&&z(o.comma));if(me(S._mixins)){W();do Fo();while(z(o.comma))}if(me(S._implements)){W();do Fo();while(z(o.comma))}jo(t,!1,t)}function Fo(){wf(!1),y(o.lessThan)&&as()}function gc(){mc()}function Bo(){xe()}function yc(){Bo(),y(o.lessThan)&&qt(),sn(o.eq),Je()}function bc(t){rt(S._type),Bo(),y(o.lessThan)&&qt(),y(o.colon)&&sn(o.colon),t||sn(o.eq),Je()}function QE(){Ac(),Pf(),z(o.eq)&&_t()}function qt(){const t=Ne(0);y(o.lessThan)||y(o.typeParameterStart)?W():Ie();do QE(),y(o.greaterThan)||H(o.comma);while(!y(o.greaterThan)&&!h.error);H(o.greaterThan),$e(t)}function as(){const t=Ne(0);for(H(o.lessThan);!y(o.greaterThan)&&!h.error;)_t(),y(o.greaterThan)||H(o.comma);H(o.greaterThan),$e(t)}function ZE(){if(rt(S._interface),z(o._extends))do Fo();while(z(o.comma));jo(!1,!1,!1)}function xc(){y(o.num)||y(o.string)?yn():xe()}function eA(){et()===o.colon?(xc(),sn()):_t(),H(o.bracketR),sn()}function tA(){xc(),H(o.bracketR),H(o.bracketR),y(o.lessThan)||y(o.parenL)?kc():(z(o.question),sn())}function kc(){for(y(o.lessThan)&&qt(),H(o.parenL);!y(o.parenR)&&!y(o.ellipsis)&&!h.error;)zo(),y(o.parenR)||H(o.comma);z(o.ellipsis)&&zo(),H(o.parenR),sn()}function nA(){kc()}function jo(t,e,n){let s;for(e&&y(o.braceBarL)?(H(o.braceBarL),s=o.braceBarR):(H(o.braceL),s=o.braceR);!y(s)&&!h.error;){if(n&&me(S._proto)){const r=et();r!==o.colon&&r!==o.question&&(W(),t=!1)}if(t&&me(S._static)){const r=et();r!==o.colon&&r!==o.question&&W()}if(Ac(),z(o.bracketL))z(o.bracketL)?tA():eA();else if(y(o.parenL)||y(o.lessThan))nA();else{if(me(S._get)||me(S._set)){const r=et();(r===o.name||r===o.string||r===o.num)&&W()}sA()}rA()}H(s)}function sA(){if(y(o.ellipsis)){if(H(o.ellipsis),z(o.comma)||z(o.semi),y(o.braceR))return;_t()}else xc(),y(o.lessThan)||y(o.parenL)?kc():(z(o.question),sn())}function rA(){!z(o.semi)&&!z(o.comma)&&!y(o.braceR)&&!y(o.braceBarR)&&Ie()}function wf(t){for(t||xe();z(o.dot);)xe()}function iA(){wf(!0),y(o.lessThan)&&as()}function oA(){H(o._typeof),Sf()}function aA(){for(H(o.bracketL);h.pos<re.length&&!y(o.bracketR)&&(_t(),!y(o.bracketR));)H(o.comma);H(o.bracketR)}function zo(){const t=et();t===o.colon||t===o.question?(xe(),z(o.question),sn()):_t()}function Ec(){for(;!y(o.parenR)&&!y(o.ellipsis)&&!h.error;)zo(),y(o.parenR)||H(o.comma);z(o.ellipsis)&&zo()}function Sf(){let t=!1;const e=h.noAnonFunctionType;switch(h.type){case o.name:{if(me(S._interface)){ZE();return}xe(),iA();return}case o.braceL:jo(!1,!1,!1);return;case o.braceBarL:jo(!1,!0,!1);return;case o.bracketL:aA();return;case o.lessThan:qt(),H(o.parenL),Ec(),H(o.parenR),H(o.arrow),_t();return;case o.parenL:if(W(),!y(o.parenR)&&!y(o.ellipsis))if(y(o.name)){const n=et();t=n!==o.question&&n!==o.colon}else t=!0;if(t)if(h.noAnonFunctionType=!1,_t(),h.noAnonFunctionType=e,h.noAnonFunctionType||!(y(o.comma)||y(o.parenR)&&et()===o.arrow)){H(o.parenR);return}else z(o.comma);Ec(),H(o.parenR),H(o.arrow),_t();return;case o.minus:W(),zs();return;case o.string:case o.num:case o._true:case o._false:case o._null:case o._this:case o._void:case o.star:W();return;default:if(h.type===o._typeof){oA();return}else if(h.type&o.IS_KEYWORD){W(),h.tokens[h.tokens.length-1].type=o.name;return}}Ie()}function lA(){for(Sf();!Ct()&&(y(o.bracketL)||y(o.questionDot));)z(o.questionDot),H(o.bracketL),z(o.bracketR)||(_t(),H(o.bracketR))}function If(){z(o.question)?If():lA()}function vf(){If(),!h.noAnonFunctionType&&z(o.arrow)&&_t()}function _f(){for(z(o.bitwiseAND),vf();z(o.bitwiseAND);)vf()}function cA(){for(z(o.bitwiseOR),_f();z(o.bitwiseOR);)_f()}function _t(){cA()}function ls(){sn()}function Pf(){xe(),y(o.colon)&&ls()}function Ac(){(y(o.plus)||y(o.minus))&&(W(),h.tokens[h.tokens.length-1].isType=!0)}function uA(t){y(o.colon)&&pc(),qr(!1,t)}function hA(t,e,n){if(y(o.questionDot)&&et()===o.lessThan){if(e){n.stop=!0;return}W(),as(),H(o.parenL),Cn();return}else if(!e&&y(o.lessThan)){const s=h.snapshot();if(as(),H(o.parenL),Cn(),h.error)h.restoreFromSnapshot(s);else return}oc(t,e,n)}function dA(){if(y(o.lessThan)){const t=h.snapshot();as(),h.error&&h.restoreFromSnapshot(t)}}function pA(){if(y(o.name)&&h.contextualKeyword===S._interface){const t=Ne(0);return W(),gc(),$e(t),!0}else if(me(S._enum))return $f(),!0;return!1}function fA(){return me(S._enum)?($f(),!0):!1}function mA(t){if(t===S._declare){if(y(o._class)||y(o.name)||y(o._function)||y(o._var)||y(o._export)){const e=Ne(1);fc(),$e(e)}}else if(y(o.name)){if(t===S._interface){const e=Ne(1);gc(),$e(e)}else if(t===S._type){const e=Ne(1);yc(),$e(e)}else if(t===S._opaque){const e=Ne(1);bc(!1),$e(e)}}Je()}function gA(){return me(S._type)||me(S._interface)||me(S._opaque)||me(S._enum)}function yA(){return y(o.name)&&(h.contextualKeyword===S._type||h.contextualKeyword===S._interface||h.contextualKeyword===S._opaque||h.contextualKeyword===S._enum)}function bA(){if(me(S._type)){const t=Ne(1);W(),y(o.braceL)?(vc(),Gr()):yc(),$e(t)}else if(me(S._opaque)){const t=Ne(1);W(),bc(!1),$e(t)}else if(me(S._interface)){const t=Ne(1);W(),gc(),$e(t)}else Tt(!0)}function xA(){return y(o.star)||me(S._type)&&et()===o.star}function kA(){if(ut(S._type)){const t=Ne(2);Ic(),$e(t)}else Ic()}function EA(t){if(t&&y(o.lessThan)&&as(),me(S._implements)){const e=Ne(0);W(),h.tokens[h.tokens.length-1].type=o._implements;do Bo(),y(o.lessThan)&&as();while(z(o.comma));$e(e)}}function AA(){y(o.lessThan)&&(qt(),y(o.parenL)||Ie())}function wA(){const t=Ne(0);z(o.question),y(o.colon)&&ls(),$e(t)}function SA(){if(y(o._typeof)||me(S._type)){const t=Rr();(VE(t)||t.type===o.braceL||t.type===o.star)&&W()}}function IA(){const t=h.contextualKeyword===S._type||h.type===o._typeof;t?W():xe(),me(S._as)&&!Bl(S._as)?(xe(),t&&!y(o.name)&&!(h.type&o.IS_KEYWORD)||xe()):(t&&(y(o.name)||h.type&o.IS_KEYWORD)&&xe(),ut(S._as)&&xe())}function vA(){if(y(o.lessThan)){const t=Ne(0);qt(),$e(t)}}function _A(){y(o.colon)&&ls()}function PA(){if(y(o.colon)){const t=h.noAnonFunctionType;h.noAnonFunctionType=!0,ls(),h.noAnonFunctionType=t}}function $A(t,e){if(y(o.lessThan)){const n=h.snapshot();let s=nn(t,e);if(h.error)h.restoreFromSnapshot(n),h.type=o.typeParameterStart;else return s;const r=Ne(0);if(qt(),$e(r),s=nn(t,e),s)return!0;Ie()}return nn(t,e)}function NA(){if(y(o.colon)){const t=Ne(0),e=h.snapshot(),n=h.noAnonFunctionType;h.noAnonFunctionType=!0,pc(),h.noAnonFunctionType=n,Ct()&&Ie(),y(o.arrow)||Ie(),h.error&&h.restoreFromSnapshot(e),$e(t)}return z(o.arrow)}function CA(t,e=!1){if(h.tokens[h.tokens.length-1].contextualKeyword===S._async&&y(o.lessThan)){const n=h.snapshot();if(TA()&&!h.error)return;h.restoreFromSnapshot(n)}gf(t,e)}function TA(){h.scopeDepth++;const t=h.tokens.length;return Vs(),lc()?(Ur(t),!0):!1}function $f(){rt(S._enum),h.tokens[h.tokens.length-1].type=o._enum,xe(),RA()}function RA(){ut(S._of)&&W(),H(o.braceL),DA(),H(o.braceR)}function DA(){for(;!y(o.braceR)&&!h.error&&!z(o.ellipsis);)OA(),y(o.braceR)||H(o.comma)}function OA(){xe(),z(o.eq)&&W()}function LA(){if(Uo(o.eof),h.scopes.push(new en(0,h.tokens.length,!0)),h.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${h.scopeDepth}`);return new Aw(h.tokens,h.scopes)}function Tt(t){Be&&pA()||(y(o.at)&&wc(),MA(t))}function MA(t){if(De&&eE())return;const e=h.type;switch(e){case o._break:case o._continue:BA();return;case o._debugger:jA();return;case o._do:zA();return;case o._for:VA();return;case o._function:if(et()===o.dot)break;t||Ie(),HA();return;case o._class:t||Ie(),us(!0);return;case o._if:WA();return;case o._return:GA();return;case o._switch:XA();return;case o._throw:KA();return;case o._try:YA();return;case o._let:case o._const:t||Ie();case o._var:Vo(e!==o._var);return;case o._while:QA();return;case o.braceL:Tn();return;case o.semi:ZA();return;case o._export:case o._import:{const r=et();if(r===o.parenL||r===o.dot)break;W(),e===o._import?jf():Ff();return}case o.name:if(h.contextualKeyword===S._async){const r=h.start,i=h.snapshot();if(W(),y(o._function)&&!Ct()){H(o._function),cs(r,!0);return}else h.restoreFromSnapshot(i)}else if(h.contextualKeyword===S._using&&!f1()&&et()===o.name){Vo(!0);return}else if(Nf()){rt(S._await),Vo(!0);return}}const n=h.tokens.length;mt();let s=null;if(h.tokens.length===n+1){const r=h.tokens[h.tokens.length-1];r.type===o.name&&(s=r.contextualKeyword)}if(s==null){Je();return}z(o.colon)?ew():tw(s)}function Nf(){if(!me(S._await))return!1;const t=h.snapshot();return W(),!me(S._using)||Et()||(W(),!y(o.name)||Et())?(h.restoreFromSnapshot(t),!1):(h.restoreFromSnapshot(t),!0)}function wc(){for(;y(o.at);)Cf()}function Cf(){if(W(),z(o.parenL))mt(),H(o.parenR);else{for(xe();z(o.dot);)xe();FA()}}function FA(){De?fE():Tf()}function Tf(){z(o.parenL)&&Cn()}function BA(){W(),tn()||(xe(),Je())}function jA(){W(),Je()}function zA(){W(),Tt(!1),H(o._while),Mo(),z(o.semi)}function VA(){h.scopeDepth++;const t=h.tokens.length;qA();const e=h.tokens.length;h.scopes.push(new en(t,e,!1)),h.scopeDepth--}function UA(){return!(!me(S._using)||Bl(S._of))}function qA(){W();let t=!1;if(me(S._await)&&(t=!0,W()),H(o.parenL),y(o.semi)){t&&Ie(),Sc();return}const e=Nf();if(e||y(o._var)||y(o._let)||y(o._const)||UA()){if(e&&rt(S._await),W(),Df(!0,h.type!==o._var),y(o._in)||me(S._of)){Rf(t);return}Sc();return}if(mt(!0),y(o._in)||me(S._of)){Rf(t);return}t&&Ie(),Sc()}function HA(){const t=h.start;W(),cs(t,!0)}function WA(){W(),Mo(),Tt(!1),z(o._else)&&Tt(!1)}function GA(){W(),tn()||(mt(),Je())}function XA(){W(),Mo(),h.scopeDepth++;const t=h.tokens.length;for(H(o.braceL);!y(o.braceR)&&!h.error;)if(y(o._case)||y(o._default)){const n=y(o._case);W(),n&&mt(),H(o.colon)}else Tt(!0);W();const e=h.tokens.length;h.scopes.push(new en(t,e,!1)),h.scopeDepth--}function KA(){W(),mt(),Je()}function JA(){No(!0),De&&Ms()}function YA(){if(W(),Tn(),y(o._catch)){W();let t=null;if(y(o.parenL)&&(h.scopeDepth++,t=h.tokens.length,H(o.parenL),JA(),H(o.parenR)),Tn(),t!=null){const e=h.tokens.length;h.scopes.push(new en(t,e,!1)),h.scopeDepth--}}z(o._finally)&&Tn()}function Vo(t){W(),Df(!1,t),Je()}function QA(){W(),Mo(),Tt(!1)}function ZA(){W()}function ew(){Tt(!0)}function tw(t){De?nE(t):Be?mA(t):Je()}function Tn(t=!1,e=0){const n=h.tokens.length;h.scopeDepth++,H(o.braceL),e&&(h.tokens[h.tokens.length-1].contextId=e),Uo(o.braceR),e&&(h.tokens[h.tokens.length-1].contextId=e);const s=h.tokens.length;h.scopes.push(new en(n,s,t)),h.scopeDepth--}function Uo(t){for(;!z(t)&&!h.error;)Tt(!0)}function Sc(){H(o.semi),y(o.semi)||mt(),H(o.semi),y(o.parenR)||mt(),H(o.parenR),Tt(!1)}function Rf(t){t?ut(S._of):W(),mt(),H(o.parenR),Tt(!1)}function Df(t,e){for(;;){if(nw(e),z(o.eq)){const n=h.tokens.length-1;gt(t),h.tokens[n].rhsEndIndex=h.tokens.length}if(!z(o.comma))break}}function nw(t){No(t),De?aE():Be&&_A()}function cs(t,e,n=!1){y(o.star)&&W(),e&&!n&&!y(o.name)&&!y(o._yield)&&Ie();let s=null;y(o.name)&&(e||(s=h.tokens.length,h.scopeDepth++),$n(!1));const r=h.tokens.length;h.scopeDepth++,Vs(),xf(t);const i=h.tokens.length;h.scopes.push(new en(r,i,!0)),h.scopeDepth--,s!==null&&(h.scopes.push(new en(s,i,!0)),h.scopeDepth--)}function Vs(t=!1,e=0){De?oE():Be&&vA(),H(o.parenL),e&&(h.tokens[h.tokens.length-1].contextId=e),Gl(o.parenR,!1,!1,t,e),e&&(h.tokens[h.tokens.length-1].contextId=e)}function us(t,e=!1){const n=Cr();W(),h.tokens[h.tokens.length-1].contextId=n,h.tokens[h.tokens.length-1].isExpression=!t;let s=null;t||(s=h.tokens.length,h.scopeDepth++),ow(t,e),aw();const r=h.tokens.length;if(sw(n),!h.error&&(h.tokens[r].contextId=n,h.tokens[h.tokens.length-1].contextId=n,s!==null)){const i=h.tokens.length;h.scopes.push(new en(s,i,!1)),h.scopeDepth--}}function Of(){return y(o.eq)||y(o.semi)||y(o.braceR)||y(o.bang)||y(o.colon)}function Lf(){return y(o.parenL)||y(o.lessThan)}function sw(t){for(H(o.braceL);!z(o.braceR)&&!h.error;){if(z(o.semi))continue;if(y(o.at)){Cf();continue}const e=h.start;rw(e,t)}}function rw(t,e){De&&Kl([S._declare,S._public,S._protected,S._private,S._override]);let n=!1;if(y(o.name)&&h.contextualKeyword===S._static){if(xe(),Lf()){Hr(t,!1);return}else if(Of()){qo();return}if(h.tokens[h.tokens.length-1].type=o._static,n=!0,y(o.braceL)){h.tokens[h.tokens.length-1].contextId=e,Tn();return}}iw(t,n,e)}function iw(t,e,n){if(De&&tE(e))return;if(z(o.star)){Wr(n),Hr(t,!1);return}Wr(n);let s=!1;const r=h.tokens[h.tokens.length-1];r.contextualKeyword===S._constructor&&(s=!0),Mf(),Lf()?Hr(t,s):Of()?qo():r.contextualKeyword===S._async&&!tn()?(h.tokens[h.tokens.length-1].type=o._async,y(o.star)&&W(),Wr(n),Mf(),Hr(t,!1)):(r.contextualKeyword===S._get||r.contextualKeyword===S._set)&&!(tn()&&y(o.star))?(r.contextualKeyword===S._get?h.tokens[h.tokens.length-1].type=o._get:h.tokens[h.tokens.length-1].type=o._set,Wr(n),Hr(t,!1)):r.contextualKeyword===S._accessor&&!tn()?(Wr(n),qo()):tn()?qo():Ie()}function Hr(t,e){De?os():Be&&y(o.lessThan)&&qt(),dc(t,e)}function Wr(t){Vr(t)}function Mf(){if(De){const t=Ne(0);z(o.question),$e(t)}}function qo(){if(De?(E1(o.bang),Ms()):Be&&y(o.colon)&&ls(),y(o.eq)){const t=h.tokens.length;W(),gt(),h.tokens[t].rhsEndIndex=h.tokens.length}Je()}function ow(t,e=!1){De&&(!t||e)&&me(S._implements)||(y(o.name)&&$n(!0),De?os():Be&&y(o.lessThan)&&qt())}function aw(){let t=!1;z(o._extends)?(mf(),t=!0):t=!1,De?rE(t):Be&&EA(t)}function Ff(){const t=h.tokens.length-1;De&&Jk()||(hw()?dw():uw()?(xe(),y(o.comma)&&et()===o.star?(H(o.comma),H(o.star),rt(S._as),xe()):Bf(),Gr()):z(o._default)?lw():fw()?cw():(vc(),Gr()),h.tokens[t].rhsEndIndex=h.tokens.length)}function lw(){if(De&&Zk()||Be&&fA())return;const t=h.start;z(o._function)?cs(t,!0,!0):me(S._async)&&et()===o._function?(ut(S._async),z(o._function),cs(t,!0,!0)):y(o._class)?us(!0,!0):y(o.at)?(wc(),us(!0,!0)):(gt(),Je())}function cw(){De?sE():Be?bA():Tt(!0)}function uw(){if(De&&cf())return!1;if(Be&&yA())return!1;if(y(o.name))return h.contextualKeyword!==S._async;if(!y(o._default))return!1;const t=jl(),e=Rr(),n=e.type===o.name&&e.contextualKeyword===S._from;if(e.type===o.comma)return!0;if(n){const s=re.charCodeAt(A1(t+4));return s===P.quotationMark||s===P.apostrophe}return!1}function Bf(){z(o.comma)&&vc()}function Gr(){ut(S._from)&&(yn(),Vf()),Je()}function hw(){return Be?xA():y(o.star)}function dw(){Be?kA():Ic()}function Ic(){H(o.star),me(S._as)?pw():Gr()}function pw(){W(),h.tokens[h.tokens.length-1].type=o._as,xe(),Bf(),Gr()}function fw(){return De&&cf()||Be&&gA()||h.type===o._var||h.type===o._const||h.type===o._let||h.type===o._function||h.type===o._class||me(S._async)||y(o.at)}function vc(){let t=!0;for(H(o.braceL);!z(o.braceR)&&!h.error;){if(t)t=!1;else if(H(o.comma),z(o.braceR))break;mw()}}function mw(){if(De){Qk();return}xe(),h.tokens[h.tokens.length-1].identifierRole=ge.ExportAccess,ut(S._as)&&xe()}function gw(){const t=h.snapshot();return rt(S._module),ut(S._from)?me(S._from)?(h.restoreFromSnapshot(t),!0):(h.restoreFromSnapshot(t),!1):y(o.comma)?(h.restoreFromSnapshot(t),!1):(h.restoreFromSnapshot(t),!0)}function yw(){me(S._module)&&gw()&&W()}function jf(){if(De&&y(o.name)&&et()===o.eq){nc();return}if(De&&me(S._type)){const t=Rr();if(t.type===o.name&&t.contextualKeyword!==S._from){if(rt(S._type),et()===o.eq){nc();return}}else(t.type===o.star||t.type===o.braceL)&&rt(S._type)}y(o.string)||(yw(),xw(),rt(S._from)),yn(),Vf(),Je()}function bw(){return y(o.name)}function zf(){$o()}function xw(){Be&&SA();let t=!0;if(!(bw()&&(zf(),!z(o.comma)))){if(y(o.star)){W(),rt(S._as),zf();return}for(H(o.braceL);!z(o.braceR)&&!h.error;){if(t)t=!1;else if(z(o.colon)&&Ie("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),H(o.comma),z(o.braceR))break;kw()}}}function kw(){if(De){Yk();return}if(Be){IA();return}$o(),me(S._as)&&(h.tokens[h.tokens.length-1].identifierRole=ge.ImportAccess,W(),$o())}function Vf(){(y(o._with)||me(S._assert)&&!Et())&&(W(),hc(!1,!1))}function Ew(){return h.pos===0&&re.charCodeAt(0)===P.numberSign&&re.charCodeAt(1)===P.exclamationMark&&I1(2),S1(),LA()}class Aw{constructor(e,n){this.tokens=e,this.scopes=n}}function ww(t,e,n,s){if(s&&n)throw new Error("Cannot combine flow and typescript plugins.");Kb(t,e,n,s);const r=Ew();if(h.error)throw Wb(h.error);return r}function Sw(t){let e=t.currentIndex(),n=0;const s=t.currentToken();do{const r=t.tokens[e];if(r.isOptionalChainStart&&n++,r.isOptionalChainEnd&&n--,n+=r.numNullishCoalesceStarts,n-=r.numNullishCoalesceEnds,r.contextualKeyword===S._await&&r.identifierRole==null&&r.scopeDepth===s.scopeDepth)return!0;e+=1}while(n>0&&e<t.tokens.length);return!1}class Xr{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(e,n,s,r,i){this.code=e,this.tokens=n,this.isFlowEnabled=s,this.disableESTransforms=r,this.helperManager=i,Xr.prototype.__init.call(this),Xr.prototype.__init2.call(this),Xr.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(e){const n=this.resultCode.slice(e.resultCode.length);return this.resultCode=e.resultCode,n}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(e,n){return this.matches1AtIndex(e,o.name)&&this.tokens[e].contextualKeyword===n}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierNameAtRelativeIndex(e){return this.identifierNameForToken(this.tokenAtRelativeIndex(e))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,n){return this.tokens[e].type===n}matches2AtIndex(e,n,s){return this.tokens[e].type===n&&this.tokens[e+1].type===s}matches3AtIndex(e,n,s,r){return this.tokens[e].type===n&&this.tokens[e+1].type===s&&this.tokens[e+2].type===r}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,n){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n}matches3(e,n,s){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s}matches4(e,n,s,r){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===r}matches5(e,n,s,r,i){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===s&&this.tokens[this.tokenIndex+3].type===r&&this.tokens[this.tokenIndex+4].type===i}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,n){return this.matches1(e)&&this.currentToken().contextId===n}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,"")),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let e=0;for(;!this.isAtEnd();){if(this.matches1(o.braceL))e++;else if(this.matches1(o.braceR)){if(e===0)return;e--}this.removeToken()}}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw new Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=Sw(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let n=0;n<e.numNullishCoalesceStarts;n++)e.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===o._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let n=0;n<e.numNullishCoalesceEnds;n++)this.resultCode+="))"}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function Iw(t,e,n,s){const r=e.snapshot(),i=vw(e);let a=[];const l=[],c=[];let u=null;const d=[],m=[],f=e.currentToken().contextId;if(f==null)throw new Error("Expected non-null class context ID on class open-brace.");for(e.nextToken();!e.matchesContextIdAndLabel(o.braceR,f);)if(e.matchesContextual(S._constructor)&&!e.currentToken().isType)({constructorInitializerStatements:a,constructorInsertPos:u}=Uf(e));else if(e.matches1(o.semi))s||m.push({start:e.currentIndex(),end:e.currentIndex()+1}),e.nextToken();else if(e.currentToken().isType)e.nextToken();else{const g=e.currentIndex();let w=!1,k=!1,I=!1;for(;Ho(e.currentToken());)e.matches1(o._static)&&(w=!0),e.matches1(o.hash)&&(k=!0),(e.matches1(o._declare)||e.matches1(o._abstract))&&(I=!0),e.nextToken();if(w&&e.matches1(o.braceL)){_c(e,f);continue}if(k){_c(e,f);continue}if(e.matchesContextual(S._constructor)&&!e.currentToken().isType){({constructorInitializerStatements:a,constructorInsertPos:u}=Uf(e));continue}const E=e.currentIndex();if(_w(e),e.matches1(o.lessThan)||e.matches1(o.parenL)){_c(e,f);continue}for(;e.currentToken().isType;)e.nextToken();if(e.matches1(o.eq)){const b=e.currentIndex(),A=e.currentToken().rhsEndIndex;if(A==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(e.nextToken();e.currentIndex()<A;)t.processToken();let v;w?(v=n.claimFreeName("__initStatic"),c.push(v)):(v=n.claimFreeName("__init"),l.push(v)),d.push({initializerName:v,equalsIndex:b,start:E,end:e.currentIndex()})}else(!s||I)&&m.push({start:g,end:e.currentIndex()})}return e.restoreToSnapshot(r),s?{headerInfo:i,constructorInitializerStatements:a,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:u,fields:[],rangesToRemove:m}:{headerInfo:i,constructorInitializerStatements:a,instanceInitializerNames:l,staticInitializerNames:c,constructorInsertPos:u,fields:d,rangesToRemove:m}}function _c(t,e){for(t.nextToken();t.currentToken().contextId!==e;)t.nextToken();for(;Ho(t.tokenAtRelativeIndex(-1));)t.previousToken()}function vw(t){const e=t.currentToken(),n=e.contextId;if(n==null)throw new Error("Expected context ID on class token.");const s=e.isExpression;if(s==null)throw new Error("Expected isExpression on class token.");let r=null,i=!1;for(t.nextToken(),t.matches1(o.name)&&(r=t.identifierName());!t.matchesContextIdAndLabel(o.braceL,n);)t.matches1(o._extends)&&!t.currentToken().isType&&(i=!0),t.nextToken();return{isExpression:s,className:r,hasSuperclass:i}}function Uf(t){const e=[];t.nextToken();const n=t.currentToken().contextId;if(n==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!t.matchesContextIdAndLabel(o.parenR,n);)if(t.currentToken().contextId===n){if(t.nextToken(),Ho(t.currentToken())){for(t.nextToken();Ho(t.currentToken());)t.nextToken();const i=t.currentToken();if(i.type!==o.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const a=t.identifierNameForToken(i);e.push(`this.${a} = ${a}`)}}else t.nextToken();for(t.nextToken();t.currentToken().isType;)t.nextToken();let s=t.currentIndex(),r=!1;for(;!t.matchesContextIdAndLabel(o.braceR,n);){if(!r&&t.matches2(o._super,o.parenL)){t.nextToken();const i=t.currentToken().contextId;if(i==null)throw new Error("Expected a context ID on the super call");for(;!t.matchesContextIdAndLabel(o.parenR,i);)t.nextToken();s=t.currentIndex(),r=!0}t.nextToken()}return t.nextToken(),{constructorInitializerStatements:e,constructorInsertPos:s}}function Ho(t){return[o._async,o._get,o._set,o.plus,o.minus,o._readonly,o._static,o._public,o._private,o._protected,o._override,o._abstract,o.star,o._declare,o.hash].includes(t.type)}function _w(t){if(t.matches1(o.bracketL)){const n=t.currentToken().contextId;if(n==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!t.matchesContextIdAndLabel(o.bracketR,n);)t.nextToken();t.nextToken()}else t.nextToken()}function qf(t){if(t.removeInitialToken(),t.removeToken(),t.removeToken(),t.removeToken(),t.matches1(o.parenL))t.removeToken(),t.removeToken(),t.removeToken();else for(;t.matches1(o.dot);)t.removeToken(),t.removeToken()}const Hf={typeDeclarations:new Set,valueDeclarations:new Set};function Wf(t){const e=new Set,n=new Set;for(let s=0;s<t.tokens.length;s++){const r=t.tokens[s];r.type===o.name&&k1(r)&&(r.isType?e.add(t.identifierNameForToken(r)):n.add(t.identifierNameForToken(r)))}return{typeDeclarations:e,valueDeclarations:n}}function Gf(t){let e=t.currentIndex();for(;!t.matches1AtIndex(e,o.braceR);)e++;return t.matchesContextualAtIndex(e+1,S._from)&&t.matches1AtIndex(e+2,o.string)}function hs(t){(t.matches2(o._with,o.braceL)||t.matches2(o.name,o.braceL)&&t.matchesContextual(S._assert))&&(t.removeToken(),t.removeToken(),t.removeBalancedCode(),t.removeToken())}function Xf(t,e,n,s){if(!t||e)return!1;const r=n.currentToken();if(r.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const i=r.rhsEndIndex-n.currentIndex();if(i!==3&&!(i===4&&n.matches1AtIndex(r.rhsEndIndex-1,o.semi)))return!1;const a=n.tokenAtRelativeIndex(2);if(a.type!==o.name)return!1;const l=n.identifierNameForToken(a);return s.typeDeclarations.has(l)&&!s.valueDeclarations.has(l)}class Kr extends Vt{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(e,n,s,r,i,a,l,c,u,d,m,f){super(),this.rootTransformer=e,this.tokens=n,this.importProcessor=s,this.nameManager=r,this.helperManager=i,this.reactHotLoaderTransformer=a,this.enableLegacyBabel5ModuleInterop=l,this.enableLegacyTypeScriptModuleInterop=c,this.isTypeScriptTransformEnabled=u,this.isFlowTransformEnabled=d,this.preserveDynamicImport=m,this.keepUnusedImports=f,Kr.prototype.__init.call(this),Kr.prototype.__init2.call(this),Kr.prototype.__init3.call(this),this.declarationInfo=u?Wf(n):Hf}getPrefixCode(){let e="";return this.hadExport&&(e+='Object.defineProperty(exports, "__esModule", {value: true});'),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
|
|
177
177
|
module.exports = exports.default;
|
|
178
|
-
`:""}process(){return this.tokens.matches3(o._import,o.name,o.eq)?this.processImportEquals():this.tokens.matches1(o._import)?(this.processImport(),!0):this.tokens.matches2(o._export,o.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(o._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(o.name,o.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(o.name)||this.tokens.matches1(o.jsxName)?this.processIdentifier():this.tokens.matches1(o.eq)?this.processAssignment():this.tokens.matches1(o.assign)?this.processComplexAssignment():this.tokens.matches1(o.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?qf(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(o._import,o.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const n=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${n}require`);const s=this.tokens.currentToken().contextId;if(s==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(o.parenR,s);)this.rootTransformer.processToken();this.tokens.replaceToken(n?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),this.tokens.appendCode(this.importProcessor.claimImportCode(n))}hs(this.tokens),this.tokens.matches1(o.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(S._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(o.name)||this.tokens.matches1(o.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(o.string))return!1;let e=!1,n=!1;for(;!this.tokens.matches1(o.string);)(!e&&this.tokens.matches1(o.braceL)||this.tokens.matches1(o.comma))&&(this.tokens.removeToken(),this.tokens.matches1(o.braceR)||(n=!0),(this.tokens.matches2(o.name,o.comma)||this.tokens.matches2(o.name,o.braceR)||this.tokens.matches4(o.name,o.name,o.name,o.comma)||this.tokens.matches4(o.name,o.name,o.name,o.braceR))&&(e=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?n&&!e:!1}removeRemainingImport(){for(;!this.tokens.matches1(o.string);)this.tokens.removeToken()}processIdentifier(){const e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===ge.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==ge.Access)return!1;const n=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!n)return!1;let s=this.tokens.currentIndex()+1;for(;s<this.tokens.tokens.length&&this.tokens.tokens[s].type===o.parenR;)s++;return this.tokens.tokens[s].type===o.parenL?this.tokens.tokenAtRelativeIndex(1).type===o.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==o._new?(this.tokens.replaceToken(`${n}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR)):this.tokens.replaceToken(`(0, ${n})`):this.tokens.replaceToken(n),!0}processObjectShorthand(){const e=this.tokens.identifierName(),n=this.importProcessor.getIdentifierReplacement(e);return n?(this.tokens.replaceToken(`${e}: ${n}`),!0):!1}processExport(){if(this.tokens.matches2(o._export,o._enum)||this.tokens.matches3(o._export,o._const,o._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(o._export,o._default))return this.tokens.matches3(o._export,o._default,o._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(o._export,o.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(o._export,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(o.braceL)){for(;!this.tokens.matches1(o.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(o._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(S._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),hs(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(o._export,o._var)||this.tokens.matches2(o._export,o._let)||this.tokens.matches2(o._export,o._const))return this.processExportVar(),!0;if(this.tokens.matches2(o._export,o._function)||this.tokens.matches3(o._export,o.name,o._function))return this.processExportFunction(),!0;if(this.tokens.matches2(o._export,o._class)||this.tokens.matches3(o._export,o._abstract,o._class)||this.tokens.matches2(o._export,o.at))return this.processExportClass(),!0;if(this.tokens.matches2(o._export,o.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e-1];if(n.isType||n.type!==o.name||n.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,o.dot)||e>=2&&[o._var,o._let,o._const].includes(this.tokens.tokens[e-2].type))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return s?(this.tokens.copyToken(),this.tokens.appendCode(` ${s} =`),!0):!1}processComplexAssignment(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e-1];if(n.type!==o.name||n.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,o.dot))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return s?(this.tokens.appendCode(` = ${s}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e+1];if(n.type!==o.name||n.shadowsGlobal||e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,o.dot)||this.tokens.matches1AtIndex(e+2,o.bracketL)||this.tokens.matches1AtIndex(e+2,o.parenL)))return!1;const s=this.tokens.identifierNameForToken(n),r=this.importProcessor.resolveExportBinding(s);return r?(this.tokens.appendCode(`${r} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e],s=this.tokens.tokens[e+1];if(n.type!==o.name||n.shadowsGlobal||e>=1&&this.tokens.matches1AtIndex(e-1,o.dot))return!1;const r=this.tokens.identifierNameForToken(n),i=this.importProcessor.resolveExportBinding(r);if(!i)return!1;const a=this.tokens.rawCodeForToken(s),l=this.importProcessor.getIdentifierReplacement(r)||r;if(a==="++")this.tokens.replaceToken(`(${l} = ${i} = ${l} + 1, ${l} - 1)`);else if(a==="--")this.tokens.replaceToken(`(${l} = ${i} = ${l} - 1, ${l} + 1)`);else throw new Error(`Unexpected operator: ${a}`);return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(o._export,o._default,o._function,o.name)||this.tokens.matches5(o._export,o._default,o.name,o._function,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const n=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${n};`)}else if(this.tokens.matches4(o._export,o._default,o._class,o.name)||this.tokens.matches5(o._export,o._default,o._abstract,o._class,o.name)||this.tokens.matches3(o._export,o._default,o.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(o._abstract)&&this.tokens.removeToken();const n=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${n};`)}else if(Xf(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${n}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(o.at);)if(this.tokens.copyToken(),this.tokens.matches1(o.parenL))this.tokens.copyExpectedToken(o.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR);else{for(this.tokens.copyExpectedToken(o.name);this.tokens.matches1(o.dot);)this.tokens.copyExpectedToken(o.dot),this.tokens.copyExpectedToken(o.name);this.tokens.matches1(o.parenL)&&(this.tokens.copyExpectedToken(o.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,o.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,o.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const e=this.tokens.identifierName();for(;!this.tokens.matches1(o.eq);)this.rootTransformer.processToken();const n=this.tokens.currentToken().rhsEndIndex;if(n==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<n;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.matches1(o.braceL);e&&this.tokens.appendCode("(");let n=0;for(;;)if(this.tokens.matches1(o.braceL)||this.tokens.matches1(o.dollarBraceL)||this.tokens.matches1(o.bracketL))n++,this.tokens.copyToken();else if(this.tokens.matches1(o.braceR)||this.tokens.matches1(o.bracketR))n--,this.tokens.copyToken();else{if(n===0&&!this.tokens.matches1(o.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(o.eq)){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken()}else{const s=this.tokens.currentToken();if(x1(s)){const r=this.tokens.identifierName();let i=this.importProcessor.getIdentifierReplacement(r);if(i===null)throw new Error(`Expected a replacement for ${r} in \`export var\` syntax.`);ex(s)&&(i=`${r}: ${i}`),this.tokens.replaceToken(i)}else this.rootTransformer.processToken()}}if(e){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(o._function))this.tokens.copyToken();else if(this.tokens.matches2(o.name,o._function)){if(!this.tokens.matchesContextual(S._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(o.star)&&this.tokens.copyToken(),!this.tokens.matches1(o.name))throw new Error("Expected identifier for exported function name.");const e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(o.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(o.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(o._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=Gf(this.tokens),n=[];for(;;){if(this.tokens.matches1(o.braceR)){this.tokens.removeToken();break}const s=Dr(this.tokens);for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();if(!(s.isType||!e&&this.shouldElideExportedIdentifier(s.leftName))){const i=s.rightName;i==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;const a=s.leftName,l=this.importProcessor.getIdentifierReplacement(a);n.push(`exports.${i} = ${l||a};`)}if(this.tokens.matches1(o.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(o.comma,o.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(o.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(S._from)){this.tokens.removeToken();const s=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(s)),hs(this.tokens)}else this.tokens.appendCode(n.join(" "));this.tokens.matches1(o.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(o.string);)this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),hs(this.tokens),this.tokens.matches1(o.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}}class _w extends Vt{constructor(e,n,s,r,i,a,l,c){super(),this.tokens=e,this.nameManager=n,this.helperManager=s,this.reactHotLoaderTransformer=r,this.isTypeScriptTransformEnabled=i,this.isFlowTransformEnabled=a,this.keepUnusedImports=l,this.nonTypeIdentifiers=i&&!l?L1(e,c):new Set,this.declarationInfo=i&&!l?Wf(e):Hf,this.injectCreateRequireForImportRequire=!!c.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(o._import,o.name,o.eq))return this.processImportEquals();if(this.tokens.matches4(o._import,o.name,o.name,o.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(o._export,o.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(o._export,o._import,o.name,o.name,o.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(o._import))return this.processImport();if(this.tokens.matches2(o._export,o._default))return this.processExportDefault();if(this.tokens.matches2(o._export,o.braceL))return this.processNamedExports();if(this.tokens.matches2(o._export,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(o.braceL)){for(;!this.tokens.matches1(o.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(o._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(S._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),hs(this.tokens)),!0}return!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?qf(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(o._import,o.parenL))return!1;const e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(o.string);)this.tokens.removeToken();this.tokens.removeToken(),hs(this.tokens),this.tokens.matches1(o.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(o._import),this.tokens.matchesContextual(S._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._from))return!0;if(this.tokens.matches1(o.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(S._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._from)&&this.tokens.copyToken();let e=!1,n=!1,s=!1;if(this.tokens.matches1(o.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(o.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(o.comma)&&(s=!0,this.tokens.removeToken()))),this.tokens.matches1(o.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(s&&this.tokens.appendCode(","),e=!0,this.tokens.copyExpectedToken(o.star),this.tokens.copyExpectedToken(o.name),this.tokens.copyExpectedToken(o.name));else if(this.tokens.matches1(o.braceL)){for(s&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(o.braceR);){n=!0;const r=Dr(this.tokens);if(r.isType||this.shouldAutomaticallyElideImportedName(r.rightName)){for(;this.tokens.currentIndex()<r.endIndex;)this.tokens.removeToken();this.tokens.matches1(o.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<r.endIndex;)this.tokens.copyToken();this.tokens.matches1(o.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(o.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?n&&!e:!1}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(Xf(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(o._export,o._default,o._function,o.name)||this.tokens.matches5(o._export,o._default,o.name,o._function,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._async)||this.tokens.matches4(o._export,o._default,o._class,o.name)||this.tokens.matches5(o._export,o._default,o._abstract,o._class,o.name))&&this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${n}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(o._export),this.tokens.copyExpectedToken(o.braceL);const e=Gf(this.tokens);let n=!1;for(;!this.tokens.matches1(o.braceR);){const s=Dr(this.tokens);if(s.isType||!e&&this.shouldElideExportedName(s.leftName)){for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();this.tokens.matches1(o.comma)&&this.tokens.removeToken()}else{for(n=!0;this.tokens.currentIndex()<s.endIndex;)this.tokens.copyToken();this.tokens.matches1(o.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(o.braceR),!this.keepUnusedImports&&e&&!n&&(this.tokens.removeToken(),this.tokens.removeToken(),hs(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}}class Pw extends Vt{constructor(e,n,s){super(),this.rootTransformer=e,this.tokens=n,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(o._enum)?(this.processEnum(),!0):this.tokens.matches2(o._export,o._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(o._export,o._default,o._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${e} = ${e};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${e};`):this.tokens.appendCode(` export default ${e};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(o.name);let e=!1;this.tokens.matchesContextual(S._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(S._symbol),this.tokens.removeToken());const n=this.tokens.matches3(o.braceL,o.name,o.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const s=!e&&!n;for(this.tokens.replaceTokenTrimmingLeftWhitespace(s?".Mirrored([":"({");!this.tokens.matches1(o.braceR);){if(this.tokens.matches1(o.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,n),this.tokens.matches1(o.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(s?"]);":"});")}processEnumElement(e,n){if(e){const s=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${s}")`)}else n?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function $w(t){let e,n=t[0],s=1;for(;s<t.length;){const r=t[s],i=t[s+1];if(s+=2,(r==="optionalAccess"||r==="optionalCall")&&n==null)return;r==="access"||r==="optionalAccess"?(e=n,n=i(n)):(r==="call"||r==="optionalCall")&&(n=i((...a)=>n.call(e,...a)),e=void 0)}return n}const Wo="jest",Nw=["mock","unmock","enableAutomock","disableAutomock"];class Pc extends Vt{__init(){this.hoistedFunctionNames=[]}constructor(e,n,s,r){super(),this.rootTransformer=e,this.tokens=n,this.nameManager=s,this.importProcessor=r,Pc.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(o.name,o.dot,o.name,o.parenL)&&this.tokens.identifierName()===Wo?$w([this,"access",e=>e.importProcessor,"optionalAccess",e=>e.getGlobalNames,"call",e=>e(),"optionalAccess",e=>e.has,"call",e=>e(Wo)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(e=>`${e}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(o.dot,o.name,o.parenL);){const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Nw.includes(n)){const r=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(r),this.tokens.replaceToken(`function ${r}(){${Wo}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${Wo}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR),e=!0}return!0}}class Cw extends Vt{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(o.num)){const e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class Tw extends Vt{constructor(e,n){super(),this.tokens=e,this.nameManager=n}process(){return this.tokens.matches2(o._catch,o.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class Rw extends Vt{constructor(e,n){super(),this.tokens=e,this.nameManager=n}process(){if(this.tokens.matches1(o.nullishCoalescing)){const s=this.tokens.currentToken();return this.tokens.tokens[s.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(o._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const n=this.tokens.currentToken().subscriptStartIndex;if(n!=null&&this.tokens.tokens[n].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==o._super){const s=this.nameManager.claimFreeName("_");let r;if(n>0&&this.tokens.matches1AtIndex(n-1,o._delete)&&this.isLastSubscriptInChain()?r=`${s} => delete ${s}`:r=`${s} => ${s}`,this.tokens.tokens[n].isAsyncOperation&&(r=`async ${r}`),this.tokens.matches2(o.questionDot,o.parenL)||this.tokens.matches2(o.questionDot,o.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${r}`);else if(this.tokens.matches2(o.questionDot,o.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${r}`);else if(this.tokens.matches1(o.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${r}.`);else if(this.tokens.matches1(o.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${r}.`);else if(this.tokens.matches1(o.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${r}[`);else if(this.tokens.matches1(o.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${r}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let e=0;for(let n=this.tokens.currentIndex()+1;;n++){if(n>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?e++:this.tokens.tokens[n].isOptionalChainEnd&&e--,e<0)return!0;if(e===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let e=0,n=this.tokens.currentIndex()-1;for(;;){if(n<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?e--:this.tokens.tokens[n].isOptionalChainEnd&&e++,e<0)return!1;if(e===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return this.tokens.tokens[n-1].type===o._super;n--}}}class Dw extends Vt{constructor(e,n,s,r){super(),this.rootTransformer=e,this.tokens=n,this.importProcessor=s,this.options=r}process(){const e=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return n?this.tokens.replaceToken(`(0, ${n})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(o.name,o.dot,o.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return this.tokens.replaceToken(n),this.tokens.copyToken(),this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){const n=this.findDisplayName(e);n&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(o.parenL),this.tokens.copyExpectedToken(o.braceL),this.tokens.appendCode(`displayName: '${n}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.braceR),this.tokens.copyExpectedToken(o.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,o.name,o.eq)?this.tokens.identifierNameAtIndex(e-2):e>=2&&this.tokens.tokens[e-2].identifierRole===ge.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,o._export,o._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const n=(this.options.filePath||"unknown").split("/"),s=n[n.length-1],r=s.lastIndexOf("."),i=r===-1?s:s.slice(0,r);return i==="index"&&n[n.length-2]?n[n.length-2]:i}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(o.parenL,o.braceL))return!1;const n=e+1,s=this.tokens.tokens[n].contextId;if(s==null)throw new Error("Expected non-null context ID on object open-brace.");for(;e<this.tokens.tokens.length;e++){const r=this.tokens.tokens[e];if(r.type===o.braceR&&r.contextId===s){e++;break}if(this.tokens.identifierNameAtIndex(e)==="displayName"&&this.tokens.tokens[e].identifierRole===ge.ObjectKey&&r.contextId===s)return!1}if(e===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(e,o.parenR)||this.tokens.matches2AtIndex(e,o.comma,o.parenR)}}class $c extends Vt{__init(){this.extractedDefaultExportName=null}constructor(e,n){super(),this.tokens=e,this.filePath=n,$c.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return`
|
|
178
|
+
`:""}process(){return this.tokens.matches3(o._import,o.name,o.eq)?this.processImportEquals():this.tokens.matches1(o._import)?(this.processImport(),!0):this.tokens.matches2(o._export,o.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(o._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(o.name,o.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(o.name)||this.tokens.matches1(o.jsxName)?this.processIdentifier():this.tokens.matches1(o.eq)?this.processAssignment():this.tokens.matches1(o.assign)?this.processComplexAssignment():this.tokens.matches1(o.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?qf(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(o._import,o.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const n=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${n}require`);const s=this.tokens.currentToken().contextId;if(s==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(o.parenR,s);)this.rootTransformer.processToken();this.tokens.replaceToken(n?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),this.tokens.appendCode(this.importProcessor.claimImportCode(n))}hs(this.tokens),this.tokens.matches1(o.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(S._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(o.name)||this.tokens.matches1(o.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(o.string))return!1;let e=!1,n=!1;for(;!this.tokens.matches1(o.string);)(!e&&this.tokens.matches1(o.braceL)||this.tokens.matches1(o.comma))&&(this.tokens.removeToken(),this.tokens.matches1(o.braceR)||(n=!0),(this.tokens.matches2(o.name,o.comma)||this.tokens.matches2(o.name,o.braceR)||this.tokens.matches4(o.name,o.name,o.name,o.comma)||this.tokens.matches4(o.name,o.name,o.name,o.braceR))&&(e=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?n&&!e:!1}removeRemainingImport(){for(;!this.tokens.matches1(o.string);)this.tokens.removeToken()}processIdentifier(){const e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===ge.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==ge.Access)return!1;const n=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!n)return!1;let s=this.tokens.currentIndex()+1;for(;s<this.tokens.tokens.length&&this.tokens.tokens[s].type===o.parenR;)s++;return this.tokens.tokens[s].type===o.parenL?this.tokens.tokenAtRelativeIndex(1).type===o.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==o._new?(this.tokens.replaceToken(`${n}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR)):this.tokens.replaceToken(`(0, ${n})`):this.tokens.replaceToken(n),!0}processObjectShorthand(){const e=this.tokens.identifierName(),n=this.importProcessor.getIdentifierReplacement(e);return n?(this.tokens.replaceToken(`${e}: ${n}`),!0):!1}processExport(){if(this.tokens.matches2(o._export,o._enum)||this.tokens.matches3(o._export,o._const,o._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(o._export,o._default))return this.tokens.matches3(o._export,o._default,o._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(o._export,o.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(o._export,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(o.braceL)){for(;!this.tokens.matches1(o.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(o._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(S._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),hs(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(o._export,o._var)||this.tokens.matches2(o._export,o._let)||this.tokens.matches2(o._export,o._const))return this.processExportVar(),!0;if(this.tokens.matches2(o._export,o._function)||this.tokens.matches3(o._export,o.name,o._function))return this.processExportFunction(),!0;if(this.tokens.matches2(o._export,o._class)||this.tokens.matches3(o._export,o._abstract,o._class)||this.tokens.matches2(o._export,o.at))return this.processExportClass(),!0;if(this.tokens.matches2(o._export,o.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e-1];if(n.isType||n.type!==o.name||n.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,o.dot)||e>=2&&[o._var,o._let,o._const].includes(this.tokens.tokens[e-2].type))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return s?(this.tokens.copyToken(),this.tokens.appendCode(` ${s} =`),!0):!1}processComplexAssignment(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e-1];if(n.type!==o.name||n.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,o.dot))return!1;const s=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return s?(this.tokens.appendCode(` = ${s}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e+1];if(n.type!==o.name||n.shadowsGlobal||e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,o.dot)||this.tokens.matches1AtIndex(e+2,o.bracketL)||this.tokens.matches1AtIndex(e+2,o.parenL)))return!1;const s=this.tokens.identifierNameForToken(n),r=this.importProcessor.resolveExportBinding(s);return r?(this.tokens.appendCode(`${r} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const e=this.tokens.currentIndex(),n=this.tokens.tokens[e],s=this.tokens.tokens[e+1];if(n.type!==o.name||n.shadowsGlobal||e>=1&&this.tokens.matches1AtIndex(e-1,o.dot))return!1;const r=this.tokens.identifierNameForToken(n),i=this.importProcessor.resolveExportBinding(r);if(!i)return!1;const a=this.tokens.rawCodeForToken(s),l=this.importProcessor.getIdentifierReplacement(r)||r;if(a==="++")this.tokens.replaceToken(`(${l} = ${i} = ${l} + 1, ${l} - 1)`);else if(a==="--")this.tokens.replaceToken(`(${l} = ${i} = ${l} - 1, ${l} + 1)`);else throw new Error(`Unexpected operator: ${a}`);return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(o._export,o._default,o._function,o.name)||this.tokens.matches5(o._export,o._default,o.name,o._function,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const n=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${n};`)}else if(this.tokens.matches4(o._export,o._default,o._class,o.name)||this.tokens.matches5(o._export,o._default,o._abstract,o._class,o.name)||this.tokens.matches3(o._export,o._default,o.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(o._abstract)&&this.tokens.removeToken();const n=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${n};`)}else if(Xf(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${n}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(o.at);)if(this.tokens.copyToken(),this.tokens.matches1(o.parenL))this.tokens.copyExpectedToken(o.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR);else{for(this.tokens.copyExpectedToken(o.name);this.tokens.matches1(o.dot);)this.tokens.copyExpectedToken(o.dot),this.tokens.copyExpectedToken(o.name);this.tokens.matches1(o.parenL)&&(this.tokens.copyExpectedToken(o.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,o.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,o.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const e=this.tokens.identifierName();for(;!this.tokens.matches1(o.eq);)this.rootTransformer.processToken();const n=this.tokens.currentToken().rhsEndIndex;if(n==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<n;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.matches1(o.braceL);e&&this.tokens.appendCode("(");let n=0;for(;;)if(this.tokens.matches1(o.braceL)||this.tokens.matches1(o.dollarBraceL)||this.tokens.matches1(o.bracketL))n++,this.tokens.copyToken();else if(this.tokens.matches1(o.braceR)||this.tokens.matches1(o.bracketR))n--,this.tokens.copyToken();else{if(n===0&&!this.tokens.matches1(o.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(o.eq)){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken()}else{const s=this.tokens.currentToken();if(x1(s)){const r=this.tokens.identifierName();let i=this.importProcessor.getIdentifierReplacement(r);if(i===null)throw new Error(`Expected a replacement for ${r} in \`export var\` syntax.`);tx(s)&&(i=`${r}: ${i}`),this.tokens.replaceToken(i)}else this.rootTransformer.processToken()}}if(e){const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(o._function))this.tokens.copyToken();else if(this.tokens.matches2(o.name,o._function)){if(!this.tokens.matchesContextual(S._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(o.star)&&this.tokens.copyToken(),!this.tokens.matches1(o.name))throw new Error("Expected identifier for exported function name.");const e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(o.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(o.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(o._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=Gf(this.tokens),n=[];for(;;){if(this.tokens.matches1(o.braceR)){this.tokens.removeToken();break}const s=Dr(this.tokens);for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();if(!(s.isType||!e&&this.shouldElideExportedIdentifier(s.leftName))){const i=s.rightName;i==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;const a=s.leftName,l=this.importProcessor.getIdentifierReplacement(a);n.push(`exports.${i} = ${l||a};`)}if(this.tokens.matches1(o.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(o.comma,o.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(o.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(S._from)){this.tokens.removeToken();const s=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(s)),hs(this.tokens)}else this.tokens.appendCode(n.join(" "));this.tokens.matches1(o.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(o.string);)this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),hs(this.tokens),this.tokens.matches1(o.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}}class Pw extends Vt{constructor(e,n,s,r,i,a,l,c){super(),this.tokens=e,this.nameManager=n,this.helperManager=s,this.reactHotLoaderTransformer=r,this.isTypeScriptTransformEnabled=i,this.isFlowTransformEnabled=a,this.keepUnusedImports=l,this.nonTypeIdentifiers=i&&!l?L1(e,c):new Set,this.declarationInfo=i&&!l?Wf(e):Hf,this.injectCreateRequireForImportRequire=!!c.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(o._import,o.name,o.eq))return this.processImportEquals();if(this.tokens.matches4(o._import,o.name,o.name,o.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(o._export,o.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(o._export,o._import,o.name,o.name,o.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(o._import))return this.processImport();if(this.tokens.matches2(o._export,o._default))return this.processExportDefault();if(this.tokens.matches2(o._export,o.braceL))return this.processNamedExports();if(this.tokens.matches2(o._export,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(o.braceL)){for(;!this.tokens.matches1(o.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(o._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(S._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),hs(this.tokens)),!0}return!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?qf(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(o._import,o.parenL))return!1;const e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(o.string);)this.tokens.removeToken();this.tokens.removeToken(),hs(this.tokens),this.tokens.matches1(o.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(o._import),this.tokens.matchesContextual(S._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,o.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,S._from))return!0;if(this.tokens.matches1(o.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(S._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._from)&&this.tokens.copyToken();let e=!1,n=!1,s=!1;if(this.tokens.matches1(o.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(o.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(o.comma)&&(s=!0,this.tokens.removeToken()))),this.tokens.matches1(o.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(s&&this.tokens.appendCode(","),e=!0,this.tokens.copyExpectedToken(o.star),this.tokens.copyExpectedToken(o.name),this.tokens.copyExpectedToken(o.name));else if(this.tokens.matches1(o.braceL)){for(s&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(o.braceR);){n=!0;const r=Dr(this.tokens);if(r.isType||this.shouldAutomaticallyElideImportedName(r.rightName)){for(;this.tokens.currentIndex()<r.endIndex;)this.tokens.removeToken();this.tokens.matches1(o.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<r.endIndex;)this.tokens.copyToken();this.tokens.matches1(o.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(o.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?n&&!e:!1}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(Xf(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(o._export,o._default,o._function,o.name)||this.tokens.matches5(o._export,o._default,o.name,o._function,o.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,S._async)||this.tokens.matches4(o._export,o._default,o._class,o.name)||this.tokens.matches5(o._export,o._default,o._abstract,o._class,o.name))&&this.reactHotLoaderTransformer){const n=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${n}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(o._export),this.tokens.copyExpectedToken(o.braceL);const e=Gf(this.tokens);let n=!1;for(;!this.tokens.matches1(o.braceR);){const s=Dr(this.tokens);if(s.isType||!e&&this.shouldElideExportedName(s.leftName)){for(;this.tokens.currentIndex()<s.endIndex;)this.tokens.removeToken();this.tokens.matches1(o.comma)&&this.tokens.removeToken()}else{for(n=!0;this.tokens.currentIndex()<s.endIndex;)this.tokens.copyToken();this.tokens.matches1(o.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(o.braceR),!this.keepUnusedImports&&e&&!n&&(this.tokens.removeToken(),this.tokens.removeToken(),hs(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}}class $w extends Vt{constructor(e,n,s){super(),this.rootTransformer=e,this.tokens=n,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(o._enum)?(this.processEnum(),!0):this.tokens.matches2(o._export,o._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(o._export,o._default,o._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${e} = ${e};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${e};`):this.tokens.appendCode(` export default ${e};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(o.name);let e=!1;this.tokens.matchesContextual(S._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(S._symbol),this.tokens.removeToken());const n=this.tokens.matches3(o.braceL,o.name,o.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const s=!e&&!n;for(this.tokens.replaceTokenTrimmingLeftWhitespace(s?".Mirrored([":"({");!this.tokens.matches1(o.braceR);){if(this.tokens.matches1(o.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,n),this.tokens.matches1(o.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(s?"]);":"});")}processEnumElement(e,n){if(e){const s=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${s}")`)}else n?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function Nw(t){let e,n=t[0],s=1;for(;s<t.length;){const r=t[s],i=t[s+1];if(s+=2,(r==="optionalAccess"||r==="optionalCall")&&n==null)return;r==="access"||r==="optionalAccess"?(e=n,n=i(n)):(r==="call"||r==="optionalCall")&&(n=i((...a)=>n.call(e,...a)),e=void 0)}return n}const Wo="jest",Cw=["mock","unmock","enableAutomock","disableAutomock"];class Pc extends Vt{__init(){this.hoistedFunctionNames=[]}constructor(e,n,s,r){super(),this.rootTransformer=e,this.tokens=n,this.nameManager=s,this.importProcessor=r,Pc.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(o.name,o.dot,o.name,o.parenL)&&this.tokens.identifierName()===Wo?Nw([this,"access",e=>e.importProcessor,"optionalAccess",e=>e.getGlobalNames,"call",e=>e(),"optionalAccess",e=>e.has,"call",e=>e(Wo)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(e=>`${e}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(o.dot,o.name,o.parenL);){const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Cw.includes(n)){const r=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(r),this.tokens.replaceToken(`function ${r}(){${Wo}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${Wo}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.parenR),e=!0}return!0}}class Tw extends Vt{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(o.num)){const e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class Rw extends Vt{constructor(e,n){super(),this.tokens=e,this.nameManager=n}process(){return this.tokens.matches2(o._catch,o.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class Dw extends Vt{constructor(e,n){super(),this.tokens=e,this.nameManager=n}process(){if(this.tokens.matches1(o.nullishCoalescing)){const s=this.tokens.currentToken();return this.tokens.tokens[s.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(o._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const n=this.tokens.currentToken().subscriptStartIndex;if(n!=null&&this.tokens.tokens[n].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==o._super){const s=this.nameManager.claimFreeName("_");let r;if(n>0&&this.tokens.matches1AtIndex(n-1,o._delete)&&this.isLastSubscriptInChain()?r=`${s} => delete ${s}`:r=`${s} => ${s}`,this.tokens.tokens[n].isAsyncOperation&&(r=`async ${r}`),this.tokens.matches2(o.questionDot,o.parenL)||this.tokens.matches2(o.questionDot,o.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${r}`);else if(this.tokens.matches2(o.questionDot,o.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${r}`);else if(this.tokens.matches1(o.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${r}.`);else if(this.tokens.matches1(o.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${r}.`);else if(this.tokens.matches1(o.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${r}[`);else if(this.tokens.matches1(o.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${r}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let e=0;for(let n=this.tokens.currentIndex()+1;;n++){if(n>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?e++:this.tokens.tokens[n].isOptionalChainEnd&&e--,e<0)return!0;if(e===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let e=0,n=this.tokens.currentIndex()-1;for(;;){if(n<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?e--:this.tokens.tokens[n].isOptionalChainEnd&&e++,e<0)return!1;if(e===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return this.tokens.tokens[n-1].type===o._super;n--}}}class Ow extends Vt{constructor(e,n,s,r){super(),this.rootTransformer=e,this.tokens=n,this.importProcessor=s,this.options=r}process(){const e=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return n?this.tokens.replaceToken(`(0, ${n})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(o.name,o.dot,o.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return this.tokens.replaceToken(n),this.tokens.copyToken(),this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){const n=this.findDisplayName(e);n&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(o.parenL),this.tokens.copyExpectedToken(o.braceL),this.tokens.appendCode(`displayName: '${n}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(o.braceR),this.tokens.copyExpectedToken(o.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,o.name,o.eq)?this.tokens.identifierNameAtIndex(e-2):e>=2&&this.tokens.tokens[e-2].identifierRole===ge.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,o._export,o._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const n=(this.options.filePath||"unknown").split("/"),s=n[n.length-1],r=s.lastIndexOf("."),i=r===-1?s:s.slice(0,r);return i==="index"&&n[n.length-2]?n[n.length-2]:i}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(o.parenL,o.braceL))return!1;const n=e+1,s=this.tokens.tokens[n].contextId;if(s==null)throw new Error("Expected non-null context ID on object open-brace.");for(;e<this.tokens.tokens.length;e++){const r=this.tokens.tokens[e];if(r.type===o.braceR&&r.contextId===s){e++;break}if(this.tokens.identifierNameAtIndex(e)==="displayName"&&this.tokens.tokens[e].identifierRole===ge.ObjectKey&&r.contextId===s)return!1}if(e===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(e,o.parenR)||this.tokens.matches2AtIndex(e,o.comma,o.parenR)}}class $c extends Vt{__init(){this.extractedDefaultExportName=null}constructor(e,n){super(),this.tokens=e,this.filePath=n,$c.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return`
|
|
179
179
|
(function () {
|
|
180
180
|
var enterModule = require('react-hot-loader').enterModule;
|
|
181
181
|
enterModule && enterModule(module);
|
|
@@ -189,10 +189,10 @@ module.exports = exports.default;
|
|
|
189
189
|
${n.map(({variableName:s,uniqueLocalName:r})=>` reactHotLoader.register(${s}, "${r}", ${JSON.stringify(this.filePath||"")});`).join(`
|
|
190
190
|
`)}
|
|
191
191
|
leaveModule(module);
|
|
192
|
-
})();`}process(){return!1}}const
|
|
192
|
+
})();`}process(){return!1}}const Lw=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function Kf(t){if(t.length===0||!Tr[t.charCodeAt(0)])return!1;for(let e=1;e<t.length;e++)if(!jt[t.charCodeAt(e)])return!1;return!Lw.has(t)}class Mw extends Vt{constructor(e,n,s){super(),this.rootTransformer=e,this.tokens=n,this.isImportsTransformEnabled=s}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(o._public)||this.tokens.matches1(o._protected)||this.tokens.matches1(o._private)||this.tokens.matches1(o._abstract)||this.tokens.matches1(o._readonly)||this.tokens.matches1(o._override)||this.tokens.matches1(o.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(o._enum)||this.tokens.matches2(o._const,o._enum)?(this.processEnum(),!0):this.tokens.matches2(o._export,o._enum)||this.tokens.matches3(o._export,o._const,o._enum)?(this.processEnum(!0),!0):!1}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(o._const)||this.tokens.matches1(o._enum);)this.tokens.removeToken();const n=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${n}; (function (${n})`),this.tokens.copyExpectedToken(o.braceL),this.processEnumBody(n),this.tokens.copyExpectedToken(o.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${n} || (exports.${n} = ${n} = {}));`):this.tokens.appendCode(`)(${n} || (${n} = {}));`)}processEnumBody(e){let n=null;for(;!this.tokens.matches1(o.braceR);){const{nameStringCode:s,variableName:r}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(o.eq,o.string,o.comma)||this.tokens.matches3(o.eq,o.string,o.braceR)?this.processStringLiteralEnumMember(e,s,r):this.tokens.matches1(o.eq)?this.processExplicitValueEnumMember(e,s,r):this.processImplicitValueEnumMember(e,s,r,n),this.tokens.matches1(o.comma)&&this.tokens.removeToken(),r!=null?n=r:n=`${e}[${s}]`}}extractEnumKeyInfo(e){if(e.type===o.name){const n=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${n}"`,variableName:Kf(n)?n:null}}else if(e.type===o.string){const n=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:Kf(n)?n:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(e,n,s){s!=null?(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${n}] = ${s};`)):(this.tokens.appendCode(`${e}[${n}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(e,n,s){const r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error("Expected rhsEndIndex on enum assign.");if(s!=null){for(this.tokens.appendCode(`const ${s}`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${n}] = ${s}] = ${n};`)}else{for(this.tokens.appendCode(`${e}[${e}[${n}]`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${n};`)}}processImplicitValueEnumMember(e,n,s,r){let i=r!=null?`${r} + 1`:"0";s!=null&&(this.tokens.appendCode(`const ${s} = ${i}; `),i=s),this.tokens.appendCode(`${e}[${e}[${n}] = ${i}] = ${n};`)}}class Go{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(e,n,s,r){Go.prototype.__init.call(this),Go.prototype.__init2.call(this),this.nameManager=e.nameManager,this.helperManager=e.helperManager;const{tokenProcessor:i,importProcessor:a}=e;this.tokens=i,this.isImportsTransformEnabled=n.includes("imports"),this.isReactHotLoaderTransformEnabled=n.includes("react-hot-loader"),this.disableESTransforms=!!r.disableESTransforms,r.disableESTransforms||(this.transformers.push(new Dw(i,this.nameManager)),this.transformers.push(new Tw(i)),this.transformers.push(new Rw(i,this.nameManager))),n.includes("jsx")&&(r.jsxRuntime!=="preserve"&&this.transformers.push(new rs(this,i,a,this.nameManager,r)),this.transformers.push(new Ow(this,i,a,r)));let l=null;if(n.includes("react-hot-loader")){if(!r.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");l=new $c(i,r.filePath),this.transformers.push(l)}if(n.includes("imports")){if(a===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new Kr(this,i,a,this.nameManager,this.helperManager,l,s,!!r.enableLegacyTypeScriptModuleInterop,n.includes("typescript"),n.includes("flow"),!!r.preserveDynamicImport,!!r.keepUnusedImports))}else this.transformers.push(new Pw(i,this.nameManager,this.helperManager,l,n.includes("typescript"),n.includes("flow"),!!r.keepUnusedImports,r));n.includes("flow")&&this.transformers.push(new $w(this,i,n.includes("imports"))),n.includes("typescript")&&this.transformers.push(new Mw(this,i,n.includes("imports"))),n.includes("jest")&&this.transformers.push(new Pc(this,i,this.nameManager,a))}transform(){this.tokens.reset(),this.processBalancedCode();let n=this.isImportsTransformEnabled?'"use strict";':"";for(const a of this.transformers)n+=a.getPrefixCode();n+=this.helperManager.emitHelpers(),n+=this.generatedVariables.map(a=>` var ${a};`).join("");for(const a of this.transformers)n+=a.getHoistedCode();let s="";for(const a of this.transformers)s+=a.getSuffixCode();const r=this.tokens.finish();let{code:i}=r;if(i.startsWith("#!")){let a=i.indexOf(`
|
|
193
193
|
`);return a===-1&&(a=i.length,i+=`
|
|
194
|
-
`),{code:i.slice(0,a+1)+n+i.slice(a+1)+s,mappings:this.shiftMappings(r.mappings,n.length)}}else return{code:n+i+s,mappings:this.shiftMappings(r.mappings,n.length)}}processBalancedCode(){let e=0,n=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(o.braceL)||this.tokens.matches1(o.dollarBraceL))e++;else if(this.tokens.matches1(o.braceR)){if(e===0)return;e--}if(this.tokens.matches1(o.parenL))n++;else if(this.tokens.matches1(o.parenR)){if(n===0)return;n--}this.processToken()}}processToken(){if(this.tokens.matches1(o._class)){this.processClass();return}for(const e of this.transformers)if(e.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(o._class,o.name))throw new Error("Expected identifier for exported class name.");const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){const e=
|
|
195
|
-
`,n="\r",s=function(){function r(i){this.string=i;for(var a=[0],l=0;l<i.length;)switch(i[l]){case e:l+=e.length,a.push(l);break;case n:l+=n.length,i[l]===e&&(l+=e.length),a.push(l);break;default:l++;break}this.offsets=a}return r.prototype.locationForIndex=function(i){if(i<0||i>this.string.length)return null;for(var a=0,l=this.offsets;l[a+1]<=i;)a++;var c=i-l[a];return{line:a,column:c}},r.prototype.indexForLocation=function(i){var a=i.line,l=i.column;return a<0||a>=this.offsets.length||l<0||l>this.lengthOfLine(a)?null:this.offsets[a]+l},r.prototype.lengthOfLine=function(i){var a=this.offsets[i],l=i===this.offsets.length-1?this.string.length:this.offsets[i+1];return l-a},r}();t.LinesAndColumns=s,t.default=s}(Nc)),Nc}
|
|
194
|
+
`),{code:i.slice(0,a+1)+n+i.slice(a+1)+s,mappings:this.shiftMappings(r.mappings,n.length)}}else return{code:n+i+s,mappings:this.shiftMappings(r.mappings,n.length)}}processBalancedCode(){let e=0,n=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(o.braceL)||this.tokens.matches1(o.dollarBraceL))e++;else if(this.tokens.matches1(o.braceR)){if(e===0)return;e--}if(this.tokens.matches1(o.parenL))n++;else if(this.tokens.matches1(o.parenR)){if(n===0)return;n--}this.processToken()}}processToken(){if(this.tokens.matches1(o._class)){this.processClass();return}for(const e of this.transformers)if(e.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(o._class,o.name))throw new Error("Expected identifier for exported class name.");const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){const e=Iw(this,this.tokens,this.nameManager,this.disableESTransforms),n=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0;let s=e.headerInfo.className;n&&(s=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(s),this.tokens.appendCode(` (${s} =`));const i=this.tokens.currentToken().contextId;if(i==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(o._class);!this.tokens.matchesContextIdAndLabel(o.braceL,i);)this.processToken();this.processClassBody(e,s);const a=e.staticInitializerNames.map(l=>`${s}.${l}()`);n?this.tokens.appendCode(`, ${a.map(l=>`${l}, `).join("")}${s})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${a.map(l=>`${l};`).join(" ")}`)}processClassBody(e,n){const{headerInfo:s,constructorInsertPos:r,constructorInitializerStatements:i,fields:a,instanceInitializerNames:l,rangesToRemove:c}=e;let u=0,d=0;const m=this.tokens.currentToken().contextId;if(m==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(o.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const f=i.length+l.length>0;if(r===null&&f){const g=this.makeConstructorInitCode(i,l,n);if(s.hasSuperclass){const w=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${w}) { super(...${w}); ${g}; }`)}else this.tokens.appendCode(`constructor() { ${g}; }`)}for(;!this.tokens.matchesContextIdAndLabel(o.braceR,m);)if(u<a.length&&this.tokens.currentIndex()===a[u].start){let g=!1;for(this.tokens.matches1(o.bracketL)?this.tokens.copyTokenWithPrefix(`${a[u].initializerName}() {this`):this.tokens.matches1(o.string)||this.tokens.matches1(o.num)?(this.tokens.copyTokenWithPrefix(`${a[u].initializerName}() {this[`),g=!0):this.tokens.copyTokenWithPrefix(`${a[u].initializerName}() {this.`);this.tokens.currentIndex()<a[u].end;)g&&this.tokens.currentIndex()===a[u].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),u++}else if(d<c.length&&this.tokens.currentIndex()>=c[d].start){for(this.tokens.currentIndex()<c[d].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<c[d].end;)this.tokens.removeToken();d++}else this.tokens.currentIndex()===r?(this.tokens.copyToken(),f&&this.tokens.appendCode(`;${this.makeConstructorInitCode(i,l,n)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(o.braceR)}makeConstructorInitCode(e,n,s){return[...e,...n.map(r=>`${s}.prototype.${r}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(o.parenR,o.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,o.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(S._async)&&!this.tokens.matches1(o._async))return!1;const e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==o.lessThan||!e.isType)return!1;let n=this.tokens.currentIndex()+1;for(;this.tokens.tokens[n].isType;)n++;if(this.tokens.matches1AtIndex(n,o.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<n;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,n){for(let s=0;s<e.length;s++){const r=e[s];r!==void 0&&(e[s]=r+n)}return e}}var Nc={},Jf;function Fw(){return Jf||(Jf=1,function(t){t.__esModule=!0,t.LinesAndColumns=void 0;var e=`
|
|
195
|
+
`,n="\r",s=function(){function r(i){this.string=i;for(var a=[0],l=0;l<i.length;)switch(i[l]){case e:l+=e.length,a.push(l);break;case n:l+=n.length,i[l]===e&&(l+=e.length),a.push(l);break;default:l++;break}this.offsets=a}return r.prototype.locationForIndex=function(i){if(i<0||i>this.string.length)return null;for(var a=0,l=this.offsets;l[a+1]<=i;)a++;var c=i-l[a];return{line:a,column:c}},r.prototype.indexForLocation=function(i){var a=i.line,l=i.column;return a<0||a>=this.offsets.length||l<0||l>this.lengthOfLine(a)?null:this.offsets[a]+l},r.prototype.lengthOfLine=function(i){var a=this.offsets[i],l=i===this.offsets.length-1?this.string.length:this.offsets[i+1];return l-a},r}();t.LinesAndColumns=s,t.default=s}(Nc)),Nc}Fw();function Bw(t){const e=new Set;for(let n=0;n<t.tokens.length;n++)t.matches1AtIndex(n,o._import)&&!t.matches3AtIndex(n,o._import,o.name,o.eq)&&jw(t,n,e);return e}function jw(t,e,n){e++,!t.matches1AtIndex(e,o.parenL)&&(t.matches1AtIndex(e,o.name)&&(n.add(t.identifierNameAtIndex(e)),e++,t.matches1AtIndex(e,o.comma)&&e++),t.matches1AtIndex(e,o.star)&&(e+=2,n.add(t.identifierNameAtIndex(e)),e++),t.matches1AtIndex(e,o.braceL)&&(e++,zw(t,e,n)))}function zw(t,e,n){for(;;){if(t.matches1AtIndex(e,o.braceR))return;const s=Dr(t,e);if(e=s.endIndex,s.isType||n.add(s.rightName),t.matches2AtIndex(e,o.comma,o.braceR))return;if(t.matches1AtIndex(e,o.braceR))return;if(t.matches1AtIndex(e,o.comma))e++;else throw new Error(`Unexpected token: ${JSON.stringify(t.tokens[e])}`)}}function Vw(t,e){rk(e);try{const n=Uw(t,e),r=new Go(n,e.transforms,!!e.enableLegacyBabel5ModuleInterop,e).transform();let i={code:r.code};if(e.sourceMapOptions){if(!e.filePath)throw new Error("filePath must be specified when generating a source map.");i={...i,sourceMap:Wx(r,e.filePath,e.sourceMapOptions,t,n.tokenProcessor.tokens)}}return i}catch(n){throw e.filePath&&(n.message=`Error transforming ${e.filePath}: ${n.message}`),n}}function Uw(t,e){const n=e.transforms.includes("jsx"),s=e.transforms.includes("typescript"),r=e.transforms.includes("flow"),i=e.disableESTransforms===!0,a=ww(t,n,s,r),l=a.tokens,c=a.scopes,u=new ql(t,l),d=new Po(u),m=new Xr(t,l,r,i,d),f=!!e.enableLegacyTypeScriptModuleInterop;let g=null;return e.transforms.includes("imports")?(g=new is(u,m,f,e,e.transforms.includes("typescript"),!!e.keepUnusedImports,d),g.preprocessTokens(),z1(m,c,g.getGlobalNames()),e.transforms.includes("typescript")&&!e.keepUnusedImports&&g.pruneTypeOnlyImports()):e.transforms.includes("typescript")&&!e.keepUnusedImports&&z1(m,c,Bw(m)),{tokenProcessor:m,scopes:c,nameManager:u,importProcessor:g,helperManager:d}}function qw(t){return t=t.replace(/<link.*?href=["']\/\/.*?["'].*?>/g,e=>e.replace("//","https://")),t=t.replace(/<script.*?src=["']\/\/.*?["'].*?>/g,e=>e.replace("//","https://")),t}function Hw(t,e){return`<script>
|
|
196
196
|
(function() {
|
|
197
197
|
// Store file data for interception
|
|
198
198
|
const __filesURI = "${e}";
|
|
@@ -364,7 +364,7 @@ ${n.map(({variableName:s,uniqueLocalName:r})=>` reactHotLoader.register(${s}, "
|
|
|
364
364
|
return originalFetch(input, init);
|
|
365
365
|
};
|
|
366
366
|
})();
|
|
367
|
-
<\/script>`}function Yf(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Cc(t){let e=t["index.html"]||"";const{"index.html":n,...s}=t;e=
|
|
367
|
+
<\/script>`}function Yf(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Cc(t){let e=t["index.html"]||"";const{"index.html":n,...s}=t;e=qw(e);const r={};for(const[m,f]of Object.entries(s))if(f){if(m.endsWith(".js")){const g=new RegExp(`<script(.*?)src=["']${Yf(m)}["'](.*?)>[\\s\\S]*?<\\/script>`,"g");if(e.match(g)){const w=f.replace(/\$/g,"$$$$");e=e.replace(g,`<script$1$2>${w}<\/script>`);continue}}if(m.endsWith(".css")){const g=new RegExp(`<link.*?href=["']${Yf(m)}["'].*?>`,"g");if(e.match(g)){e=e.replace(g,`<style>${f}</style>`);continue}}m.endsWith(".html")||(r[m]=f)}const i=Object.keys(r),a=encodeURIComponent(JSON.stringify(r)),c=`<meta charset="utf-8">${Hw(i,a)}`;let u="";const d=e.match(/<!DOCTYPE[^>]*>/i);if(d&&(u=d[0],e=e.replace(d[0],"")),e.includes("<head>"))e=e.replace("<head>",`<head>${c}`);else if(e.includes("<html>"))e=e.replace("<html>",`<html><head>${c}</head>`);else return`${u}<html><head>${c}</head><body>${e}</body></html>`;return`${u}${e}`}const Ww=()=>(Math.random()+"").slice(2);function Tc(t={}){return{name:"sucrase",transform(e,n){if(!n.match(/\.(?:js|[jt]sx)$/))return null;const s=Vw(e,{transforms:["jsx","typescript"],filePath:n,sourceMapOptions:{compiledFilename:"bundle.js"},production:!0,...t});return{code:s.code,map:s.sourceMap}}}}const Qf={dependencies:{},vizhub:{},license:"MIT"},Gw=!1,Xo=t=>{const e=t["package.json"];try{const n=e?JSON.parse(e):Qf;return Gw&&console.log("[packageJSON] pkg:",JSON.stringify(n,null,2)),n}catch{return Qf}},Rc=t=>Xo(t).dependencies||{},Dc=t=>(Xo(t).vizhub||{}).libraries||{},Oc=({name:t,version:e},n,s="jsdelivr")=>{const r=n[t]&&n[t].path||"";return s==="jsdelivr"?`https://cdn.jsdelivr.net/npm/${t}@${e}${r}`:`https://unpkg.com/${t}@${e}${r}`},Xw=t=>{const e=t?.vizhub?.libraries;return e?Object.entries(e).reduce((n,[s,r])=>(r.global&&(n[s]=r.global),n),{}):{}},Kw={d3:"d3",react:"React","react-dom":"ReactDOM"},Zf=t=>{const e=Xw(t);return{...Kw,...e}},Jr=t=>{const[e,...n]=t.split("/"),s=n.join("/");return{vizId:e,fileName:s}},Jw=`var EOL = {},
|
|
368
368
|
EOF = {},
|
|
369
369
|
QUOTE = 34,
|
|
370
370
|
NEWLINE = 10,
|
|
@@ -484,11 +484,11 @@ var tsv = dsv(' ');
|
|
|
484
484
|
|
|
485
485
|
var tsvParse = tsv.parse;
|
|
486
486
|
|
|
487
|
-
export { csvParse, tsvParse };`,
|
|
488
|
-
${
|
|
489
|
-
const data = ${s?"csvParse":"tsvParse"}(\`${
|
|
487
|
+
export { csvParse, tsvParse };`,Yw=t=>t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Qw=()=>({name:"transformDSV",transform:async(t,e)=>{const{fileName:n}=Jr(e),s=n.endsWith(".csv"),r=n.endsWith(".tsv");if(s||r)return{code:`
|
|
488
|
+
${Jw}
|
|
489
|
+
const data = ${s?"csvParse":"tsvParse"}(\`${Yw(t)}\`);
|
|
490
490
|
export default data;
|
|
491
|
-
`,map:{mappings:""}}}}),
|
|
491
|
+
`,map:{mappings:""}}}}),Zw=t=>{const e=/^@([a-zA-Z0-9_-]+)\/([a-zA-Z0-9_-]+)$/,n=t.match(e);return n?{userName:n[1],idOrSlug:n[2]}:null},eS=({vizId:t,slugCache:e})=>({name:"vizResolve",resolveId:async(n,s)=>{if(n.startsWith("./")&&!s?.startsWith("https://")){let i=n.substring(2);if(!i.endsWith(".js")&&!i.endsWith(".css")&&!i.endsWith(".csv")&&!i.endsWith(".svelte")&&!i.endsWith(".png")&&!i.endsWith(".jpg")&&!i.endsWith(".jpeg")&&!i.endsWith(".gif")&&!i.endsWith(".svg")&&!i.endsWith(".webp")&&!i.endsWith(".bmp")&&(i+=".js"),s){const{vizId:a,fileName:l}=Jr(s),c=l.split("/").slice(0,-1).join("/"),u=c?`${c}/${i}`:i;return`${a}/${u}`}return t+"/"+i}const r=Zw(n);if(r){let i;if(Mb(r.idOrSlug))i=r.idOrSlug;else{if(!e)throw new Error("slugCache is required to import by slug in v3 runtime");i=await e.get(`${r.userName}/${r.idOrSlug}`)}return i+"/index.js"}}}),tS=[".jpg",".jpeg",".png",".gif",".svg",".webp",".bmp"],Lc=t=>{const e=t.toLowerCase().split(".").pop();return e?tS.includes(`.${e}`):!1},nS=t=>{switch(t.toLowerCase().split(".").pop()){case"jpg":case"jpeg":return"image/jpeg";case"png":return"image/png";case"gif":return"image/gif";case"svg":return"image/svg+xml";case"webp":return"image/webp";case"bmp":return"image/bmp";default:return"image/png"}},sS=t=>{const e=t.replace(/\s/g,"");return/^[A-Za-z0-9+/]*={0,2}$/.test(e)},Mc=(t,e)=>{const n=nS(t);return t.toLowerCase().split(".").pop()==="svg"&&!sS(e)?`data:${n};utf8,${encodeURIComponent(e)}`:`data:${n};base64,${e}`},rS=(t,e)=>t.replace(/<img([^>]*)\s+src=["']([^"']+)["']([^>]*)>/gi,(n,s,r,i)=>{if(e[r]!==void 0&&Lc(r)){const a=Mc(r,e[r]);return`<img${s} src="${a}"${i}>`}return n}),iS=({vizCache:t,trackCSSImport:e,vizId:n,files:s})=>({name:"vizLoad",load:async r=>{const i=Jr(r),a=i.vizId,l=i.fileName;if(l.endsWith(".css"))return e(r),"";let c=null;if(a===n&&s)c=s[l]||null;else{const u=await t.get(a);c=d1(u,l)}if(c===null)throw new Error(`Imported file "${l}" not found.`);return Lc(l)?`export default "${Mc(l,c)}";`:c}}),em=new Map,Fc=new Map;let Bc;const Us="https://cdn.jsdelivr.net/npm/svelte@5.37.1",oS=`${Us}/compiler/index.js`;async function tm(t){const e=Fc.get(t);if(e)return e;const n=[".js","/index.js"];for(const r of n){const i=`${t}${r}`;try{if((await fetch(i,{method:"HEAD"})).ok)return Fc.set(t,i),i}catch{continue}}const s=`${t}.js`;return Fc.set(t,s),s}const aS=({getSvelteCompiler:t})=>({name:"transformSvelte",load:async e=>{if(e==="virtual:esm-env")return`
|
|
492
492
|
export const BROWSER = true;
|
|
493
493
|
export const DEV = true;
|
|
494
494
|
export const NODE = false;
|
|
@@ -502,13 +502,13 @@ export const PROD = false;
|
|
|
502
502
|
document.head.appendChild(style);
|
|
503
503
|
}
|
|
504
504
|
})();
|
|
505
|
-
`+i),i}}}),
|
|
505
|
+
`+i),i}}}),lS=async({files:t,rollup:e,enableSourcemap:n=!0,vizCache:s,vizId:r,slugCache:i,getSvelteCompiler:a})=>{const l=new Set,c=k=>{l.add(k)};if(!t["index.js"])throw new Error("Missing index.js");const u={name:"replace",transform(k,I){let E=!1,b=k;return b.includes("process.env.NODE_ENV")&&(b=b.replace(/\bprocess\.env\.NODE_ENV\b/g,JSON.stringify("production")),E=!0),E?{code:b,map:null}:null}},d={input:"./index.js",plugins:[...r?[eS({vizId:r,slugCache:i})]:[],Qw(),Tc(),aS({getSvelteCompiler:a}),u,...s?[iS({vizCache:s,trackCSSImport:c,vizId:r,files:t})]:[]],onwarn(k,I){k.code!=="UNRESOLVED_IMPORT"&&I(k)}},m={format:"umd",name:"Viz",sourcemap:!!n,compact:!0},f=Xo(t);if(f){const k=Zf(f);k&&(d.external=Object.keys(k),m.globals=k)}d.external||(d.external=[]),m.globals||(m.globals={}),Array.isArray(d.external)&&(d.external=d.external.filter(k=>typeof k=="string"&&!k.startsWith("#client/")));const g=await e(d),{output:w}=await g.generate(m);return{src:w[0].code,cssFiles:Array.from(l)}},cS=t=>{if(t instanceof Error){const e=t.stack||"",n=t.message||"Unknown error";return`${t.name||"Error"}: ${n}
|
|
506
506
|
${e}`}else if("error"in t&&t.error instanceof Error){const e=t.error,n=e.stack||"",s=e.message||"Unknown error",r="filename"in t?t.filename:"",i="lineno"in t?t.lineno:"",a="colno"in t?t.colno:"";let l="";return r&&i&&(l=` at ${r}:${i}`,a&&(l+=`:${a}`)),`${e.name||"Error"}: ${s}${l}
|
|
507
507
|
${n}`}else if("reason"in t){const e=t.reason;if(e instanceof Error){const n=e.stack||"",s=e.message||"Unknown error";return`Unhandled Promise Rejection - ${e.name||"Error"}: ${s}
|
|
508
508
|
${n}`}else return`Unhandled Promise Rejection: ${String(e)}`}else return`Unknown runtime error: ${String(t)}`},Ko=()=>`
|
|
509
509
|
// Global error handling for runtime errors
|
|
510
510
|
(() => {
|
|
511
|
-
const formatRuntimeError = ${
|
|
511
|
+
const formatRuntimeError = ${cS.toString()};
|
|
512
512
|
|
|
513
513
|
// Handle uncaught JavaScript errors
|
|
514
514
|
window.addEventListener('error', (event) => {
|
|
@@ -528,7 +528,7 @@ ${n}`}else return`Unhandled Promise Rejection: ${String(e)}`}else return`Unknown
|
|
|
528
528
|
}, "*");
|
|
529
529
|
});
|
|
530
530
|
})();
|
|
531
|
-
`;function
|
|
531
|
+
`;function uS(){return Math.random().toString().slice(2,7)}const hS=({cdn:t,src:e,styles:n})=>{const s=`viz-container-${uS()}`;return`<!DOCTYPE html>
|
|
532
532
|
<html>
|
|
533
533
|
<head>
|
|
534
534
|
<meta charset="utf-8">${t}${n}
|
|
@@ -607,13 +607,13 @@ ${n}`}else return`Unhandled Promise Rejection: ${String(e)}`}else return`Unknown
|
|
|
607
607
|
})();
|
|
608
608
|
<\/script>
|
|
609
609
|
</body>
|
|
610
|
-
</html>`},
|
|
610
|
+
</html>`},dS=async({files:t,rollup:e,enableSourcemap:n=!0,vizCache:s,vizId:r,slugCache:i,getSvelteCompiler:a})=>{const{src:l,cssFiles:c}=await lS({files:t,rollup:e,enableSourcemap:n,vizCache:s,vizId:r,slugCache:i,getSvelteCompiler:a});let u=[];if(c.length>0)for(let w=0;w<c.length;w++){const k=c[w],I=Jr(k),E=I.vizId,b=I.fileName;let A=null;if(E===r&&t)A=t[b]||null;else{const v=await s.get(E);A=d1(v,b)}A&&u.push(A)}const d=u.join(`
|
|
611
611
|
`),m=`
|
|
612
612
|
<style id="injected-style">${d}</style>`;let f="";const g=Object.entries(Rc(t));if(g.length>0){const w=Dc(t);f=g.map(([k,I],E)=>{const b=Oc({name:k,version:I},w);return`${E>0?" ":`
|
|
613
|
-
`}<script src="${b}"><\/script>`}).join("")}return{html:
|
|
613
|
+
`}<script src="${b}"><\/script>`}).join("")}return{html:hS({cdn:f,src:l,styles:m}),css:d,js:l,runtimeVersion:"v3"}},nm=({initialContents:t,handleCacheMiss:e})=>{const n=new Map(t.map(s=>[s.id,s]));return{get:async s=>{const r=n.get(s);if(r!==void 0)return r;if(!e)throw new Error(`Unresolved import from vizId ${s}, cache miss handler not provided.`);const i=await e(s);if(i)return n.set(s,i),i;throw new Error(`Unresolved import from vizId ${s}`)},set:s=>{n.set(s.id,s)},invalidate:s=>{n.delete(s)}}},pS=({initialMappings:t={},handleCacheMiss:e})=>({get:async n=>{const s=t[n];if(s!==void 0)return s;if(!e)throw new Error(`Unresolved slug ${n}, cache miss handler not provided.`);const r=await e(n);if(r)return t[n]=r,r;throw new Error(`Unresolved slug ${n}`)},set:(n,s)=>{t[n]=s},invalidate:n=>{delete t[n]}}),fS=(t,e="Sample Content for Exporting",n=h1())=>({id:n,files:Ub(t),title:e}),mS=t=>{if(Object.keys(t).length===0)return null;const e="index.html"in t,n="index.js"in t,s="index.jsx"in t;return e?t["index.html"].includes('type="module"')?"v4":n||s?"v2":"v1":!e&&n?"v3":null},jc=(t,e)=>new RegExp(`<${e}\\b`,"i").test(t)&&new RegExp(`</${e}>`,"i").test(t),gS=t=>{const e=t.trim();return jc(e,"html")&&jc(e,"head")&&jc(e,"body")?e:`<html><head></head><body>${e}</body></html>`},yS=(t,e)=>t.replace(new RegExp(`<script[^>]*src=["'][^"']*${e.source}[^"']*["'][^>]*>\\s*<\/script>`,"gi"),""),zc=(t,e,n)=>t.replace(new RegExp(e,"i"),`${n}${e}`),bS=(t,e)=>{let n=gS(t);const s=Object.entries(Rc(e));if(s.length){const i=Dc(e);s.forEach(([l])=>{n=yS(n,new RegExp(`${l}@`))});const a=s.map(([l,c])=>Oc({name:l,version:c},i)).map(l=>`<script src="${l}"><\/script>`).join(`
|
|
614
614
|
`);n=zc(n,"</head>",a+`
|
|
615
615
|
`)}if(e["bundle.js"]!==void 0||e["index.js"]!==void 0){const i='<script src="bundle.js"><\/script>',a=/<script\b[^>]*\bsrc=["']bundle\.js["'][^>]*>\s*<\/script>/gi,l=[...n.matchAll(a)];l.length===1&&(()=>{const c=l[0].index??-1;if(c===-1)return!1;const u=n.search(/<body\b[^>]*>/i),d=n.search(/<\/body>/i);return u!==-1&&d!==-1&&c>u&&c<d})()||(n=n.replace(a,""),n=zc(n,"</body>",i))}const r=`<script>${Ko()}<\/script>
|
|
616
|
-
`;return n=zc(n,"</head>",r),/^\s*<!DOCTYPE/i.test(n)?n:`<!DOCTYPE html>${n}`},
|
|
616
|
+
`;return n=zc(n,"</head>",r),/^\s*<!DOCTYPE/i.test(n)?n:`<!DOCTYPE html>${n}`},xS=t=>{const e=t["index.html"];return!e&&!t["index.js"]&&!t["bundle.js"]?"":bS(e||"<!DOCTYPE html><html><head></head><body></body></html>",t)};function kS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var sm,rm;function ES(){return rm||(rm=1,sm={d3:"d3","d3-array":"d3","d3-axis":"d3","d3-brush":"d3","d3-chord":"d3","d3-collection":"d3","d3-color":"d3","d3-contour":"d3","d3-dispatch":"d3","d3-drag":"d3","d3-dsv":"d3","d3-ease":"d3","d3-fetch":"d3","d3-force":"d3","d3-format":"d3","d3-geo":"d3","d3-hierarchy":"d3","d3-interpolate":"d3","d3-path":"d3","d3-polygon":"d3","d3-quadtree":"d3","d3-random":"d3","d3-scale":"d3","d3-scale-chromatic":"d3","d3-selection":"d3","d3-shape":"d3","d3-tile":"d3","d3-time":"d3","d3-time-format":"d3","d3-timer":"d3","d3-transition":"d3","d3-voronoi":"d3","d3-zoom":"d3",react:"React","react-dom":"ReactDOM","react-dropdown-browser":"ReactDropdown","react-dropdown":"ReactDropdown",three:"THREE",vega:"vega","vega-embed":"vegaEmbed","vega-lite":"vegaLite","vega-lite-api":"vl","vega-tooltip":"vegaTooltip","vega-themes":"vegaThemes","vizhub-vega-lite-config":"vizhubVegaLiteConfig",semiotic:"Semiotic","viz.js":"Viz"}),sm}var AS=ES();const wS=kS(AS),rn="\0virtual:",SS=t=>{let e=t.replace(/^\.\//,"");return e=e.replace(/\/+/g,"/"),e=e.replace(/\/$/,""),e},IS=(t,e)=>{const n=t.includes("/")?t.slice(0,t.lastIndexOf("/")):"",s=e.split("/"),r=n?n.split("/"):[];for(const i of s)i===".."?r.pop():i!=="."&&i!==""&&r.push(i);return r.join("/")},im=t=>({name:"virtual-file-system",resolveId(e,n){const s=n?.startsWith(rn)?n.slice(rn.length):n;if(e.startsWith("./")||e.startsWith("../")){const i=SS(s?IS(s,e):e);if(t[i])return rn+i;const a=[".js",".jsx",".ts",".tsx"];for(const l of a){const c=i+l;if(t[c])return rn+c}}if(t[e])return rn+e;const r=[".js",".jsx",".ts",".tsx"];for(const i of r){const a=e+i;if(t[a])return rn+a}return null},load(e){if(e.startsWith(rn)){const n=e.slice(rn.length);if(t[n])return Lc(n)?`export default "${Mc(n,t[n])}";`:t[n]}return null}}),vS=async({files:t,rollup:e,enableSourcemap:n=!0})=>{let s="index.js";if(!t[s]&&(s="index.jsx",!t[s]))throw new Error("Missing entry point, can't find index.js or index.jsx");const r={input:"./"+s,plugins:[im(t),Tc()],onwarn(u,d){u.code!=="UNRESOLVED_IMPORT"&&d(u)}},i={format:"iife",sourcemap:n},a=Xo(t);if(a){const u={...wS,...Zf(a)};u&&(r.external=Object.keys(u),i.globals=u)}const l=await e(r),{output:c}=await l.generate(i);return c[0].code},_S=async({files:t,rollup:e,enableSourcemap:n})=>({...t,"bundle.js":await vS({files:t,rollup:e,enableSourcemap:n}),"index.html":xS(t)}),PS=t=>{const e=[],n=[],s=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi;let r,i=0;for(;(r=s.exec(t))!==null;){const a=r[1],l=r[2];if(!/\btype\s*=\s*["']module["']/i.test(a))continue;const c=a.match(/\bsrc\s*=\s*["']([^"']+)["']/i);if(c)e.push(c[1]);else if(l.trim()){const u=`__inline_script_${i++}.js`;n.push({id:u,content:l.trim()}),e.push(u)}}return{entryPoints:e,inlineScripts:n}},$S=()=>({name:"catch-all-prevent-fs",resolveId(t,e){return{id:t,external:!0}}}),NS=async({entryPoint:t,files:e,rollup:n,enableSourcemap:s=!0})=>{const r={input:t.startsWith("./")?t:`./${t}`,plugins:[im(e),Tc({jsxRuntime:"automatic"}),$S()],onwarn(l,c){}},i=await n(r),{output:a}=await i.generate({format:"es",sourcemap:s});return a[0].code},Vc=(t,e)=>new RegExp(`<${e}\\b`,"i").test(t)&&new RegExp(`</${e}>`,"i").test(t),CS=t=>{const e=t.trim();return Vc(e,"html")&&Vc(e,"head")&&Vc(e,"body")?e:`<html><head></head><body>${e}</body></html>`},om=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Uc=(t,e,n)=>t.replace(new RegExp(e,"i"),`${n}${e}`),TS=t=>{const e=Rc(t);if(Object.keys(e).length===0)return null;const n=Dc(t),s={};for(const[r,i]of Object.entries(e))s[r]=Oc({name:r,version:i},n);return JSON.stringify({imports:s},null,2)},RS=()=>`
|
|
617
617
|
// V4 Hot Reloading Support
|
|
618
618
|
(() => {
|
|
619
619
|
const runJS = (js) => {
|
|
@@ -667,16 +667,16 @@ ${n}`}else return`Unhandled Promise Rejection: ${String(e)}`}else return`Unknown
|
|
|
667
667
|
}
|
|
668
668
|
});
|
|
669
669
|
})();
|
|
670
|
-
`,
|
|
670
|
+
`,DS=(t,e,n=[],s=!1)=>{if(!t["index.html"])return"";let r=CS(t["index.html"]);e.forEach((l,c)=>{if(n.some(u=>u.id===c)){const u=n.find(f=>f.id===c)?.content||"",d=om(u),m=new RegExp(`<script\\b[^>]*\\btype=["']module["'][^>]*>\\s*${d}\\s*<\/script>`,"gi");r=r.replace(m,`<script type="module">
|
|
671
671
|
${l}
|
|
672
672
|
<\/script>`)}else{const u=new RegExp(`<script\\b[^>]*\\bsrc=["']${om(c)}["'][^>]*>[^<]*<\/script>`,"gi");r=r.replace(u,`<script type="module">
|
|
673
673
|
${l}
|
|
674
|
-
<\/script>`)}});const i=
|
|
674
|
+
<\/script>`)}});const i=TS(t);if(i&&!/<script\b[^>]*type=["']importmap["'][^>]*>/i.test(r)){const l=`<script type="importmap">
|
|
675
675
|
${i}
|
|
676
676
|
<\/script>
|
|
677
677
|
`;r=Uc(r,"</head>",l)}const a=`<script>${Ko()}<\/script>
|
|
678
|
-
`;if(r=Uc(r,"</head>",a),s){const l=`<script>${
|
|
679
|
-
`;r=Uc(r,"</body>",l)}return/^\s*<!DOCTYPE/i.test(r)?r:`<!DOCTYPE html>${r}`},
|
|
680
|
-
`);return{files:{...t,"index.html":u},bundledJS:d}},Yr=!1,
|
|
678
|
+
`;if(r=Uc(r,"</head>",a),s){const l=`<script>${RS()}<\/script>
|
|
679
|
+
`;r=Uc(r,"</body>",l)}return/^\s*<!DOCTYPE/i.test(r)?r:`<!DOCTYPE html>${r}`},OS=async({files:t,rollup:e,enableSourcemap:n=!0})=>{const s=t["index.html"]||"",{entryPoints:r,inlineScripts:i}=PS(s);if(r.length===0)return{files:t,bundledJS:""};const a={...t};for(const m of i)a[m.id]=m.content;const l=new Map,c=[];for(const m of r){const f=await NS({entryPoint:m,files:a,rollup:e,enableSourcemap:n});l.set(m,f),c.push(f)}const u=DS(a,l,i,!0),d=c.join(`
|
|
680
|
+
`);return{files:{...t,"index.html":u},bundledJS:d}},Yr=!1,LS=t=>{const e=`<script>${Ko()}<\/script>`;return t.includes("</head>")?t.replace("</head>",`${e}
|
|
681
681
|
</head>`):t.includes("</body>")?t.replace("</body>",`${e}
|
|
682
|
-
</body>`):t+e},qc=t=>{const e={...t};for(const[n,s]of Object.entries(e))n.toLowerCase().endsWith(".html")&&(e[n]=
|
|
682
|
+
</body>`):t+e},qc=t=>{const e={...t};for(const[n,s]of Object.entries(e))n.toLowerCase().endsWith(".html")&&(e[n]=rS(s,t));return e},MS=async({files:t,rollup:e,enableSourcemap:n=!0,vizCache:s,vizId:r,slugCache:i,getSvelteCompiler:a})=>{try{if(Yr&&console.log("[build] files:",t?JSON.stringify(t).substring(0,100):void 0),Yr&&console.log("[build] vizCache:",s),Yr&&console.log("[build] vizId:",r),!t&&!s)throw new Error("Either files or vizCache is required");if(!t&&s&&!r)throw new Error("vizId is required when using vizCache");if(!t&&s&&r&&(t=Vb((await s.get(r))?.files)),!t)throw new Error("Upable to extract viz files");const l=mS(t);if(Yr&&console.log("[build] version:",l),l==="v1"){const c=qc(t);return{html:LS(Cc(c)),runtimeVersion:l}}if(l==="v2"){if(!e)throw new Error("Rollup is required for v2 runtime");const c=await _S({files:t,rollup:e,enableSourcemap:n}),u=qc(c);return{html:Cc(u),runtimeVersion:l}}if(l==="v3"){if(!e)throw new Error("Rollup is required for v3 runtime");if(!s&&!r){const c=fS(t);r=c.id,s=nm({initialContents:[c],handleCacheMiss:async()=>{throw new Error("Cache miss handler not implemented")}})}if(!s)throw new Error("vizCache is required for v3 runtime");if(!r)throw new Error("vizId is required for v3 runtime if vizCache is provided");return await dS({files:t,rollup:e,vizCache:s,vizId:r,slugCache:i,getSvelteCompiler:a})}if(l==="v4"){if(!e)throw new Error("Rollup is required for v4 runtime");Yr&&console.log("[build] v4Build",{files:t,rollup:e,enableSourcemap:n});const c=await OS({files:t,rollup:e,enableSourcemap:n}),u=qc(c.files);return{html:Cc(u),js:c.bundledJS,runtimeVersion:l}}throw new Error(`Unsupported runtime version: ${l}`)}catch(l){throw l instanceof Error&&l.message.indexOf(rn)&&(l.message=l.message.replace(rn,"")),l}};(()=>{const t=async()=>{const i=await fetch(oS).then(a=>a.text());return(0,eval)(i),self.svelte.compile},e=new Map,n=new Map,s=nm({initialContents:[],handleCacheMiss:async i=>(postMessage({type:"contentRequest",vizId:i}),new Promise(a=>{e.set(i,a)}))}),r=pS({initialMappings:{},handleCacheMiss:async i=>{const a=Ww();return postMessage({type:"resolveSlugRequest",slugKey:i,requestId:a}),new Promise(l=>{n.set(a,l)})}});addEventListener("message",async i=>{const a=i.data;switch(a.type){case"buildRequest":{const{files:l,enableSourcemap:c,requestId:u,vizId:d}=a;try{const m={type:"buildResponse",buildResult:await MS({files:l,enableSourcemap:c,rollup:Ob,getSvelteCompiler:t,vizCache:s,vizId:d,slugCache:r}),requestId:u};postMessage(m)}catch(m){const f={type:"buildResponse",error:""+m,requestId:u};postMessage(f)}break}case"contentResponse":{const l=e.get(a.vizId);l&&(l(a.content),e.delete(a.vizId));break}case"invalidateVizCacheRequest":{const{changedVizIds:l}=a;for(const c of l)s.invalidate(c);postMessage({type:"invalidateVizCacheResponse"});break}case"resolveSlugResponse":{const l=n.get(a.requestId);l&&(l(a.vizId),n.delete(a.requestId));break}}})})()})();
|