@unizap/unicss 2.0.25 → 2.0.26

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,11 +2,11 @@ var _=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ih=_(Er=>{"use
2
2
  globstar while`,e,d,i,m,S),this.matchOne(e.slice(d),i.slice(m),r))return this.debug("globstar found match!",d,c,S),!0;if(S==="."||S===".."||!s.dot&&S.charAt(0)==="."){this.debug("dot detected!",e,d,i,m);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(r&&(this.debug(`
3
3
  >>> no match, partial?`,e,d,i,m),d===c))}let P;if(typeof u=="string"?(P=f===u,this.debug("string match",u,f,P)):(P=u.test(f),this.debug("pattern match",u,f,P)),!P)return!1}if(a===c&&l===o)return!0;if(a===c)return r;if(l===o)return a===c-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,ne.braceExpand)(this.pattern,this.options)}parse(e){(0,sa.assertValidPattern)(e);let i=this.options;if(e==="**")return ne.GLOBSTAR;if(e==="")return"";let r,s=null;(r=e.match(dS))?s=i.dot?yS:mS:(r=e.match(sS))?s=(i.nocase?i.dot?lS:oS:i.dot?aS:nS)(r[1]):(r=e.match(TS))?s=(i.nocase?i.dot?xS:gS:i.dot?bS:SS)(r):(r=e.match(cS))?s=i.dot?pS:uS:(r=e.match(fS))&&(s=hS);let n=Vh.AST.fromGlob(e,this.options).toMMPattern();return s&&typeof n=="object"&&Reflect.defineProperty(n,"test",{value:s}),n}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let i=this.options,r=i.noglobstar?PS:i.dot?vS:AS,s=new Set(i.nocase?["i"]:[]),n=e.map(c=>{let o=c.map(u=>{if(u instanceof RegExp)for(let f of u.flags.split(""))s.add(f);return typeof u=="string"?OS(u):u===ne.GLOBSTAR?ne.GLOBSTAR:u._src});return o.forEach((u,f)=>{let d=o[f+1],m=o[f-1];u!==ne.GLOBSTAR||m===ne.GLOBSTAR||(m===void 0?d!==void 0&&d!==ne.GLOBSTAR?o[f+1]="(?:\\/|"+r+"\\/)?"+d:o[f]=r:d===void 0?o[f-1]=m+"(?:\\/|"+r+")?":d!==ne.GLOBSTAR&&(o[f-1]=m+"(?:\\/|\\/"+r+"\\/)"+d,o[f+1]=ne.GLOBSTAR))}),o.filter(u=>u!==ne.GLOBSTAR).join("/")}).join("|"),[a,l]=e.length>1?["(?:",")"]:["",""];n="^"+a+n+l+"$",this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,i=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&i)return!0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let n=this.set;this.debug(this.pattern,"set",n);let a=s[s.length-1];if(!a)for(let l=s.length-2;!a&&l>=0;l--)a=s[l];for(let l=0;l<n.length;l++){let c=n[l],o=s;if(r.matchBase&&c.length===1&&(o=[a]),this.matchOne(o,c,i))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return ne.minimatch.defaults(e).Minimatch}};ne.Minimatch=Pr;var NS=ml();Object.defineProperty(ne,"AST",{enumerable:!0,get:function(){return NS.AST}});var DS=yl();Object.defineProperty(ne,"escape",{enumerable:!0,get:function(){return DS.escape}});var LS=Zn();Object.defineProperty(ne,"unescape",{enumerable:!0,get:function(){return LS.unescape}});ne.minimatch.AST=Vh.AST;ne.minimatch.Minimatch=Pr;ne.minimatch.escape=tS.escape;ne.minimatch.unescape=iS.unescape});var Qh=_(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.LRUCache=void 0;var es=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Xh=new Set,Tl=typeof process=="object"&&process?process:{},Hh=(t,e,i,r)=>{typeof Tl.emitWarning=="function"?Tl.emitWarning(t,e,i,r):console.error(`[${i}] ${e}: ${t}`)},na=globalThis.AbortController,Jh=globalThis.AbortSignal;if(typeof na>"u"){Jh=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,s){this._onabort.push(s)}},na=class{constructor(){e()}signal=new Jh;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let s of this.signal._onabort)s(r);this.signal.onabort?.(r)}}};let t=Tl.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,Hh("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var MS=t=>!Xh.has(t),MG=Symbol("type"),Zi=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Gh=t=>Zi(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ts:null:null,ts=class extends Array{constructor(e){super(e),this.fill(0)}},gl=class t{heap;length;static#e=!1;static create(e){let i=Gh(e);if(!i)return[];t.#e=!0;let r=new t(e,i);return t.#e=!1,r}constructor(e,i){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},xl=class t{#e;#t;#n;#s;#a;#b;#T;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#p;#l;#c;#i;#f;#g;#d;#m;#C;#y;#I;#E;#S;#x;#A;#h;#_;static unsafeExposeInternals(e){return{starts:e.#E,ttls:e.#S,sizes:e.#I,keyMap:e.#l,keyList:e.#c,valList:e.#i,next:e.#f,prev:e.#g,get head(){return e.#d},get tail(){return e.#m},free:e.#C,isBackgroundFetch:i=>e.#u(i),backgroundFetch:(i,r,s,n)=>e.#M(i,r,s,n),moveToTail:i=>e.#j(i),indexes:i=>e.#w(i),rindexes:i=>e.#k(i),isStale:i=>e.#v(i)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#p}get size(){return this.#o}get fetchMethod(){return this.#b}get memoMethod(){return this.#T}get dispose(){return this.#n}get onInsert(){return this.#s}get disposeAfter(){return this.#a}constructor(e){let{max:i=0,ttl:r,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:a,updateAgeOnHas:l,allowStale:c,dispose:o,onInsert:u,disposeAfter:f,noDisposeOnSet:d,noUpdateTTL:m,maxSize:S=0,maxEntrySize:P=0,sizeCalculation:A,fetchMethod:C,memoMethod:k,noDeleteOnFetchRejection:D,noDeleteOnStaleGet:L,allowStaleOnFetchRejection:B,allowStaleOnFetchAbort:U,ignoreFetchAbort:oe}=e;if(i!==0&&!Zi(i))throw new TypeError("max option must be a nonnegative integer");let me=i?Gh(i):Array;if(!me)throw new Error("invalid max value: "+i);if(this.#e=i,this.#t=S,this.maxEntrySize=P||this.#t,this.sizeCalculation=A,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(k!==void 0&&typeof k!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#T=k,C!==void 0&&typeof C!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#b=C,this.#A=!!C,this.#l=new Map,this.#c=new Array(i).fill(void 0),this.#i=new Array(i).fill(void 0),this.#f=new me(i),this.#g=new me(i),this.#d=0,this.#m=0,this.#C=gl.create(i),this.#o=0,this.#p=0,typeof o=="function"&&(this.#n=o),typeof u=="function"&&(this.#s=u),typeof f=="function"?(this.#a=f,this.#y=[]):(this.#a=void 0,this.#y=void 0),this.#x=!!this.#n,this.#_=!!this.#s,this.#h=!!this.#a,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!D,this.allowStaleOnFetchRejection=!!B,this.allowStaleOnFetchAbort=!!U,this.ignoreFetchAbort=!!oe,this.maxEntrySize!==0){if(this.#t!==0&&!Zi(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!Zi(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#$()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!L,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!l,this.ttlResolution=Zi(s)||s===0?s:1,this.ttlAutopurge=!!n,this.ttl=r||0,this.ttl){if(!Zi(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#r()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let ee="LRU_CACHE_UNBOUNDED";MS(ee)&&(Xh.add(ee),Hh("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",ee,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#r(){let e=new ts(this.#e),i=new ts(this.#e);this.#S=e,this.#E=i,this.#O=(n,a,l=es.now())=>{if(i[n]=a!==0?l:0,e[n]=a,a!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#v(n)&&this.#N(this.#c[n],"expire")},a+1);c.unref&&c.unref()}},this.#D=n=>{i[n]=e[n]!==0?es.now():0},this.#P=(n,a)=>{if(e[a]){let l=e[a],c=i[a];if(!l||!c)return;n.ttl=l,n.start=c,n.now=r||s();let o=n.now-c;n.remainingTTL=l-o}};let r=0,s=()=>{let n=es.now();if(this.ttlResolution>0){r=n;let a=setTimeout(()=>r=0,this.ttlResolution);a.unref&&a.unref()}return n};this.getRemainingTTL=n=>{let a=this.#l.get(n);if(a===void 0)return 0;let l=e[a],c=i[a];if(!l||!c)return 1/0;let o=(r||s())-c;return l-o},this.#v=n=>{let a=i[n],l=e[n];return!!l&&!!a&&(r||s())-a>l}}#D=()=>{};#P=()=>{};#O=()=>{};#v=()=>!1;#$(){let e=new ts(this.#e);this.#p=0,this.#I=e,this.#L=i=>{this.#p-=e[i],e[i]=0},this.#q=(i,r,s,n)=>{if(this.#u(r))return 0;if(!Zi(s))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(s=n(r,i),!Zi(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s},this.#F=(i,r,s)=>{if(e[i]=r,this.#t){let n=this.#t-e[i];for(;this.#p>n;)this.#B(!0)}this.#p+=e[i],s&&(s.entrySize=r,s.totalCalculatedSize=this.#p)}}#L=e=>{};#F=(e,i,r)=>{};#q=(e,i,r,s)=>{if(r||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#w({allowStale:e=this.allowStale}={}){if(this.#o)for(let i=this.#m;!(!this.#U(i)||((e||!this.#v(i))&&(yield i),i===this.#d));)i=this.#g[i]}*#k({allowStale:e=this.allowStale}={}){if(this.#o)for(let i=this.#d;!(!this.#U(i)||((e||!this.#v(i))&&(yield i),i===this.#m));)i=this.#f[i]}#U(e){return e!==void 0&&this.#l.get(this.#c[e])===e}*entries(){for(let e of this.#w())this.#i[e]!==void 0&&this.#c[e]!==void 0&&!this.#u(this.#i[e])&&(yield[this.#c[e],this.#i[e]])}*rentries(){for(let e of this.#k())this.#i[e]!==void 0&&this.#c[e]!==void 0&&!this.#u(this.#i[e])&&(yield[this.#c[e],this.#i[e]])}*keys(){for(let e of this.#w()){let i=this.#c[e];i!==void 0&&!this.#u(this.#i[e])&&(yield i)}}*rkeys(){for(let e of this.#k()){let i=this.#c[e];i!==void 0&&!this.#u(this.#i[e])&&(yield i)}}*values(){for(let e of this.#w())this.#i[e]!==void 0&&!this.#u(this.#i[e])&&(yield this.#i[e])}*rvalues(){for(let e of this.#k())this.#i[e]!==void 0&&!this.#u(this.#i[e])&&(yield this.#i[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,i={}){for(let r of this.#w()){let s=this.#i[r],n=this.#u(s)?s.__staleWhileFetching:s;if(n!==void 0&&e(n,this.#c[r],this))return this.get(this.#c[r],i)}}forEach(e,i=this){for(let r of this.#w()){let s=this.#i[r],n=this.#u(s)?s.__staleWhileFetching:s;n!==void 0&&e.call(i,n,this.#c[r],this)}}rforEach(e,i=this){for(let r of this.#k()){let s=this.#i[r],n=this.#u(s)?s.__staleWhileFetching:s;n!==void 0&&e.call(i,n,this.#c[r],this)}}purgeStale(){let e=!1;for(let i of this.#k({allowStale:!0}))this.#v(i)&&(this.#N(this.#c[i],"expire"),e=!0);return e}info(e){let i=this.#l.get(e);if(i===void 0)return;let r=this.#i[i],s=this.#u(r)?r.__staleWhileFetching:r;if(s===void 0)return;let n={value:s};if(this.#S&&this.#E){let a=this.#S[i],l=this.#E[i];if(a&&l){let c=a-(es.now()-l);n.ttl=c,n.start=Date.now()}}return this.#I&&(n.size=this.#I[i]),n}dump(){let e=[];for(let i of this.#w({allowStale:!0})){let r=this.#c[i],s=this.#i[i],n=this.#u(s)?s.__staleWhileFetching:s;if(n===void 0||r===void 0)continue;let a={value:n};if(this.#S&&this.#E){a.ttl=this.#S[i];let l=es.now()-this.#E[i];a.start=Math.floor(Date.now()-l)}this.#I&&(a.size=this.#I[i]),e.unshift([r,a])}return e}load(e){this.clear();for(let[i,r]of e){if(r.start){let s=Date.now()-r.start;r.start=es.now()-s}this.set(i,r.value,r)}}set(e,i,r={}){if(i===void 0)return this.delete(e),this;let{ttl:s=this.ttl,start:n,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:c}=r,{noUpdateTTL:o=this.noUpdateTTL}=r,u=this.#q(e,i,r.size||0,l);if(this.maxEntrySize&&u>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.#N(e,"set"),this;let f=this.#o===0?void 0:this.#l.get(e);if(f===void 0)f=this.#o===0?this.#m:this.#C.length!==0?this.#C.pop():this.#o===this.#e?this.#B(!1):this.#o,this.#c[f]=e,this.#i[f]=i,this.#l.set(e,f),this.#f[this.#m]=f,this.#g[f]=this.#m,this.#m=f,this.#o++,this.#F(f,u,c),c&&(c.set="add"),o=!1,this.#_&&this.#s?.(i,e,"add");else{this.#j(f);let d=this.#i[f];if(i!==d){if(this.#A&&this.#u(d)){d.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:m}=d;m!==void 0&&!a&&(this.#x&&this.#n?.(m,e,"set"),this.#h&&this.#y?.push([m,e,"set"]))}else a||(this.#x&&this.#n?.(d,e,"set"),this.#h&&this.#y?.push([d,e,"set"]));if(this.#L(f),this.#F(f,u,c),this.#i[f]=i,c){c.set="replace";let m=d&&this.#u(d)?d.__staleWhileFetching:d;m!==void 0&&(c.oldValue=m)}}else c&&(c.set="update");this.#_&&this.onInsert?.(i,e,i===d?"update":"replace")}if(s!==0&&!this.#S&&this.#r(),this.#S&&(o||this.#O(f,s,n),c&&this.#P(c,f)),!a&&this.#h&&this.#y){let d=this.#y,m;for(;m=d?.shift();)this.#a?.(...m)}return this}pop(){try{for(;this.#o;){let e=this.#i[this.#d];if(this.#B(!0),this.#u(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#y){let e=this.#y,i;for(;i=e?.shift();)this.#a?.(...i)}}}#B(e){let i=this.#d,r=this.#c[i],s=this.#i[i];return this.#A&&this.#u(s)?s.__abortController.abort(new Error("evicted")):(this.#x||this.#h)&&(this.#x&&this.#n?.(s,r,"evict"),this.#h&&this.#y?.push([s,r,"evict"])),this.#L(i),e&&(this.#c[i]=void 0,this.#i[i]=void 0,this.#C.push(i)),this.#o===1?(this.#d=this.#m=0,this.#C.length=0):this.#d=this.#f[i],this.#l.delete(r),this.#o--,i}has(e,i={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:s}=i,n=this.#l.get(e);if(n!==void 0){let a=this.#i[n];if(this.#u(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#v(n))s&&(s.has="stale",this.#P(s,n));else return r&&this.#D(n),s&&(s.has="hit",this.#P(s,n)),!0}else s&&(s.has="miss");return!1}peek(e,i={}){let{allowStale:r=this.allowStale}=i,s=this.#l.get(e);if(s===void 0||!r&&this.#v(s))return;let n=this.#i[s];return this.#u(n)?n.__staleWhileFetching:n}#M(e,i,r,s){let n=i===void 0?void 0:this.#i[i];if(this.#u(n))return n;let a=new na,{signal:l}=r;l?.addEventListener("abort",()=>a.abort(l.reason),{signal:a.signal});let c={signal:a.signal,options:r,context:s},o=(P,A=!1)=>{let{aborted:C}=a.signal,k=r.ignoreFetchAbort&&P!==void 0;if(r.status&&(C&&!A?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,k&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),C&&!k&&!A)return f(a.signal.reason);let D=m;return this.#i[i]===m&&(P===void 0?D.__staleWhileFetching?this.#i[i]=D.__staleWhileFetching:this.#N(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,P,c.options))),P},u=P=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=P),f(P)),f=P=>{let{aborted:A}=a.signal,C=A&&r.allowStaleOnFetchAbort,k=C||r.allowStaleOnFetchRejection,D=k||r.noDeleteOnFetchRejection,L=m;if(this.#i[i]===m&&(!D||L.__staleWhileFetching===void 0?this.#N(e,"fetch"):C||(this.#i[i]=L.__staleWhileFetching)),k)return r.status&&L.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),L.__staleWhileFetching;if(L.__returned===L)throw P},d=(P,A)=>{let C=this.#b?.(e,n,c);C&&C instanceof Promise&&C.then(k=>P(k===void 0?void 0:k),A),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(P(void 0),r.allowStaleOnFetchAbort&&(P=k=>o(k,!0)))})};r.status&&(r.status.fetchDispatched=!0);let m=new Promise(d).then(o,u),S=Object.assign(m,{__abortController:a,__staleWhileFetching:n,__returned:void 0});return i===void 0?(this.set(e,S,{...c.options,status:void 0}),i=this.#l.get(e)):this.#i[i]=S,S}#u(e){if(!this.#A)return!1;let i=e;return!!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof na}async fetch(e,i={}){let{allowStale:r=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:l=this.noDisposeOnSet,size:c=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:m=this.ignoreFetchAbort,allowStaleOnFetchAbort:S=this.allowStaleOnFetchAbort,context:P,forceRefresh:A=!1,status:C,signal:k}=i;if(!this.#A)return C&&(C.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:s,noDeleteOnStaleGet:n,status:C});let D={allowStale:r,updateAgeOnGet:s,noDeleteOnStaleGet:n,ttl:a,noDisposeOnSet:l,size:c,sizeCalculation:o,noUpdateTTL:u,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:S,ignoreFetchAbort:m,status:C,signal:k},L=this.#l.get(e);if(L===void 0){C&&(C.fetch="miss");let B=this.#M(e,L,D,P);return B.__returned=B}else{let B=this.#i[L];if(this.#u(B)){let Pe=r&&B.__staleWhileFetching!==void 0;return C&&(C.fetch="inflight",Pe&&(C.returnedStale=!0)),Pe?B.__staleWhileFetching:B.__returned=B}let U=this.#v(L);if(!A&&!U)return C&&(C.fetch="hit"),this.#j(L),s&&this.#D(L),C&&this.#P(C,L),B;let oe=this.#M(e,L,D,P),ee=oe.__staleWhileFetching!==void 0&&r;return C&&(C.fetch=U?"stale":"refresh",ee&&U&&(C.returnedStale=!0)),ee?oe.__staleWhileFetching:oe.__returned=oe}}async forceFetch(e,i={}){let r=await this.fetch(e,i);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(e,i={}){let r=this.#T;if(!r)throw new Error("no memoMethod provided to constructor");let{context:s,forceRefresh:n,...a}=i,l=this.get(e,a);if(!n&&l!==void 0)return l;let c=r(e,l,{options:a,context:s});return this.set(e,c,a),c}get(e,i={}){let{allowStale:r=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:a}=i,l=this.#l.get(e);if(l!==void 0){let c=this.#i[l],o=this.#u(c);return a&&this.#P(a,l),this.#v(l)?(a&&(a.get="stale"),o?(a&&r&&c.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?c.__staleWhileFetching:void 0):(n||this.#N(e,"expire"),a&&r&&(a.returnedStale=!0),r?c:void 0)):(a&&(a.get="hit"),o?c.__staleWhileFetching:(this.#j(l),s&&this.#D(l),c))}else a&&(a.get="miss")}#K(e,i){this.#g[i]=e,this.#f[e]=i}#j(e){e!==this.#m&&(e===this.#d?this.#d=this.#f[e]:this.#K(this.#g[e],this.#f[e]),this.#K(this.#m,e),this.#m=e)}delete(e){return this.#N(e,"delete")}#N(e,i){let r=!1;if(this.#o!==0){let s=this.#l.get(e);if(s!==void 0)if(r=!0,this.#o===1)this.#R(i);else{this.#L(s);let n=this.#i[s];if(this.#u(n)?n.__abortController.abort(new Error("deleted")):(this.#x||this.#h)&&(this.#x&&this.#n?.(n,e,i),this.#h&&this.#y?.push([n,e,i])),this.#l.delete(e),this.#c[s]=void 0,this.#i[s]=void 0,s===this.#m)this.#m=this.#g[s];else if(s===this.#d)this.#d=this.#f[s];else{let a=this.#g[s];this.#f[a]=this.#f[s];let l=this.#f[s];this.#g[l]=this.#g[s]}this.#o--,this.#C.push(s)}}if(this.#h&&this.#y?.length){let s=this.#y,n;for(;n=s?.shift();)this.#a?.(...n)}return r}clear(){return this.#R("delete")}#R(e){for(let i of this.#k({allowStale:!0})){let r=this.#i[i];if(this.#u(r))r.__abortController.abort(new Error("deleted"));else{let s=this.#c[i];this.#x&&this.#n?.(r,s,e),this.#h&&this.#y?.push([r,s,e])}}if(this.#l.clear(),this.#i.fill(void 0),this.#c.fill(void 0),this.#S&&this.#E&&(this.#S.fill(0),this.#E.fill(0)),this.#I&&this.#I.fill(0),this.#d=0,this.#m=0,this.#C.length=0,this.#p=0,this.#o=0,this.#h&&this.#y){let i=this.#y,r;for(;r=i?.shift();)this.#a?.(...r)}}};aa.LRUCache=xl});var Cl=_(Lt=>{"use strict";var FS=Lt&&Lt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Minipass=Lt.isWritable=Lt.isReadable=Lt.isStream=void 0;var Zh=typeof process=="object"&&process?process:{stdout:null,stderr:null},wl=require("node:events"),rd=FS(require("node:stream")),BS=require("node:string_decoder"),jS=t=>!!t&&typeof t=="object"&&(t instanceof ha||t instanceof rd.default||(0,Lt.isReadable)(t)||(0,Lt.isWritable)(t));Lt.isStream=jS;var RS=t=>!!t&&typeof t=="object"&&t instanceof wl.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==rd.default.Writable.prototype.pipe;Lt.isReadable=RS;var $S=t=>!!t&&typeof t=="object"&&t instanceof wl.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Lt.isWritable=$S;var Ri=Symbol("EOF"),$i=Symbol("maybeEmitEnd"),er=Symbol("emittedEnd"),oa=Symbol("emittingEnd"),js=Symbol("emittedError"),la=Symbol("closed"),ed=Symbol("read"),ca=Symbol("flush"),td=Symbol("flushChunk"),hi=Symbol("encoding"),is=Symbol("decoder"),xt=Symbol("flowing"),Rs=Symbol("paused"),rs=Symbol("resume"),bt=Symbol("buffer"),Dt=Symbol("pipes"),St=Symbol("bufferLength"),bl=Symbol("bufferPush"),ua=Symbol("bufferShift"),It=Symbol("objectMode"),pt=Symbol("destroyed"),Sl=Symbol("error"),El=Symbol("emitData"),id=Symbol("emitEnd"),Pl=Symbol("emitEnd2"),Pi=Symbol("async"),vl=Symbol("abort"),pa=Symbol("aborted"),$s=Symbol("signal"),vr=Symbol("dataListeners"),Qt=Symbol("discarded"),qs=t=>Promise.resolve().then(t),qS=t=>t(),US=t=>t==="end"||t==="finish"||t==="prefinish",KS=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,VS=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),fa=class{src;dest;opts;ondrain;constructor(e,i,r){this.src=e,this.dest=i,this.opts=r,this.ondrain=()=>e[rs](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Al=class extends fa{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,i,r){super(e,i,r),this.proxyErrors=s=>i.emit("error",s),e.on("error",this.proxyErrors)}},WS=t=>!!t.objectMode,YS=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",ha=class extends wl.EventEmitter{[xt]=!1;[Rs]=!1;[Dt]=[];[bt]=[];[It];[hi];[Pi];[is];[Ri]=!1;[er]=!1;[oa]=!1;[la]=!1;[js]=null;[St]=0;[pt]=!1;[$s];[pa]=!1;[vr]=0;[Qt]=!1;writable=!0;readable=!0;constructor(...e){let i=e[0]||{};if(super(),i.objectMode&&typeof i.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");WS(i)?(this[It]=!0,this[hi]=null):YS(i)?(this[hi]=i.encoding,this[It]=!1):(this[It]=!1,this[hi]=null),this[Pi]=!!i.async,this[is]=this[hi]?new BS.StringDecoder(this[hi]):null,i&&i.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[bt]}),i&&i.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Dt]});let{signal:r}=i;r&&(this[$s]=r,r.aborted?this[vl]():r.addEventListener("abort",()=>this[vl]()))}get bufferLength(){return this[St]}get encoding(){return this[hi]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[It]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Pi]}set async(e){this[Pi]=this[Pi]||!!e}[vl](){this[pa]=!0,this.emit("abort",this[$s]?.reason),this.destroy(this[$s]?.reason)}get aborted(){return this[pa]}set aborted(e){}write(e,i,r){if(this[pa])return!1;if(this[Ri])throw new Error("write after end");if(this[pt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof i=="function"&&(r=i,i="utf8"),i||(i="utf8");let s=this[Pi]?qs:qS;if(!this[It]&&!Buffer.isBuffer(e)){if(VS(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(KS(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[It]?(this[xt]&&this[St]!==0&&this[ca](!0),this[xt]?this.emit("data",e):this[bl](e),this[St]!==0&&this.emit("readable"),r&&s(r),this[xt]):e.length?(typeof e=="string"&&!(i===this[hi]&&!this[is]?.lastNeed)&&(e=Buffer.from(e,i)),Buffer.isBuffer(e)&&this[hi]&&(e=this[is].write(e)),this[xt]&&this[St]!==0&&this[ca](!0),this[xt]?this.emit("data",e):this[bl](e),this[St]!==0&&this.emit("readable"),r&&s(r),this[xt]):(this[St]!==0&&this.emit("readable"),r&&s(r),this[xt])}read(e){if(this[pt])return null;if(this[Qt]=!1,this[St]===0||e===0||e&&e>this[St])return this[$i](),null;this[It]&&(e=null),this[bt].length>1&&!this[It]&&(this[bt]=[this[hi]?this[bt].join(""):Buffer.concat(this[bt],this[St])]);let i=this[ed](e||null,this[bt][0]);return this[$i](),i}[ed](e,i){if(this[It])this[ua]();else{let r=i;e===r.length||e===null?this[ua]():typeof r=="string"?(this[bt][0]=r.slice(e),i=r.slice(0,e),this[St]-=e):(this[bt][0]=r.subarray(e),i=r.subarray(0,e),this[St]-=e)}return this.emit("data",i),!this[bt].length&&!this[Ri]&&this.emit("drain"),i}end(e,i,r){return typeof e=="function"&&(r=e,e=void 0),typeof i=="function"&&(r=i,i="utf8"),e!==void 0&&this.write(e,i),r&&this.once("end",r),this[Ri]=!0,this.writable=!1,(this[xt]||!this[Rs])&&this[$i](),this}[rs](){this[pt]||(!this[vr]&&!this[Dt].length&&(this[Qt]=!0),this[Rs]=!1,this[xt]=!0,this.emit("resume"),this[bt].length?this[ca]():this[Ri]?this[$i]():this.emit("drain"))}resume(){return this[rs]()}pause(){this[xt]=!1,this[Rs]=!0,this[Qt]=!1}get destroyed(){return this[pt]}get flowing(){return this[xt]}get paused(){return this[Rs]}[bl](e){this[It]?this[St]+=1:this[St]+=e.length,this[bt].push(e)}[ua](){return this[It]?this[St]-=1:this[St]-=this[bt][0].length,this[bt].shift()}[ca](e=!1){do;while(this[td](this[ua]())&&this[bt].length);!e&&!this[bt].length&&!this[Ri]&&this.emit("drain")}[td](e){return this.emit("data",e),this[xt]}pipe(e,i){if(this[pt])return e;this[Qt]=!1;let r=this[er];return i=i||{},e===Zh.stdout||e===Zh.stderr?i.end=!1:i.end=i.end!==!1,i.proxyErrors=!!i.proxyErrors,r?i.end&&e.end():(this[Dt].push(i.proxyErrors?new Al(this,e,i):new fa(this,e,i)),this[Pi]?qs(()=>this[rs]()):this[rs]()),e}unpipe(e){let i=this[Dt].find(r=>r.dest===e);i&&(this[Dt].length===1?(this[xt]&&this[vr]===0&&(this[xt]=!1),this[Dt]=[]):this[Dt].splice(this[Dt].indexOf(i),1),i.unpipe())}addListener(e,i){return this.on(e,i)}on(e,i){let r=super.on(e,i);if(e==="data")this[Qt]=!1,this[vr]++,!this[Dt].length&&!this[xt]&&this[rs]();else if(e==="readable"&&this[St]!==0)super.emit("readable");else if(US(e)&&this[er])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[js]){let s=i;this[Pi]?qs(()=>s.call(this,this[js])):s.call(this,this[js])}return r}removeListener(e,i){return this.off(e,i)}off(e,i){let r=super.off(e,i);return e==="data"&&(this[vr]=this.listeners("data").length,this[vr]===0&&!this[Qt]&&!this[Dt].length&&(this[xt]=!1)),r}removeAllListeners(e){let i=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[vr]=0,!this[Qt]&&!this[Dt].length&&(this[xt]=!1)),i}get emittedEnd(){return this[er]}[$i](){!this[oa]&&!this[er]&&!this[pt]&&this[bt].length===0&&this[Ri]&&(this[oa]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[la]&&this.emit("close"),this[oa]=!1)}emit(e,...i){let r=i[0];if(e!=="error"&&e!=="close"&&e!==pt&&this[pt])return!1;if(e==="data")return!this[It]&&!r?!1:this[Pi]?(qs(()=>this[El](r)),!0):this[El](r);if(e==="end")return this[id]();if(e==="close"){if(this[la]=!0,!this[er]&&!this[pt])return!1;let n=super.emit("close");return this.removeAllListeners("close"),n}else if(e==="error"){this[js]=r,super.emit(Sl,r);let n=!this[$s]||this.listeners("error").length?super.emit("error",r):!1;return this[$i](),n}else if(e==="resume"){let n=super.emit("resume");return this[$i](),n}else if(e==="finish"||e==="prefinish"){let n=super.emit(e);return this.removeAllListeners(e),n}let s=super.emit(e,...i);return this[$i](),s}[El](e){for(let r of this[Dt])r.dest.write(e)===!1&&this.pause();let i=this[Qt]?!1:super.emit("data",e);return this[$i](),i}[id](){return this[er]?!1:(this[er]=!0,this.readable=!1,this[Pi]?(qs(()=>this[Pl]()),!0):this[Pl]())}[Pl](){if(this[is]){let i=this[is].end();if(i){for(let r of this[Dt])r.dest.write(i);this[Qt]||super.emit("data",i)}}for(let i of this[Dt])i.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[It]||(e.dataLength=0);let i=this.promise();return this.on("data",r=>{e.push(r),this[It]||(e.dataLength+=r.length)}),await i,e}async concat(){if(this[It])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[hi]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,i)=>{this.on(pt,()=>i(new Error("stream destroyed"))),this.on("error",r=>i(r)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Qt]=!1;let e=!1,i=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return i();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[Ri])return i();let n,a,l=f=>{this.off("data",c),this.off("end",o),this.off(pt,u),i(),a(f)},c=f=>{this.off("error",l),this.off("end",o),this.off(pt,u),this.pause(),n({value:f,done:!!this[Ri]})},o=()=>{this.off("error",l),this.off("data",c),this.off(pt,u),i(),n({done:!0,value:void 0})},u=()=>l(new Error("stream destroyed"));return new Promise((f,d)=>{a=d,n=f,this.once(pt,u),this.once("error",l),this.once("end",o),this.once("data",c)})},throw:i,return:i,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[Qt]=!1;let e=!1,i=()=>(this.pause(),this.off(Sl,i),this.off(pt,i),this.off("end",i),e=!0,{done:!0,value:void 0}),r=()=>{if(e)return i();let s=this.read();return s===null?i():{done:!1,value:s}};return this.once("end",i),this.once(Sl,i),this.once(pt,i),{next:r,throw:i,return:i,[Symbol.iterator](){return this}}}destroy(e){if(this[pt])return e?this.emit("error",e):this.emit(pt),this;this[pt]=!0,this[Qt]=!0,this[bt].length=0,this[St]=0;let i=this;return typeof i.close=="function"&&!this[la]&&i.close(),e?this.emit("error",e):this.emit(pt),this}static get isStream(){return Lt.isStream}};Lt.Minipass=ha});var gd=_(Ke=>{"use strict";var zS=Ke&&Ke.__createBinding||(Object.create?function(t,e,i,r){r===void 0&&(r=i);var s=Object.getOwnPropertyDescriptor(e,i);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,r,s)}:function(t,e,i,r){r===void 0&&(r=i),t[r]=e[i]}),JS=Ke&&Ke.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),XS=Ke&&Ke.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var i in t)i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)&&zS(e,t,i);return JS(e,t),e};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.PathScurry=Ke.Path=Ke.PathScurryDarwin=Ke.PathScurryPosix=Ke.PathScurryWin32=Ke.PathScurryBase=Ke.PathPosix=Ke.PathWin32=Ke.PathBase=Ke.ChildrenCache=Ke.ResolveCache=void 0;var cd=Qh(),ga=require("node:path"),HS=require("node:url"),Ks=require("fs"),GS=XS(require("node:fs")),QS=Ks.realpathSync.native,da=require("node:fs/promises"),sd=Cl(),Vs={lstatSync:Ks.lstatSync,readdir:Ks.readdir,readdirSync:Ks.readdirSync,readlinkSync:Ks.readlinkSync,realpathSync:QS,promises:{lstat:da.lstat,readdir:da.readdir,readlink:da.readlink,realpath:da.realpath}},ud=t=>!t||t===Vs||t===GS?Vs:{...Vs,...t,promises:{...Vs.promises,...t.promises||{}}},pd=/^\\\\\?\\([a-z]:)\\?$/i,ZS=t=>t.replace(/\//g,"\\").replace(pd,"$1\\"),eE=/[\\\/]/,ni=0,fd=1,hd=2,vi=4,dd=6,md=8,Ar=10,yd=12,si=15,Us=~si,Il=16,nd=32,Ws=64,di=128,ma=256,Ta=512,ad=Ws|di|Ta,tE=1023,kl=t=>t.isFile()?md:t.isDirectory()?vi:t.isSymbolicLink()?Ar:t.isCharacterDevice()?hd:t.isBlockDevice()?dd:t.isSocket()?yd:t.isFIFO()?fd:ni,od=new Map,Ys=t=>{let e=od.get(t);if(e)return e;let i=t.normalize("NFKD");return od.set(t,i),i},ld=new Map,ya=t=>{let e=ld.get(t);if(e)return e;let i=Ys(t.toLowerCase());return ld.set(t,i),i},zs=class extends cd.LRUCache{constructor(){super({max:256})}};Ke.ResolveCache=zs;var xa=class extends cd.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:i=>i.length+1})}};Ke.ChildrenCache=xa;var Td=Symbol("PathScurry setAsCwd"),vt=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#n;get mode(){return this.#n}#s;get nlink(){return this.#s}#a;get uid(){return this.#a}#b;get gid(){return this.#b}#T;get rdev(){return this.#T}#o;get blksize(){return this.#o}#p;get ino(){return this.#p}#l;get size(){return this.#l}#c;get blocks(){return this.#c}#i;get atimeMs(){return this.#i}#f;get mtimeMs(){return this.#f}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#m;get atime(){return this.#m}#C;get mtime(){return this.#C}#y;get ctime(){return this.#y}#I;get birthtime(){return this.#I}#E;#S;#x;#A;#h;#_;#r;#D;#P;#O;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,i=ni,r,s,n,a,l){this.name=e,this.#E=n?ya(e):Ys(e),this.#r=i&tE,this.nocase=n,this.roots=s,this.root=r||this,this.#D=a,this.#x=l.fullpath,this.#h=l.relative,this.#_=l.relativePosix,this.parent=l.parent,this.parent?this.#e=this.parent.#e:this.#e=ud(l.fs)}depth(){return this.#S!==void 0?this.#S:this.parent?this.#S=this.parent.depth()+1:this.#S=0}childrenCache(){return this.#D}resolve(e){if(!e)return this;let i=this.getRootString(e),s=e.substring(i.length).split(this.splitSep);return i?this.getRoot(i).#v(s):this.#v(s)}#v(e){let i=this;for(let r of e)i=i.child(r);return i}children(){let e=this.#D.get(this);if(e)return e;let i=Object.assign([],{provisional:0});return this.#D.set(this,i),this.#r&=~Il,i}child(e,i){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let r=this.children(),s=this.nocase?ya(e):Ys(e);for(let c of r)if(c.#E===s)return c;let n=this.parent?this.sep:"",a=this.#x?this.#x+n+e:void 0,l=this.newChild(e,ni,{...i,parent:this,fullpath:a});return this.canReaddir()||(l.#r|=di),r.push(l),l}relative(){if(this.isCWD)return"";if(this.#h!==void 0)return this.#h;let e=this.name,i=this.parent;if(!i)return this.#h=this.name;let r=i.relative();return r+(!r||!i.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#_!==void 0)return this.#_;let e=this.name,i=this.parent;if(!i)return this.#_=this.fullpathPosix();let r=i.relativePosix();return r+(!r||!i.parent?"":"/")+e}fullpath(){if(this.#x!==void 0)return this.#x;let e=this.name,i=this.parent;if(!i)return this.#x=this.name;let s=i.fullpath()+(i.parent?this.sep:"")+e;return this.#x=s}fullpathPosix(){if(this.#A!==void 0)return this.#A;if(this.sep==="/")return this.#A=this.fullpath();if(!this.parent){let s=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(s)?this.#A=`//?/${s}`:this.#A=s}let e=this.parent,i=e.fullpathPosix(),r=i+(!i||!e.parent?"":"/")+this.name;return this.#A=r}isUnknown(){return(this.#r&si)===ni}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#r&si)===md}isDirectory(){return(this.#r&si)===vi}isCharacterDevice(){return(this.#r&si)===hd}isBlockDevice(){return(this.#r&si)===dd}isFIFO(){return(this.#r&si)===fd}isSocket(){return(this.#r&si)===yd}isSymbolicLink(){return(this.#r&Ar)===Ar}lstatCached(){return this.#r&nd?this:void 0}readlinkCached(){return this.#P}realpathCached(){return this.#O}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#P)return!0;if(!this.parent)return!1;let e=this.#r&si;return!(e!==ni&&e!==Ar||this.#r&ma||this.#r&di)}calledReaddir(){return!!(this.#r&Il)}isENOENT(){return!!(this.#r&di)}isNamed(e){return this.nocase?this.#E===ya(e):this.#E===Ys(e)}async readlink(){let e=this.#P;if(e)return e;if(this.canReadlink()&&this.parent)try{let i=await this.#e.promises.readlink(this.fullpath()),r=(await this.parent.realpath())?.resolve(i);if(r)return this.#P=r}catch(i){this.#B(i.code);return}}readlinkSync(){let e=this.#P;if(e)return e;if(this.canReadlink()&&this.parent)try{let i=this.#e.readlinkSync(this.fullpath()),r=this.parent.realpathSync()?.resolve(i);if(r)return this.#P=r}catch(i){this.#B(i.code);return}}#$(e){this.#r|=Il;for(let i=e.provisional;i<e.length;i++){let r=e[i];r&&r.#L()}}#L(){this.#r&di||(this.#r=(this.#r|di)&Us,this.#F())}#F(){let e=this.children();e.provisional=0;for(let i of e)i.#L()}#q(){this.#r|=Ta,this.#w()}#w(){if(this.#r&Ws)return;let e=this.#r;(e&si)===vi&&(e&=Us),this.#r=e|Ws,this.#F()}#k(e=""){e==="ENOTDIR"||e==="EPERM"?this.#w():e==="ENOENT"?this.#L():this.children().provisional=0}#U(e=""){e==="ENOTDIR"?this.parent.#w():e==="ENOENT"&&this.#L()}#B(e=""){let i=this.#r;i|=ma,e==="ENOENT"&&(i|=di),(e==="EINVAL"||e==="UNKNOWN")&&(i&=Us),this.#r=i,e==="ENOTDIR"&&this.parent&&this.parent.#w()}#M(e,i){return this.#K(e,i)||this.#u(e,i)}#u(e,i){let r=kl(e),s=this.newChild(e.name,r,{parent:this}),n=s.#r&si;return n!==vi&&n!==Ar&&n!==ni&&(s.#r|=Ws),i.unshift(s),i.provisional++,s}#K(e,i){for(let r=i.provisional;r<i.length;r++){let s=i[r];if((this.nocase?ya(e.name):Ys(e.name))===s.#E)return this.#j(e,s,r,i)}}#j(e,i,r,s){let n=i.name;return i.#r=i.#r&Us|kl(e),n!==e.name&&(i.name=e.name),r!==s.provisional&&(r===s.length-1?s.pop():s.splice(r,1),s.unshift(i)),s.provisional++,i}async lstat(){if((this.#r&di)===0)try{return this.#N(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#U(e.code)}}lstatSync(){if((this.#r&di)===0)try{return this.#N(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#U(e.code)}}#N(e){let{atime:i,atimeMs:r,birthtime:s,birthtimeMs:n,blksize:a,blocks:l,ctime:c,ctimeMs:o,dev:u,gid:f,ino:d,mode:m,mtime:S,mtimeMs:P,nlink:A,rdev:C,size:k,uid:D}=e;this.#m=i,this.#i=r,this.#I=s,this.#d=n,this.#o=a,this.#c=l,this.#y=c,this.#g=o,this.#t=u,this.#b=f,this.#p=d,this.#n=m,this.#C=S,this.#f=P,this.#s=A,this.#T=C,this.#l=k,this.#a=D;let L=kl(e);this.#r=this.#r&Us|L|nd,L!==ni&&L!==vi&&L!==Ar&&(this.#r|=Ws)}#R=[];#W=!1;#Y(e){this.#W=!1;let i=this.#R.slice();this.#R.length=0,i.forEach(r=>r(null,e))}readdirCB(e,i=!1){if(!this.canReaddir()){i?e(null,[]):queueMicrotask(()=>e(null,[]));return}let r=this.children();if(this.calledReaddir()){let n=r.slice(0,r.provisional);i?e(null,n):queueMicrotask(()=>e(null,n));return}if(this.#R.push(e),this.#W)return;this.#W=!0;let s=this.fullpath();this.#e.readdir(s,{withFileTypes:!0},(n,a)=>{if(n)this.#k(n.code),r.provisional=0;else{for(let l of a)this.#M(l,r);this.#$(r)}this.#Y(r.slice(0,r.provisional))})}#V;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let i=this.fullpath();if(this.#V)await this.#V;else{let r=()=>{};this.#V=new Promise(s=>r=s);try{for(let s of await this.#e.promises.readdir(i,{withFileTypes:!0}))this.#M(s,e);this.#$(e)}catch(s){this.#k(s.code),e.provisional=0}this.#V=void 0,r()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let i=this.fullpath();try{for(let r of this.#e.readdirSync(i,{withFileTypes:!0}))this.#M(r,e);this.#$(e)}catch(r){this.#k(r.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#r&ad)return!1;let e=si&this.#r;return e===ni||e===vi||e===Ar}shouldWalk(e,i){return(this.#r&vi)===vi&&!(this.#r&ad)&&!e.has(this)&&(!i||i(this))}async realpath(){if(this.#O)return this.#O;if(!((Ta|ma|di)&this.#r))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#O=this.resolve(e)}catch{this.#q()}}realpathSync(){if(this.#O)return this.#O;if(!((Ta|ma|di)&this.#r))try{let e=this.#e.realpathSync(this.fullpath());return this.#O=this.resolve(e)}catch{this.#q()}}[Td](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let i=new Set([]),r=[],s=this;for(;s&&s.parent;)i.add(s),s.#h=r.join(this.sep),s.#_=r.join("/"),s=s.parent,r.push("..");for(s=e;s&&s.parent&&!i.has(s);)s.#h=void 0,s.#_=void 0,s=s.parent}};Ke.PathBase=vt;var Js=class t extends vt{sep="\\";splitSep=eE;constructor(e,i=ni,r,s,n,a,l){super(e,i,r,s,n,a,l)}newChild(e,i=ni,r={}){return new t(e,i,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return ga.win32.parse(e).root}getRoot(e){if(e=ZS(e.toUpperCase()),e===this.root.name)return this.root;for(let[i,r]of Object.entries(this.roots))if(this.sameRoot(e,i))return this.roots[e]=r;return this.roots[e]=new Gs(e,this).root}sameRoot(e,i=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(pd,"$1\\"),e===i}};Ke.PathWin32=Js;var Xs=class t extends vt{splitSep="/";sep="/";constructor(e,i=ni,r,s,n,a,l){super(e,i,r,s,n,a,l)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,i=ni,r={}){return new t(e,i,this.root,this.roots,this.nocase,this.childrenCache(),r)}};Ke.PathPosix=Xs;var Hs=class{root;rootPath;roots;cwd;#e;#t;#n;nocase;#s;constructor(e=process.cwd(),i,r,{nocase:s,childrenCacheSize:n=16*1024,fs:a=Vs}={}){this.#s=ud(a),(e instanceof URL||e.startsWith("file://"))&&(e=(0,HS.fileURLToPath)(e));let l=i.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(l),this.#e=new zs,this.#t=new zs,this.#n=new xa(n);let c=l.substring(this.rootPath.length).split(r);if(c.length===1&&!c[0]&&c.pop(),s===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=s,this.root=this.newRoot(this.#s),this.roots[this.rootPath]=this.root;let o=this.root,u=c.length-1,f=i.sep,d=this.rootPath,m=!1;for(let S of c){let P=u--;o=o.child(S,{relative:new Array(P).fill("..").join(f),relativePosix:new Array(P).fill("..").join("/"),fullpath:d+=(m?"":f)+S}),m=!0}this.cwd=o}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let i="";for(let n=e.length-1;n>=0;n--){let a=e[n];if(!(!a||a===".")&&(i=i?`${a}/${i}`:a,this.isAbsolute(a)))break}let r=this.#e.get(i);if(r!==void 0)return r;let s=this.cwd.resolve(i).fullpath();return this.#e.set(i,s),s}resolvePosix(...e){let i="";for(let n=e.length-1;n>=0;n--){let a=e[n];if(!(!a||a===".")&&(i=i?`${a}/${i}`:a,this.isAbsolute(a)))break}let r=this.#t.get(i);if(r!==void 0)return r;let s=this.cwd.resolve(i).fullpathPosix();return this.#t.set(i,s),s}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,i={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof vt||(i=e,e=this.cwd);let{withFileTypes:r}=i;if(e.canReaddir()){let s=await e.readdir();return r?s:s.map(n=>n.name)}else return[]}readdirSync(e=this.cwd,i={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof vt||(i=e,e=this.cwd);let{withFileTypes:r=!0}=i;return e.canReaddir()?r?e.readdirSync():e.readdirSync().map(s=>s.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:i}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof vt||(i=e.withFileTypes,e=this.cwd);let r=await e.readlink();return i?r:r?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:i}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof vt||(i=e.withFileTypes,e=this.cwd);let r=e.readlinkSync();return i?r:r?.fullpath()}async realpath(e=this.cwd,{withFileTypes:i}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof vt||(i=e.withFileTypes,e=this.cwd);let r=await e.realpath();return i?r:r?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:i}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof vt||(i=e.withFileTypes,e=this.cwd);let r=e.realpathSync();return i?r:r?.fullpath()}async walk(e=this.cwd,i={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof vt||(i=e,e=this.cwd);let{withFileTypes:r=!0,follow:s=!1,filter:n,walkFilter:a}=i,l=[];(!n||n(e))&&l.push(r?e:e.fullpath());let c=new Set,o=(f,d)=>{c.add(f),f.readdirCB((m,S)=>{if(m)return d(m);let P=S.length;if(!P)return d();let A=()=>{--P===0&&d()};for(let C of S)(!n||n(C))&&l.push(r?C:C.fullpath()),s&&C.isSymbolicLink()?C.realpath().then(k=>k?.isUnknown()?k.lstat():k).then(k=>k?.shouldWalk(c,a)?o(k,A):A()):C.shouldWalk(c,a)?o(C,A):A()},!0)},u=e;return new Promise((f,d)=>{o(u,m=>{if(m)return d(m);f(l)})})}walkSync(e=this.cwd,i={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof vt||(i=e,e=this.cwd);let{withFileTypes:r=!0,follow:s=!1,filter:n,walkFilter:a}=i,l=[];(!n||n(e))&&l.push(r?e:e.fullpath());let c=new Set([e]);for(let o of c){let u=o.readdirSync();for(let f of u){(!n||n(f))&&l.push(r?f:f.fullpath());let d=f;if(f.isSymbolicLink()){if(!(s&&(d=f.realpathSync())))continue;d.isUnknown()&&d.lstatSync()}d.shouldWalk(c,a)&&c.add(d)}}return l}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,i={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof vt||(i=e,e=this.cwd),this.stream(e,i)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,i={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof vt||(i=e,e=this.cwd);let{withFileTypes:r=!0,follow:s=!1,filter:n,walkFilter:a}=i;(!n||n(e))&&(yield r?e:e.fullpath());let l=new Set([e]);for(let c of l){let o=c.readdirSync();for(let u of o){(!n||n(u))&&(yield r?u:u.fullpath());let f=u;if(u.isSymbolicLink()){if(!(s&&(f=u.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(l,a)&&l.add(f)}}}stream(e=this.cwd,i={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof vt||(i=e,e=this.cwd);let{withFileTypes:r=!0,follow:s=!1,filter:n,walkFilter:a}=i,l=new sd.Minipass({objectMode:!0});(!n||n(e))&&l.write(r?e:e.fullpath());let c=new Set,o=[e],u=0,f=()=>{let d=!1;for(;!d;){let m=o.shift();if(!m){u===0&&l.end();return}u++,c.add(m);let S=(A,C,k=!1)=>{if(A)return l.emit("error",A);if(s&&!k){let D=[];for(let L of C)L.isSymbolicLink()&&D.push(L.realpath().then(B=>B?.isUnknown()?B.lstat():B));if(D.length){Promise.all(D).then(()=>S(null,C,!0));return}}for(let D of C)D&&(!n||n(D))&&(l.write(r?D:D.fullpath())||(d=!0));u--;for(let D of C){let L=D.realpathCached()||D;L.shouldWalk(c,a)&&o.push(L)}d&&!l.flowing?l.once("drain",f):P||f()},P=!0;m.readdirCB(S,!0),P=!1}};return f(),l}streamSync(e=this.cwd,i={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof vt||(i=e,e=this.cwd);let{withFileTypes:r=!0,follow:s=!1,filter:n,walkFilter:a}=i,l=new sd.Minipass({objectMode:!0}),c=new Set;(!n||n(e))&&l.write(r?e:e.fullpath());let o=[e],u=0,f=()=>{let d=!1;for(;!d;){let m=o.shift();if(!m){u===0&&l.end();return}u++,c.add(m);let S=m.readdirSync();for(let P of S)(!n||n(P))&&(l.write(r?P:P.fullpath())||(d=!0));u--;for(let P of S){let A=P;if(P.isSymbolicLink()){if(!(s&&(A=P.realpathSync())))continue;A.isUnknown()&&A.lstatSync()}A.shouldWalk(c,a)&&o.push(A)}}d&&!l.flowing&&l.once("drain",f)};return f(),l}chdir(e=this.cwd){let i=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[Td](i)}};Ke.PathScurryBase=Hs;var Gs=class extends Hs{sep="\\";constructor(e=process.cwd(),i={}){let{nocase:r=!0}=i;super(e,ga.win32,"\\",{...i,nocase:r}),this.nocase=r;for(let s=this.cwd;s;s=s.parent)s.nocase=this.nocase}parseRootPath(e){return ga.win32.parse(e).root.toUpperCase()}newRoot(e){return new Js(this.rootPath,vi,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};Ke.PathScurryWin32=Gs;var Qs=class extends Hs{sep="/";constructor(e=process.cwd(),i={}){let{nocase:r=!1}=i;super(e,ga.posix,"/",{...i,nocase:r}),this.nocase=r}parseRootPath(e){return"/"}newRoot(e){return new Xs(this.rootPath,vi,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};Ke.PathScurryPosix=Qs;var ba=class extends Qs{constructor(e=process.cwd(),i={}){let{nocase:r=!0}=i;super(e,{...i,nocase:r})}};Ke.PathScurryDarwin=ba;Ke.Path=process.platform==="win32"?Js:Xs;Ke.PathScurry=process.platform==="win32"?Gs:process.platform==="darwin"?ba:Qs});var Ol=_(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.Pattern=void 0;var iE=Qi(),rE=t=>t.length>=1,sE=t=>t.length>=1,_l=class t{#e;#t;#n;length;#s;#a;#b;#T;#o;#p;#l=!0;constructor(e,i,r,s){if(!rE(e))throw new TypeError("empty pattern list");if(!sE(i))throw new TypeError("empty glob list");if(i.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=i,this.#n=r,this.#s=s,this.#n===0){if(this.isUNC()){let[n,a,l,c,...o]=this.#e,[u,f,d,m,...S]=this.#t;o[0]===""&&(o.shift(),S.shift());let P=[n,a,l,c,""].join("/"),A=[u,f,d,m,""].join("/");this.#e=[P,...o],this.#t=[A,...S],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[n,...a]=this.#e,[l,...c]=this.#t;a[0]===""&&(a.shift(),c.shift());let o=n+"/",u=l+"/";this.#e=[o,...a],this.#t=[u,...c],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===iE.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#b=this.#b||(this.#n===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#a!==void 0?this.#a:this.hasMore()?(this.#a=new t(this.#e,this.#t,this.#n+1,this.#s),this.#a.#p=this.#p,this.#a.#o=this.#o,this.#a.#T=this.#T,this.#a):this.#a=null}isUNC(){let e=this.#e;return this.#o!==void 0?this.#o:this.#o=this.#s==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#T!==void 0?this.#T:this.#T=this.#s==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#p!==void 0?this.#p:this.#p=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#l?!1:(this.#l=!1,!0)}};Sa.Pattern=_l});var Dl=_(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.Ignore=void 0;var xd=Qi(),nE=Ol(),aE=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Nl=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:i,nocase:r,noext:s,noglobstar:n,platform:a=aE}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:i,nocase:r,noext:s,noglobstar:n,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let l of e)this.add(l)}add(e){let i=new xd.Minimatch(e,this.mmopts);for(let r=0;r<i.set.length;r++){let s=i.set[r],n=i.globParts[r];if(!s||!n)throw new Error("invalid pattern object");for(;s[0]==="."&&n[0]===".";)s.shift(),n.shift();let a=new nE.Pattern(s,n,0,this.platform),l=new xd.Minimatch(a.globString(),this.mmopts),c=n[n.length-1]==="**",o=a.isAbsolute();o?this.absolute.push(l):this.relative.push(l),c&&(o?this.absoluteChildren.push(l):this.relativeChildren.push(l))}}ignored(e){let i=e.fullpath(),r=`${i}/`,s=e.relative()||".",n=`${s}/`;for(let a of this.relative)if(a.match(s)||a.match(n))return!0;for(let a of this.absolute)if(a.match(i)||a.match(r))return!0;return!1}childrenIgnored(e){let i=e.fullpath()+"/",r=(e.relative()||".")+"/";for(let s of this.relativeChildren)if(s.match(r))return!0;for(let s of this.absoluteChildren)if(s.match(i))return!0;return!1}};Ea.Ignore=Nl});var Sd=_(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.Processor=Ai.SubWalks=Ai.MatchRecord=Ai.HasWalkedCache=void 0;var bd=Qi(),Pa=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,i){return this.store.get(e.fullpath())?.has(i.globString())}storeWalked(e,i){let r=e.fullpath(),s=this.store.get(r);s?s.add(i.globString()):this.store.set(r,new Set([i.globString()]))}};Ai.HasWalkedCache=Pa;var va=class{store=new Map;add(e,i,r){let s=(i?2:0)|(r?1:0),n=this.store.get(e);this.store.set(e,n===void 0?s:s&n)}entries(){return[...this.store.entries()].map(([e,i])=>[e,!!(i&2),!!(i&1)])}};Ai.MatchRecord=va;var Aa=class{store=new Map;add(e,i){if(!e.canReaddir())return;let r=this.store.get(e);r?r.find(s=>s.globString()===i.globString())||r.push(i):this.store.set(e,[i])}get(e){let i=this.store.get(e);if(!i)throw new Error("attempting to walk unknown path");return i}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};Ai.SubWalks=Aa;var Ll=class t{hasWalkedCache;matches=new va;subwalks=new Aa;patterns;follow;dot;opts;constructor(e,i){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=i?i.copy():new Pa}processPatterns(e,i){this.patterns=i;let r=i.map(s=>[e,s]);for(let[s,n]of r){this.hasWalkedCache.storeWalked(s,n);let a=n.root(),l=n.isAbsolute()&&this.opts.absolute!==!1;if(a){s=s.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);let f=n.rest();if(f)n=f;else{this.matches.add(s,!0,!1);continue}}if(s.isENOENT())continue;let c,o,u=!1;for(;typeof(c=n.pattern())=="string"&&(o=n.rest());)s=s.resolve(c),n=o,u=!0;if(c=n.pattern(),o=n.rest(),u){if(this.hasWalkedCache.hasWalked(s,n))continue;this.hasWalkedCache.storeWalked(s,n)}if(typeof c=="string"){let f=c===".."||c===""||c===".";this.matches.add(s.resolve(c),l,f);continue}else if(c===bd.GLOBSTAR){(!s.isSymbolicLink()||this.follow||n.checkFollowGlobstar())&&this.subwalks.add(s,n);let f=o?.pattern(),d=o?.rest();if(!o||(f===""||f===".")&&!d)this.matches.add(s,l,f===""||f===".");else if(f===".."){let m=s.parent||s;d?this.hasWalkedCache.hasWalked(m,d)||this.subwalks.add(m,d):this.matches.add(m,l,!0)}}else c instanceof RegExp&&this.subwalks.add(s,n)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,i){let r=this.subwalks.get(e),s=this.child();for(let n of i)for(let a of r){let l=a.isAbsolute(),c=a.pattern(),o=a.rest();c===bd.GLOBSTAR?s.testGlobstar(n,a,o,l):c instanceof RegExp?s.testRegExp(n,c,o,l):s.testString(n,c,o,l)}return s}testGlobstar(e,i,r,s){if((this.dot||!e.name.startsWith("."))&&(i.hasMore()||this.matches.add(e,s,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,i):e.isSymbolicLink()&&(r&&i.checkFollowGlobstar()?this.subwalks.add(e,r):i.markFollowGlobstar()&&this.subwalks.add(e,i)))),r){let n=r.pattern();if(typeof n=="string"&&n!==".."&&n!==""&&n!==".")this.testString(e,n,r.rest(),s);else if(n===".."){let a=e.parent||e;this.subwalks.add(a,r)}else n instanceof RegExp&&this.testRegExp(e,n,r.rest(),s)}}testRegExp(e,i,r,s){i.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,s,!1))}testString(e,i,r,s){e.isNamed(i)&&(r?this.subwalks.add(e,r):this.matches.add(e,s,!1))}};Ai.Processor=Ll});var vd=_(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.GlobStream=tr.GlobWalker=tr.GlobUtil=void 0;var oE=Cl(),Ed=Dl(),Pd=Sd(),lE=(t,e)=>typeof t=="string"?new Ed.Ignore([t],e):Array.isArray(t)?new Ed.Ignore(t,e):t,Zs=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#n;signal;maxDepth;includeChildMatches;constructor(e,i,r){if(this.patterns=e,this.path=i,this.opts=r,this.#n=!r.posix&&r.platform==="win32"?"\\":"/",this.includeChildMatches=r.includeChildMatches!==!1,(r.ignore||!this.includeChildMatches)&&(this.#t=lE(r.ignore??[],r),!this.includeChildMatches&&typeof this.#t.add!="function")){let s="cannot ignore child matches, ignore lacks add() method.";throw new Error(s)}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#s(e){return this.seen.has(e)||!!this.#t?.ignored?.(e)}#a(e){return!!this.#t?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,i){if(i&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||await e.realpath(),!r)return;e=r}let n=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){let a=await n.realpath();a&&(a.isUnknown()||this.opts.stat)&&await a.lstat()}return this.matchCheckTest(n,i)}matchCheckTest(e,i){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!i||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#s(e)?e:void 0}matchCheckSync(e,i){if(i&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||e.realpathSync(),!r)return;e=r}let n=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){let a=n.realpathSync();a&&(a?.isUnknown()||this.opts.stat)&&a.lstatSync()}return this.matchCheckTest(n,i)}matchFinish(e,i){if(this.#s(e))return;if(!this.includeChildMatches&&this.#t?.add){let n=`${e.relativePosix()}/**`;this.#t.add(n)}let r=this.opts.absolute===void 0?i:this.opts.absolute;this.seen.add(e);let s=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){let n=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(n+s)}else{let n=this.opts.posix?e.relativePosix():e.relative(),a=this.opts.dotRelative&&!n.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(n?a+n+s:"."+s)}}async match(e,i,r){let s=await this.matchCheck(e,r);s&&this.matchFinish(s,i)}matchSync(e,i,r){let s=this.matchCheckSync(e,r);s&&this.matchFinish(s,i)}walkCB(e,i,r){this.signal?.aborted&&r(),this.walkCB2(e,i,new Pd.Processor(this.opts),r)}walkCB2(e,i,r,s){if(this.#a(e))return s();if(this.signal?.aborted&&s(),this.paused){this.onResume(()=>this.walkCB2(e,i,r,s));return}r.processPatterns(e,i);let n=1,a=()=>{--n===0&&s()};for(let[l,c,o]of r.matches.entries())this.#s(l)||(n++,this.match(l,c,o).then(()=>a()));for(let l of r.subwalkTargets()){if(this.maxDepth!==1/0&&l.depth()>=this.maxDepth)continue;n++;let c=l.readdirCached();l.calledReaddir()?this.walkCB3(l,c,r,a):l.readdirCB((o,u)=>this.walkCB3(l,u,r,a),!0)}a()}walkCB3(e,i,r,s){r=r.filterEntries(e,i);let n=1,a=()=>{--n===0&&s()};for(let[l,c,o]of r.matches.entries())this.#s(l)||(n++,this.match(l,c,o).then(()=>a()));for(let[l,c]of r.subwalks.entries())n++,this.walkCB2(l,c,r.child(),a);a()}walkCBSync(e,i,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,i,new Pd.Processor(this.opts),r)}walkCB2Sync(e,i,r,s){if(this.#a(e))return s();if(this.signal?.aborted&&s(),this.paused){this.onResume(()=>this.walkCB2Sync(e,i,r,s));return}r.processPatterns(e,i);let n=1,a=()=>{--n===0&&s()};for(let[l,c,o]of r.matches.entries())this.#s(l)||this.matchSync(l,c,o);for(let l of r.subwalkTargets()){if(this.maxDepth!==1/0&&l.depth()>=this.maxDepth)continue;n++;let c=l.readdirSync();this.walkCB3Sync(l,c,r,a)}a()}walkCB3Sync(e,i,r,s){r=r.filterEntries(e,i);let n=1,a=()=>{--n===0&&s()};for(let[l,c,o]of r.matches.entries())this.#s(l)||this.matchSync(l,c,o);for(let[l,c]of r.subwalks.entries())n++,this.walkCB2Sync(l,c,r.child(),a);a()}};tr.GlobUtil=Zs;var Ml=class extends Zs{matches=new Set;constructor(e,i,r){super(e,i,r)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,i)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?i(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};tr.GlobWalker=Ml;var Fl=class extends Zs{results;constructor(e,i,r){super(e,i,r),this.results=new oE.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};tr.GlobStream=Fl});var jl=_(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.Glob=void 0;var cE=Qi(),uE=require("node:url"),wa=gd(),pE=Ol(),Ca=vd(),fE=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Bl=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,i){if(!i)throw new TypeError("glob options required");if(this.withFileTypes=!!i.withFileTypes,this.signal=i.signal,this.follow=!!i.follow,this.dot=!!i.dot,this.dotRelative=!!i.dotRelative,this.nodir=!!i.nodir,this.mark=!!i.mark,i.cwd?(i.cwd instanceof URL||i.cwd.startsWith("file://"))&&(i.cwd=(0,uE.fileURLToPath)(i.cwd)):this.cwd="",this.cwd=i.cwd||"",this.root=i.root,this.magicalBraces=!!i.magicalBraces,this.nobrace=!!i.nobrace,this.noext=!!i.noext,this.realpath=!!i.realpath,this.absolute=i.absolute,this.includeChildMatches=i.includeChildMatches!==!1,this.noglobstar=!!i.noglobstar,this.matchBase=!!i.matchBase,this.maxDepth=typeof i.maxDepth=="number"?i.maxDepth:1/0,this.stat=!!i.stat,this.ignore=i.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(c=>c.replace(/\\/g,"/"))),this.matchBase){if(i.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(c=>c.includes("/")?c:`./**/${c}`)}if(this.pattern=e,this.platform=i.platform||fE,this.opts={...i,platform:this.platform},i.scurry){if(this.scurry=i.scurry,i.nocase!==void 0&&i.nocase!==i.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let c=i.platform==="win32"?wa.PathScurryWin32:i.platform==="darwin"?wa.PathScurryDarwin:i.platform?wa.PathScurryPosix:wa.PathScurry;this.scurry=new c(this.cwd,{nocase:i.nocase,fs:i.fs})}this.nocase=this.scurry.nocase;let r=this.platform==="darwin"||this.platform==="win32",s={...i,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},n=this.pattern.map(c=>new cE.Minimatch(c,s)),[a,l]=n.reduce((c,o)=>(c[0].push(...o.set),c[1].push(...o.globParts),c),[[],[]]);this.patterns=a.map((c,o)=>{let u=l[o];if(!u)throw new Error("invalid pattern object");return new pE.Pattern(c,u,0,this.platform)})}async walk(){return[...await new Ca.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Ca.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Ca.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Ca.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};Ia.Glob=Bl});var Rl=_(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.hasMagic=void 0;var hE=Qi(),dE=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let i of t)if(new hE.Minimatch(i,e).hasMagic())return!0;return!1};ka.hasMagic=dE});var Id=_(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.glob=Ce.sync=Ce.iterate=Ce.iterateSync=Ce.stream=Ce.streamSync=Ce.Ignore=Ce.hasMagic=Ce.Glob=Ce.unescape=Ce.escape=void 0;Ce.globStreamSync=en;Ce.globStream=$l;Ce.globSync=ql;Ce.globIterateSync=tn;Ce.globIterate=Ul;var Ad=Qi(),wr=jl(),mE=Rl(),Cd=Qi();Object.defineProperty(Ce,"escape",{enumerable:!0,get:function(){return Cd.escape}});Object.defineProperty(Ce,"unescape",{enumerable:!0,get:function(){return Cd.unescape}});var yE=jl();Object.defineProperty(Ce,"Glob",{enumerable:!0,get:function(){return yE.Glob}});var TE=Rl();Object.defineProperty(Ce,"hasMagic",{enumerable:!0,get:function(){return TE.hasMagic}});var gE=Dl();Object.defineProperty(Ce,"Ignore",{enumerable:!0,get:function(){return gE.Ignore}});function en(t,e={}){return new wr.Glob(t,e).streamSync()}function $l(t,e={}){return new wr.Glob(t,e).stream()}function ql(t,e={}){return new wr.Glob(t,e).walkSync()}async function wd(t,e={}){return new wr.Glob(t,e).walk()}function tn(t,e={}){return new wr.Glob(t,e).iterateSync()}function Ul(t,e={}){return new wr.Glob(t,e).iterate()}Ce.streamSync=en;Ce.stream=Object.assign($l,{sync:en});Ce.iterateSync=tn;Ce.iterate=Object.assign(Ul,{sync:tn});Ce.sync=Object.assign(ql,{stream:en,iterate:tn});Ce.glob=Object.assign(wd,{glob:wd,globSync:ql,sync:Ce.sync,globStream:$l,stream:Ce.stream,globStreamSync:en,streamSync:Ce.streamSync,globIterate:Ul,iterate:Ce.iterate,globIterateSync:tn,iterateSync:Ce.iterateSync,Glob:wr.Glob,hasMagic:mE.hasMagic,escape:Ad.escape,unescape:Ad.unescape});Ce.glob.glob=Ce.glob});var Nd=_((YG,Od)=>{"use strict";var xE=function(e){return bE(e)&&!SE(e)};function bE(t){return!!t&&typeof t=="object"}function SE(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||vE(t)}var EE=typeof Symbol=="function"&&Symbol.for,PE=EE?Symbol.for("react.element"):60103;function vE(t){return t.$$typeof===PE}function AE(t){return Array.isArray(t)?[]:{}}function rn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?ss(AE(t),t,e):t}function wE(t,e,i){return t.concat(e).map(function(r){return rn(r,i)})}function CE(t,e){if(!e.customMerge)return ss;var i=e.customMerge(t);return typeof i=="function"?i:ss}function IE(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function kd(t){return Object.keys(t).concat(IE(t))}function _d(t,e){try{return e in t}catch{return!1}}function kE(t,e){return _d(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function _E(t,e,i){var r={};return i.isMergeableObject(t)&&kd(t).forEach(function(s){r[s]=rn(t[s],i)}),kd(e).forEach(function(s){kE(t,s)||(_d(t,s)&&i.isMergeableObject(e[s])?r[s]=CE(s,i)(t[s],e[s],i):r[s]=rn(e[s],i))}),r}function ss(t,e,i){i=i||{},i.arrayMerge=i.arrayMerge||wE,i.isMergeableObject=i.isMergeableObject||xE,i.cloneUnlessOtherwiseSpecified=rn;var r=Array.isArray(e),s=Array.isArray(t),n=r===s;return n?r?i.arrayMerge(t,e,i):_E(t,e,i):rn(e,i)}ss.all=function(e,i){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,s){return ss(r,s,i)},{})};var OE=ss;Od.exports=OE});var Ld=_((zG,Dd)=>{Dd.exports={theme:{extend:{rootClass:{"container-3xs":"16rem","container-2xs":"18rem","container-xs":"20rem","container-sm":"24rem","container-md":"28rem","container-lg":"32rem","container-xl":"36rem","container-2xl":"42rem","container-3xl":"48rem","container-4xl":"56rem","container-5xl":"64rem","container-6xl":"72rem","container-7xl":"80rem","text-xs":"0.75rem","text-sm":"0.875rem","text-base":"1rem","text-lg":"1.125rem","text-xl":"1.25rem","text-2xl":"1.5rem","text-3xl":"1.875rem","text-4xl":"2.25rem","text-5xl":"3rem","text-6xl":"3.75rem","text-7xl":"4.5rem","text-8xl":"6rem","text-9xl":"8rem","radius-xs":"0.125rem","radius-sm":"0.25rem","radius-md":"0.375rem","radius-lg":"0.5rem","radius-xl":"0.75rem","radius-2xl":"1rem","radius-3xl":"1.5rem","radius-4xl":"2rem","blur-xs":"4px","blur-sm":"8px","blur-md":"12px","blur-lg":"16px","blur-xl":"24px","blur-2xl":"32px","blur-3xl":"40px","blur-4xl":"48px","blur-5xl":"64px"},colors:{"color-white":"oklch(100% 0 0)","color-black":"oklch(0% 0 0)","color-inherit":"inherit","color-transparent":"transparent","color-current":"currentColor","color-red-50":"oklch(97.1% 0.013 17.38)","color-red-100":"oklch(93.6% 0.032 17.717)","color-red-200":"oklch(88.5% 0.062 18.334)","color-red-300":"oklch(80.8% 0.114 19.571)","color-red-400":"oklch(70.4% 0.191 22.216)","color-red-500":"oklch(63.7% 0.237 25.331)","color-red-600":"oklch(57.7% 0.245 27.325)","color-red-700":"oklch(50.5% 0.213 27.518)","color-red-800":"oklch(44.4% 0.177 26.899)","color-red-900":"oklch(39.6% 0.141 25.723)","color-red-950":"oklch(25.8% 0.092 26.042)","color-orange-50":"oklch(98% 0.016 73.684)","color-orange-100":"oklch(95.4% 0.038 75.164)","color-orange-200":"oklch(90.1% 0.076 70.697)","color-orange-300":"oklch(83.7% 0.128 66.29)","color-orange-400":"oklch(75% 0.183 55.934)","color-orange-500":"oklch(70.5% 0.213 47.604)","color-orange-600":"oklch(64.6% 0.222 41.116)","color-orange-700":"oklch(55.3% 0.195 38.402)","color-orange-800":"oklch(47% 0.157 37.304)","color-orange-900":"oklch(40.8% 0.123 38.172)","color-orange-950":"oklch(26.6% 0.079 36.259)","color-amber-50":"oklch(98.7% 0.022 95.277)","color-amber-100":"oklch(96.2% 0.059 95.617)","color-amber-200":"oklch(92.4% 0.12 95.746)","color-amber-300":"oklch(87.9% 0.169 91.605)","color-amber-400":"oklch(82.8% 0.189 84.429)","color-amber-500":"oklch(76.9% 0.188 70.08)","color-amber-600":"oklch(66.6% 0.179 58.318)","color-amber-700":"oklch(55.5% 0.163 48.998)","color-amber-800":"oklch(47.3% 0.137 46.201)","color-amber-900":"oklch(41.4% 0.112 45.904)","color-amber-950":"oklch(27.9% 0.077 45.635)","color-yellow-50":"oklch(98.7% 0.026 102.212)","color-yellow-100":"oklch(97.3% 0.071 103.193)","color-yellow-200":"oklch(94.5% 0.129 101.54)","color-yellow-300":"oklch(90.5% 0.182 98.111)","color-yellow-400":"oklch(85.2% 0.199 91.936)","color-yellow-500":"oklch(79.5% 0.184 86.047)","color-yellow-600":"oklch(68.1% 0.162 75.834)","color-yellow-700":"oklch(55.4% 0.135 66.442)","color-yellow-800":"oklch(47.6% 0.114 61.907)","color-yellow-900":"oklch(42.1% 0.095 57.708)","color-yellow-950":"oklch(28.6% 0.066 53.813)","color-lime-50":"oklch(98.6% 0.031 120.757)","color-lime-100":"oklch(96.7% 0.067 122.328)","color-lime-200":"oklch(93.8% 0.127 124.321)","color-lime-300":"oklch(89.7% 0.196 126.665)","color-lime-400":"oklch(84.1% 0.238 128.85)","color-lime-500":"oklch(76.8% 0.233 130.85)","color-lime-600":"oklch(64.8% 0.2 131.684)","color-lime-700":"oklch(53.2% 0.157 131.589)","color-lime-800":"oklch(45.3% 0.124 130.933)","color-lime-900":"oklch(40.5% 0.101 131.063)","color-lime-950":"oklch(27.4% 0.072 132.109)","color-green-50":"oklch(98.2% 0.018 155.826)","color-green-100":"oklch(96.2% 0.044 156.743)","color-green-200":"oklch(92.5% 0.084 155.995)","color-green-300":"oklch(87.1% 0.15 154.449)","color-green-400":"oklch(79.2% 0.209 151.711)","color-green-500":"oklch(72.3% 0.219 149.579)","color-green-600":"oklch(62.7% 0.194 149.214)","color-green-700":"oklch(52.7% 0.154 150.069)","color-green-800":"oklch(44.8% 0.119 151.328)","color-green-900":"oklch(39.3% 0.095 152.535)","color-green-950":"oklch(26.6% 0.065 152.934)","color-emerald-50":"oklch(97.9% 0.021 166.113)","color-emerald-100":"oklch(95% 0.052 163.051)","color-emerald-200":"oklch(90.5% 0.093 164.15)","color-emerald-300":"oklch(84.5% 0.143 164.978)","color-emerald-400":"oklch(76.5% 0.177 163.223)","color-emerald-500":"oklch(69.6% 0.17 162.48)","color-emerald-600":"oklch(59.6% 0.145 163.225)","color-emerald-700":"oklch(50.8% 0.118 165.612)","color-emerald-800":"oklch(43.2% 0.095 166.913)","color-emerald-900":"oklch(37.8% 0.077 168.94)","color-emerald-950":"oklch(26.2% 0.051 172.552)","color-teal-50":"oklch(98.4% 0.014 180.72)","color-teal-100":"oklch(95.3% 0.051 180.801)","color-teal-200":"oklch(91% 0.096 180.426)","color-teal-300":"oklch(85.5% 0.138 181.071)","color-teal-400":"oklch(77.7% 0.152 181.912)","color-teal-500":"oklch(70.4% 0.14 182.503)","color-teal-600":"oklch(60% 0.118 184.704)","color-teal-700":"oklch(51.1% 0.096 186.391)","color-teal-800":"oklch(43.7% 0.078 188.216)","color-teal-900":"oklch(38.6% 0.063 188.416)","color-teal-950":"oklch(27.7% 0.046 192.524)","color-cyan-50":"oklch(98.4% 0.019 200.873)","color-cyan-100":"oklch(95.6% 0.045 203.388)","color-cyan-200":"oklch(91.7% 0.08 205.041)","color-cyan-300":"oklch(86.5% 0.127 207.078)","color-cyan-400":"oklch(78.9% 0.154 211.53)","color-cyan-500":"oklch(71.5% 0.143 215.221)","color-cyan-600":"oklch(60.9% 0.126 221.723)","color-cyan-700":"oklch(52% 0.105 223.128)","color-cyan-800":"oklch(45% 0.085 224.283)","color-cyan-900":"oklch(39.8% 0.07 227.392)","color-cyan-950":"oklch(30.2% 0.056 229.695)","color-sky-50":"oklch(97.7% 0.013 236.62)","color-sky-100":"oklch(95.1% 0.026 236.824)","color-sky-200":"oklch(90.1% 0.058 230.902)","color-sky-300":"oklch(82.8% 0.111 230.318)","color-sky-400":"oklch(74.6% 0.16 232.661)","color-sky-500":"oklch(68.5% 0.169 237.323)","color-sky-600":"oklch(58.8% 0.158 241.966)","color-sky-700":"oklch(50% 0.134 242.749)","color-sky-800":"oklch(44.3% 0.11 240.79)","color-sky-900":"oklch(39.1% 0.09 240.876)","color-sky-950":"oklch(29.3% 0.066 243.157)","color-blue-50":"oklch(97% 0.014 254.604)","color-blue-100":"oklch(93.2% 0.032 255.585)","color-blue-200":"oklch(88.2% 0.059 254.128)","color-blue-300":"oklch(80.9% 0.105 251.813)","color-blue-400":"oklch(70.7% 0.165 254.624)","color-blue-500":"oklch(62.3% 0.214 259.815)","color-blue-600":"oklch(54.6% 0.245 262.881)","color-blue-700":"oklch(48.8% 0.243 264.376)","color-blue-800":"oklch(42.4% 0.199 265.638)","color-blue-900":"oklch(37.9% 0.146 265.522)","color-blue-950":"oklch(28.2% 0.091 267.935)","color-indigo-50":"oklch(96.2% 0.018 272.314)","color-indigo-100":"oklch(93% 0.034 272.788)","color-indigo-200":"oklch(87% 0.065 274.039)","color-indigo-300":"oklch(78.5% 0.115 274.713)","color-indigo-400":"oklch(67.3% 0.182 276.935)","color-indigo-500":"oklch(58.5% 0.233 277.117)","color-indigo-600":"oklch(51.1% 0.262 276.966)","color-indigo-700":"oklch(45.7% 0.24 277.023)","color-indigo-800":"oklch(39.8% 0.195 277.366)","color-indigo-900":"oklch(35.9% 0.144 278.697)","color-indigo-950":"oklch(25.7% 0.09 281.288)","color-violet-50":"oklch(96.9% 0.016 293.756)","color-violet-100":"oklch(94.3% 0.029 294.588)","color-violet-200":"oklch(89.4% 0.057 293.283)","color-violet-300":"oklch(81.1% 0.111 293.571)","color-violet-400":"oklch(70.2% 0.183 293.541)","color-violet-500":"oklch(60.6% 0.25 292.717)","color-violet-600":"oklch(54.1% 0.281 293.009)","color-violet-700":"oklch(49.1% 0.27 292.581)","color-violet-800":"oklch(43.2% 0.232 292.759)","color-violet-900":"oklch(38% 0.189 293.745)","color-violet-950":"oklch(28.3% 0.141 291.089)","color-purple-50":"oklch(97.7% 0.014 308.299)","color-purple-100":"oklch(94.6% 0.033 307.174)","color-purple-200":"oklch(90.2% 0.063 306.703)","color-purple-300":"oklch(82.7% 0.119 306.383)","color-purple-400":"oklch(71.4% 0.203 305.504)","color-purple-500":"oklch(62.7% 0.265 303.9)","color-purple-600":"oklch(55.8% 0.288 302.321)","color-purple-700":"oklch(49.6% 0.265 301.924)","color-purple-800":"oklch(43.8% 0.218 303.724)","color-purple-900":"oklch(38.1% 0.176 304.987)","color-purple-950":"oklch(29.1% 0.149 302.717)","color-fuchsia-50":"oklch(97.7% 0.017 320.058)","color-fuchsia-100":"oklch(95.2% 0.037 318.852)","color-fuchsia-200":"oklch(90.3% 0.076 319.62)","color-fuchsia-300":"oklch(83.3% 0.145 321.434)","color-fuchsia-400":"oklch(74% 0.238 322.16)","color-fuchsia-500":"oklch(66.7% 0.295 322.15)","color-fuchsia-600":"oklch(59.1% 0.293 322.896)","color-fuchsia-700":"oklch(51.8% 0.253 323.949)","color-fuchsia-800":"oklch(45.2% 0.211 324.591)","color-fuchsia-900":"oklch(40.1% 0.17 325.612)","color-fuchsia-950":"oklch(29.3% 0.136 325.661)","color-pink-50":"oklch(97.1% 0.014 343.198)","color-pink-100":"oklch(94.8% 0.028 342.258)","color-pink-200":"oklch(89.9% 0.061 343.231)","color-pink-300":"oklch(82.3% 0.12 346.018)","color-pink-400":"oklch(71.8% 0.202 349.761)","color-pink-500":"oklch(65.6% 0.241 354.308)","color-pink-600":"oklch(59.2% 0.249 0.584)","color-pink-700":"oklch(52.5% 0.223 3.958)","color-pink-800":"oklch(45.9% 0.187 3.815)","color-pink-900":"oklch(40.8% 0.153 2.432)","color-pink-950":"oklch(28.4% 0.109 3.907)","color-rose-50":"oklch(96.9% 0.015 12.422)","color-rose-100":"oklch(94.1% 0.03 12.58)","color-rose-200":"oklch(89.2% 0.058 10.001)","color-rose-300":"oklch(81% 0.117 11.638)","color-rose-400":"oklch(71.2% 0.194 13.428)","color-rose-500":"oklch(64.5% 0.246 16.439)","color-rose-600":"oklch(58.6% 0.253 17.585)","color-rose-700":"oklch(51.4% 0.222 16.935)","color-rose-800":"oklch(45.5% 0.188 13.697)","color-rose-900":"oklch(41% 0.159 10.272)","color-rose-950":"oklch(27.1% 0.105 12.094)","color-slate-50":"oklch(98.4% 0.003 247.858)","color-slate-100":"oklch(96.8% 0.007 247.896)","color-slate-200":"oklch(92.9% 0.013 255.508)","color-slate-300":"oklch(86.9% 0.022 252.894)","color-slate-400":"oklch(70.4% 0.04 256.788)","color-slate-500":"oklch(55.4% 0.046 257.417)","color-slate-600":"oklch(44.6% 0.043 257.281)","color-slate-700":"oklch(37.2% 0.044 257.287)","color-slate-800":"oklch(27.9% 0.041 260.031)","color-slate-900":"oklch(20.8% 0.042 265.755)","color-slate-950":"oklch(12.9% 0.042 264.695)","color-gray-50":"oklch(98.5% 0.002 247.839)","color-gray-100":"oklch(96.7% 0.003 264.542)","color-gray-200":"oklch(92.8% 0.006 264.531)","color-gray-300":"oklch(87.2% 0.01 258.338)","color-gray-400":"oklch(70.7% 0.022 261.325)","color-gray-500":"oklch(55.1% 0.027 264.364)","color-gray-600":"oklch(44.6% 0.03 256.802)","color-gray-700":"oklch(37.3% 0.034 259.733)","color-gray-800":"oklch(27.8% 0.033 256.848)","color-gray-900":"oklch(21% 0.034 264.665)","color-gray-950":"oklch(13% 0.028 261.692)","color-zinc-50":"oklch(98.5% 0.001 106.423)","color-zinc-100":"oklch(96.7% 0.001 106.424)","color-zinc-200":"oklch(92% 0.004 286.32)","color-zinc-300":"oklch(87.1% 0.006 286.286)","color-zinc-400":"oklch(70.5% 0.015 286.067)","color-zinc-500":"oklch(55.2% 0.016 285.938)","color-zinc-600":"oklch(44.2% 0.017 285.786)","color-zinc-700":"oklch(37% 0.013 285.805)","color-zinc-800":"oklch(27.4% 0.006 286.033)","color-zinc-900":"oklch(21% 0.006 285.885)","color-zinc-950":"oklch(14.1% 0.005 285.823)","color-neutral-50":"oklch(98.5% 0 0)","color-neutral-100":"oklch(97% 0 0)","color-neutral-200":"oklch(92.2% 0 0)","color-neutral-300":"oklch(87% 0 0)","color-neutral-400":"oklch(70.8% 0 0)","color-neutral-500":"oklch(55.6% 0 0)","color-neutral-600":"oklch(43.9% 0 0)","color-neutral-700":"oklch(37.1% 0 0)","color-neutral-800":"oklch(26.9% 0 0)","color-neutral-900":"oklch(20.5% 0 0)","color-neutral-950":"oklch(14.5% 0 0)","color-stone-50":"oklch(98.5% 0.001 106.423)","color-stone-100":"oklch(97% 0.001 106.424)","color-stone-200":"oklch(92.3% 0.003 48.717)","color-stone-300":"oklch(86.9% 0.005 56.366)","color-stone-400":"oklch(70.9% 0.01 56.259)","color-stone-500":"oklch(55.3% 0.013 58.071)","color-stone-600":"oklch(44.4% 0.011 73.639)","color-stone-700":"oklch(37.4% 0.01 67.558)","color-stone-800":"oklch(26.8% 0.007 34.298)","color-stone-900":"oklch(21.6% 0.006 56.043)","color-stone-950":"oklch(14.7% 0.004 49.25)"},spacing:{0:"0rem"}}}}});var Fd=_((JG,Md)=>{Md.exports={theme:{extend:{breakpoints:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},layout:{padding:{"p-px":"1px"},"padding-inline":{"px-px":"1px"},"padding-block":{"py-px":"1px"},"padding-top":{"pt-px":"1px"},"padding-right":{"pr-px":"1px"},"padding-bottom":{"pb-px":"1px"},"padding-left":{"pl-px":"1px"},margin:{"m-px":"1px","-m-px":"-1px"},"margin-inline":{"mx-px":"1px","-mx-px":"-1px","mx-auto":"auto"},"margin-block":{"my-px":"1px","-my-px":"-1px","my-auto":"auto"},"margin-top":{"mt-px":"1px","-mt-px":"-1px"},"margin-right":{"mr-px":"1px","-mr-px":"-1px"},"margin-bottom":{"mb-px":"1px","-mb-px":"-1px"},"margin-left":{"ml-px":"1px","-ml-px":"-1px"},"aspect-ratio":{"aspect-square":"1 / 1","aspect-video":"16 / 9","aspect-portrait":"9 / 16","aspect-auto":"auto"},columns:{"columns-auto":"auto","columns-none":"none","columns-3xs":"var(--container-3xs)","columns-2xs":"var(--container-2xs)","columns-xs":"var(--container-xs)","columns-sm":"var(--container-sm)","columns-md":"var(--container-md)","columns-lg":"var(--container-lg)","columns-xl":"var(--container-xl)","columns-2xl":"var(--container-2xl)","columns-3xl":"var(--container-3xl)","columns-4xl":"var(--container-4xl)","columns-5xl":"var(--container-5xl)","columns-6xl":"var(--container-6xl)","columns-7xl":"var(--container-7xl)"},"break-after":{"break-after-auto":"auto","break-after-avoid":"avoid","break-after-all":"all","break-after-avoid-page":"avoid-page","break-after-page":"page","break-after-column":"column"},"break-before":{"break-before-auto":"auto","break-before-avoid":"avoid","break-before-all":"all","break-before-avoid-page":"avoid-page","break-before-page":"page","break-before-column":"column"},"break-inside":{"break-inside-auto":"auto","break-inside-avoid":"avoid","break-inside-avoid-page":"avoid-page","break-inside-avoid-column":"avoid-column"},"box-decoration-break":{"box-decoration-slice":"slice","box-decoration-clone":"clone"},"box-sizing":{"box-border":"border-box","box-content":"content-box"},display:{block:"block",hidden:"none","inline-block":"inline-block",inline:"inline",flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid",table:"table",contents:"contents","list-item":"list-item","flow-root":"flow-root","inline-table":"inline-table","table-caption":"table-caption","table-cell":"table-cell","table-column":"table-column","table-column-group":"table-column-group","table-footer-group":"table-footer-group","table-header-group":"table-header-group","table-row-group":"table-row-group","table-row":"table-row"},float:{"float-right":"right","float-left":"left","float-none":"none","float-start":"inline-start","float-end":"inline-end"},clear:{"clear-left":"left","clear-right":"right","clear-both":"both","clear-none":"none","clear-start":"inline-start","clear-end":"inline-end"},isolation:{"isolation-auto":"auto","isolation-isolate":"isolate"},"object-fit":{"object-contain":"contain","object-cover":"cover","object-fill":"fill","object-none":"none","object-scale-down":"scale-down"},"object-position":{"object-center":"center","object-top":"top","object-bottom":"bottom","object-left":"left","object-right":"right","object-top-left":"top left","object-top-right":"top right","object-bottom-left":"bottom left","object-bottom-right":"bottom right"},overflow:{"overflow-auto":"auto","overflow-hidden":"hidden","overflow-visible":"visible","overflow-scroll":"scroll"},"overflow-x":{"overflow-x-hidden":"hidden","overflow-x-visible":"visible","overflow-x-scroll":"scroll","overflow-x-auto":"auto"},"overflow-y":{"overflow-y-hidden":"hidden","overflow-y-visible":"visible","overflow-y-scroll":"scroll","overflow-y-auto":"auto"},"overscroll-behavior":{"overscroll-auto":"auto","overscroll-contain":"contain","overscroll-none":"none"},"overscroll-behavior-x":{"overscroll-x-auto":"auto","overscroll-x-contain":"contain","overscroll-x-none":"none"},"overscroll-behavior-y":{"overscroll-y-auto":"auto","overscroll-y-contain":"contain","overscroll-y-none":"none"},position:{static:"static",fixed:"fixed",absolute:"absolute",relative:"relative",sticky:"sticky"},inset:{"inset-px":"1px","-inset-px":"-1px","inset-full":"100%","-inset-full":"-100%","inset-auto":"auto"},"inset-inline":{"inset-x-px":"1px","-inset-x-px":"-1px","inset-x-full":"100%","-inset-x-full":"-100%","inset-x-auto":"auto"},"inset-block":{"inset-y-px":"1px","-inset-y-px":"-1px","inset-y-full":"100%","-inset-y-full":"-100%","inset-y-auto":"auto"},top:{"top-px":"1px","-top-px":"-1px","top-full":"100%","-top-full":"-100%","top-auto":"auto"},right:{"right-px":"1px","-right-px":"-1px","right-full":"100%","-right-full":"-100%","right-auto":"auto"},bottom:{"bottom-px":"1px","-bottom-px":"-1px","bottom-full":"100%","-bottom-full":"-100%","bottom-auto":"auto"},left:{"left-px":"1px","-left-px":"-1px","left-full":"100%","-left-full":"-100%","left-auto":"auto"},visibility:{visible:"visible",invisible:"hidden",collapse:"collapse"}},flexGrid:{"flex-basis":{"basis-full":"100%","basis-1/2":"50%","basis-auto":"auto","basis-1/3":"33.333333%","basis-3xs":"var(--container-3xs)","basis-2xs":"var(--container-2xs)","basis-xs":"var(--container-xs)","basis-sm":"var(--container-sm)","basis-md":"var(--container-md)","basis-lg":"var(--container-lg)","basis-xl":"var(--container-xl)","basis-2xl":"var(--container-2xl)","basis-3xl":"var(--container-3xl)","basis-4xl":"var(--container-4xl)","basis-5xl":"var(--container-5xl)","basis-6xl":"var(--container-6xl)","basis-7xl":"var(--container-7xl)"},"flex-direction":{"flex-row":"row","flex-row-reverse":"row-reverse","flex-col":"column","flex-col-reverse":"column-reverse"},"flex-wrap":{"flex-wrap":"wrap","flex-wrap-reverse":"wrap-reverse","flex-nowrap":"nowrap"},flex:{"flex-auto":"1 1 auto","flex-initial":"0 1 auto","flex-none":"none"},"flex-grow":{grow:"1"},"flex-shrink":{shrink:"1"},order:{"order-first":"calc(-infinity)","order-last":"calc(infinity)","order-none":"0"},"grid-template-columns":{"grid-columns-none":"none","grid-columns-subgrid":"subgrid"},"grid-column":{"col-span-full":"1 / -1","col-auto":"auto"},"grid-column-start":{"col-start-auto":"auto"},"grid-column-end":{"col-end-auto":"auto"},"grid-template-rows":{"grid-rows-none":"none","grid-rows-subgrid":"subgrid"},"grid-row":{"row-span-full":"1 / -1","row-auto":"auto"},"grid-row-start":{"row-start-auto":"auto"},"grid-row-end":{"row-end-auto":"auto"},"grid-auto-flow":{"grid-flow-row":"row","grid-flow-col":"column","grid-flow-dense":"dense","grid-flow-row-dense":"row dense","grid-flow-col-dense":"column dense"},"grid-auto-columns":{"auto-columns-auto":"auto","auto-columns-min":"min-content","auto-columns-max":"max-content","auto-columns-fr":"minmax(0, 1fr)"},"grid-auto-rows":{"auto-rows-auto":"auto","auto-rows-min":"min-content","auto-rows-max":"max-content","auto-rows-fr":"minmax(0, 1fr)"},gap:{"gap-px":"1px"},"column-gap":{"gap-x-px":"1px"},"row-gap":{"gap-y-px":"1px"},"justify-content":{"justify-start":"flex-start","justify-end":"flex-end","justify-end-safe":"safe flex-end","justify-center":"center","justify-center-safe":"safe center","justify-between":"space-between","justify-around":"space-around","justify-evenly":"space-evenly","justify-stretch":"stretch","justify-normal":"normal","justify-baseline":"baseline"},"justify-items":{"justify-items-start":"start","justify-items-end":"end","justify-items-end-safe":"safe end","justify-items-center":"center","justify-items-center-safe":"safe center","justify-items-stretch":"stretch","justify-items-normal":"normal"},"justify-self":{"justify-self-auto":"auto","justify-self-start":"start","justify-self-center":"center","justify-self-center-safe":"safe center","justify-self-end":"end","justify-self-end-safe":"safe end","justify-self-stretch":"stretch","justify-self-normal":"normal"},"align-content":{"content-start":"flex-start","content-end":"flex-end","content-center":"center","content-between":"space-between","content-around":"space-around","content-evenly":"space-evenly","content-stretch":"stretch","content-normal":"normal","content-baseline":"baseline"},"align-items":{"items-start":"flex-start","items-end":"flex-end","items-center":"center","items-baseline":"baseline","items-stretch":"stretch","items-normal":"normal","items-end-safe":"safe flex-end","items-center-safe":"safe center","items-baseline-last":"last baseline"},"align-self":{"self-auto":"auto","self-start":"flex-start","self-end":"flex-end","self-end-safe":"safe flex-end","self-center":"center","self-center-safe":"safe center","self-stretch":"stretch","self-baseline":"baseline","self-baseline-last":"last baseline"},"place-content":{"place-content-center":"center","place-content-center-safe":"safe center","place-content-stretch":"stretch","place-content-normal":"normal","place-content-baseline":"baseline","place-content-end-safe":"safe flex-end","place-content-baseline-last":"last baseline","place-content-start":"flex-start","place-content-end":"flex-end","place-content-between":"space-between","place-content-around":"space-around","place-content-evenly":"space-evenly"},"place-items":{"place-items-start":"start","place-items-end":"end","place-items-end-safe":"safe end","place-items-center":"center","place-items-center-safe":"safe center","place-items-stretch":"stretch","place-item-baseline":"baseline"},"place-self":{"place-self-auto":"auto","place-self-start":"start","place-self-center":"center","place-self-center-safe":"safe center","place-self-end":"end","place-self-end-safe":"safe end","place-self-stretch":"stretch"}},sizing:{width:{"w-3xs":"var(--container-3xs)","w-2xs":"var(--container-2xs)","w-xs":"var(--container-xs)","w-sm":"var(--container-sm)","w-md":"var(--container-md)","w-lg":"var(--container-lg)","w-xl":"var(--container-xl)","w-2xl":"var(--container-2xl)","w-3xl":"var(--container-3xl)","w-4xl":"var(--container-4xl)","w-5xl":"var(--container-5xl)","w-6xl":"var(--container-6xl)","w-7xl":"var(--container-7xl)","w-full":"100%","w-auto":"auto","w-px":"1px","w-screen":"100vw","w-min":"min-content","w-max":"max-content","w-fit":"fit-content","w-dvw":"100dvw","w-dvh":"100dvh","w-lvw":"100lvw","w-lvh":"100lvh","w-svw":"100svw","w-svh":"100svh"},"min-width":{"min-w-3xs":"var(--container-3xs)","min-w-2xs":"var(--container-2xs)","min-w-xs":"var(--container-xs)","min-w-sm":"var(--container-sm)","min-w-md":"var(--container-md)","min-w-lg":"var(--container-lg)","min-w-xl":"var(--container-xl)","min-w-2xl":"var(--container-2xl)","min-w-3xl":"var(--container-3xl)","min-w-4xl":"var(--container-4xl)","min-w-5xl":"var(--container-5xl)","min-w-6xl":"var(--container-6xl)","min-w-7xl":"var(--container-7xl)","min-w-full":"100%","min-w-auto":"auto","min-w-min":"min-content","min-w-max":"max-content","min-w-fit":"fit-content","min-w-screen":"100vw","min-w-dvw":"100dvw","min-w-dvh":"100dvh","min-w-lvw":"100lvw","min-w-lvh":"100lvh","min-w-svw":"100svw","min-w-svh":"100svh","min-w-px":"1px"},"max-width":{"max-w-3xs":"var(--container-3xs)","max-w-2xs":"var(--container-2xs)","max-w-xs":"var(--container-xs)","max-w-sm":"var(--container-sm)","max-w-md":"var(--container-md)","max-w-lg":"var(--container-lg)","max-w-xl":"var(--container-xl)","max-w-2xl":"var(--container-2xl)","max-w-3xl":"var(--container-3xl)","max-w-4xl":"var(--container-4xl)","max-w-5xl":"var(--container-5xl)","max-w-6xl":"var(--container-6xl)","max-w-7xl":"var(--container-7xl)","max-w-full":"100%","max-w-auto":"auto","max-w-min":"min-content","max-w-max":"max-content","max-w-fit":"fit-content","max-w-screen":"100vw","max-w-dvw":"100dvw","max-w-dvh":"100dvh","max-w-lvw":"100lvw","max-w-lvh":"100lvh","max-w-svw":"100svw","max-w-svh":"100svh","max-w-px":"1px"},height:{"h-3xs":"var(--container-3xs)","h-2xs":"var(--container-2xs)","h-xs":"var(--container-xs)","h-sm":"var(--container-sm)","h-md":"var(--container-md)","h-lg":"var(--container-lg)","h-xl":"var(--container-xl)","h-2xl":"var(--container-2xl)","h-3xl":"var(--container-3xl)","h-4xl":"var(--container-4xl)","h-5xl":"var(--container-5xl)","h-6xl":"var(--container-6xl)","h-7xl":"var(--container-7xl)","h-auto":"auto","h-full":"100%","h-min":"min-content","h-max":"max-content","h-fit":"fit-content","h-px":"1px","h-screen":"100vh","h-dvh":"100dvh","h-lvh":"100lvh","h-svh":"100svh","h-dvw":"100dvw","h-lvw":"100lvw","h-svw":"100svw"},"min-height":{"min-h-3xs":"var(--container-3xs)","min-h-2xs":"var(--container-2xs)","min-h-xs":"var(--container-xs)","min-h-sm":"var(--container-sm)","min-h-md":"var(--container-md)","min-h-lg":"var(--container-lg)","min-h-xl":"var(--container-xl)","min-h-2xl":"var(--container-2xl)","min-h-3xl":"var(--container-3xl)","min-h-4xl":"var(--container-4xl)","min-h-5xl":"var(--container-5xl)","min-h-6xl":"var(--container-6xl)","min-h-7xl":"var(--container-7xl)","min-h-auto":"auto","min-h-full":"100%","min-h-min":"min-content","min-h-max":"max-content","min-h-fit":"fit-content","min-h-screen":"100vh","min-h-dvh":"100dvh","min-h-lvh":"100lvh","min-h-svh":"100svh","min-h-dvw":"100dvw","min-h-lvw":"100lvw","min-h-svw":"100svw","max-h-px":"1px"},"max-height":{"max-h-3xs":"var(--container-3xs)","max-h-2xs":"var(--container-2xs)","max-h-xs":"var(--container-xs)","max-h-sm":"var(--container-sm)","max-h-md":"var(--container-md)","max-h-lg":"var(--container-lg)","max-h-xl":"var(--container-xl)","max-h-2xl":"var(--container-2xl)","max-h-3xl":"var(--container-3xl)","max-h-4xl":"var(--container-4xl)","max-h-5xl":"var(--container-5xl)","max-h-6xl":"var(--container-6xl)","max-h-7xl":"var(--container-7xl)","max-h-auto":"auto","max-h-full":"100%","max-h-min":"min-content","max-h-max":"max-content","max-h-fit":"fit-content","max-h-screen":"100vh","max-h-dvh":"100dvh","max-h-lvh":"100lvh","max-h-svh":"100svh","max-h-dvw":"100dvw","max-h-lvw":"100lvw","max-h-svw":"100svw","max-h-px":"1px"}},typography:{"font-family":{"font-family-sans":'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',"font-family-serif":'Georgia, Cambria, "Times New Roman", Times, serif',"font-family-mono":'"Courier New", Courier, monospace'},"font-size":{"text-xs":"var(--text-xs)","text-sm":"var(--text-sm)","text-base":"var(--text-base)","text-lg":"var(--text-lg)","text-xl":"var(--text-xl)","text-2xl":"var(--text-2xl)","text-3xl":"var(--text-3xl)","text-4xl":"var(--text-4xl)","text-5xl":"var(--text-5xl)","text-6xl":"var(--text-6xl)","text-7xl":"var(--text-7xl)","text-8xl":"var(--text-8xl)","text-9xl":"var(--text-9xl)"},"-webkit-font-smoothing":{antialiased:"antialiased","subpixel-antialiased":"auto"},"font-style":{italic:"italic","not-italic":"normal"},"font-weight":{"font-thin":"100","font-extralight":"200","font-light":"300","font-normal":"400","font-medium":"500","font-semibold":"600","font-bold":"700","font-extrabold":"800","font-black":"900"},"font-stretch":{"font-stretch-ultra-condensed":"ultra-condensed","font-stretch-extra-condensed":"extra-condensed","font-stretch-condensed":"condensed","font-stretch-semi-condensed":"semi-condensed","font-stretch-normal":"normal","font-stretch-semi-expanded":"semi-expanded","font-stretch-expanded":"expanded","font-stretch-extra-expanded":"extra-expanded","font-stretch-ultra-expanded":"ultra-expanded"},"font-variant-numeric":{"normal-nums":"normal","ordinal-nums":"ordinal","slashed-zero-nums":"slashed-zero","lining-nums":"lining-nums","oldstyle-nums":"oldstyle-nums","proportional-nums":"proportional-nums","tabular-nums":"tabular-nums","diagonal-fractions":"diagonal-fractions","stacked-fractions":"stacked-fractions"},"letter-spacing":{"tracking-tighter":"-0.05em","tracking-tight":"-0.025em","tracking-normal":"0em","tracking-wide":"0.025em","tracking-wider":"0.05em","tracking-widest":"0.1em"},"line-height":{"leading-none":"1","leading-tight":"1.25","leading-snug":"1.375","leading-normal":"1.5","leading-relaxed":"1.625","leading-loose":"2"},"list-style-image":{"list-image-none":"none"},"list-style-position":{"list-inside":"inside","list-outside":"outside"},"list-style-type":{"list-none":"none","list-disc":"disc","list-decimal":"decimal","list-square":"square","list-circle":"circle","list-upper-roman":"upper-roman"},"text-align":{"text-left":"left","text-center":"center","text-right":"right","text-justify":"justify","text-start":"start","text-end":"end"},color:{"text-color-inherit":"inherit","text-color-current":"currentColor","text-color-transparent":"transparent"},"text-decoration-line":{underline:"underline","line-through":"line-through","no-underline":"none",overline:"overline"},"text-decoration-color":{"decoration-color-inherit":"inherit","decoration-color-current":"currentColor","decoration-color-transparent":"transparent"},"text-decoration-style":{"decoration-style-solid":"solid","decoration-style-double":"double","decoration-style-dotted":"dotted","decoration-style-dashed":"dashed","decoration-style-wavy":"wavy"},"text-decoration-thickness":{"decoration-thick-auto":"auto","decoration-thick-from-font":"from-font"},"text-underline-offset":{"underline-offset-auto":"auto"},"text-transform":{uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize","normal-case":"none"},"text-overflow":{"text-ellipsis":"ellipsis","text-clip":"clip"},"text-wrap":{"text-wrap":"wrap","text-nowrap":"nowrap","text-balance":"balance","text-pretty":"pretty"},"text-indent":{"indent-px":"1px","-indent-px":"-1px"},"vertical-align":{"align-baseline":"baseline","align-top":"top","align-middle":"middle","align-bottom":"bottom","align-text-top":"text-top","align-text-bottom":"text-bottom","align-sub":"sub","align-super":"super","align-inherit":"inherit"},"white-space":{"whitespace-normal":"normal","whitespace-nowrap":"nowrap","whitespace-pre":"pre","whitespace-pre-line":"pre-line","whitespace-pre-wrap":"pre-wrap","whitespace-break-spaces":"break-spaces"},"word-break":{"break-normal":"normal","break-all":"break-all","keep-all":"keep-all"},"overflow-wrap":{"wrap-break-word":"break-word","wrap-normal":"normal","wrap-anywhere":"anywhere"},hyphens:{"hyphens-none":"none","hyphens-manual":"manual","hyphens-auto":"auto"},content:{"content-none":" none"},direction:{ltr:"ltr",rtl:"rtl"}},background:{"background-attachment":{"bg-fixed":"fixed","bg-local":"local","bg-scroll":"scroll"},"background-clip":{"bg-clip-border":"border-box","bg-clip-padding":"padding-box","bg-clip-content":"content-box","bg-clip-text":"text"},"background-color":{"bg-color-inherit":"inherit","bg-color-current":"currentColor","bg-color-transparent":"transparent"},"background-image":{"bg-none":"none"},"background-origin":{"bg-origin-border":"border-box","bg-origin-padding":"padding-box","bg-origin-content":"content-box"},"background-position":{"bg-center":"center","bg-top":"top","bg-bottom":"bottom","bg-left":"left","bg-right":"right","bg-top-left":"top left","bg-top-right":"top right","bg-bottom-left":"bottom left","bg-bottom-right":"bottom right"},"background-repeat":{"bg-repeat":"repeat","bg-no-repeat":"no-repeat","bg-repeat-x":"repeat-x","bg-repeat-y":"repeat-y","bg-repeat-round":"round","bg-repeat-space":"space"},"background-size":{"bg-auto":"auto","bg-cover":"cover","bg-contain":"contain"}},border:{"border-radius":{rounded:"4px","rounded-none":"0px"},"border-width":{border:"1px; border-style: var(--uni-border-style)","border-none":"0px"},"border-inline-width":{"border-x":"1px; border-style: var(--uni-border-style)"},"border-block-width":{"border-y":"1px; border-style: var(--uni-border-style)"},"border-top-width":{"border-t":"1px; border-style: var(--uni-border-style)"},"border-right-width":{"border-r":"1px; border-style: var(--uni-border-style)"},"border-bottom-width":{"border-b":"1px; border-style: var(--uni-border-style)"},"border-left-width":{"border-l":"1px; border-style: var(--uni-border-style)"},"border-color":{"border-inherit":"inherit","border-current":"currentColor","border-transparent":"transparent"},"outline-width":{outline:"1px; outline-style: var(--uni-outline-style)"},"outline-color":{"outline-inherit":"inherit","outline-current":"currentColor","outline-transparent":"transparent"}},effects:{shadow:{"2xs":"0 1px var(--uni-shadow-color, rgb(0 0 0 / 0.05))",xs:" 0 1px 2px 0 var(--uni-shadow-color, rgb(0 0 0 / 0.05))",sm:"0 1px 3px 0 var(--uni-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--uni-shadow-color, rgb(0 0 0 / 0.1))",md:"0 4px 6px -1px var(--uni-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--uni-shadow-color, rgb(0 0 0 / 0.1))",lg:"0 10px 15px -3px var(--uni-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--uni-shadow-color, rgb(0 0 0 / 0.1))",xl:" 0 20px 25px -5px var(--uni-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--uni-shadow-color, rgb(0 0 0 / 0.1))","2xl":"0 25px 50px -12px var(--uni-shadow-color, rgb(0 0 0 / 0.25))",none:"0 0 #0000",inherit:"inherit",current:"currentColor",transparent:"transparent","inset-2xs":"inset 0 1px var(--uni-inset-shadow-color, rgb(0 0 0 / 0.05))","inset-xs":"inset 0 1px 1px var(--uni-inset-shadow-color, rgb(0 0 0 / 0.05))","inset-sm":"inset 0 2px 4px var(--uni-inset-shadow-color, rgb(0 0 0 / 0.05))","inset-md":"inset 0 4px 6px var(--uni-inset-shadow-color, rgb(0 0 0 / 0.05))","inset-lg":"inset 0 10px 15px var(--uni-inset-shadow-color,rgb(0 0 0 / 0.05))","inset-xl":"inset 0 20px 25px var(--uni-inset-shadow-color, rgb(0 0 0 / 0.05))","inset-2xl":"inset 0 25px 50px var(--uni-inset-shadow-color, rgb(0 0 0 / 0.25))","inset-none":"inset none","inset-inherit":"inset inherit","inset-current":"inset currentColor","inset-transparent":"inset transparent"},dropShadow:{xs:"0 1px 1px var(--uni-drop-shadow-color, rgb(0 0 0 / 0.15))",sm:"0 1px 2px var(--uni-drop-shadow-color, rgb(0 0 0 / 0.15))",md:"0 3px 3px var(--uni-drop-shadow-color, rgb(0 0 0 / 0.12))",lg:"0 4px 4px var(--uni-drop-shadow-color, rgb(0 0 0 / 0.15))",xl:"0 9px 7px var(--uni-drop-shadow-color, rgb(0 0 0 / 0.25))","2xl":" 0 15px 15px var(--uni-drop-shadow-color, rgb(0 0 0 / 0.35))",inherit:"inherit",current:"currentColor",transparent:"transparent",none:"none"},"text-shadow":{"text-shadow-2xs":" 0 1px 0px var(--uni-text-shadow-color, rgb(0 0 0 / 0.05))","text-shadow-xs":" 0px 1px 1px var(--uni-text-shadow-color, rgb(0 0 0 / 0.05))","text-shadow-sm":" 0px 1px 0px var(--uni-text-shadow-color, rgb(0 0 0 / 0.075)), 0px 1px 1px var(--uni-text-shadow-color, rgb(0 0 0 / 0.075)), 0px 2px 2px var(--uni-text-shadow-color, rgb(0 0 0 / 0.075))","text-shadow-md":"0px 1px 1px var(--uni-text-shadow-color, rgb(0 0 0 / 0.1)), 0px 1px 2px var(--uni-text-shadow-color, rgb(0 0 0 / 0.1)), 0px 2px 4px var(--uni-text-shadow-color, rgb(0 0 0 / 0.1))","text-shadow-lg":"0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px var(--uni-text-shadow-color, rgb(0 0 0 / 0.1)), 0px 4px 8px var(--uni-text-shadow-color, rgb(0 0 0 / 0.1)) ","text-shadow-none":"none","text-shadow-inherit":"inherit","text-shadow-current":"currentColor","text-shadow-transparent":"transparent"},"mix-blend-mode":{"mix-blend-normal":"normal","mix-blend-multiply":"multiply","mix-blend-screen":"screen","mix-blend-overlay":"overlay","mix-blend-darken":"darken","mix-blend-lighten":"lighten","mix-blend-color-dodge":"color-dodge","mix-blend-color-burn":"color-burn","mix-blend-hard-light":"hard-light","mix-blend-soft-light":"soft-light","mix-blend-difference":"difference","mix-blend-exclusion":"exclusion","mix-blend-hue":"hue","mix-blend-saturation":"saturation","mix-blend-color":"color","mix-blend-luminosity":"luminosity","mix-blend-plus-lighter":"plus-lighter","mix-blend-plus-darker":"plus-darker"},"background-blend-mode":{"bg-blend-normal":"normal","bg-blend-multiply":"multiply","bg-blend-screen":"screen","bg-blend-overlay":"overlay","bg-blend-darken":"darken","bg-blend-lighten":"lighten","bg-blend-color-dodge":"color-dodge","bg-blend-color-burn":"color-burn","bg-blend-hard-light":"hard-light","bg-blend-soft-light":"soft-light","bg-blend-difference":"difference","bg-blend-exclusion":"exclusion","bg-blend-hue":"hue","bg-blend-saturation":"saturation","bg-blend-color":"color","bg-blend-luminosity":"luminosity"},"mask-clip":{"mask-clip-content":"content-box","mask-clip-border":"border-box","mask-clip-padding":"padding-box","mask-clip-filled":"fill-box","mask-clip-stroke":"stroke-box","mask-clip-view-box":"view-box","mask-no-clip":"no-clip"},"mask-composite":{"mask-add":"add","mask-subtract":"subtract","mask-intersect":"intersect","mask-exclude":"exclude"},"mask-image":{"mask-image-none":"none"},"mask-position":{"mask-top-left":"top left","mask-top":"top","mask-top-right":"top right","mask-left":"left","mask-center":"center","mask-right":"right","mask-bottom-left":"bottom left","mask-bottom":"bottom","mask-bottom-right":"bottom right"},"mask-repeat":{"mask-repeat":"repeat","mask-repeat-x":"repeat-x","mask-repeat-y":"repeat-y","mask-no-repeat":"no-repeat","mask-repeat-round":"round","mask-repeat-space":"space"},"mask-mode":{"mask-luminance":"luminance","mask-alpha":"alpha","mask-match":"match-source"},"mask-origin":{"mask-origin-content":"content-box","mask-origin-border":"border-box","mask-origin-padding":"padding-box","mask-origin-view":"view-box","mask-origin-fill":"fill-box","mask-origin-stroke":"stroke-box"},"mask-size":{"mask-size-auto":"auto","mask-size-cover":"cover","mask-size-contain":"contain"}},table:{"border-collapse":{"border-collapse":"collapse","border-separate":"separate"},"table-layout":{"table-auto":"auto","table-fixed":"fixed"},"caption-side":{"caption-top":"top","caption-bottom":"bottom"}},transition:{"transition-property":{"transition-none":"none"},"transition-behavior":{"transition-normal":"normal","transition-discrete":"allow-discrete"},"transition-duration":{"duration-initial":"initial"},"transition-timing-function":{"ease-linear":"linear","ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)","ease-initial":"initial"},"animation-play-state":{"animation-running":"running","animation-paused":"paused"},"animation-direction":{"animation-normal":"normal","animation-reverse":"reverse","animation-alternate":"alternate","animation-alternate-reverse":"alternate-reverse"},"animation-fill-mode":{"animation-none":"none","animation-forwards":"forwards","animation-backwards":"backwards","animation-both":"both"}},transforms:{"backface-visibility":{"backface-visible":"visible","backface-hidden":"hidden"},perspective:{"perspective-dramatic":"100px","perspective-near":"300px","perspective-normal":"500px","perspective-midrange":"800px","perspective-distant":"1200px","perspective-none":"none"},"perspective-origin":{"perspective-origin-center":"center","perspective-origin-top":"top","perspective-origin-bottom":"bottom","perspective-origin-left":"left","perspective-origin-right":"right","perspective-origin-top-left":"top left","perspective-origin-top-right":"top right","perspective-origin-bottom-left":"bottom left","perspective-origin-bottom-right":"bottom right"},"transform-origin":{"origin-center":"center","origin-top":"top","origin-bottom":"bottom","origin-left":"left","origin-right":"right","origin-top-left":"top left","origin-top-right":"top right","origin-bottom-left":"bottom left","origin-bottom-right":"bottom right"},rotate:{"rotate-none":"none"},scale:{"scale-none":"none"},transform:{"transform-none":"none"},translate:{"translate-none":"none"},"transform-style":{"transform-style-flat":"flat","transform-style-3d":"preserve-3d"}},interactivity:{appearance:{"appearance-none":"none","appearance-auto":"auto"},"color-scheme":{"scheme-light":"light","scheme-dark":"dark","scheme-normal":"normal","scheme-light-dark":"light dark","scheme-only-dark":"only dark","scheme-only-light":"only light"},cursor:{"cursor-auto":"auto","cursor-default":"default","cursor-pointer":"pointer","cursor-wait":"wait","cursor-text":"text","cursor-move":"move","cursor-help":"help","cursor-not-allowed":"not-allowed","cursor-none":"none","cursor-context-menu":"context-menu","cursor-progress":"progress","cursor-cell":"cell","cursor-crosshair":"crosshair","cursor-alias":"alias","cursor-copy":"copy","cursor-grab":"grab","cursor-grabbing":"grabbing","cursor-zoom-in":"zoom-in","cursor-zoom-out":"zoom-out","cursor-no-drop":"no-drop","cursor-all-scroll":"all-scroll","cursor-col-resize":"col-resize","cursor-row-resize":"row-resize","cursor-n-resize":"n-resize","cursor-ne-resize":"ne-resize","cursor-e-resize":"e-resize","cursor-se-resize":"se-resize","cursor-s-resize":"s-resize","cursor-sw-resize":"sw-resize","cursor-w-resize":"w-resize","cursor-nw-resize":"nw-resize","cursor-ew-resize":"ew-resize","cursor-ns-resize":"ns-resize","cursor-nesw-resize":"nesw-resize"},"field-sizing":{"field-sizing-fixed":"fixed","field-sizing-content":"content"},"pointer-events":{"pointer-events-none":"none","pointer-events-auto":"auto"},resize:{"resize-none":"none","resize-x":"horizontal","resize-y":"vertical",resize:"both"},"scroll-behavior":{"scroll-auto":"auto","scroll-smooth":"smooth"},"scroll-snap-align":{"snap-start":"start","snap-end":"end","snap-center":"center","snap-align-none":"none"},"scroll-snap-stop":{"snap-normal":"normal","snap-always":"always"},"will-change":{"will-change-auto":"auto","will-change-scroll":"scroll-position","will-change-contents":"contents","will-change-transform":"transform"},"scroll-snap-type":{"snap-none":"none","snap-x":"x","snap-x-mandatory":"x mandatory","snap-x-proximity":"x proximity","snap-y":"y","snap-y-mandatory":"y mandatory","snap-y-proximity":"y proximity","snap-block":"block","snap-block-mandatory":"block mandatory","snap-block-proximity":"block proximity","snap-inline":"inline","snap-inline-mandatory":"inline mandatory","snap-inline-proximity":"inline proximity","snap-both":"both","snap-both-mandatory":"both mandatory","snap-both-proximity":"both proximity"},"touch-action":{"touch-auto":"auto","touch-none":"none","touch-pan-x":"pan-x","touch-pan-left":"pan-left","touch-pan-right":"pan-right","touch-pan-y":"pan-y","touch-pan-up":"pan-up","touch-pan-down":"pan-down","touch-pinch-zoom":"pinch-zoom","touch-manipulation":"manipulation"},"user-select":{"select-none":"none","select-text":"text","select-all":"all","select-auto":"auto"}},svg:{fill:{"fill-none":"none","fill-inherit":"inherit","fill-current":"currentColor","fill-transparent":"transparent"},stroke:{"stroke-none":"none","stroke-inherit":"inherit","stroke-current":"currentColor","stroke-transparent":"transparent"}}}}}});var Ra=_(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});function NE(t,e){if(t==null)return{};var i={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;i[r]=t[r]}return i}var Ii=class{constructor(e,i,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=i,this.index=r}},cs=class{constructor(e,i){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=i}};function Ft(t,e){let{line:i,column:r,index:s}=t;return new Ii(i,r+e,s+e)}var Bd="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",DE={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Bd},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Bd}},jd={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Na=t=>t.type==="UpdateExpression"?jd.UpdateExpression[`${t.prefix}`]:jd[t.type],LE={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
4
4
  - Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${t==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.
5
- - Did you mean \`import { "${t}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${Na(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${Na(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${Na(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},ME={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},FE={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:t})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(t)}\`.`},BE=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),jE=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${Na({type:t})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),RE=["message"];function Rd(t,e,i){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:i})}function $E({toMessage:t,code:e,reasonCode:i,syntaxPlugin:r}){let s=i==="MissingPlugin"||i==="MissingOneOfPlugins";{let n={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};n[i]&&(i=n[i])}return function n(a,l){let c=new SyntaxError;return c.code=e,c.reasonCode=i,c.loc=a,c.pos=a.index,c.syntaxPlugin=r,s&&(c.missingPlugin=l.missingPlugin),Rd(c,"clone",function(u={}){var f;let{line:d,column:m,index:S}=(f=u.loc)!=null?f:a;return n(new Ii(d,m,S),Object.assign({},l,u.details))}),Rd(c,"details",l),Object.defineProperty(c,"message",{configurable:!0,get(){let o=`${t(l)} (${a.line}:${a.column})`;return this.message=o,o},set(o){Object.defineProperty(this,"message",{value:o,writable:!0})}}),c}}function Ci(t,e){if(Array.isArray(t))return r=>Ci(r,t[0]);let i={};for(let r of Object.keys(t)){let s=t[r],n=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:a}=n,l=NE(n,RE),c=typeof a=="string"?()=>a:a;i[r]=$E(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:r,toMessage:c},e?{syntaxPlugin:e}:{},l))}return i}var w=Object.assign({},Ci(DE),Ci(LE),Ci(ME),Ci(FE),Ci`pipelineOperator`(jE));function qE(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function UE(t){let e=qE();if(t==null)return e;if(t.annexB!=null&&t.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let i of Object.keys(e))t[i]!=null&&(e[i]=t[i]);if(e.startLine===1)t.startIndex==null&&e.startColumn>0?e.startIndex=e.startColumn:t.startColumn==null&&e.startIndex>0&&(e.startColumn=e.startIndex);else if((t.startColumn==null||t.startIndex==null)&&t.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(e.sourceType==="commonjs"){if(t.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(t.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(t.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return e}var{defineProperty:KE}=Object,$d=(t,e)=>{t&&KE(t,e,{enumerable:!1,value:t[e]})};function sn(t){return $d(t.loc.start,"index"),$d(t.loc.end,"index"),t}var VE=t=>class extends t{parse(){let i=sn(super.parse());return this.optionFlags&256&&(i.tokens=i.tokens.map(sn)),i}parseRegExpLiteral({pattern:i,flags:r}){let s=null;try{s=new RegExp(i,r)}catch{}let n=this.estreeParseLiteral(s);return n.regex={pattern:i,flags:r},n}parseBigIntLiteral(i){let r;try{r=BigInt(i)}catch{r=null}let s=this.estreeParseLiteral(r);return s.bigint=String(s.value||i),s}parseDecimalLiteral(i){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||i),s}estreeParseLiteral(i){return this.parseLiteral(i,"Literal")}parseStringLiteral(i){return this.estreeParseLiteral(i)}parseNumericLiteral(i){return this.estreeParseLiteral(i)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(i){return this.estreeParseLiteral(i)}estreeParseChainExpression(i,r){let s=this.startNodeAtNode(i);return s.expression=i,this.finishNodeAt(s,"ChainExpression",r)}directiveToStmt(i){let r=i.value;delete i.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;let s=this.castNodeTo(i,"ExpressionStatement");return s.expression=r,s.directive=r.extra.rawValue,delete r.extra,s}fillOptionalPropertiesForTSESLint(i){}cloneEstreeStringLiteral(i){let{start:r,end:s,loc:n,range:a,raw:l,value:c}=i,o=Object.create(i.constructor.prototype);return o.type="Literal",o.start=r,o.end=s,o.loc=n,o.range=a,o.raw=l,o.value=c,o}initFunction(i,r){super.initFunction(i,r),i.expression=!1}checkDeclaration(i){i!=null&&this.isObjectProperty(i)?this.checkDeclaration(i.value):super.checkDeclaration(i)}getObjectOrClassMethodParams(i){return i.value.params}isValidDirective(i){var r;return i.type==="ExpressionStatement"&&i.expression.type==="Literal"&&typeof i.expression.value=="string"&&!((r=i.expression.extra)!=null&&r.parenthesized)}parseBlockBody(i,r,s,n,a){super.parseBlockBody(i,r,s,n,a);let l=i.directives.map(c=>this.directiveToStmt(c));i.body=l.concat(i.body),delete i.directives}parsePrivateName(){let i=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(i):i}convertPrivateNameToPrivateIdentifier(i){let r=super.getPrivateNameSV(i);return i=i,delete i.id,i.name=r,this.castNodeTo(i,"PrivateIdentifier")}isPrivateName(i){return this.getPluginOption("estree","classFeatures")?i.type==="PrivateIdentifier":super.isPrivateName(i)}getPrivateNameSV(i){return this.getPluginOption("estree","classFeatures")?i.name:super.getPrivateNameSV(i)}parseLiteral(i,r){let s=super.parseLiteral(i,r);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(i,r,s=!1){super.parseFunctionBody(i,r,s),i.expression=i.body.type!=="BlockStatement"}parseMethod(i,r,s,n,a,l,c=!1){let o=this.startNode();o.kind=i.kind,o=super.parseMethod(o,r,s,n,a,l,c),delete o.kind;let{typeParameters:u}=i;u&&(delete i.typeParameters,o.typeParameters=u,this.resetStartLocationFromNode(o,u));let f=this.castNodeTo(o,"FunctionExpression");return i.value=f,l==="ClassPrivateMethod"&&(i.computed=!1),l==="ObjectMethod"?(i.kind==="method"&&(i.kind="init"),i.shorthand=!1,this.finishNode(i,"Property")):this.finishNode(i,"MethodDefinition")}nameIsConstructor(i){return i.type==="Literal"?i.value==="constructor":super.nameIsConstructor(i)}parseClassProperty(...i){let r=super.parseClassProperty(...i);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...i){let r=super.parseClassPrivateProperty(...i);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(r,"PropertyDefinition"),r.computed=!1),r}parseClassAccessorProperty(i){let r=super.parseClassAccessorProperty(i);return this.getPluginOption("estree","classFeatures")&&(r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty")),r}parseObjectProperty(i,r,s,n){let a=super.parseObjectProperty(i,r,s,n);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(i){return i.kind="init",this.finishNode(i,"Property")}isValidLVal(i,r,s){return i==="Property"?"value":super.isValidLVal(i,r,s)}isAssignable(i,r){return i!=null&&this.isObjectProperty(i)?this.isAssignable(i.value,r):super.isAssignable(i,r)}toAssignable(i,r=!1){if(i!=null&&this.isObjectProperty(i)){let{key:s,value:n}=i;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,r)}else super.toAssignable(i,r)}toAssignableObjectExpressionProp(i,r,s){i.type==="Property"&&(i.kind==="get"||i.kind==="set")?this.raise(w.PatternHasAccessor,i.key):i.type==="Property"&&i.method?this.raise(w.PatternHasMethod,i.key):super.toAssignableObjectExpressionProp(i,r,s)}finishCallExpression(i,r){let s=super.finishCallExpression(i,r);if(s.callee.type==="Import"){var n,a;this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=(n=s.arguments[1])!=null?n:null,s.attributes=(a=s.arguments[1])!=null?a:null,delete s.arguments,delete s.callee}else s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1;return s}toReferencedArguments(i){i.type!=="ImportExpression"&&super.toReferencedArguments(i)}parseExport(i,r){let s=this.state.lastTokStartLoc,n=super.parseExport(i,r);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:l}=n;l?.type==="ClassDeclaration"&&((a=l.decorators)==null?void 0:a.length)>0&&l.start===n.start&&this.resetStartLocation(n,s)}break}return n}stopParseSubscript(i,r){let s=super.stopParseSubscript(i,r);return r.optionalChainMember?this.estreeParseChainExpression(s,i.loc.end):s}parseMember(i,r,s,n,a){let l=super.parseMember(i,r,s,n,a);return l.type==="OptionalMemberExpression"?this.castNodeTo(l,"MemberExpression"):l.optional=!1,l}isOptionalMemberExpression(i){return i.type==="ChainExpression"?i.expression.type==="MemberExpression":super.isOptionalMemberExpression(i)}hasPropertyAsPrivateName(i){return i.type==="ChainExpression"&&(i=i.expression),super.hasPropertyAsPrivateName(i)}isObjectProperty(i){return i.type==="Property"&&i.kind==="init"&&!i.method}isObjectMethod(i){return i.type==="Property"&&(i.method||i.kind==="get"||i.kind==="set")}castNodeTo(i,r){let s=super.castNodeTo(i,r);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(i){let r=super.cloneIdentifier(i);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(i){return i.type==="Literal"?this.cloneEstreeStringLiteral(i):super.cloneStringLiteral(i)}finishNodeAt(i,r,s){return sn(super.finishNodeAt(i,r,s))}finishNode(i,r){let s=super.finishNode(i,r);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(i,r){super.resetStartLocation(i,r),sn(i)}resetEndLocation(i,r=this.state.lastTokEndLoc){super.resetEndLocation(i,r),sn(i)}},Ir=class{constructor(e,i){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!i}},Be={brace:new Ir("{"),j_oTag:new Ir("<tag"),j_cTag:new Ir("</tag"),j_expr:new Ir("<tag>...</tag>",!0)};Be.template=new Ir("`",!0);var ge=!0,H=!0,Kl=!0,nn=!0,ir=!0,WE=!0,Ma=class{constructor(e,i={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.rightAssociative=!!i.rightAssociative,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop!=null?i.binop:null,this.updateContext=null}},dc=new Map;function _e(t,e={}){e.keyword=t;let i=ae(t,e);return dc.set(t,i),i}function Mt(t,e){return ae(t,{beforeExpr:ge,binop:e})}var cn=-1,Ui=[],mc=[],yc=[],Tc=[],gc=[],xc=[];function ae(t,e={}){var i,r,s,n;return++cn,mc.push(t),yc.push((i=e.binop)!=null?i:-1),Tc.push((r=e.beforeExpr)!=null?r:!1),gc.push((s=e.startsExpr)!=null?s:!1),xc.push((n=e.prefix)!=null?n:!1),Ui.push(new Ma(t,e)),cn}function Se(t,e={}){var i,r,s,n;return++cn,dc.set(t,cn),mc.push(t),yc.push((i=e.binop)!=null?i:-1),Tc.push((r=e.beforeExpr)!=null?r:!1),gc.push((s=e.startsExpr)!=null?s:!1),xc.push((n=e.prefix)!=null?n:!1),Ui.push(new Ma("name",e)),cn}var YE={bracketL:ae("[",{beforeExpr:ge,startsExpr:H}),bracketHashL:ae("#[",{beforeExpr:ge,startsExpr:H}),bracketBarL:ae("[|",{beforeExpr:ge,startsExpr:H}),bracketR:ae("]"),bracketBarR:ae("|]"),braceL:ae("{",{beforeExpr:ge,startsExpr:H}),braceBarL:ae("{|",{beforeExpr:ge,startsExpr:H}),braceHashL:ae("#{",{beforeExpr:ge,startsExpr:H}),braceR:ae("}"),braceBarR:ae("|}"),parenL:ae("(",{beforeExpr:ge,startsExpr:H}),parenR:ae(")"),comma:ae(",",{beforeExpr:ge}),semi:ae(";",{beforeExpr:ge}),colon:ae(":",{beforeExpr:ge}),doubleColon:ae("::",{beforeExpr:ge}),dot:ae("."),question:ae("?",{beforeExpr:ge}),questionDot:ae("?."),arrow:ae("=>",{beforeExpr:ge}),template:ae("template"),ellipsis:ae("...",{beforeExpr:ge}),backQuote:ae("`",{startsExpr:H}),dollarBraceL:ae("${",{beforeExpr:ge,startsExpr:H}),templateTail:ae("...`",{startsExpr:H}),templateNonTail:ae("...${",{beforeExpr:ge,startsExpr:H}),at:ae("@"),hash:ae("#",{startsExpr:H}),interpreterDirective:ae("#!..."),eq:ae("=",{beforeExpr:ge,isAssign:nn}),assign:ae("_=",{beforeExpr:ge,isAssign:nn}),slashAssign:ae("_=",{beforeExpr:ge,isAssign:nn}),xorAssign:ae("_=",{beforeExpr:ge,isAssign:nn}),moduloAssign:ae("_=",{beforeExpr:ge,isAssign:nn}),incDec:ae("++/--",{prefix:ir,postfix:WE,startsExpr:H}),bang:ae("!",{beforeExpr:ge,prefix:ir,startsExpr:H}),tilde:ae("~",{beforeExpr:ge,prefix:ir,startsExpr:H}),doubleCaret:ae("^^",{startsExpr:H}),doubleAt:ae("@@",{startsExpr:H}),pipeline:Mt("|>",0),nullishCoalescing:Mt("??",1),logicalOR:Mt("||",1),logicalAND:Mt("&&",2),bitwiseOR:Mt("|",3),bitwiseXOR:Mt("^",4),bitwiseAND:Mt("&",5),equality:Mt("==/!=/===/!==",6),lt:Mt("</>/<=/>=",7),gt:Mt("</>/<=/>=",7),relational:Mt("</>/<=/>=",7),bitShift:Mt("<</>>/>>>",8),bitShiftL:Mt("<</>>/>>>",8),bitShiftR:Mt("<</>>/>>>",8),plusMin:ae("+/-",{beforeExpr:ge,binop:9,prefix:ir,startsExpr:H}),modulo:ae("%",{binop:10,startsExpr:H}),star:ae("*",{binop:10}),slash:Mt("/",10),exponent:ae("**",{beforeExpr:ge,binop:11,rightAssociative:!0}),_in:_e("in",{beforeExpr:ge,binop:7}),_instanceof:_e("instanceof",{beforeExpr:ge,binop:7}),_break:_e("break"),_case:_e("case",{beforeExpr:ge}),_catch:_e("catch"),_continue:_e("continue"),_debugger:_e("debugger"),_default:_e("default",{beforeExpr:ge}),_else:_e("else",{beforeExpr:ge}),_finally:_e("finally"),_function:_e("function",{startsExpr:H}),_if:_e("if"),_return:_e("return",{beforeExpr:ge}),_switch:_e("switch"),_throw:_e("throw",{beforeExpr:ge,prefix:ir,startsExpr:H}),_try:_e("try"),_var:_e("var"),_const:_e("const"),_with:_e("with"),_new:_e("new",{beforeExpr:ge,startsExpr:H}),_this:_e("this",{startsExpr:H}),_super:_e("super",{startsExpr:H}),_class:_e("class",{startsExpr:H}),_extends:_e("extends",{beforeExpr:ge}),_export:_e("export"),_import:_e("import",{startsExpr:H}),_null:_e("null",{startsExpr:H}),_true:_e("true",{startsExpr:H}),_false:_e("false",{startsExpr:H}),_typeof:_e("typeof",{beforeExpr:ge,prefix:ir,startsExpr:H}),_void:_e("void",{beforeExpr:ge,prefix:ir,startsExpr:H}),_delete:_e("delete",{beforeExpr:ge,prefix:ir,startsExpr:H}),_do:_e("do",{isLoop:Kl,beforeExpr:ge}),_for:_e("for",{isLoop:Kl}),_while:_e("while",{isLoop:Kl}),_as:Se("as",{startsExpr:H}),_assert:Se("assert",{startsExpr:H}),_async:Se("async",{startsExpr:H}),_await:Se("await",{startsExpr:H}),_defer:Se("defer",{startsExpr:H}),_from:Se("from",{startsExpr:H}),_get:Se("get",{startsExpr:H}),_let:Se("let",{startsExpr:H}),_meta:Se("meta",{startsExpr:H}),_of:Se("of",{startsExpr:H}),_sent:Se("sent",{startsExpr:H}),_set:Se("set",{startsExpr:H}),_source:Se("source",{startsExpr:H}),_static:Se("static",{startsExpr:H}),_using:Se("using",{startsExpr:H}),_yield:Se("yield",{startsExpr:H}),_asserts:Se("asserts",{startsExpr:H}),_checks:Se("checks",{startsExpr:H}),_exports:Se("exports",{startsExpr:H}),_global:Se("global",{startsExpr:H}),_implements:Se("implements",{startsExpr:H}),_intrinsic:Se("intrinsic",{startsExpr:H}),_infer:Se("infer",{startsExpr:H}),_is:Se("is",{startsExpr:H}),_mixins:Se("mixins",{startsExpr:H}),_proto:Se("proto",{startsExpr:H}),_require:Se("require",{startsExpr:H}),_satisfies:Se("satisfies",{startsExpr:H}),_keyof:Se("keyof",{startsExpr:H}),_readonly:Se("readonly",{startsExpr:H}),_unique:Se("unique",{startsExpr:H}),_abstract:Se("abstract",{startsExpr:H}),_declare:Se("declare",{startsExpr:H}),_enum:Se("enum",{startsExpr:H}),_module:Se("module",{startsExpr:H}),_namespace:Se("namespace",{startsExpr:H}),_interface:Se("interface",{startsExpr:H}),_type:Se("type",{startsExpr:H}),_opaque:Se("opaque",{startsExpr:H}),name:ae("name",{startsExpr:H}),placeholder:ae("%%",{startsExpr:H}),string:ae("string",{startsExpr:H}),num:ae("num",{startsExpr:H}),bigint:ae("bigint",{startsExpr:H}),decimal:ae("decimal",{startsExpr:H}),regexp:ae("regexp",{startsExpr:H}),privateName:ae("#name",{startsExpr:H}),eof:ae("eof"),jsxName:ae("jsxName"),jsxText:ae("jsxText",{beforeExpr:ge}),jsxTagStart:ae("jsxTagStart",{startsExpr:H}),jsxTagEnd:ae("jsxTagEnd")};function $e(t){return t>=93&&t<=133}function zE(t){return t<=92}function mi(t){return t>=58&&t<=133}function Qd(t){return t>=58&&t<=137}function JE(t){return Tc[t]}function on(t){return gc[t]}function XE(t){return t>=29&&t<=33}function qd(t){return t>=129&&t<=131}function HE(t){return t>=90&&t<=92}function bc(t){return t>=58&&t<=92}function GE(t){return t>=39&&t<=59}function QE(t){return t===34}function ZE(t){return xc[t]}function eP(t){return t>=121&&t<=123}function tP(t){return t>=124&&t<=130}function nr(t){return mc[t]}function Da(t){return yc[t]}function iP(t){return t===57}function Fa(t){return t>=24&&t<=25}function qi(t){return Ui[t]}Ui[8].updateContext=t=>{t.pop()},Ui[5].updateContext=Ui[7].updateContext=Ui[23].updateContext=t=>{t.push(Be.brace)},Ui[22].updateContext=t=>{t[t.length-1]===Be.template?t.pop():t.push(Be.template)},Ui[143].updateContext=t=>{t.push(Be.j_expr,Be.j_oTag)};var Sc="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Zd="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",rP=new RegExp("["+Sc+"]"),sP=new RegExp("["+Sc+Zd+"]");Sc=Zd=null;var em=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],nP=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function Jl(t,e){let i=65536;for(let r=0,s=e.length;r<s;r+=2){if(i+=e[r],i>t)return!1;if(i+=e[r+1],i>=t)return!0}return!1}function Ki(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&rP.test(String.fromCharCode(t)):Jl(t,em)}function as(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&sP.test(String.fromCharCode(t)):Jl(t,em)||Jl(t,nP)}var Ec={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},aP=new Set(Ec.keyword),oP=new Set(Ec.strict),lP=new Set(Ec.strictBind);function tm(t,e){return e&&t==="await"||t==="enum"}function im(t,e){return tm(t,e)||oP.has(t)}function rm(t){return lP.has(t)}function sm(t,e){return im(t,e)||rm(t)}function cP(t){return aP.has(t)}function uP(t,e,i){return t===64&&e===64&&Ki(i)}var pP=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function fP(t){return pP.has(t)}var un=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}},pn=class{constructor(e,i){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=i}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:i}=this.scopeStack[e];if(i&128)return!0;if(i&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new un(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,i,r){let s=this.currentScope();if(i&8||i&16){this.checkRedeclarationInScope(s,e,i,r);let n=s.names.get(e)||0;i&16?n=n|4:(s.firstLexicalName||(s.firstLexicalName=e),n=n|2),s.names.set(e,n),i&8&&this.maybeExportDefined(s,e)}else if(i&4)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,e,i,r),s.names.set(e,(s.names.get(e)||0)|1),this.maybeExportDefined(s,e),!(s.flags&1667));--n);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,i){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(i)}checkRedeclarationInScope(e,i,r,s){this.isRedeclaredInScope(e,i,r)&&this.parser.raise(w.VarRedeclaration,s,{identifierName:i})}isRedeclaredInScope(e,i,r){if(!(r&1))return!1;if(r&8)return e.names.has(i);let s=e.names.get(i);return r&16?(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0:(s&2)>0&&!(e.flags&8&&e.firstLexicalName===i)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){let{name:i}=e;this.scopeStack[0].names.has(i)||this.undefinedExports.set(i,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:i}=this.scopeStack[e];if(i&1667)return i}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:i}=this.scopeStack[e];if(i&1731&&!(i&4))return i}}},Xl=class extends un{constructor(...e){super(...e),this.declareFunctions=new Set}},Hl=class extends pn{createScope(e){return new Xl(e)}declareName(e,i,r){let s=this.currentScope();if(i&2048){this.checkRedeclarationInScope(s,e,i,r),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(e,i,r)}isRedeclaredInScope(e,i,r){if(super.isRedeclaredInScope(e,i,r))return!0;if(r&2048&&!e.declareFunctions.has(i)){let s=e.names.get(i);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},hP=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ce=Ci`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:i})=>`Enum \`${t}\` has type \`${i}\`, so the initializer of \`${e}\` needs to be a ${i} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:i})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${i}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function dP(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function Ud(t){return t.importKind==="type"||t.importKind==="typeof"}var mP={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function yP(t,e){let i=[],r=[];for(let s=0;s<t.length;s++)(e(t[s],s,t)?i:r).push(t[s]);return[i,r]}var TP=/\*?\s*@((?:no)?flow)\b/,gP=t=>class extends t{constructor(...i){super(...i),this.flowPragma=void 0}getScopeHandler(){return Hl}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(i,r){i!==134&&i!==13&&i!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(i,r)}addComment(i){if(this.flowPragma===void 0){let r=TP.exec(i.value);if(r)if(r[1]==="flow")this.flowPragma="flow";else if(r[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(i)}flowParseTypeInitialiser(i){let r=this.state.inType;this.state.inType=!0,this.expect(i||14);let s=this.flowParseType();return this.state.inType=r,s}flowParsePredicate(){let i=this.startNode(),r=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>r.index+1&&this.raise(ce.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(i.value=super.parseExpression(),this.expect(11),this.finishNode(i,"DeclaredPredicate")):this.finishNode(i,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let i=this.state.inType;this.state.inType=!0,this.expect(14);let r=null,s=null;return this.match(54)?(this.state.inType=i,s=this.flowParsePredicate()):(r=this.flowParseType(),this.state.inType=i,this.match(54)&&(s=this.flowParsePredicate())),[r,s]}flowParseDeclareClass(i){return this.next(),this.flowParseInterfaceish(i,!0),this.finishNode(i,"DeclareClass")}flowParseDeclareFunction(i){this.next();let r=i.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._this,this.expect(11),[s.returnType,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),r.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(r),this.semicolon(),this.scope.declareName(i.id.name,2048,i.id.loc.start),this.finishNode(i,"DeclareFunction")}flowParseDeclare(i,r){if(this.match(80))return this.flowParseDeclareClass(i);if(this.match(68))return this.flowParseDeclareFunction(i);if(this.match(74))return this.flowParseDeclareVariable(i);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(i):(r&&this.raise(ce.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(i));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(i);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(i);if(this.isContextual(129))return this.flowParseDeclareInterface(i);if(this.match(82))return this.flowParseDeclareExportDeclaration(i,r);this.unexpected()}flowParseDeclareVariable(i){return this.next(),i.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(i.id.name,5,i.id.loc.start),this.semicolon(),this.finishNode(i,"DeclareVariable")}flowParseDeclareModule(i){this.scope.enter(0),this.match(134)?i.id=super.parseExprAtom():i.id=this.parseIdentifier();let r=i.body=this.startNode(),s=r.body=[];for(this.expect(5);!this.match(8);){let l=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(ce.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(l)):(this.expectContextual(125,ce.UnsupportedStatementInDeclareModule),l=this.flowParseDeclare(l,!0)),s.push(l)}this.scope.exit(),this.expect(8),this.finishNode(r,"BlockStatement");let n=null,a=!1;return s.forEach(l=>{dP(l)?(n==="CommonJS"&&this.raise(ce.AmbiguousDeclareModuleKind,l),n="ES"):l.type==="DeclareModuleExports"&&(a&&this.raise(ce.DuplicateDeclareModuleExports,l),n==="ES"&&this.raise(ce.AmbiguousDeclareModuleKind,l),n="CommonJS",a=!0)}),i.kind=n||"CommonJS",this.finishNode(i,"DeclareModule")}flowParseDeclareExportDeclaration(i,r){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?i.declaration=this.flowParseDeclare(this.startNode()):(i.declaration=this.flowParseType(),this.semicolon()),i.default=!0,this.finishNode(i,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!r){let s=this.state.value;throw this.raise(ce.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:mP[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return i.declaration=this.flowParseDeclare(this.startNode()),i.default=!1,this.finishNode(i,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return i=this.parseExport(i,null),i.type==="ExportNamedDeclaration"?(i.default=!1,delete i.exportKind,this.castNodeTo(i,"DeclareExportDeclaration")):this.castNodeTo(i,"DeclareExportAllDeclaration");this.unexpected()}flowParseDeclareModuleExports(i){return this.next(),this.expectContextual(111),i.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(i,"DeclareModuleExports")}flowParseDeclareTypeAlias(i){this.next();let r=this.flowParseTypeAlias(i);return this.castNodeTo(r,"DeclareTypeAlias"),r}flowParseDeclareOpaqueType(i){this.next();let r=this.flowParseOpaqueType(i,!0);return this.castNodeTo(r,"DeclareOpaqueType"),r}flowParseDeclareInterface(i){return this.next(),this.flowParseInterfaceish(i,!1),this.finishNode(i,"DeclareInterface")}flowParseInterfaceish(i,r){if(i.id=this.flowParseRestrictedIdentifier(!r,!0),this.scope.declareName(i.id.name,r?17:8201,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.extends=[],this.eat(81))do i.extends.push(this.flowParseInterfaceExtends());while(!r&&this.eat(12));if(r){if(i.implements=[],i.mixins=[],this.eatContextual(117))do i.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do i.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}i.body=this.flowParseObjectType({allowStatic:r,allowExact:!1,allowSpread:!1,allowProto:r,allowInexact:!1})}flowParseInterfaceExtends(){let i=this.startNode();return i.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,this.finishNode(i,"InterfaceExtends")}flowParseInterface(i){return this.flowParseInterfaceish(i,!1),this.finishNode(i,"InterfaceDeclaration")}checkNotUnderscore(i){i==="_"&&this.raise(ce.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(i,r,s){hP.has(i)&&this.raise(s?ce.AssignReservedType:ce.UnexpectedReservedType,r,{reservedType:i})}flowParseRestrictedIdentifier(i,r){return this.checkReservedType(this.state.value,this.state.startLoc,r),this.parseIdentifier(i)}flowParseTypeAlias(i){return i.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(i.id.name,8201,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(i,"TypeAlias")}flowParseOpaqueType(i,r){return this.expectContextual(130),i.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(i.id.name,8201,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.supertype=null,this.match(14)&&(i.supertype=this.flowParseTypeInitialiser(14)),i.impltype=null,r||(i.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(i,"OpaqueType")}flowParseTypeParameter(i=!1){let r=this.state.startLoc,s=this.startNode(),n=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return s.name=a.name,s.variance=n,s.bound=a.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):i&&this.raise(ce.MissingTypeParamDefault,r),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let i=this.state.inType,r=this.startNode();r.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);r.params.push(n),n.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterDeclaration")}flowInTopLevelContext(i){if(this.curContext()!==Be.brace){let r=this.state.context;this.state.context=[r[0]];try{return i()}finally{this.state.context=r}}else return i()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let i=this.startNode(),r=this.state.inType;return this.state.inType=!0,i.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)i.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=s}),this.state.inType=r,!this.state.inType&&this.curContext()===Be.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(i,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;let i=this.startNode(),r=this.state.inType;for(i.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)i.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterInstantiation")}flowParseInterfaceType(){let i=this.startNode();if(this.expectContextual(129),i.extends=[],this.eat(81))do i.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return i.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(i,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(i,r,s){return i.static=r,this.lookahead().type===14?(i.id=this.flowParseObjectPropertyKey(),i.key=this.flowParseTypeInitialiser()):(i.id=null,i.key=this.flowParseType()),this.expect(3),i.value=this.flowParseTypeInitialiser(),i.variance=s,this.finishNode(i,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(i,r){return i.static=r,i.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(i.method=!0,i.optional=!1,i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.loc.start))):(i.method=!1,this.eat(17)&&(i.optional=!0),i.value=this.flowParseTypeInitialiser()),this.finishNode(i,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(i){for(i.params=[],i.rest=null,i.typeParameters=null,i.this=null,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(i.this=this.flowParseFunctionTypeParam(!0),i.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)i.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),i.returnType=this.flowParseTypeInitialiser(),this.finishNode(i,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(i,r){let s=this.startNode();return i.static=r,i.value=this.flowParseObjectTypeMethodish(s),this.finishNode(i,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:i,allowExact:r,allowSpread:s,allowProto:n,allowInexact:a}){let l=this.state.inType;this.state.inType=!0;let c=this.startNode();c.callProperties=[],c.properties=[],c.indexers=[],c.internalSlots=[];let o,u,f=!1;for(r&&this.match(6)?(this.expect(6),o=9,u=!0):(this.expect(5),o=8,u=!1),c.exact=u;!this.match(o);){let m=!1,S=null,P=null,A=this.startNode();if(n&&this.isContextual(118)){let k=this.lookahead();k.type!==14&&k.type!==17&&(this.next(),S=this.state.startLoc,i=!1)}if(i&&this.isContextual(106)){let k=this.lookahead();k.type!==14&&k.type!==17&&(this.next(),m=!0)}let C=this.flowParseVariance();if(this.eat(0))S!=null&&this.unexpected(S),this.eat(0)?(C&&this.unexpected(C.loc.start),c.internalSlots.push(this.flowParseObjectTypeInternalSlot(A,m))):c.indexers.push(this.flowParseObjectTypeIndexer(A,m,C));else if(this.match(10)||this.match(47))S!=null&&this.unexpected(S),C&&this.unexpected(C.loc.start),c.callProperties.push(this.flowParseObjectTypeCallProperty(A,m));else{let k="init";if(this.isContextual(99)||this.isContextual(104)){let L=this.lookahead();Qd(L.type)&&(k=this.state.value,this.next())}let D=this.flowParseObjectTypeProperty(A,m,S,C,k,s,a??!u);D===null?(f=!0,P=this.state.lastTokStartLoc):c.properties.push(D)}this.flowObjectTypeSemicolon(),P&&!this.match(8)&&!this.match(9)&&this.raise(ce.UnexpectedExplicitInexactInObject,P)}this.expect(o),s&&(c.inexact=f);let d=this.finishNode(c,"ObjectTypeAnnotation");return this.state.inType=l,d}flowParseObjectTypeProperty(i,r,s,n,a,l,c){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(l?c||this.raise(ce.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ce.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(ce.InexactVariance,n),null):(l||this.raise(ce.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(ce.SpreadVariance,n),i.argument=this.flowParseType(),this.finishNode(i,"ObjectTypeSpreadProperty"));{i.key=this.flowParseObjectPropertyKey(),i.static=r,i.proto=s!=null,i.kind=a;let o=!1;return this.match(47)||this.match(10)?(i.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.loc.start),i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(i),!l&&i.key.name==="constructor"&&i.value.this&&this.raise(ce.ThisParamBannedInConstructor,i.value.this)):(a!=="init"&&this.unexpected(),i.method=!1,this.eat(17)&&(o=!0),i.value=this.flowParseTypeInitialiser(),i.variance=n),i.optional=o,this.finishNode(i,"ObjectTypeProperty")}}flowCheckGetterSetterParams(i){let r=i.kind==="get"?0:1,s=i.value.params.length+(i.value.rest?1:0);i.value.this&&this.raise(i.kind==="get"?ce.GetterMayNotHaveThisParam:ce.SetterMayNotHaveThisParam,i.value.this),s!==r&&this.raise(i.kind==="get"?w.BadGetterArity:w.BadSetterArity,i),i.kind==="set"&&i.value.rest&&this.raise(w.BadSetterRestParameter,i)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(i,r){i??(i=this.state.startLoc);let s=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(i);n.qualification=s,n.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(n,"QualifiedTypeIdentifier")}return s}flowParseGenericType(i,r){let s=this.startNodeAt(i);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(i,r),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let i=this.startNode();return this.expect(87),i.argument=this.flowParsePrimaryType(),this.finishNode(i,"TypeofTypeAnnotation")}flowParseTupleType(){let i=this.startNode();for(i.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(i.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(i,"TupleTypeAnnotation")}flowParseFunctionTypeParam(i){let r=null,s=!1,n=null,a=this.startNode(),l=this.lookahead(),c=this.state.type===78;return l.type===14||l.type===17?(c&&!i&&this.raise(ce.ThisParamMustBeFirst,a),r=this.parseIdentifier(c),this.eat(17)&&(s=!0,c&&this.raise(ce.ThisParamMayNotBeOptional,a)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),a.name=r,a.optional=s,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(i){let r=this.startNodeAt(i.loc.start);return r.name=null,r.optional=!1,r.typeAnnotation=i,this.finishNode(r,"FunctionTypeParam")}flowParseFunctionTypeParams(i=[]){let r=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)i.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r=this.flowParseFunctionTypeParam(!1)),{params:i,rest:r,_this:s}}flowIdentToTypeAnnotation(i,r,s){switch(s.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(i,s)}}flowParsePrimaryType(){let i=this.state.startLoc,r=this.startNode(),s,n,a=!1,l=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=l,n;case 47:{let c=this.startNode();return c.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),c.params=s.params,c.rest=s.rest,c.this=s._this,this.expect(11),this.expect(19),c.returnType=this.flowParseType(),this.finishNode(c,"FunctionTypeAnnotation")}case 10:{let c=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if($e(this.state.type)||this.match(78)){let o=this.lookahead().type;a=o!==17&&o!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=l,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;this.eat(12)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),c.params=s.params,c.rest=s.rest,c.this=s._this,this.expect(11),this.expect(19),c.returnType=this.flowParseType(),c.typeParameters=null,this.finishNode(c,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return r.value=this.match(85),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",r);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",r);throw this.raise(ce.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(bc(this.state.type)){let c=nr(this.state.type);return this.next(),super.createIdentifier(r,c)}else if($e(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(i,r,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let i=this.state.startLoc,r=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(i),a=this.eat(18);s=s||a,this.expect(0),!a&&this.match(3)?(n.elementType=r,this.next(),r=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=r,n.indexType=this.flowParseType(),this.expect(3),s?(n.optional=a,r=this.finishNode(n,"OptionalIndexedAccessType")):r=this.finishNode(n,"IndexedAccessType"))}return r}flowParsePrefixType(){let i=this.startNode();return this.eat(17)?(i.typeAnnotation=this.flowParsePrefixType(),this.finishNode(i,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let i=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let r=this.startNodeAt(i.loc.start);return r.params=[this.reinterpretTypeAsFunctionTypeParam(i)],r.rest=null,r.this=null,r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation")}return i}flowParseIntersectionType(){let i=this.startNode();this.eat(45);let r=this.flowParseAnonFunctionWithoutParens();for(i.types=[r];this.eat(45);)i.types.push(this.flowParseAnonFunctionWithoutParens());return i.types.length===1?r:this.finishNode(i,"IntersectionTypeAnnotation")}flowParseUnionType(){let i=this.startNode();this.eat(43);let r=this.flowParseIntersectionType();for(i.types=[r];this.eat(43);)i.types.push(this.flowParseIntersectionType());return i.types.length===1?r:this.finishNode(i,"UnionTypeAnnotation")}flowParseType(){let i=this.state.inType;this.state.inType=!0;let r=this.flowParseUnionType();return this.state.inType=i,r}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let i=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(i,r)}else return this.flowParseType()}flowParseTypeAnnotation(){let i=this.startNode();return i.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(i,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(i){let r=i?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r)),r}typeCastToParameter(i){return i.expression.typeAnnotation=i.typeAnnotation,this.resetEndLocation(i.expression,i.typeAnnotation.loc.end),i.expression}flowParseVariance(){let i=null;return this.match(53)?(i=this.startNode(),this.state.value==="+"?i.kind="plus":i.kind="minus",this.next(),this.finishNode(i,"Variance")):i}parseFunctionBody(i,r,s=!1){if(r){this.forwardNoArrowParamsConversionAt(i,()=>super.parseFunctionBody(i,!0,s));return}super.parseFunctionBody(i,!1,s)}parseFunctionBodyAndFinish(i,r,s=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(i,r,s)}parseStatementLike(i){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(mi(s.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let r=super.parseStatementLike(i);return this.flowPragma===void 0&&!this.isValidDirective(r)&&(this.flowPragma=null),r}parseExpressionStatement(i,r,s){if(r.type==="Identifier"){if(r.name==="declare"){if(this.match(80)||$e(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(i)}else if($e(this.state.type)){if(r.name==="interface")return this.flowParseInterface(i);if(r.name==="type")return this.flowParseTypeAlias(i);if(r.name==="opaque")return this.flowParseOpaqueType(i,!1)}}return super.parseExpressionStatement(i,r,s)}shouldParseExportDeclaration(){let{type:i}=this.state;return i===126||qd(i)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:i}=this.state;return i===126||qd(i)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}return super.parseExportDefaultExpression()}parseConditional(i,r,s){if(!this.match(17))return i;if(this.state.maybeInArrowParameters){let d=this.lookaheadCharCode();if(d===44||d===61||d===58||d===41)return this.setOptionalParametersError(s),i}this.expect(17);let n=this.state.clone(),a=this.state.noArrowAt,l=this.startNodeAt(r),{consequent:c,failed:o}=this.tryParseConditionalConsequent(),[u,f]=this.getArrowLikeExpressions(c);if(o||f.length>0){let d=[...a];if(f.length>0){this.state=n,this.state.noArrowAt=d;for(let m=0;m<f.length;m++)d.push(f[m].start);({consequent:c,failed:o}=this.tryParseConditionalConsequent()),[u,f]=this.getArrowLikeExpressions(c)}o&&u.length>1&&this.raise(ce.AmbiguousConditionalArrow,n.startLoc),o&&u.length===1&&(this.state=n,d.push(u[0].start),this.state.noArrowAt=d,{consequent:c,failed:o}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(c,!0),this.state.noArrowAt=a,this.expect(14),l.test=i,l.consequent=c,l.alternate=this.forwardNoArrowParamsConversionAt(l,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(l,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let i=this.parseMaybeAssignAllowIn(),r=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:i,failed:r}}getArrowLikeExpressions(i,r){let s=[i],n=[];for(;s.length!==0;){let a=s.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):n.push(a),s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return r?(n.forEach(a=>this.finishArrowValidation(a)),[n,[]]):yP(n,a=>a.params.every(l=>this.isAssignable(l,!0)))}finishArrowValidation(i){var r;this.toAssignableList(i.params,(r=i.extra)==null?void 0:r.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(i,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(i,r){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(i.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=r(),this.state.noArrowParamsConversionAt.pop()):s=r(),s}parseParenItem(i,r){let s=super.parseParenItem(i,r);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(i)),this.match(14)){let n=this.startNodeAt(r);return n.expression=s,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return s}assertModuleNodeAllowed(i){i.type==="ImportDeclaration"&&(i.importKind==="type"||i.importKind==="typeof")||i.type==="ExportNamedDeclaration"&&i.exportKind==="type"||i.type==="ExportAllDeclaration"&&i.exportKind==="type"||super.assertModuleNodeAllowed(i)}parseExportDeclaration(i){if(this.isContextual(130)){i.exportKind="type";let r=this.startNode();return this.next(),this.match(5)?(i.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(i),null):this.flowParseTypeAlias(r)}else if(this.isContextual(131)){i.exportKind="type";let r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}else if(this.isContextual(129)){i.exportKind="type";let r=this.startNode();return this.next(),this.flowParseInterface(r)}else if(this.isContextual(126)){i.exportKind="value";let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}else return super.parseExportDeclaration(i)}eatExportStar(i){return super.eatExportStar(i)?!0:this.isContextual(130)&&this.lookahead().type===55?(i.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(i){let{startLoc:r}=this.state,s=super.maybeParseExportNamespaceSpecifier(i);return s&&i.exportKind==="type"&&this.unexpected(r),s}parseClassId(i,r,s){super.parseClassId(i,r,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(i,r,s){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(i,r))return;r.declare=!0}super.parseClassMember(i,r,s),r.declare&&(r.type!=="ClassProperty"&&r.type!=="ClassPrivateProperty"&&r.type!=="PropertyDefinition"?this.raise(ce.DeclareClassElement,n):r.value&&this.raise(ce.DeclareClassFieldInitializer,r.value))}isIterator(i){return i==="iterator"||i==="asyncIterator"}readIterator(){let i=super.readWord1(),r="@@"+i;(!this.isIterator(i)||!this.state.inType)&&this.raise(w.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)}getTokenFromCode(i){let r=this.input.charCodeAt(this.state.pos+1);i===123&&r===124?this.finishOp(6,2):this.state.inType&&(i===62||i===60)?this.finishOp(i===62?48:47,1):this.state.inType&&i===63?r===46?this.finishOp(18,2):this.finishOp(17,1):uP(i,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(i)}isAssignable(i,r){return i.type==="TypeCastExpression"?this.isAssignable(i.expression,r):super.isAssignable(i,r)}toAssignable(i,r=!1){!r&&i.type==="AssignmentExpression"&&i.left.type==="TypeCastExpression"&&(i.left=this.typeCastToParameter(i.left)),super.toAssignable(i,r)}toAssignableList(i,r,s){for(let n=0;n<i.length;n++){let a=i[n];a?.type==="TypeCastExpression"&&(i[n]=this.typeCastToParameter(a))}super.toAssignableList(i,r,s)}toReferencedList(i,r){for(let n=0;n<i.length;n++){var s;let a=i[n];a&&a.type==="TypeCastExpression"&&!((s=a.extra)!=null&&s.parenthesized)&&(i.length>1||!r)&&this.raise(ce.TypeCastInPattern,a.typeAnnotation)}return i}parseArrayLike(i,r,s,n){let a=super.parseArrayLike(i,r,s,n);return r&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(i,r,s){return i==="TypeCastExpression"||super.isValidLVal(i,r,s)}parseClassProperty(i){return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(i)}parseClassPrivateProperty(i){return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(i)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(i){return!this.match(14)&&super.isNonstaticConstructor(i)}pushClassMethod(i,r,s,n,a,l){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(i,r,s,n,a,l),r.params&&a){let c=r.params;c.length>0&&this.isThisParam(c[0])&&this.raise(ce.ThisParamBannedInConstructor,r)}else if(r.type==="MethodDefinition"&&a&&r.value.params){let c=r.value.params;c.length>0&&this.isThisParam(c[0])&&this.raise(ce.ThisParamBannedInConstructor,r)}}pushClassPrivateMethod(i,r,s,n){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(i,r,s,n)}parseClassSuper(i){if(super.parseClassSuper(i),i.superClass&&(this.match(47)||this.match(51))&&(i.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let r=i.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,r.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(i){super.checkGetterSetterParams(i);let r=this.getObjectOrClassMethodParams(i);if(r.length>0){let s=r[0];this.isThisParam(s)&&i.kind==="get"?this.raise(ce.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(ce.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(i){i.variance=this.flowParseVariance()}parseObjPropValue(i,r,s,n,a,l,c){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance;let o;this.match(47)&&!l&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let u=super.parseObjPropValue(i,r,s,n,a,l,c);return o&&((u.value||u).typeParameters=o),u}parseFunctionParamType(i){return this.eat(17)&&(i.type!=="Identifier"&&this.raise(ce.PatternIsOptional,i),this.isThisParam(i)&&this.raise(ce.ThisParamMayNotBeOptional,i),i.optional=!0),this.match(14)?i.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(i)&&this.raise(ce.ThisParamAnnotationRequired,i),this.match(29)&&this.isThisParam(i)&&this.raise(ce.ThisParamNoDefault,i),this.resetEndLocation(i),i}parseMaybeDefault(i,r){let s=super.parseMaybeDefault(i,r);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(ce.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(i){super.checkImportReflection(i),i.module&&i.importKind!=="value"&&this.raise(ce.ImportReflectionHasImportType,i.specifiers[0].loc.start)}parseImportSpecifierLocal(i,r,s){r.local=Ud(i)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),i.specifiers.push(this.finishImportSpecifier(r,s))}isPotentialImportPhase(i){if(super.isPotentialImportPhase(i))return!0;if(this.isContextual(130)){if(!i)return!0;let r=this.lookaheadCharCode();return r===123||r===42}return!i&&this.isContextual(87)}applyImportPhase(i,r,s,n){if(super.applyImportPhase(i,r,s,n),r){if(!s&&this.match(65))return;i.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),i.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(i,r,s,n,a){let l=i.imported,c=null;l.type==="Identifier"&&(l.name==="type"?c="type":l.name==="typeof"&&(c="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let f=this.parseIdentifier(!0);c!==null&&!mi(this.state.type)?(i.imported=f,i.importKind=c,i.local=this.cloneIdentifier(f)):(i.imported=l,i.importKind=null,i.local=this.parseIdentifier())}else{if(c!==null&&mi(this.state.type))i.imported=this.parseIdentifier(!0),i.importKind=c;else{if(r)throw this.raise(w.ImportBindingIsString,i,{importName:l.value});i.imported=l,i.importKind=null}this.eatContextual(93)?i.local=this.parseIdentifier():(o=!0,i.local=this.cloneIdentifier(i.imported))}let u=Ud(i);return s&&u&&this.raise(ce.ImportTypeShorthandOnlyInPureImport,i),(s||u)&&this.checkReservedType(i.local.name,i.local.loc.start,!0),o&&!s&&!u&&this.checkReservedWord(i.local.name,i.loc.start,!0,!0),this.finishImportSpecifier(i,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(i,r){let s=i.kind;s!=="get"&&s!=="set"&&this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(i,r)}parseVarId(i,r){super.parseVarId(i,r),this.match(14)&&(i.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i.id))}parseAsyncArrowFromCallExpression(i,r){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,i.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(i,r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(i,r){var s;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(i,r),n),!a.error)return a.node;let{context:o}=this.state,u=o[o.length-1];(u===Be.j_oTag||u===Be.j_expr)&&o.pop()}if((s=a)!=null&&s.error||this.match(47)){var l,c;n=n||this.state.clone();let o,u=this.tryParse(d=>{var m;o=this.flowParseTypeParameterDeclaration();let S=this.forwardNoArrowParamsConversionAt(o,()=>{let A=super.parseMaybeAssign(i,r);return this.resetStartLocationFromNode(A,o),A});(m=S.extra)!=null&&m.parenthesized&&d();let P=this.maybeUnwrapTypeCastExpression(S);return P.type!=="ArrowFunctionExpression"&&d(),P.typeParameters=o,this.resetStartLocationFromNode(P,o),S},n),f=null;if(u.node&&this.maybeUnwrapTypeCastExpression(u.node).type==="ArrowFunctionExpression"){if(!u.error&&!u.aborted)return u.node.async&&this.raise(ce.UnexpectedTypeParameterBeforeAsyncArrowFunction,o),u.node;f=u.node}if((l=a)!=null&&l.node)return this.state=a.failState,a.node;if(f)return this.state=u.failState,f;throw(c=a)!=null&&c.thrown?a.error:u.thrown?u.error:this.raise(ce.UnexpectedTokenAfterTypeParameter,o)}return super.parseMaybeAssign(i,r)}parseArrow(i){if(this.match(14)){let r=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(r.thrown)return null;r.error&&(this.state=r.failState),i.returnType=r.node.typeAnnotation?this.finishNode(r.node,"TypeAnnotation"):null}return super.parseArrow(i)}shouldParseArrow(i){return this.match(14)||super.shouldParseArrow(i)}setArrowFunctionParameters(i,r){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(i.start))?i.params=r:super.setArrowFunctionParameters(i,r)}checkParams(i,r,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(i.start)))){for(let a=0;a<i.params.length;a++)this.isThisParam(i.params[a])&&a>0&&this.raise(ce.ThisParamMustBeFirst,i.params[a]);super.checkParams(i,r,s,n)}}parseParenAndDistinguishExpression(i){return super.parseParenAndDistinguishExpression(i&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(i,r,s){if(i.type==="Identifier"&&i.name==="async"&&this.state.noArrowAt.includes(r.index)){this.next();let n=this.startNodeAt(r);n.callee=i,n.arguments=super.parseCallExpressionArguments(),i=this.finishNode(n,"CallExpression")}else if(i.type==="Identifier"&&i.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse(c=>this.parseAsyncArrowWithTypeParameters(r)||c(),n);if(!a.error&&!a.aborted)return a.node;let l=this.tryParse(()=>super.parseSubscripts(i,r,s),n);if(l.node&&!l.error)return l.node;if(a.node)return this.state=a.failState,a.node;if(l.node)return this.state=l.failState,l.node;throw a.error||l.error}return super.parseSubscripts(i,r,s)}parseSubscript(i,r,s,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,i;this.next();let a=this.startNodeAt(r);return a.callee=i,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(r);a.callee=i;let l=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),n.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,n.optionalChainMember)));if(l.node)return l.error&&(this.state=l.failState),l.node}return super.parseSubscript(i,r,s,n)}parseNewCallee(i){super.parseNewCallee(i);let r=null;this.shouldParseTypes()&&this.match(47)&&(r=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),i.typeArguments=r}parseAsyncArrowWithTypeParameters(i){let r=this.startNodeAt(i);if(this.parseFunctionParams(r,!1),!!this.parseArrow(r))return super.parseArrowExpression(r,void 0,!0)}readToken_mult_modulo(i){let r=this.input.charCodeAt(this.state.pos+1);if(i===42&&r===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(i)}readToken_pipe_amp(i){let r=this.input.charCodeAt(this.state.pos+1);if(i===124&&r===125){this.finishOp(9,2);return}super.readToken_pipe_amp(i)}parseTopLevel(i,r){let s=super.parseTopLevel(i,r);return this.state.hasFlowComment&&this.raise(ce.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ce.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let i=this.skipFlowComment();i&&(this.state.pos+=i,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:i}=this.state,r=2;for(;[32,9].includes(this.input.charCodeAt(i+r));)r++;let s=this.input.charCodeAt(r+i),n=this.input.charCodeAt(r+i+1);return s===58&&n===58?r+2:this.input.slice(r+i,r+i+12)==="flow-include"?r+12:s===58&&n!==58?r:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(w.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(i,{enumName:r,memberName:s}){this.raise(ce.EnumBooleanMemberNotInitialized,i,{memberName:s,enumName:r})}flowEnumErrorInvalidMemberInitializer(i,r){return this.raise(r.explicitType?r.explicitType==="symbol"?ce.EnumInvalidMemberInitializerSymbolType:ce.EnumInvalidMemberInitializerPrimaryType:ce.EnumInvalidMemberInitializerUnknownType,i,r)}flowEnumErrorNumberMemberNotInitialized(i,r){this.raise(ce.EnumNumberMemberNotInitialized,i,r)}flowEnumErrorStringMemberInconsistentlyInitialized(i,r){this.raise(ce.EnumStringMemberInconsistentlyInitialized,i,r)}flowEnumMemberInit(){let i=this.state.startLoc,r=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:i}}case 134:{let s=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:i}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:i}}default:return{type:"invalid",loc:i}}}flowEnumMemberRaw(){let i=this.state.startLoc,r=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:i};return{id:r,init:s}}flowEnumCheckExplicitTypeMismatch(i,r,s){let{explicitType:n}=r;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(i,r)}flowEnumMembers({enumName:i,explicitType:r}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let l=this.startNode(),{id:c,init:o}=this.flowEnumMemberRaw(),u=c.name;if(u==="")continue;/^[a-z]/.test(u)&&this.raise(ce.EnumInvalidMemberName,c,{memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:i}),s.has(u)&&this.raise(ce.EnumDuplicateMemberName,c,{memberName:u,enumName:i}),s.add(u);let f={enumName:i,explicitType:r,memberName:u};switch(l.id=c,o.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(o.loc,f,"boolean"),l.init=o.value,n.booleanMembers.push(this.finishNode(l,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(o.loc,f,"number"),l.init=o.value,n.numberMembers.push(this.finishNode(l,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(o.loc,f,"string"),l.init=o.value,n.stringMembers.push(this.finishNode(l,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,f);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,f);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,f);break;default:n.defaultedMembers.push(this.finishNode(l,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:a}}flowEnumStringMembers(i,r,{enumName:s}){if(i.length===0)return r;if(r.length===0)return i;if(r.length>i.length){for(let n of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return r}else{for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return i}}flowEnumParseExplicitType({enumName:i}){if(!this.eatContextual(102))return null;if(!$e(this.state.type))throw this.raise(ce.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:i});let{value:r}=this.state;return this.next(),r!=="boolean"&&r!=="number"&&r!=="string"&&r!=="symbol"&&this.raise(ce.EnumInvalidExplicitType,this.state.startLoc,{enumName:i,invalidEnumType:r}),r}flowEnumBody(i,r){let s=r.name,n=r.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:l,hasUnknownMembers:c}=this.flowEnumMembers({enumName:s,explicitType:a});switch(i.hasUnknownMembers=c,a){case"boolean":return i.explicitType=!0,i.members=l.booleanMembers,this.expect(8),this.finishNode(i,"EnumBooleanBody");case"number":return i.explicitType=!0,i.members=l.numberMembers,this.expect(8),this.finishNode(i,"EnumNumberBody");case"string":return i.explicitType=!0,i.members=this.flowEnumStringMembers(l.stringMembers,l.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(i,"EnumStringBody");case"symbol":return i.members=l.defaultedMembers,this.expect(8),this.finishNode(i,"EnumSymbolBody");default:{let o=()=>(i.members=[],this.expect(8),this.finishNode(i,"EnumStringBody"));i.explicitType=!1;let u=l.booleanMembers.length,f=l.numberMembers.length,d=l.stringMembers.length,m=l.defaultedMembers.length;if(!u&&!f&&!d&&!m)return o();if(!u&&!f)return i.members=this.flowEnumStringMembers(l.stringMembers,l.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(i,"EnumStringBody");if(!f&&!d&&u>=m){for(let S of l.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(S.loc.start,{enumName:s,memberName:S.id.name});return i.members=l.booleanMembers,this.expect(8),this.finishNode(i,"EnumBooleanBody")}else if(!u&&!d&&f>=m){for(let S of l.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(S.loc.start,{enumName:s,memberName:S.id.name});return i.members=l.numberMembers,this.expect(8),this.finishNode(i,"EnumNumberBody")}else return this.raise(ce.EnumInconsistentMemberValues,n,{enumName:s}),o()}}}flowParseEnumDeclaration(i){let r=this.parseIdentifier();return i.id=r,i.body=this.flowEnumBody(this.startNode(),r),this.finishNode(i,"EnumDeclaration")}jsxParseOpeningElementAfterName(i){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(i.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(i)}isLookaheadToken_lt(){let i=this.nextTokenStart();if(this.input.charCodeAt(i)===60){let r=this.input.charCodeAt(i+1);return r!==60&&r!==61}return!1}reScan_lt_gt(){let{type:i}=this.state;i===47?(this.state.pos-=1,this.readToken_lt()):i===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:i}=this.state;return i===51?(this.state.pos-=2,this.finishOp(47,1),47):i}maybeUnwrapTypeCastExpression(i){return i.type==="TypeCastExpression"?i.expression:i}},xP={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},bP=/\r\n|[\r\n\u2028\u2029]/,_a=new RegExp(bP.source,"g");function os(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Kd(t,e,i){for(let r=e;r<i;r++)if(os(t.charCodeAt(r)))return!0;return!1}var Vl=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Wl=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function SP(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Cr=Ci`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function rr(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function ns(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return ns(t.object)+"."+ns(t.property);throw new Error("Node had unexpected type: "+t.type)}var EP=t=>class extends t{jsxReadToken(){let i="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Cr.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(s);return}i+=this.input.slice(r,this.state.pos),this.finishToken(142,i);return;case 38:i+=this.input.slice(r,this.state.pos),i+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:default:os(s)?(i+=this.input.slice(r,this.state.pos),i+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(i){let r=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=i?`
5
+ - Did you mean \`import { "${t}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${Na(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${Na(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${Na(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},ME={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},FE={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:t})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(t)}\`.`},BE=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),jE=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${Na({type:t})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),RE=["message"];function Rd(t,e,i){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:i})}function $E({toMessage:t,code:e,reasonCode:i,syntaxPlugin:r}){let s=i==="MissingPlugin"||i==="MissingOneOfPlugins";{let n={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};n[i]&&(i=n[i])}return function n(a,l){let c=new SyntaxError;return c.code=e,c.reasonCode=i,c.loc=a,c.pos=a.index,c.syntaxPlugin=r,s&&(c.missingPlugin=l.missingPlugin),Rd(c,"clone",function(u={}){var f;let{line:d,column:m,index:S}=(f=u.loc)!=null?f:a;return n(new Ii(d,m,S),Object.assign({},l,u.details))}),Rd(c,"details",l),Object.defineProperty(c,"message",{configurable:!0,get(){let o=`${t(l)} (${a.line}:${a.column})`;return this.message=o,o},set(o){Object.defineProperty(this,"message",{value:o,writable:!0})}}),c}}function Ci(t,e){if(Array.isArray(t))return r=>Ci(r,t[0]);let i={};for(let r of Object.keys(t)){let s=t[r],n=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:a}=n,l=NE(n,RE),c=typeof a=="string"?()=>a:a;i[r]=$E(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:r,toMessage:c},e?{syntaxPlugin:e}:{},l))}return i}var w=Object.assign({},Ci(DE),Ci(LE),Ci(ME),Ci(FE),Ci`pipelineOperator`(jE));function qE(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function UE(t){let e=qE();if(t==null)return e;if(t.annexB!=null&&t.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let i of Object.keys(e))t[i]!=null&&(e[i]=t[i]);if(e.startLine===1)t.startIndex==null&&e.startColumn>0?e.startIndex=e.startColumn:t.startColumn==null&&e.startIndex>0&&(e.startColumn=e.startIndex);else if((t.startColumn==null||t.startIndex==null)&&t.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(e.sourceType==="commonjs"){if(t.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(t.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(t.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return e}var{defineProperty:KE}=Object,$d=(t,e)=>{t&&KE(t,e,{enumerable:!1,value:t[e]})};function sn(t){return $d(t.loc.start,"index"),$d(t.loc.end,"index"),t}var VE=t=>class extends t{parse(){let i=sn(super.parse());return this.optionFlags&256&&(i.tokens=i.tokens.map(sn)),i}parseRegExpLiteral({pattern:i,flags:r}){let s=null;try{s=new RegExp(i,r)}catch{}let n=this.estreeParseLiteral(s);return n.regex={pattern:i,flags:r},n}parseBigIntLiteral(i){let r;try{r=BigInt(i)}catch{r=null}let s=this.estreeParseLiteral(r);return s.bigint=String(s.value||i),s}parseDecimalLiteral(i){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||i),s}estreeParseLiteral(i){return this.parseLiteral(i,"Literal")}parseStringLiteral(i){return this.estreeParseLiteral(i)}parseNumericLiteral(i){return this.estreeParseLiteral(i)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(i){return this.estreeParseLiteral(i)}estreeParseChainExpression(i,r){let s=this.startNodeAtNode(i);return s.expression=i,this.finishNodeAt(s,"ChainExpression",r)}directiveToStmt(i){let r=i.value;delete i.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;let s=this.castNodeTo(i,"ExpressionStatement");return s.expression=r,s.directive=r.extra.rawValue,delete r.extra,s}fillOptionalPropertiesForTSESLint(i){}cloneEstreeStringLiteral(i){let{start:r,end:s,loc:n,range:a,raw:l,value:c}=i,o=Object.create(i.constructor.prototype);return o.type="Literal",o.start=r,o.end=s,o.loc=n,o.range=a,o.raw=l,o.value=c,o}initFunction(i,r){super.initFunction(i,r),i.expression=!1}checkDeclaration(i){i!=null&&this.isObjectProperty(i)?this.checkDeclaration(i.value):super.checkDeclaration(i)}getObjectOrClassMethodParams(i){return i.value.params}isValidDirective(i){var r;return i.type==="ExpressionStatement"&&i.expression.type==="Literal"&&typeof i.expression.value=="string"&&!((r=i.expression.extra)!=null&&r.parenthesized)}parseBlockBody(i,r,s,n,a){super.parseBlockBody(i,r,s,n,a);let l=i.directives.map(c=>this.directiveToStmt(c));i.body=l.concat(i.body),delete i.directives}parsePrivateName(){let i=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(i):i}convertPrivateNameToPrivateIdentifier(i){let r=super.getPrivateNameSV(i);return i=i,delete i.id,i.name=r,this.castNodeTo(i,"PrivateIdentifier")}isPrivateName(i){return this.getPluginOption("estree","classFeatures")?i.type==="PrivateIdentifier":super.isPrivateName(i)}getPrivateNameSV(i){return this.getPluginOption("estree","classFeatures")?i.name:super.getPrivateNameSV(i)}parseLiteral(i,r){let s=super.parseLiteral(i,r);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(i,r,s=!1){super.parseFunctionBody(i,r,s),i.expression=i.body.type!=="BlockStatement"}parseMethod(i,r,s,n,a,l,c=!1){let o=this.startNode();o.kind=i.kind,o=super.parseMethod(o,r,s,n,a,l,c),delete o.kind;let{typeParameters:u}=i;u&&(delete i.typeParameters,o.typeParameters=u,this.resetStartLocationFromNode(o,u));let f=this.castNodeTo(o,"FunctionExpression");return i.value=f,l==="ClassPrivateMethod"&&(i.computed=!1),l==="ObjectMethod"?(i.kind==="method"&&(i.kind="init"),i.shorthand=!1,this.finishNode(i,"Property")):this.finishNode(i,"MethodDefinition")}nameIsConstructor(i){return i.type==="Literal"?i.value==="constructor":super.nameIsConstructor(i)}parseClassProperty(...i){let r=super.parseClassProperty(...i);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...i){let r=super.parseClassPrivateProperty(...i);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(r,"PropertyDefinition"),r.computed=!1),r}parseClassAccessorProperty(i){let r=super.parseClassAccessorProperty(i);return this.getPluginOption("estree","classFeatures")&&(r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty")),r}parseObjectProperty(i,r,s,n){let a=super.parseObjectProperty(i,r,s,n);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(i){return i.kind="init",this.finishNode(i,"Property")}isValidLVal(i,r,s){return i==="Property"?"value":super.isValidLVal(i,r,s)}isAssignable(i,r){return i!=null&&this.isObjectProperty(i)?this.isAssignable(i.value,r):super.isAssignable(i,r)}toAssignable(i,r=!1){if(i!=null&&this.isObjectProperty(i)){let{key:s,value:n}=i;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,r)}else super.toAssignable(i,r)}toAssignableObjectExpressionProp(i,r,s){i.type==="Property"&&(i.kind==="get"||i.kind==="set")?this.raise(w.PatternHasAccessor,i.key):i.type==="Property"&&i.method?this.raise(w.PatternHasMethod,i.key):super.toAssignableObjectExpressionProp(i,r,s)}finishCallExpression(i,r){let s=super.finishCallExpression(i,r);if(s.callee.type==="Import"){var n,a;this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=(n=s.arguments[1])!=null?n:null,s.attributes=(a=s.arguments[1])!=null?a:null,delete s.arguments,delete s.callee}else s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1;return s}toReferencedArguments(i){i.type!=="ImportExpression"&&super.toReferencedArguments(i)}parseExport(i,r){let s=this.state.lastTokStartLoc,n=super.parseExport(i,r);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:l}=n;l?.type==="ClassDeclaration"&&((a=l.decorators)==null?void 0:a.length)>0&&l.start===n.start&&this.resetStartLocation(n,s)}break}return n}stopParseSubscript(i,r){let s=super.stopParseSubscript(i,r);return r.optionalChainMember?this.estreeParseChainExpression(s,i.loc.end):s}parseMember(i,r,s,n,a){let l=super.parseMember(i,r,s,n,a);return l.type==="OptionalMemberExpression"?this.castNodeTo(l,"MemberExpression"):l.optional=!1,l}isOptionalMemberExpression(i){return i.type==="ChainExpression"?i.expression.type==="MemberExpression":super.isOptionalMemberExpression(i)}hasPropertyAsPrivateName(i){return i.type==="ChainExpression"&&(i=i.expression),super.hasPropertyAsPrivateName(i)}isObjectProperty(i){return i.type==="Property"&&i.kind==="init"&&!i.method}isObjectMethod(i){return i.type==="Property"&&(i.method||i.kind==="get"||i.kind==="set")}castNodeTo(i,r){let s=super.castNodeTo(i,r);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(i){let r=super.cloneIdentifier(i);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(i){return i.type==="Literal"?this.cloneEstreeStringLiteral(i):super.cloneStringLiteral(i)}finishNodeAt(i,r,s){return sn(super.finishNodeAt(i,r,s))}finishNode(i,r){let s=super.finishNode(i,r);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(i,r){super.resetStartLocation(i,r),sn(i)}resetEndLocation(i,r=this.state.lastTokEndLoc){super.resetEndLocation(i,r),sn(i)}},Ir=class{constructor(e,i){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!i}},Be={brace:new Ir("{"),j_oTag:new Ir("<tag"),j_cTag:new Ir("</tag"),j_expr:new Ir("<tag>...</tag>",!0)};Be.template=new Ir("`",!0);var ge=!0,H=!0,Kl=!0,nn=!0,ir=!0,WE=!0,Ma=class{constructor(e,i={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.rightAssociative=!!i.rightAssociative,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop!=null?i.binop:null,this.updateContext=null}},dc=new Map;function _e(t,e={}){e.keyword=t;let i=ae(t,e);return dc.set(t,i),i}function Mt(t,e){return ae(t,{beforeExpr:ge,binop:e})}var cn=-1,Ui=[],mc=[],yc=[],Tc=[],gc=[],xc=[];function ae(t,e={}){var i,r,s,n;return++cn,mc.push(t),yc.push((i=e.binop)!=null?i:-1),Tc.push((r=e.beforeExpr)!=null?r:!1),gc.push((s=e.startsExpr)!=null?s:!1),xc.push((n=e.prefix)!=null?n:!1),Ui.push(new Ma(t,e)),cn}function Se(t,e={}){var i,r,s,n;return++cn,dc.set(t,cn),mc.push(t),yc.push((i=e.binop)!=null?i:-1),Tc.push((r=e.beforeExpr)!=null?r:!1),gc.push((s=e.startsExpr)!=null?s:!1),xc.push((n=e.prefix)!=null?n:!1),Ui.push(new Ma("name",e)),cn}var YE={bracketL:ae("[",{beforeExpr:ge,startsExpr:H}),bracketHashL:ae("#[",{beforeExpr:ge,startsExpr:H}),bracketBarL:ae("[|",{beforeExpr:ge,startsExpr:H}),bracketR:ae("]"),bracketBarR:ae("|]"),braceL:ae("{",{beforeExpr:ge,startsExpr:H}),braceBarL:ae("{|",{beforeExpr:ge,startsExpr:H}),braceHashL:ae("#{",{beforeExpr:ge,startsExpr:H}),braceR:ae("}"),braceBarR:ae("|}"),parenL:ae("(",{beforeExpr:ge,startsExpr:H}),parenR:ae(")"),comma:ae(",",{beforeExpr:ge}),semi:ae(";",{beforeExpr:ge}),colon:ae(":",{beforeExpr:ge}),doubleColon:ae("::",{beforeExpr:ge}),dot:ae("."),question:ae("?",{beforeExpr:ge}),questionDot:ae("?."),arrow:ae("=>",{beforeExpr:ge}),template:ae("template"),ellipsis:ae("...",{beforeExpr:ge}),backQuote:ae("`",{startsExpr:H}),dollarBraceL:ae("${",{beforeExpr:ge,startsExpr:H}),templateTail:ae("...`",{startsExpr:H}),templateNonTail:ae("...${",{beforeExpr:ge,startsExpr:H}),at:ae("@"),hash:ae("#",{startsExpr:H}),interpreterDirective:ae("#!..."),eq:ae("=",{beforeExpr:ge,isAssign:nn}),assign:ae("_=",{beforeExpr:ge,isAssign:nn}),slashAssign:ae("_=",{beforeExpr:ge,isAssign:nn}),xorAssign:ae("_=",{beforeExpr:ge,isAssign:nn}),moduloAssign:ae("_=",{beforeExpr:ge,isAssign:nn}),incDec:ae("++/--",{prefix:ir,postfix:WE,startsExpr:H}),bang:ae("!",{beforeExpr:ge,prefix:ir,startsExpr:H}),tilde:ae("~",{beforeExpr:ge,prefix:ir,startsExpr:H}),doubleCaret:ae("^^",{startsExpr:H}),doubleAt:ae("@@",{startsExpr:H}),pipeline:Mt("|>",0),nullishCoalescing:Mt("??",1),logicalOR:Mt("||",1),logicalAND:Mt("&&",2),bitwiseOR:Mt("|",3),bitwiseXOR:Mt("^",4),bitwiseAND:Mt("&",5),equality:Mt("==/!=/===/!==",6),lt:Mt("</>/<=/>=",7),gt:Mt("</>/<=/>=",7),relational:Mt("</>/<=/>=",7),bitShift:Mt("<</>>/>>>",8),bitShiftL:Mt("<</>>/>>>",8),bitShiftR:Mt("<</>>/>>>",8),plusMin:ae("+/-",{beforeExpr:ge,binop:9,prefix:ir,startsExpr:H}),modulo:ae("%",{binop:10,startsExpr:H}),star:ae("*",{binop:10}),slash:Mt("/",10),exponent:ae("**",{beforeExpr:ge,binop:11,rightAssociative:!0}),_in:_e("in",{beforeExpr:ge,binop:7}),_instanceof:_e("instanceof",{beforeExpr:ge,binop:7}),_break:_e("break"),_case:_e("case",{beforeExpr:ge}),_catch:_e("catch"),_continue:_e("continue"),_debugger:_e("debugger"),_default:_e("default",{beforeExpr:ge}),_else:_e("else",{beforeExpr:ge}),_finally:_e("finally"),_function:_e("function",{startsExpr:H}),_if:_e("if"),_return:_e("return",{beforeExpr:ge}),_switch:_e("switch"),_throw:_e("throw",{beforeExpr:ge,prefix:ir,startsExpr:H}),_try:_e("try"),_var:_e("var"),_const:_e("const"),_with:_e("with"),_new:_e("new",{beforeExpr:ge,startsExpr:H}),_this:_e("this",{startsExpr:H}),_super:_e("super",{startsExpr:H}),_class:_e("class",{startsExpr:H}),_extends:_e("extends",{beforeExpr:ge}),_export:_e("export"),_import:_e("import",{startsExpr:H}),_null:_e("null",{startsExpr:H}),_true:_e("true",{startsExpr:H}),_false:_e("false",{startsExpr:H}),_typeof:_e("typeof",{beforeExpr:ge,prefix:ir,startsExpr:H}),_void:_e("void",{beforeExpr:ge,prefix:ir,startsExpr:H}),_delete:_e("delete",{beforeExpr:ge,prefix:ir,startsExpr:H}),_do:_e("do",{isLoop:Kl,beforeExpr:ge}),_for:_e("for",{isLoop:Kl}),_while:_e("while",{isLoop:Kl}),_as:Se("as",{startsExpr:H}),_assert:Se("assert",{startsExpr:H}),_async:Se("async",{startsExpr:H}),_await:Se("await",{startsExpr:H}),_defer:Se("defer",{startsExpr:H}),_from:Se("from",{startsExpr:H}),_get:Se("get",{startsExpr:H}),_let:Se("let",{startsExpr:H}),_meta:Se("meta",{startsExpr:H}),_of:Se("of",{startsExpr:H}),_sent:Se("sent",{startsExpr:H}),_set:Se("set",{startsExpr:H}),_source:Se("source",{startsExpr:H}),_static:Se("static",{startsExpr:H}),_using:Se("using",{startsExpr:H}),_yield:Se("yield",{startsExpr:H}),_asserts:Se("asserts",{startsExpr:H}),_checks:Se("checks",{startsExpr:H}),_exports:Se("exports",{startsExpr:H}),_global:Se("global",{startsExpr:H}),_implements:Se("implements",{startsExpr:H}),_intrinsic:Se("intrinsic",{startsExpr:H}),_infer:Se("infer",{startsExpr:H}),_is:Se("is",{startsExpr:H}),_mixins:Se("mixins",{startsExpr:H}),_proto:Se("proto",{startsExpr:H}),_require:Se("require",{startsExpr:H}),_satisfies:Se("satisfies",{startsExpr:H}),_keyof:Se("keyof",{startsExpr:H}),_readonly:Se("readonly",{startsExpr:H}),_unique:Se("unique",{startsExpr:H}),_abstract:Se("abstract",{startsExpr:H}),_declare:Se("declare",{startsExpr:H}),_enum:Se("enum",{startsExpr:H}),_module:Se("module",{startsExpr:H}),_namespace:Se("namespace",{startsExpr:H}),_interface:Se("interface",{startsExpr:H}),_type:Se("type",{startsExpr:H}),_opaque:Se("opaque",{startsExpr:H}),name:ae("name",{startsExpr:H}),placeholder:ae("%%",{startsExpr:H}),string:ae("string",{startsExpr:H}),num:ae("num",{startsExpr:H}),bigint:ae("bigint",{startsExpr:H}),decimal:ae("decimal",{startsExpr:H}),regexp:ae("regexp",{startsExpr:H}),privateName:ae("#name",{startsExpr:H}),eof:ae("eof"),jsxName:ae("jsxName"),jsxText:ae("jsxText",{beforeExpr:ge}),jsxTagStart:ae("jsxTagStart",{startsExpr:H}),jsxTagEnd:ae("jsxTagEnd")};function $e(t){return t>=93&&t<=133}function zE(t){return t<=92}function mi(t){return t>=58&&t<=133}function Qd(t){return t>=58&&t<=137}function JE(t){return Tc[t]}function on(t){return gc[t]}function XE(t){return t>=29&&t<=33}function qd(t){return t>=129&&t<=131}function HE(t){return t>=90&&t<=92}function bc(t){return t>=58&&t<=92}function GE(t){return t>=39&&t<=59}function QE(t){return t===34}function ZE(t){return xc[t]}function eP(t){return t>=121&&t<=123}function tP(t){return t>=124&&t<=130}function nr(t){return mc[t]}function Da(t){return yc[t]}function iP(t){return t===57}function Fa(t){return t>=24&&t<=25}function qi(t){return Ui[t]}Ui[8].updateContext=t=>{t.pop()},Ui[5].updateContext=Ui[7].updateContext=Ui[23].updateContext=t=>{t.push(Be.brace)},Ui[22].updateContext=t=>{t[t.length-1]===Be.template?t.pop():t.push(Be.template)},Ui[143].updateContext=t=>{t.push(Be.j_expr,Be.j_oTag)};var Sc="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Zd="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",rP=new RegExp("["+Sc+"]"),sP=new RegExp("["+Sc+Zd+"]");Sc=Zd=null;var em=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],nP=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function Jl(t,e){let i=65536;for(let r=0,s=e.length;r<s;r+=2){if(i+=e[r],i>t)return!1;if(i+=e[r+1],i>=t)return!0}return!1}function Ki(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&rP.test(String.fromCharCode(t)):Jl(t,em)}function as(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&sP.test(String.fromCharCode(t)):Jl(t,em)||Jl(t,nP)}var Ec={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},aP=new Set(Ec.keyword),oP=new Set(Ec.strict),lP=new Set(Ec.strictBind);function tm(t,e){return e&&t==="await"||t==="enum"}function im(t,e){return tm(t,e)||oP.has(t)}function rm(t){return lP.has(t)}function sm(t,e){return im(t,e)||rm(t)}function cP(t){return aP.has(t)}function uP(t,e,i){return t===64&&e===64&&Ki(i)}var pP=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function fP(t){return pP.has(t)}var un=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}},pn=class{constructor(e,i){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=i}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:i}=this.scopeStack[e];if(i&128)return!0;if(i&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new un(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,i,r){let s=this.currentScope();if(i&8||i&16){this.checkRedeclarationInScope(s,e,i,r);let n=s.names.get(e)||0;i&16?n=n|4:(s.firstLexicalName||(s.firstLexicalName=e),n=n|2),s.names.set(e,n),i&8&&this.maybeExportDefined(s,e)}else if(i&4)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,e,i,r),s.names.set(e,(s.names.get(e)||0)|1),this.maybeExportDefined(s,e),!(s.flags&1667));--n);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,i){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(i)}checkRedeclarationInScope(e,i,r,s){this.isRedeclaredInScope(e,i,r)&&this.parser.raise(w.VarRedeclaration,s,{identifierName:i})}isRedeclaredInScope(e,i,r){if(!(r&1))return!1;if(r&8)return e.names.has(i);let s=e.names.get(i);return r&16?(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0:(s&2)>0&&!(e.flags&8&&e.firstLexicalName===i)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){let{name:i}=e;this.scopeStack[0].names.has(i)||this.undefinedExports.set(i,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:i}=this.scopeStack[e];if(i&1667)return i}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:i}=this.scopeStack[e];if(i&1731&&!(i&4))return i}}},Xl=class extends un{constructor(...e){super(...e),this.declareFunctions=new Set}},Hl=class extends pn{createScope(e){return new Xl(e)}declareName(e,i,r){let s=this.currentScope();if(i&2048){this.checkRedeclarationInScope(s,e,i,r),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(e,i,r)}isRedeclaredInScope(e,i,r){if(super.isRedeclaredInScope(e,i,r))return!0;if(r&2048&&!e.declareFunctions.has(i)){let s=e.names.get(i);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},hP=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ue=Ci`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:i})=>`Enum \`${t}\` has type \`${i}\`, so the initializer of \`${e}\` needs to be a ${i} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:i})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${i}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function dP(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function Ud(t){return t.importKind==="type"||t.importKind==="typeof"}var mP={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function yP(t,e){let i=[],r=[];for(let s=0;s<t.length;s++)(e(t[s],s,t)?i:r).push(t[s]);return[i,r]}var TP=/\*?\s*@((?:no)?flow)\b/,gP=t=>class extends t{constructor(...i){super(...i),this.flowPragma=void 0}getScopeHandler(){return Hl}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(i,r){i!==134&&i!==13&&i!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(i,r)}addComment(i){if(this.flowPragma===void 0){let r=TP.exec(i.value);if(r)if(r[1]==="flow")this.flowPragma="flow";else if(r[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(i)}flowParseTypeInitialiser(i){let r=this.state.inType;this.state.inType=!0,this.expect(i||14);let s=this.flowParseType();return this.state.inType=r,s}flowParsePredicate(){let i=this.startNode(),r=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>r.index+1&&this.raise(ue.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(i.value=super.parseExpression(),this.expect(11),this.finishNode(i,"DeclaredPredicate")):this.finishNode(i,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let i=this.state.inType;this.state.inType=!0,this.expect(14);let r=null,s=null;return this.match(54)?(this.state.inType=i,s=this.flowParsePredicate()):(r=this.flowParseType(),this.state.inType=i,this.match(54)&&(s=this.flowParsePredicate())),[r,s]}flowParseDeclareClass(i){return this.next(),this.flowParseInterfaceish(i,!0),this.finishNode(i,"DeclareClass")}flowParseDeclareFunction(i){this.next();let r=i.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._this,this.expect(11),[s.returnType,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),r.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(r),this.semicolon(),this.scope.declareName(i.id.name,2048,i.id.loc.start),this.finishNode(i,"DeclareFunction")}flowParseDeclare(i,r){if(this.match(80))return this.flowParseDeclareClass(i);if(this.match(68))return this.flowParseDeclareFunction(i);if(this.match(74))return this.flowParseDeclareVariable(i);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(i):(r&&this.raise(ue.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(i));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(i);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(i);if(this.isContextual(129))return this.flowParseDeclareInterface(i);if(this.match(82))return this.flowParseDeclareExportDeclaration(i,r);this.unexpected()}flowParseDeclareVariable(i){return this.next(),i.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(i.id.name,5,i.id.loc.start),this.semicolon(),this.finishNode(i,"DeclareVariable")}flowParseDeclareModule(i){this.scope.enter(0),this.match(134)?i.id=super.parseExprAtom():i.id=this.parseIdentifier();let r=i.body=this.startNode(),s=r.body=[];for(this.expect(5);!this.match(8);){let l=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(ue.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(l)):(this.expectContextual(125,ue.UnsupportedStatementInDeclareModule),l=this.flowParseDeclare(l,!0)),s.push(l)}this.scope.exit(),this.expect(8),this.finishNode(r,"BlockStatement");let n=null,a=!1;return s.forEach(l=>{dP(l)?(n==="CommonJS"&&this.raise(ue.AmbiguousDeclareModuleKind,l),n="ES"):l.type==="DeclareModuleExports"&&(a&&this.raise(ue.DuplicateDeclareModuleExports,l),n==="ES"&&this.raise(ue.AmbiguousDeclareModuleKind,l),n="CommonJS",a=!0)}),i.kind=n||"CommonJS",this.finishNode(i,"DeclareModule")}flowParseDeclareExportDeclaration(i,r){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?i.declaration=this.flowParseDeclare(this.startNode()):(i.declaration=this.flowParseType(),this.semicolon()),i.default=!0,this.finishNode(i,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!r){let s=this.state.value;throw this.raise(ue.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:mP[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return i.declaration=this.flowParseDeclare(this.startNode()),i.default=!1,this.finishNode(i,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return i=this.parseExport(i,null),i.type==="ExportNamedDeclaration"?(i.default=!1,delete i.exportKind,this.castNodeTo(i,"DeclareExportDeclaration")):this.castNodeTo(i,"DeclareExportAllDeclaration");this.unexpected()}flowParseDeclareModuleExports(i){return this.next(),this.expectContextual(111),i.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(i,"DeclareModuleExports")}flowParseDeclareTypeAlias(i){this.next();let r=this.flowParseTypeAlias(i);return this.castNodeTo(r,"DeclareTypeAlias"),r}flowParseDeclareOpaqueType(i){this.next();let r=this.flowParseOpaqueType(i,!0);return this.castNodeTo(r,"DeclareOpaqueType"),r}flowParseDeclareInterface(i){return this.next(),this.flowParseInterfaceish(i,!1),this.finishNode(i,"DeclareInterface")}flowParseInterfaceish(i,r){if(i.id=this.flowParseRestrictedIdentifier(!r,!0),this.scope.declareName(i.id.name,r?17:8201,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.extends=[],this.eat(81))do i.extends.push(this.flowParseInterfaceExtends());while(!r&&this.eat(12));if(r){if(i.implements=[],i.mixins=[],this.eatContextual(117))do i.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do i.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}i.body=this.flowParseObjectType({allowStatic:r,allowExact:!1,allowSpread:!1,allowProto:r,allowInexact:!1})}flowParseInterfaceExtends(){let i=this.startNode();return i.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,this.finishNode(i,"InterfaceExtends")}flowParseInterface(i){return this.flowParseInterfaceish(i,!1),this.finishNode(i,"InterfaceDeclaration")}checkNotUnderscore(i){i==="_"&&this.raise(ue.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(i,r,s){hP.has(i)&&this.raise(s?ue.AssignReservedType:ue.UnexpectedReservedType,r,{reservedType:i})}flowParseRestrictedIdentifier(i,r){return this.checkReservedType(this.state.value,this.state.startLoc,r),this.parseIdentifier(i)}flowParseTypeAlias(i){return i.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(i.id.name,8201,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(i,"TypeAlias")}flowParseOpaqueType(i,r){return this.expectContextual(130),i.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(i.id.name,8201,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.supertype=null,this.match(14)&&(i.supertype=this.flowParseTypeInitialiser(14)),i.impltype=null,r||(i.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(i,"OpaqueType")}flowParseTypeParameter(i=!1){let r=this.state.startLoc,s=this.startNode(),n=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return s.name=a.name,s.variance=n,s.bound=a.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):i&&this.raise(ue.MissingTypeParamDefault,r),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let i=this.state.inType,r=this.startNode();r.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);r.params.push(n),n.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterDeclaration")}flowInTopLevelContext(i){if(this.curContext()!==Be.brace){let r=this.state.context;this.state.context=[r[0]];try{return i()}finally{this.state.context=r}}else return i()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let i=this.startNode(),r=this.state.inType;return this.state.inType=!0,i.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)i.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=s}),this.state.inType=r,!this.state.inType&&this.curContext()===Be.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(i,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;let i=this.startNode(),r=this.state.inType;for(i.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)i.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterInstantiation")}flowParseInterfaceType(){let i=this.startNode();if(this.expectContextual(129),i.extends=[],this.eat(81))do i.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return i.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(i,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(i,r,s){return i.static=r,this.lookahead().type===14?(i.id=this.flowParseObjectPropertyKey(),i.key=this.flowParseTypeInitialiser()):(i.id=null,i.key=this.flowParseType()),this.expect(3),i.value=this.flowParseTypeInitialiser(),i.variance=s,this.finishNode(i,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(i,r){return i.static=r,i.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(i.method=!0,i.optional=!1,i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.loc.start))):(i.method=!1,this.eat(17)&&(i.optional=!0),i.value=this.flowParseTypeInitialiser()),this.finishNode(i,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(i){for(i.params=[],i.rest=null,i.typeParameters=null,i.this=null,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(i.this=this.flowParseFunctionTypeParam(!0),i.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)i.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),i.returnType=this.flowParseTypeInitialiser(),this.finishNode(i,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(i,r){let s=this.startNode();return i.static=r,i.value=this.flowParseObjectTypeMethodish(s),this.finishNode(i,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:i,allowExact:r,allowSpread:s,allowProto:n,allowInexact:a}){let l=this.state.inType;this.state.inType=!0;let c=this.startNode();c.callProperties=[],c.properties=[],c.indexers=[],c.internalSlots=[];let o,u,f=!1;for(r&&this.match(6)?(this.expect(6),o=9,u=!0):(this.expect(5),o=8,u=!1),c.exact=u;!this.match(o);){let m=!1,S=null,P=null,A=this.startNode();if(n&&this.isContextual(118)){let k=this.lookahead();k.type!==14&&k.type!==17&&(this.next(),S=this.state.startLoc,i=!1)}if(i&&this.isContextual(106)){let k=this.lookahead();k.type!==14&&k.type!==17&&(this.next(),m=!0)}let C=this.flowParseVariance();if(this.eat(0))S!=null&&this.unexpected(S),this.eat(0)?(C&&this.unexpected(C.loc.start),c.internalSlots.push(this.flowParseObjectTypeInternalSlot(A,m))):c.indexers.push(this.flowParseObjectTypeIndexer(A,m,C));else if(this.match(10)||this.match(47))S!=null&&this.unexpected(S),C&&this.unexpected(C.loc.start),c.callProperties.push(this.flowParseObjectTypeCallProperty(A,m));else{let k="init";if(this.isContextual(99)||this.isContextual(104)){let L=this.lookahead();Qd(L.type)&&(k=this.state.value,this.next())}let D=this.flowParseObjectTypeProperty(A,m,S,C,k,s,a??!u);D===null?(f=!0,P=this.state.lastTokStartLoc):c.properties.push(D)}this.flowObjectTypeSemicolon(),P&&!this.match(8)&&!this.match(9)&&this.raise(ue.UnexpectedExplicitInexactInObject,P)}this.expect(o),s&&(c.inexact=f);let d=this.finishNode(c,"ObjectTypeAnnotation");return this.state.inType=l,d}flowParseObjectTypeProperty(i,r,s,n,a,l,c){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(l?c||this.raise(ue.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ue.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(ue.InexactVariance,n),null):(l||this.raise(ue.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(ue.SpreadVariance,n),i.argument=this.flowParseType(),this.finishNode(i,"ObjectTypeSpreadProperty"));{i.key=this.flowParseObjectPropertyKey(),i.static=r,i.proto=s!=null,i.kind=a;let o=!1;return this.match(47)||this.match(10)?(i.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.loc.start),i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(i),!l&&i.key.name==="constructor"&&i.value.this&&this.raise(ue.ThisParamBannedInConstructor,i.value.this)):(a!=="init"&&this.unexpected(),i.method=!1,this.eat(17)&&(o=!0),i.value=this.flowParseTypeInitialiser(),i.variance=n),i.optional=o,this.finishNode(i,"ObjectTypeProperty")}}flowCheckGetterSetterParams(i){let r=i.kind==="get"?0:1,s=i.value.params.length+(i.value.rest?1:0);i.value.this&&this.raise(i.kind==="get"?ue.GetterMayNotHaveThisParam:ue.SetterMayNotHaveThisParam,i.value.this),s!==r&&this.raise(i.kind==="get"?w.BadGetterArity:w.BadSetterArity,i),i.kind==="set"&&i.value.rest&&this.raise(w.BadSetterRestParameter,i)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(i,r){i??(i=this.state.startLoc);let s=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let n=this.startNodeAt(i);n.qualification=s,n.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(n,"QualifiedTypeIdentifier")}return s}flowParseGenericType(i,r){let s=this.startNodeAt(i);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(i,r),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let i=this.startNode();return this.expect(87),i.argument=this.flowParsePrimaryType(),this.finishNode(i,"TypeofTypeAnnotation")}flowParseTupleType(){let i=this.startNode();for(i.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(i.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(i,"TupleTypeAnnotation")}flowParseFunctionTypeParam(i){let r=null,s=!1,n=null,a=this.startNode(),l=this.lookahead(),c=this.state.type===78;return l.type===14||l.type===17?(c&&!i&&this.raise(ue.ThisParamMustBeFirst,a),r=this.parseIdentifier(c),this.eat(17)&&(s=!0,c&&this.raise(ue.ThisParamMayNotBeOptional,a)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),a.name=r,a.optional=s,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(i){let r=this.startNodeAt(i.loc.start);return r.name=null,r.optional=!1,r.typeAnnotation=i,this.finishNode(r,"FunctionTypeParam")}flowParseFunctionTypeParams(i=[]){let r=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)i.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r=this.flowParseFunctionTypeParam(!1)),{params:i,rest:r,_this:s}}flowIdentToTypeAnnotation(i,r,s){switch(s.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(i,s)}}flowParsePrimaryType(){let i=this.state.startLoc,r=this.startNode(),s,n,a=!1,l=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=l,n;case 47:{let c=this.startNode();return c.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),c.params=s.params,c.rest=s.rest,c.this=s._this,this.expect(11),this.expect(19),c.returnType=this.flowParseType(),this.finishNode(c,"FunctionTypeAnnotation")}case 10:{let c=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if($e(this.state.type)||this.match(78)){let o=this.lookahead().type;a=o!==17&&o!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=l,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;this.eat(12)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),c.params=s.params,c.rest=s.rest,c.this=s._this,this.expect(11),this.expect(19),c.returnType=this.flowParseType(),c.typeParameters=null,this.finishNode(c,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return r.value=this.match(85),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",r);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",r);throw this.raise(ue.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(bc(this.state.type)){let c=nr(this.state.type);return this.next(),super.createIdentifier(r,c)}else if($e(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(i,r,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let i=this.state.startLoc,r=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(i),a=this.eat(18);s=s||a,this.expect(0),!a&&this.match(3)?(n.elementType=r,this.next(),r=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=r,n.indexType=this.flowParseType(),this.expect(3),s?(n.optional=a,r=this.finishNode(n,"OptionalIndexedAccessType")):r=this.finishNode(n,"IndexedAccessType"))}return r}flowParsePrefixType(){let i=this.startNode();return this.eat(17)?(i.typeAnnotation=this.flowParsePrefixType(),this.finishNode(i,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let i=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let r=this.startNodeAt(i.loc.start);return r.params=[this.reinterpretTypeAsFunctionTypeParam(i)],r.rest=null,r.this=null,r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation")}return i}flowParseIntersectionType(){let i=this.startNode();this.eat(45);let r=this.flowParseAnonFunctionWithoutParens();for(i.types=[r];this.eat(45);)i.types.push(this.flowParseAnonFunctionWithoutParens());return i.types.length===1?r:this.finishNode(i,"IntersectionTypeAnnotation")}flowParseUnionType(){let i=this.startNode();this.eat(43);let r=this.flowParseIntersectionType();for(i.types=[r];this.eat(43);)i.types.push(this.flowParseIntersectionType());return i.types.length===1?r:this.finishNode(i,"UnionTypeAnnotation")}flowParseType(){let i=this.state.inType;this.state.inType=!0;let r=this.flowParseUnionType();return this.state.inType=i,r}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let i=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(i,r)}else return this.flowParseType()}flowParseTypeAnnotation(){let i=this.startNode();return i.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(i,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(i){let r=i?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r)),r}typeCastToParameter(i){return i.expression.typeAnnotation=i.typeAnnotation,this.resetEndLocation(i.expression,i.typeAnnotation.loc.end),i.expression}flowParseVariance(){let i=null;return this.match(53)?(i=this.startNode(),this.state.value==="+"?i.kind="plus":i.kind="minus",this.next(),this.finishNode(i,"Variance")):i}parseFunctionBody(i,r,s=!1){if(r){this.forwardNoArrowParamsConversionAt(i,()=>super.parseFunctionBody(i,!0,s));return}super.parseFunctionBody(i,!1,s)}parseFunctionBodyAndFinish(i,r,s=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(i,r,s)}parseStatementLike(i){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(mi(s.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let r=super.parseStatementLike(i);return this.flowPragma===void 0&&!this.isValidDirective(r)&&(this.flowPragma=null),r}parseExpressionStatement(i,r,s){if(r.type==="Identifier"){if(r.name==="declare"){if(this.match(80)||$e(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(i)}else if($e(this.state.type)){if(r.name==="interface")return this.flowParseInterface(i);if(r.name==="type")return this.flowParseTypeAlias(i);if(r.name==="opaque")return this.flowParseOpaqueType(i,!1)}}return super.parseExpressionStatement(i,r,s)}shouldParseExportDeclaration(){let{type:i}=this.state;return i===126||qd(i)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:i}=this.state;return i===126||qd(i)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}return super.parseExportDefaultExpression()}parseConditional(i,r,s){if(!this.match(17))return i;if(this.state.maybeInArrowParameters){let d=this.lookaheadCharCode();if(d===44||d===61||d===58||d===41)return this.setOptionalParametersError(s),i}this.expect(17);let n=this.state.clone(),a=this.state.noArrowAt,l=this.startNodeAt(r),{consequent:c,failed:o}=this.tryParseConditionalConsequent(),[u,f]=this.getArrowLikeExpressions(c);if(o||f.length>0){let d=[...a];if(f.length>0){this.state=n,this.state.noArrowAt=d;for(let m=0;m<f.length;m++)d.push(f[m].start);({consequent:c,failed:o}=this.tryParseConditionalConsequent()),[u,f]=this.getArrowLikeExpressions(c)}o&&u.length>1&&this.raise(ue.AmbiguousConditionalArrow,n.startLoc),o&&u.length===1&&(this.state=n,d.push(u[0].start),this.state.noArrowAt=d,{consequent:c,failed:o}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(c,!0),this.state.noArrowAt=a,this.expect(14),l.test=i,l.consequent=c,l.alternate=this.forwardNoArrowParamsConversionAt(l,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(l,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let i=this.parseMaybeAssignAllowIn(),r=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:i,failed:r}}getArrowLikeExpressions(i,r){let s=[i],n=[];for(;s.length!==0;){let a=s.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):n.push(a),s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return r?(n.forEach(a=>this.finishArrowValidation(a)),[n,[]]):yP(n,a=>a.params.every(l=>this.isAssignable(l,!0)))}finishArrowValidation(i){var r;this.toAssignableList(i.params,(r=i.extra)==null?void 0:r.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(i,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(i,r){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(i.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=r(),this.state.noArrowParamsConversionAt.pop()):s=r(),s}parseParenItem(i,r){let s=super.parseParenItem(i,r);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(i)),this.match(14)){let n=this.startNodeAt(r);return n.expression=s,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return s}assertModuleNodeAllowed(i){i.type==="ImportDeclaration"&&(i.importKind==="type"||i.importKind==="typeof")||i.type==="ExportNamedDeclaration"&&i.exportKind==="type"||i.type==="ExportAllDeclaration"&&i.exportKind==="type"||super.assertModuleNodeAllowed(i)}parseExportDeclaration(i){if(this.isContextual(130)){i.exportKind="type";let r=this.startNode();return this.next(),this.match(5)?(i.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(i),null):this.flowParseTypeAlias(r)}else if(this.isContextual(131)){i.exportKind="type";let r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}else if(this.isContextual(129)){i.exportKind="type";let r=this.startNode();return this.next(),this.flowParseInterface(r)}else if(this.isContextual(126)){i.exportKind="value";let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}else return super.parseExportDeclaration(i)}eatExportStar(i){return super.eatExportStar(i)?!0:this.isContextual(130)&&this.lookahead().type===55?(i.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(i){let{startLoc:r}=this.state,s=super.maybeParseExportNamespaceSpecifier(i);return s&&i.exportKind==="type"&&this.unexpected(r),s}parseClassId(i,r,s){super.parseClassId(i,r,s),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(i,r,s){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(i,r))return;r.declare=!0}super.parseClassMember(i,r,s),r.declare&&(r.type!=="ClassProperty"&&r.type!=="ClassPrivateProperty"&&r.type!=="PropertyDefinition"?this.raise(ue.DeclareClassElement,n):r.value&&this.raise(ue.DeclareClassFieldInitializer,r.value))}isIterator(i){return i==="iterator"||i==="asyncIterator"}readIterator(){let i=super.readWord1(),r="@@"+i;(!this.isIterator(i)||!this.state.inType)&&this.raise(w.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)}getTokenFromCode(i){let r=this.input.charCodeAt(this.state.pos+1);i===123&&r===124?this.finishOp(6,2):this.state.inType&&(i===62||i===60)?this.finishOp(i===62?48:47,1):this.state.inType&&i===63?r===46?this.finishOp(18,2):this.finishOp(17,1):uP(i,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(i)}isAssignable(i,r){return i.type==="TypeCastExpression"?this.isAssignable(i.expression,r):super.isAssignable(i,r)}toAssignable(i,r=!1){!r&&i.type==="AssignmentExpression"&&i.left.type==="TypeCastExpression"&&(i.left=this.typeCastToParameter(i.left)),super.toAssignable(i,r)}toAssignableList(i,r,s){for(let n=0;n<i.length;n++){let a=i[n];a?.type==="TypeCastExpression"&&(i[n]=this.typeCastToParameter(a))}super.toAssignableList(i,r,s)}toReferencedList(i,r){for(let n=0;n<i.length;n++){var s;let a=i[n];a&&a.type==="TypeCastExpression"&&!((s=a.extra)!=null&&s.parenthesized)&&(i.length>1||!r)&&this.raise(ue.TypeCastInPattern,a.typeAnnotation)}return i}parseArrayLike(i,r,s,n){let a=super.parseArrayLike(i,r,s,n);return r&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(i,r,s){return i==="TypeCastExpression"||super.isValidLVal(i,r,s)}parseClassProperty(i){return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(i)}parseClassPrivateProperty(i){return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(i)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(i){return!this.match(14)&&super.isNonstaticConstructor(i)}pushClassMethod(i,r,s,n,a,l){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(i,r,s,n,a,l),r.params&&a){let c=r.params;c.length>0&&this.isThisParam(c[0])&&this.raise(ue.ThisParamBannedInConstructor,r)}else if(r.type==="MethodDefinition"&&a&&r.value.params){let c=r.value.params;c.length>0&&this.isThisParam(c[0])&&this.raise(ue.ThisParamBannedInConstructor,r)}}pushClassPrivateMethod(i,r,s,n){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(i,r,s,n)}parseClassSuper(i){if(super.parseClassSuper(i),i.superClass&&(this.match(47)||this.match(51))&&(i.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let r=i.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,r.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(i){super.checkGetterSetterParams(i);let r=this.getObjectOrClassMethodParams(i);if(r.length>0){let s=r[0];this.isThisParam(s)&&i.kind==="get"?this.raise(ue.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(ue.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(i){i.variance=this.flowParseVariance()}parseObjPropValue(i,r,s,n,a,l,c){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance;let o;this.match(47)&&!l&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let u=super.parseObjPropValue(i,r,s,n,a,l,c);return o&&((u.value||u).typeParameters=o),u}parseFunctionParamType(i){return this.eat(17)&&(i.type!=="Identifier"&&this.raise(ue.PatternIsOptional,i),this.isThisParam(i)&&this.raise(ue.ThisParamMayNotBeOptional,i),i.optional=!0),this.match(14)?i.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(i)&&this.raise(ue.ThisParamAnnotationRequired,i),this.match(29)&&this.isThisParam(i)&&this.raise(ue.ThisParamNoDefault,i),this.resetEndLocation(i),i}parseMaybeDefault(i,r){let s=super.parseMaybeDefault(i,r);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(ue.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(i){super.checkImportReflection(i),i.module&&i.importKind!=="value"&&this.raise(ue.ImportReflectionHasImportType,i.specifiers[0].loc.start)}parseImportSpecifierLocal(i,r,s){r.local=Ud(i)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),i.specifiers.push(this.finishImportSpecifier(r,s))}isPotentialImportPhase(i){if(super.isPotentialImportPhase(i))return!0;if(this.isContextual(130)){if(!i)return!0;let r=this.lookaheadCharCode();return r===123||r===42}return!i&&this.isContextual(87)}applyImportPhase(i,r,s,n){if(super.applyImportPhase(i,r,s,n),r){if(!s&&this.match(65))return;i.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),i.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(i,r,s,n,a){let l=i.imported,c=null;l.type==="Identifier"&&(l.name==="type"?c="type":l.name==="typeof"&&(c="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let f=this.parseIdentifier(!0);c!==null&&!mi(this.state.type)?(i.imported=f,i.importKind=c,i.local=this.cloneIdentifier(f)):(i.imported=l,i.importKind=null,i.local=this.parseIdentifier())}else{if(c!==null&&mi(this.state.type))i.imported=this.parseIdentifier(!0),i.importKind=c;else{if(r)throw this.raise(w.ImportBindingIsString,i,{importName:l.value});i.imported=l,i.importKind=null}this.eatContextual(93)?i.local=this.parseIdentifier():(o=!0,i.local=this.cloneIdentifier(i.imported))}let u=Ud(i);return s&&u&&this.raise(ue.ImportTypeShorthandOnlyInPureImport,i),(s||u)&&this.checkReservedType(i.local.name,i.local.loc.start,!0),o&&!s&&!u&&this.checkReservedWord(i.local.name,i.loc.start,!0,!0),this.finishImportSpecifier(i,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(i,r){let s=i.kind;s!=="get"&&s!=="set"&&this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(i,r)}parseVarId(i,r){super.parseVarId(i,r),this.match(14)&&(i.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i.id))}parseAsyncArrowFromCallExpression(i,r){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,i.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(i,r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(i,r){var s;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(i,r),n),!a.error)return a.node;let{context:o}=this.state,u=o[o.length-1];(u===Be.j_oTag||u===Be.j_expr)&&o.pop()}if((s=a)!=null&&s.error||this.match(47)){var l,c;n=n||this.state.clone();let o,u=this.tryParse(d=>{var m;o=this.flowParseTypeParameterDeclaration();let S=this.forwardNoArrowParamsConversionAt(o,()=>{let A=super.parseMaybeAssign(i,r);return this.resetStartLocationFromNode(A,o),A});(m=S.extra)!=null&&m.parenthesized&&d();let P=this.maybeUnwrapTypeCastExpression(S);return P.type!=="ArrowFunctionExpression"&&d(),P.typeParameters=o,this.resetStartLocationFromNode(P,o),S},n),f=null;if(u.node&&this.maybeUnwrapTypeCastExpression(u.node).type==="ArrowFunctionExpression"){if(!u.error&&!u.aborted)return u.node.async&&this.raise(ue.UnexpectedTypeParameterBeforeAsyncArrowFunction,o),u.node;f=u.node}if((l=a)!=null&&l.node)return this.state=a.failState,a.node;if(f)return this.state=u.failState,f;throw(c=a)!=null&&c.thrown?a.error:u.thrown?u.error:this.raise(ue.UnexpectedTokenAfterTypeParameter,o)}return super.parseMaybeAssign(i,r)}parseArrow(i){if(this.match(14)){let r=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(r.thrown)return null;r.error&&(this.state=r.failState),i.returnType=r.node.typeAnnotation?this.finishNode(r.node,"TypeAnnotation"):null}return super.parseArrow(i)}shouldParseArrow(i){return this.match(14)||super.shouldParseArrow(i)}setArrowFunctionParameters(i,r){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(i.start))?i.params=r:super.setArrowFunctionParameters(i,r)}checkParams(i,r,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(i.start)))){for(let a=0;a<i.params.length;a++)this.isThisParam(i.params[a])&&a>0&&this.raise(ue.ThisParamMustBeFirst,i.params[a]);super.checkParams(i,r,s,n)}}parseParenAndDistinguishExpression(i){return super.parseParenAndDistinguishExpression(i&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(i,r,s){if(i.type==="Identifier"&&i.name==="async"&&this.state.noArrowAt.includes(r.index)){this.next();let n=this.startNodeAt(r);n.callee=i,n.arguments=super.parseCallExpressionArguments(),i=this.finishNode(n,"CallExpression")}else if(i.type==="Identifier"&&i.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse(c=>this.parseAsyncArrowWithTypeParameters(r)||c(),n);if(!a.error&&!a.aborted)return a.node;let l=this.tryParse(()=>super.parseSubscripts(i,r,s),n);if(l.node&&!l.error)return l.node;if(a.node)return this.state=a.failState,a.node;if(l.node)return this.state=l.failState,l.node;throw a.error||l.error}return super.parseSubscripts(i,r,s)}parseSubscript(i,r,s,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,i;this.next();let a=this.startNodeAt(r);return a.callee=i,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(r);a.callee=i;let l=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),n.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,n.optionalChainMember)));if(l.node)return l.error&&(this.state=l.failState),l.node}return super.parseSubscript(i,r,s,n)}parseNewCallee(i){super.parseNewCallee(i);let r=null;this.shouldParseTypes()&&this.match(47)&&(r=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),i.typeArguments=r}parseAsyncArrowWithTypeParameters(i){let r=this.startNodeAt(i);if(this.parseFunctionParams(r,!1),!!this.parseArrow(r))return super.parseArrowExpression(r,void 0,!0)}readToken_mult_modulo(i){let r=this.input.charCodeAt(this.state.pos+1);if(i===42&&r===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(i)}readToken_pipe_amp(i){let r=this.input.charCodeAt(this.state.pos+1);if(i===124&&r===125){this.finishOp(9,2);return}super.readToken_pipe_amp(i)}parseTopLevel(i,r){let s=super.parseTopLevel(i,r);return this.state.hasFlowComment&&this.raise(ue.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ue.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let i=this.skipFlowComment();i&&(this.state.pos+=i,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:i}=this.state,r=2;for(;[32,9].includes(this.input.charCodeAt(i+r));)r++;let s=this.input.charCodeAt(r+i),n=this.input.charCodeAt(r+i+1);return s===58&&n===58?r+2:this.input.slice(r+i,r+i+12)==="flow-include"?r+12:s===58&&n!==58?r:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(w.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(i,{enumName:r,memberName:s}){this.raise(ue.EnumBooleanMemberNotInitialized,i,{memberName:s,enumName:r})}flowEnumErrorInvalidMemberInitializer(i,r){return this.raise(r.explicitType?r.explicitType==="symbol"?ue.EnumInvalidMemberInitializerSymbolType:ue.EnumInvalidMemberInitializerPrimaryType:ue.EnumInvalidMemberInitializerUnknownType,i,r)}flowEnumErrorNumberMemberNotInitialized(i,r){this.raise(ue.EnumNumberMemberNotInitialized,i,r)}flowEnumErrorStringMemberInconsistentlyInitialized(i,r){this.raise(ue.EnumStringMemberInconsistentlyInitialized,i,r)}flowEnumMemberInit(){let i=this.state.startLoc,r=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:i}}case 134:{let s=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:i}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:i}}default:return{type:"invalid",loc:i}}}flowEnumMemberRaw(){let i=this.state.startLoc,r=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:i};return{id:r,init:s}}flowEnumCheckExplicitTypeMismatch(i,r,s){let{explicitType:n}=r;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(i,r)}flowEnumMembers({enumName:i,explicitType:r}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let l=this.startNode(),{id:c,init:o}=this.flowEnumMemberRaw(),u=c.name;if(u==="")continue;/^[a-z]/.test(u)&&this.raise(ue.EnumInvalidMemberName,c,{memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:i}),s.has(u)&&this.raise(ue.EnumDuplicateMemberName,c,{memberName:u,enumName:i}),s.add(u);let f={enumName:i,explicitType:r,memberName:u};switch(l.id=c,o.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(o.loc,f,"boolean"),l.init=o.value,n.booleanMembers.push(this.finishNode(l,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(o.loc,f,"number"),l.init=o.value,n.numberMembers.push(this.finishNode(l,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(o.loc,f,"string"),l.init=o.value,n.stringMembers.push(this.finishNode(l,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,f);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,f);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,f);break;default:n.defaultedMembers.push(this.finishNode(l,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:a}}flowEnumStringMembers(i,r,{enumName:s}){if(i.length===0)return r;if(r.length===0)return i;if(r.length>i.length){for(let n of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return r}else{for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return i}}flowEnumParseExplicitType({enumName:i}){if(!this.eatContextual(102))return null;if(!$e(this.state.type))throw this.raise(ue.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:i});let{value:r}=this.state;return this.next(),r!=="boolean"&&r!=="number"&&r!=="string"&&r!=="symbol"&&this.raise(ue.EnumInvalidExplicitType,this.state.startLoc,{enumName:i,invalidEnumType:r}),r}flowEnumBody(i,r){let s=r.name,n=r.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:l,hasUnknownMembers:c}=this.flowEnumMembers({enumName:s,explicitType:a});switch(i.hasUnknownMembers=c,a){case"boolean":return i.explicitType=!0,i.members=l.booleanMembers,this.expect(8),this.finishNode(i,"EnumBooleanBody");case"number":return i.explicitType=!0,i.members=l.numberMembers,this.expect(8),this.finishNode(i,"EnumNumberBody");case"string":return i.explicitType=!0,i.members=this.flowEnumStringMembers(l.stringMembers,l.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(i,"EnumStringBody");case"symbol":return i.members=l.defaultedMembers,this.expect(8),this.finishNode(i,"EnumSymbolBody");default:{let o=()=>(i.members=[],this.expect(8),this.finishNode(i,"EnumStringBody"));i.explicitType=!1;let u=l.booleanMembers.length,f=l.numberMembers.length,d=l.stringMembers.length,m=l.defaultedMembers.length;if(!u&&!f&&!d&&!m)return o();if(!u&&!f)return i.members=this.flowEnumStringMembers(l.stringMembers,l.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(i,"EnumStringBody");if(!f&&!d&&u>=m){for(let S of l.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(S.loc.start,{enumName:s,memberName:S.id.name});return i.members=l.booleanMembers,this.expect(8),this.finishNode(i,"EnumBooleanBody")}else if(!u&&!d&&f>=m){for(let S of l.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(S.loc.start,{enumName:s,memberName:S.id.name});return i.members=l.numberMembers,this.expect(8),this.finishNode(i,"EnumNumberBody")}else return this.raise(ue.EnumInconsistentMemberValues,n,{enumName:s}),o()}}}flowParseEnumDeclaration(i){let r=this.parseIdentifier();return i.id=r,i.body=this.flowEnumBody(this.startNode(),r),this.finishNode(i,"EnumDeclaration")}jsxParseOpeningElementAfterName(i){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(i.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(i)}isLookaheadToken_lt(){let i=this.nextTokenStart();if(this.input.charCodeAt(i)===60){let r=this.input.charCodeAt(i+1);return r!==60&&r!==61}return!1}reScan_lt_gt(){let{type:i}=this.state;i===47?(this.state.pos-=1,this.readToken_lt()):i===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:i}=this.state;return i===51?(this.state.pos-=2,this.finishOp(47,1),47):i}maybeUnwrapTypeCastExpression(i){return i.type==="TypeCastExpression"?i.expression:i}},xP={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},bP=/\r\n|[\r\n\u2028\u2029]/,_a=new RegExp(bP.source,"g");function os(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Kd(t,e,i){for(let r=e;r<i;r++)if(os(t.charCodeAt(r)))return!0;return!1}var Vl=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Wl=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function SP(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Cr=Ci`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function rr(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function ns(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return ns(t.object)+"."+ns(t.property);throw new Error("Node had unexpected type: "+t.type)}var EP=t=>class extends t{jsxReadToken(){let i="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Cr.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(s);return}i+=this.input.slice(r,this.state.pos),this.finishToken(142,i);return;case 38:i+=this.input.slice(r,this.state.pos),i+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:default:os(s)?(i+=this.input.slice(r,this.state.pos),i+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(i){let r=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=i?`
6
6
  `:`\r
7
7
  `):s=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(i){let r="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(w.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===i)break;n===38?(r+=this.input.slice(s,this.state.pos),r+=this.jsxReadEntity(),s=this.state.pos):os(n)?(r+=this.input.slice(s,this.state.pos),r+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}r+=this.input.slice(s,this.state.pos++),this.finishToken(134,r)}jsxReadEntity(){let i=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;this.codePointAtPos(this.state.pos)===120&&(r=16,++this.state.pos);let s=this.readInt(r,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let r=0,s=!1;for(;r++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let n=this.input.slice(i,this.state.pos),a=xP[n];if(++this.state.pos,a)return a}}return this.state.pos=i,"&"}jsxReadWord(){let i,r=this.state.pos;do i=this.input.charCodeAt(++this.state.pos);while(as(i)||i===45);this.finishToken(141,this.input.slice(r,this.state.pos))}jsxParseIdentifier(){let i=this.startNode();return this.match(141)?i.name=this.state.value:bc(this.state.type)?i.name=nr(this.state.type):this.unexpected(),this.next(),this.finishNode(i,"JSXIdentifier")}jsxParseNamespacedName(){let i=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(14))return r;let s=this.startNodeAt(i);return s.namespace=r,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let i=this.state.startLoc,r=this.jsxParseNamespacedName();if(r.type==="JSXNamespacedName")return r;for(;this.eat(16);){let s=this.startNodeAt(i);s.object=r,s.property=this.jsxParseIdentifier(),r=this.finishNode(s,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let i;switch(this.state.type){case 5:return i=this.startNode(),this.setContext(Be.brace),this.next(),i=this.jsxParseExpressionContainer(i,Be.j_oTag),i.expression.type==="JSXEmptyExpression"&&this.raise(Cr.AttributeIsEmpty,i),i;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Cr.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let i=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(i,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(i){return this.next(),i.expression=this.parseExpression(),this.setContext(Be.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(i,"JSXSpreadChild")}jsxParseExpressionContainer(i,r){if(this.match(8))i.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();i.expression=s}return this.setContext(r),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(i,"JSXExpressionContainer")}jsxParseAttribute(){let i=this.startNode();return this.match(5)?(this.setContext(Be.brace),this.next(),this.expect(21),i.argument=this.parseMaybeAssignAllowIn(),this.setContext(Be.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(i,"JSXSpreadAttribute")):(i.name=this.jsxParseNamespacedName(),i.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(i,"JSXAttribute"))}jsxParseOpeningElementAt(i){let r=this.startNodeAt(i);return this.eat(144)?this.finishNode(r,"JSXOpeningFragment"):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(i){let r=[];for(;!this.match(56)&&!this.match(144);)r.push(this.jsxParseAttribute());return i.attributes=r,i.selfClosing=this.eat(56),this.expect(144),this.finishNode(i,"JSXOpeningElement")}jsxParseClosingElementAt(i){let r=this.startNodeAt(i);return this.eat(144)?this.finishNode(r,"JSXClosingFragment"):(r.name=this.jsxParseElementName(),this.expect(144),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(i){let r=this.startNodeAt(i),s=[],n=this.jsxParseOpeningElementAt(i),a=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(i=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(i);break e}s.push(this.jsxParseElementAt(i));break;case 142:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let l=this.startNode();this.setContext(Be.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(l)):s.push(this.jsxParseExpressionContainer(l,Be.j_expr));break}default:this.unexpected()}rr(n)&&!rr(a)&&a!==null?this.raise(Cr.MissingClosingTagFragment,a):!rr(n)&&rr(a)?this.raise(Cr.MissingClosingTagElement,a,{openingTagName:ns(n.name)}):!rr(n)&&!rr(a)&&ns(a.name)!==ns(n.name)&&this.raise(Cr.MissingClosingTagElement,a,{openingTagName:ns(n.name)})}if(rr(n)?(r.openingFragment=n,r.closingFragment=a):(r.openingElement=n,r.closingElement=a),r.children=s,this.match(47))throw this.raise(Cr.UnwrappedAdjacentJSXElements,this.state.startLoc);return rr(n)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}jsxParseElement(){let i=this.state.startLoc;return this.next(),this.jsxParseElementAt(i)}setContext(i){let{context:r}=this.state;r[r.length-1]=i}parseExprAtom(i){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(i)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(i){let r=this.curContext();if(r===Be.j_expr){this.jsxReadToken();return}if(r===Be.j_oTag||r===Be.j_cTag){if(Ki(i)){this.jsxReadWord();return}if(i===62){++this.state.pos,this.finishToken(144);return}if((i===34||i===39)&&r===Be.j_oTag){this.jsxReadString(i);return}}if(i===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(i)}updateContext(i){let{context:r,type:s}=this.state;if(s===56&&i===143)r.splice(-2,2,Be.j_cTag),this.state.canStartJSXElement=!1;else if(s===143)r.push(Be.j_oTag);else if(s===144){let n=r[r.length-1];n===Be.j_oTag&&i===56||n===Be.j_cTag?(r.pop(),this.state.canStartJSXElement=r[r.length-1]===Be.j_expr):(this.setContext(Be.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=JE(s)}},Gl=class extends un{constructor(...e){super(...e),this.tsNames=new Map}},Ql=class extends pn{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Gl(e)}enter(e){e===1024&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===1024&&this.importsStack.pop(),e}hasImport(e,i){let r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!i&&r>1){for(let s=0;s<r-1;s++)if(this.importsStack[s].has(e))return!0}return!1}declareName(e,i,r){if(i&4096){this.hasImport(e,!0)&&this.parser.raise(w.VarRedeclaration,r,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let s=this.currentScope(),n=s.tsNames.get(e)||0;if(i&1024){this.maybeExportDefined(s,e),s.tsNames.set(e,n|16);return}super.declareName(e,i,r),i&2&&(i&1||(this.checkRedeclarationInScope(s,e,i,r),this.maybeExportDefined(s,e)),n=n|1),i&256&&(n=n|2),i&512&&(n=n|4),i&128&&(n=n|8),n&&s.tsNames.set(e,n)}isRedeclaredInScope(e,i,r){let s=e.tsNames.get(i);if((s&2)>0){if(r&256){let n=!!(r&512),a=(s&4)>0;return n!==a}return!0}return r&128&&(s&8)>0?e.names.get(i)&2?!!(r&1):!1:r&2&&(s&1)>0?!0:super.isRedeclaredInScope(e,i,r)}checkLocalExport(e){let{name:i}=e;if(this.hasImport(i))return;let r=this.scopeStack.length;for(let s=r-1;s>=0;s--){let a=this.scopeStack[s].tsNames.get(i);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(e)}},Zl=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function La(t,e){return(t?2:0)|(e?1:0)}var ec=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[i,r]=e;if(!this.hasPlugin(i))return!1;let s=this.plugins.get(i);for(let n of Object.keys(r))if(s?.[n]!==r[n])return!1;return!0}}getPluginOption(e,i){var r;return(r=this.plugins.get(e))==null?void 0:r[i]}};function nm(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e)}function PP(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e)}function fn(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e)}function sr(t,e,i){let r=null,s=e.length;for(;r===null&&s>0;)r=e[--s];r===null||r.start>i.start?fn(t,i.comments):nm(r,i.comments)}var tc=class extends ec{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:i}=this.state;this.comments.length!==i&&(this.comments.length=i),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:i}=this.state,r=i.length;if(r===0)return;let s=r-1,n=i[s];n.start===e.end&&(n.leadingNode=e,s--);let{start:a}=e;for(;s>=0;s--){let l=i[s],c=l.end;if(c>a)l.containingNode=e,this.finalizeComment(l),i.splice(s,1);else{c===a&&(l.trailingNode=e);break}}}finalizeComment(e){var i;let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&nm(e.leadingNode,r),e.trailingNode!==null&&PP(e.trailingNode,r);else{let{containingNode:s,start:n}=e;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":sr(s,s.properties,e);break;case"CallExpression":case"OptionalCallExpression":sr(s,s.arguments,e);break;case"ImportExpression":sr(s,[s.source,(i=s.options)!=null?i:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":sr(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":sr(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":sr(s,s.specifiers,e);break;case"TSEnumDeclaration":sr(s,s.members,e);break;case"TSEnumBody":sr(s,s.members,e);break;default:fn(s,r)}else fn(s,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let i=e.length-1;i>=0;i--)this.finalizeComment(e[i]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:i}=this.state,{length:r}=i;if(r===0)return;let s=i[r-1];s.leadingNode===e&&(s.leadingNode=null)}takeSurroundingComments(e,i,r){let{commentStack:s}=this.state,n=s.length;if(n===0)return;let a=n-1;for(;a>=0;a--){let l=s[a],c=l.end;if(l.start===r)l.leadingNode=e;else if(c===i)l.trailingNode=e;else if(c<i)break}}},ic=class t{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[Be.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:i,startIndex:r,startLine:s,startColumn:n}){this.strict=e===!1?!1:e===!0?!0:i==="module",this.startIndex=r,this.curLine=s,this.lineStart=-n,this.startLoc=this.endLoc=new Ii(s,n,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new Ii(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new t;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}},vP=function(e){return e>=48&&e<=57},Vd={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Oa={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function Wd(t,e,i,r,s,n){let a=i,l=r,c=s,o="",u=null,f=i,{length:d}=e;for(;;){if(i>=d){n.unterminated(a,l,c),o+=e.slice(f,i);break}let m=e.charCodeAt(i);if(AP(t,m,e,i)){o+=e.slice(f,i);break}if(m===92){o+=e.slice(f,i);let S=wP(e,i,r,s,t==="template",n);S.ch===null&&!u?u={pos:i,lineStart:r,curLine:s}:o+=S.ch,{pos:i,lineStart:r,curLine:s}=S,f=i}else m===8232||m===8233?(++i,++s,r=i):m===10||m===13?t==="template"?(o+=e.slice(f,i)+`
8
8
  `,++i,m===13&&e.charCodeAt(i)===10&&++i,++s,f=r=i):n.unterminated(a,l,c):++i}return{pos:i,str:o,firstInvalidLoc:u,lineStart:r,curLine:s,containsInvalid:!!u}}function AP(t,e,i,r){return t==="template"?e===96||e===36&&i.charCodeAt(r+1)===123:e===(t==="double"?34:39)}function wP(t,e,i,r,s,n){let a=!s;e++;let l=o=>({pos:e,ch:o,lineStart:i,curLine:r}),c=t.charCodeAt(e++);switch(c){case 110:return l(`
9
- `);case 114:return l("\r");case 120:{let o;return{code:o,pos:e}=rc(t,e,i,r,2,!1,a,n),l(o===null?null:String.fromCharCode(o))}case 117:{let o;return{code:o,pos:e}=om(t,e,i,r,a,n),l(o===null?null:String.fromCodePoint(o))}case 116:return l(" ");case 98:return l("\b");case 118:return l("\v");case 102:return l("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:i=e,++r;case 8232:case 8233:return l("");case 56:case 57:if(s)return l(null);n.strictNumericEscape(e-1,i,r);default:if(c>=48&&c<=55){let o=e-1,f=/^[0-7]+/.exec(t.slice(o,e+2))[0],d=parseInt(f,8);d>255&&(f=f.slice(0,-1),d=parseInt(f,8)),e+=f.length-1;let m=t.charCodeAt(e);if(f!=="0"||m===56||m===57){if(s)return l(null);n.strictNumericEscape(o,i,r)}return l(String.fromCharCode(d))}return l(String.fromCharCode(c))}}function rc(t,e,i,r,s,n,a,l){let c=e,o;return{n:o,pos:e}=am(t,e,i,r,16,s,n,!1,l,!a),o===null&&(a?l.invalidEscapeSequence(c,i,r):e=c-1),{code:o,pos:e}}function am(t,e,i,r,s,n,a,l,c,o){let u=e,f=s===16?Vd.hex:Vd.decBinOct,d=s===16?Oa.hex:s===10?Oa.dec:s===8?Oa.oct:Oa.bin,m=!1,S=0;for(let P=0,A=n??1/0;P<A;++P){let C=t.charCodeAt(e),k;if(C===95&&l!=="bail"){let D=t.charCodeAt(e-1),L=t.charCodeAt(e+1);if(l){if(Number.isNaN(L)||!d(L)||f.has(D)||f.has(L)){if(o)return{n:null,pos:e};c.unexpectedNumericSeparator(e,i,r)}}else{if(o)return{n:null,pos:e};c.numericSeparatorInEscapeSequence(e,i,r)}++e;continue}if(C>=97?k=C-97+10:C>=65?k=C-65+10:vP(C)?k=C-48:k=1/0,k>=s){if(k<=9&&o)return{n:null,pos:e};if(k<=9&&c.invalidDigit(e,i,r,s))k=0;else if(a)k=0,m=!0;else break}++e,S=S*s+k}return e===u||n!=null&&e-u!==n||m?{n:null,pos:e}:{n:S,pos:e}}function om(t,e,i,r,s,n){let a=t.charCodeAt(e),l;if(a===123){if(++e,{code:l,pos:e}=rc(t,e,i,r,t.indexOf("}",e)-e,!0,s,n),++e,l!==null&&l>1114111)if(s)n.invalidCodePoint(e,i,r);else return{code:null,pos:e}}else({code:l,pos:e}=rc(t,e,i,r,4,!1,s,n));return{code:l,pos:e}}function an(t,e,i){return new Ii(i,t-e,t)}var CP=new Set([103,109,115,105,121,117,100,118]),wi=class{constructor(e){let i=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=i+e.start,this.end=i+e.end,this.loc=new cs(e.startLoc,e.endLoc)}},sc=class extends tc{constructor(e,i){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(r,s,n,a)=>this.optionFlags&2048?(this.raise(w.InvalidDigit,an(r,s,n),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(w.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(w.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(w.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(w.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(r,s,n)=>{this.recordStrictModeErrors(w.StrictNumericEscape,an(r,s,n))},unterminated:(r,s,n)=>{throw this.raise(w.UnterminatedString,an(r-1,s,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(w.StrictNumericEscape),unterminated:(r,s,n)=>{throw this.raise(w.UnterminatedTemplate,an(r,s,n))}}),this.state=new ic,this.state.init(e),this.input=i,this.length=i.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new wi(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let i=this.state;return this.state=e,i}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Vl.lastIndex=e,Vl.test(this.input)?Vl.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Wl.lastIndex=e,Wl.test(this.input)?Wl.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let i=this.input.charCodeAt(e);if((i&64512)===55296&&++e<this.input.length){let r=this.input.charCodeAt(e);(r&64512)===56320&&(i=65536+((i&1023)<<10)+(r&1023))}return i}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([i,r])=>this.raise(i,r)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let i;this.isLookahead||(i=this.state.curPosition());let r=this.state.pos,s=this.input.indexOf(e,r+2);if(s===-1)throw this.raise(w.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+e.length,_a.lastIndex=r+2;_a.test(this.input)&&_a.lastIndex<=s;)++this.state.curLine,this.state.lineStart=_a.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(r+2,s),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(s+e.length),loc:new cs(i,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(n),n}skipLineComment(e){let i=this.state.pos,r;this.isLookahead||(r=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!os(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let n=this.state.pos,l={type:"CommentLine",value:this.input.slice(i+e,n),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(n),loc:new cs(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(l),l}skipSpace(){let e=this.state.pos,i=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let s=this.skipBlockComment("*/");s!==void 0&&(this.addComment(s),i?.push(s));break}case 47:{let s=this.skipLineComment(2);s!==void 0&&(this.addComment(s),i?.push(s));break}default:break e}break;default:if(SP(r))++this.state.pos;else if(r===45&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(e===0||this.state.lineStart>e)){let n=this.skipLineComment(3);n!==void 0&&(this.addComment(n),i?.push(n))}else break e}else if(r===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let n=this.skipLineComment(4);n!==void 0&&(this.addComment(n),i?.push(n))}else break e}else break e}}if(i?.length>0){let r=this.state.pos,s={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(r),comments:i,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,i){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let r=this.state.type;this.state.type=e,this.state.value=i,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,i=this.codePointAtPos(e);if(i>=48&&i<=57)throw this.raise(w.UnexpectedDigitAfterHash,this.state.curPosition());if(i===123||i===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(i===123?w.RecordExpressionHashIncorrectStartSyntaxType:w.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,i===123?this.finishToken(7):this.finishToken(1)}else Ki(i)?(++this.state.pos,this.finishToken(139,this.readWord1(i))):i===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let i=this.state.pos;for(this.state.pos+=1;!os(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let r=this.input.slice(i+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let i=e===42?55:54,r=1,s=this.input.charCodeAt(this.state.pos+1);e===42&&s===42&&(r++,s=this.input.charCodeAt(this.state.pos+2),i=57),s===61&&!this.state.inType&&(r++,i=e===37?33:30),this.finishOp(i,r)}readToken_pipe_amp(e){let i=this.input.charCodeAt(this.state.pos+1);if(i===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(i===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&i===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(w.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&i===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(w.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(i===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let i=this.input.charCodeAt(this.state.pos+1);if(i===e){this.finishOp(34,2);return}i===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,i=this.input.charCodeAt(e+1);if(i===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(i===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,i=this.input.charCodeAt(e+1);if(i===62){let r=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+r)===61){this.finishOp(30,r+1);return}this.finishOp(52,r);return}if(i===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let i=this.input.charCodeAt(this.state.pos+1);if(i===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&i===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),i=this.input.charCodeAt(this.state.pos+2);e===63?i===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(i>=48&&i<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(w.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(w.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let i=this.input.charCodeAt(this.state.pos+1);if(i===120||i===88){this.readRadixNumber(16);return}if(i===111||i===79){this.readRadixNumber(8);return}if(i===98||i===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Ki(e)){this.readWord(e);return}}throw this.raise(w.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,i){let r=this.input.slice(this.state.pos,this.state.pos+i);this.state.pos+=i,this.finishToken(e,r)}readRegexp(){let e=this.state.startLoc,i=this.state.start+1,r,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(w.UnterminatedRegExp,Ft(e,1));let o=this.input.charCodeAt(n);if(os(o))throw this.raise(w.UnterminatedRegExp,Ft(e,1));if(r)r=!1;else{if(o===91)s=!0;else if(o===93&&s)s=!1;else if(o===47&&!s)break;r=o===92}}let a=this.input.slice(i,n);++n;let l="",c=()=>Ft(e,n+2-i);for(;n<this.length;){let o=this.codePointAtPos(n),u=String.fromCharCode(o);if(CP.has(o))o===118?l.includes("u")&&this.raise(w.IncompatibleRegExpUVFlags,c()):o===117&&l.includes("v")&&this.raise(w.IncompatibleRegExpUVFlags,c()),l.includes(u)&&this.raise(w.DuplicateRegExpFlags,c());else if(as(o)||o===92)this.raise(w.MalformedRegExpFlags,c());else break;++n,l+=u}this.state.pos=n,this.finishToken(138,{pattern:a,flags:l})}readInt(e,i,r=!1,s=!0){let{n,pos:a}=am(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,i,r,s,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(e){let i=this.state.pos,r=this.state.curPosition(),s=!1;this.state.pos+=2;let n=this.readInt(e);n==null&&this.raise(w.InvalidDigit,Ft(r,2),{radix:e});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,s=!0;else if(a===109)throw this.raise(w.InvalidDecimal,r);if(Ki(this.codePointAtPos(this.state.pos)))throw this.raise(w.NumberIdentifier,this.state.curPosition());if(s){let l=this.input.slice(i,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,l);return}this.finishToken(135,n)}readNumber(e){let i=this.state.pos,r=this.state.curPosition(),s=!1,n=!1,a=!1,l=!1;!e&&this.readInt(10)===null&&this.raise(w.InvalidNumber,this.state.curPosition());let c=this.state.pos-i>=2&&this.input.charCodeAt(i)===48;if(c){let m=this.input.slice(i,this.state.pos);if(this.recordStrictModeErrors(w.StrictOctalLiteral,r),!this.state.strict){let S=m.indexOf("_");S>0&&this.raise(w.ZeroDigitNumericSeparator,Ft(r,S))}l=c&&!/[89]/.test(m)}let o=this.input.charCodeAt(this.state.pos);if(o===46&&!l&&(++this.state.pos,this.readInt(10),s=!0,o=this.input.charCodeAt(this.state.pos)),(o===69||o===101)&&!l&&(o=this.input.charCodeAt(++this.state.pos),(o===43||o===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(w.InvalidOrMissingExponent,r),s=!0,a=!0,o=this.input.charCodeAt(this.state.pos)),o===110&&((s||c)&&this.raise(w.InvalidBigIntLiteral,r),++this.state.pos,n=!0),o===109){this.expectPlugin("decimal",this.state.curPosition()),(a||c)&&this.raise(w.InvalidDecimal,r),++this.state.pos;var u=!0}if(Ki(this.codePointAtPos(this.state.pos)))throw this.raise(w.NumberIdentifier,this.state.curPosition());let f=this.input.slice(i,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(136,f);return}if(u){this.finishToken(137,f);return}let d=l?parseInt(f,8):parseFloat(f);this.finishToken(135,d)}readCodePoint(e){let{code:i,pos:r}=om(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,i}readString(e){let{str:i,pos:r,curLine:s,lineStart:n}=Wd(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=n,this.state.curLine=s,this.finishToken(134,i)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:i,firstInvalidLoc:r,pos:s,curLine:n,lineStart:a}=Wd("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=a,this.state.curLine=n,r&&(this.state.firstInvalidTemplateEscapePos=new Ii(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),this.input.codePointAt(s)===96?this.finishToken(24,r?null:e+i+"`"):(this.state.pos++,this.finishToken(25,r?null:e+i+"${"))}recordStrictModeErrors(e,i){let r=i.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,i):this.state.strictErrors.set(r,[e,i])}readWord1(e){this.state.containsEsc=!1;let i="",r=this.state.pos,s=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(as(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,i+=this.input.slice(s,this.state.pos);let a=this.state.curPosition(),l=this.state.pos===r?Ki:as;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(w.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let c=this.readCodePoint(!0);c!==null&&(l(c)||this.raise(w.EscapedCharNotAnIdentifier,a),i+=String.fromCodePoint(c)),s=this.state.pos}else break}return i+this.input.slice(s,this.state.pos)}readWord(e){let i=this.readWord1(e),r=dc.get(i);r!==void 0?this.finishToken(r,nr(r)):this.finishToken(132,i)}checkKeywordEscapes(){let{type:e}=this.state;bc(e)&&this.state.containsEsc&&this.raise(w.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:nr(e)})}raise(e,i,r={}){let s=i instanceof Ii?i:i.loc.start,n=e(s,r);if(!(this.optionFlags&2048))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,i,r={}){let s=i instanceof Ii?i:i.loc.start,n=s.index,a=this.state.errors;for(let l=a.length-1;l>=0;l--){let c=a[l];if(c.loc.index===n)return a[l]=e(s,r);if(c.loc.index<n)break}return this.raise(e,i,r)}updateContext(e){}unexpected(e,i){throw this.raise(w.UnexpectedToken,e??this.state.startLoc,{expected:i?nr(i):null})}expectPlugin(e,i){if(this.hasPlugin(e))return!0;throw this.raise(w.MissingPlugin,i??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(i=>this.hasPlugin(i)))throw this.raise(w.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(i,r,s)=>{this.raise(e,an(i,r,s))}}},nc=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},ac=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new nc)}exit(){let e=this.stack.pop(),i=this.current();for(let[r,s]of Array.from(e.undefinedPrivateNames))i?i.undefinedPrivateNames.has(r)||i.undefinedPrivateNames.set(r,s):this.parser.raise(w.InvalidPrivateFieldResolution,s,{identifierName:r})}declarePrivateName(e,i,r){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:a}=this.current(),l=s.has(e);if(i&3){let c=l&&n.get(e);if(c){let o=c&4,u=i&4,f=c&3,d=i&3;l=f===d||o!==u,l||n.delete(e)}else l||n.set(e,i)}l&&this.parser.raise(w.PrivateNameRedeclaration,r,{identifierName:e}),s.add(e),a.delete(e)}usePrivateName(e,i){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,i):this.parser.raise(w.InvalidPrivateFieldResolution,i,{identifierName:e})}},us=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Ba=class extends us{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,i){let r=i.index;this.declarationErrors.set(r,[e,i])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},oc=class{constructor(e){this.parser=void 0,this.stack=[new us],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,i){let r=i.loc.start,{stack:s}=this,n=s.length-1,a=s[n];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,r);else return;a=s[--n]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,i){let{stack:r}=this,s=r[r.length-1],n=i.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(e,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,n);else return}recordAsyncArrowParametersError(e){let{stack:i}=this,r=i.length-1,s=i[r];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(w.AwaitBindingIdentifier,e),s=i[--r]}validateAsPattern(){let{stack:e}=this,i=e[e.length-1];i.canBeArrowParameterDeclaration()&&i.iterateErrors(([r,s])=>{this.parser.raise(r,s);let n=e.length-2,a=e[n];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=e[--n]})}};function IP(){return new us(3)}function kP(){return new Ba(1)}function _P(){return new Ba(2)}function lm(){return new us}var lc=class extends sc{addExtra(e,i,r,s=!0){if(!e)return;let{extra:n}=e;n==null&&(n={},e.extra=n),s?n[i]=r:Object.defineProperty(n,i,{enumerable:s,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,i){if(this.input.startsWith(i,e)){let r=this.input.charCodeAt(e+i.length);return!(as(r)||(r&64512)===55296)}return!1}isLookaheadContextual(e){let i=this.nextTokenStart();return this.isUnparsedContextual(i,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,i){if(!this.eatContextual(e)){if(i!=null)throw this.raise(i,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Kd(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Kd(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(w.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,i){this.eat(e)||this.unexpected(i,e)}tryParse(e,i=this.state.clone()){let r={node:null};try{let s=e((n=null)=>{throw r.node=n,r});if(this.state.errors.length>i.errors.length){let n=this.state;return this.state=i,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[i.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=i,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(e,i){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:a,voidPatternLoc:l}=e,c=!!r||!!s||!!a||!!n||!!l;if(!i)return c;r!=null&&this.raise(w.InvalidCoverInitializedName,r),s!=null&&this.raise(w.DuplicateProto,s),n!=null&&this.raise(w.UnexpectedPrivateField,n),a!=null&&this.unexpected(a),l!=null&&this.raise(w.InvalidCoverDiscardElement,l)}isLiteralPropertyName(){return Qd(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let i=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=e;let n=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);let l=this.prodParam;this.prodParam=new Zl;let c=this.classScope;this.classScope=new ac(this);let o=this.expressionScope;return this.expressionScope=new oc(this),()=>{this.state.labels=i,this.exportedIdentifiers=r,this.inModule=s,this.scope=n,this.prodParam=l,this.classScope=c,this.expressionScope=o}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let i=!this.inModule&&this.options.sourceType==="commonjs";(i||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let r=i?514:1;this.optionFlags&4&&(r|=512),this.scope.enter(r)}checkDestructuringPrivate(e){let{privateKeyLoc:i}=e;i!==null&&this.expectPlugin("destructuringPrivate",i)}},ls=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},ps=class{constructor(e,i,r){this.type="",this.start=i,this.end=0,this.loc=new cs(r),e?.optionFlags&128&&(this.range=[i,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}},cc=ps.prototype;cc.__clone=function(){let t=new ps(void 0,this.start,this.loc.start),e=Object.keys(this);for(let i=0,r=e.length;i<r;i++){let s=e[i];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(t[s]=this[s])}return t};var uc=class extends lc{startNode(){let e=this.state.startLoc;return new ps(this,e.index,e)}startNodeAt(e){return new ps(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,i){return this.finishNodeAt(e,i,this.state.lastTokEndLoc)}finishNodeAt(e,i,r){return e.type=i,e.end=r.index,e.loc.end=r,this.optionFlags&128&&(e.range[1]=r.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,i){e.start=i.index,e.loc.start=i,this.optionFlags&128&&(e.range[0]=i.index)}resetEndLocation(e,i=this.state.lastTokEndLoc){e.end=i.index,e.loc.end=i,this.optionFlags&128&&(e.range[1]=i.index)}resetStartLocationFromNode(e,i){this.resetStartLocation(e,i.loc.start)}castNodeTo(e,i){return e.type=i,e}cloneIdentifier(e){let{type:i,start:r,end:s,loc:n,range:a,name:l}=e,c=Object.create(cc);return c.type=i,c.start=r,c.end=s,c.loc=n,c.range=a,c.name=l,e.extra&&(c.extra=e.extra),c}cloneStringLiteral(e){let{type:i,start:r,end:s,loc:n,range:a,extra:l}=e,c=Object.create(cc);return c.type=i,c.start=r,c.end=s,c.loc=n,c.range=a,c.extra=l,c.value=e.value,c}},cm=t=>t.type==="ParenthesizedExpression"?cm(t.expression):t,pc=class extends uc{toAssignable(e,i=!1){var r,s;let n;switch((e.type==="ParenthesizedExpression"||(r=e.extra)!=null&&r.parenthesized)&&(n=cm(e),i?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(w.InvalidParenthesizedAssignment,e):n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(w.InvalidParenthesizedAssignment,e):this.raise(w.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let l=0,c=e.properties.length,o=c-1;l<c;l++){var a;let u=e.properties[l],f=l===o;this.toAssignableObjectExpressionProp(u,f,i),f&&u.type==="RestElement"&&(a=e.extra)!=null&&a.trailingCommaLoc&&this.raise(w.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:l,value:c}=e;this.isPrivateName(l)&&this.classScope.usePrivateName(this.getPrivateNameSV(l),l.loc.start),this.toAssignable(c,i);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingCommaLoc,i);break;case"AssignmentExpression":e.operator!=="="&&this.raise(w.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,e.left.type==="VoidPattern"&&this.raise(w.VoidPatternInitializer,e.left),this.toAssignable(e.left,i);break;case"ParenthesizedExpression":this.toAssignable(n,i);break}}toAssignableObjectExpressionProp(e,i,r){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?w.PatternHasAccessor:w.PatternHasMethod,e.key);else if(e.type==="SpreadElement"){this.castNodeTo(e,"RestElement");let s=e.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,r),i||this.raise(w.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,i,r){let s=e.length-1;for(let n=0;n<=s;n++){let a=e[n];a&&(this.toAssignableListItem(e,n,r),a.type==="RestElement"&&(n<s?this.raise(w.RestTrailingComma,a):i&&this.raise(w.RestTrailingComma,i)))}}toAssignableListItem(e,i,r){let s=e[i];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let n=s.argument;this.checkToRestConversion(n,!0),this.toAssignable(n,r)}else this.toAssignable(s,r)}isAssignable(e,i){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let r=e.properties.length-1;return e.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===r||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(r=>r===null||this.isAssignable(r));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!i;default:return!1}}toReferencedList(e,i){return e}toReferencedListDeep(e,i){this.toReferencedList(e,i);for(let r of e)r?.type==="ArrayExpression"&&this.toReferencedListDeep(r.elements)}parseSpread(e){let i=this.startNode();return this.next(),i.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(i,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let i=this.parseBindingAtom();return i.type==="VoidPattern"&&this.raise(w.UnexpectedVoidPattern,i),e.argument=i,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,i,r){let s=r&1,n=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(e))break;if(this.match(21)){let l=this.parseRestBinding();if((this.hasPlugin("flow")||r&2)&&(l=this.parseFunctionParamType(l)),n.push(l),!this.checkCommaAfterRest(i)){this.expect(e);break}}else{let l=[];if(r&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(w.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)l.push(this.parseDecorator());n.push(this.parseBindingElement(r,l))}}return n}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(w.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:i}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let r=this.startNode();return e===139?(this.expectPlugin("destructuringPrivate",i),this.classScope.usePrivateName(this.state.value,i),r.key=this.parsePrivateName()):this.parsePropertyName(r),r.method=!1,this.parseObjPropValue(r,i,!1,!1,!0,!1)}parseBindingElement(e,i){let r=this.parseMaybeDefault();return(this.hasPlugin("flow")||e&2)&&this.parseFunctionParamType(r),i.length&&(r.decorators=i,this.resetStartLocationFromNode(r,i[0])),this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(e){return e}parseMaybeDefault(e,i){if(e??(e=this.state.startLoc),i=i??this.parseBindingAtom(),!this.eat(29))return i;let r=this.startNodeAt(e);return i.type==="VoidPattern"&&this.raise(w.VoidPatternInitializer,i),r.left=i,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,i,r){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,i,r=64,s=!1,n=!1,a=!1){var l;let c=e.type;if(this.isObjectMethod(e))return;let o=this.isOptionalMemberExpression(e);if(o||c==="MemberExpression"){o&&(this.expectPlugin("optionalChainingAssign",e.loc.start),i.type!=="AssignmentExpression"&&this.raise(w.InvalidLhsOptionalChaining,e,{ancestor:i})),r!==64&&this.raise(w.InvalidPropertyBindingPattern,e);return}if(c==="Identifier"){this.checkIdentifier(e,r,n);let{name:P}=e;s&&(s.has(P)?this.raise(w.ParamDupe,e):s.add(P));return}else c==="VoidPattern"&&i.type==="CatchClause"&&this.raise(w.VoidPatternCatchClauseParam,e);let u=this.isValidLVal(c,!(a||(l=e.extra)!=null&&l.parenthesized)&&i.type==="AssignmentExpression",r);if(u===!0)return;if(u===!1){let P=r===64?w.InvalidLhs:w.InvalidLhsBinding;this.raise(P,e,{ancestor:i});return}let f,d;typeof u=="string"?(f=u,d=c==="ParenthesizedExpression"):[f,d]=u;let m=c==="ArrayPattern"||c==="ObjectPattern"?{type:c}:i,S=e[f];if(Array.isArray(S))for(let P of S)P&&this.checkLVal(P,m,r,s,n,d);else S&&this.checkLVal(S,m,r,s,n,d)}checkIdentifier(e,i,r=!1){this.state.strict&&(r?sm(e.name,this.inModule):rm(e.name))&&(i===64?this.raise(w.StrictEvalArguments,e,{referenceName:e.name}):this.raise(w.StrictEvalArgumentsBinding,e,{bindingName:e.name})),i&8192&&e.name==="let"&&this.raise(w.LetInLexicalBinding,e),i&64||this.declareNameFromIdentifier(e,i)}declareNameFromIdentifier(e,i){this.scope.declareName(e.name,i,e.loc.start)}checkToRestConversion(e,i){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,i);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(i)break;default:this.raise(w.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?w.RestTrailingComma:w.ElementAfterRest,this.state.startLoc),!0):!1}};function OP(t){if(t==null)throw new Error(`Unexpected ${t} value.`);return t}function Yd(t){if(!t)throw new Error("Assert fail")}var re=Ci`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>`Accessibility modifier already seen: '${t}'.`,DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:t})=>`'${t}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:t=>`'${t}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:t=>`'${t}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`,UsingDeclarationInAmbientContext:t=>`'${t}' declarations are not allowed in ambient contexts.`});function NP(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function zd(t){return t==="private"||t==="public"||t==="protected"}function DP(t){return t==="in"||t==="out"}var LP=t=>class extends t{constructor(...i){super(...i),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:re.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:re.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:re.InvalidModifierOnTypeParameter})}getScopeHandler(){return Ql}tsIsIdentifier(){return $e(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(i,r,s){if(!$e(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(i.includes(n)){if(s&&this.match(106)||r&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:i,disallowedModifiers:r,stopOnStartOfClassStaticBlock:s,errorTemplate:n=re.InvalidModifierOnTypeMember},a){let l=(o,u,f,d)=>{u===f&&a[d]&&this.raise(re.InvalidModifiersOrder,o,{orderedModifiers:[f,d]})},c=(o,u,f,d)=>{(a[f]&&u===d||a[d]&&u===f)&&this.raise(re.IncompatibleModifiers,o,{modifiers:[f,d]})};for(;;){let{startLoc:o}=this.state,u=this.tsParseModifier(i.concat(r??[]),s,a.static);if(!u)break;zd(u)?a.accessibility?this.raise(re.DuplicateAccessibilityModifier,o,{modifier:u}):(l(o,u,u,"override"),l(o,u,u,"static"),l(o,u,u,"readonly"),a.accessibility=u):DP(u)?(a[u]&&this.raise(re.DuplicateModifier,o,{modifier:u}),a[u]=!0,l(o,u,"in","out")):(hasOwnProperty.call(a,u)?this.raise(re.DuplicateModifier,o,{modifier:u}):(l(o,u,"static","readonly"),l(o,u,"static","override"),l(o,u,"override","readonly"),l(o,u,"abstract","override"),c(o,u,"declare","override"),c(o,u,"static","abstract")),a[u]=!0),r!=null&&r.includes(u)&&this.raise(n,o,{modifier:u})}}tsIsListTerminator(i){switch(i){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(i,r){let s=[];for(;!this.tsIsListTerminator(i);)s.push(r());return s}tsParseDelimitedList(i,r,s){return OP(this.tsParseDelimitedListWorker(i,r,!0,s))}tsParseDelimitedListWorker(i,r,s,n){let a=[],l=-1;for(;!this.tsIsListTerminator(i);){l=-1;let c=r();if(c==null)return;if(a.push(c),this.eat(12)){l=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(i))break;s&&this.expect(12);return}return n&&(n.value=l),a}tsParseBracketedList(i,r,s,n,a){n||(s?this.expect(0):this.expect(47));let l=this.tsParseDelimitedList(i,r,a);return s?this.expect(3):this.expect(48),l}tsParseImportType(){let i=this.startNode();return this.expect(83),this.expect(10),this.match(134)?i.argument=this.parseStringLiteral(this.state.value):(this.raise(re.UnsupportedImportTypeArgument,this.state.startLoc),i.argument=super.parseExprAtom()),this.eat(12)?i.options=this.tsParseImportTypeOptions():i.options=null,this.expect(11),this.eat(16)&&(i.qualifier=this.tsParseEntityName(3)),this.match(47)&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSImportType")}tsParseImportTypeOptions(){let i=this.startNode();this.expect(5);let r=this.startNode();return this.isContextual(76)?(r.method=!1,r.key=this.parseIdentifier(!0),r.computed=!1,r.shorthand=!1):this.unexpected(null,76),this.expect(14),r.value=this.tsParseImportTypeWithPropertyValue(),i.properties=[this.finishObjectProperty(r)],this.expect(8),this.finishNode(i,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let i=this.startNode(),r=[];for(this.expect(5);!this.match(8);){let s=this.state.type;$e(s)||s===134?r.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return i.properties=r,this.next(),this.finishNode(i,"ObjectExpression")}tsParseEntityName(i){let r;if(i&1&&this.match(78))if(i&2)r=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),r=this.finishNode(s,"ThisExpression")}else r=this.parseIdentifier(!!(i&1));for(;this.eat(16);){let s=this.startNodeAtNode(r);s.left=r,s.right=this.parseIdentifier(!!(i&1)),r=this.finishNode(s,"TSQualifiedName")}return r}tsParseTypeReference(){let i=this.startNode();return i.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSTypeReference")}tsParseThisTypePredicate(i){this.next();let r=this.startNodeAtNode(i);return r.parameterName=i,r.typeAnnotation=this.tsParseTypeAnnotation(!1),r.asserts=!1,this.finishNode(r,"TSTypePredicate")}tsParseThisTypeNode(){let i=this.startNode();return this.next(),this.finishNode(i,"TSThisType")}tsParseTypeQuery(){let i=this.startNode();return this.expect(87),this.match(83)?i.exprName=this.tsParseImportType():i.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSTypeQuery")}tsParseTypeParameter(i){let r=this.startNode();return i(r),r.name=this.tsParseTypeParameterName(),r.constraint=this.tsEatThenParseType(81),r.default=this.tsEatThenParseType(29),this.finishNode(r,"TSTypeParameter")}tsTryParseTypeParameters(i){if(this.match(47))return this.tsParseTypeParameters(i)}tsParseTypeParameters(i){let r=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let s={value:-1};return r.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,i),!1,!0,s),r.params.length===0&&this.raise(re.EmptyTypeParameters,r),s.value!==-1&&this.addExtra(r,"trailingComma",s.value),this.finishNode(r,"TSTypeParameterDeclaration")}tsFillSignature(i,r){let s=i===19,n="parameters",a="typeAnnotation";r.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),r[n]=this.tsParseBindingListForSignature(),s?r[a]=this.tsParseTypeOrTypePredicateAnnotation(i):this.match(i)&&(r[a]=this.tsParseTypeOrTypePredicateAnnotation(i))}tsParseBindingListForSignature(){let i=super.parseBindingList(11,41,2);for(let r of i){let{type:s}=r;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(re.UnsupportedSignatureParameterKind,r,{type:s})}return i}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(i,r){return this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon(),this.finishNode(r,i)}tsIsUnambiguouslyIndexSignature(){return this.next(),$e(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(i){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let r=this.parseIdentifier();r.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(r),this.expect(3),i.parameters=[r];let s=this.tsTryParseTypeAnnotation();return s&&(i.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSIndexSignature")}tsParsePropertyOrMethodSignature(i,r){if(this.eat(17)&&(i.optional=!0),this.match(10)||this.match(47)){r&&this.raise(re.ReadonlyForMethodSignature,i);let s=i;s.kind&&this.match(47)&&this.raise(re.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let n="parameters",a="typeAnnotation";if(s.kind==="get")s[n].length>0&&(this.raise(w.BadGetterArity,this.state.curPosition()),this.isThisParam(s[n][0])&&this.raise(re.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[n].length!==1)this.raise(w.BadSetterArity,this.state.curPosition());else{let l=s[n][0];this.isThisParam(l)&&this.raise(re.AccessorCannotDeclareThisParameter,this.state.curPosition()),l.type==="Identifier"&&l.optional&&this.raise(re.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),l.type==="RestElement"&&this.raise(re.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[a]&&this.raise(re.SetAccessorCannotHaveReturnType,s[a])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=i;r&&(s.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(s.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let i=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",i);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",i):(i.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(i,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},i);let r=this.tsTryParseIndexSignature(i);return r||(super.parsePropertyName(i),!i.computed&&i.key.type==="Identifier"&&(i.key.name==="get"||i.key.name==="set")&&this.tsTokenCanFollowModifier()&&(i.kind=i.key.name,super.parsePropertyName(i),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(i,!!i.readonly))}tsParseTypeLiteral(){let i=this.startNode();return i.members=this.tsParseObjectTypeMembers(),this.finishNode(i,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let i=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),i}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let i=this.startNode();this.expect(5),this.match(53)?(i.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(i.readonly=!0),this.expect(0);{let r=this.startNode();r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),i.typeParameter=this.finishNode(r,"TSTypeParameter")}return i.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(i.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(i.optional=!0),i.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(i,"TSMappedType")}tsParseTupleType(){let i=this.startNode();i.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let r=!1;return i.elementTypes.forEach(s=>{let{type:n}=s;r&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise(re.OptionalTypeBeforeRequired,s),r||(r=n==="TSNamedTupleMember"&&s.optional||n==="TSOptionalType")}),this.finishNode(i,"TSTupleType")}tsParseTupleElementType(){let i=this.state.startLoc,r=this.eat(21),{startLoc:s}=this.state,n,a,l,c,u=mi(this.state.type)?this.lookaheadCharCode():null;if(u===58)n=!0,l=!1,a=this.parseIdentifier(!0),this.expect(14),c=this.tsParseType();else if(u===63){l=!0;let f=this.state.value,d=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,a=this.createIdentifier(this.startNodeAt(s),f),this.expect(17),this.expect(14),c=this.tsParseType()):(n=!1,c=d,this.expect(17))}else c=this.tsParseType(),l=this.eat(17),n=this.eat(14);if(n){let f;a?(f=this.startNodeAt(s),f.optional=l,f.label=a,f.elementType=c,this.eat(17)&&(f.optional=!0,this.raise(re.TupleOptionalAfterType,this.state.lastTokStartLoc))):(f=this.startNodeAt(s),f.optional=l,this.raise(re.InvalidTupleMemberLabel,c),f.label=c,f.elementType=this.tsParseType()),c=this.finishNode(f,"TSNamedTupleMember")}else if(l){let f=this.startNodeAt(s);f.typeAnnotation=c,c=this.finishNode(f,"TSOptionalType")}if(r){let f=this.startNodeAt(i);f.typeAnnotation=c,c=this.finishNode(f,"TSRestType")}return c}tsParseParenthesizedType(){let i=this.startNode();return this.expect(10),i.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(i,"TSParenthesizedType")}tsParseFunctionOrConstructorType(i,r){let s=this.startNode();return i==="TSConstructorType"&&(s.abstract=!!r,r&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,i)}tsParseLiteralTypeNode(){let i=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:i.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(i,"TSLiteralType")}tsParseTemplateLiteralType(){{let i=this.startNode();return i.literal=super.parseTemplate(!1),this.finishNode(i,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let i=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(i):i}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let i=this.startNode(),r=this.lookahead();return r.type!==135&&r.type!==136&&this.unexpected(),i.literal=this.parseMaybeUnary(),this.finishNode(i,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:i}=this.state;if($e(i)||i===88||i===84){let r=i===88?"TSVoidKeyword":i===84?"TSNullKeyword":NP(this.state.value);if(r!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,r)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:i}=this.state,r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAt(i);s.elementType=r,this.expect(3),r=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAt(i);s.objectType=r,s.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(s,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let i=this.startNode(),r=this.state.value;return this.next(),i.operator=r,i.typeAnnotation=this.tsParseTypeOperatorOrHigher(),r==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(i),this.finishNode(i,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(i){switch(i.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(re.UnexpectedReadonly,i)}}tsParseInferType(){let i=this.startNode();this.expectContextual(115);let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),i.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(i,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let i=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return i}}tsParseTypeOperatorOrHigher(){return eP(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(i,r,s){let n=this.startNode(),a=this.eat(s),l=[];do l.push(r());while(this.eat(s));return l.length===1&&!a?l[0]:(n.types=l,this.finishNode(n,i))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if($e(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:i}=this.state,r=i.length;try{return this.parseObjectLike(8,!0),i.length===r}catch{return!1}}if(this.match(0)){this.next();let{errors:i}=this.state,r=i.length;try{return super.parseBindingList(3,93,1),i.length===r}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(i){return this.tsInType(()=>{let r=this.startNode();this.expect(i);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let c=this.tsParseThisTypeOrThisTypePredicate();return c.type==="TSThisType"?(s.parameterName=c,s.asserts=!0,s.typeAnnotation=null,c=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(c,s),c.asserts=!0),r.typeAnnotation=c,this.finishNode(r,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,r.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,r);let l=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=l,s.asserts=n,r.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let i=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),i}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let i=this.state.containsEsc;return this.next(),!$e(this.state.type)&&!this.match(78)?!1:(i&&this.raise(w.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(i=!0,r=this.startNode()){return this.tsInType(()=>{i&&this.expect(14),r.typeAnnotation=this.tsParseType()}),this.finishNode(r,"TSTypeAnnotation")}tsParseType(){Yd(this.state.inType);let i=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return i;let r=this.startNodeAtNode(i);return r.checkType=i,r.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(r,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(re.ReservedTypeAssertion,this.state.startLoc);let i=this.startNode();return i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),i.expression=this.parseMaybeUnary(),this.finishNode(i,"TSTypeAssertion")}tsParseHeritageClause(i){let r=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let n=this.startNode();return n.expression=this.tsParseEntityName(3),this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSExpressionWithTypeArguments")}});return s.length||this.raise(re.EmptyHeritageClauseType,r,{token:i}),s}tsParseInterfaceDeclaration(i,r={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),r.declare&&(i.declare=!0),$e(this.state.type)?(i.id=this.parseIdentifier(),this.checkIdentifier(i.id,130)):(i.id=null,this.raise(re.MissingInterfaceName,this.state.startLoc)),i.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(i.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),i.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(i,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(i){return i.id=this.parseIdentifier(),this.checkIdentifier(i.id,2),i.typeAnnotation=this.tsInType(()=>{if(i.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let r=this.startNode();return this.next(),this.finishNode(r,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(i,"TSTypeAliasDeclaration")}tsInTopLevelContext(i){if(this.curContext()!==Be.brace){let r=this.state.context;this.state.context=[r[0]];try{return i()}finally{this.state.context=r}}else return i()}tsInType(i){let r=this.state.inType;this.state.inType=!0;try{return i()}finally{this.state.inType=r}}tsInDisallowConditionalTypesContext(i){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return i()}finally{this.state.inDisallowConditionalTypesContext=r}}tsInAllowConditionalTypesContext(i){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return i()}finally{this.state.inDisallowConditionalTypesContext=r}}tsEatThenParseType(i){if(this.match(i))return this.tsNextThenParseType()}tsExpectThenParseType(i){return this.tsInType(()=>(this.expect(i),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let i=this.startNode();return i.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(i.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(i,"TSEnumMember")}tsParseEnumDeclaration(i,r={}){return r.const&&(i.const=!0),r.declare&&(i.declare=!0),this.expectContextual(126),i.id=this.parseIdentifier(),this.checkIdentifier(i.id,i.const?8971:8459),this.expect(5),i.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(i,"TSEnumDeclaration")}tsParseEnumBody(){let i=this.startNode();return this.expect(5),i.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(i,"TSEnumBody")}tsParseModuleBlock(){let i=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(i.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(i,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(i,r=!1){if(i.id=this.parseIdentifier(),r||this.checkIdentifier(i.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),i.body=s}else this.scope.enter(1024),this.prodParam.enter(0),i.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(i,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(i){return this.isContextual(112)?(i.kind="global",i.global=!0,i.id=this.parseIdentifier()):this.match(134)?(i.kind="module",i.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),i.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(i,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(i,r,s){i.isExport=s||!1,i.id=r||this.parseIdentifier(),this.checkIdentifier(i.id,4096),this.expect(29);let n=this.tsParseModuleReference();return i.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise(re.ImportAliasHasImportType,n),i.moduleReference=n,this.semicolon(),this.finishNode(i,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let i=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),i.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExternalModuleReference")}tsLookAhead(i){let r=this.state.clone(),s=i();return this.state=r,s}tsTryParseAndCatch(i){let r=this.tryParse(s=>i()||s());if(!(r.aborted||!r.node))return r.error&&(this.state=r.failState),r.node}tsTryParse(i){let r=this.state.clone(),s=i();if(s!==void 0&&s!==!1)return s;this.state=r}tsTryParseDeclare(i){if(this.isLineTerminator())return;let r=this.state.type;return this.tsInAmbientContext(()=>{switch(r){case 68:return i.declare=!0,super.parseFunctionStatement(i,!1,!1);case 80:return i.declare=!0,this.parseClass(i,!0,!1);case 126:return this.tsParseEnumDeclaration(i,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(i);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(i.declare=!0,this.parseVarStatement(i,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(i,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(re.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),i.declare=!0,this.parseVarStatement(i,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(re.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),i.declare=!0,this.next(),this.parseVarStatement(i,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(i,{declare:!0});if(s)return s}default:if($e(r))return this.tsParseDeclaration(i,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(i,r,s){switch(r.name){case"declare":{let n=this.tsTryParseDeclare(i);return n&&(n.declare=!0),n}case"global":if(this.match(5)){this.scope.enter(1024),this.prodParam.enter(0);let n=i;return n.kind="global",i.global=!0,n.id=r,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(i,r.name,!1,s)}}tsParseDeclaration(i,r,s,n){switch(r){case"abstract":if(this.tsCheckLineTerminator(s)&&(this.match(80)||$e(this.state.type)))return this.tsParseAbstractDeclaration(i,n);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(i);if($e(this.state.type))return i.kind="module",this.tsParseModuleOrNamespaceDeclaration(i)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&$e(this.state.type))return i.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(i);break;case"type":if(this.tsCheckLineTerminator(s)&&$e(this.state.type))return this.tsParseTypeAliasDeclaration(i);break}}tsCheckLineTerminator(i){return i?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(i){if(!this.match(47))return;let r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(i);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=r,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let i=this.startNode();return i.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),i.params.length===0?this.raise(re.EmptyTypeArguments,i):!this.state.inType&&this.curContext()===Be.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(i,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return tP(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(i,r){let s=r.length?r[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let a=n.accessibility,l=n.override,c=n.readonly;!(i&4)&&(a||c||l)&&this.raise(re.UnexpectedParameterModifier,s);let o=this.parseMaybeDefault();i&2&&this.parseFunctionParamType(o);let u=this.parseMaybeDefault(o.loc.start,o);if(a||c||l){let f=this.startNodeAt(s);return r.length&&(f.decorators=r),a&&(f.accessibility=a),c&&(f.readonly=c),l&&(f.override=l),u.type!=="Identifier"&&u.type!=="AssignmentPattern"&&this.raise(re.UnsupportedParameterPropertyKind,f),f.parameter=u,this.finishNode(f,"TSParameterProperty")}return r.length&&(o.decorators=r),u}isSimpleParameter(i){return i.type==="TSParameterProperty"&&super.isSimpleParameter(i.parameter)||super.isSimpleParameter(i)}tsDisallowOptionalPattern(i){for(let r of i.params)r.type!=="Identifier"&&r.optional&&!this.state.isAmbientContext&&this.raise(re.PatternIsOptional,r)}setArrowFunctionParameters(i,r,s){super.setArrowFunctionParameters(i,r,s),this.tsDisallowOptionalPattern(i)}parseFunctionBodyAndFinish(i,r,s=!1){this.match(14)&&(i.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n=r==="FunctionDeclaration"?"TSDeclareFunction":r==="ClassMethod"||r==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(i,n):n==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(re.DeclareFunctionHasImplementation,i),i.declare)?super.parseFunctionBodyAndFinish(i,n,s):(this.tsDisallowOptionalPattern(i),super.parseFunctionBodyAndFinish(i,r,s))}registerFunctionStatementId(i){!i.body&&i.id?this.checkIdentifier(i.id,1024):super.registerFunctionStatementId(i)}tsCheckForInvalidTypeCasts(i){i.forEach(r=>{r?.type==="TSTypeCastExpression"&&this.raise(re.UnexpectedTypeAnnotation,r.typeAnnotation)})}toReferencedList(i,r){return this.tsCheckForInvalidTypeCasts(i),i}parseArrayLike(i,r,s,n){let a=super.parseArrayLike(i,r,s,n);return a.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(a.elements),a}parseSubscript(i,r,s,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let l=this.startNodeAt(r);return l.expression=i,this.finishNode(l,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,i;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let l,c=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(i)){let d=this.tsTryParseGenericAsyncArrowFunction(r);if(d)return d}let o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(a&&!this.match(10)){l=this.state.curPosition();return}if(Fa(this.state.type)){let d=super.parseTaggedTemplateExpression(i,r,n);return d.typeParameters=o,d}if(!s&&this.eat(10)){let d=this.startNodeAt(r);return d.callee=i,d.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(d.arguments),d.typeParameters=o,n.optionalChainMember&&(d.optional=a),this.finishCallExpression(d,n.optionalChainMember)}let u=this.state.type;if(u===48||u===52||u!==10&&on(u)&&!this.hasPrecedingLineBreak())return;let f=this.startNodeAt(r);return f.expression=i,f.typeParameters=o,this.finishNode(f,"TSInstantiationExpression")});if(l&&this.unexpected(l,10),c)return c.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(re.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(c.expression=super.stopParseSubscript(i,n))),c}return super.parseSubscript(i,r,s,n)}parseNewCallee(i){var r;super.parseNewCallee(i);let{callee:s}=i;s.type==="TSInstantiationExpression"&&!((r=s.extra)!=null&&r.parenthesized)&&(i.typeParameters=s.typeParameters,i.callee=s.expression)}parseExprOp(i,r,s){let n;if(Da(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){let a=this.startNodeAt(r);return a.expression=i,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(w.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,r,s)}return super.parseExprOp(i,r,s)}checkReservedWord(i,r,s,n){this.state.isAmbientContext||super.checkReservedWord(i,r,s,n)}checkImportReflection(i){super.checkImportReflection(i),i.module&&i.importKind!=="value"&&this.raise(re.ImportReflectionHasImportType,i.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(i){if(super.isPotentialImportPhase(i))return!0;if(this.isContextual(130)){let r=this.lookaheadCharCode();return i?r===123||r===42:r!==61}return!i&&this.isContextual(87)}applyImportPhase(i,r,s,n){super.applyImportPhase(i,r,s,n),r?i.exportKind=s==="type"?"type":"value":i.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(i){if(this.match(134))return i.importKind="value",super.parseImport(i);let r;if($e(this.state.type)&&this.lookaheadCharCode()===61)return i.importKind="value",this.tsParseImportEqualsDeclaration(i);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(i,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(i,s);r=super.parseImportSpecifiersAndAfter(i,s)}else r=super.parseImport(i);return r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(re.TypeImportCannotSpecifyDefaultAndNamed,r),r}parseExport(i,r){if(this.match(83)){let s=i;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(s,!1):s.importKind="value",this.tsParseImportEqualsDeclaration(s,n,!0)}else if(this.eat(29)){let s=i;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=i;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(i,r)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let i=this.startNode();return this.next(),i.abstract=!0,this.parseClass(i,!0,!0)}if(this.match(129)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseExportDefaultExpression()}parseVarStatement(i,r,s=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(i,r,s||n);if(!n)return a;if(!i.declare&&(r==="using"||r==="await using"))return this.raiseOverwrite(re.UsingDeclarationInAmbientContext,i,r),a;for(let{id:l,init:c}of a.declarations)c&&(r==="var"||r==="let"||l.typeAnnotation?this.raise(re.InitializerNotAllowedInAmbientContext,c):FP(c,this.hasPlugin("estree"))||this.raise(re.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,c));return a}parseStatementContent(i,r){if(this.match(75)&&this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s}return super.parseStatementContent(i,r)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(i,r){return r.some(s=>zd(s)?i.accessibility===s:!!i[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(i,r,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:re.InvalidModifierOnTypeParameterPositions},r);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(r,n)&&this.raise(re.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(i,r)):this.parseClassMemberWithIsStatic(i,r,s,!!r.static)};r.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(i,r,s,n){let a=this.tsTryParseIndexSignature(r);if(a){i.body.push(a),r.abstract&&this.raise(re.IndexSignatureHasAbstract,r),r.accessibility&&this.raise(re.IndexSignatureHasAccessibility,r,{modifier:r.accessibility}),r.declare&&this.raise(re.IndexSignatureHasDeclare,r),r.override&&this.raise(re.IndexSignatureHasOverride,r);return}!this.state.inAbstractClass&&r.abstract&&this.raise(re.NonAbstractClassHasAbstractMethod,r),r.override&&(s.hadSuperClass||this.raise(re.OverrideNotInSubClass,r)),super.parseClassMemberWithIsStatic(i,r,s,n)}parsePostMemberNameModifiers(i){this.eat(17)&&(i.optional=!0),i.readonly&&this.match(10)&&this.raise(re.ClassMethodHasReadonly,i),i.declare&&this.match(10)&&this.raise(re.ClassMethodHasDeclare,i)}parseExpressionStatement(i,r,s){return(r.type==="Identifier"?this.tsParseExpressionStatement(i,r,s):void 0)||super.parseExpressionStatement(i,r,s)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(i,r,s){if(!this.match(17))return i;if(this.state.maybeInArrowParameters){let n=this.lookaheadCharCode();if(n===44||n===61||n===58||n===41)return this.setOptionalParametersError(s),i}return super.parseConditional(i,r,s)}parseParenItem(i,r){let s=super.parseParenItem(i,r);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(i)),this.match(14)){let n=this.startNodeAt(r);return n.expression=i,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return i}parseExportDeclaration(i){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(i));let r=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(re.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=$e(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(i);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(i.exportKind="type"),s&&a.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(a,r),a.declare=!0),a):null}parseClassId(i,r,s,n){if((!r||s)&&this.isContextual(113))return;super.parseClassId(i,r,s,i.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(i.typeParameters=a)}parseClassPropertyAnnotation(i){i.optional||(this.eat(35)?i.definite=!0:this.eat(17)&&(i.optional=!0));let r=this.tsTryParseTypeAnnotation();r&&(i.typeAnnotation=r)}parseClassProperty(i){if(this.parseClassPropertyAnnotation(i),this.state.isAmbientContext&&!(i.readonly&&!i.typeAnnotation)&&this.match(29)&&this.raise(re.DeclareClassFieldHasInitializer,this.state.startLoc),i.abstract&&this.match(29)){let{key:r}=i;this.raise(re.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:r.type==="Identifier"&&!i.computed?r.name:`[${this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end))}]`})}return super.parseClassProperty(i)}parseClassPrivateProperty(i){return i.abstract&&this.raise(re.PrivateElementHasAbstract,i),i.accessibility&&this.raise(re.PrivateElementHasAccessibility,i,{modifier:i.accessibility}),this.parseClassPropertyAnnotation(i),super.parseClassPrivateProperty(i)}parseClassAccessorProperty(i){return this.parseClassPropertyAnnotation(i),i.optional&&this.raise(re.AccessorCannotBeOptional,i),super.parseClassAccessorProperty(i)}pushClassMethod(i,r,s,n,a,l){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);c&&a&&this.raise(re.ConstructorHasTypeParameters,c);let{declare:o=!1,kind:u}=r;o&&(u==="get"||u==="set")&&this.raise(re.DeclareAccessor,r,{kind:u}),c&&(r.typeParameters=c),super.pushClassMethod(i,r,s,n,a,l)}pushClassPrivateMethod(i,r,s,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(r.typeParameters=a),super.pushClassPrivateMethod(i,r,s,n)}declareClassPrivateMethodInScope(i,r){i.type!=="TSDeclareMethod"&&(i.type==="MethodDefinition"&&i.value.body==null||super.declareClassPrivateMethodInScope(i,r))}parseClassSuper(i){super.parseClassSuper(i),i.superClass&&(this.match(47)||this.match(51))&&(i.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(i.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(i,r,s,n,a,l,c){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(i.typeParameters=o),super.parseObjPropValue(i,r,s,n,a,l,c)}parseFunctionParams(i,r){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(i.typeParameters=s),super.parseFunctionParams(i,r)}parseVarId(i,r){super.parseVarId(i,r),i.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(i.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(i.id.typeAnnotation=s,this.resetEndLocation(i.id))}parseAsyncArrowFromCallExpression(i,r){return this.match(14)&&(i.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(i,r)}parseMaybeAssign(i,r){var s,n,a,l,c;let o,u,f;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(o=this.state.clone(),u=this.tryParse(()=>super.parseMaybeAssign(i,r),o),!u.error)return u.node;let{context:S}=this.state,P=S[S.length-1];(P===Be.j_oTag||P===Be.j_expr)&&S.pop()}if(!((s=u)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(i,r);(!o||o===this.state)&&(o=this.state.clone());let d,m=this.tryParse(S=>{var P,A;d=this.tsParseTypeParameters(this.tsParseConstModifier);let C=super.parseMaybeAssign(i,r);return(C.type!=="ArrowFunctionExpression"||(P=C.extra)!=null&&P.parenthesized)&&S(),((A=d)==null?void 0:A.params.length)!==0&&this.resetStartLocationFromNode(C,d),C.typeParameters=d,C},o);if(!m.error&&!m.aborted)return d&&this.reportReservedArrowTypeParam(d),m.node;if(!u&&(Yd(!this.hasPlugin("jsx")),f=this.tryParse(()=>super.parseMaybeAssign(i,r),o),!f.error))return f.node;if((n=u)!=null&&n.node)return this.state=u.failState,u.node;if(m.node)return this.state=m.failState,d&&this.reportReservedArrowTypeParam(d),m.node;if((a=f)!=null&&a.node)return this.state=f.failState,f.node;throw((l=u)==null?void 0:l.error)||m.error||((c=f)==null?void 0:c.error)}reportReservedArrowTypeParam(i){var r;i.params.length===1&&!i.params[0].constraint&&!((r=i.extra)!=null&&r.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(re.ReservedArrowTypeParam,i)}parseMaybeUnary(i,r){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(i,r)}parseArrow(i){if(this.match(14)){let r=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),n});if(r.aborted)return;r.thrown||(r.error&&(this.state=r.failState),i.returnType=r.node)}return super.parseArrow(i)}parseFunctionParamType(i){this.eat(17)&&(i.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(i.typeAnnotation=r),this.resetEndLocation(i),i}isAssignable(i,r){switch(i.type){case"TSTypeCastExpression":return this.isAssignable(i.expression,r);case"TSParameterProperty":return!0;default:return super.isAssignable(i,r)}}toAssignable(i,r=!1){switch(i.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(i,r);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":r?this.expressionScope.recordArrowParameterBindingError(re.UnexpectedTypeCastInParameter,i):this.raise(re.UnexpectedTypeCastInParameter,i),this.toAssignable(i.expression,r);break;case"AssignmentExpression":!r&&i.left.type==="TSTypeCastExpression"&&(i.left=this.typeCastToParameter(i.left));default:super.toAssignable(i,r)}}toAssignableParenthesizedExpression(i,r){switch(i.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(i.expression,r);break;default:super.toAssignable(i,r)}}checkToRestConversion(i,r){switch(i.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(i.expression,!1);break;default:super.checkToRestConversion(i,r)}}isValidLVal(i,r,s){switch(i){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(s!==64||!r)&&["expression",!0];default:return super.isValidLVal(i,r,s)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(i,r){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(i,r);return n.typeParameters=s,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(i,r)}checkCommaAfterRest(i){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===i?(this.next(),!1):super.checkCommaAfterRest(i)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(i,r){let s=super.parseMaybeDefault(i,r);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(re.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(i){if(this.state.inType){if(i===62){this.finishOp(48,1);return}if(i===60){this.finishOp(47,1);return}}super.getTokenFromCode(i)}reScan_lt_gt(){let{type:i}=this.state;i===47?(this.state.pos-=1,this.readToken_lt()):i===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:i}=this.state;return i===51?(this.state.pos-=2,this.finishOp(47,1),47):i}toAssignableListItem(i,r,s){let n=i[r];n.type==="TSTypeCastExpression"&&(i[r]=this.typeCastToParameter(n)),super.toAssignableListItem(i,r,s)}typeCastToParameter(i){return i.expression.typeAnnotation=i.typeAnnotation,this.resetEndLocation(i.expression,i.typeAnnotation.loc.end),i.expression}shouldParseArrow(i){return this.match(14)?i.every(r=>this.isAssignable(r,!0)):super.shouldParseArrow(i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(i){if(this.match(47)||this.match(51)){let r=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());r&&(i.typeParameters=r)}return super.jsxParseOpeningElementAfterName(i)}getGetterSetterExpectedParamCount(i){let r=super.getGetterSetterExpectedParamCount(i),n=this.getObjectOrClassMethodParams(i)[0];return n&&this.isThisParam(n)?r+1:r}parseCatchClauseParam(){let i=super.parseCatchClauseParam(),r=this.tsTryParseTypeAnnotation();return r&&(i.typeAnnotation=r,this.resetEndLocation(i)),i}tsInAmbientContext(i){let{isAmbientContext:r,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return i()}finally{this.state.isAmbientContext=r,this.state.strict=s}}parseClass(i,r,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!i.abstract;try{return super.parseClass(i,r,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(i,r){if(this.match(80))return i.abstract=!0,this.maybeTakeDecorators(r,this.parseClass(i,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return i.abstract=!0,this.raise(re.NonClassMethodPropertyHasAbstractModifier,i),this.tsParseInterfaceDeclaration(i)}else this.unexpected(null,80)}parseMethod(i,r,s,n,a,l,c){let o=super.parseMethod(i,r,s,n,a,l,c);if((o.abstract||o.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?o.value:o).body){let{key:d}=o;this.raise(re.AbstractMethodHasImplementation,o,{methodName:d.type==="Identifier"&&!o.computed?d.name:`[${this.input.slice(this.offsetToSourcePos(d.start),this.offsetToSourcePos(d.end))}]`})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(i,r,s,n){return!r&&n?(this.parseTypeOnlyImportExportSpecifier(i,!1,s),this.finishNode(i,"ExportSpecifier")):(i.exportKind="value",super.parseExportSpecifier(i,r,s,n))}parseImportSpecifier(i,r,s,n,a){return!r&&n?(this.parseTypeOnlyImportExportSpecifier(i,!0,s),this.finishNode(i,"ImportSpecifier")):(i.importKind="value",super.parseImportSpecifier(i,r,s,n,s?4098:4096))}parseTypeOnlyImportExportSpecifier(i,r,s){let n=r?"imported":"local",a=r?"local":"exported",l=i[n],c,o=!1,u=!0,f=l.loc.start;if(this.isContextual(93)){let m=this.parseIdentifier();if(this.isContextual(93)){let S=this.parseIdentifier();mi(this.state.type)?(o=!0,l=m,c=r?this.parseIdentifier():this.parseModuleExportName(),u=!1):(c=S,u=!1)}else mi(this.state.type)?(u=!1,c=r?this.parseIdentifier():this.parseModuleExportName()):(o=!0,l=m)}else mi(this.state.type)&&(o=!0,r?(l=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(l.name,l.loc.start,!0,!0)):l=this.parseModuleExportName());o&&s&&this.raise(r?re.TypeModifierIsUsedInTypeImports:re.TypeModifierIsUsedInTypeExports,f),i[n]=l,i[a]=c;let d=r?"importKind":"exportKind";i[d]=o?"type":"value",u&&this.eatContextual(93)&&(i[a]=r?this.parseIdentifier():this.parseModuleExportName()),i[a]||(i[a]=this.cloneIdentifier(i[n])),r&&this.checkIdentifier(i[a],o?4098:4096)}fillOptionalPropertiesForTSESLint(i){var r,s,n,a,l,c,o,u,f,d,m,S,P,A,C,k,D,L,B,U,oe,me,ee,Pe,Ct,ze,Ot,pe,Je,Nt,Y,z,F,G,fe,ve,Ue,Le,Xe,Me,Re,He,tt,Ae,it,dt;switch(i.type){case"ExpressionStatement":(r=i.directive)!=null||(i.directive=void 0);return;case"RestElement":i.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(s=i.decorators)!=null||(i.decorators=[]),(n=i.optional)!=null||(i.optional=!1),(a=i.typeAnnotation)!=null||(i.typeAnnotation=void 0);return;case"TSParameterProperty":(l=i.accessibility)!=null||(i.accessibility=void 0),(c=i.decorators)!=null||(i.decorators=[]),(o=i.override)!=null||(i.override=!1),(u=i.readonly)!=null||(i.readonly=!1),(f=i.static)!=null||(i.static=!1);return;case"TSEmptyBodyFunctionExpression":i.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(d=i.declare)!=null||(i.declare=!1),(m=i.returnType)!=null||(i.returnType=void 0),(S=i.typeParameters)!=null||(i.typeParameters=void 0);return;case"Property":(P=i.optional)!=null||(i.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(A=i.optional)!=null||(i.optional=!1);case"TSIndexSignature":(C=i.accessibility)!=null||(i.accessibility=void 0),(k=i.readonly)!=null||(i.readonly=!1),(D=i.static)!=null||(i.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(L=i.declare)!=null||(i.declare=!1),(B=i.definite)!=null||(i.definite=!1),(U=i.readonly)!=null||(i.readonly=!1),(oe=i.typeAnnotation)!=null||(i.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(me=i.accessibility)!=null||(i.accessibility=void 0),(ee=i.decorators)!=null||(i.decorators=[]),(Pe=i.override)!=null||(i.override=!1),(Ct=i.optional)!=null||(i.optional=!1);return;case"ClassExpression":(ze=i.id)!=null||(i.id=null);case"ClassDeclaration":(Ot=i.abstract)!=null||(i.abstract=!1),(pe=i.declare)!=null||(i.declare=!1),(Je=i.decorators)!=null||(i.decorators=[]),(Nt=i.implements)!=null||(i.implements=[]),(Y=i.superTypeArguments)!=null||(i.superTypeArguments=void 0),(z=i.typeParameters)!=null||(i.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(F=i.declare)!=null||(i.declare=!1);return;case"VariableDeclarator":(G=i.definite)!=null||(i.definite=!1);return;case"TSEnumDeclaration":(fe=i.const)!=null||(i.const=!1),(ve=i.declare)!=null||(i.declare=!1);return;case"TSEnumMember":(Ue=i.computed)!=null||(i.computed=!1);return;case"TSImportType":(Le=i.qualifier)!=null||(i.qualifier=null),(Xe=i.options)!=null||(i.options=null);return;case"TSInterfaceDeclaration":(Me=i.declare)!=null||(i.declare=!1),(Re=i.extends)!=null||(i.extends=[]);return;case"TSModuleDeclaration":(He=i.declare)!=null||(i.declare=!1),(tt=i.global)!=null||(i.global=i.kind==="global");return;case"TSTypeParameter":(Ae=i.const)!=null||(i.const=!1),(it=i.in)!=null||(i.in=!1),(dt=i.out)!=null||(i.out=!1);return}}};function MP(t){if(t.type!=="MemberExpression")return!1;let{computed:e,property:i}=t;return e&&i.type!=="StringLiteral"&&(i.type!=="TemplateLiteral"||i.expressions.length>0)?!1:pm(t.object)}function FP(t,e){var i;let{type:r}=t;if((i=t.extra)!=null&&i.parenthesized)return!1;if(e){if(r==="Literal"){let{value:s}=t;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(um(t,e)||BP(t,e)||r==="TemplateLiteral"&&t.expressions.length===0||MP(t))}function um(t,e){return e?t.type==="Literal"&&(typeof t.value=="number"||"bigint"in t):t.type==="NumericLiteral"||t.type==="BigIntLiteral"}function BP(t,e){if(t.type==="UnaryExpression"){let{operator:i,argument:r}=t;if(i==="-"&&um(r,e))return!0}return!1}function pm(t){return t.type==="Identifier"?!0:t.type!=="MemberExpression"||t.computed?!1:pm(t.object)}var Jd=Ci`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),jP=t=>class extends t{parsePlaceholder(i){if(this.match(133)){let r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,i)}}finishPlaceholder(i,r){let s=i;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=r,s}getTokenFromCode(i){i===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(i)}parseExprAtom(i){return this.parsePlaceholder("Expression")||super.parseExprAtom(i)}parseIdentifier(i){return this.parsePlaceholder("Identifier")||super.parseIdentifier(i)}checkReservedWord(i,r,s,n){i!==void 0&&super.checkReservedWord(i,r,s,n)}cloneIdentifier(i){let r=super.cloneIdentifier(i);return r.type==="Placeholder"&&(r.expectedNode=i.expectedNode),r}cloneStringLiteral(i){return i.type==="Placeholder"?this.cloneIdentifier(i):super.cloneStringLiteral(i)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(i,r,s){return i==="Placeholder"||super.isValidLVal(i,r,s)}toAssignable(i,r){i&&i.type==="Placeholder"&&i.expectedNode==="Expression"?i.expectedNode="Pattern":super.toAssignable(i,r)}chStartsBindingIdentifier(i,r){if(super.chStartsBindingIdentifier(i,r))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(i,r){i.label&&i.label.type==="Placeholder"||super.verifyBreakContinue(i,r)}parseExpressionStatement(i,r){var s;if(r.type!=="Placeholder"||(s=r.extra)!=null&&s.parenthesized)return super.parseExpressionStatement(i,r);if(this.match(14)){let a=i;return a.label=this.finishPlaceholder(r,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let n=i;return n.name=r.name,this.finishPlaceholder(n,"Statement")}parseBlock(i,r,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(i,r,s)}parseFunctionId(i){return this.parsePlaceholder("Identifier")||super.parseFunctionId(i)}parseClass(i,r,s){let n=r?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,l=this.parsePlaceholder("Identifier");if(l)if(this.match(81)||this.match(133)||this.match(5))i.id=l;else{if(s||!r)return i.id=null,i.body=this.finishPlaceholder(l,"ClassBody"),this.finishNode(i,n);throw this.raise(Jd.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(i,r,s);return super.parseClassSuper(i),i.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!i.superClass,a),this.finishNode(i,n)}parseExport(i,r){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(i,r);let n=i;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=s,n.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(n,r)}isExportDefaultSpecifier(){if(this.match(65)){let i=this.nextTokenStart();if(this.isUnparsedContextual(i,"from")&&this.input.startsWith(nr(133),this.nextTokenStartSince(i+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(i,r){var s;return(s=i.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(i,r)}checkExport(i){let{specifiers:r}=i;r!=null&&r.length&&(i.specifiers=r.filter(s=>s.exported.type==="Placeholder")),super.checkExport(i),i.specifiers=r}parseImport(i){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(i);if(i.specifiers=[],!this.isContextual(98)&&!this.match(12))return i.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(i,"ImportDeclaration");let s=this.startNodeAtNode(r);return s.local=r,i.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(i)||this.parseNamedImportSpecifiers(i)),this.expectContextual(98),i.source=this.parseImportSource(),this.semicolon(),this.finishNode(i,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Jd.UnexpectedSpace,this.state.lastTokEndLoc)}},RP=t=>class extends t{parseV8Intrinsic(){if(this.match(54)){let i=this.state.startLoc,r=this.startNode();if(this.next(),$e(this.state.type)){let s=this.parseIdentifierName(),n=this.createIdentifier(r,s);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(i)}}parseExprAtom(i){return this.parseV8Intrinsic()||super.parseExprAtom(i)}},Xd=["minimal","fsharp","hack","smart"],Hd=["^^","@@","^","%","#"];function $P(t){if(t.has("decorators")){if(t.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let r=t.get("decorators").decoratorsBeforeExport;if(r!=null&&typeof r!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let s=t.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(t.has("flow")&&t.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(t.has("placeholders")&&t.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(t.has("pipelineOperator")){var e;let r=t.get("pipelineOperator").proposal;if(!Xd.includes(r)){let s=Xd.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}if(r==="hack"){if(t.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(t.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=t.get("pipelineOperator").topicToken;if(!Hd.includes(s)){let n=Hd.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}{var i;if(s==="#"&&((i=t.get("recordAndTuple"))==null?void 0:i.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}}else if(r==="smart"&&((e=t.get("recordAndTuple"))==null?void 0:e.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}if(t.has("moduleAttributes")){if(t.has("deprecatedImportAssert")||t.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(t.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(t.has("importAssertions")&&t.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!t.has("deprecatedImportAssert")&&t.has("importAttributes")&&t.get("importAttributes").deprecatedAssertSyntax&&t.set("deprecatedImportAssert",{}),t.has("recordAndTuple")){let r=t.get("recordAndTuple").syntaxType;if(r!=null){let s=["hash","bar"];if(!s.includes(r))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+s.map(n=>`'${n}'`).join(", "))}}if(t.has("asyncDoExpressions")&&!t.has("doExpressions")){let r=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw r.missingPlugins="doExpressions",r}if(t.has("optionalChainingAssign")&&t.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(t.has("discardBinding")&&t.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var fm={estree:VE,jsx:EP,flow:gP,typescript:LP,v8intrinsic:RP,placeholders:jP},qP=Object.keys(fm),fc=class extends pc{checkProto(e,i,r,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return r;let n=e.key;return(n.type==="Identifier"?n.name:n.value)==="__proto__"?i?(this.raise(w.RecordNoProto,n),!0):(r&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(w.DuplicateProto,n)),!0):r}shouldExitDescending(e,i){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===i}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(w.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(w.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,i){return e?this.disallowInAnd(()=>this.parseExpressionBase(i)):this.allowInAnd(()=>this.parseExpressionBase(i))}parseExpressionBase(e){let i=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){let s=this.startNodeAt(i);for(s.expressions=[r];this.eat(12);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,i){return this.disallowInAnd(()=>this.parseMaybeAssign(e,i))}parseMaybeAssignAllowIn(e,i){return this.allowInAnd(()=>this.parseMaybeAssign(e,i))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,i){let r=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let c=this.parseYield(r);return i&&(c=i.call(this,c,r)),c}let n;e?n=!1:(e=new ls,n=!0);let{type:a}=this.state;(a===10||$e(a))&&(this.state.potentialArrowAt=this.state.start);let l=this.parseMaybeConditional(e);if(i&&(l=i.call(this,l,r)),XE(this.state.type)){let c=this.startNodeAt(r),o=this.state.value;if(c.operator=o,this.match(29)){this.toAssignable(l,!0),c.left=l;let u=r.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=u&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=u&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=u&&(e.voidPatternLoc=null)}else c.left=l;return this.next(),c.right=this.parseMaybeAssign(),this.checkLVal(l,this.finishNode(c,"AssignmentExpression")),c}else n&&this.checkExpressionErrors(e,!0);if(s){let{type:c}=this.state;if((this.hasPlugin("v8intrinsic")?on(c):on(c)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(w.YieldNotInGeneratorFunction,r),this.parseYield(r)}return l}parseMaybeConditional(e){let i=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,r)?s:this.parseConditional(s,i,e)}parseConditional(e,i,r){if(this.eat(17)){let s=this.startNodeAt(i);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let i=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s,r)?s:this.parseExprOp(s,i,-1)}parseExprOp(e,i,r){if(this.isPrivateName(e)){let n=this.getPrivateNameSV(e);(r>=Da(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(w.PrivateInExpectedIn,e,{identifierName:n}),this.classScope.usePrivateName(n,e.loc.start)}let s=this.state.type;if(GE(s)&&(this.prodParam.hasIn||!this.match(58))){let n=Da(s);if(n>r){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,i)}let a=this.startNodeAt(i);a.left=e,a.operator=this.state.value;let l=s===41||s===42,c=s===40;if(c&&(n=Da(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(w.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(s,n);let o=this.finishNode(a,l||c?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(c&&(u===41||u===42)||l&&u===40)throw this.raise(w.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(o,i,r)}}return e}parseExprOpRightExpr(e,i){let r=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(i))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(w.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,i),r)});default:return this.parseExprOpBaseRightExpr(e,i)}}parseExprOpBaseRightExpr(e,i){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,iP(e)?i-1:i)}parseHackPipeBody(){var e;let{startLoc:i}=this.state,r=this.parseMaybeAssign();return BE.has(r.type)&&!((e=r.extra)!=null&&e.parenthesized)&&this.raise(w.PipeUnparenthesizedBody,i,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipeTopicUnused,i),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(w.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,i){let r=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let c=this.parseAwait(r);return i||this.checkExponentialAfterUnary(c),c}let n=this.match(34),a=this.startNode();if(ZE(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let c=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&c){let o=a.argument;o.type==="Identifier"?this.raise(w.StrictDelete,a):this.hasPropertyAsPrivateName(o)&&this.raise(w.DeletePrivateField,a)}if(!n)return i||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let l=this.parseUpdate(a,n,e);if(s){let{type:c}=this.state;if((this.hasPlugin("v8intrinsic")?on(c):on(c)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(w.AwaitNotInAsyncContext,r),this.parseAwait(r)}return l}parseUpdate(e,i,r){if(i){let a=e;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),e}let s=this.state.startLoc,n=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return n;for(;QE(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=!1,a.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(a,"UpdateExpression"))}return n}parseExprSubscripts(e){let i=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,r)?s:this.parseSubscripts(s,i)}parseSubscripts(e,i,r){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,i,r,s),s.maybeAsyncArrow=!1;while(!s.stop);return e}parseSubscript(e,i,r,s){let{type:n}=this.state;if(!r&&n===15)return this.parseBind(e,i,r,s);if(Fa(n))return this.parseTaggedTemplateExpression(e,i,s);let a=!1;if(n===18){if(r&&(this.raise(w.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,s);s.optionalChainMember=a=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,i,s,a);{let l=this.eat(0);return l||a||this.eat(16)?this.parseMember(e,i,s,l,a):this.stopParseSubscript(e,s)}}stopParseSubscript(e,i){return i.stop=!0,e}parseMember(e,i,r,s,n){let a=this.startNodeAt(i);return a.object=e,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(w.SuperPrivateField,i),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),r.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(e,i,r,s){let n=this.startNodeAt(i);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),i,r)}parseCoverCallAndAsyncArrowHead(e,i,r,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let l=this.startNodeAt(i);l.callee=e;let{maybeAsyncArrow:c,optionalChainMember:o}=r;c&&(this.expressionScope.enter(_P()),a=new ls),o&&(l.optional=s),s?l.arguments=this.parseCallExpressionArguments():l.arguments=this.parseCallExpressionArguments(e.type!=="Super",l,a);let u=this.finishCallExpression(l,o);return c&&this.shouldParseAsyncArrow()&&!s?(r.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(i),u)):(c&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(u)),this.state.maybeInArrowParameters=n,u}toReferencedArguments(e,i){this.toReferencedListDeep(e.arguments,i)}parseTaggedTemplateExpression(e,i,r){let s=this.startNodeAt(i);return s.tag=e,s.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(w.OptionalChainingNoTemplate,i),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,i){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(w.ImportCallArity,e);else for(let r of e.arguments)r.type==="SpreadElement"&&this.raise(w.ImportCallSpreadArgument,r);return this.finishNode(e,i?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,i,r){let s=[],n=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}s.push(this.parseExprListItem(11,!1,r,e))}return this.state.inFSharpPipelineDirectBody=a,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,i){var r;return this.resetPreviousNodeTrailingComments(i),this.expect(19),this.parseArrowExpression(e,i.arguments,!0,(r=i.extra)==null?void 0:r.trailingCommaLoc),i.innerComments&&fn(e,i.innerComments),i.callee.trailingComments&&fn(e,i.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let i,r=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return i=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(i):this.match(10)?this.optionFlags&512?this.parseImportCall(i):this.finishNode(i,"Import"):(this.raise(w.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(i,"Import"));case 78:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 0:return this.parseArrayLike(3,!0,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{i=this.startNode(),this.next(),i.object=null;let n=i.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(i,"BindExpression");throw this.raise(w.UnsupportedBind,n)}case 139:return this.raise(w.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.parseTopicReference(n);this.unexpected();break}case 47:{let n=this.input.codePointAt(this.nextTokenStart());Ki(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:{if(s===137)return this.parseDecimalLiteral(this.state.value);if(s===2||s===1)return this.parseArrayLike(this.state.type===2?4:3,!1,!0);if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0)}if($e(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let n=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,l=this.parseIdentifier();if(!a&&l.name==="async"&&!this.canInsertSemicolon()){let{type:c}=this.state;if(c===68)return this.resetPreviousNodeTrailingComments(l),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(l));if($e(c))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(l)):l;if(c===90)return this.resetPreviousNodeTrailingComments(l),this.parseDo(this.startNodeAtNode(l),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(l),[l],!1)):l}else this.unexpected()}}parseTopicReferenceThenEqualsSign(e,i){let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=i,this.state.pos--,this.state.end--,this.state.endLoc=Ft(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}parseTopicReference(e){let i=this.startNode(),r=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(i,r,e,s)}finishTopicReference(e,i,r,s){if(this.testTopicReferenceConfiguration(r,i,s))return r==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(w.PipeTopicUnbound,i),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(w.PrimaryTopicNotAllowed,i),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(w.PipeTopicUnconfiguredToken,i,{token:nr(s)})}testTopicReferenceConfiguration(e,i,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:nr(r)}]);case"smart":return r===27;default:throw this.raise(w.PipeTopicRequiresHackPipes,i)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(La(!0,this.prodParam.hasYield));let i=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(w.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,i,!0)}parseDo(e,i){this.expectPlugin("doExpressions"),i&&this.expectPlugin("asyncDoExpressions"),e.async=i,this.next();let r=this.state.labels;return this.state.labels=[],i?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16)?this.raise(w.SuperNotAllowed,e):!this.scope.allowSuper&&!(this.optionFlags&16)&&this.raise(w.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(w.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),i=this.startNodeAt(Ft(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(i,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let i=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,i,"sent")}return this.parseFunction(e)}parseMetaProperty(e,i,r){e.meta=i;let s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||s)&&this.raise(w.UnsupportedMetaProperty,e.property,{target:i.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let i=this.isContextual(105);return this.expectPlugin(i?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=i?"source":"defer",this.parseImportCall(e)}else{let i=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(w.ImportMetaOutsideModule,i),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,i,"meta")}}parseLiteralAtNode(e,i,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.value=e,this.next(),this.finishNode(r,i)}parseLiteral(e,i){let r=this.startNode();return this.parseLiteralAtNode(e,i,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let i=this.startNode();return this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.pattern=e.pattern,i.flags=e.flags,this.next(),this.finishNode(i,"RegExpLiteral")}parseBooleanLiteral(e){let i=this.startNode();return i.value=e,this.next(),this.finishNode(i,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let i=this.state.startLoc,r;this.next(),this.expressionScope.enter(kP());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,l=[],c=new ls,o=!0,u,f;for(;!this.match(11);){if(o)o=!1;else if(this.expect(12,c.optionalParametersLoc===null?null:c.optionalParametersLoc),this.match(11)){f=this.state.startLoc;break}if(this.match(21)){let S=this.state.startLoc;if(u=this.state.startLoc,l.push(this.parseParenItem(this.parseRestBinding(),S)),!this.checkCommaAfterRest(41))break}else l.push(this.parseMaybeAssignAllowInOrVoidPattern(11,c,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let m=this.startNodeAt(i);return e&&this.shouldParseArrow(l)&&(m=this.parseArrow(m))?(this.checkDestructuringPrivate(c),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(m,l,!1),m):(this.expressionScope.exit(),l.length||this.unexpected(this.state.lastTokStartLoc),f&&this.unexpected(f),u&&this.unexpected(u),this.checkExpressionErrors(c,!0),this.toReferencedListDeep(l,!0),l.length>1?(r=this.startNodeAt(a),r.expressions=l,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,d)):r=l[0],this.wrapParenthesis(i,r))}wrapParenthesis(e,i){if(!(this.optionFlags&1024))return this.addExtra(i,"parenthesized",!0),this.addExtra(i,"parenStart",e.index),this.takeSurroundingComments(i,e.index,this.state.lastTokEndLoc.index),i;let r=this.startNodeAt(e);return r.expression=i,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,i){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let i=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,i,"target");return this.scope.allowNewTarget||this.raise(w.UnexpectedNewTarget,r),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let i=this.parseExprList(11);this.toReferencedList(i),e.arguments=i}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let i=this.match(83),r=this.parseNoCallExpr();e.callee=r,i&&(r.type==="Import"||r.type==="ImportExpression")&&this.raise(w.ImportCallNotNewExpression,r)}parseTemplateElement(e){let{start:i,startLoc:r,end:s,value:n}=this.state,a=i+1,l=this.startNodeAt(Ft(r,1));n===null&&(e||this.raise(w.InvalidEscapeSequenceTemplate,Ft(this.state.firstInvalidTemplateEscapePos,1)));let c=this.match(24),o=c?-1:-2,u=s+o;l.value={raw:this.input.slice(a,u).replace(/\r\n?/g,`
9
+ `);case 114:return l("\r");case 120:{let o;return{code:o,pos:e}=rc(t,e,i,r,2,!1,a,n),l(o===null?null:String.fromCharCode(o))}case 117:{let o;return{code:o,pos:e}=om(t,e,i,r,a,n),l(o===null?null:String.fromCodePoint(o))}case 116:return l(" ");case 98:return l("\b");case 118:return l("\v");case 102:return l("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:i=e,++r;case 8232:case 8233:return l("");case 56:case 57:if(s)return l(null);n.strictNumericEscape(e-1,i,r);default:if(c>=48&&c<=55){let o=e-1,f=/^[0-7]+/.exec(t.slice(o,e+2))[0],d=parseInt(f,8);d>255&&(f=f.slice(0,-1),d=parseInt(f,8)),e+=f.length-1;let m=t.charCodeAt(e);if(f!=="0"||m===56||m===57){if(s)return l(null);n.strictNumericEscape(o,i,r)}return l(String.fromCharCode(d))}return l(String.fromCharCode(c))}}function rc(t,e,i,r,s,n,a,l){let c=e,o;return{n:o,pos:e}=am(t,e,i,r,16,s,n,!1,l,!a),o===null&&(a?l.invalidEscapeSequence(c,i,r):e=c-1),{code:o,pos:e}}function am(t,e,i,r,s,n,a,l,c,o){let u=e,f=s===16?Vd.hex:Vd.decBinOct,d=s===16?Oa.hex:s===10?Oa.dec:s===8?Oa.oct:Oa.bin,m=!1,S=0;for(let P=0,A=n??1/0;P<A;++P){let C=t.charCodeAt(e),k;if(C===95&&l!=="bail"){let D=t.charCodeAt(e-1),L=t.charCodeAt(e+1);if(l){if(Number.isNaN(L)||!d(L)||f.has(D)||f.has(L)){if(o)return{n:null,pos:e};c.unexpectedNumericSeparator(e,i,r)}}else{if(o)return{n:null,pos:e};c.numericSeparatorInEscapeSequence(e,i,r)}++e;continue}if(C>=97?k=C-97+10:C>=65?k=C-65+10:vP(C)?k=C-48:k=1/0,k>=s){if(k<=9&&o)return{n:null,pos:e};if(k<=9&&c.invalidDigit(e,i,r,s))k=0;else if(a)k=0,m=!0;else break}++e,S=S*s+k}return e===u||n!=null&&e-u!==n||m?{n:null,pos:e}:{n:S,pos:e}}function om(t,e,i,r,s,n){let a=t.charCodeAt(e),l;if(a===123){if(++e,{code:l,pos:e}=rc(t,e,i,r,t.indexOf("}",e)-e,!0,s,n),++e,l!==null&&l>1114111)if(s)n.invalidCodePoint(e,i,r);else return{code:null,pos:e}}else({code:l,pos:e}=rc(t,e,i,r,4,!1,s,n));return{code:l,pos:e}}function an(t,e,i){return new Ii(i,t-e,t)}var CP=new Set([103,109,115,105,121,117,100,118]),wi=class{constructor(e){let i=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=i+e.start,this.end=i+e.end,this.loc=new cs(e.startLoc,e.endLoc)}},sc=class extends tc{constructor(e,i){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(r,s,n,a)=>this.optionFlags&2048?(this.raise(w.InvalidDigit,an(r,s,n),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(w.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(w.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(w.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(w.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(r,s,n)=>{this.recordStrictModeErrors(w.StrictNumericEscape,an(r,s,n))},unterminated:(r,s,n)=>{throw this.raise(w.UnterminatedString,an(r-1,s,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(w.StrictNumericEscape),unterminated:(r,s,n)=>{throw this.raise(w.UnterminatedTemplate,an(r,s,n))}}),this.state=new ic,this.state.init(e),this.input=i,this.length=i.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new wi(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let i=this.state;return this.state=e,i}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Vl.lastIndex=e,Vl.test(this.input)?Vl.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Wl.lastIndex=e,Wl.test(this.input)?Wl.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let i=this.input.charCodeAt(e);if((i&64512)===55296&&++e<this.input.length){let r=this.input.charCodeAt(e);(r&64512)===56320&&(i=65536+((i&1023)<<10)+(r&1023))}return i}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([i,r])=>this.raise(i,r)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let i;this.isLookahead||(i=this.state.curPosition());let r=this.state.pos,s=this.input.indexOf(e,r+2);if(s===-1)throw this.raise(w.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+e.length,_a.lastIndex=r+2;_a.test(this.input)&&_a.lastIndex<=s;)++this.state.curLine,this.state.lineStart=_a.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(r+2,s),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(s+e.length),loc:new cs(i,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(n),n}skipLineComment(e){let i=this.state.pos,r;this.isLookahead||(r=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!os(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let n=this.state.pos,l={type:"CommentLine",value:this.input.slice(i+e,n),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(n),loc:new cs(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(l),l}skipSpace(){let e=this.state.pos,i=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let s=this.skipBlockComment("*/");s!==void 0&&(this.addComment(s),i?.push(s));break}case 47:{let s=this.skipLineComment(2);s!==void 0&&(this.addComment(s),i?.push(s));break}default:break e}break;default:if(SP(r))++this.state.pos;else if(r===45&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(e===0||this.state.lineStart>e)){let n=this.skipLineComment(3);n!==void 0&&(this.addComment(n),i?.push(n))}else break e}else if(r===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let n=this.skipLineComment(4);n!==void 0&&(this.addComment(n),i?.push(n))}else break e}else break e}}if(i?.length>0){let r=this.state.pos,s={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(r),comments:i,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,i){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let r=this.state.type;this.state.type=e,this.state.value=i,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,i=this.codePointAtPos(e);if(i>=48&&i<=57)throw this.raise(w.UnexpectedDigitAfterHash,this.state.curPosition());if(i===123||i===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(i===123?w.RecordExpressionHashIncorrectStartSyntaxType:w.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,i===123?this.finishToken(7):this.finishToken(1)}else Ki(i)?(++this.state.pos,this.finishToken(139,this.readWord1(i))):i===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let i=this.state.pos;for(this.state.pos+=1;!os(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let r=this.input.slice(i+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let i=e===42?55:54,r=1,s=this.input.charCodeAt(this.state.pos+1);e===42&&s===42&&(r++,s=this.input.charCodeAt(this.state.pos+2),i=57),s===61&&!this.state.inType&&(r++,i=e===37?33:30),this.finishOp(i,r)}readToken_pipe_amp(e){let i=this.input.charCodeAt(this.state.pos+1);if(i===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(i===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&i===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(w.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&i===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(w.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(i===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let i=this.input.charCodeAt(this.state.pos+1);if(i===e){this.finishOp(34,2);return}i===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,i=this.input.charCodeAt(e+1);if(i===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(i===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,i=this.input.charCodeAt(e+1);if(i===62){let r=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+r)===61){this.finishOp(30,r+1);return}this.finishOp(52,r);return}if(i===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let i=this.input.charCodeAt(this.state.pos+1);if(i===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&i===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),i=this.input.charCodeAt(this.state.pos+2);e===63?i===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(i>=48&&i<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(w.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(w.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let i=this.input.charCodeAt(this.state.pos+1);if(i===120||i===88){this.readRadixNumber(16);return}if(i===111||i===79){this.readRadixNumber(8);return}if(i===98||i===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Ki(e)){this.readWord(e);return}}throw this.raise(w.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,i){let r=this.input.slice(this.state.pos,this.state.pos+i);this.state.pos+=i,this.finishToken(e,r)}readRegexp(){let e=this.state.startLoc,i=this.state.start+1,r,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(w.UnterminatedRegExp,Ft(e,1));let o=this.input.charCodeAt(n);if(os(o))throw this.raise(w.UnterminatedRegExp,Ft(e,1));if(r)r=!1;else{if(o===91)s=!0;else if(o===93&&s)s=!1;else if(o===47&&!s)break;r=o===92}}let a=this.input.slice(i,n);++n;let l="",c=()=>Ft(e,n+2-i);for(;n<this.length;){let o=this.codePointAtPos(n),u=String.fromCharCode(o);if(CP.has(o))o===118?l.includes("u")&&this.raise(w.IncompatibleRegExpUVFlags,c()):o===117&&l.includes("v")&&this.raise(w.IncompatibleRegExpUVFlags,c()),l.includes(u)&&this.raise(w.DuplicateRegExpFlags,c());else if(as(o)||o===92)this.raise(w.MalformedRegExpFlags,c());else break;++n,l+=u}this.state.pos=n,this.finishToken(138,{pattern:a,flags:l})}readInt(e,i,r=!1,s=!0){let{n,pos:a}=am(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,i,r,s,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(e){let i=this.state.pos,r=this.state.curPosition(),s=!1;this.state.pos+=2;let n=this.readInt(e);n==null&&this.raise(w.InvalidDigit,Ft(r,2),{radix:e});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,s=!0;else if(a===109)throw this.raise(w.InvalidDecimal,r);if(Ki(this.codePointAtPos(this.state.pos)))throw this.raise(w.NumberIdentifier,this.state.curPosition());if(s){let l=this.input.slice(i,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,l);return}this.finishToken(135,n)}readNumber(e){let i=this.state.pos,r=this.state.curPosition(),s=!1,n=!1,a=!1,l=!1;!e&&this.readInt(10)===null&&this.raise(w.InvalidNumber,this.state.curPosition());let c=this.state.pos-i>=2&&this.input.charCodeAt(i)===48;if(c){let m=this.input.slice(i,this.state.pos);if(this.recordStrictModeErrors(w.StrictOctalLiteral,r),!this.state.strict){let S=m.indexOf("_");S>0&&this.raise(w.ZeroDigitNumericSeparator,Ft(r,S))}l=c&&!/[89]/.test(m)}let o=this.input.charCodeAt(this.state.pos);if(o===46&&!l&&(++this.state.pos,this.readInt(10),s=!0,o=this.input.charCodeAt(this.state.pos)),(o===69||o===101)&&!l&&(o=this.input.charCodeAt(++this.state.pos),(o===43||o===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(w.InvalidOrMissingExponent,r),s=!0,a=!0,o=this.input.charCodeAt(this.state.pos)),o===110&&((s||c)&&this.raise(w.InvalidBigIntLiteral,r),++this.state.pos,n=!0),o===109){this.expectPlugin("decimal",this.state.curPosition()),(a||c)&&this.raise(w.InvalidDecimal,r),++this.state.pos;var u=!0}if(Ki(this.codePointAtPos(this.state.pos)))throw this.raise(w.NumberIdentifier,this.state.curPosition());let f=this.input.slice(i,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(136,f);return}if(u){this.finishToken(137,f);return}let d=l?parseInt(f,8):parseFloat(f);this.finishToken(135,d)}readCodePoint(e){let{code:i,pos:r}=om(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,i}readString(e){let{str:i,pos:r,curLine:s,lineStart:n}=Wd(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=n,this.state.curLine=s,this.finishToken(134,i)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:i,firstInvalidLoc:r,pos:s,curLine:n,lineStart:a}=Wd("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=a,this.state.curLine=n,r&&(this.state.firstInvalidTemplateEscapePos=new Ii(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),this.input.codePointAt(s)===96?this.finishToken(24,r?null:e+i+"`"):(this.state.pos++,this.finishToken(25,r?null:e+i+"${"))}recordStrictModeErrors(e,i){let r=i.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,i):this.state.strictErrors.set(r,[e,i])}readWord1(e){this.state.containsEsc=!1;let i="",r=this.state.pos,s=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(as(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,i+=this.input.slice(s,this.state.pos);let a=this.state.curPosition(),l=this.state.pos===r?Ki:as;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(w.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let c=this.readCodePoint(!0);c!==null&&(l(c)||this.raise(w.EscapedCharNotAnIdentifier,a),i+=String.fromCodePoint(c)),s=this.state.pos}else break}return i+this.input.slice(s,this.state.pos)}readWord(e){let i=this.readWord1(e),r=dc.get(i);r!==void 0?this.finishToken(r,nr(r)):this.finishToken(132,i)}checkKeywordEscapes(){let{type:e}=this.state;bc(e)&&this.state.containsEsc&&this.raise(w.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:nr(e)})}raise(e,i,r={}){let s=i instanceof Ii?i:i.loc.start,n=e(s,r);if(!(this.optionFlags&2048))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,i,r={}){let s=i instanceof Ii?i:i.loc.start,n=s.index,a=this.state.errors;for(let l=a.length-1;l>=0;l--){let c=a[l];if(c.loc.index===n)return a[l]=e(s,r);if(c.loc.index<n)break}return this.raise(e,i,r)}updateContext(e){}unexpected(e,i){throw this.raise(w.UnexpectedToken,e??this.state.startLoc,{expected:i?nr(i):null})}expectPlugin(e,i){if(this.hasPlugin(e))return!0;throw this.raise(w.MissingPlugin,i??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(i=>this.hasPlugin(i)))throw this.raise(w.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(i,r,s)=>{this.raise(e,an(i,r,s))}}},nc=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},ac=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new nc)}exit(){let e=this.stack.pop(),i=this.current();for(let[r,s]of Array.from(e.undefinedPrivateNames))i?i.undefinedPrivateNames.has(r)||i.undefinedPrivateNames.set(r,s):this.parser.raise(w.InvalidPrivateFieldResolution,s,{identifierName:r})}declarePrivateName(e,i,r){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:a}=this.current(),l=s.has(e);if(i&3){let c=l&&n.get(e);if(c){let o=c&4,u=i&4,f=c&3,d=i&3;l=f===d||o!==u,l||n.delete(e)}else l||n.set(e,i)}l&&this.parser.raise(w.PrivateNameRedeclaration,r,{identifierName:e}),s.add(e),a.delete(e)}usePrivateName(e,i){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,i):this.parser.raise(w.InvalidPrivateFieldResolution,i,{identifierName:e})}},us=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Ba=class extends us{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,i){let r=i.index;this.declarationErrors.set(r,[e,i])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},oc=class{constructor(e){this.parser=void 0,this.stack=[new us],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,i){let r=i.loc.start,{stack:s}=this,n=s.length-1,a=s[n];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,r);else return;a=s[--n]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,i){let{stack:r}=this,s=r[r.length-1],n=i.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(e,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,n);else return}recordAsyncArrowParametersError(e){let{stack:i}=this,r=i.length-1,s=i[r];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(w.AwaitBindingIdentifier,e),s=i[--r]}validateAsPattern(){let{stack:e}=this,i=e[e.length-1];i.canBeArrowParameterDeclaration()&&i.iterateErrors(([r,s])=>{this.parser.raise(r,s);let n=e.length-2,a=e[n];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=e[--n]})}};function IP(){return new us(3)}function kP(){return new Ba(1)}function _P(){return new Ba(2)}function lm(){return new us}var lc=class extends sc{addExtra(e,i,r,s=!0){if(!e)return;let{extra:n}=e;n==null&&(n={},e.extra=n),s?n[i]=r:Object.defineProperty(n,i,{enumerable:s,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,i){if(this.input.startsWith(i,e)){let r=this.input.charCodeAt(e+i.length);return!(as(r)||(r&64512)===55296)}return!1}isLookaheadContextual(e){let i=this.nextTokenStart();return this.isUnparsedContextual(i,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,i){if(!this.eatContextual(e)){if(i!=null)throw this.raise(i,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Kd(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Kd(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(w.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,i){this.eat(e)||this.unexpected(i,e)}tryParse(e,i=this.state.clone()){let r={node:null};try{let s=e((n=null)=>{throw r.node=n,r});if(this.state.errors.length>i.errors.length){let n=this.state;return this.state=i,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[i.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=i,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(e,i){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:a,voidPatternLoc:l}=e,c=!!r||!!s||!!a||!!n||!!l;if(!i)return c;r!=null&&this.raise(w.InvalidCoverInitializedName,r),s!=null&&this.raise(w.DuplicateProto,s),n!=null&&this.raise(w.UnexpectedPrivateField,n),a!=null&&this.unexpected(a),l!=null&&this.raise(w.InvalidCoverDiscardElement,l)}isLiteralPropertyName(){return Qd(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let i=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=e;let n=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);let l=this.prodParam;this.prodParam=new Zl;let c=this.classScope;this.classScope=new ac(this);let o=this.expressionScope;return this.expressionScope=new oc(this),()=>{this.state.labels=i,this.exportedIdentifiers=r,this.inModule=s,this.scope=n,this.prodParam=l,this.classScope=c,this.expressionScope=o}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let i=!this.inModule&&this.options.sourceType==="commonjs";(i||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let r=i?514:1;this.optionFlags&4&&(r|=512),this.scope.enter(r)}checkDestructuringPrivate(e){let{privateKeyLoc:i}=e;i!==null&&this.expectPlugin("destructuringPrivate",i)}},ls=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},ps=class{constructor(e,i,r){this.type="",this.start=i,this.end=0,this.loc=new cs(r),e?.optionFlags&128&&(this.range=[i,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}},cc=ps.prototype;cc.__clone=function(){let t=new ps(void 0,this.start,this.loc.start),e=Object.keys(this);for(let i=0,r=e.length;i<r;i++){let s=e[i];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(t[s]=this[s])}return t};var uc=class extends lc{startNode(){let e=this.state.startLoc;return new ps(this,e.index,e)}startNodeAt(e){return new ps(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,i){return this.finishNodeAt(e,i,this.state.lastTokEndLoc)}finishNodeAt(e,i,r){return e.type=i,e.end=r.index,e.loc.end=r,this.optionFlags&128&&(e.range[1]=r.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,i){e.start=i.index,e.loc.start=i,this.optionFlags&128&&(e.range[0]=i.index)}resetEndLocation(e,i=this.state.lastTokEndLoc){e.end=i.index,e.loc.end=i,this.optionFlags&128&&(e.range[1]=i.index)}resetStartLocationFromNode(e,i){this.resetStartLocation(e,i.loc.start)}castNodeTo(e,i){return e.type=i,e}cloneIdentifier(e){let{type:i,start:r,end:s,loc:n,range:a,name:l}=e,c=Object.create(cc);return c.type=i,c.start=r,c.end=s,c.loc=n,c.range=a,c.name=l,e.extra&&(c.extra=e.extra),c}cloneStringLiteral(e){let{type:i,start:r,end:s,loc:n,range:a,extra:l}=e,c=Object.create(cc);return c.type=i,c.start=r,c.end=s,c.loc=n,c.range=a,c.extra=l,c.value=e.value,c}},cm=t=>t.type==="ParenthesizedExpression"?cm(t.expression):t,pc=class extends uc{toAssignable(e,i=!1){var r,s;let n;switch((e.type==="ParenthesizedExpression"||(r=e.extra)!=null&&r.parenthesized)&&(n=cm(e),i?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(w.InvalidParenthesizedAssignment,e):n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(w.InvalidParenthesizedAssignment,e):this.raise(w.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let l=0,c=e.properties.length,o=c-1;l<c;l++){var a;let u=e.properties[l],f=l===o;this.toAssignableObjectExpressionProp(u,f,i),f&&u.type==="RestElement"&&(a=e.extra)!=null&&a.trailingCommaLoc&&this.raise(w.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:l,value:c}=e;this.isPrivateName(l)&&this.classScope.usePrivateName(this.getPrivateNameSV(l),l.loc.start),this.toAssignable(c,i);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingCommaLoc,i);break;case"AssignmentExpression":e.operator!=="="&&this.raise(w.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,e.left.type==="VoidPattern"&&this.raise(w.VoidPatternInitializer,e.left),this.toAssignable(e.left,i);break;case"ParenthesizedExpression":this.toAssignable(n,i);break}}toAssignableObjectExpressionProp(e,i,r){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?w.PatternHasAccessor:w.PatternHasMethod,e.key);else if(e.type==="SpreadElement"){this.castNodeTo(e,"RestElement");let s=e.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,r),i||this.raise(w.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,i,r){let s=e.length-1;for(let n=0;n<=s;n++){let a=e[n];a&&(this.toAssignableListItem(e,n,r),a.type==="RestElement"&&(n<s?this.raise(w.RestTrailingComma,a):i&&this.raise(w.RestTrailingComma,i)))}}toAssignableListItem(e,i,r){let s=e[i];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let n=s.argument;this.checkToRestConversion(n,!0),this.toAssignable(n,r)}else this.toAssignable(s,r)}isAssignable(e,i){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let r=e.properties.length-1;return e.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===r||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(r=>r===null||this.isAssignable(r));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!i;default:return!1}}toReferencedList(e,i){return e}toReferencedListDeep(e,i){this.toReferencedList(e,i);for(let r of e)r?.type==="ArrayExpression"&&this.toReferencedListDeep(r.elements)}parseSpread(e){let i=this.startNode();return this.next(),i.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(i,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let i=this.parseBindingAtom();return i.type==="VoidPattern"&&this.raise(w.UnexpectedVoidPattern,i),e.argument=i,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,i,r){let s=r&1,n=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(e))break;if(this.match(21)){let l=this.parseRestBinding();if((this.hasPlugin("flow")||r&2)&&(l=this.parseFunctionParamType(l)),n.push(l),!this.checkCommaAfterRest(i)){this.expect(e);break}}else{let l=[];if(r&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(w.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)l.push(this.parseDecorator());n.push(this.parseBindingElement(r,l))}}return n}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(w.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:i}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let r=this.startNode();return e===139?(this.expectPlugin("destructuringPrivate",i),this.classScope.usePrivateName(this.state.value,i),r.key=this.parsePrivateName()):this.parsePropertyName(r),r.method=!1,this.parseObjPropValue(r,i,!1,!1,!0,!1)}parseBindingElement(e,i){let r=this.parseMaybeDefault();return(this.hasPlugin("flow")||e&2)&&this.parseFunctionParamType(r),i.length&&(r.decorators=i,this.resetStartLocationFromNode(r,i[0])),this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(e){return e}parseMaybeDefault(e,i){if(e??(e=this.state.startLoc),i=i??this.parseBindingAtom(),!this.eat(29))return i;let r=this.startNodeAt(e);return i.type==="VoidPattern"&&this.raise(w.VoidPatternInitializer,i),r.left=i,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,i,r){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,i,r=64,s=!1,n=!1,a=!1){var l;let c=e.type;if(this.isObjectMethod(e))return;let o=this.isOptionalMemberExpression(e);if(o||c==="MemberExpression"){o&&(this.expectPlugin("optionalChainingAssign",e.loc.start),i.type!=="AssignmentExpression"&&this.raise(w.InvalidLhsOptionalChaining,e,{ancestor:i})),r!==64&&this.raise(w.InvalidPropertyBindingPattern,e);return}if(c==="Identifier"){this.checkIdentifier(e,r,n);let{name:P}=e;s&&(s.has(P)?this.raise(w.ParamDupe,e):s.add(P));return}else c==="VoidPattern"&&i.type==="CatchClause"&&this.raise(w.VoidPatternCatchClauseParam,e);let u=this.isValidLVal(c,!(a||(l=e.extra)!=null&&l.parenthesized)&&i.type==="AssignmentExpression",r);if(u===!0)return;if(u===!1){let P=r===64?w.InvalidLhs:w.InvalidLhsBinding;this.raise(P,e,{ancestor:i});return}let f,d;typeof u=="string"?(f=u,d=c==="ParenthesizedExpression"):[f,d]=u;let m=c==="ArrayPattern"||c==="ObjectPattern"?{type:c}:i,S=e[f];if(Array.isArray(S))for(let P of S)P&&this.checkLVal(P,m,r,s,n,d);else S&&this.checkLVal(S,m,r,s,n,d)}checkIdentifier(e,i,r=!1){this.state.strict&&(r?sm(e.name,this.inModule):rm(e.name))&&(i===64?this.raise(w.StrictEvalArguments,e,{referenceName:e.name}):this.raise(w.StrictEvalArgumentsBinding,e,{bindingName:e.name})),i&8192&&e.name==="let"&&this.raise(w.LetInLexicalBinding,e),i&64||this.declareNameFromIdentifier(e,i)}declareNameFromIdentifier(e,i){this.scope.declareName(e.name,i,e.loc.start)}checkToRestConversion(e,i){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,i);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(i)break;default:this.raise(w.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?w.RestTrailingComma:w.ElementAfterRest,this.state.startLoc),!0):!1}};function OP(t){if(t==null)throw new Error(`Unexpected ${t} value.`);return t}function Yd(t){if(!t)throw new Error("Assert fail")}var re=Ci`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>`Accessibility modifier already seen: '${t}'.`,DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:t})=>`'${t}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:t=>`'${t}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:t=>`'${t}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`,UsingDeclarationInAmbientContext:t=>`'${t}' declarations are not allowed in ambient contexts.`});function NP(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function zd(t){return t==="private"||t==="public"||t==="protected"}function DP(t){return t==="in"||t==="out"}var LP=t=>class extends t{constructor(...i){super(...i),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:re.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:re.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:re.InvalidModifierOnTypeParameter})}getScopeHandler(){return Ql}tsIsIdentifier(){return $e(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(i,r,s){if(!$e(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(i.includes(n)){if(s&&this.match(106)||r&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:i,disallowedModifiers:r,stopOnStartOfClassStaticBlock:s,errorTemplate:n=re.InvalidModifierOnTypeMember},a){let l=(o,u,f,d)=>{u===f&&a[d]&&this.raise(re.InvalidModifiersOrder,o,{orderedModifiers:[f,d]})},c=(o,u,f,d)=>{(a[f]&&u===d||a[d]&&u===f)&&this.raise(re.IncompatibleModifiers,o,{modifiers:[f,d]})};for(;;){let{startLoc:o}=this.state,u=this.tsParseModifier(i.concat(r??[]),s,a.static);if(!u)break;zd(u)?a.accessibility?this.raise(re.DuplicateAccessibilityModifier,o,{modifier:u}):(l(o,u,u,"override"),l(o,u,u,"static"),l(o,u,u,"readonly"),a.accessibility=u):DP(u)?(a[u]&&this.raise(re.DuplicateModifier,o,{modifier:u}),a[u]=!0,l(o,u,"in","out")):(hasOwnProperty.call(a,u)?this.raise(re.DuplicateModifier,o,{modifier:u}):(l(o,u,"static","readonly"),l(o,u,"static","override"),l(o,u,"override","readonly"),l(o,u,"abstract","override"),c(o,u,"declare","override"),c(o,u,"static","abstract")),a[u]=!0),r!=null&&r.includes(u)&&this.raise(n,o,{modifier:u})}}tsIsListTerminator(i){switch(i){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(i,r){let s=[];for(;!this.tsIsListTerminator(i);)s.push(r());return s}tsParseDelimitedList(i,r,s){return OP(this.tsParseDelimitedListWorker(i,r,!0,s))}tsParseDelimitedListWorker(i,r,s,n){let a=[],l=-1;for(;!this.tsIsListTerminator(i);){l=-1;let c=r();if(c==null)return;if(a.push(c),this.eat(12)){l=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(i))break;s&&this.expect(12);return}return n&&(n.value=l),a}tsParseBracketedList(i,r,s,n,a){n||(s?this.expect(0):this.expect(47));let l=this.tsParseDelimitedList(i,r,a);return s?this.expect(3):this.expect(48),l}tsParseImportType(){let i=this.startNode();return this.expect(83),this.expect(10),this.match(134)?i.argument=this.parseStringLiteral(this.state.value):(this.raise(re.UnsupportedImportTypeArgument,this.state.startLoc),i.argument=super.parseExprAtom()),this.eat(12)?i.options=this.tsParseImportTypeOptions():i.options=null,this.expect(11),this.eat(16)&&(i.qualifier=this.tsParseEntityName(3)),this.match(47)&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSImportType")}tsParseImportTypeOptions(){let i=this.startNode();this.expect(5);let r=this.startNode();return this.isContextual(76)?(r.method=!1,r.key=this.parseIdentifier(!0),r.computed=!1,r.shorthand=!1):this.unexpected(null,76),this.expect(14),r.value=this.tsParseImportTypeWithPropertyValue(),i.properties=[this.finishObjectProperty(r)],this.expect(8),this.finishNode(i,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let i=this.startNode(),r=[];for(this.expect(5);!this.match(8);){let s=this.state.type;$e(s)||s===134?r.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return i.properties=r,this.next(),this.finishNode(i,"ObjectExpression")}tsParseEntityName(i){let r;if(i&1&&this.match(78))if(i&2)r=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),r=this.finishNode(s,"ThisExpression")}else r=this.parseIdentifier(!!(i&1));for(;this.eat(16);){let s=this.startNodeAtNode(r);s.left=r,s.right=this.parseIdentifier(!!(i&1)),r=this.finishNode(s,"TSQualifiedName")}return r}tsParseTypeReference(){let i=this.startNode();return i.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSTypeReference")}tsParseThisTypePredicate(i){this.next();let r=this.startNodeAtNode(i);return r.parameterName=i,r.typeAnnotation=this.tsParseTypeAnnotation(!1),r.asserts=!1,this.finishNode(r,"TSTypePredicate")}tsParseThisTypeNode(){let i=this.startNode();return this.next(),this.finishNode(i,"TSThisType")}tsParseTypeQuery(){let i=this.startNode();return this.expect(87),this.match(83)?i.exprName=this.tsParseImportType():i.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSTypeQuery")}tsParseTypeParameter(i){let r=this.startNode();return i(r),r.name=this.tsParseTypeParameterName(),r.constraint=this.tsEatThenParseType(81),r.default=this.tsEatThenParseType(29),this.finishNode(r,"TSTypeParameter")}tsTryParseTypeParameters(i){if(this.match(47))return this.tsParseTypeParameters(i)}tsParseTypeParameters(i){let r=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let s={value:-1};return r.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,i),!1,!0,s),r.params.length===0&&this.raise(re.EmptyTypeParameters,r),s.value!==-1&&this.addExtra(r,"trailingComma",s.value),this.finishNode(r,"TSTypeParameterDeclaration")}tsFillSignature(i,r){let s=i===19,n="parameters",a="typeAnnotation";r.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),r[n]=this.tsParseBindingListForSignature(),s?r[a]=this.tsParseTypeOrTypePredicateAnnotation(i):this.match(i)&&(r[a]=this.tsParseTypeOrTypePredicateAnnotation(i))}tsParseBindingListForSignature(){let i=super.parseBindingList(11,41,2);for(let r of i){let{type:s}=r;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(re.UnsupportedSignatureParameterKind,r,{type:s})}return i}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(i,r){return this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon(),this.finishNode(r,i)}tsIsUnambiguouslyIndexSignature(){return this.next(),$e(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(i){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let r=this.parseIdentifier();r.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(r),this.expect(3),i.parameters=[r];let s=this.tsTryParseTypeAnnotation();return s&&(i.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSIndexSignature")}tsParsePropertyOrMethodSignature(i,r){if(this.eat(17)&&(i.optional=!0),this.match(10)||this.match(47)){r&&this.raise(re.ReadonlyForMethodSignature,i);let s=i;s.kind&&this.match(47)&&this.raise(re.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let n="parameters",a="typeAnnotation";if(s.kind==="get")s[n].length>0&&(this.raise(w.BadGetterArity,this.state.curPosition()),this.isThisParam(s[n][0])&&this.raise(re.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[n].length!==1)this.raise(w.BadSetterArity,this.state.curPosition());else{let l=s[n][0];this.isThisParam(l)&&this.raise(re.AccessorCannotDeclareThisParameter,this.state.curPosition()),l.type==="Identifier"&&l.optional&&this.raise(re.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),l.type==="RestElement"&&this.raise(re.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[a]&&this.raise(re.SetAccessorCannotHaveReturnType,s[a])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=i;r&&(s.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(s.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let i=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",i);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",i):(i.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(i,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},i);let r=this.tsTryParseIndexSignature(i);return r||(super.parsePropertyName(i),!i.computed&&i.key.type==="Identifier"&&(i.key.name==="get"||i.key.name==="set")&&this.tsTokenCanFollowModifier()&&(i.kind=i.key.name,super.parsePropertyName(i),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(i,!!i.readonly))}tsParseTypeLiteral(){let i=this.startNode();return i.members=this.tsParseObjectTypeMembers(),this.finishNode(i,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let i=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),i}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let i=this.startNode();this.expect(5),this.match(53)?(i.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(i.readonly=!0),this.expect(0);{let r=this.startNode();r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),i.typeParameter=this.finishNode(r,"TSTypeParameter")}return i.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(i.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(i.optional=!0),i.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(i,"TSMappedType")}tsParseTupleType(){let i=this.startNode();i.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let r=!1;return i.elementTypes.forEach(s=>{let{type:n}=s;r&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise(re.OptionalTypeBeforeRequired,s),r||(r=n==="TSNamedTupleMember"&&s.optional||n==="TSOptionalType")}),this.finishNode(i,"TSTupleType")}tsParseTupleElementType(){let i=this.state.startLoc,r=this.eat(21),{startLoc:s}=this.state,n,a,l,c,u=mi(this.state.type)?this.lookaheadCharCode():null;if(u===58)n=!0,l=!1,a=this.parseIdentifier(!0),this.expect(14),c=this.tsParseType();else if(u===63){l=!0;let f=this.state.value,d=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,a=this.createIdentifier(this.startNodeAt(s),f),this.expect(17),this.expect(14),c=this.tsParseType()):(n=!1,c=d,this.expect(17))}else c=this.tsParseType(),l=this.eat(17),n=this.eat(14);if(n){let f;a?(f=this.startNodeAt(s),f.optional=l,f.label=a,f.elementType=c,this.eat(17)&&(f.optional=!0,this.raise(re.TupleOptionalAfterType,this.state.lastTokStartLoc))):(f=this.startNodeAt(s),f.optional=l,this.raise(re.InvalidTupleMemberLabel,c),f.label=c,f.elementType=this.tsParseType()),c=this.finishNode(f,"TSNamedTupleMember")}else if(l){let f=this.startNodeAt(s);f.typeAnnotation=c,c=this.finishNode(f,"TSOptionalType")}if(r){let f=this.startNodeAt(i);f.typeAnnotation=c,c=this.finishNode(f,"TSRestType")}return c}tsParseParenthesizedType(){let i=this.startNode();return this.expect(10),i.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(i,"TSParenthesizedType")}tsParseFunctionOrConstructorType(i,r){let s=this.startNode();return i==="TSConstructorType"&&(s.abstract=!!r,r&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,i)}tsParseLiteralTypeNode(){let i=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:i.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(i,"TSLiteralType")}tsParseTemplateLiteralType(){{let i=this.startNode();return i.literal=super.parseTemplate(!1),this.finishNode(i,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let i=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(i):i}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let i=this.startNode(),r=this.lookahead();return r.type!==135&&r.type!==136&&this.unexpected(),i.literal=this.parseMaybeUnary(),this.finishNode(i,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:i}=this.state;if($e(i)||i===88||i===84){let r=i===88?"TSVoidKeyword":i===84?"TSNullKeyword":NP(this.state.value);if(r!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,r)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:i}=this.state,r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAt(i);s.elementType=r,this.expect(3),r=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAt(i);s.objectType=r,s.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(s,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let i=this.startNode(),r=this.state.value;return this.next(),i.operator=r,i.typeAnnotation=this.tsParseTypeOperatorOrHigher(),r==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(i),this.finishNode(i,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(i){switch(i.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(re.UnexpectedReadonly,i)}}tsParseInferType(){let i=this.startNode();this.expectContextual(115);let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),i.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(i,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let i=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return i}}tsParseTypeOperatorOrHigher(){return eP(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(i,r,s){let n=this.startNode(),a=this.eat(s),l=[];do l.push(r());while(this.eat(s));return l.length===1&&!a?l[0]:(n.types=l,this.finishNode(n,i))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if($e(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:i}=this.state,r=i.length;try{return this.parseObjectLike(8,!0),i.length===r}catch{return!1}}if(this.match(0)){this.next();let{errors:i}=this.state,r=i.length;try{return super.parseBindingList(3,93,1),i.length===r}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(i){return this.tsInType(()=>{let r=this.startNode();this.expect(i);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let c=this.tsParseThisTypeOrThisTypePredicate();return c.type==="TSThisType"?(s.parameterName=c,s.asserts=!0,s.typeAnnotation=null,c=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(c,s),c.asserts=!0),r.typeAnnotation=c,this.finishNode(r,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,r.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,r);let l=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=l,s.asserts=n,r.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let i=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),i}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let i=this.state.containsEsc;return this.next(),!$e(this.state.type)&&!this.match(78)?!1:(i&&this.raise(w.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(i=!0,r=this.startNode()){return this.tsInType(()=>{i&&this.expect(14),r.typeAnnotation=this.tsParseType()}),this.finishNode(r,"TSTypeAnnotation")}tsParseType(){Yd(this.state.inType);let i=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return i;let r=this.startNodeAtNode(i);return r.checkType=i,r.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(r,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(re.ReservedTypeAssertion,this.state.startLoc);let i=this.startNode();return i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),i.expression=this.parseMaybeUnary(),this.finishNode(i,"TSTypeAssertion")}tsParseHeritageClause(i){let r=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let n=this.startNode();return n.expression=this.tsParseEntityName(3),this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSExpressionWithTypeArguments")}});return s.length||this.raise(re.EmptyHeritageClauseType,r,{token:i}),s}tsParseInterfaceDeclaration(i,r={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),r.declare&&(i.declare=!0),$e(this.state.type)?(i.id=this.parseIdentifier(),this.checkIdentifier(i.id,130)):(i.id=null,this.raise(re.MissingInterfaceName,this.state.startLoc)),i.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(i.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),i.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(i,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(i){return i.id=this.parseIdentifier(),this.checkIdentifier(i.id,2),i.typeAnnotation=this.tsInType(()=>{if(i.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let r=this.startNode();return this.next(),this.finishNode(r,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(i,"TSTypeAliasDeclaration")}tsInTopLevelContext(i){if(this.curContext()!==Be.brace){let r=this.state.context;this.state.context=[r[0]];try{return i()}finally{this.state.context=r}}else return i()}tsInType(i){let r=this.state.inType;this.state.inType=!0;try{return i()}finally{this.state.inType=r}}tsInDisallowConditionalTypesContext(i){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return i()}finally{this.state.inDisallowConditionalTypesContext=r}}tsInAllowConditionalTypesContext(i){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return i()}finally{this.state.inDisallowConditionalTypesContext=r}}tsEatThenParseType(i){if(this.match(i))return this.tsNextThenParseType()}tsExpectThenParseType(i){return this.tsInType(()=>(this.expect(i),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let i=this.startNode();return i.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(i.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(i,"TSEnumMember")}tsParseEnumDeclaration(i,r={}){return r.const&&(i.const=!0),r.declare&&(i.declare=!0),this.expectContextual(126),i.id=this.parseIdentifier(),this.checkIdentifier(i.id,i.const?8971:8459),this.expect(5),i.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(i,"TSEnumDeclaration")}tsParseEnumBody(){let i=this.startNode();return this.expect(5),i.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(i,"TSEnumBody")}tsParseModuleBlock(){let i=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(i.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(i,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(i,r=!1){if(i.id=this.parseIdentifier(),r||this.checkIdentifier(i.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),i.body=s}else this.scope.enter(1024),this.prodParam.enter(0),i.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(i,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(i){return this.isContextual(112)?(i.kind="global",i.global=!0,i.id=this.parseIdentifier()):this.match(134)?(i.kind="module",i.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),i.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(i,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(i,r,s){i.isExport=s||!1,i.id=r||this.parseIdentifier(),this.checkIdentifier(i.id,4096),this.expect(29);let n=this.tsParseModuleReference();return i.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise(re.ImportAliasHasImportType,n),i.moduleReference=n,this.semicolon(),this.finishNode(i,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let i=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),i.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExternalModuleReference")}tsLookAhead(i){let r=this.state.clone(),s=i();return this.state=r,s}tsTryParseAndCatch(i){let r=this.tryParse(s=>i()||s());if(!(r.aborted||!r.node))return r.error&&(this.state=r.failState),r.node}tsTryParse(i){let r=this.state.clone(),s=i();if(s!==void 0&&s!==!1)return s;this.state=r}tsTryParseDeclare(i){if(this.isLineTerminator())return;let r=this.state.type;return this.tsInAmbientContext(()=>{switch(r){case 68:return i.declare=!0,super.parseFunctionStatement(i,!1,!1);case 80:return i.declare=!0,this.parseClass(i,!0,!1);case 126:return this.tsParseEnumDeclaration(i,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(i);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(i.declare=!0,this.parseVarStatement(i,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(i,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(re.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),i.declare=!0,this.parseVarStatement(i,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(re.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),i.declare=!0,this.next(),this.parseVarStatement(i,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(i,{declare:!0});if(s)return s}default:if($e(r))return this.tsParseDeclaration(i,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(i,r,s){switch(r.name){case"declare":{let n=this.tsTryParseDeclare(i);return n&&(n.declare=!0),n}case"global":if(this.match(5)){this.scope.enter(1024),this.prodParam.enter(0);let n=i;return n.kind="global",i.global=!0,n.id=r,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(i,r.name,!1,s)}}tsParseDeclaration(i,r,s,n){switch(r){case"abstract":if(this.tsCheckLineTerminator(s)&&(this.match(80)||$e(this.state.type)))return this.tsParseAbstractDeclaration(i,n);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(i);if($e(this.state.type))return i.kind="module",this.tsParseModuleOrNamespaceDeclaration(i)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&$e(this.state.type))return i.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(i);break;case"type":if(this.tsCheckLineTerminator(s)&&$e(this.state.type))return this.tsParseTypeAliasDeclaration(i);break}}tsCheckLineTerminator(i){return i?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(i){if(!this.match(47))return;let r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(i);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=r,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let i=this.startNode();return i.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),i.params.length===0?this.raise(re.EmptyTypeArguments,i):!this.state.inType&&this.curContext()===Be.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(i,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return tP(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(i,r){let s=r.length?r[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let a=n.accessibility,l=n.override,c=n.readonly;!(i&4)&&(a||c||l)&&this.raise(re.UnexpectedParameterModifier,s);let o=this.parseMaybeDefault();i&2&&this.parseFunctionParamType(o);let u=this.parseMaybeDefault(o.loc.start,o);if(a||c||l){let f=this.startNodeAt(s);return r.length&&(f.decorators=r),a&&(f.accessibility=a),c&&(f.readonly=c),l&&(f.override=l),u.type!=="Identifier"&&u.type!=="AssignmentPattern"&&this.raise(re.UnsupportedParameterPropertyKind,f),f.parameter=u,this.finishNode(f,"TSParameterProperty")}return r.length&&(o.decorators=r),u}isSimpleParameter(i){return i.type==="TSParameterProperty"&&super.isSimpleParameter(i.parameter)||super.isSimpleParameter(i)}tsDisallowOptionalPattern(i){for(let r of i.params)r.type!=="Identifier"&&r.optional&&!this.state.isAmbientContext&&this.raise(re.PatternIsOptional,r)}setArrowFunctionParameters(i,r,s){super.setArrowFunctionParameters(i,r,s),this.tsDisallowOptionalPattern(i)}parseFunctionBodyAndFinish(i,r,s=!1){this.match(14)&&(i.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n=r==="FunctionDeclaration"?"TSDeclareFunction":r==="ClassMethod"||r==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(i,n):n==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(re.DeclareFunctionHasImplementation,i),i.declare)?super.parseFunctionBodyAndFinish(i,n,s):(this.tsDisallowOptionalPattern(i),super.parseFunctionBodyAndFinish(i,r,s))}registerFunctionStatementId(i){!i.body&&i.id?this.checkIdentifier(i.id,1024):super.registerFunctionStatementId(i)}tsCheckForInvalidTypeCasts(i){i.forEach(r=>{r?.type==="TSTypeCastExpression"&&this.raise(re.UnexpectedTypeAnnotation,r.typeAnnotation)})}toReferencedList(i,r){return this.tsCheckForInvalidTypeCasts(i),i}parseArrayLike(i,r,s,n){let a=super.parseArrayLike(i,r,s,n);return a.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(a.elements),a}parseSubscript(i,r,s,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let l=this.startNodeAt(r);return l.expression=i,this.finishNode(l,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,i;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let l,c=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(i)){let d=this.tsTryParseGenericAsyncArrowFunction(r);if(d)return d}let o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(a&&!this.match(10)){l=this.state.curPosition();return}if(Fa(this.state.type)){let d=super.parseTaggedTemplateExpression(i,r,n);return d.typeParameters=o,d}if(!s&&this.eat(10)){let d=this.startNodeAt(r);return d.callee=i,d.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(d.arguments),d.typeParameters=o,n.optionalChainMember&&(d.optional=a),this.finishCallExpression(d,n.optionalChainMember)}let u=this.state.type;if(u===48||u===52||u!==10&&on(u)&&!this.hasPrecedingLineBreak())return;let f=this.startNodeAt(r);return f.expression=i,f.typeParameters=o,this.finishNode(f,"TSInstantiationExpression")});if(l&&this.unexpected(l,10),c)return c.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(re.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(c.expression=super.stopParseSubscript(i,n))),c}return super.parseSubscript(i,r,s,n)}parseNewCallee(i){var r;super.parseNewCallee(i);let{callee:s}=i;s.type==="TSInstantiationExpression"&&!((r=s.extra)!=null&&r.parenthesized)&&(i.typeParameters=s.typeParameters,i.callee=s.expression)}parseExprOp(i,r,s){let n;if(Da(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){let a=this.startNodeAt(r);return a.expression=i,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(w.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,r,s)}return super.parseExprOp(i,r,s)}checkReservedWord(i,r,s,n){this.state.isAmbientContext||super.checkReservedWord(i,r,s,n)}checkImportReflection(i){super.checkImportReflection(i),i.module&&i.importKind!=="value"&&this.raise(re.ImportReflectionHasImportType,i.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(i){if(super.isPotentialImportPhase(i))return!0;if(this.isContextual(130)){let r=this.lookaheadCharCode();return i?r===123||r===42:r!==61}return!i&&this.isContextual(87)}applyImportPhase(i,r,s,n){super.applyImportPhase(i,r,s,n),r?i.exportKind=s==="type"?"type":"value":i.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(i){if(this.match(134))return i.importKind="value",super.parseImport(i);let r;if($e(this.state.type)&&this.lookaheadCharCode()===61)return i.importKind="value",this.tsParseImportEqualsDeclaration(i);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(i,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(i,s);r=super.parseImportSpecifiersAndAfter(i,s)}else r=super.parseImport(i);return r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(re.TypeImportCannotSpecifyDefaultAndNamed,r),r}parseExport(i,r){if(this.match(83)){let s=i;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(s,!1):s.importKind="value",this.tsParseImportEqualsDeclaration(s,n,!0)}else if(this.eat(29)){let s=i;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=i;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(i,r)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let i=this.startNode();return this.next(),i.abstract=!0,this.parseClass(i,!0,!0)}if(this.match(129)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseExportDefaultExpression()}parseVarStatement(i,r,s=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(i,r,s||n);if(!n)return a;if(!i.declare&&(r==="using"||r==="await using"))return this.raiseOverwrite(re.UsingDeclarationInAmbientContext,i,r),a;for(let{id:l,init:c}of a.declarations)c&&(r==="var"||r==="let"||l.typeAnnotation?this.raise(re.InitializerNotAllowedInAmbientContext,c):FP(c,this.hasPlugin("estree"))||this.raise(re.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,c));return a}parseStatementContent(i,r){if(this.match(75)&&this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s}return super.parseStatementContent(i,r)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(i,r){return r.some(s=>zd(s)?i.accessibility===s:!!i[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(i,r,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:re.InvalidModifierOnTypeParameterPositions},r);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(r,n)&&this.raise(re.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(i,r)):this.parseClassMemberWithIsStatic(i,r,s,!!r.static)};r.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(i,r,s,n){let a=this.tsTryParseIndexSignature(r);if(a){i.body.push(a),r.abstract&&this.raise(re.IndexSignatureHasAbstract,r),r.accessibility&&this.raise(re.IndexSignatureHasAccessibility,r,{modifier:r.accessibility}),r.declare&&this.raise(re.IndexSignatureHasDeclare,r),r.override&&this.raise(re.IndexSignatureHasOverride,r);return}!this.state.inAbstractClass&&r.abstract&&this.raise(re.NonAbstractClassHasAbstractMethod,r),r.override&&(s.hadSuperClass||this.raise(re.OverrideNotInSubClass,r)),super.parseClassMemberWithIsStatic(i,r,s,n)}parsePostMemberNameModifiers(i){this.eat(17)&&(i.optional=!0),i.readonly&&this.match(10)&&this.raise(re.ClassMethodHasReadonly,i),i.declare&&this.match(10)&&this.raise(re.ClassMethodHasDeclare,i)}parseExpressionStatement(i,r,s){return(r.type==="Identifier"?this.tsParseExpressionStatement(i,r,s):void 0)||super.parseExpressionStatement(i,r,s)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(i,r,s){if(!this.match(17))return i;if(this.state.maybeInArrowParameters){let n=this.lookaheadCharCode();if(n===44||n===61||n===58||n===41)return this.setOptionalParametersError(s),i}return super.parseConditional(i,r,s)}parseParenItem(i,r){let s=super.parseParenItem(i,r);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(i)),this.match(14)){let n=this.startNodeAt(r);return n.expression=i,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return i}parseExportDeclaration(i){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(i));let r=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(re.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=$e(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(i);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(i.exportKind="type"),s&&a.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(a,r),a.declare=!0),a):null}parseClassId(i,r,s,n){if((!r||s)&&this.isContextual(113))return;super.parseClassId(i,r,s,i.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(i.typeParameters=a)}parseClassPropertyAnnotation(i){i.optional||(this.eat(35)?i.definite=!0:this.eat(17)&&(i.optional=!0));let r=this.tsTryParseTypeAnnotation();r&&(i.typeAnnotation=r)}parseClassProperty(i){if(this.parseClassPropertyAnnotation(i),this.state.isAmbientContext&&!(i.readonly&&!i.typeAnnotation)&&this.match(29)&&this.raise(re.DeclareClassFieldHasInitializer,this.state.startLoc),i.abstract&&this.match(29)){let{key:r}=i;this.raise(re.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:r.type==="Identifier"&&!i.computed?r.name:`[${this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end))}]`})}return super.parseClassProperty(i)}parseClassPrivateProperty(i){return i.abstract&&this.raise(re.PrivateElementHasAbstract,i),i.accessibility&&this.raise(re.PrivateElementHasAccessibility,i,{modifier:i.accessibility}),this.parseClassPropertyAnnotation(i),super.parseClassPrivateProperty(i)}parseClassAccessorProperty(i){return this.parseClassPropertyAnnotation(i),i.optional&&this.raise(re.AccessorCannotBeOptional,i),super.parseClassAccessorProperty(i)}pushClassMethod(i,r,s,n,a,l){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);c&&a&&this.raise(re.ConstructorHasTypeParameters,c);let{declare:o=!1,kind:u}=r;o&&(u==="get"||u==="set")&&this.raise(re.DeclareAccessor,r,{kind:u}),c&&(r.typeParameters=c),super.pushClassMethod(i,r,s,n,a,l)}pushClassPrivateMethod(i,r,s,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(r.typeParameters=a),super.pushClassPrivateMethod(i,r,s,n)}declareClassPrivateMethodInScope(i,r){i.type!=="TSDeclareMethod"&&(i.type==="MethodDefinition"&&i.value.body==null||super.declareClassPrivateMethodInScope(i,r))}parseClassSuper(i){super.parseClassSuper(i),i.superClass&&(this.match(47)||this.match(51))&&(i.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(i.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(i,r,s,n,a,l,c){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(i.typeParameters=o),super.parseObjPropValue(i,r,s,n,a,l,c)}parseFunctionParams(i,r){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(i.typeParameters=s),super.parseFunctionParams(i,r)}parseVarId(i,r){super.parseVarId(i,r),i.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(i.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(i.id.typeAnnotation=s,this.resetEndLocation(i.id))}parseAsyncArrowFromCallExpression(i,r){return this.match(14)&&(i.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(i,r)}parseMaybeAssign(i,r){var s,n,a,l,c;let o,u,f;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(o=this.state.clone(),u=this.tryParse(()=>super.parseMaybeAssign(i,r),o),!u.error)return u.node;let{context:S}=this.state,P=S[S.length-1];(P===Be.j_oTag||P===Be.j_expr)&&S.pop()}if(!((s=u)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(i,r);(!o||o===this.state)&&(o=this.state.clone());let d,m=this.tryParse(S=>{var P,A;d=this.tsParseTypeParameters(this.tsParseConstModifier);let C=super.parseMaybeAssign(i,r);return(C.type!=="ArrowFunctionExpression"||(P=C.extra)!=null&&P.parenthesized)&&S(),((A=d)==null?void 0:A.params.length)!==0&&this.resetStartLocationFromNode(C,d),C.typeParameters=d,C},o);if(!m.error&&!m.aborted)return d&&this.reportReservedArrowTypeParam(d),m.node;if(!u&&(Yd(!this.hasPlugin("jsx")),f=this.tryParse(()=>super.parseMaybeAssign(i,r),o),!f.error))return f.node;if((n=u)!=null&&n.node)return this.state=u.failState,u.node;if(m.node)return this.state=m.failState,d&&this.reportReservedArrowTypeParam(d),m.node;if((a=f)!=null&&a.node)return this.state=f.failState,f.node;throw((l=u)==null?void 0:l.error)||m.error||((c=f)==null?void 0:c.error)}reportReservedArrowTypeParam(i){var r;i.params.length===1&&!i.params[0].constraint&&!((r=i.extra)!=null&&r.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(re.ReservedArrowTypeParam,i)}parseMaybeUnary(i,r){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(i,r)}parseArrow(i){if(this.match(14)){let r=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),n});if(r.aborted)return;r.thrown||(r.error&&(this.state=r.failState),i.returnType=r.node)}return super.parseArrow(i)}parseFunctionParamType(i){this.eat(17)&&(i.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(i.typeAnnotation=r),this.resetEndLocation(i),i}isAssignable(i,r){switch(i.type){case"TSTypeCastExpression":return this.isAssignable(i.expression,r);case"TSParameterProperty":return!0;default:return super.isAssignable(i,r)}}toAssignable(i,r=!1){switch(i.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(i,r);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":r?this.expressionScope.recordArrowParameterBindingError(re.UnexpectedTypeCastInParameter,i):this.raise(re.UnexpectedTypeCastInParameter,i),this.toAssignable(i.expression,r);break;case"AssignmentExpression":!r&&i.left.type==="TSTypeCastExpression"&&(i.left=this.typeCastToParameter(i.left));default:super.toAssignable(i,r)}}toAssignableParenthesizedExpression(i,r){switch(i.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(i.expression,r);break;default:super.toAssignable(i,r)}}checkToRestConversion(i,r){switch(i.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(i.expression,!1);break;default:super.checkToRestConversion(i,r)}}isValidLVal(i,r,s){switch(i){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(s!==64||!r)&&["expression",!0];default:return super.isValidLVal(i,r,s)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(i,r){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(i,r);return n.typeParameters=s,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(i,r)}checkCommaAfterRest(i){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===i?(this.next(),!1):super.checkCommaAfterRest(i)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(i,r){let s=super.parseMaybeDefault(i,r);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(re.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(i){if(this.state.inType){if(i===62){this.finishOp(48,1);return}if(i===60){this.finishOp(47,1);return}}super.getTokenFromCode(i)}reScan_lt_gt(){let{type:i}=this.state;i===47?(this.state.pos-=1,this.readToken_lt()):i===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:i}=this.state;return i===51?(this.state.pos-=2,this.finishOp(47,1),47):i}toAssignableListItem(i,r,s){let n=i[r];n.type==="TSTypeCastExpression"&&(i[r]=this.typeCastToParameter(n)),super.toAssignableListItem(i,r,s)}typeCastToParameter(i){return i.expression.typeAnnotation=i.typeAnnotation,this.resetEndLocation(i.expression,i.typeAnnotation.loc.end),i.expression}shouldParseArrow(i){return this.match(14)?i.every(r=>this.isAssignable(r,!0)):super.shouldParseArrow(i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(i){if(this.match(47)||this.match(51)){let r=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());r&&(i.typeParameters=r)}return super.jsxParseOpeningElementAfterName(i)}getGetterSetterExpectedParamCount(i){let r=super.getGetterSetterExpectedParamCount(i),n=this.getObjectOrClassMethodParams(i)[0];return n&&this.isThisParam(n)?r+1:r}parseCatchClauseParam(){let i=super.parseCatchClauseParam(),r=this.tsTryParseTypeAnnotation();return r&&(i.typeAnnotation=r,this.resetEndLocation(i)),i}tsInAmbientContext(i){let{isAmbientContext:r,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return i()}finally{this.state.isAmbientContext=r,this.state.strict=s}}parseClass(i,r,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!i.abstract;try{return super.parseClass(i,r,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(i,r){if(this.match(80))return i.abstract=!0,this.maybeTakeDecorators(r,this.parseClass(i,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return i.abstract=!0,this.raise(re.NonClassMethodPropertyHasAbstractModifier,i),this.tsParseInterfaceDeclaration(i)}else this.unexpected(null,80)}parseMethod(i,r,s,n,a,l,c){let o=super.parseMethod(i,r,s,n,a,l,c);if((o.abstract||o.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?o.value:o).body){let{key:d}=o;this.raise(re.AbstractMethodHasImplementation,o,{methodName:d.type==="Identifier"&&!o.computed?d.name:`[${this.input.slice(this.offsetToSourcePos(d.start),this.offsetToSourcePos(d.end))}]`})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(i,r,s,n){return!r&&n?(this.parseTypeOnlyImportExportSpecifier(i,!1,s),this.finishNode(i,"ExportSpecifier")):(i.exportKind="value",super.parseExportSpecifier(i,r,s,n))}parseImportSpecifier(i,r,s,n,a){return!r&&n?(this.parseTypeOnlyImportExportSpecifier(i,!0,s),this.finishNode(i,"ImportSpecifier")):(i.importKind="value",super.parseImportSpecifier(i,r,s,n,s?4098:4096))}parseTypeOnlyImportExportSpecifier(i,r,s){let n=r?"imported":"local",a=r?"local":"exported",l=i[n],c,o=!1,u=!0,f=l.loc.start;if(this.isContextual(93)){let m=this.parseIdentifier();if(this.isContextual(93)){let S=this.parseIdentifier();mi(this.state.type)?(o=!0,l=m,c=r?this.parseIdentifier():this.parseModuleExportName(),u=!1):(c=S,u=!1)}else mi(this.state.type)?(u=!1,c=r?this.parseIdentifier():this.parseModuleExportName()):(o=!0,l=m)}else mi(this.state.type)&&(o=!0,r?(l=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(l.name,l.loc.start,!0,!0)):l=this.parseModuleExportName());o&&s&&this.raise(r?re.TypeModifierIsUsedInTypeImports:re.TypeModifierIsUsedInTypeExports,f),i[n]=l,i[a]=c;let d=r?"importKind":"exportKind";i[d]=o?"type":"value",u&&this.eatContextual(93)&&(i[a]=r?this.parseIdentifier():this.parseModuleExportName()),i[a]||(i[a]=this.cloneIdentifier(i[n])),r&&this.checkIdentifier(i[a],o?4098:4096)}fillOptionalPropertiesForTSESLint(i){var r,s,n,a,l,c,o,u,f,d,m,S,P,A,C,k,D,L,B,U,oe,me,ee,Pe,Ct,ze,Ot,le,Je,Nt,Y,z,F,G,fe,ve,Ue,Le,Xe,Me,Re,He,tt,Ae,it,dt;switch(i.type){case"ExpressionStatement":(r=i.directive)!=null||(i.directive=void 0);return;case"RestElement":i.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(s=i.decorators)!=null||(i.decorators=[]),(n=i.optional)!=null||(i.optional=!1),(a=i.typeAnnotation)!=null||(i.typeAnnotation=void 0);return;case"TSParameterProperty":(l=i.accessibility)!=null||(i.accessibility=void 0),(c=i.decorators)!=null||(i.decorators=[]),(o=i.override)!=null||(i.override=!1),(u=i.readonly)!=null||(i.readonly=!1),(f=i.static)!=null||(i.static=!1);return;case"TSEmptyBodyFunctionExpression":i.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(d=i.declare)!=null||(i.declare=!1),(m=i.returnType)!=null||(i.returnType=void 0),(S=i.typeParameters)!=null||(i.typeParameters=void 0);return;case"Property":(P=i.optional)!=null||(i.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(A=i.optional)!=null||(i.optional=!1);case"TSIndexSignature":(C=i.accessibility)!=null||(i.accessibility=void 0),(k=i.readonly)!=null||(i.readonly=!1),(D=i.static)!=null||(i.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(L=i.declare)!=null||(i.declare=!1),(B=i.definite)!=null||(i.definite=!1),(U=i.readonly)!=null||(i.readonly=!1),(oe=i.typeAnnotation)!=null||(i.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(me=i.accessibility)!=null||(i.accessibility=void 0),(ee=i.decorators)!=null||(i.decorators=[]),(Pe=i.override)!=null||(i.override=!1),(Ct=i.optional)!=null||(i.optional=!1);return;case"ClassExpression":(ze=i.id)!=null||(i.id=null);case"ClassDeclaration":(Ot=i.abstract)!=null||(i.abstract=!1),(le=i.declare)!=null||(i.declare=!1),(Je=i.decorators)!=null||(i.decorators=[]),(Nt=i.implements)!=null||(i.implements=[]),(Y=i.superTypeArguments)!=null||(i.superTypeArguments=void 0),(z=i.typeParameters)!=null||(i.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(F=i.declare)!=null||(i.declare=!1);return;case"VariableDeclarator":(G=i.definite)!=null||(i.definite=!1);return;case"TSEnumDeclaration":(fe=i.const)!=null||(i.const=!1),(ve=i.declare)!=null||(i.declare=!1);return;case"TSEnumMember":(Ue=i.computed)!=null||(i.computed=!1);return;case"TSImportType":(Le=i.qualifier)!=null||(i.qualifier=null),(Xe=i.options)!=null||(i.options=null);return;case"TSInterfaceDeclaration":(Me=i.declare)!=null||(i.declare=!1),(Re=i.extends)!=null||(i.extends=[]);return;case"TSModuleDeclaration":(He=i.declare)!=null||(i.declare=!1),(tt=i.global)!=null||(i.global=i.kind==="global");return;case"TSTypeParameter":(Ae=i.const)!=null||(i.const=!1),(it=i.in)!=null||(i.in=!1),(dt=i.out)!=null||(i.out=!1);return}}};function MP(t){if(t.type!=="MemberExpression")return!1;let{computed:e,property:i}=t;return e&&i.type!=="StringLiteral"&&(i.type!=="TemplateLiteral"||i.expressions.length>0)?!1:pm(t.object)}function FP(t,e){var i;let{type:r}=t;if((i=t.extra)!=null&&i.parenthesized)return!1;if(e){if(r==="Literal"){let{value:s}=t;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(um(t,e)||BP(t,e)||r==="TemplateLiteral"&&t.expressions.length===0||MP(t))}function um(t,e){return e?t.type==="Literal"&&(typeof t.value=="number"||"bigint"in t):t.type==="NumericLiteral"||t.type==="BigIntLiteral"}function BP(t,e){if(t.type==="UnaryExpression"){let{operator:i,argument:r}=t;if(i==="-"&&um(r,e))return!0}return!1}function pm(t){return t.type==="Identifier"?!0:t.type!=="MemberExpression"||t.computed?!1:pm(t.object)}var Jd=Ci`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),jP=t=>class extends t{parsePlaceholder(i){if(this.match(133)){let r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,i)}}finishPlaceholder(i,r){let s=i;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=r,s}getTokenFromCode(i){i===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(i)}parseExprAtom(i){return this.parsePlaceholder("Expression")||super.parseExprAtom(i)}parseIdentifier(i){return this.parsePlaceholder("Identifier")||super.parseIdentifier(i)}checkReservedWord(i,r,s,n){i!==void 0&&super.checkReservedWord(i,r,s,n)}cloneIdentifier(i){let r=super.cloneIdentifier(i);return r.type==="Placeholder"&&(r.expectedNode=i.expectedNode),r}cloneStringLiteral(i){return i.type==="Placeholder"?this.cloneIdentifier(i):super.cloneStringLiteral(i)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(i,r,s){return i==="Placeholder"||super.isValidLVal(i,r,s)}toAssignable(i,r){i&&i.type==="Placeholder"&&i.expectedNode==="Expression"?i.expectedNode="Pattern":super.toAssignable(i,r)}chStartsBindingIdentifier(i,r){if(super.chStartsBindingIdentifier(i,r))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}verifyBreakContinue(i,r){i.label&&i.label.type==="Placeholder"||super.verifyBreakContinue(i,r)}parseExpressionStatement(i,r){var s;if(r.type!=="Placeholder"||(s=r.extra)!=null&&s.parenthesized)return super.parseExpressionStatement(i,r);if(this.match(14)){let a=i;return a.label=this.finishPlaceholder(r,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let n=i;return n.name=r.name,this.finishPlaceholder(n,"Statement")}parseBlock(i,r,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(i,r,s)}parseFunctionId(i){return this.parsePlaceholder("Identifier")||super.parseFunctionId(i)}parseClass(i,r,s){let n=r?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,l=this.parsePlaceholder("Identifier");if(l)if(this.match(81)||this.match(133)||this.match(5))i.id=l;else{if(s||!r)return i.id=null,i.body=this.finishPlaceholder(l,"ClassBody"),this.finishNode(i,n);throw this.raise(Jd.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(i,r,s);return super.parseClassSuper(i),i.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!i.superClass,a),this.finishNode(i,n)}parseExport(i,r){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(i,r);let n=i;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=s,n.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(n,r)}isExportDefaultSpecifier(){if(this.match(65)){let i=this.nextTokenStart();if(this.isUnparsedContextual(i,"from")&&this.input.startsWith(nr(133),this.nextTokenStartSince(i+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(i,r){var s;return(s=i.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(i,r)}checkExport(i){let{specifiers:r}=i;r!=null&&r.length&&(i.specifiers=r.filter(s=>s.exported.type==="Placeholder")),super.checkExport(i),i.specifiers=r}parseImport(i){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(i);if(i.specifiers=[],!this.isContextual(98)&&!this.match(12))return i.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(i,"ImportDeclaration");let s=this.startNodeAtNode(r);return s.local=r,i.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(i)||this.parseNamedImportSpecifiers(i)),this.expectContextual(98),i.source=this.parseImportSource(),this.semicolon(),this.finishNode(i,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Jd.UnexpectedSpace,this.state.lastTokEndLoc)}},RP=t=>class extends t{parseV8Intrinsic(){if(this.match(54)){let i=this.state.startLoc,r=this.startNode();if(this.next(),$e(this.state.type)){let s=this.parseIdentifierName(),n=this.createIdentifier(r,s);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(i)}}parseExprAtom(i){return this.parseV8Intrinsic()||super.parseExprAtom(i)}},Xd=["minimal","fsharp","hack","smart"],Hd=["^^","@@","^","%","#"];function $P(t){if(t.has("decorators")){if(t.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let r=t.get("decorators").decoratorsBeforeExport;if(r!=null&&typeof r!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let s=t.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(t.has("flow")&&t.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(t.has("placeholders")&&t.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(t.has("pipelineOperator")){var e;let r=t.get("pipelineOperator").proposal;if(!Xd.includes(r)){let s=Xd.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}if(r==="hack"){if(t.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(t.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=t.get("pipelineOperator").topicToken;if(!Hd.includes(s)){let n=Hd.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}{var i;if(s==="#"&&((i=t.get("recordAndTuple"))==null?void 0:i.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}}else if(r==="smart"&&((e=t.get("recordAndTuple"))==null?void 0:e.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}if(t.has("moduleAttributes")){if(t.has("deprecatedImportAssert")||t.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(t.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(t.has("importAssertions")&&t.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!t.has("deprecatedImportAssert")&&t.has("importAttributes")&&t.get("importAttributes").deprecatedAssertSyntax&&t.set("deprecatedImportAssert",{}),t.has("recordAndTuple")){let r=t.get("recordAndTuple").syntaxType;if(r!=null){let s=["hash","bar"];if(!s.includes(r))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+s.map(n=>`'${n}'`).join(", "))}}if(t.has("asyncDoExpressions")&&!t.has("doExpressions")){let r=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw r.missingPlugins="doExpressions",r}if(t.has("optionalChainingAssign")&&t.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(t.has("discardBinding")&&t.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var fm={estree:VE,jsx:EP,flow:gP,typescript:LP,v8intrinsic:RP,placeholders:jP},qP=Object.keys(fm),fc=class extends pc{checkProto(e,i,r,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return r;let n=e.key;return(n.type==="Identifier"?n.name:n.value)==="__proto__"?i?(this.raise(w.RecordNoProto,n),!0):(r&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(w.DuplicateProto,n)),!0):r}shouldExitDescending(e,i){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===i}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(w.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(w.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,i){return e?this.disallowInAnd(()=>this.parseExpressionBase(i)):this.allowInAnd(()=>this.parseExpressionBase(i))}parseExpressionBase(e){let i=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){let s=this.startNodeAt(i);for(s.expressions=[r];this.eat(12);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,i){return this.disallowInAnd(()=>this.parseMaybeAssign(e,i))}parseMaybeAssignAllowIn(e,i){return this.allowInAnd(()=>this.parseMaybeAssign(e,i))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,i){let r=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let c=this.parseYield(r);return i&&(c=i.call(this,c,r)),c}let n;e?n=!1:(e=new ls,n=!0);let{type:a}=this.state;(a===10||$e(a))&&(this.state.potentialArrowAt=this.state.start);let l=this.parseMaybeConditional(e);if(i&&(l=i.call(this,l,r)),XE(this.state.type)){let c=this.startNodeAt(r),o=this.state.value;if(c.operator=o,this.match(29)){this.toAssignable(l,!0),c.left=l;let u=r.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=u&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=u&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=u&&(e.voidPatternLoc=null)}else c.left=l;return this.next(),c.right=this.parseMaybeAssign(),this.checkLVal(l,this.finishNode(c,"AssignmentExpression")),c}else n&&this.checkExpressionErrors(e,!0);if(s){let{type:c}=this.state;if((this.hasPlugin("v8intrinsic")?on(c):on(c)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(w.YieldNotInGeneratorFunction,r),this.parseYield(r)}return l}parseMaybeConditional(e){let i=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,r)?s:this.parseConditional(s,i,e)}parseConditional(e,i,r){if(this.eat(17)){let s=this.startNodeAt(i);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let i=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s,r)?s:this.parseExprOp(s,i,-1)}parseExprOp(e,i,r){if(this.isPrivateName(e)){let n=this.getPrivateNameSV(e);(r>=Da(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(w.PrivateInExpectedIn,e,{identifierName:n}),this.classScope.usePrivateName(n,e.loc.start)}let s=this.state.type;if(GE(s)&&(this.prodParam.hasIn||!this.match(58))){let n=Da(s);if(n>r){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,i)}let a=this.startNodeAt(i);a.left=e,a.operator=this.state.value;let l=s===41||s===42,c=s===40;if(c&&(n=Da(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(w.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(s,n);let o=this.finishNode(a,l||c?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(c&&(u===41||u===42)||l&&u===40)throw this.raise(w.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(o,i,r)}}return e}parseExprOpRightExpr(e,i){let r=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(i))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(w.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,i),r)});default:return this.parseExprOpBaseRightExpr(e,i)}}parseExprOpBaseRightExpr(e,i){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,iP(e)?i-1:i)}parseHackPipeBody(){var e;let{startLoc:i}=this.state,r=this.parseMaybeAssign();return BE.has(r.type)&&!((e=r.extra)!=null&&e.parenthesized)&&this.raise(w.PipeUnparenthesizedBody,i,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipeTopicUnused,i),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(w.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,i){let r=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let c=this.parseAwait(r);return i||this.checkExponentialAfterUnary(c),c}let n=this.match(34),a=this.startNode();if(ZE(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let c=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&c){let o=a.argument;o.type==="Identifier"?this.raise(w.StrictDelete,a):this.hasPropertyAsPrivateName(o)&&this.raise(w.DeletePrivateField,a)}if(!n)return i||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let l=this.parseUpdate(a,n,e);if(s){let{type:c}=this.state;if((this.hasPlugin("v8intrinsic")?on(c):on(c)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(w.AwaitNotInAsyncContext,r),this.parseAwait(r)}return l}parseUpdate(e,i,r){if(i){let a=e;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),e}let s=this.state.startLoc,n=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return n;for(;QE(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=!1,a.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(a,"UpdateExpression"))}return n}parseExprSubscripts(e){let i=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,r)?s:this.parseSubscripts(s,i)}parseSubscripts(e,i,r){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,i,r,s),s.maybeAsyncArrow=!1;while(!s.stop);return e}parseSubscript(e,i,r,s){let{type:n}=this.state;if(!r&&n===15)return this.parseBind(e,i,r,s);if(Fa(n))return this.parseTaggedTemplateExpression(e,i,s);let a=!1;if(n===18){if(r&&(this.raise(w.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,s);s.optionalChainMember=a=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,i,s,a);{let l=this.eat(0);return l||a||this.eat(16)?this.parseMember(e,i,s,l,a):this.stopParseSubscript(e,s)}}stopParseSubscript(e,i){return i.stop=!0,e}parseMember(e,i,r,s,n){let a=this.startNodeAt(i);return a.object=e,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(w.SuperPrivateField,i),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),r.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(e,i,r,s){let n=this.startNodeAt(i);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),i,r)}parseCoverCallAndAsyncArrowHead(e,i,r,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let l=this.startNodeAt(i);l.callee=e;let{maybeAsyncArrow:c,optionalChainMember:o}=r;c&&(this.expressionScope.enter(_P()),a=new ls),o&&(l.optional=s),s?l.arguments=this.parseCallExpressionArguments():l.arguments=this.parseCallExpressionArguments(e.type!=="Super",l,a);let u=this.finishCallExpression(l,o);return c&&this.shouldParseAsyncArrow()&&!s?(r.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(i),u)):(c&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(u)),this.state.maybeInArrowParameters=n,u}toReferencedArguments(e,i){this.toReferencedListDeep(e.arguments,i)}parseTaggedTemplateExpression(e,i,r){let s=this.startNodeAt(i);return s.tag=e,s.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(w.OptionalChainingNoTemplate,i),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,i){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(w.ImportCallArity,e);else for(let r of e.arguments)r.type==="SpreadElement"&&this.raise(w.ImportCallSpreadArgument,r);return this.finishNode(e,i?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,i,r){let s=[],n=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}s.push(this.parseExprListItem(11,!1,r,e))}return this.state.inFSharpPipelineDirectBody=a,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,i){var r;return this.resetPreviousNodeTrailingComments(i),this.expect(19),this.parseArrowExpression(e,i.arguments,!0,(r=i.extra)==null?void 0:r.trailingCommaLoc),i.innerComments&&fn(e,i.innerComments),i.callee.trailingComments&&fn(e,i.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let i,r=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return i=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(i):this.match(10)?this.optionFlags&512?this.parseImportCall(i):this.finishNode(i,"Import"):(this.raise(w.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(i,"Import"));case 78:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 0:return this.parseArrayLike(3,!0,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{i=this.startNode(),this.next(),i.object=null;let n=i.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(i,"BindExpression");throw this.raise(w.UnsupportedBind,n)}case 139:return this.raise(w.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.parseTopicReference(n);this.unexpected();break}case 47:{let n=this.input.codePointAt(this.nextTokenStart());Ki(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:{if(s===137)return this.parseDecimalLiteral(this.state.value);if(s===2||s===1)return this.parseArrayLike(this.state.type===2?4:3,!1,!0);if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0)}if($e(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let n=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,l=this.parseIdentifier();if(!a&&l.name==="async"&&!this.canInsertSemicolon()){let{type:c}=this.state;if(c===68)return this.resetPreviousNodeTrailingComments(l),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(l));if($e(c))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(l)):l;if(c===90)return this.resetPreviousNodeTrailingComments(l),this.parseDo(this.startNodeAtNode(l),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(l),[l],!1)):l}else this.unexpected()}}parseTopicReferenceThenEqualsSign(e,i){let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=i,this.state.pos--,this.state.end--,this.state.endLoc=Ft(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}parseTopicReference(e){let i=this.startNode(),r=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(i,r,e,s)}finishTopicReference(e,i,r,s){if(this.testTopicReferenceConfiguration(r,i,s))return r==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(w.PipeTopicUnbound,i),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(w.PrimaryTopicNotAllowed,i),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(w.PipeTopicUnconfiguredToken,i,{token:nr(s)})}testTopicReferenceConfiguration(e,i,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:nr(r)}]);case"smart":return r===27;default:throw this.raise(w.PipeTopicRequiresHackPipes,i)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(La(!0,this.prodParam.hasYield));let i=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(w.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,i,!0)}parseDo(e,i){this.expectPlugin("doExpressions"),i&&this.expectPlugin("asyncDoExpressions"),e.async=i,this.next();let r=this.state.labels;return this.state.labels=[],i?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16)?this.raise(w.SuperNotAllowed,e):!this.scope.allowSuper&&!(this.optionFlags&16)&&this.raise(w.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(w.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),i=this.startNodeAt(Ft(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(i,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let i=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,i,"sent")}return this.parseFunction(e)}parseMetaProperty(e,i,r){e.meta=i;let s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||s)&&this.raise(w.UnsupportedMetaProperty,e.property,{target:i.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let i=this.isContextual(105);return this.expectPlugin(i?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=i?"source":"defer",this.parseImportCall(e)}else{let i=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(w.ImportMetaOutsideModule,i),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,i,"meta")}}parseLiteralAtNode(e,i,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.value=e,this.next(),this.finishNode(r,i)}parseLiteral(e,i){let r=this.startNode();return this.parseLiteralAtNode(e,i,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let i=this.startNode();return this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.pattern=e.pattern,i.flags=e.flags,this.next(),this.finishNode(i,"RegExpLiteral")}parseBooleanLiteral(e){let i=this.startNode();return i.value=e,this.next(),this.finishNode(i,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let i=this.state.startLoc,r;this.next(),this.expressionScope.enter(kP());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,l=[],c=new ls,o=!0,u,f;for(;!this.match(11);){if(o)o=!1;else if(this.expect(12,c.optionalParametersLoc===null?null:c.optionalParametersLoc),this.match(11)){f=this.state.startLoc;break}if(this.match(21)){let S=this.state.startLoc;if(u=this.state.startLoc,l.push(this.parseParenItem(this.parseRestBinding(),S)),!this.checkCommaAfterRest(41))break}else l.push(this.parseMaybeAssignAllowInOrVoidPattern(11,c,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let m=this.startNodeAt(i);return e&&this.shouldParseArrow(l)&&(m=this.parseArrow(m))?(this.checkDestructuringPrivate(c),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(m,l,!1),m):(this.expressionScope.exit(),l.length||this.unexpected(this.state.lastTokStartLoc),f&&this.unexpected(f),u&&this.unexpected(u),this.checkExpressionErrors(c,!0),this.toReferencedListDeep(l,!0),l.length>1?(r=this.startNodeAt(a),r.expressions=l,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,d)):r=l[0],this.wrapParenthesis(i,r))}wrapParenthesis(e,i){if(!(this.optionFlags&1024))return this.addExtra(i,"parenthesized",!0),this.addExtra(i,"parenStart",e.index),this.takeSurroundingComments(i,e.index,this.state.lastTokEndLoc.index),i;let r=this.startNodeAt(e);return r.expression=i,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,i){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let i=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,i,"target");return this.scope.allowNewTarget||this.raise(w.UnexpectedNewTarget,r),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let i=this.parseExprList(11);this.toReferencedList(i),e.arguments=i}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let i=this.match(83),r=this.parseNoCallExpr();e.callee=r,i&&(r.type==="Import"||r.type==="ImportExpression")&&this.raise(w.ImportCallNotNewExpression,r)}parseTemplateElement(e){let{start:i,startLoc:r,end:s,value:n}=this.state,a=i+1,l=this.startNodeAt(Ft(r,1));n===null&&(e||this.raise(w.InvalidEscapeSequenceTemplate,Ft(this.state.firstInvalidTemplateEscapePos,1)));let c=this.match(24),o=c?-1:-2,u=s+o;l.value={raw:this.input.slice(a,u).replace(/\r\n?/g,`
10
10
  `),cooked:n===null?null:n.slice(1,o)},l.tail=c,this.next();let f=this.finishNode(l,"TemplateElement");return this.resetEndLocation(f,Ft(this.state.lastTokEndLoc,o)),f}parseTemplate(e){let i=this.startNode(),r=this.parseTemplateElement(e),s=[r],n=[];for(;!r.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(r=this.parseTemplateElement(e));return i.expressions=n,i.quasis=s,this.finishNode(i,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,i,r,s){r&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,l=!0,c=this.startNode();for(c.properties=[],this.next();!this.match(e);){if(l)l=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(c);break}let u;i?u=this.parseBindingProperty():(u=this.parsePropertyDefinition(s),a=this.checkProto(u,r,a,s)),r&&!this.isObjectProperty(u)&&u.type!=="SpreadElement"&&this.raise(w.InvalidRecordProperty,u),u.shorthand&&this.addExtra(u,"shorthand",!0),c.properties.push(u)}this.next(),this.state.inFSharpPipelineDirectBody=n;let o="ObjectExpression";return i?o="ObjectPattern":r&&(o="RecordExpression"),this.finishNode(c,o)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let i=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(w.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)i.push(this.parseDecorator());let r=this.startNode(),s=!1,n=!1,a;if(this.match(21))return i.length&&this.unexpected(),this.parseSpread();i.length&&(r.decorators=i,i=[]),r.method=!1,e&&(a=this.state.startLoc);let l=this.eat(55);this.parsePropertyNamePrefixOperator(r);let c=this.state.containsEsc;if(this.parsePropertyName(r,e),!l&&!c&&this.maybeAsyncOrAccessorProp(r)){let{key:o}=r,u=o.name;u==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(o),l=this.eat(55),this.parsePropertyName(r)),(u==="get"||u==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(o),r.kind=u,this.match(55)&&(l=!0,this.raise(w.AccessorIsGenerator,this.state.curPosition(),{kind:u}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,a,l,s,!1,n,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var i;let r=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e);s.length!==r&&this.raise(e.kind==="get"?w.BadGetterArity:w.BadSetterArity,e),e.kind==="set"&&((i=s[s.length-1])==null?void 0:i.type)==="RestElement"&&this.raise(w.BadSetterRestParameter,e)}parseObjectMethod(e,i,r,s,n){if(n){let a=this.parseMethod(e,i,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(r||i||this.match(10))return s&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,i,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,i,r,s){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(e);if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(i,this.cloneIdentifier(e.key));else if(this.match(29)){let n=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=n):this.raise(w.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(i,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,i,r,s,n,a,l){let c=this.parseObjectMethod(e,r,s,n,a)||this.parseObjectProperty(e,i,n,l);return c||this.unexpected(),c}parsePropertyName(e,i){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:r,value:s}=this.state,n;if(mi(r))n=this.parseIdentifier(!0);else switch(r){case 135:n=this.parseNumericLiteral(s);break;case 134:n=this.parseStringLiteral(s);break;case 136:n=this.parseBigIntLiteral(s);break;case 139:{let a=this.state.startLoc;i!=null?i.privateKeyLoc===null&&(i.privateKeyLoc=a):this.raise(w.UnexpectedPrivateField,a),n=this.parsePrivateName();break}default:if(r===137){n=this.parseDecimalLiteral(s);break}this.unexpected()}e.key=n,r!==139&&(e.computed=!1)}}initFunction(e,i){e.id=null,e.generator=!1,e.async=i}parseMethod(e,i,r,s,n,a,l=!1){this.initFunction(e,r),e.generator=i,this.scope.enter(530|(l?576:0)|(n?32:0)),this.prodParam.enter(La(r,e.generator)),this.parseFunctionParams(e,s);let c=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),c}parseArrayLike(e,i,r,s){r&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(e,!r,s,a),this.state.inFSharpPipelineDirectBody=n,this.finishNode(a,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,i,r,s){this.scope.enter(518);let n=La(r,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,r);let a=this.state.maybeInArrowParameters;return i&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,i,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,i,r){this.toAssignableList(i,r,!1),e.params=i}parseFunctionBodyAndFinish(e,i,r=!1){return this.parseFunctionBody(e,!1,r),this.finishNode(e,i)}parseFunctionBody(e,i,r=!1){let s=i&&!this.match(5);if(this.expressionScope.enter(lm()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,i,!1);else{let n=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,l=>{let c=!this.isSimpleParamList(e.params);l&&c&&this.raise(w.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let o=!n&&this.state.strict;this.checkParams(e,!this.state.strict&&!i&&!r&&!c,i,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let i=0,r=e.length;i<r;i++)if(!this.isSimpleParameter(e[i]))return!1;return!0}checkParams(e,i,r,s=!0){let n=!i&&new Set,a={type:"FormalParameters"};for(let l of e.params)this.checkLVal(l,a,5,n,s)}parseExprList(e,i,r,s){let n=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(e,i,r))}return n}parseExprListItem(e,i,r,s){let n;if(this.match(12))i||this.raise(w.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){let a=this.state.startLoc;n=this.parseParenItem(this.parseSpread(r),a)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(w.UnexpectedArgumentPlaceholder,this.state.startLoc);let a=this.startNode();this.next(),n=this.finishNode(a,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(e,r,this.parseParenItem);return n}parseIdentifier(e){let i=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(i,r)}createIdentifier(e,i){return e.name=i,e.loc.identifierName=i,this.finishNode(e,"Identifier")}createIdentifierAt(e,i,r){return e.name=i,e.loc.identifierName=i,this.finishNodeAt(e,"Identifier",r)}parseIdentifierName(e){let i,{startLoc:r,type:s}=this.state;mi(s)?i=this.state.value:this.unexpected();let n=zE(s);return e?n&&this.replaceToken(132):this.checkReservedWord(i,r,n,!1),this.next(),i}checkReservedWord(e,i,r,s){if(e.length>10||!fP(e))return;if(r&&cP(e)){this.raise(w.UnexpectedKeyword,i,{keyword:e});return}if((this.state.strict?s?sm:im:tm)(e,this.inModule)){this.raise(w.UnexpectedReservedWord,i,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(w.YieldBindingIdentifier,i);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(w.AwaitBindingIdentifier,i);return}if(this.scope.inStaticBlock){this.raise(w.AwaitBindingIdentifierInStaticBlock,i);return}this.expressionScope.recordAsyncArrowParametersError(i)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(w.ArgumentsInClass,i);return}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let i=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(w.AwaitExpressionFormalParameter,i),this.eat(55)&&this.raise(w.ObsoleteAwaitStar,i),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(i.argument=this.parseMaybeUnary(null,!0)),this.finishNode(i,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||Fa(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let i=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(w.YieldInParameter,i);let r=!1,s=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:s=this.parseMaybeAssign()}return i.delegate=r,i.argument=s,this.finishNode(i,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(w.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,i){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(w.PipelineHeadSequenceExpression,i)}parseSmartPipelineBodyInStyle(e,i){if(this.isSimpleReference(e)){let r=this.startNodeAt(i);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}else{let r=this.startNodeAt(i);return this.checkSmartPipeTopicBodyEarlyErrors(i),r.expression=e,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(w.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipelineTopicUnused,e)}withTopicBindingContext(e){let i=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=i}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let i=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=i}}else return e()}withSoloAwaitPermittingContext(e){let i=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=i}}allowInAnd(e){let i=this.prodParam.currentFlags();if(8&~i){this.prodParam.enter(i|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let i=this.prodParam.currentFlags();if(8&i){this.prodParam.enter(i&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let i=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,e);return this.state.inFSharpPipelineDirectBody=r,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let i=this.startNodeAt(this.state.endLoc);this.next();let r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(i,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let i=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(i,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,i,r){if(i!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(e===3?93:e===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(i))}return this.parseMaybeAssignAllowIn(i,r)}parsePropertyNamePrefixOperator(e){}},Yl={kind:1},UP={kind:2},KP=/[\uD800-\uDFFF]/u,zl=/in(?:stanceof)?/y;function VP(t,e,i){for(let r=0;r<t.length;r++){let s=t[r],{type:n}=s;if(typeof n=="number"){{if(n===139){let{loc:a,start:l,value:c,end:o}=s,u=l+1,f=Ft(a.start,1);t.splice(r,1,new wi({type:qi(27),value:"#",start:l,end:u,startLoc:a.start,endLoc:f}),new wi({type:qi(132),value:c,start:u,end:o,startLoc:f,endLoc:a.end})),r++;continue}if(Fa(n)){let{loc:a,start:l,value:c,end:o}=s,u=l+1,f=Ft(a.start,1),d;e.charCodeAt(l-i)===96?d=new wi({type:qi(22),value:"`",start:l,end:u,startLoc:a.start,endLoc:f}):d=new wi({type:qi(8),value:"}",start:l,end:u,startLoc:a.start,endLoc:f});let m,S,P,A;n===24?(S=o-1,P=Ft(a.end,-1),m=c===null?null:c.slice(1,-1),A=new wi({type:qi(22),value:"`",start:S,end:o,startLoc:P,endLoc:a.end})):(S=o-2,P=Ft(a.end,-2),m=c===null?null:c.slice(1,-2),A=new wi({type:qi(23),value:"${",start:S,end:o,startLoc:P,endLoc:a.end})),t.splice(r,1,d,new wi({type:qi(20),value:m,start:u,end:S,startLoc:f,endLoc:P}),A),r+=2;continue}}s.type=qi(n)}}return t}var hc=class extends fc{parseTopLevel(e,i){return e.program=this.parseProgram(i,140,this.options.sourceType==="module"?"module":"script"),e.comments=this.comments,this.optionFlags&256&&(e.tokens=VP(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,i,r){if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,i),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[n,a]of Array.from(this.scope.undefinedExports))this.raise(w.ModuleExportUndefined,a,{localName:n});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return i===140?s=this.finishNode(e,"Program"):s=this.finishNodeAt(e,"Program",Ft(this.state.startLoc,-1)),s}stmtToDirective(e){let i=this.castNodeTo(e,"Directive"),r=this.castNodeTo(e.expression,"DirectiveLiteral"),s=r.value,n=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),a=r.value=n.slice(1,-1);return this.addExtra(r,"raw",n),this.addExtra(r,"rawValue",a),this.addExtra(r,"expressionValue",s),i.value=r,delete e.expression,i}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),i=this.codePointAtPos(e);return this.chStartsBindingIdentifier(i,e)}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),i=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let r=this.lookaheadCharCodeSince(e+2);if(r!==61&&r!==58&&r!==59)return!1}return!!(this.chStartsBindingIdentifier(i,e)||this.isUnparsedContextual(e,"void"))}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let i=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(i,e))return!0}return!1}chStartsBindingIdentifier(e,i){if(Ki(e)){if(zl.lastIndex=i,zl.test(this.input)){let r=this.codePointAtPos(zl.lastIndex);if(!as(r)&&r!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),i=this.codePointAtPos(e);return this.chStartsBindingPattern(i)||this.chStartsBindingIdentifier(i,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),i=this.codePointAtPos(e);return i===123||this.chStartsBindingIdentifier(i,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let i=0;return this.options.annexB&&!this.state.strict&&(i|=4,e&&(i|=8)),this.parseStatementLike(i)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let i=null;return this.match(26)&&(i=this.parseDecorators(!0)),this.parseStatementContent(e,i)}parseStatementContent(e,i){let r=this.state.type,s=this.startNode(),n=!!(e&2),a=!!(e&4),l=e&1;switch(r){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?w.StrictFunction:this.options.annexB?w.SloppyFunctionAnnexB:w.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(i,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(w.AwaitUsingNotInAsyncContext,s):this.raise(w.UnexpectedLexicalDeclaration,s):this.raise(w.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?n||this.raise(w.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(w.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let u=this.nextTokenStart(),f=this.codePointAtPos(u);if(f!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(f,u)&&f!==123))break}case 75:n||this.raise(w.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let u=this.state.value;return this.parseVarStatement(s,u)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let u=this.lookaheadCharCode();if(u===40||u===46)break}case 82:{!(this.optionFlags&8)&&!l&&this.raise(w.UnexpectedImportExport,this.state.startLoc),this.next();let u;return r===83?u=this.parseImport(s):u=this.parseExport(s,i),this.assertModuleNodeAllowed(u),u}default:if(this.isAsyncFunction())return n||this.raise(w.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&a)}let c=this.state.value,o=this.parseExpression();return $e(r)&&o.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,c,o,e):this.parseExpressionStatement(s,o,i)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(w.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,i,r){if(e){var s;(s=i.decorators)!=null&&s.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(w.DecoratorsBeforeAfterExport,i.decorators[0]),i.decorators.unshift(...e)):i.decorators=e,this.resetStartLocationFromNode(i,e[0]),r&&this.resetStartLocationFromNode(r,i)}return i}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let i=[];do i.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(w.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(w.UnexpectedLeadingDecorator,this.state.startLoc);return i}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let i=this.state.startLoc,r;if(this.match(10)){let s=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(s,r);let n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==r&&this.raise(w.DecoratorArgumentsOutsideParentheses,n)}else{for(r=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(i);s.object=r,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,r=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r,i)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,i){if(this.eat(10)){let r=this.startNodeAt(i);return r.callee=e,r.arguments=this.parseCallExpressionArguments(),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,i){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,i),this.finishNode(e,i?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,i){let r;for(r=0;r<this.state.labels.length;++r){let s=this.state.labels[r];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(i||s.kind===1)||e.label&&i))break}if(r===this.state.labels.length){let s=i?"BreakStatement":"ContinueStatement";this.raise(w.IllegalBreakContinue,e,{type:s})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Yl),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Yl);let i=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(i=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return i!==null&&this.unexpected(i),this.parseFor(e,null);let r=this.isContextual(100);{let c=this.isAwaitUsing(),o=c||this.isForUsing(),u=r&&this.hasFollowingBindingAtom()||o;if(this.match(74)||this.match(75)||u){let f=this.startNode(),d;c?(d="await using",this.recordAwaitIfAllowed()||this.raise(w.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):d=this.state.value,this.next(),this.parseVar(f,!0,d);let m=this.finishNode(f,"VariableDeclaration"),S=this.match(58);return S&&o&&this.raise(w.ForInUsing,m),(S||this.isContextual(102))&&m.declarations.length===1?this.parseForIn(e,m,i):(i!==null&&this.unexpected(i),this.parseFor(e,m))}}let s=this.isContextual(95),n=new ls,a=this.parseExpression(!0,n),l=this.isContextual(102);if(l&&(r&&this.raise(w.ForOfLet,a),i===null&&s&&a.type==="Identifier"&&this.raise(w.ForOfAsync,a)),l||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(a,!0);let c=l?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:c}),this.parseForIn(e,a,i)}else this.checkExpressionErrors(n,!0);return i!==null&&this.unexpected(i),this.parseFor(e,a)}parseFunctionStatement(e,i,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(i?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(w.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let i=e.cases=[];this.expect(5),this.state.labels.push(UP),this.scope.enter(256);let r;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);r&&this.finishNode(r,"SwitchCase"),i.push(r=this.startNode()),r.consequent=[],this.next(),n?r.test=this.parseExpression():(s&&this.raise(w.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,r.test=null),this.expect(14)}else r?r.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(w.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let i=this.startNode();this.next(),this.match(10)?(this.expect(10),i.param=this.parseCatchClauseParam(),this.expect(11)):(i.param=null,this.scope.enter(0)),i.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(i,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(w.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,i,r=!1){return this.next(),this.parseVar(e,!1,i,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Yl),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(w.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,i,r,s){for(let a of this.state.labels)a.name===i&&this.raise(w.LabelRedeclaration,r,{labelName:i});let n=HE(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let l=this.state.labels[a];if(l.statementStart===e.start)l.statementStart=this.sourceToOffsetPos(this.state.start),l.kind=n;else break}return this.state.labels.push({name:i,kind:n,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,i,r){return e.expression=i,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,i=!0,r){let s=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),i&&this.scope.enter(0),this.parseBlockBody(s,e,!1,8,r),i&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,i,r,s,n){let a=e.body=[],l=e.directives=[];this.parseBlockOrModuleBlockBody(a,i?l:void 0,r,s,n)}parseBlockOrModuleBlockBody(e,i,r,s,n){let a=this.state.strict,l=!1,c=!1;for(;!this.match(s);){let o=r?this.parseModuleItem():this.parseStatementListItem();if(i&&!c){if(this.isValidDirective(o)){let u=this.stmtToDirective(o);i.push(u),!l&&u.value.value==="use strict"&&(l=!0,this.setStrict(!0));continue}c=!0,this.state.strictErrors.clear()}e.push(o)}n?.call(this,l),a||this.setStrict(!1),this.next()}parseFor(e,i){return e.init=i,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,i,r){let s=this.match(58);return this.next(),s?r!==null&&this.unexpected(r):e.await=r!==null,i.type==="VariableDeclaration"&&i.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||i.kind!=="var"||i.declarations[0].id.type!=="Identifier")&&this.raise(w.ForInOfLoopInitializer,i,{type:s?"ForInStatement":"ForOfStatement"}),i.type==="AssignmentPattern"&&this.raise(w.InvalidLhs,i,{ancestor:{type:"ForStatement"}}),e.left=i,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,i,r,s=!1){let n=e.declarations=[];for(e.kind=r;;){let a=this.startNode();if(this.parseVarId(a,r),a.init=this.eat(29)?i?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!s&&(a.id.type!=="Identifier"&&!(i&&(this.match(58)||this.isContextual(102)))?this.raise(w.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(r==="const"||r==="using"||r==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(w.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r})),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,i){let r=this.parseBindingAtom();i==="using"||i==="await using"?(r.type==="ArrayPattern"||r.type==="ObjectPattern")&&this.raise(w.UsingDeclarationHasBindingPattern,r.loc.start):r.type==="VoidPattern"&&this.raise(w.UnexpectedVoidPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},i==="var"?5:8201),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,i=0){let r=i&2,s=!!(i&1),n=s&&!(i&4),a=!!(i&8);this.initFunction(e,a),this.match(55)&&(r&&this.raise(w.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),s&&(e.id=this.parseFunctionId(n));let l=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(La(a,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=l,e}parseFunctionId(e){return e||$e(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,i){this.expect(10),this.expressionScope.enter(IP()),e.params=this.parseBindingList(11,41,2|(i?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,i,r){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,i,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,i?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,i){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},s=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(w.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let a=this.startNode();s.length&&(a.decorators=s,this.resetStartLocationFromNode(a,s[0]),s=[]),this.parseClassMember(n,a,r),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(w.DecoratorConstructor,a)}}),this.state.strict=i,this.next(),s.length)throw this.raise(w.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,i){let r=this.parseIdentifier(!0);if(this.isClassMethod()){let s=i;return s.kind="method",s.computed=!1,s.key=r,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=i;return s.computed=!1,s.key=r,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,i,r){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,i))return;if(this.eat(5)){this.parseClassStaticBlock(e,i);return}}this.parseClassMemberWithIsStatic(e,i,r,s)}parseClassMemberWithIsStatic(e,i,r,s){let n=i,a=i,l=i,c=i,o=i,u=n,f=n;if(i.static=s,this.parsePropertyNamePrefixOperator(i),this.eat(55)){u.kind="method";let C=this.match(139);if(this.parseClassElementName(u),this.parsePostMemberNameModifiers(u),C){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(w.ConstructorIsGenerator,n.key),this.pushClassMethod(e,n,!0,!1,!1,!1);return}let d=!this.state.containsEsc&&$e(this.state.type),m=this.parseClassElementName(i),S=d?m.name:null,P=this.isPrivateName(m),A=this.state.startLoc;if(this.parsePostMemberNameModifiers(f),this.isClassMethod()){if(u.kind="method",P){this.pushClassPrivateMethod(e,a,!1,!1);return}let C=this.isNonstaticConstructor(n),k=!1;C&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(w.DuplicateConstructor,m),C&&this.hasPlugin("typescript")&&i.override&&this.raise(w.OverrideOnConstructor,m),r.hadConstructor=!0,k=r.hadSuperClass),this.pushClassMethod(e,n,!1,!1,C,k)}else if(this.isClassProperty())P?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,l);else if(S==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(m);let C=this.eat(55);f.optional&&this.unexpected(A),u.kind="method";let k=this.match(139);this.parseClassElementName(u),this.parsePostMemberNameModifiers(f),k?this.pushClassPrivateMethod(e,a,C,!0):(this.isNonstaticConstructor(n)&&this.raise(w.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,C,!0,!1,!1))}else if((S==="get"||S==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(m),u.kind=S;let C=this.match(139);this.parseClassElementName(n),C?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(w.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(S==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(m);let C=this.match(139);this.parseClassElementName(l),this.pushClassAccessorProperty(e,o,C)}else this.isLineTerminator()?P?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,l):this.unexpected()}parseClassElementName(e){let{type:i,value:r}=this.state;if((i===132||i===134)&&e.static&&r==="prototype"&&this.raise(w.StaticPrototype,this.state.startLoc),i===139){r==="constructor"&&this.raise(w.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return e.key=s,s}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,i){var r;this.scope.enter(720);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=i.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(i,"StaticBlock")),(r=i.decorators)!=null&&r.length&&this.raise(w.DecoratorStaticBlock,i)}pushClassProperty(e,i){!i.computed&&this.nameIsConstructor(i.key)&&this.raise(w.ConstructorClassField,i.key),e.body.push(this.parseClassProperty(i))}pushClassPrivateProperty(e,i){let r=this.parseClassPrivateProperty(i);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,i,r){!r&&!i.computed&&this.nameIsConstructor(i.key)&&this.raise(w.ConstructorClassField,i.key);let s=this.parseClassAccessorProperty(i);e.body.push(s),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(e,i,r,s,n,a){e.body.push(this.parseMethod(i,r,s,n,a,"ClassMethod",!0))}pushClassPrivateMethod(e,i,r,s){let n=this.parseMethod(i,r,s,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);let a=n.kind==="get"?n.static?6:2:n.kind==="set"?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,a)}declareClassPrivateMethodInScope(e,i){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),i,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(lm()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,i,r,s=8331){if($e(this.state.type))e.id=this.parseIdentifier(),i&&this.declareNameFromIdentifier(e.id,s);else if(r||!i)e.id=null;else throw this.raise(w.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,i){let r=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,r),n=!s||this.eat(12),a=n&&this.eatExportStar(e),l=a&&this.maybeParseExportNamespaceSpecifier(e),c=n&&(!l||this.eat(12)),o=s||a;if(a&&!l){if(s&&this.unexpected(),i)throw this.raise(w.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let u=this.maybeParseExportNamedSpecifiers(e);s&&n&&!a&&!u&&this.unexpected(null,5),l&&c&&this.unexpected(null,98);let f;if(o||u){if(f=!1,i)throw this.raise(w.UnsupportedDecoratorExport,e);this.parseExportFrom(e,o)}else f=this.maybeParseExportDeclaration(e);if(o||u||f){var d;let m=e;if(this.checkExport(m,!0,!1,!!m.source),((d=m.declaration)==null?void 0:d.type)==="ClassDeclaration")this.maybeTakeDecorators(i,m.declaration,m);else if(i)throw this.raise(w.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(m,"ExportNamedDeclaration")}if(this.eat(65)){let m=e,S=this.parseExportDefaultExpression();if(m.declaration=S,S.type==="ClassDeclaration")this.maybeTakeDecorators(i,S,m);else if(i)throw this.raise(w.UnsupportedDecoratorExport,e);return this.checkExport(m,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(m,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,i){if(i||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",i?.loc.start);let r=i||this.parseIdentifier(!0),s=this.startNodeAtNode(r);return s.exported=r,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var i,r;(r=(i=e).specifiers)!=null||(i.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let i=e;i.specifiers||(i.specifiers=[]);let r=i.exportKind==="type";return i.specifiers.push(...this.parseExportSpecifiers(r)),i.source=null,this.hasPlugin("importAssertions")?i.assertions=[]:i.attributes=[],i.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(w.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(w.UnsupportedDefaultExport,this.state.startLoc);let i=this.parseMaybeAssignAllowIn();return this.semicolon(),i}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if($e(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),n=this.input.charCodeAt(s);if(n===123||this.chStartsBindingIdentifier(n,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let i=this.nextTokenStart(),r=this.isUnparsedContextual(i,"from");if(this.input.charCodeAt(i)===44||$e(this.state.type)&&r)return!0;if(this.match(65)&&r){let s=this.input.charCodeAt(this.nextTokenStartSince(i+4));return s===34||s===39}return!1}parseExportFrom(e,i){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):i&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(w.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(w.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(w.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,i,r,s){if(i){var n;if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var a;let l=e.declaration;l.type==="Identifier"&&l.name==="from"&&l.end-l.start===4&&!((a=l.extra)!=null&&a.parenthesized)&&this.raise(w.ExportDefaultFromAsIdentifier,l)}}else if((n=e.specifiers)!=null&&n.length)for(let l of e.specifiers){let{exported:c}=l,o=c.type==="Identifier"?c.name:c.value;if(this.checkDuplicateExports(l,o),!s&&l.local){let{local:u}=l;u.type!=="Identifier"?this.raise(w.ExportBindingIsString,l,{localName:u.value,exportName:o}):(this.checkReservedWord(u.name,u.loc.start,!0,!1),this.scope.checkLocalExport(u))}}else if(e.declaration){let l=e.declaration;if(l.type==="FunctionDeclaration"||l.type==="ClassDeclaration"){let{id:c}=l;if(!c)throw new Error("Assertion failure");this.checkDuplicateExports(e,c.name)}else if(l.type==="VariableDeclaration")for(let c of l.declarations)this.checkDeclaration(c.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let i of e.properties)this.checkDeclaration(i);else if(e.type==="ArrayPattern")for(let i of e.elements)i&&this.checkDeclaration(i);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,i){this.exportedIdentifiers.has(i)&&(i==="default"?this.raise(w.DuplicateDefaultExport,e):this.raise(w.DuplicateExport,e,{exportName:i})),this.exportedIdentifiers.add(i)}parseExportSpecifiers(e){let i=[],r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),n=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),i.push(this.parseExportSpecifier(a,n,e,s))}return i}parseExportSpecifier(e,i,r,s){return this.eatContextual(93)?e.exported=this.parseModuleExportName():i?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),i=KP.exec(e.value);return i&&this.raise(w.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:i[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:i,value:r})=>r.value==="json"&&(i.type==="Identifier"?i.name==="type":i.value==="type")):!1}checkImportReflection(e){let{specifiers:i}=e,r=i.length===1?i[0].type:null;if(e.phase==="source")r!=="ImportDefaultSpecifier"&&this.raise(w.SourcePhaseImportRequiresDefault,i[0].loc.start);else if(e.phase==="defer")r!=="ImportNamespaceSpecifier"&&this.raise(w.DeferImportRequiresNamespace,i[0].loc.start);else if(e.module){var s;r!=="ImportDefaultSpecifier"&&this.raise(w.ImportReflectionNotBinding,i[0].loc.start),((s=e.assertions)==null?void 0:s.length)>0&&this.raise(w.ImportReflectionHasAssertion,i[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:i}=e;if(i!=null){let r=i.find(s=>{let n;if(s.type==="ExportSpecifier"?n=s.local:s.type==="ImportSpecifier"&&(n=s.imported),n!==void 0)return n.type==="Identifier"?n.name!=="default":n.value!=="default"});r!==void 0&&this.raise(w.ImportJSONBindingNotDefault,r.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,i,r,s){i||(r==="module"?(this.expectPlugin("importReflection",s),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),r==="source"?(this.expectPlugin("sourcePhaseImports",s),e.phase="source"):r==="defer"?(this.expectPlugin("deferredImportEvaluation",s),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,i){if(!this.isPotentialImportPhase(i))return this.applyImportPhase(e,i,null),null;let r=this.startNode(),s=this.parseIdentifierName(!0),{type:n}=this.state;return(mi(n)?n!==98||this.lookaheadCharCode()===102:n!==12)?(this.applyImportPhase(e,i,s,r.loc.start),null):(this.applyImportPhase(e,i,null),this.createIdentifier(r,s))}isPrecedingIdImportPhase(e){let{type:i}=this.state;return $e(i)?i!==98||this.lookaheadCharCode()===102:i!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,i){e.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(e,i)||this.eat(12),n=s&&this.maybeParseStarImportSpecifier(e);return s&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){var i;return(i=e.specifiers)!=null||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,i,r){i.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(i,r))}finishImportSpecifier(e,i,r=8201){return this.checkLVal(e.local,{type:i},r),this.finishNode(e,i)}parseImportAttributes(){this.expect(5);let e=[],i=new Set;do{if(this.match(8))break;let r=this.startNode(),s=this.state.value;if(i.has(s)&&this.raise(w.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),i.add(s),this.match(134)?r.key=this.parseStringLiteral(s):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(w.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],i=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),r.key.name!=="type"&&this.raise(w.ModuleAttributeDifferentFromType,r.key),i.has(r.key.name)&&this.raise(w.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),i.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(w.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let i;var r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(i=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):i=this.parseImportAttributes(),r=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(w.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),i=this.parseImportAttributes()):i=[];!r&&this.hasPlugin("importAssertions")?e.assertions=i:e.attributes=i}maybeParseDefaultImportSpecifier(e,i){if(i){let r=this.startNodeAtNode(i);return r.local=i,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}else if(mi(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let i=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,i,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else{if(this.eat(14))throw this.raise(w.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let r=this.startNode(),s=this.match(134),n=this.isContextual(130);r.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(r,s,e.importKind==="type"||e.importKind==="typeof",n,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,i,r,s,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:a}=e;if(i)throw this.raise(w.ImportBindingIsString,e,{importName:a.value});this.checkReservedWord(a.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(e,"ImportSpecifier",n)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},ja=class extends hc{constructor(e,i,r){e=UE(e),super(e,i),this.options=e,this.initializeScopes(),this.plugins=r,this.filename=e.sourceFilename,this.startIndex=e.startIndex;let s=0;e.allowAwaitOutsideFunction&&(s|=1),e.allowReturnOutsideFunction&&(s|=2),e.allowImportExportEverywhere&&(s|=8),e.allowSuperOutsideMethod&&(s|=16),e.allowUndeclaredExports&&(s|=64),e.allowNewTargetOutsideFunction&&(s|=4),e.allowYieldOutsideFunction&&(s|=32),e.ranges&&(s|=128),e.tokens&&(s|=256),e.createImportExpressions&&(s|=512),e.createParenthesizedExpressions&&(s|=1024),e.errorRecovery&&(s|=2048),e.attachComment&&(s|=4096),e.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return pn}parse(){this.enterInitialScopes();let e=this.startNode(),i=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,i),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}};function WP(t,e){var i;if(((i=e)==null?void 0:i.sourceType)==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";let r=ln(e,t),s=r.parse();if(r.sawUnambiguousESM)return s;if(r.ambiguousScriptDifferentAst)try{return e.sourceType="script",ln(e,t).parse()}catch{}else s.program.sourceType="script";return s}catch(r){try{return e.sourceType="script",ln(e,t).parse()}catch{}throw r}}else return ln(e,t).parse()}function YP(t,e){let i=ln(e,t);return i.options.strictMode&&(i.state.strict=!0),i.getExpression()}function zP(t){let e={};for(let i of Object.keys(t))e[i]=qi(t[i]);return e}var JP=zP(YE);function ln(t,e){let i=ja,r=new Map;if(t!=null&&t.plugins){for(let s of t.plugins){let n,a;typeof s=="string"?n=s:[n,a]=s,r.has(n)||r.set(n,a||{})}$P(r),i=XP(r)}return new i(t,e,r)}var Gd=new Map;function XP(t){let e=[];for(let s of qP)t.has(s)&&e.push(s);let i=e.join("|"),r=Gd.get(i);if(!r){r=ja;for(let s of e)r=fm[s](r);Gd.set(i,r)}return r}hn.parse=WP;hn.parseExpression=YP;hn.tokTypes=JP});var Pc=_(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.Var=Ee.User=Ee.Statement=Ee.SpreadProperty=Ee.Scope=Ee.RestProperty=Ee.ReferencedMemberExpression=Ee.ReferencedIdentifier=Ee.Referenced=Ee.Pure=Ee.NumericLiteralTypeAnnotation=Ee.Generated=Ee.ForAwaitStatement=Ee.Flow=Ee.Expression=Ee.ExistentialTypeParam=Ee.BlockScoped=Ee.BindingIdentifier=void 0;var iQ=Ee.ReferencedIdentifier=["Identifier","JSXIdentifier"],rQ=Ee.ReferencedMemberExpression=["MemberExpression"],sQ=Ee.BindingIdentifier=["Identifier"],nQ=Ee.Statement=["Statement"],aQ=Ee.Expression=["Expression"],oQ=Ee.Scope=["Scopable","Pattern"],lQ=Ee.Referenced=null,cQ=Ee.BlockScoped=null,uQ=Ee.Var=["VariableDeclaration"],pQ=Ee.User=null,fQ=Ee.Generated=null,hQ=Ee.Pure=null,dQ=Ee.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],mQ=Ee.RestProperty=["RestElement"],yQ=Ee.SpreadProperty=["RestElement"],TQ=Ee.ExistentialTypeParam=["ExistsTypeAnnotation"],gQ=Ee.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],xQ=Ee.ForAwaitStatement=["ForOfStatement"]});var dm=_((SQ,hm)=>{var fs=1e3,hs=fs*60,ds=hs*60,kr=ds*24,HP=kr*7,GP=kr*365.25;hm.exports=function(t,e){e=e||{};var i=typeof t;if(i==="string"&&t.length>0)return QP(t);if(i==="number"&&isFinite(t))return e.long?e1(t):ZP(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function QP(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var i=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return i*GP;case"weeks":case"week":case"w":return i*HP;case"days":case"day":case"d":return i*kr;case"hours":case"hour":case"hrs":case"hr":case"h":return i*ds;case"minutes":case"minute":case"mins":case"min":case"m":return i*hs;case"seconds":case"second":case"secs":case"sec":case"s":return i*fs;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function ZP(t){var e=Math.abs(t);return e>=kr?Math.round(t/kr)+"d":e>=ds?Math.round(t/ds)+"h":e>=hs?Math.round(t/hs)+"m":e>=fs?Math.round(t/fs)+"s":t+"ms"}function e1(t){var e=Math.abs(t);return e>=kr?$a(t,e,kr,"day"):e>=ds?$a(t,e,ds,"hour"):e>=hs?$a(t,e,hs,"minute"):e>=fs?$a(t,e,fs,"second"):t+" ms"}function $a(t,e,i,r){var s=e>=i*1.5;return Math.round(t/i)+" "+r+(s?"s":"")}});var vc=_((EQ,mm)=>{function t1(t){i.debug=i,i.default=i,i.coerce=c,i.disable=a,i.enable=s,i.enabled=l,i.humanize=dm(),i.destroy=o,Object.keys(t).forEach(u=>{i[u]=t[u]}),i.names=[],i.skips=[],i.formatters={};function e(u){let f=0;for(let d=0;d<u.length;d++)f=(f<<5)-f+u.charCodeAt(d),f|=0;return i.colors[Math.abs(f)%i.colors.length]}i.selectColor=e;function i(u){let f,d=null,m,S;function P(...A){if(!P.enabled)return;let C=P,k=Number(new Date),D=k-(f||k);C.diff=D,C.prev=f,C.curr=k,f=k,A[0]=i.coerce(A[0]),typeof A[0]!="string"&&A.unshift("%O");let L=0;A[0]=A[0].replace(/%([a-zA-Z%])/g,(U,oe)=>{if(U==="%%")return"%";L++;let me=i.formatters[oe];if(typeof me=="function"){let ee=A[L];U=me.call(C,ee),A.splice(L,1),L--}return U}),i.formatArgs.call(C,A),(C.log||i.log).apply(C,A)}return P.namespace=u,P.useColors=i.useColors(),P.color=i.selectColor(u),P.extend=r,P.destroy=i.destroy,Object.defineProperty(P,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(m!==i.namespaces&&(m=i.namespaces,S=i.enabled(u)),S),set:A=>{d=A}}),typeof i.init=="function"&&i.init(P),P}function r(u,f){let d=i(this.namespace+(typeof f>"u"?":":f)+u);return d.log=this.log,d}function s(u){i.save(u),i.namespaces=u,i.names=[],i.skips=[];let f=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of f)d[0]==="-"?i.skips.push(d.slice(1)):i.names.push(d)}function n(u,f){let d=0,m=0,S=-1,P=0;for(;d<u.length;)if(m<f.length&&(f[m]===u[d]||f[m]==="*"))f[m]==="*"?(S=m,P=d,m++):(d++,m++);else if(S!==-1)m=S+1,P++,d=P;else return!1;for(;m<f.length&&f[m]==="*";)m++;return m===f.length}function a(){let u=[...i.names,...i.skips.map(f=>"-"+f)].join(",");return i.enable(""),u}function l(u){for(let f of i.skips)if(n(u,f))return!1;for(let f of i.names)if(n(u,f))return!0;return!1}function c(u){return u instanceof Error?u.stack||u.message:u}function o(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}mm.exports=t1});var ym=_((Wt,qa)=>{Wt.formatArgs=r1;Wt.save=s1;Wt.load=n1;Wt.useColors=i1;Wt.storage=a1();Wt.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Wt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i1(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r1(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+qa.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let i=0,r=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(i++,s==="%c"&&(r=i))}),t.splice(r,0,e)}Wt.log=console.debug||console.log||(()=>{});function s1(t){try{t?Wt.storage.setItem("debug",t):Wt.storage.removeItem("debug")}catch{}}function n1(){let t;try{t=Wt.storage.getItem("debug")||Wt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function a1(){try{return localStorage}catch{}}qa.exports=vc()(Wt);var{formatters:o1}=qa.exports;o1.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var gm=_((Et,Ka)=>{var l1=require("tty"),Ua=require("util");Et.init=m1;Et.log=f1;Et.formatArgs=u1;Et.save=h1;Et.load=d1;Et.useColors=c1;Et.destroy=Ua.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Et.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(Et.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Et.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let i=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,n)=>n.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),t[i]=r,t},{});function c1(){return"colors"in Et.inspectOpts?!!Et.inspectOpts.colors:l1.isatty(process.stderr.fd)}function u1(t){let{namespace:e,useColors:i}=this;if(i){let r=this.color,s="\x1B[3"+(r<8?r:"8;5;"+r),n=` ${s};1m${e} \x1B[0m`;t[0]=n+t[0].split(`
11
11
  `).join(`
12
12
  `+n),t.push(s+"m+"+Ka.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=p1()+e+" "+t[0]}function p1(){return Et.inspectOpts.hideDate?"":new Date().toISOString()+" "}function f1(...t){return process.stderr.write(Ua.formatWithOptions(Et.inspectOpts,...t)+`
@@ -18,8 +18,8 @@ ${n}`)}function g1(t,e){let{stackTraceLimit:i,prepareStackTrace:r}=Error,s;if(Er
18
18
  `);case 114:return l("\r");case 120:{let o;return{code:o,pos:e}=Kc(t,e,i,r,2,!1,a,n),l(o===null?null:String.fromCharCode(o))}case 117:{let o;return{code:o,pos:e}=Bm(t,e,i,r,a,n),l(o===null?null:String.fromCodePoint(o))}case 116:return l(" ");case 98:return l("\b");case 118:return l("\v");case 102:return l("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:i=e,++r;case 8232:case 8233:return l("");case 56:case 57:if(s)return l(null);n.strictNumericEscape(e-1,i,r);default:if(c>=48&&c<=55){let o=e-1,f=/^[0-7]+/.exec(t.slice(o,e+2))[0],d=parseInt(f,8);d>255&&(f=f.slice(0,-1),d=parseInt(f,8)),e+=f.length-1;let m=t.charCodeAt(e);if(f!=="0"||m===56||m===57){if(s)return l(null);n.strictNumericEscape(o,i,r)}return l(String.fromCharCode(d))}return l(String.fromCharCode(c))}}function Kc(t,e,i,r,s,n,a,l){let c=e,o;return{n:o,pos:e}=Fm(t,e,i,r,16,s,n,!1,l,!a),o===null&&(a?l.invalidEscapeSequence(c,i,r):e=c-1),{code:o,pos:e}}function Fm(t,e,i,r,s,n,a,l,c,o){let u=e,f=s===16?Mm.hex:Mm.decBinOct,d=s===16?za.hex:s===10?za.dec:s===8?za.oct:za.bin,m=!1,S=0;for(let P=0,A=n??1/0;P<A;++P){let C=t.charCodeAt(e),k;if(C===95&&l!=="bail"){let D=t.charCodeAt(e-1),L=t.charCodeAt(e+1);if(l){if(Number.isNaN(L)||!d(L)||f.has(D)||f.has(L)){if(o)return{n:null,pos:e};c.unexpectedNumericSeparator(e,i,r)}}else{if(o)return{n:null,pos:e};c.numericSeparatorInEscapeSequence(e,i,r)}++e;continue}if(C>=97?k=C-97+10:C>=65?k=C-65+10:wk(C)?k=C-48:k=1/0,k>=s){if(k<=9&&o)return{n:null,pos:e};if(k<=9&&c.invalidDigit(e,i,r,s))k=0;else if(a)k=0,m=!0;else break}++e,S=S*s+k}return e===u||n!=null&&e-u!==n||m?{n:null,pos:e}:{n:S,pos:e}}function Bm(t,e,i,r,s,n){let a=t.charCodeAt(e),l;if(a===123){if(++e,{code:l,pos:e}=Kc(t,e,i,r,t.indexOf("}",e)-e,!0,s,n),++e,l!==null&&l>1114111)if(s)n.invalidCodePoint(e,i,r);else return{code:null,pos:e}}else({code:l,pos:e}=Kc(t,e,i,r,4,!1,s,n));return{code:l,pos:e}}});var gs=_(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.UPDATE_OPERATORS=xe.UNARY_OPERATORS=xe.STRING_UNARY_OPERATORS=xe.STATEMENT_OR_BLOCK_KEYS=xe.NUMBER_UNARY_OPERATORS=xe.NUMBER_BINARY_OPERATORS=xe.LOGICAL_OPERATORS=xe.INHERIT_KEYS=xe.FOR_INIT_KEYS=xe.FLATTENABLE_KEYS=xe.EQUALITY_BINARY_OPERATORS=xe.COMPARISON_BINARY_OPERATORS=xe.COMMENT_KEYS=xe.BOOLEAN_UNARY_OPERATORS=xe.BOOLEAN_NUMBER_BINARY_OPERATORS=xe.BOOLEAN_BINARY_OPERATORS=xe.BINARY_OPERATORS=xe.ASSIGNMENT_OPERATORS=void 0;var $Q=xe.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],qQ=xe.FLATTENABLE_KEYS=["body","expressions"],UQ=xe.FOR_INIT_KEYS=["left","init"],KQ=xe.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],_k=xe.LOGICAL_OPERATORS=["||","&&","??"],VQ=xe.UPDATE_OPERATORS=["++","--"],Ok=xe.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],Nk=xe.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],Dk=xe.COMPARISON_BINARY_OPERATORS=[...Nk,"in","instanceof"],Lk=xe.BOOLEAN_BINARY_OPERATORS=[...Dk,...Ok],Rm=xe.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],WQ=xe.BINARY_OPERATORS=["+",...Rm,...Lk,"|>"],YQ=xe.ASSIGNMENT_OPERATORS=["=","+=",...Rm.map(t=>t+"="),..._k.map(t=>t+"=")],Mk=xe.BOOLEAN_UNARY_OPERATORS=["delete","!"],Fk=xe.NUMBER_UNARY_OPERATORS=["+","-","~"],Bk=xe.STRING_UNARY_OPERATORS=["typeof"],zQ=xe.UNARY_OPERATORS=["void","throw",...Mk,...Fk,...Bk],JQ=xe.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};xe.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),xe.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var _i=_(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.allExpandedTypes=Oe.VISITOR_KEYS=Oe.NODE_PARENT_VALIDATIONS=Oe.NODE_FIELDS=Oe.FLIPPED_ALIAS_KEYS=Oe.DEPRECATED_KEYS=Oe.BUILDER_KEYS=Oe.ALIAS_KEYS=void 0;Oe.arrayOf=qm;Oe.arrayOfType=Um;Oe.assertEach=Km;Oe.assertNodeOrValueType=Hk;Oe.assertNodeType=Xa;Oe.assertOneOf=Jk;Oe.assertOptionalChainStart=Qk;Oe.assertShape=Gk;Oe.assertValueType=zc;Oe.chain=Vm;Oe.default=Wm;Oe.defineAliasedType=t_;Oe.validate=Yc;Oe.validateArrayOfType=zk;Oe.validateOptional=Wk;Oe.validateOptionalType=Yk;Oe.validateType=Vk;var $m=ys(),xn=Ha(),jk=Oe.VISITOR_KEYS={},Rk=Oe.ALIAS_KEYS={},Vc=Oe.FLIPPED_ALIAS_KEYS={},$k=Oe.NODE_FIELDS={},qk=Oe.BUILDER_KEYS={},Uk=Oe.DEPRECATED_KEYS={},Kk=Oe.NODE_PARENT_VALIDATIONS={};function Ja(t){return Array.isArray(t)?"array":t===null?"null":typeof t}function Yc(t){return{validate:t}}function Vk(...t){return Yc(Xa(...t))}function Wk(t){return{validate:t,optional:!0}}function Yk(...t){return{validate:Xa(...t),optional:!0}}function qm(t){return Vm(zc("array"),Km(t))}function Um(...t){return qm(Xa(...t))}function zk(...t){return Yc(Um(...t))}function Km(t){let e=process.env.BABEL_TYPES_8_BREAKING?xn.validateChild:()=>{};function i(r,s,n){if(!Array.isArray(n))return;let a=0,l={toString(){return`${s}[${a}]`}};for(;a<n.length;a++){let c=n[a];t(r,l,c),e(r,l,c)}}return i.each=t,i}function Jk(...t){function e(i,r,s){if(!t.includes(s))throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(t)} but got ${JSON.stringify(s)}`)}return e.oneOf=t,e}var Xk=Oe.allExpandedTypes=[];function Xa(...t){let e=new Set;Xk.push({types:t,set:e});function i(r,s,n){let a=n?.type;if(a!=null){if(e.has(a)){(0,xn.validateChild)(r,s,n);return}if(a==="Placeholder"){for(let l of t)if((0,$m.default)(l,n)){(0,xn.validateChild)(r,s,n);return}}}throw new TypeError(`Property ${s} of ${r.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(a)}`)}return i.oneOfNodeTypes=t,i}function Hk(...t){function e(i,r,s){let n=Ja(s);for(let a of t)if(n===a||(0,$m.default)(a,s)){(0,xn.validateChild)(i,r,s);return}throw new TypeError(`Property ${r} of ${i.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(s?.type)}`)}return e.oneOfNodeOrValueTypes=t,e}function zc(t){function e(i,r,s){if(Ja(s)!==t)throw new TypeError(`Property ${r} expected type of ${t} but got ${Ja(s)}`)}return e.type=t,e}function Gk(t){let e=Object.keys(t);function i(r,s,n){let a=[];for(let l of e)try{(0,xn.validateField)(r,l,n[l],t[l])}catch(c){if(c instanceof TypeError){a.push(c.message);continue}throw c}if(a.length)throw new TypeError(`Property ${s} of ${r.type} expected to have the following:
19
19
  ${a.join(`
20
20
  `)}`)}return i.shapeOf=t,i}function Qk(){function t(e){var i;let r=e;for(;e;){let{type:s}=r;if(s==="OptionalCallExpression"){if(r.optional)return;r=r.callee;continue}if(s==="OptionalMemberExpression"){if(r.optional)return;r=r.object;continue}break}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(i=r)==null?void 0:i.type}`)}return t}function Vm(...t){function e(...i){for(let r of t)r(...i)}if(e.chainOf=t,t.length>=2&&"type"in t[0]&&t[0].type==="array"&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return e}var Zk=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),e_=new Set(["default","optional","deprecated","validate"]),Wc={};function t_(...t){return(e,i={})=>{let r=i.aliases;if(!r){var s;i.inherits&&(r=(s=Wc[i.inherits].aliases)==null?void 0:s.slice()),r??(r=[]),i.aliases=r}let n=t.filter(a=>!r.includes(a));r.unshift(...n),Wm(e,i)}}function Wm(t,e={}){let i=e.inherits&&Wc[e.inherits]||{},r=e.fields;if(!r&&(r={},i.fields)){let l=Object.getOwnPropertyNames(i.fields);for(let c of l){let o=i.fields[c],u=o.default;if(Array.isArray(u)?u.length>0:u&&typeof u=="object")throw new Error("field defaults can only be primitives or empty arrays currently");r[c]={default:Array.isArray(u)?[]:u,optional:o.optional,deprecated:o.deprecated,validate:o.validate}}}let s=e.visitor||i.visitor||[],n=e.aliases||i.aliases||[],a=e.builder||i.builder||e.visitor||[];for(let l of Object.keys(e))if(!Zk.has(l))throw new Error(`Unknown type option "${l}" on ${t}`);e.deprecatedAlias&&(Uk[e.deprecatedAlias]=t);for(let l of s.concat(a))r[l]=r[l]||{};for(let l of Object.keys(r)){let c=r[l];c.default!==void 0&&!a.includes(l)&&(c.optional=!0),c.default===void 0?c.default=null:!c.validate&&c.default!=null&&(c.validate=zc(Ja(c.default)));for(let o of Object.keys(c))if(!e_.has(o))throw new Error(`Unknown field key "${o}" on ${t}.${l}`)}jk[t]=e.visitor=s,qk[t]=e.builder=a,$k[t]=e.fields=r,Rk[t]=e.aliases=n,n.forEach(l=>{Vc[l]=Vc[l]||[],Vc[l].push(t)}),e.validate&&(Kk[t]=e.validate),Wc[t]=e}});var bn=_(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.patternLikeCommon=kt.importAttributes=kt.functionTypeAnnotationCommon=kt.functionDeclarationCommon=kt.functionCommon=kt.classMethodOrPropertyCommon=kt.classMethodOrDeclareMethodCommon=void 0;var Bt=ys(),i_=Ts(),Ym=Tn(),r_=jm(),xs=gs(),E=_i(),W=(0,E.defineAliasedType)("Standardized");W("ArrayExpression",{fields:{elements:{validate:(0,E.arrayOf)((0,E.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});W("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){let t=(0,E.assertOneOf)(...xs.ASSIGNMENT_OPERATORS),e=(0,E.assertOneOf)("=");return function(i,r,s){((0,Bt.default)("Pattern",i.left)?e:t)(i,r,s)}}(),{oneOf:xs.ASSIGNMENT_OPERATORS}):(0,E.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,E.assertNodeType)("LVal")},right:{validate:(0,E.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});W("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,E.assertOneOf)(...xs.BINARY_OPERATORS)},left:{validate:function(){let t=(0,E.assertNodeType)("Expression"),e=(0,E.assertNodeType)("Expression","PrivateName");return Object.assign(function(r,s,n){(r.operator==="in"?e:t)(r,s,n)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,E.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});W("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,E.assertValueType)("string")}}});W("Directive",{visitor:["value"],fields:{value:{validate:(0,E.assertNodeType)("DirectiveLiteral")}}});W("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,E.assertValueType)("string")}}});W("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,E.arrayOfType)("Directive"),default:[]},body:(0,E.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});W("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,E.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});W("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,E.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,E.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,E.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,E.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,E.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});W("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,E.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,E.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});W("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,E.assertNodeType)("Expression")},consequent:{validate:(0,E.assertNodeType)("Expression")},alternate:{validate:(0,E.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});W("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,E.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});W("DebuggerStatement",{aliases:["Statement"]});W("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,E.assertNodeType)("Expression")},body:{validate:(0,E.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});W("EmptyStatement",{aliases:["Statement"]});W("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,E.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});W("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,E.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.assertEach)((0,E.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,E.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});W("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,E.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,E.assertNodeType)("Expression")},body:{validate:(0,E.assertNodeType)("Statement")}}});W("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,E.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,E.assertNodeType)("Expression"),optional:!0},update:{validate:(0,E.assertNodeType)("Expression"),optional:!0},body:{validate:(0,E.assertNodeType)("Statement")}}});var bs=()=>({params:(0,E.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});kt.functionCommon=bs;var Nr=()=>({returnType:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,E.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});kt.functionTypeAnnotationCommon=Nr;var zm=()=>Object.assign({},bs(),{declare:{validate:(0,E.assertValueType)("boolean"),optional:!0},id:{validate:(0,E.assertNodeType)("Identifier"),optional:!0}});kt.functionDeclarationCommon=zm;W("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},zm(),Nr(),{body:{validate:(0,E.assertNodeType)("BlockStatement")},predicate:{validate:(0,E.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let t=(0,E.assertNodeType)("Identifier");return function(e,i,r){(0,Bt.default)("ExportDefaultDeclaration",e)||t(r,"id",r.id)}}():void 0});W("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},bs(),Nr(),{id:{validate:(0,E.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,E.assertNodeType)("BlockStatement")},predicate:{validate:(0,E.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var Ss=()=>({typeAnnotation:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,E.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0}});kt.patternLikeCommon=Ss;W("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},Ss(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("string"),Object.assign(function(t,e,i){if(!(0,i_.default)(i,!1))throw new TypeError(`"${i}" is not a valid identifier name`)},{type:"string"})):(0,E.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(t,e,i){let r=/\.(\w+)$/.exec(e.toString());if(!r)return;let[,s]=r,n={computed:!1};if(s==="property"){if((0,Bt.default)("MemberExpression",t,n)||(0,Bt.default)("OptionalMemberExpression",t,n))return}else if(s==="key"){if((0,Bt.default)("Property",t,n)||(0,Bt.default)("Method",t,n))return}else if(s==="exported"){if((0,Bt.default)("ExportSpecifier",t))return}else if(s==="imported"){if((0,Bt.default)("ImportSpecifier",t,{imported:i}))return}else if(s==="meta"&&(0,Bt.default)("MetaProperty",t,{meta:i}))return;if(((0,Ym.isKeyword)(i.name)||(0,Ym.isReservedWord)(i.name,!1))&&i.name!=="this")throw new TypeError(`"${i.name}" is not a valid identifier`)}:void 0});W("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,E.assertNodeType)("Expression")},consequent:{validate:(0,E.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,E.assertNodeType)("Statement")}}});W("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,E.assertNodeType)("Identifier")},body:{validate:(0,E.assertNodeType)("Statement")}}});W("StringLiteral",{builder:["value"],fields:{value:{validate:(0,E.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});W("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,E.chain)((0,E.assertValueType)("number"),Object.assign(function(t,e,i){if(1/i<0||!Number.isFinite(i)){let r=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${i}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});W("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});W("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,E.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});W("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,E.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("string"),Object.assign(function(t,e,i){let r=/[^gimsuy]/.exec(i);if(r)throw new TypeError(`"${r[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,E.assertValueType)("string"),default:""}}});W("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,E.assertOneOf)(...xs.LOGICAL_OPERATORS)},left:{validate:(0,E.assertNodeType)("Expression")},right:{validate:(0,E.assertNodeType)("Expression")}}});W("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],fields:Object.assign({object:{validate:(0,E.assertNodeType)("Expression","Super")},property:{validate:function(){let t=(0,E.assertNodeType)("Identifier","PrivateName"),e=(0,E.assertNodeType)("Expression"),i=function(r,s,n){(r.computed?e:t)(r,s,n)};return i.oneOfNodeTypes=["Expression","Identifier","PrivateName"],i}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,E.assertValueType)("boolean"),optional:!0}})});W("NewExpression",{inherits:"CallExpression"});W("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,E.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,E.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,E.arrayOfType)("Directive"),default:[]},body:(0,E.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});W("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,E.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});W("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},bs(),Nr(),{kind:Object.assign({validate:(0,E.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){let t=(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),e=(0,E.assertNodeType)("Expression"),i=function(r,s,n){(r.computed?e:t)(r,s,n)};return i.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],i}()},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,E.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});W("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){let t=(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),e=(0,E.assertNodeType)("Expression");return Object.assign(function(r,s,n){(r.computed?e:t)(r,s,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,E.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("boolean"),Object.assign(function(t,e,i){if(i){if(t.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,Bt.default)("Identifier",t.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,E.assertValueType)("boolean"),default:!1},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let t=(0,E.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),e=(0,E.assertNodeType)("Expression");return function(i,r,s){((0,Bt.default)("ObjectPattern",i)?t:e)(s,"value",s.value)}}():void 0});W("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},Ss(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,E.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(t,e){let i=/(\w+)\[(\d+)\]/.exec(e.toString());if(!i)throw new Error("Internal Babel error: malformed key.");let[,r,s]=i;if(t[r].length>+s+1)throw new TypeError(`RestElement must be last element of ${r}`)}:void 0});W("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,E.assertNodeType)("Expression"),optional:!0}}});W("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,E.validateArrayOfType)("Expression")},aliases:["Expression"]});W("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,E.assertNodeType)("Expression")}}});W("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,E.assertNodeType)("Expression"),optional:!0},consequent:(0,E.validateArrayOfType)("Statement")}});W("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,E.assertNodeType)("Expression")},cases:(0,E.validateArrayOfType)("SwitchCase")}});W("ThisExpression",{aliases:["Expression"]});W("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,E.assertNodeType)("Expression")}}});W("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertNodeType)("BlockStatement"),Object.assign(function(t){if(!t.handler&&!t.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,E.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,E.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,E.assertNodeType)("BlockStatement")}}});W("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,E.assertNodeType)("Expression")},operator:{validate:(0,E.assertOneOf)(...xs.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});W("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.assertNodeType)("Identifier","MemberExpression"):(0,E.assertNodeType)("Expression")},operator:{validate:(0,E.assertOneOf)(...xs.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});W("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,E.assertValueType)("boolean"),optional:!0},kind:{validate:(0,E.assertOneOf)("var","let","const","using","await using")},declarations:(0,E.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let t=(0,E.assertNodeType)("Identifier","Placeholder"),e=(0,E.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),i=(0,E.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(r,s,n){let{kind:a,declarations:l}=n,c=(0,Bt.default)("ForXStatement",r,{left:n});if(c&&l.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${r.type}`);for(let o of l)a==="const"||a==="let"||a==="var"?!c&&!o.init?t(o,"id",o.id):e(o,"id",o.id):i(o,"id",o.id)}})():void 0});W("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,E.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,E.assertValueType)("boolean")},init:{optional:!0,validate:(0,E.assertNodeType)("Expression")}}});W("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,E.assertNodeType)("Expression")},body:{validate:(0,E.assertNodeType)("Statement")}}});W("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,E.assertNodeType)("Expression")},body:{validate:(0,E.assertNodeType)("Statement")}}});W("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ss(),{left:{validate:(0,E.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,E.assertNodeType)("Expression")},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0}})});W("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ss(),{elements:{validate:(0,E.chain)((0,E.assertValueType)("array"),(0,E.assertEach)((0,E.assertNodeOrValueType)("null","PatternLike")))}})});W("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},bs(),Nr(),{expression:{validate:(0,E.assertValueType)("boolean")},body:{validate:(0,E.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,E.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});W("ClassBody",{visitor:["body"],fields:{body:(0,E.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});W("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,E.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,E.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,E.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,E.assertNodeType)("Expression")},superTypeParameters:{validate:(0,E.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,E.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,E.assertNodeType)("InterfaceExtends"),optional:!0}}});W("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,E.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,E.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,E.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,E.assertNodeType)("Expression")},superTypeParameters:{validate:(0,E.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,E.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,E.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,E.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,E.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?function(){let t=(0,E.assertNodeType)("Identifier");return function(e,i,r){(0,Bt.default)("ExportDefaultDeclaration",e)||t(r,"id",r.id)}}():void 0});var Jc=kt.importAttributes={attributes:{optional:!0,validate:(0,E.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,E.arrayOfType)("ImportAttribute")}};W("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,E.assertNodeType)("StringLiteral")},exportKind:(0,E.validateOptional)((0,E.assertOneOf)("type","value"))},Jc)});W("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,E.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,E.validateOptional)((0,E.assertOneOf)("value"))}});W("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertNodeType)("Declaration"),Object.assign(function(t,e,i){if(i&&t.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(i&&t.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,E.assertNodeType)("Declaration")}},Jc,{specifiers:{default:[],validate:(0,E.arrayOf)(function(){let t=(0,E.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),e=(0,E.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(i,r,s){(i.source?t:e)(i,r,s)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):t}())},source:{validate:(0,E.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,E.validateOptional)((0,E.assertOneOf)("type","value"))})});W("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,E.assertNodeType)("Identifier")},exported:{validate:(0,E.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,E.assertOneOf)("type","value"),optional:!0}}});W("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,E.assertNodeType)("VariableDeclaration","LVal");let t=(0,E.assertNodeType)("VariableDeclaration"),e=(0,E.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(i,r,s){(0,Bt.default)("VariableDeclaration",s)?t(i,r,s):e(i,r,s)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,E.assertNodeType)("Expression")},body:{validate:(0,E.assertNodeType)("Statement")},await:{default:!1}}});W("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},Jc,{module:{optional:!0,validate:(0,E.assertValueType)("boolean")},phase:{default:null,validate:(0,E.assertOneOf)("source","defer")},specifiers:(0,E.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,E.assertNodeType)("StringLiteral")},importKind:{validate:(0,E.assertOneOf)("type","typeof","value"),optional:!0}})});W("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,E.assertNodeType)("Identifier")}}});W("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,E.assertNodeType)("Identifier")}}});W("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,E.assertNodeType)("Identifier")},imported:{validate:(0,E.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,E.assertOneOf)("type","typeof","value"),optional:!0}}});W("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,E.assertOneOf)("source","defer")},source:{validate:(0,E.assertNodeType)("Expression")},options:{validate:(0,E.assertNodeType)("Expression"),optional:!0}}});W("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertNodeType)("Identifier"),Object.assign(function(t,e,i){let r;switch(i.name){case"function":r="sent";break;case"new":r="target";break;case"import":r="meta";break}if(!(0,Bt.default)("Identifier",t.property,{name:r}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,E.assertNodeType)("Identifier")},property:{validate:(0,E.assertNodeType)("Identifier")}}});var Ga=()=>({abstract:{validate:(0,E.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,E.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,E.assertValueType)("boolean"),optional:!0},key:{validate:(0,E.chain)(function(){let t=(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),e=(0,E.assertNodeType)("Expression");return function(i,r,s){(i.computed?e:t)(i,r,s)}}(),(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});kt.classMethodOrPropertyCommon=Ga;var Xc=()=>Object.assign({},bs(),Ga(),{params:(0,E.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,E.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,E.chain)((0,E.assertValueType)("string"),(0,E.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0}});kt.classMethodOrDeclareMethodCommon=Xc;W("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},Xc(),Nr(),{body:{validate:(0,E.assertNodeType)("BlockStatement")}})});W("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ss(),{properties:(0,E.validateArrayOfType)("RestElement","ObjectProperty")})});W("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,E.assertNodeType)("Expression")}}});W("Super",{aliases:["Expression"]});W("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,E.assertNodeType)("Expression")},quasi:{validate:(0,E.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,E.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});W("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,E.chain)((0,E.assertShape)({raw:{validate:(0,E.assertValueType)("string")},cooked:{validate:(0,E.assertValueType)("string"),optional:!0}}),function(e){let i=e.value.raw,r=!1,s=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:a}=(0,r_.readStringContents)("template",i,0,0,0,{unterminated(){r=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!r)throw new Error("Invalid raw");e.value.cooked=a?null:n})},tail:{default:!1}}});W("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,E.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,E.chain)((0,E.assertValueType)("array"),(0,E.assertEach)((0,E.assertNodeType)("Expression","TSType")),function(t,e,i){if(t.quasis.length!==i.length+1)throw new TypeError(`Number of ${t.type} quasis should be exactly one more than the number of expressions.
21
- Expected ${i.length+1} quasis but got ${t.quasis.length}`)})}}});W("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("boolean"),Object.assign(function(t,e,i){if(i&&!t.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,E.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,E.assertNodeType)("Expression")}}});W("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,E.assertNodeType)("Expression")}}});W("Import",{aliases:["Expression"]});W("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,E.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});W("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,E.assertNodeType)("Identifier")}}});W("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression","LVal"],fields:{object:{validate:(0,E.assertNodeType)("Expression")},property:{validate:function(){let t=(0,E.assertNodeType)("Identifier"),e=(0,E.assertNodeType)("Expression");return Object.assign(function(r,s,n){(r.computed?e:t)(r,s,n)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("boolean"),(0,E.assertOptionalChainStart)()):(0,E.assertValueType)("boolean")}}});W("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,E.assertNodeType)("Expression")},arguments:(0,E.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("boolean"),(0,E.assertOptionalChainStart)()):(0,E.assertValueType)("boolean")},typeArguments:{validate:(0,E.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,E.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});W("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Ga(),{value:{validate:(0,E.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,E.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,E.assertValueType)("boolean"),optional:!0},declare:{validate:(0,E.assertValueType)("boolean"),optional:!0},variance:{validate:(0,E.assertNodeType)("Variance"),optional:!0}})});W("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},Ga(),{key:{validate:(0,E.chain)(function(){let t=(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),e=(0,E.assertNodeType)("Expression");return function(i,r,s){(i.computed?e:t)(i,r,s)}}(),(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,E.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,E.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,E.assertValueType)("boolean"),optional:!0},declare:{validate:(0,E.assertValueType)("boolean"),optional:!0},variance:{validate:(0,E.assertNodeType)("Variance"),optional:!0}})});W("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,E.assertNodeType)("PrivateName")},value:{validate:(0,E.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,E.assertValueType)("boolean"),default:!1},readonly:{validate:(0,E.assertValueType)("boolean"),optional:!0},optional:{validate:(0,E.assertValueType)("boolean"),optional:!0},definite:{validate:(0,E.assertValueType)("boolean"),optional:!0},variance:{validate:(0,E.assertNodeType)("Variance"),optional:!0}}});W("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Xc(),Nr(),{kind:{validate:(0,E.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,E.assertNodeType)("PrivateName")},body:{validate:(0,E.assertNodeType)("BlockStatement")}})});W("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,E.assertNodeType)("Identifier")}}});W("StaticBlock",{visitor:["body"],fields:{body:(0,E.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});W("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,E.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,E.assertNodeType)("StringLiteral")}}})});var Xm=_(()=>{"use strict";var Jm=bn(),O=_i(),se=(0,O.defineAliasedType)("Flow"),Hc=t=>{let e=t==="DeclareClass";se(t,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...e?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),extends:(0,O.validateOptional)((0,O.arrayOfType)("InterfaceExtends"))},e?{mixins:(0,O.validateOptional)((0,O.arrayOfType)("InterfaceExtends")),implements:(0,O.validateOptional)((0,O.arrayOfType)("ClassImplements"))}:{},{body:(0,O.validateType)("ObjectTypeAnnotation")})})};se("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,O.validateType)("FlowType")}});se("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterInstantiation")}});Hc("DeclareClass");se("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),predicate:(0,O.validateOptionalType)("DeclaredPredicate")}});Hc("DeclareInterface");se("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier","StringLiteral"),body:(0,O.validateType)("BlockStatement"),kind:(0,O.validateOptional)((0,O.assertOneOf)("CommonJS","ES"))}});se("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,O.validateType)("TypeAnnotation")}});se("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),right:(0,O.validateType)("FlowType")}});se("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,O.validateOptionalType)("FlowType"),impltype:(0,O.validateOptionalType)("FlowType")}});se("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier")}});se("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,O.validateOptionalType)("Flow"),specifiers:(0,O.validateOptional)((0,O.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,O.validateOptionalType)("StringLiteral"),default:(0,O.validateOptional)((0,O.assertValueType)("boolean"))},Jm.importAttributes)});se("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,O.validateType)("StringLiteral"),exportKind:(0,O.validateOptional)((0,O.assertOneOf)("type","value"))},Jm.importAttributes)});se("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,O.validateType)("Flow")}});se("ExistsTypeAnnotation",{aliases:["FlowType"]});se("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),params:(0,O.validateArrayOfType)("FunctionTypeParam"),rest:(0,O.validateOptionalType)("FunctionTypeParam"),this:(0,O.validateOptionalType)("FunctionTypeParam"),returnType:(0,O.validateType)("FlowType")}});se("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,O.validateOptionalType)("Identifier"),typeAnnotation:(0,O.validateType)("FlowType"),optional:(0,O.validateOptional)((0,O.assertValueType)("boolean"))}});se("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,O.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterInstantiation")}});se("InferredPredicate",{aliases:["FlowPredicate"]});se("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,O.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterInstantiation")}});Hc("InterfaceDeclaration");se("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,O.validateOptional)((0,O.arrayOfType)("InterfaceExtends")),body:(0,O.validateType)("ObjectTypeAnnotation")}});se("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});se("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,O.validateType)("FlowType")}});se("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,O.validate)((0,O.assertValueType)("number"))}});se("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,O.validate)((0,O.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,O.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,O.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,O.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,O.assertValueType)("boolean"),default:!1},inexact:(0,O.validateOptional)((0,O.assertValueType)("boolean"))}});se("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,O.validateType)("Identifier"),value:(0,O.validateType)("FlowType"),optional:(0,O.validate)((0,O.assertValueType)("boolean")),static:(0,O.validate)((0,O.assertValueType)("boolean")),method:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,O.validateType)("FlowType"),static:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,O.validateOptionalType)("Identifier"),key:(0,O.validateType)("FlowType"),value:(0,O.validateType)("FlowType"),static:(0,O.validate)((0,O.assertValueType)("boolean")),variance:(0,O.validateOptionalType)("Variance")}});se("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,O.validateType)("Identifier","StringLiteral"),value:(0,O.validateType)("FlowType"),kind:(0,O.validate)((0,O.assertOneOf)("init","get","set")),static:(0,O.validate)((0,O.assertValueType)("boolean")),proto:(0,O.validate)((0,O.assertValueType)("boolean")),optional:(0,O.validate)((0,O.assertValueType)("boolean")),variance:(0,O.validateOptionalType)("Variance"),method:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,O.validateType)("FlowType")}});se("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,O.validateOptionalType)("FlowType"),impltype:(0,O.validateType)("FlowType")}});se("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,O.validateType)("Identifier"),qualification:(0,O.validateType)("Identifier","QualifiedTypeIdentifier")}});se("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,O.validate)((0,O.assertValueType)("string"))}});se("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});se("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,O.validateType)("FlowType")}});se("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),right:(0,O.validateType)("FlowType")}});se("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("FlowType")}});se("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,O.validateType)("Expression"),typeAnnotation:(0,O.validateType)("TypeAnnotation")}});se("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,O.validate)((0,O.assertValueType)("string")),bound:(0,O.validateOptionalType)("TypeAnnotation"),default:(0,O.validateOptionalType)("FlowType"),variance:(0,O.validateOptionalType)("Variance")}});se("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,O.validate)((0,O.arrayOfType)("TypeParameter"))}});se("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});se("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});se("Variance",{builder:["kind"],fields:{kind:(0,O.validate)((0,O.assertOneOf)("minus","plus"))}});se("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,O.validateType)("Identifier"),body:(0,O.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});se("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,O.validate)((0,O.assertValueType)("boolean")),members:(0,O.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,O.validate)((0,O.assertValueType)("boolean")),members:(0,O.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,O.validate)((0,O.assertValueType)("boolean")),members:(0,O.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,O.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,O.validateType)("Identifier"),init:(0,O.validateType)("BooleanLiteral")}});se("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,O.validateType)("Identifier"),init:(0,O.validateType)("NumericLiteral")}});se("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,O.validateType)("Identifier"),init:(0,O.validateType)("StringLiteral")}});se("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,O.validateType)("Identifier")}});se("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,O.validateType)("FlowType"),indexType:(0,O.validateType)("FlowType")}});se("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,O.validateType)("FlowType"),indexType:(0,O.validateType)("FlowType"),optional:(0,O.validate)((0,O.assertValueType)("boolean"))}})});var Hm=_(()=>{"use strict";var st=_i(),jt=(0,st.defineAliasedType)("JSX");jt("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,st.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,st.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});jt("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,st.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});jt("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,st.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,st.assertNodeType)("JSXClosingElement")},children:(0,st.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,st.assertValueType)("boolean"),optional:!0}})});jt("JSXEmptyExpression",{});jt("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,st.assertNodeType)("Expression","JSXEmptyExpression")}}});jt("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,st.assertNodeType)("Expression")}}});jt("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,st.assertValueType)("string")}}});jt("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,st.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,st.assertNodeType)("JSXIdentifier")}}});jt("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,st.assertNodeType)("JSXIdentifier")},name:{validate:(0,st.assertNodeType)("JSXIdentifier")}}});jt("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,st.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,st.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,st.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,st.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});jt("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,st.assertNodeType)("Expression")}}});jt("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,st.assertValueType)("string")}}});jt("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,st.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,st.assertNodeType)("JSXClosingFragment")},children:(0,st.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});jt("JSXOpeningFragment",{aliases:["Immutable"]});jt("JSXClosingFragment",{aliases:["Immutable"]})});var Zc=_(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.PLACEHOLDERS_FLIPPED_ALIAS=ar.PLACEHOLDERS_ALIAS=ar.PLACEHOLDERS=void 0;var s_=_i(),n_=ar.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Qc=ar.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let t of n_){let e=s_.ALIAS_KEYS[t];e!=null&&e.length&&(Qc[t]=e)}var Gc=ar.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(Qc).forEach(t=>{Qc[t].forEach(e=>{hasOwnProperty.call(Gc,e)||(Gc[e]=[]),Gc[e].push(t)})})});var Gm=_(()=>{"use strict";var Qa=_i(),a_=Zc(),o_=bn(),eu=(0,Qa.defineAliasedType)("Miscellaneous");eu("Noop",{visitor:[]});eu("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,Qa.assertNodeType)("Identifier")},expectedNode:{validate:(0,Qa.assertOneOf)(...a_.PLACEHOLDERS)}},(0,o_.patternLikeCommon)())});eu("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,Qa.assertValueType)("string")}}})});var Qm=_(()=>{"use strict";var Qe=_i();(0,Qe.default)("ArgumentPlaceholder",{});(0,Qe.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,Qe.assertNodeType)("Expression")},callee:{validate:(0,Qe.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,Qe.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,Qe.assertNodeType)("Expression")}}});(0,Qe.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,Qe.assertNodeType)("BlockStatement")},async:{validate:(0,Qe.assertValueType)("boolean"),default:!1}}});(0,Qe.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,Qe.assertNodeType)("Identifier")}}});(0,Qe.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,Qe.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,Qe.default)("TupleExpression",{fields:{elements:{validate:(0,Qe.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,Qe.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,Qe.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,Qe.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,Qe.assertNodeType)("Program")}},aliases:["Expression"]});(0,Qe.default)("TopicReference",{aliases:["Expression"]});(0,Qe.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,Qe.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Qe.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,Qe.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Qe.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,Qe.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var ay=_(()=>{"use strict";var j=_i(),Zm=bn(),l_=ys(),ue=(0,j.defineAliasedType)("TypeScript"),Yt=(0,j.assertValueType)("boolean"),ey=()=>({returnType:{validate:(0,j.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,j.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});ue("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,j.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,j.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,j.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,j.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,j.arrayOfType)("Decorator"),optional:!0}}});ue("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,Zm.functionDeclarationCommon)(),ey())});ue("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,Zm.classMethodOrDeclareMethodCommon)(),ey())});ue("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,j.validateType)("TSEntityName"),right:(0,j.validateType)("Identifier")}});var Za=()=>({typeParameters:(0,j.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,j.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,j.validateOptionalType)("TSTypeAnnotation")}),ty={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:Za()};ue("TSCallSignatureDeclaration",ty);ue("TSConstructSignatureDeclaration",ty);var iy=()=>({key:(0,j.validateType)("Expression"),computed:{default:!1},optional:(0,j.validateOptional)(Yt)});ue("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},iy(),{readonly:(0,j.validateOptional)(Yt),typeAnnotation:(0,j.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,j.assertOneOf)("get","set")}})});ue("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},Za(),iy(),{kind:{validate:(0,j.assertOneOf)("method","get","set")}})});ue("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,j.validateOptional)(Yt),static:(0,j.validateOptional)(Yt),parameters:(0,j.validateArrayOfType)("Identifier"),typeAnnotation:(0,j.validateOptionalType)("TSTypeAnnotation")}});var c_=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let t of c_)ue(t,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});ue("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var ry={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};ue("TSFunctionType",Object.assign({},ry,{fields:Za()}));ue("TSConstructorType",Object.assign({},ry,{fields:Object.assign({},Za(),{abstract:(0,j.validateOptional)(Yt)})}));ue("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,j.validateType)("TSEntityName"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation")}});ue("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,j.validateType)("Identifier","TSThisType"),typeAnnotation:(0,j.validateOptionalType)("TSTypeAnnotation"),asserts:(0,j.validateOptional)(Yt)}});ue("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,j.validateType)("TSEntityName","TSImportType"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation")}});ue("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,j.validateArrayOfType)("TSTypeElement")}});ue("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,j.validateType)("TSType")}});ue("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,j.validateArrayOfType)("TSType","TSNamedTupleMember")}});ue("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,j.validateType)("TSType")}});ue("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,j.validateType)("TSType")}});ue("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,j.validateType)("Identifier"),optional:{validate:Yt,default:!1},elementType:(0,j.validateType)("TSType")}});var sy={aliases:["TSType"],visitor:["types"],fields:{types:(0,j.validateArrayOfType)("TSType")}};ue("TSUnionType",sy);ue("TSIntersectionType",sy);ue("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,j.validateType)("TSType"),extendsType:(0,j.validateType)("TSType"),trueType:(0,j.validateType)("TSType"),falseType:(0,j.validateType)("TSType")}});ue("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,j.validateType)("TSTypeParameter")}});ue("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,j.validateType)("TSType")}});ue("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,j.assertValueType)("string")},typeAnnotation:(0,j.validateType)("TSType")}});ue("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,j.validateType)("TSType"),indexType:(0,j.validateType)("TSType")}});ue("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,j.validateType)("TSTypeParameter")},{readonly:(0,j.validateOptional)((0,j.assertOneOf)(!0,!1,"+","-")),optional:(0,j.validateOptional)((0,j.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,j.validateOptionalType)("TSType"),nameType:(0,j.validateOptionalType)("TSType")})});ue("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,j.validateArrayOfType)("TemplateElement"),types:{validate:(0,j.chain)((0,j.assertValueType)("array"),(0,j.assertEach)((0,j.assertNodeType)("TSType")),function(t,e,i){if(t.quasis.length!==i.length+1)throw new TypeError(`Number of ${t.type} quasis should be exactly one more than the number of types.
22
- Expected ${i.length+1} quasis but got ${t.quasis.length}`)})}}});ue("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let t=(0,j.assertNodeType)("NumericLiteral","BigIntLiteral"),e=(0,j.assertOneOf)("-"),i=(0,j.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function r(s,n,a){(0,l_.default)("UnaryExpression",a)?(e(a,"operator",a.operator),t(a,"argument",a.argument)):i(s,n,a)}return r.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],r}()}}});ue("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,j.validateType)("TSEntityName"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation")}});ue("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,j.validateOptional)(Yt),id:(0,j.validateType)("Identifier"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,j.validateOptional)((0,j.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,j.validateType)("TSInterfaceBody")}});ue("TSInterfaceBody",{visitor:["body"],fields:{body:(0,j.validateArrayOfType)("TSTypeElement")}});ue("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,j.validateOptional)(Yt),id:(0,j.validateType)("Identifier"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,j.validateType)("TSType")}});ue("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,j.validateType)("Expression"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation")}});var ny={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,j.validateType)("Expression"),typeAnnotation:(0,j.validateType)("TSType")}};ue("TSAsExpression",ny);ue("TSSatisfiesExpression",ny);ue("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,j.validateType)("TSType"),expression:(0,j.validateType)("Expression")}});ue("TSEnumBody",{visitor:["members"],fields:{members:(0,j.validateArrayOfType)("TSEnumMember")}});ue("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,j.validateOptional)(Yt),const:(0,j.validateOptional)(Yt),id:(0,j.validateType)("Identifier"),members:(0,j.validateArrayOfType)("TSEnumMember"),initializer:(0,j.validateOptionalType)("Expression"),body:(0,j.validateOptionalType)("TSEnumBody")}});ue("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,j.validateType)("Identifier","StringLiteral"),initializer:(0,j.validateOptionalType)("Expression")}});ue("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,j.assertOneOf)("global","module","namespace")},declare:(0,j.validateOptional)(Yt)},{global:(0,j.validateOptional)(Yt)},{id:(0,j.validateType)("Identifier","StringLiteral"),body:(0,j.validateType)("TSModuleBlock","TSModuleDeclaration")})});ue("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,j.validateArrayOfType)("Statement")}});ue("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,j.validateType)("StringLiteral"),qualifier:(0,j.validateOptionalType)("TSEntityName"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,j.assertNodeType)("ObjectExpression"),optional:!0}}});ue("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,j.validate)(Yt)},{id:(0,j.validateType)("Identifier"),moduleReference:(0,j.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,j.assertOneOf)("type","value"),optional:!0}})});ue("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,j.validateType)("StringLiteral")}});ue("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,j.validateType)("Expression")}});ue("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,j.validateType)("Expression")}});ue("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,j.validateType)("Identifier")}});ue("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,j.assertNodeType)("TSType")}}});ue("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,j.validateArrayOfType)("TSType")}});ue("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,j.validateArrayOfType)("TSTypeParameter")}});ue("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,j.assertValueType)("string")},in:{validate:(0,j.assertValueType)("boolean"),optional:!0},out:{validate:(0,j.assertValueType)("boolean"),optional:!0},const:{validate:(0,j.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,j.assertNodeType)("TSType"),optional:!0},default:{validate:(0,j.assertNodeType)("TSType"),optional:!0}}})});var oy=_(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.DEPRECATED_ALIASES=void 0;var cZ=eo.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var ai=_(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Object.defineProperty(Rt,"ALIAS_KEYS",{enumerable:!0,get:function(){return zt.ALIAS_KEYS}});Object.defineProperty(Rt,"BUILDER_KEYS",{enumerable:!0,get:function(){return zt.BUILDER_KEYS}});Object.defineProperty(Rt,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return tu.DEPRECATED_ALIASES}});Object.defineProperty(Rt,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return zt.DEPRECATED_KEYS}});Object.defineProperty(Rt,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return zt.FLIPPED_ALIAS_KEYS}});Object.defineProperty(Rt,"NODE_FIELDS",{enumerable:!0,get:function(){return zt.NODE_FIELDS}});Object.defineProperty(Rt,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return zt.NODE_PARENT_VALIDATIONS}});Object.defineProperty(Rt,"PLACEHOLDERS",{enumerable:!0,get:function(){return iu.PLACEHOLDERS}});Object.defineProperty(Rt,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return iu.PLACEHOLDERS_ALIAS}});Object.defineProperty(Rt,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return iu.PLACEHOLDERS_FLIPPED_ALIAS}});Rt.TYPES=void 0;Object.defineProperty(Rt,"VISITOR_KEYS",{enumerable:!0,get:function(){return zt.VISITOR_KEYS}});bn();Xm();Hm();Gm();Qm();ay();var zt=_i(),iu=Zc(),tu=oy();Object.keys(tu.DEPRECATED_ALIASES).forEach(t=>{zt.FLIPPED_ALIAS_KEYS[t]=zt.FLIPPED_ALIAS_KEYS[tu.DEPRECATED_ALIASES[t]]});for(let{types:t,set:e}of zt.allExpandedTypes)for(let i of t){let r=zt.FLIPPED_ALIAS_KEYS[i];r?r.forEach(e.add,e):e.add(i)}var pZ=Rt.TYPES=[].concat(Object.keys(zt.VISITOR_KEYS),Object.keys(zt.FLIPPED_ALIAS_KEYS),Object.keys(zt.DEPRECATED_KEYS))});var Ha=_(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.default=u_;Es.validateChild=cy;Es.validateField=ly;Es.validateInternal=p_;var Sn=ai();function u_(t,e,i){if(!t)return;let r=Sn.NODE_FIELDS[t.type];if(!r)return;let s=r[e];ly(t,e,i,s),cy(t,e,i)}function p_(t,e,i,r,s){if(t!=null&&t.validate&&!(t.optional&&r==null)&&(t.validate(e,i,r),s)){var n;let a=r.type;if(a==null)return;(n=Sn.NODE_PARENT_VALIDATIONS[a])==null||n.call(Sn.NODE_PARENT_VALIDATIONS,e,i,r)}}function ly(t,e,i,r){r!=null&&r.validate&&(r.optional&&i==null||r.validate(t,e,i))}function cy(t,e,i){var r;let s=i?.type;s!=null&&((r=Sn.NODE_PARENT_VALIDATIONS[s])==null||r.call(Sn.NODE_PARENT_VALIDATIONS,t,e,i))}});var ru=_(y=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});y.anyTypeAnnotation=WO;y.argumentPlaceholder=b2;y.arrayExpression=m_;y.arrayPattern=uO;y.arrayTypeAnnotation=YO;y.arrowFunctionExpression=pO;y.assignmentExpression=y_;y.assignmentPattern=cO;y.awaitExpression=DO;y.bigIntLiteral=d_;y.binaryExpression=T_;y.bindExpression=S2;y.blockStatement=S_;y.booleanLiteral=q_;y.booleanLiteralTypeAnnotation=JO;y.booleanTypeAnnotation=zO;y.breakStatement=E_;y.callExpression=P_;y.catchClause=v_;y.classAccessorProperty=RO;y.classBody=fO;y.classDeclaration=dO;y.classExpression=hO;y.classImplements=HO;y.classMethod=wO;y.classPrivateMethod=qO;y.classPrivateProperty=$O;y.classProperty=jO;y.conditionalExpression=A_;y.continueStatement=w_;y.debuggerStatement=C_;y.decimalLiteral=C2;y.declareClass=GO;y.declareExportAllDeclaration=aN;y.declareExportDeclaration=nN;y.declareFunction=QO;y.declareInterface=ZO;y.declareModule=eN;y.declareModuleExports=tN;y.declareOpaqueType=rN;y.declareTypeAlias=iN;y.declareVariable=sN;y.declaredPredicate=oN;y.decorator=E2;y.directive=x_;y.directiveLiteral=b_;y.doExpression=P2;y.doWhileStatement=I_;y.emptyStatement=k_;y.emptyTypeAnnotation=gN;y.enumBooleanBody=YN;y.enumBooleanMember=HN;y.enumDeclaration=WN;y.enumDefaultedMember=ZN;y.enumNumberBody=zN;y.enumNumberMember=GN;y.enumStringBody=JN;y.enumStringMember=QN;y.enumSymbolBody=XN;y.existsTypeAnnotation=lN;y.exportAllDeclaration=mO;y.exportDefaultDeclaration=yO;y.exportDefaultSpecifier=v2;y.exportNamedDeclaration=TO;y.exportNamespaceSpecifier=MO;y.exportSpecifier=gO;y.expressionStatement=__;y.file=O_;y.forInStatement=N_;y.forOfStatement=xO;y.forStatement=D_;y.functionDeclaration=L_;y.functionExpression=M_;y.functionTypeAnnotation=cN;y.functionTypeParam=uN;y.genericTypeAnnotation=pN;y.identifier=F_;y.ifStatement=B_;y.import=LO;y.importAttribute=VO;y.importDeclaration=bO;y.importDefaultSpecifier=SO;y.importExpression=vO;y.importNamespaceSpecifier=EO;y.importSpecifier=PO;y.indexedAccessType=e2;y.inferredPredicate=fN;y.interfaceDeclaration=dN;y.interfaceExtends=hN;y.interfaceTypeAnnotation=mN;y.interpreterDirective=g_;y.intersectionTypeAnnotation=yN;y.jSXAttribute=y.jsxAttribute=i2;y.jSXClosingElement=y.jsxClosingElement=r2;y.jSXClosingFragment=y.jsxClosingFragment=y2;y.jSXElement=y.jsxElement=s2;y.jSXEmptyExpression=y.jsxEmptyExpression=n2;y.jSXExpressionContainer=y.jsxExpressionContainer=a2;y.jSXFragment=y.jsxFragment=d2;y.jSXIdentifier=y.jsxIdentifier=l2;y.jSXMemberExpression=y.jsxMemberExpression=c2;y.jSXNamespacedName=y.jsxNamespacedName=u2;y.jSXOpeningElement=y.jsxOpeningElement=p2;y.jSXOpeningFragment=y.jsxOpeningFragment=m2;y.jSXSpreadAttribute=y.jsxSpreadAttribute=f2;y.jSXSpreadChild=y.jsxSpreadChild=o2;y.jSXText=y.jsxText=h2;y.labeledStatement=j_;y.logicalExpression=U_;y.memberExpression=K_;y.metaProperty=AO;y.mixedTypeAnnotation=TN;y.moduleExpression=I2;y.newExpression=V_;y.noop=T2;y.nullLiteral=$_;y.nullLiteralTypeAnnotation=XO;y.nullableTypeAnnotation=xN;y.numberLiteral=zD;y.numberLiteralTypeAnnotation=bN;y.numberTypeAnnotation=SN;y.numericLiteral=uy;y.objectExpression=Y_;y.objectMethod=z_;y.objectPattern=CO;y.objectProperty=J_;y.objectTypeAnnotation=EN;y.objectTypeCallProperty=vN;y.objectTypeIndexer=AN;y.objectTypeInternalSlot=PN;y.objectTypeProperty=wN;y.objectTypeSpreadProperty=CN;y.opaqueType=IN;y.optionalCallExpression=BO;y.optionalIndexedAccessType=t2;y.optionalMemberExpression=FO;y.parenthesizedExpression=G_;y.pipelineBareFunction=O2;y.pipelinePrimaryTopicReference=N2;y.pipelineTopicExpression=_2;y.placeholder=g2;y.privateName=UO;y.program=W_;y.qualifiedTypeIdentifier=kN;y.recordExpression=A2;y.regExpLiteral=py;y.regexLiteral=JD;y.restElement=fy;y.restProperty=XD;y.returnStatement=X_;y.sequenceExpression=H_;y.spreadElement=hy;y.spreadProperty=HD;y.staticBlock=KO;y.stringLiteral=R_;y.stringLiteralTypeAnnotation=_N;y.stringTypeAnnotation=ON;y.super=IO;y.switchCase=Q_;y.switchStatement=Z_;y.symbolTypeAnnotation=NN;y.taggedTemplateExpression=kO;y.templateElement=_O;y.templateLiteral=OO;y.thisExpression=eO;y.thisTypeAnnotation=DN;y.throwStatement=tO;y.topicReference=k2;y.tryStatement=iO;y.tSAnyKeyword=y.tsAnyKeyword=K2;y.tSArrayType=y.tsArrayType=cD;y.tSAsExpression=y.tsAsExpression=kD;y.tSBigIntKeyword=y.tsBigIntKeyword=W2;y.tSBooleanKeyword=y.tsBooleanKeyword=V2;y.tSCallSignatureDeclaration=y.tsCallSignatureDeclaration=j2;y.tSConditionalType=y.tsConditionalType=yD;y.tSConstructSignatureDeclaration=y.tsConstructSignatureDeclaration=R2;y.tSConstructorType=y.tsConstructorType=sD;y.tSDeclareFunction=y.tsDeclareFunction=M2;y.tSDeclareMethod=y.tsDeclareMethod=F2;y.tSEnumBody=y.tsEnumBody=ND;y.tSEnumDeclaration=y.tsEnumDeclaration=DD;y.tSEnumMember=y.tsEnumMember=LD;y.tSExportAssignment=y.tsExportAssignment=qD;y.tSExpressionWithTypeArguments=y.tsExpressionWithTypeArguments=vD;y.tSExternalModuleReference=y.tsExternalModuleReference=RD;y.tSFunctionType=y.tsFunctionType=rD;y.tSImportEqualsDeclaration=y.tsImportEqualsDeclaration=jD;y.tSImportType=y.tsImportType=BD;y.tSIndexSignature=y.tsIndexSignature=U2;y.tSIndexedAccessType=y.tsIndexedAccessType=bD;y.tSInferType=y.tsInferType=TD;y.tSInstantiationExpression=y.tsInstantiationExpression=ID;y.tSInterfaceBody=y.tsInterfaceBody=wD;y.tSInterfaceDeclaration=y.tsInterfaceDeclaration=AD;y.tSIntersectionType=y.tsIntersectionType=mD;y.tSIntrinsicKeyword=y.tsIntrinsicKeyword=Y2;y.tSLiteralType=y.tsLiteralType=PD;y.tSMappedType=y.tsMappedType=SD;y.tSMethodSignature=y.tsMethodSignature=q2;y.tSModuleBlock=y.tsModuleBlock=FD;y.tSModuleDeclaration=y.tsModuleDeclaration=MD;y.tSNamedTupleMember=y.tsNamedTupleMember=hD;y.tSNamespaceExportDeclaration=y.tsNamespaceExportDeclaration=UD;y.tSNeverKeyword=y.tsNeverKeyword=z2;y.tSNonNullExpression=y.tsNonNullExpression=$D;y.tSNullKeyword=y.tsNullKeyword=J2;y.tSNumberKeyword=y.tsNumberKeyword=X2;y.tSObjectKeyword=y.tsObjectKeyword=H2;y.tSOptionalType=y.tsOptionalType=pD;y.tSParameterProperty=y.tsParameterProperty=L2;y.tSParenthesizedType=y.tsParenthesizedType=gD;y.tSPropertySignature=y.tsPropertySignature=$2;y.tSQualifiedName=y.tsQualifiedName=B2;y.tSRestType=y.tsRestType=fD;y.tSSatisfiesExpression=y.tsSatisfiesExpression=_D;y.tSStringKeyword=y.tsStringKeyword=G2;y.tSSymbolKeyword=y.tsSymbolKeyword=Q2;y.tSTemplateLiteralType=y.tsTemplateLiteralType=ED;y.tSThisType=y.tsThisType=iD;y.tSTupleType=y.tsTupleType=uD;y.tSTypeAliasDeclaration=y.tsTypeAliasDeclaration=CD;y.tSTypeAnnotation=y.tsTypeAnnotation=KD;y.tSTypeAssertion=y.tsTypeAssertion=OD;y.tSTypeLiteral=y.tsTypeLiteral=lD;y.tSTypeOperator=y.tsTypeOperator=xD;y.tSTypeParameter=y.tsTypeParameter=YD;y.tSTypeParameterDeclaration=y.tsTypeParameterDeclaration=WD;y.tSTypeParameterInstantiation=y.tsTypeParameterInstantiation=VD;y.tSTypePredicate=y.tsTypePredicate=aD;y.tSTypeQuery=y.tsTypeQuery=oD;y.tSTypeReference=y.tsTypeReference=nD;y.tSUndefinedKeyword=y.tsUndefinedKeyword=Z2;y.tSUnionType=y.tsUnionType=dD;y.tSUnknownKeyword=y.tsUnknownKeyword=eD;y.tSVoidKeyword=y.tsVoidKeyword=tD;y.tupleExpression=w2;y.tupleTypeAnnotation=LN;y.typeAlias=FN;y.typeAnnotation=BN;y.typeCastExpression=jN;y.typeParameter=RN;y.typeParameterDeclaration=$N;y.typeParameterInstantiation=qN;y.typeofTypeAnnotation=MN;y.unaryExpression=rO;y.unionTypeAnnotation=UN;y.updateExpression=sO;y.v8IntrinsicIdentifier=x2;y.variableDeclaration=nO;y.variableDeclarator=aO;y.variance=KN;y.voidPattern=D2;y.voidTypeAnnotation=VN;y.whileStatement=oO;y.withStatement=lO;y.yieldExpression=NO;var f_=Ha(),to=ms(),h_=_i(),{validateInternal:h}=f_,{NODE_FIELDS:I}=h_;function d_(t){typeof t=="bigint"&&(t=t.toString());let e={type:"BigIntLiteral",value:t},i=I.BigIntLiteral;return h(i.value,e,"value",t),e}function m_(t=[]){let e={type:"ArrayExpression",elements:t},i=I.ArrayExpression;return h(i.elements,e,"elements",t,1),e}function y_(t,e,i){let r={type:"AssignmentExpression",operator:t,left:e,right:i},s=I.AssignmentExpression;return h(s.operator,r,"operator",t),h(s.left,r,"left",e,1),h(s.right,r,"right",i,1),r}function T_(t,e,i){let r={type:"BinaryExpression",operator:t,left:e,right:i},s=I.BinaryExpression;return h(s.operator,r,"operator",t),h(s.left,r,"left",e,1),h(s.right,r,"right",i,1),r}function g_(t){let e={type:"InterpreterDirective",value:t},i=I.InterpreterDirective;return h(i.value,e,"value",t),e}function x_(t){let e={type:"Directive",value:t},i=I.Directive;return h(i.value,e,"value",t,1),e}function b_(t){let e={type:"DirectiveLiteral",value:t},i=I.DirectiveLiteral;return h(i.value,e,"value",t),e}function S_(t,e=[]){let i={type:"BlockStatement",body:t,directives:e},r=I.BlockStatement;return h(r.body,i,"body",t,1),h(r.directives,i,"directives",e,1),i}function E_(t=null){let e={type:"BreakStatement",label:t},i=I.BreakStatement;return h(i.label,e,"label",t,1),e}function P_(t,e){let i={type:"CallExpression",callee:t,arguments:e},r=I.CallExpression;return h(r.callee,i,"callee",t,1),h(r.arguments,i,"arguments",e,1),i}function v_(t=null,e){let i={type:"CatchClause",param:t,body:e},r=I.CatchClause;return h(r.param,i,"param",t,1),h(r.body,i,"body",e,1),i}function A_(t,e,i){let r={type:"ConditionalExpression",test:t,consequent:e,alternate:i},s=I.ConditionalExpression;return h(s.test,r,"test",t,1),h(s.consequent,r,"consequent",e,1),h(s.alternate,r,"alternate",i,1),r}function w_(t=null){let e={type:"ContinueStatement",label:t},i=I.ContinueStatement;return h(i.label,e,"label",t,1),e}function C_(){return{type:"DebuggerStatement"}}function I_(t,e){let i={type:"DoWhileStatement",test:t,body:e},r=I.DoWhileStatement;return h(r.test,i,"test",t,1),h(r.body,i,"body",e,1),i}function k_(){return{type:"EmptyStatement"}}function __(t){let e={type:"ExpressionStatement",expression:t},i=I.ExpressionStatement;return h(i.expression,e,"expression",t,1),e}function O_(t,e=null,i=null){let r={type:"File",program:t,comments:e,tokens:i},s=I.File;return h(s.program,r,"program",t,1),h(s.comments,r,"comments",e,1),h(s.tokens,r,"tokens",i),r}function N_(t,e,i){let r={type:"ForInStatement",left:t,right:e,body:i},s=I.ForInStatement;return h(s.left,r,"left",t,1),h(s.right,r,"right",e,1),h(s.body,r,"body",i,1),r}function D_(t=null,e=null,i=null,r){let s={type:"ForStatement",init:t,test:e,update:i,body:r},n=I.ForStatement;return h(n.init,s,"init",t,1),h(n.test,s,"test",e,1),h(n.update,s,"update",i,1),h(n.body,s,"body",r,1),s}function L_(t=null,e,i,r=!1,s=!1){let n={type:"FunctionDeclaration",id:t,params:e,body:i,generator:r,async:s},a=I.FunctionDeclaration;return h(a.id,n,"id",t,1),h(a.params,n,"params",e,1),h(a.body,n,"body",i,1),h(a.generator,n,"generator",r),h(a.async,n,"async",s),n}function M_(t=null,e,i,r=!1,s=!1){let n={type:"FunctionExpression",id:t,params:e,body:i,generator:r,async:s},a=I.FunctionExpression;return h(a.id,n,"id",t,1),h(a.params,n,"params",e,1),h(a.body,n,"body",i,1),h(a.generator,n,"generator",r),h(a.async,n,"async",s),n}function F_(t){let e={type:"Identifier",name:t},i=I.Identifier;return h(i.name,e,"name",t),e}function B_(t,e,i=null){let r={type:"IfStatement",test:t,consequent:e,alternate:i},s=I.IfStatement;return h(s.test,r,"test",t,1),h(s.consequent,r,"consequent",e,1),h(s.alternate,r,"alternate",i,1),r}function j_(t,e){let i={type:"LabeledStatement",label:t,body:e},r=I.LabeledStatement;return h(r.label,i,"label",t,1),h(r.body,i,"body",e,1),i}function R_(t){let e={type:"StringLiteral",value:t},i=I.StringLiteral;return h(i.value,e,"value",t),e}function uy(t){let e={type:"NumericLiteral",value:t},i=I.NumericLiteral;return h(i.value,e,"value",t),e}function $_(){return{type:"NullLiteral"}}function q_(t){let e={type:"BooleanLiteral",value:t},i=I.BooleanLiteral;return h(i.value,e,"value",t),e}function py(t,e=""){let i={type:"RegExpLiteral",pattern:t,flags:e},r=I.RegExpLiteral;return h(r.pattern,i,"pattern",t),h(r.flags,i,"flags",e),i}function U_(t,e,i){let r={type:"LogicalExpression",operator:t,left:e,right:i},s=I.LogicalExpression;return h(s.operator,r,"operator",t),h(s.left,r,"left",e,1),h(s.right,r,"right",i,1),r}function K_(t,e,i=!1,r=null){let s={type:"MemberExpression",object:t,property:e,computed:i,optional:r},n=I.MemberExpression;return h(n.object,s,"object",t,1),h(n.property,s,"property",e,1),h(n.computed,s,"computed",i),h(n.optional,s,"optional",r),s}function V_(t,e){let i={type:"NewExpression",callee:t,arguments:e},r=I.NewExpression;return h(r.callee,i,"callee",t,1),h(r.arguments,i,"arguments",e,1),i}function W_(t,e=[],i="script",r=null){let s={type:"Program",body:t,directives:e,sourceType:i,interpreter:r},n=I.Program;return h(n.body,s,"body",t,1),h(n.directives,s,"directives",e,1),h(n.sourceType,s,"sourceType",i),h(n.interpreter,s,"interpreter",r,1),s}function Y_(t){let e={type:"ObjectExpression",properties:t},i=I.ObjectExpression;return h(i.properties,e,"properties",t,1),e}function z_(t="method",e,i,r,s=!1,n=!1,a=!1){let l={type:"ObjectMethod",kind:t,key:e,params:i,body:r,computed:s,generator:n,async:a},c=I.ObjectMethod;return h(c.kind,l,"kind",t),h(c.key,l,"key",e,1),h(c.params,l,"params",i,1),h(c.body,l,"body",r,1),h(c.computed,l,"computed",s),h(c.generator,l,"generator",n),h(c.async,l,"async",a),l}function J_(t,e,i=!1,r=!1,s=null){let n={type:"ObjectProperty",key:t,value:e,computed:i,shorthand:r,decorators:s},a=I.ObjectProperty;return h(a.key,n,"key",t,1),h(a.value,n,"value",e,1),h(a.computed,n,"computed",i),h(a.shorthand,n,"shorthand",r),h(a.decorators,n,"decorators",s,1),n}function fy(t){let e={type:"RestElement",argument:t},i=I.RestElement;return h(i.argument,e,"argument",t,1),e}function X_(t=null){let e={type:"ReturnStatement",argument:t},i=I.ReturnStatement;return h(i.argument,e,"argument",t,1),e}function H_(t){let e={type:"SequenceExpression",expressions:t},i=I.SequenceExpression;return h(i.expressions,e,"expressions",t,1),e}function G_(t){let e={type:"ParenthesizedExpression",expression:t},i=I.ParenthesizedExpression;return h(i.expression,e,"expression",t,1),e}function Q_(t=null,e){let i={type:"SwitchCase",test:t,consequent:e},r=I.SwitchCase;return h(r.test,i,"test",t,1),h(r.consequent,i,"consequent",e,1),i}function Z_(t,e){let i={type:"SwitchStatement",discriminant:t,cases:e},r=I.SwitchStatement;return h(r.discriminant,i,"discriminant",t,1),h(r.cases,i,"cases",e,1),i}function eO(){return{type:"ThisExpression"}}function tO(t){let e={type:"ThrowStatement",argument:t},i=I.ThrowStatement;return h(i.argument,e,"argument",t,1),e}function iO(t,e=null,i=null){let r={type:"TryStatement",block:t,handler:e,finalizer:i},s=I.TryStatement;return h(s.block,r,"block",t,1),h(s.handler,r,"handler",e,1),h(s.finalizer,r,"finalizer",i,1),r}function rO(t,e,i=!0){let r={type:"UnaryExpression",operator:t,argument:e,prefix:i},s=I.UnaryExpression;return h(s.operator,r,"operator",t),h(s.argument,r,"argument",e,1),h(s.prefix,r,"prefix",i),r}function sO(t,e,i=!1){let r={type:"UpdateExpression",operator:t,argument:e,prefix:i},s=I.UpdateExpression;return h(s.operator,r,"operator",t),h(s.argument,r,"argument",e,1),h(s.prefix,r,"prefix",i),r}function nO(t,e){let i={type:"VariableDeclaration",kind:t,declarations:e},r=I.VariableDeclaration;return h(r.kind,i,"kind",t),h(r.declarations,i,"declarations",e,1),i}function aO(t,e=null){let i={type:"VariableDeclarator",id:t,init:e},r=I.VariableDeclarator;return h(r.id,i,"id",t,1),h(r.init,i,"init",e,1),i}function oO(t,e){let i={type:"WhileStatement",test:t,body:e},r=I.WhileStatement;return h(r.test,i,"test",t,1),h(r.body,i,"body",e,1),i}function lO(t,e){let i={type:"WithStatement",object:t,body:e},r=I.WithStatement;return h(r.object,i,"object",t,1),h(r.body,i,"body",e,1),i}function cO(t,e){let i={type:"AssignmentPattern",left:t,right:e},r=I.AssignmentPattern;return h(r.left,i,"left",t,1),h(r.right,i,"right",e,1),i}function uO(t){let e={type:"ArrayPattern",elements:t},i=I.ArrayPattern;return h(i.elements,e,"elements",t,1),e}function pO(t,e,i=!1){let r={type:"ArrowFunctionExpression",params:t,body:e,async:i,expression:null},s=I.ArrowFunctionExpression;return h(s.params,r,"params",t,1),h(s.body,r,"body",e,1),h(s.async,r,"async",i),r}function fO(t){let e={type:"ClassBody",body:t},i=I.ClassBody;return h(i.body,e,"body",t,1),e}function hO(t=null,e=null,i,r=null){let s={type:"ClassExpression",id:t,superClass:e,body:i,decorators:r},n=I.ClassExpression;return h(n.id,s,"id",t,1),h(n.superClass,s,"superClass",e,1),h(n.body,s,"body",i,1),h(n.decorators,s,"decorators",r,1),s}function dO(t=null,e=null,i,r=null){let s={type:"ClassDeclaration",id:t,superClass:e,body:i,decorators:r},n=I.ClassDeclaration;return h(n.id,s,"id",t,1),h(n.superClass,s,"superClass",e,1),h(n.body,s,"body",i,1),h(n.decorators,s,"decorators",r,1),s}function mO(t){let e={type:"ExportAllDeclaration",source:t},i=I.ExportAllDeclaration;return h(i.source,e,"source",t,1),e}function yO(t){let e={type:"ExportDefaultDeclaration",declaration:t},i=I.ExportDefaultDeclaration;return h(i.declaration,e,"declaration",t,1),e}function TO(t=null,e=[],i=null){let r={type:"ExportNamedDeclaration",declaration:t,specifiers:e,source:i},s=I.ExportNamedDeclaration;return h(s.declaration,r,"declaration",t,1),h(s.specifiers,r,"specifiers",e,1),h(s.source,r,"source",i,1),r}function gO(t,e){let i={type:"ExportSpecifier",local:t,exported:e},r=I.ExportSpecifier;return h(r.local,i,"local",t,1),h(r.exported,i,"exported",e,1),i}function xO(t,e,i,r=!1){let s={type:"ForOfStatement",left:t,right:e,body:i,await:r},n=I.ForOfStatement;return h(n.left,s,"left",t,1),h(n.right,s,"right",e,1),h(n.body,s,"body",i,1),h(n.await,s,"await",r),s}function bO(t,e){let i={type:"ImportDeclaration",specifiers:t,source:e},r=I.ImportDeclaration;return h(r.specifiers,i,"specifiers",t,1),h(r.source,i,"source",e,1),i}function SO(t){let e={type:"ImportDefaultSpecifier",local:t},i=I.ImportDefaultSpecifier;return h(i.local,e,"local",t,1),e}function EO(t){let e={type:"ImportNamespaceSpecifier",local:t},i=I.ImportNamespaceSpecifier;return h(i.local,e,"local",t,1),e}function PO(t,e){let i={type:"ImportSpecifier",local:t,imported:e},r=I.ImportSpecifier;return h(r.local,i,"local",t,1),h(r.imported,i,"imported",e,1),i}function vO(t,e=null){let i={type:"ImportExpression",source:t,options:e},r=I.ImportExpression;return h(r.source,i,"source",t,1),h(r.options,i,"options",e,1),i}function AO(t,e){let i={type:"MetaProperty",meta:t,property:e},r=I.MetaProperty;return h(r.meta,i,"meta",t,1),h(r.property,i,"property",e,1),i}function wO(t="method",e,i,r,s=!1,n=!1,a=!1,l=!1){let c={type:"ClassMethod",kind:t,key:e,params:i,body:r,computed:s,static:n,generator:a,async:l},o=I.ClassMethod;return h(o.kind,c,"kind",t),h(o.key,c,"key",e,1),h(o.params,c,"params",i,1),h(o.body,c,"body",r,1),h(o.computed,c,"computed",s),h(o.static,c,"static",n),h(o.generator,c,"generator",a),h(o.async,c,"async",l),c}function CO(t){let e={type:"ObjectPattern",properties:t},i=I.ObjectPattern;return h(i.properties,e,"properties",t,1),e}function hy(t){let e={type:"SpreadElement",argument:t},i=I.SpreadElement;return h(i.argument,e,"argument",t,1),e}function IO(){return{type:"Super"}}function kO(t,e){let i={type:"TaggedTemplateExpression",tag:t,quasi:e},r=I.TaggedTemplateExpression;return h(r.tag,i,"tag",t,1),h(r.quasi,i,"quasi",e,1),i}function _O(t,e=!1){let i={type:"TemplateElement",value:t,tail:e},r=I.TemplateElement;return h(r.value,i,"value",t),h(r.tail,i,"tail",e),i}function OO(t,e){let i={type:"TemplateLiteral",quasis:t,expressions:e},r=I.TemplateLiteral;return h(r.quasis,i,"quasis",t,1),h(r.expressions,i,"expressions",e,1),i}function NO(t=null,e=!1){let i={type:"YieldExpression",argument:t,delegate:e},r=I.YieldExpression;return h(r.argument,i,"argument",t,1),h(r.delegate,i,"delegate",e),i}function DO(t){let e={type:"AwaitExpression",argument:t},i=I.AwaitExpression;return h(i.argument,e,"argument",t,1),e}function LO(){return{type:"Import"}}function MO(t){let e={type:"ExportNamespaceSpecifier",exported:t},i=I.ExportNamespaceSpecifier;return h(i.exported,e,"exported",t,1),e}function FO(t,e,i=!1,r){let s={type:"OptionalMemberExpression",object:t,property:e,computed:i,optional:r},n=I.OptionalMemberExpression;return h(n.object,s,"object",t,1),h(n.property,s,"property",e,1),h(n.computed,s,"computed",i),h(n.optional,s,"optional",r),s}function BO(t,e,i){let r={type:"OptionalCallExpression",callee:t,arguments:e,optional:i},s=I.OptionalCallExpression;return h(s.callee,r,"callee",t,1),h(s.arguments,r,"arguments",e,1),h(s.optional,r,"optional",i),r}function jO(t,e=null,i=null,r=null,s=!1,n=!1){let a={type:"ClassProperty",key:t,value:e,typeAnnotation:i,decorators:r,computed:s,static:n},l=I.ClassProperty;return h(l.key,a,"key",t,1),h(l.value,a,"value",e,1),h(l.typeAnnotation,a,"typeAnnotation",i,1),h(l.decorators,a,"decorators",r,1),h(l.computed,a,"computed",s),h(l.static,a,"static",n),a}function RO(t,e=null,i=null,r=null,s=!1,n=!1){let a={type:"ClassAccessorProperty",key:t,value:e,typeAnnotation:i,decorators:r,computed:s,static:n},l=I.ClassAccessorProperty;return h(l.key,a,"key",t,1),h(l.value,a,"value",e,1),h(l.typeAnnotation,a,"typeAnnotation",i,1),h(l.decorators,a,"decorators",r,1),h(l.computed,a,"computed",s),h(l.static,a,"static",n),a}function $O(t,e=null,i=null,r=!1){let s={type:"ClassPrivateProperty",key:t,value:e,decorators:i,static:r},n=I.ClassPrivateProperty;return h(n.key,s,"key",t,1),h(n.value,s,"value",e,1),h(n.decorators,s,"decorators",i,1),h(n.static,s,"static",r),s}function qO(t="method",e,i,r,s=!1){let n={type:"ClassPrivateMethod",kind:t,key:e,params:i,body:r,static:s},a=I.ClassPrivateMethod;return h(a.kind,n,"kind",t),h(a.key,n,"key",e,1),h(a.params,n,"params",i,1),h(a.body,n,"body",r,1),h(a.static,n,"static",s),n}function UO(t){let e={type:"PrivateName",id:t},i=I.PrivateName;return h(i.id,e,"id",t,1),e}function KO(t){let e={type:"StaticBlock",body:t},i=I.StaticBlock;return h(i.body,e,"body",t,1),e}function VO(t,e){let i={type:"ImportAttribute",key:t,value:e},r=I.ImportAttribute;return h(r.key,i,"key",t,1),h(r.value,i,"value",e,1),i}function WO(){return{type:"AnyTypeAnnotation"}}function YO(t){let e={type:"ArrayTypeAnnotation",elementType:t},i=I.ArrayTypeAnnotation;return h(i.elementType,e,"elementType",t,1),e}function zO(){return{type:"BooleanTypeAnnotation"}}function JO(t){let e={type:"BooleanLiteralTypeAnnotation",value:t},i=I.BooleanLiteralTypeAnnotation;return h(i.value,e,"value",t),e}function XO(){return{type:"NullLiteralTypeAnnotation"}}function HO(t,e=null){let i={type:"ClassImplements",id:t,typeParameters:e},r=I.ClassImplements;return h(r.id,i,"id",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function GO(t,e=null,i=null,r){let s={type:"DeclareClass",id:t,typeParameters:e,extends:i,body:r},n=I.DeclareClass;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.extends,s,"extends",i,1),h(n.body,s,"body",r,1),s}function QO(t){let e={type:"DeclareFunction",id:t},i=I.DeclareFunction;return h(i.id,e,"id",t,1),e}function ZO(t,e=null,i=null,r){let s={type:"DeclareInterface",id:t,typeParameters:e,extends:i,body:r},n=I.DeclareInterface;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.extends,s,"extends",i,1),h(n.body,s,"body",r,1),s}function eN(t,e,i=null){let r={type:"DeclareModule",id:t,body:e,kind:i},s=I.DeclareModule;return h(s.id,r,"id",t,1),h(s.body,r,"body",e,1),h(s.kind,r,"kind",i),r}function tN(t){let e={type:"DeclareModuleExports",typeAnnotation:t},i=I.DeclareModuleExports;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function iN(t,e=null,i){let r={type:"DeclareTypeAlias",id:t,typeParameters:e,right:i},s=I.DeclareTypeAlias;return h(s.id,r,"id",t,1),h(s.typeParameters,r,"typeParameters",e,1),h(s.right,r,"right",i,1),r}function rN(t,e=null,i=null){let r={type:"DeclareOpaqueType",id:t,typeParameters:e,supertype:i},s=I.DeclareOpaqueType;return h(s.id,r,"id",t,1),h(s.typeParameters,r,"typeParameters",e,1),h(s.supertype,r,"supertype",i,1),r}function sN(t){let e={type:"DeclareVariable",id:t},i=I.DeclareVariable;return h(i.id,e,"id",t,1),e}function nN(t=null,e=null,i=null,r=null){let s={type:"DeclareExportDeclaration",declaration:t,specifiers:e,source:i,attributes:r},n=I.DeclareExportDeclaration;return h(n.declaration,s,"declaration",t,1),h(n.specifiers,s,"specifiers",e,1),h(n.source,s,"source",i,1),h(n.attributes,s,"attributes",r,1),s}function aN(t,e=null){let i={type:"DeclareExportAllDeclaration",source:t,attributes:e},r=I.DeclareExportAllDeclaration;return h(r.source,i,"source",t,1),h(r.attributes,i,"attributes",e,1),i}function oN(t){let e={type:"DeclaredPredicate",value:t},i=I.DeclaredPredicate;return h(i.value,e,"value",t,1),e}function lN(){return{type:"ExistsTypeAnnotation"}}function cN(t=null,e,i=null,r){let s={type:"FunctionTypeAnnotation",typeParameters:t,params:e,rest:i,returnType:r},n=I.FunctionTypeAnnotation;return h(n.typeParameters,s,"typeParameters",t,1),h(n.params,s,"params",e,1),h(n.rest,s,"rest",i,1),h(n.returnType,s,"returnType",r,1),s}function uN(t=null,e){let i={type:"FunctionTypeParam",name:t,typeAnnotation:e},r=I.FunctionTypeParam;return h(r.name,i,"name",t,1),h(r.typeAnnotation,i,"typeAnnotation",e,1),i}function pN(t,e=null){let i={type:"GenericTypeAnnotation",id:t,typeParameters:e},r=I.GenericTypeAnnotation;return h(r.id,i,"id",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function fN(){return{type:"InferredPredicate"}}function hN(t,e=null){let i={type:"InterfaceExtends",id:t,typeParameters:e},r=I.InterfaceExtends;return h(r.id,i,"id",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function dN(t,e=null,i=null,r){let s={type:"InterfaceDeclaration",id:t,typeParameters:e,extends:i,body:r},n=I.InterfaceDeclaration;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.extends,s,"extends",i,1),h(n.body,s,"body",r,1),s}function mN(t=null,e){let i={type:"InterfaceTypeAnnotation",extends:t,body:e},r=I.InterfaceTypeAnnotation;return h(r.extends,i,"extends",t,1),h(r.body,i,"body",e,1),i}function yN(t){let e={type:"IntersectionTypeAnnotation",types:t},i=I.IntersectionTypeAnnotation;return h(i.types,e,"types",t,1),e}function TN(){return{type:"MixedTypeAnnotation"}}function gN(){return{type:"EmptyTypeAnnotation"}}function xN(t){let e={type:"NullableTypeAnnotation",typeAnnotation:t},i=I.NullableTypeAnnotation;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function bN(t){let e={type:"NumberLiteralTypeAnnotation",value:t},i=I.NumberLiteralTypeAnnotation;return h(i.value,e,"value",t),e}function SN(){return{type:"NumberTypeAnnotation"}}function EN(t,e=[],i=[],r=[],s=!1){let n={type:"ObjectTypeAnnotation",properties:t,indexers:e,callProperties:i,internalSlots:r,exact:s},a=I.ObjectTypeAnnotation;return h(a.properties,n,"properties",t,1),h(a.indexers,n,"indexers",e,1),h(a.callProperties,n,"callProperties",i,1),h(a.internalSlots,n,"internalSlots",r,1),h(a.exact,n,"exact",s),n}function PN(t,e,i,r,s){let n={type:"ObjectTypeInternalSlot",id:t,value:e,optional:i,static:r,method:s},a=I.ObjectTypeInternalSlot;return h(a.id,n,"id",t,1),h(a.value,n,"value",e,1),h(a.optional,n,"optional",i),h(a.static,n,"static",r),h(a.method,n,"method",s),n}function vN(t){let e={type:"ObjectTypeCallProperty",value:t,static:null},i=I.ObjectTypeCallProperty;return h(i.value,e,"value",t,1),e}function AN(t=null,e,i,r=null){let s={type:"ObjectTypeIndexer",id:t,key:e,value:i,variance:r,static:null},n=I.ObjectTypeIndexer;return h(n.id,s,"id",t,1),h(n.key,s,"key",e,1),h(n.value,s,"value",i,1),h(n.variance,s,"variance",r,1),s}function wN(t,e,i=null){let r={type:"ObjectTypeProperty",key:t,value:e,variance:i,kind:null,method:null,optional:null,proto:null,static:null},s=I.ObjectTypeProperty;return h(s.key,r,"key",t,1),h(s.value,r,"value",e,1),h(s.variance,r,"variance",i,1),r}function CN(t){let e={type:"ObjectTypeSpreadProperty",argument:t},i=I.ObjectTypeSpreadProperty;return h(i.argument,e,"argument",t,1),e}function IN(t,e=null,i=null,r){let s={type:"OpaqueType",id:t,typeParameters:e,supertype:i,impltype:r},n=I.OpaqueType;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.supertype,s,"supertype",i,1),h(n.impltype,s,"impltype",r,1),s}function kN(t,e){let i={type:"QualifiedTypeIdentifier",id:t,qualification:e},r=I.QualifiedTypeIdentifier;return h(r.id,i,"id",t,1),h(r.qualification,i,"qualification",e,1),i}function _N(t){let e={type:"StringLiteralTypeAnnotation",value:t},i=I.StringLiteralTypeAnnotation;return h(i.value,e,"value",t),e}function ON(){return{type:"StringTypeAnnotation"}}function NN(){return{type:"SymbolTypeAnnotation"}}function DN(){return{type:"ThisTypeAnnotation"}}function LN(t){let e={type:"TupleTypeAnnotation",types:t},i=I.TupleTypeAnnotation;return h(i.types,e,"types",t,1),e}function MN(t){let e={type:"TypeofTypeAnnotation",argument:t},i=I.TypeofTypeAnnotation;return h(i.argument,e,"argument",t,1),e}function FN(t,e=null,i){let r={type:"TypeAlias",id:t,typeParameters:e,right:i},s=I.TypeAlias;return h(s.id,r,"id",t,1),h(s.typeParameters,r,"typeParameters",e,1),h(s.right,r,"right",i,1),r}function BN(t){let e={type:"TypeAnnotation",typeAnnotation:t},i=I.TypeAnnotation;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function jN(t,e){let i={type:"TypeCastExpression",expression:t,typeAnnotation:e},r=I.TypeCastExpression;return h(r.expression,i,"expression",t,1),h(r.typeAnnotation,i,"typeAnnotation",e,1),i}function RN(t=null,e=null,i=null){let r={type:"TypeParameter",bound:t,default:e,variance:i,name:null},s=I.TypeParameter;return h(s.bound,r,"bound",t,1),h(s.default,r,"default",e,1),h(s.variance,r,"variance",i,1),r}function $N(t){let e={type:"TypeParameterDeclaration",params:t},i=I.TypeParameterDeclaration;return h(i.params,e,"params",t,1),e}function qN(t){let e={type:"TypeParameterInstantiation",params:t},i=I.TypeParameterInstantiation;return h(i.params,e,"params",t,1),e}function UN(t){let e={type:"UnionTypeAnnotation",types:t},i=I.UnionTypeAnnotation;return h(i.types,e,"types",t,1),e}function KN(t){let e={type:"Variance",kind:t},i=I.Variance;return h(i.kind,e,"kind",t),e}function VN(){return{type:"VoidTypeAnnotation"}}function WN(t,e){let i={type:"EnumDeclaration",id:t,body:e},r=I.EnumDeclaration;return h(r.id,i,"id",t,1),h(r.body,i,"body",e,1),i}function YN(t){let e={type:"EnumBooleanBody",members:t,explicitType:null,hasUnknownMembers:null},i=I.EnumBooleanBody;return h(i.members,e,"members",t,1),e}function zN(t){let e={type:"EnumNumberBody",members:t,explicitType:null,hasUnknownMembers:null},i=I.EnumNumberBody;return h(i.members,e,"members",t,1),e}function JN(t){let e={type:"EnumStringBody",members:t,explicitType:null,hasUnknownMembers:null},i=I.EnumStringBody;return h(i.members,e,"members",t,1),e}function XN(t){let e={type:"EnumSymbolBody",members:t,hasUnknownMembers:null},i=I.EnumSymbolBody;return h(i.members,e,"members",t,1),e}function HN(t){let e={type:"EnumBooleanMember",id:t,init:null},i=I.EnumBooleanMember;return h(i.id,e,"id",t,1),e}function GN(t,e){let i={type:"EnumNumberMember",id:t,init:e},r=I.EnumNumberMember;return h(r.id,i,"id",t,1),h(r.init,i,"init",e,1),i}function QN(t,e){let i={type:"EnumStringMember",id:t,init:e},r=I.EnumStringMember;return h(r.id,i,"id",t,1),h(r.init,i,"init",e,1),i}function ZN(t){let e={type:"EnumDefaultedMember",id:t},i=I.EnumDefaultedMember;return h(i.id,e,"id",t,1),e}function e2(t,e){let i={type:"IndexedAccessType",objectType:t,indexType:e},r=I.IndexedAccessType;return h(r.objectType,i,"objectType",t,1),h(r.indexType,i,"indexType",e,1),i}function t2(t,e){let i={type:"OptionalIndexedAccessType",objectType:t,indexType:e,optional:null},r=I.OptionalIndexedAccessType;return h(r.objectType,i,"objectType",t,1),h(r.indexType,i,"indexType",e,1),i}function i2(t,e=null){let i={type:"JSXAttribute",name:t,value:e},r=I.JSXAttribute;return h(r.name,i,"name",t,1),h(r.value,i,"value",e,1),i}function r2(t){let e={type:"JSXClosingElement",name:t},i=I.JSXClosingElement;return h(i.name,e,"name",t,1),e}function s2(t,e=null,i,r=null){let s={type:"JSXElement",openingElement:t,closingElement:e,children:i,selfClosing:r},n=I.JSXElement;return h(n.openingElement,s,"openingElement",t,1),h(n.closingElement,s,"closingElement",e,1),h(n.children,s,"children",i,1),h(n.selfClosing,s,"selfClosing",r),s}function n2(){return{type:"JSXEmptyExpression"}}function a2(t){let e={type:"JSXExpressionContainer",expression:t},i=I.JSXExpressionContainer;return h(i.expression,e,"expression",t,1),e}function o2(t){let e={type:"JSXSpreadChild",expression:t},i=I.JSXSpreadChild;return h(i.expression,e,"expression",t,1),e}function l2(t){let e={type:"JSXIdentifier",name:t},i=I.JSXIdentifier;return h(i.name,e,"name",t),e}function c2(t,e){let i={type:"JSXMemberExpression",object:t,property:e},r=I.JSXMemberExpression;return h(r.object,i,"object",t,1),h(r.property,i,"property",e,1),i}function u2(t,e){let i={type:"JSXNamespacedName",namespace:t,name:e},r=I.JSXNamespacedName;return h(r.namespace,i,"namespace",t,1),h(r.name,i,"name",e,1),i}function p2(t,e,i=!1){let r={type:"JSXOpeningElement",name:t,attributes:e,selfClosing:i},s=I.JSXOpeningElement;return h(s.name,r,"name",t,1),h(s.attributes,r,"attributes",e,1),h(s.selfClosing,r,"selfClosing",i),r}function f2(t){let e={type:"JSXSpreadAttribute",argument:t},i=I.JSXSpreadAttribute;return h(i.argument,e,"argument",t,1),e}function h2(t){let e={type:"JSXText",value:t},i=I.JSXText;return h(i.value,e,"value",t),e}function d2(t,e,i){let r={type:"JSXFragment",openingFragment:t,closingFragment:e,children:i},s=I.JSXFragment;return h(s.openingFragment,r,"openingFragment",t,1),h(s.closingFragment,r,"closingFragment",e,1),h(s.children,r,"children",i,1),r}function m2(){return{type:"JSXOpeningFragment"}}function y2(){return{type:"JSXClosingFragment"}}function T2(){return{type:"Noop"}}function g2(t,e){let i={type:"Placeholder",expectedNode:t,name:e},r=I.Placeholder;return h(r.expectedNode,i,"expectedNode",t),h(r.name,i,"name",e,1),i}function x2(t){let e={type:"V8IntrinsicIdentifier",name:t},i=I.V8IntrinsicIdentifier;return h(i.name,e,"name",t),e}function b2(){return{type:"ArgumentPlaceholder"}}function S2(t,e){let i={type:"BindExpression",object:t,callee:e},r=I.BindExpression;return h(r.object,i,"object",t,1),h(r.callee,i,"callee",e,1),i}function E2(t){let e={type:"Decorator",expression:t},i=I.Decorator;return h(i.expression,e,"expression",t,1),e}function P2(t,e=!1){let i={type:"DoExpression",body:t,async:e},r=I.DoExpression;return h(r.body,i,"body",t,1),h(r.async,i,"async",e),i}function v2(t){let e={type:"ExportDefaultSpecifier",exported:t},i=I.ExportDefaultSpecifier;return h(i.exported,e,"exported",t,1),e}function A2(t){let e={type:"RecordExpression",properties:t},i=I.RecordExpression;return h(i.properties,e,"properties",t,1),e}function w2(t=[]){let e={type:"TupleExpression",elements:t},i=I.TupleExpression;return h(i.elements,e,"elements",t,1),e}function C2(t){let e={type:"DecimalLiteral",value:t},i=I.DecimalLiteral;return h(i.value,e,"value",t),e}function I2(t){let e={type:"ModuleExpression",body:t},i=I.ModuleExpression;return h(i.body,e,"body",t,1),e}function k2(){return{type:"TopicReference"}}function _2(t){let e={type:"PipelineTopicExpression",expression:t},i=I.PipelineTopicExpression;return h(i.expression,e,"expression",t,1),e}function O2(t){let e={type:"PipelineBareFunction",callee:t},i=I.PipelineBareFunction;return h(i.callee,e,"callee",t,1),e}function N2(){return{type:"PipelinePrimaryTopicReference"}}function D2(){return{type:"VoidPattern"}}function L2(t){let e={type:"TSParameterProperty",parameter:t},i=I.TSParameterProperty;return h(i.parameter,e,"parameter",t,1),e}function M2(t=null,e=null,i,r=null){let s={type:"TSDeclareFunction",id:t,typeParameters:e,params:i,returnType:r},n=I.TSDeclareFunction;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.params,s,"params",i,1),h(n.returnType,s,"returnType",r,1),s}function F2(t=null,e,i=null,r,s=null){let n={type:"TSDeclareMethod",decorators:t,key:e,typeParameters:i,params:r,returnType:s},a=I.TSDeclareMethod;return h(a.decorators,n,"decorators",t,1),h(a.key,n,"key",e,1),h(a.typeParameters,n,"typeParameters",i,1),h(a.params,n,"params",r,1),h(a.returnType,n,"returnType",s,1),n}function B2(t,e){let i={type:"TSQualifiedName",left:t,right:e},r=I.TSQualifiedName;return h(r.left,i,"left",t,1),h(r.right,i,"right",e,1),i}function j2(t=null,e,i=null){let r={type:"TSCallSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:i},s=I.TSCallSignatureDeclaration;return h(s.typeParameters,r,"typeParameters",t,1),h(s.parameters,r,"parameters",e,1),h(s.typeAnnotation,r,"typeAnnotation",i,1),r}function R2(t=null,e,i=null){let r={type:"TSConstructSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:i},s=I.TSConstructSignatureDeclaration;return h(s.typeParameters,r,"typeParameters",t,1),h(s.parameters,r,"parameters",e,1),h(s.typeAnnotation,r,"typeAnnotation",i,1),r}function $2(t,e=null){let i={type:"TSPropertySignature",key:t,typeAnnotation:e},r=I.TSPropertySignature;return h(r.key,i,"key",t,1),h(r.typeAnnotation,i,"typeAnnotation",e,1),i}function q2(t,e=null,i,r=null){let s={type:"TSMethodSignature",key:t,typeParameters:e,parameters:i,typeAnnotation:r,kind:null},n=I.TSMethodSignature;return h(n.key,s,"key",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.parameters,s,"parameters",i,1),h(n.typeAnnotation,s,"typeAnnotation",r,1),s}function U2(t,e=null){let i={type:"TSIndexSignature",parameters:t,typeAnnotation:e},r=I.TSIndexSignature;return h(r.parameters,i,"parameters",t,1),h(r.typeAnnotation,i,"typeAnnotation",e,1),i}function K2(){return{type:"TSAnyKeyword"}}function V2(){return{type:"TSBooleanKeyword"}}function W2(){return{type:"TSBigIntKeyword"}}function Y2(){return{type:"TSIntrinsicKeyword"}}function z2(){return{type:"TSNeverKeyword"}}function J2(){return{type:"TSNullKeyword"}}function X2(){return{type:"TSNumberKeyword"}}function H2(){return{type:"TSObjectKeyword"}}function G2(){return{type:"TSStringKeyword"}}function Q2(){return{type:"TSSymbolKeyword"}}function Z2(){return{type:"TSUndefinedKeyword"}}function eD(){return{type:"TSUnknownKeyword"}}function tD(){return{type:"TSVoidKeyword"}}function iD(){return{type:"TSThisType"}}function rD(t=null,e,i=null){let r={type:"TSFunctionType",typeParameters:t,parameters:e,typeAnnotation:i},s=I.TSFunctionType;return h(s.typeParameters,r,"typeParameters",t,1),h(s.parameters,r,"parameters",e,1),h(s.typeAnnotation,r,"typeAnnotation",i,1),r}function sD(t=null,e,i=null){let r={type:"TSConstructorType",typeParameters:t,parameters:e,typeAnnotation:i},s=I.TSConstructorType;return h(s.typeParameters,r,"typeParameters",t,1),h(s.parameters,r,"parameters",e,1),h(s.typeAnnotation,r,"typeAnnotation",i,1),r}function nD(t,e=null){let i={type:"TSTypeReference",typeName:t,typeParameters:e},r=I.TSTypeReference;return h(r.typeName,i,"typeName",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function aD(t,e=null,i=null){let r={type:"TSTypePredicate",parameterName:t,typeAnnotation:e,asserts:i},s=I.TSTypePredicate;return h(s.parameterName,r,"parameterName",t,1),h(s.typeAnnotation,r,"typeAnnotation",e,1),h(s.asserts,r,"asserts",i),r}function oD(t,e=null){let i={type:"TSTypeQuery",exprName:t,typeParameters:e},r=I.TSTypeQuery;return h(r.exprName,i,"exprName",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function lD(t){let e={type:"TSTypeLiteral",members:t},i=I.TSTypeLiteral;return h(i.members,e,"members",t,1),e}function cD(t){let e={type:"TSArrayType",elementType:t},i=I.TSArrayType;return h(i.elementType,e,"elementType",t,1),e}function uD(t){let e={type:"TSTupleType",elementTypes:t},i=I.TSTupleType;return h(i.elementTypes,e,"elementTypes",t,1),e}function pD(t){let e={type:"TSOptionalType",typeAnnotation:t},i=I.TSOptionalType;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function fD(t){let e={type:"TSRestType",typeAnnotation:t},i=I.TSRestType;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function hD(t,e,i=!1){let r={type:"TSNamedTupleMember",label:t,elementType:e,optional:i},s=I.TSNamedTupleMember;return h(s.label,r,"label",t,1),h(s.elementType,r,"elementType",e,1),h(s.optional,r,"optional",i),r}function dD(t){let e={type:"TSUnionType",types:t},i=I.TSUnionType;return h(i.types,e,"types",t,1),e}function mD(t){let e={type:"TSIntersectionType",types:t},i=I.TSIntersectionType;return h(i.types,e,"types",t,1),e}function yD(t,e,i,r){let s={type:"TSConditionalType",checkType:t,extendsType:e,trueType:i,falseType:r},n=I.TSConditionalType;return h(n.checkType,s,"checkType",t,1),h(n.extendsType,s,"extendsType",e,1),h(n.trueType,s,"trueType",i,1),h(n.falseType,s,"falseType",r,1),s}function TD(t){let e={type:"TSInferType",typeParameter:t},i=I.TSInferType;return h(i.typeParameter,e,"typeParameter",t,1),e}function gD(t){let e={type:"TSParenthesizedType",typeAnnotation:t},i=I.TSParenthesizedType;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function xD(t,e){let i={type:"TSTypeOperator",typeAnnotation:t,operator:e},r=I.TSTypeOperator;return h(r.typeAnnotation,i,"typeAnnotation",t,1),h(r.operator,i,"operator",e),i}function bD(t,e){let i={type:"TSIndexedAccessType",objectType:t,indexType:e},r=I.TSIndexedAccessType;return h(r.objectType,i,"objectType",t,1),h(r.indexType,i,"indexType",e,1),i}function SD(t,e=null,i=null){let r={type:"TSMappedType",typeParameter:t,typeAnnotation:e,nameType:i},s=I.TSMappedType;return h(s.typeParameter,r,"typeParameter",t,1),h(s.typeAnnotation,r,"typeAnnotation",e,1),h(s.nameType,r,"nameType",i,1),r}function ED(t,e){let i={type:"TSTemplateLiteralType",quasis:t,types:e},r=I.TSTemplateLiteralType;return h(r.quasis,i,"quasis",t,1),h(r.types,i,"types",e,1),i}function PD(t){let e={type:"TSLiteralType",literal:t},i=I.TSLiteralType;return h(i.literal,e,"literal",t,1),e}function vD(t,e=null){let i={type:"TSExpressionWithTypeArguments",expression:t,typeParameters:e},r=I.TSExpressionWithTypeArguments;return h(r.expression,i,"expression",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function AD(t,e=null,i=null,r){let s={type:"TSInterfaceDeclaration",id:t,typeParameters:e,extends:i,body:r},n=I.TSInterfaceDeclaration;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.extends,s,"extends",i,1),h(n.body,s,"body",r,1),s}function wD(t){let e={type:"TSInterfaceBody",body:t},i=I.TSInterfaceBody;return h(i.body,e,"body",t,1),e}function CD(t,e=null,i){let r={type:"TSTypeAliasDeclaration",id:t,typeParameters:e,typeAnnotation:i},s=I.TSTypeAliasDeclaration;return h(s.id,r,"id",t,1),h(s.typeParameters,r,"typeParameters",e,1),h(s.typeAnnotation,r,"typeAnnotation",i,1),r}function ID(t,e=null){let i={type:"TSInstantiationExpression",expression:t,typeParameters:e},r=I.TSInstantiationExpression;return h(r.expression,i,"expression",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function kD(t,e){let i={type:"TSAsExpression",expression:t,typeAnnotation:e},r=I.TSAsExpression;return h(r.expression,i,"expression",t,1),h(r.typeAnnotation,i,"typeAnnotation",e,1),i}function _D(t,e){let i={type:"TSSatisfiesExpression",expression:t,typeAnnotation:e},r=I.TSSatisfiesExpression;return h(r.expression,i,"expression",t,1),h(r.typeAnnotation,i,"typeAnnotation",e,1),i}function OD(t,e){let i={type:"TSTypeAssertion",typeAnnotation:t,expression:e},r=I.TSTypeAssertion;return h(r.typeAnnotation,i,"typeAnnotation",t,1),h(r.expression,i,"expression",e,1),i}function ND(t){let e={type:"TSEnumBody",members:t},i=I.TSEnumBody;return h(i.members,e,"members",t,1),e}function DD(t,e){let i={type:"TSEnumDeclaration",id:t,members:e},r=I.TSEnumDeclaration;return h(r.id,i,"id",t,1),h(r.members,i,"members",e,1),i}function LD(t,e=null){let i={type:"TSEnumMember",id:t,initializer:e},r=I.TSEnumMember;return h(r.id,i,"id",t,1),h(r.initializer,i,"initializer",e,1),i}function MD(t,e){let i={type:"TSModuleDeclaration",id:t,body:e,kind:null},r=I.TSModuleDeclaration;return h(r.id,i,"id",t,1),h(r.body,i,"body",e,1),i}function FD(t){let e={type:"TSModuleBlock",body:t},i=I.TSModuleBlock;return h(i.body,e,"body",t,1),e}function BD(t,e=null,i=null){let r={type:"TSImportType",argument:t,qualifier:e,typeParameters:i},s=I.TSImportType;return h(s.argument,r,"argument",t,1),h(s.qualifier,r,"qualifier",e,1),h(s.typeParameters,r,"typeParameters",i,1),r}function jD(t,e){let i={type:"TSImportEqualsDeclaration",id:t,moduleReference:e,isExport:null},r=I.TSImportEqualsDeclaration;return h(r.id,i,"id",t,1),h(r.moduleReference,i,"moduleReference",e,1),i}function RD(t){let e={type:"TSExternalModuleReference",expression:t},i=I.TSExternalModuleReference;return h(i.expression,e,"expression",t,1),e}function $D(t){let e={type:"TSNonNullExpression",expression:t},i=I.TSNonNullExpression;return h(i.expression,e,"expression",t,1),e}function qD(t){let e={type:"TSExportAssignment",expression:t},i=I.TSExportAssignment;return h(i.expression,e,"expression",t,1),e}function UD(t){let e={type:"TSNamespaceExportDeclaration",id:t},i=I.TSNamespaceExportDeclaration;return h(i.id,e,"id",t,1),e}function KD(t){let e={type:"TSTypeAnnotation",typeAnnotation:t},i=I.TSTypeAnnotation;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function VD(t){let e={type:"TSTypeParameterInstantiation",params:t},i=I.TSTypeParameterInstantiation;return h(i.params,e,"params",t,1),e}function WD(t){let e={type:"TSTypeParameterDeclaration",params:t},i=I.TSTypeParameterDeclaration;return h(i.params,e,"params",t,1),e}function YD(t=null,e=null,i){let r={type:"TSTypeParameter",constraint:t,default:e,name:i},s=I.TSTypeParameter;return h(s.constraint,r,"constraint",t,1),h(s.default,r,"default",e,1),h(s.name,r,"name",i),r}function zD(t){return(0,to.default)("NumberLiteral","NumericLiteral","The node type "),uy(t)}function JD(t,e=""){return(0,to.default)("RegexLiteral","RegExpLiteral","The node type "),py(t,e)}function XD(t){return(0,to.default)("RestProperty","RestElement","The node type "),fy(t)}function HD(t){return(0,to.default)("SpreadProperty","SpreadElement","The node type "),hy(t)}});var dy=_(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.JSXIdentifier=p.JSXFragment=p.JSXExpressionContainer=p.JSXEmptyExpression=p.JSXElement=p.JSXClosingFragment=p.JSXClosingElement=p.JSXAttribute=p.IntersectionTypeAnnotation=p.InterpreterDirective=p.InterfaceTypeAnnotation=p.InterfaceExtends=p.InterfaceDeclaration=p.InferredPredicate=p.IndexedAccessType=p.ImportSpecifier=p.ImportNamespaceSpecifier=p.ImportExpression=p.ImportDefaultSpecifier=p.ImportDeclaration=p.ImportAttribute=p.Import=p.IfStatement=p.Identifier=p.GenericTypeAnnotation=p.FunctionTypeParam=p.FunctionTypeAnnotation=p.FunctionExpression=p.FunctionDeclaration=p.ForStatement=p.ForOfStatement=p.ForInStatement=p.File=p.ExpressionStatement=p.ExportSpecifier=p.ExportNamespaceSpecifier=p.ExportNamedDeclaration=p.ExportDefaultSpecifier=p.ExportDefaultDeclaration=p.ExportAllDeclaration=p.ExistsTypeAnnotation=p.EnumSymbolBody=p.EnumStringMember=p.EnumStringBody=p.EnumNumberMember=p.EnumNumberBody=p.EnumDefaultedMember=p.EnumDeclaration=p.EnumBooleanMember=p.EnumBooleanBody=p.EmptyTypeAnnotation=p.EmptyStatement=p.DoWhileStatement=p.DoExpression=p.DirectiveLiteral=p.Directive=p.Decorator=p.DeclaredPredicate=p.DeclareVariable=p.DeclareTypeAlias=p.DeclareOpaqueType=p.DeclareModuleExports=p.DeclareModule=p.DeclareInterface=p.DeclareFunction=p.DeclareExportDeclaration=p.DeclareExportAllDeclaration=p.DeclareClass=p.DecimalLiteral=p.DebuggerStatement=p.ContinueStatement=p.ConditionalExpression=p.ClassProperty=p.ClassPrivateProperty=p.ClassPrivateMethod=p.ClassMethod=p.ClassImplements=p.ClassExpression=p.ClassDeclaration=p.ClassBody=p.ClassAccessorProperty=p.CatchClause=p.CallExpression=p.BreakStatement=p.BooleanTypeAnnotation=p.BooleanLiteralTypeAnnotation=p.BooleanLiteral=p.BlockStatement=p.BindExpression=p.BinaryExpression=p.BigIntLiteral=p.AwaitExpression=p.AssignmentPattern=p.AssignmentExpression=p.ArrowFunctionExpression=p.ArrayTypeAnnotation=p.ArrayPattern=p.ArrayExpression=p.ArgumentPlaceholder=p.AnyTypeAnnotation=void 0;p.TSNumberKeyword=p.TSNullKeyword=p.TSNonNullExpression=p.TSNeverKeyword=p.TSNamespaceExportDeclaration=p.TSNamedTupleMember=p.TSModuleDeclaration=p.TSModuleBlock=p.TSMethodSignature=p.TSMappedType=p.TSLiteralType=p.TSIntrinsicKeyword=p.TSIntersectionType=p.TSInterfaceDeclaration=p.TSInterfaceBody=p.TSInstantiationExpression=p.TSInferType=p.TSIndexedAccessType=p.TSIndexSignature=p.TSImportType=p.TSImportEqualsDeclaration=p.TSFunctionType=p.TSExternalModuleReference=p.TSExpressionWithTypeArguments=p.TSExportAssignment=p.TSEnumMember=p.TSEnumDeclaration=p.TSEnumBody=p.TSDeclareMethod=p.TSDeclareFunction=p.TSConstructorType=p.TSConstructSignatureDeclaration=p.TSConditionalType=p.TSCallSignatureDeclaration=p.TSBooleanKeyword=p.TSBigIntKeyword=p.TSAsExpression=p.TSArrayType=p.TSAnyKeyword=p.SymbolTypeAnnotation=p.SwitchStatement=p.SwitchCase=p.Super=p.StringTypeAnnotation=p.StringLiteralTypeAnnotation=p.StringLiteral=p.StaticBlock=p.SpreadProperty=p.SpreadElement=p.SequenceExpression=p.ReturnStatement=p.RestProperty=p.RestElement=p.RegexLiteral=p.RegExpLiteral=p.RecordExpression=p.QualifiedTypeIdentifier=p.Program=p.PrivateName=p.Placeholder=p.PipelineTopicExpression=p.PipelinePrimaryTopicReference=p.PipelineBareFunction=p.ParenthesizedExpression=p.OptionalMemberExpression=p.OptionalIndexedAccessType=p.OptionalCallExpression=p.OpaqueType=p.ObjectTypeSpreadProperty=p.ObjectTypeProperty=p.ObjectTypeInternalSlot=p.ObjectTypeIndexer=p.ObjectTypeCallProperty=p.ObjectTypeAnnotation=p.ObjectProperty=p.ObjectPattern=p.ObjectMethod=p.ObjectExpression=p.NumericLiteral=p.NumberTypeAnnotation=p.NumberLiteralTypeAnnotation=p.NumberLiteral=p.NullableTypeAnnotation=p.NullLiteralTypeAnnotation=p.NullLiteral=p.Noop=p.NewExpression=p.ModuleExpression=p.MixedTypeAnnotation=p.MetaProperty=p.MemberExpression=p.LogicalExpression=p.LabeledStatement=p.JSXText=p.JSXSpreadChild=p.JSXSpreadAttribute=p.JSXOpeningFragment=p.JSXOpeningElement=p.JSXNamespacedName=p.JSXMemberExpression=void 0;p.YieldExpression=p.WithStatement=p.WhileStatement=p.VoidTypeAnnotation=p.VoidPattern=p.Variance=p.VariableDeclarator=p.VariableDeclaration=p.V8IntrinsicIdentifier=p.UpdateExpression=p.UnionTypeAnnotation=p.UnaryExpression=p.TypeofTypeAnnotation=p.TypeParameterInstantiation=p.TypeParameterDeclaration=p.TypeParameter=p.TypeCastExpression=p.TypeAnnotation=p.TypeAlias=p.TupleTypeAnnotation=p.TupleExpression=p.TryStatement=p.TopicReference=p.ThrowStatement=p.ThisTypeAnnotation=p.ThisExpression=p.TemplateLiteral=p.TemplateElement=p.TaggedTemplateExpression=p.TSVoidKeyword=p.TSUnknownKeyword=p.TSUnionType=p.TSUndefinedKeyword=p.TSTypeReference=p.TSTypeQuery=p.TSTypePredicate=p.TSTypeParameterInstantiation=p.TSTypeParameterDeclaration=p.TSTypeParameter=p.TSTypeOperator=p.TSTypeLiteral=p.TSTypeAssertion=p.TSTypeAnnotation=p.TSTypeAliasDeclaration=p.TSTupleType=p.TSThisType=p.TSTemplateLiteralType=p.TSSymbolKeyword=p.TSStringKeyword=p.TSSatisfiesExpression=p.TSRestType=p.TSQualifiedName=p.TSPropertySignature=p.TSParenthesizedType=p.TSParameterProperty=p.TSOptionalType=p.TSObjectKeyword=void 0;var En=ru(),mZ=ms();function v(t){return En[t]}var yZ=p.ArrayExpression=v("arrayExpression"),TZ=p.AssignmentExpression=v("assignmentExpression"),gZ=p.BinaryExpression=v("binaryExpression"),xZ=p.InterpreterDirective=v("interpreterDirective"),bZ=p.Directive=v("directive"),SZ=p.DirectiveLiteral=v("directiveLiteral"),EZ=p.BlockStatement=v("blockStatement"),PZ=p.BreakStatement=v("breakStatement"),vZ=p.CallExpression=v("callExpression"),AZ=p.CatchClause=v("catchClause"),wZ=p.ConditionalExpression=v("conditionalExpression"),CZ=p.ContinueStatement=v("continueStatement"),IZ=p.DebuggerStatement=v("debuggerStatement"),kZ=p.DoWhileStatement=v("doWhileStatement"),_Z=p.EmptyStatement=v("emptyStatement"),OZ=p.ExpressionStatement=v("expressionStatement"),NZ=p.File=v("file"),DZ=p.ForInStatement=v("forInStatement"),LZ=p.ForStatement=v("forStatement"),MZ=p.FunctionDeclaration=v("functionDeclaration"),FZ=p.FunctionExpression=v("functionExpression"),BZ=p.Identifier=v("identifier"),jZ=p.IfStatement=v("ifStatement"),RZ=p.LabeledStatement=v("labeledStatement"),$Z=p.StringLiteral=v("stringLiteral"),qZ=p.NumericLiteral=v("numericLiteral"),UZ=p.NullLiteral=v("nullLiteral"),KZ=p.BooleanLiteral=v("booleanLiteral"),VZ=p.RegExpLiteral=v("regExpLiteral"),WZ=p.LogicalExpression=v("logicalExpression"),YZ=p.MemberExpression=v("memberExpression"),zZ=p.NewExpression=v("newExpression"),JZ=p.Program=v("program"),XZ=p.ObjectExpression=v("objectExpression"),HZ=p.ObjectMethod=v("objectMethod"),GZ=p.ObjectProperty=v("objectProperty"),QZ=p.RestElement=v("restElement"),ZZ=p.ReturnStatement=v("returnStatement"),eee=p.SequenceExpression=v("sequenceExpression"),tee=p.ParenthesizedExpression=v("parenthesizedExpression"),iee=p.SwitchCase=v("switchCase"),ree=p.SwitchStatement=v("switchStatement"),see=p.ThisExpression=v("thisExpression"),nee=p.ThrowStatement=v("throwStatement"),aee=p.TryStatement=v("tryStatement"),oee=p.UnaryExpression=v("unaryExpression"),lee=p.UpdateExpression=v("updateExpression"),cee=p.VariableDeclaration=v("variableDeclaration"),uee=p.VariableDeclarator=v("variableDeclarator"),pee=p.WhileStatement=v("whileStatement"),fee=p.WithStatement=v("withStatement"),hee=p.AssignmentPattern=v("assignmentPattern"),dee=p.ArrayPattern=v("arrayPattern"),mee=p.ArrowFunctionExpression=v("arrowFunctionExpression"),yee=p.ClassBody=v("classBody"),Tee=p.ClassExpression=v("classExpression"),gee=p.ClassDeclaration=v("classDeclaration"),xee=p.ExportAllDeclaration=v("exportAllDeclaration"),bee=p.ExportDefaultDeclaration=v("exportDefaultDeclaration"),See=p.ExportNamedDeclaration=v("exportNamedDeclaration"),Eee=p.ExportSpecifier=v("exportSpecifier"),Pee=p.ForOfStatement=v("forOfStatement"),vee=p.ImportDeclaration=v("importDeclaration"),Aee=p.ImportDefaultSpecifier=v("importDefaultSpecifier"),wee=p.ImportNamespaceSpecifier=v("importNamespaceSpecifier"),Cee=p.ImportSpecifier=v("importSpecifier"),Iee=p.ImportExpression=v("importExpression"),kee=p.MetaProperty=v("metaProperty"),_ee=p.ClassMethod=v("classMethod"),Oee=p.ObjectPattern=v("objectPattern"),Nee=p.SpreadElement=v("spreadElement"),Dee=p.Super=v("super"),Lee=p.TaggedTemplateExpression=v("taggedTemplateExpression"),Mee=p.TemplateElement=v("templateElement"),Fee=p.TemplateLiteral=v("templateLiteral"),Bee=p.YieldExpression=v("yieldExpression"),jee=p.AwaitExpression=v("awaitExpression"),Ree=p.Import=v("import"),$ee=p.BigIntLiteral=v("bigIntLiteral"),qee=p.ExportNamespaceSpecifier=v("exportNamespaceSpecifier"),Uee=p.OptionalMemberExpression=v("optionalMemberExpression"),Kee=p.OptionalCallExpression=v("optionalCallExpression"),Vee=p.ClassProperty=v("classProperty"),Wee=p.ClassAccessorProperty=v("classAccessorProperty"),Yee=p.ClassPrivateProperty=v("classPrivateProperty"),zee=p.ClassPrivateMethod=v("classPrivateMethod"),Jee=p.PrivateName=v("privateName"),Xee=p.StaticBlock=v("staticBlock"),Hee=p.ImportAttribute=v("importAttribute"),Gee=p.AnyTypeAnnotation=v("anyTypeAnnotation"),Qee=p.ArrayTypeAnnotation=v("arrayTypeAnnotation"),Zee=p.BooleanTypeAnnotation=v("booleanTypeAnnotation"),ete=p.BooleanLiteralTypeAnnotation=v("booleanLiteralTypeAnnotation"),tte=p.NullLiteralTypeAnnotation=v("nullLiteralTypeAnnotation"),ite=p.ClassImplements=v("classImplements"),rte=p.DeclareClass=v("declareClass"),ste=p.DeclareFunction=v("declareFunction"),nte=p.DeclareInterface=v("declareInterface"),ate=p.DeclareModule=v("declareModule"),ote=p.DeclareModuleExports=v("declareModuleExports"),lte=p.DeclareTypeAlias=v("declareTypeAlias"),cte=p.DeclareOpaqueType=v("declareOpaqueType"),ute=p.DeclareVariable=v("declareVariable"),pte=p.DeclareExportDeclaration=v("declareExportDeclaration"),fte=p.DeclareExportAllDeclaration=v("declareExportAllDeclaration"),hte=p.DeclaredPredicate=v("declaredPredicate"),dte=p.ExistsTypeAnnotation=v("existsTypeAnnotation"),mte=p.FunctionTypeAnnotation=v("functionTypeAnnotation"),yte=p.FunctionTypeParam=v("functionTypeParam"),Tte=p.GenericTypeAnnotation=v("genericTypeAnnotation"),gte=p.InferredPredicate=v("inferredPredicate"),xte=p.InterfaceExtends=v("interfaceExtends"),bte=p.InterfaceDeclaration=v("interfaceDeclaration"),Ste=p.InterfaceTypeAnnotation=v("interfaceTypeAnnotation"),Ete=p.IntersectionTypeAnnotation=v("intersectionTypeAnnotation"),Pte=p.MixedTypeAnnotation=v("mixedTypeAnnotation"),vte=p.EmptyTypeAnnotation=v("emptyTypeAnnotation"),Ate=p.NullableTypeAnnotation=v("nullableTypeAnnotation"),wte=p.NumberLiteralTypeAnnotation=v("numberLiteralTypeAnnotation"),Cte=p.NumberTypeAnnotation=v("numberTypeAnnotation"),Ite=p.ObjectTypeAnnotation=v("objectTypeAnnotation"),kte=p.ObjectTypeInternalSlot=v("objectTypeInternalSlot"),_te=p.ObjectTypeCallProperty=v("objectTypeCallProperty"),Ote=p.ObjectTypeIndexer=v("objectTypeIndexer"),Nte=p.ObjectTypeProperty=v("objectTypeProperty"),Dte=p.ObjectTypeSpreadProperty=v("objectTypeSpreadProperty"),Lte=p.OpaqueType=v("opaqueType"),Mte=p.QualifiedTypeIdentifier=v("qualifiedTypeIdentifier"),Fte=p.StringLiteralTypeAnnotation=v("stringLiteralTypeAnnotation"),Bte=p.StringTypeAnnotation=v("stringTypeAnnotation"),jte=p.SymbolTypeAnnotation=v("symbolTypeAnnotation"),Rte=p.ThisTypeAnnotation=v("thisTypeAnnotation"),$te=p.TupleTypeAnnotation=v("tupleTypeAnnotation"),qte=p.TypeofTypeAnnotation=v("typeofTypeAnnotation"),Ute=p.TypeAlias=v("typeAlias"),Kte=p.TypeAnnotation=v("typeAnnotation"),Vte=p.TypeCastExpression=v("typeCastExpression"),Wte=p.TypeParameter=v("typeParameter"),Yte=p.TypeParameterDeclaration=v("typeParameterDeclaration"),zte=p.TypeParameterInstantiation=v("typeParameterInstantiation"),Jte=p.UnionTypeAnnotation=v("unionTypeAnnotation"),Xte=p.Variance=v("variance"),Hte=p.VoidTypeAnnotation=v("voidTypeAnnotation"),Gte=p.EnumDeclaration=v("enumDeclaration"),Qte=p.EnumBooleanBody=v("enumBooleanBody"),Zte=p.EnumNumberBody=v("enumNumberBody"),eie=p.EnumStringBody=v("enumStringBody"),tie=p.EnumSymbolBody=v("enumSymbolBody"),iie=p.EnumBooleanMember=v("enumBooleanMember"),rie=p.EnumNumberMember=v("enumNumberMember"),sie=p.EnumStringMember=v("enumStringMember"),nie=p.EnumDefaultedMember=v("enumDefaultedMember"),aie=p.IndexedAccessType=v("indexedAccessType"),oie=p.OptionalIndexedAccessType=v("optionalIndexedAccessType"),lie=p.JSXAttribute=v("jsxAttribute"),cie=p.JSXClosingElement=v("jsxClosingElement"),uie=p.JSXElement=v("jsxElement"),pie=p.JSXEmptyExpression=v("jsxEmptyExpression"),fie=p.JSXExpressionContainer=v("jsxExpressionContainer"),hie=p.JSXSpreadChild=v("jsxSpreadChild"),die=p.JSXIdentifier=v("jsxIdentifier"),mie=p.JSXMemberExpression=v("jsxMemberExpression"),yie=p.JSXNamespacedName=v("jsxNamespacedName"),Tie=p.JSXOpeningElement=v("jsxOpeningElement"),gie=p.JSXSpreadAttribute=v("jsxSpreadAttribute"),xie=p.JSXText=v("jsxText"),bie=p.JSXFragment=v("jsxFragment"),Sie=p.JSXOpeningFragment=v("jsxOpeningFragment"),Eie=p.JSXClosingFragment=v("jsxClosingFragment"),Pie=p.Noop=v("noop"),vie=p.Placeholder=v("placeholder"),Aie=p.V8IntrinsicIdentifier=v("v8IntrinsicIdentifier"),wie=p.ArgumentPlaceholder=v("argumentPlaceholder"),Cie=p.BindExpression=v("bindExpression"),Iie=p.Decorator=v("decorator"),kie=p.DoExpression=v("doExpression"),_ie=p.ExportDefaultSpecifier=v("exportDefaultSpecifier"),Oie=p.RecordExpression=v("recordExpression"),Nie=p.TupleExpression=v("tupleExpression"),Die=p.DecimalLiteral=v("decimalLiteral"),Lie=p.ModuleExpression=v("moduleExpression"),Mie=p.TopicReference=v("topicReference"),Fie=p.PipelineTopicExpression=v("pipelineTopicExpression"),Bie=p.PipelineBareFunction=v("pipelineBareFunction"),jie=p.PipelinePrimaryTopicReference=v("pipelinePrimaryTopicReference"),Rie=p.VoidPattern=v("voidPattern"),$ie=p.TSParameterProperty=v("tsParameterProperty"),qie=p.TSDeclareFunction=v("tsDeclareFunction"),Uie=p.TSDeclareMethod=v("tsDeclareMethod"),Kie=p.TSQualifiedName=v("tsQualifiedName"),Vie=p.TSCallSignatureDeclaration=v("tsCallSignatureDeclaration"),Wie=p.TSConstructSignatureDeclaration=v("tsConstructSignatureDeclaration"),Yie=p.TSPropertySignature=v("tsPropertySignature"),zie=p.TSMethodSignature=v("tsMethodSignature"),Jie=p.TSIndexSignature=v("tsIndexSignature"),Xie=p.TSAnyKeyword=v("tsAnyKeyword"),Hie=p.TSBooleanKeyword=v("tsBooleanKeyword"),Gie=p.TSBigIntKeyword=v("tsBigIntKeyword"),Qie=p.TSIntrinsicKeyword=v("tsIntrinsicKeyword"),Zie=p.TSNeverKeyword=v("tsNeverKeyword"),ere=p.TSNullKeyword=v("tsNullKeyword"),tre=p.TSNumberKeyword=v("tsNumberKeyword"),ire=p.TSObjectKeyword=v("tsObjectKeyword"),rre=p.TSStringKeyword=v("tsStringKeyword"),sre=p.TSSymbolKeyword=v("tsSymbolKeyword"),nre=p.TSUndefinedKeyword=v("tsUndefinedKeyword"),are=p.TSUnknownKeyword=v("tsUnknownKeyword"),ore=p.TSVoidKeyword=v("tsVoidKeyword"),lre=p.TSThisType=v("tsThisType"),cre=p.TSFunctionType=v("tsFunctionType"),ure=p.TSConstructorType=v("tsConstructorType"),pre=p.TSTypeReference=v("tsTypeReference"),fre=p.TSTypePredicate=v("tsTypePredicate"),hre=p.TSTypeQuery=v("tsTypeQuery"),dre=p.TSTypeLiteral=v("tsTypeLiteral"),mre=p.TSArrayType=v("tsArrayType"),yre=p.TSTupleType=v("tsTupleType"),Tre=p.TSOptionalType=v("tsOptionalType"),gre=p.TSRestType=v("tsRestType"),xre=p.TSNamedTupleMember=v("tsNamedTupleMember"),bre=p.TSUnionType=v("tsUnionType"),Sre=p.TSIntersectionType=v("tsIntersectionType"),Ere=p.TSConditionalType=v("tsConditionalType"),Pre=p.TSInferType=v("tsInferType"),vre=p.TSParenthesizedType=v("tsParenthesizedType"),Are=p.TSTypeOperator=v("tsTypeOperator"),wre=p.TSIndexedAccessType=v("tsIndexedAccessType"),Cre=p.TSMappedType=v("tsMappedType"),Ire=p.TSTemplateLiteralType=v("tsTemplateLiteralType"),kre=p.TSLiteralType=v("tsLiteralType"),_re=p.TSExpressionWithTypeArguments=v("tsExpressionWithTypeArguments"),Ore=p.TSInterfaceDeclaration=v("tsInterfaceDeclaration"),Nre=p.TSInterfaceBody=v("tsInterfaceBody"),Dre=p.TSTypeAliasDeclaration=v("tsTypeAliasDeclaration"),Lre=p.TSInstantiationExpression=v("tsInstantiationExpression"),Mre=p.TSAsExpression=v("tsAsExpression"),Fre=p.TSSatisfiesExpression=v("tsSatisfiesExpression"),Bre=p.TSTypeAssertion=v("tsTypeAssertion"),jre=p.TSEnumBody=v("tsEnumBody"),Rre=p.TSEnumDeclaration=v("tsEnumDeclaration"),$re=p.TSEnumMember=v("tsEnumMember"),qre=p.TSModuleDeclaration=v("tsModuleDeclaration"),Ure=p.TSModuleBlock=v("tsModuleBlock"),Kre=p.TSImportType=v("tsImportType"),Vre=p.TSImportEqualsDeclaration=v("tsImportEqualsDeclaration"),Wre=p.TSExternalModuleReference=v("tsExternalModuleReference"),Yre=p.TSNonNullExpression=v("tsNonNullExpression"),zre=p.TSExportAssignment=v("tsExportAssignment"),Jre=p.TSNamespaceExportDeclaration=v("tsNamespaceExportDeclaration"),Xre=p.TSTypeAnnotation=v("tsTypeAnnotation"),Hre=p.TSTypeParameterInstantiation=v("tsTypeParameterInstantiation"),Gre=p.TSTypeParameterDeclaration=v("tsTypeParameterDeclaration"),Qre=p.TSTypeParameter=v("tsTypeParameter"),Zre=p.NumberLiteral=En.numberLiteral,ese=p.RegexLiteral=En.regexLiteral,tse=p.RestProperty=En.restProperty,ise=p.SpreadProperty=En.spreadProperty});var Jt=_(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});var su=ru();Object.keys(su).forEach(function(t){t==="default"||t==="__esModule"||t in or&&or[t]===su[t]||Object.defineProperty(or,t,{enumerable:!0,get:function(){return su[t]}})});var nu=dy();Object.keys(nu).forEach(function(t){t==="default"||t==="__esModule"||t in or&&or[t]===nu[t]||Object.defineProperty(or,t,{enumerable:!0,get:function(){return nu[t]}})})});var my=_(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.default=ZD;var GD=Jt(),QD=be();function ZD(t,e){let i=t.value.split(/\r\n|\n|\r/),r=0;for(let n=0;n<i.length;n++)/[^ \t]/.exec(i[n])&&(r=n);let s="";for(let n=0;n<i.length;n++){let a=i[n],l=n===0,c=n===i.length-1,o=n===r,u=a.replace(/\t/g," ");l||(u=u.replace(/^ +/,"")),c||(u=u.replace(/ +$/,"")),u&&(o||(u+=" "),s+=u)}s&&e.push((0,QD.inherits)((0,GD.stringLiteral)(s),t))}});var yy=_(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.default=tL;var ou=lt(),eL=my();function tL(t){let e=[];for(let i=0;i<t.children.length;i++){let r=t.children[i];if((0,ou.isJSXText)(r)){(0,eL.default)(r,e);continue}(0,ou.isJSXExpressionContainer)(r)&&(r=r.expression),!(0,ou.isJSXEmptyExpression)(r)&&e.push(r)}return e}});var uu=_(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.default=rL;var iL=ai();function rL(t){return!!(t&&iL.VISITOR_KEYS[t.type])}});var Ty=_(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.default=nL;var sL=uu();function nL(t){if(!(0,sL.default)(t)){var e;let i=(e=t?.type)!=null?e:JSON.stringify(t);throw new TypeError(`Not a valid node of type "${i}"`)}}});var gy=_(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.assertAccessor=Aj;g.assertAnyTypeAnnotation=UM;g.assertArgumentPlaceholder=TF;g.assertArrayExpression=oL;g.assertArrayPattern=nM;g.assertArrayTypeAnnotation=KM;g.assertArrowFunctionExpression=aM;g.assertAssignmentExpression=lL;g.assertAssignmentPattern=sM;g.assertAwaitExpression=kM;g.assertBigIntLiteral=OM;g.assertBinary=YB;g.assertBinaryExpression=cL;g.assertBindExpression=gF;g.assertBlock=XB;g.assertBlockParent=JB;g.assertBlockStatement=hL;g.assertBooleanLiteral=LL;g.assertBooleanLiteralTypeAnnotation=WM;g.assertBooleanTypeAnnotation=VM;g.assertBreakStatement=dL;g.assertCallExpression=mL;g.assertCatchClause=yL;g.assertClass=Sj;g.assertClassAccessorProperty=FM;g.assertClassBody=oM;g.assertClassDeclaration=cM;g.assertClassExpression=lM;g.assertClassImplements=zM;g.assertClassMethod=SM;g.assertClassPrivateMethod=jM;g.assertClassPrivateProperty=BM;g.assertClassProperty=MM;g.assertCompletionStatement=QB;g.assertConditional=ZB;g.assertConditionalExpression=TL;g.assertContinueStatement=gL;g.assertDebuggerStatement=xL;g.assertDecimalLiteral=vF;g.assertDeclaration=lj;g.assertDeclareClass=JM;g.assertDeclareExportAllDeclaration=r3;g.assertDeclareExportDeclaration=i3;g.assertDeclareFunction=XM;g.assertDeclareInterface=HM;g.assertDeclareModule=GM;g.assertDeclareModuleExports=QM;g.assertDeclareOpaqueType=e3;g.assertDeclareTypeAlias=ZM;g.assertDeclareVariable=t3;g.assertDeclaredPredicate=s3;g.assertDecorator=xF;g.assertDirective=pL;g.assertDirectiveLiteral=fL;g.assertDoExpression=bF;g.assertDoWhileStatement=bL;g.assertEmptyStatement=SL;g.assertEmptyTypeAnnotation=m3;g.assertEnumBody=Nj;g.assertEnumBooleanBody=K3;g.assertEnumBooleanMember=z3;g.assertEnumDeclaration=U3;g.assertEnumDefaultedMember=H3;g.assertEnumMember=Dj;g.assertEnumNumberBody=V3;g.assertEnumNumberMember=J3;g.assertEnumStringBody=W3;g.assertEnumStringMember=X3;g.assertEnumSymbolBody=Y3;g.assertExistsTypeAnnotation=n3;g.assertExportAllDeclaration=uM;g.assertExportDeclaration=Pj;g.assertExportDefaultDeclaration=pM;g.assertExportDefaultSpecifier=SF;g.assertExportNamedDeclaration=fM;g.assertExportNamespaceSpecifier=NM;g.assertExportSpecifier=hM;g.assertExpression=WB;g.assertExpressionStatement=EL;g.assertExpressionWrapper=ij;g.assertFile=PL;g.assertFlow=Cj;g.assertFlowBaseAnnotation=kj;g.assertFlowDeclaration=_j;g.assertFlowPredicate=Oj;g.assertFlowType=Ij;g.assertFor=rj;g.assertForInStatement=vL;g.assertForOfStatement=dM;g.assertForStatement=AL;g.assertForXStatement=sj;g.assertFunction=nj;g.assertFunctionDeclaration=wL;g.assertFunctionExpression=CL;g.assertFunctionParameter=cj;g.assertFunctionParent=aj;g.assertFunctionTypeAnnotation=a3;g.assertFunctionTypeParam=o3;g.assertGenericTypeAnnotation=l3;g.assertIdentifier=IL;g.assertIfStatement=kL;g.assertImmutable=dj;g.assertImport=_M;g.assertImportAttribute=qM;g.assertImportDeclaration=mM;g.assertImportDefaultSpecifier=yM;g.assertImportExpression=xM;g.assertImportNamespaceSpecifier=TM;g.assertImportOrExportDeclaration=Ej;g.assertImportSpecifier=gM;g.assertIndexedAccessType=G3;g.assertInferredPredicate=c3;g.assertInterfaceDeclaration=p3;g.assertInterfaceExtends=u3;g.assertInterfaceTypeAnnotation=f3;g.assertInterpreterDirective=uL;g.assertIntersectionTypeAnnotation=h3;g.assertJSX=Lj;g.assertJSXAttribute=Z3;g.assertJSXClosingElement=eF;g.assertJSXClosingFragment=hF;g.assertJSXElement=tF;g.assertJSXEmptyExpression=iF;g.assertJSXExpressionContainer=rF;g.assertJSXFragment=pF;g.assertJSXIdentifier=nF;g.assertJSXMemberExpression=aF;g.assertJSXNamespacedName=oF;g.assertJSXOpeningElement=lF;g.assertJSXOpeningFragment=fF;g.assertJSXSpreadAttribute=cF;g.assertJSXSpreadChild=sF;g.assertJSXText=uF;g.assertLVal=pj;g.assertLabeledStatement=_L;g.assertLiteral=hj;g.assertLogicalExpression=FL;g.assertLoop=ej;g.assertMemberExpression=BL;g.assertMetaProperty=bM;g.assertMethod=yj;g.assertMiscellaneous=Mj;g.assertMixedTypeAnnotation=d3;g.assertModuleDeclaration=Vj;g.assertModuleExpression=AF;g.assertModuleSpecifier=vj;g.assertNewExpression=jL;g.assertNoop=dF;g.assertNullLiteral=DL;g.assertNullLiteralTypeAnnotation=YM;g.assertNullableTypeAnnotation=y3;g.assertNumberLiteral=$j;g.assertNumberLiteralTypeAnnotation=T3;g.assertNumberTypeAnnotation=g3;g.assertNumericLiteral=NL;g.assertObjectExpression=$L;g.assertObjectMember=Tj;g.assertObjectMethod=qL;g.assertObjectPattern=EM;g.assertObjectProperty=UL;g.assertObjectTypeAnnotation=x3;g.assertObjectTypeCallProperty=S3;g.assertObjectTypeIndexer=E3;g.assertObjectTypeInternalSlot=b3;g.assertObjectTypeProperty=P3;g.assertObjectTypeSpreadProperty=v3;g.assertOpaqueType=A3;g.assertOptionalCallExpression=LM;g.assertOptionalIndexedAccessType=Q3;g.assertOptionalMemberExpression=DM;g.assertParenthesizedExpression=YL;g.assertPattern=bj;g.assertPatternLike=uj;g.assertPipelineBareFunction=IF;g.assertPipelinePrimaryTopicReference=kF;g.assertPipelineTopicExpression=CF;g.assertPlaceholder=mF;g.assertPrivate=wj;g.assertPrivateName=RM;g.assertProgram=RL;g.assertProperty=gj;g.assertPureish=oj;g.assertQualifiedTypeIdentifier=w3;g.assertRecordExpression=EF;g.assertRegExpLiteral=ML;g.assertRegexLiteral=qj;g.assertRestElement=KL;g.assertRestProperty=Uj;g.assertReturnStatement=VL;g.assertScopable=zB;g.assertSequenceExpression=WL;g.assertSpreadElement=PM;g.assertSpreadProperty=Kj;g.assertStandardized=VB;g.assertStatement=HB;g.assertStaticBlock=$M;g.assertStringLiteral=OL;g.assertStringLiteralTypeAnnotation=C3;g.assertStringTypeAnnotation=I3;g.assertSuper=vM;g.assertSwitchCase=zL;g.assertSwitchStatement=JL;g.assertSymbolTypeAnnotation=k3;g.assertTSAnyKeyword=$F;g.assertTSArrayType=aB;g.assertTSAsExpression=wB;g.assertTSBaseType=Rj;g.assertTSBigIntKeyword=UF;g.assertTSBooleanKeyword=qF;g.assertTSCallSignatureDeclaration=MF;g.assertTSConditionalType=hB;g.assertTSConstructSignatureDeclaration=FF;g.assertTSConstructorType=tB;g.assertTSDeclareFunction=NF;g.assertTSDeclareMethod=DF;g.assertTSEntityName=fj;g.assertTSEnumBody=kB;g.assertTSEnumDeclaration=_B;g.assertTSEnumMember=OB;g.assertTSExportAssignment=jB;g.assertTSExpressionWithTypeArguments=SB;g.assertTSExternalModuleReference=FB;g.assertTSFunctionType=eB;g.assertTSImportEqualsDeclaration=MB;g.assertTSImportType=LB;g.assertTSIndexSignature=RF;g.assertTSIndexedAccessType=TB;g.assertTSInferType=dB;g.assertTSInstantiationExpression=AB;g.assertTSInterfaceBody=PB;g.assertTSInterfaceDeclaration=EB;g.assertTSIntersectionType=fB;g.assertTSIntrinsicKeyword=KF;g.assertTSLiteralType=bB;g.assertTSMappedType=gB;g.assertTSMethodSignature=jF;g.assertTSModuleBlock=DB;g.assertTSModuleDeclaration=NB;g.assertTSNamedTupleMember=uB;g.assertTSNamespaceExportDeclaration=RB;g.assertTSNeverKeyword=VF;g.assertTSNonNullExpression=BB;g.assertTSNullKeyword=WF;g.assertTSNumberKeyword=YF;g.assertTSObjectKeyword=zF;g.assertTSOptionalType=lB;g.assertTSParameterProperty=OF;g.assertTSParenthesizedType=mB;g.assertTSPropertySignature=BF;g.assertTSQualifiedName=LF;g.assertTSRestType=cB;g.assertTSSatisfiesExpression=CB;g.assertTSStringKeyword=JF;g.assertTSSymbolKeyword=XF;g.assertTSTemplateLiteralType=xB;g.assertTSThisType=ZF;g.assertTSTupleType=oB;g.assertTSType=jj;g.assertTSTypeAliasDeclaration=vB;g.assertTSTypeAnnotation=$B;g.assertTSTypeAssertion=IB;g.assertTSTypeElement=Bj;g.assertTSTypeLiteral=nB;g.assertTSTypeOperator=yB;g.assertTSTypeParameter=KB;g.assertTSTypeParameterDeclaration=UB;g.assertTSTypeParameterInstantiation=qB;g.assertTSTypePredicate=rB;g.assertTSTypeQuery=sB;g.assertTSTypeReference=iB;g.assertTSUndefinedKeyword=HF;g.assertTSUnionType=pB;g.assertTSUnknownKeyword=GF;g.assertTSVoidKeyword=QF;g.assertTaggedTemplateExpression=AM;g.assertTemplateElement=wM;g.assertTemplateLiteral=CM;g.assertTerminatorless=GB;g.assertThisExpression=XL;g.assertThisTypeAnnotation=_3;g.assertThrowStatement=HL;g.assertTopicReference=wF;g.assertTryStatement=GL;g.assertTupleExpression=PF;g.assertTupleTypeAnnotation=O3;g.assertTypeAlias=D3;g.assertTypeAnnotation=L3;g.assertTypeCastExpression=M3;g.assertTypeParameter=F3;g.assertTypeParameterDeclaration=B3;g.assertTypeParameterInstantiation=j3;g.assertTypeScript=Fj;g.assertTypeofTypeAnnotation=N3;g.assertUnaryExpression=QL;g.assertUnaryLike=xj;g.assertUnionTypeAnnotation=R3;g.assertUpdateExpression=ZL;g.assertUserWhitespacable=mj;g.assertV8IntrinsicIdentifier=yF;g.assertVariableDeclaration=eM;g.assertVariableDeclarator=tM;g.assertVariance=$3;g.assertVoidPattern=_F;g.assertVoidTypeAnnotation=q3;g.assertWhile=tj;g.assertWhileStatement=iM;g.assertWithStatement=rM;g.assertYieldExpression=IM;var aL=ys(),Pn=ms();function x(t,e,i){if(!(0,aL.default)(t,e,i))throw new Error(`Expected type "${t}" with option ${JSON.stringify(i)}, but instead got "${e.type}".`)}function oL(t,e){x("ArrayExpression",t,e)}function lL(t,e){x("AssignmentExpression",t,e)}function cL(t,e){x("BinaryExpression",t,e)}function uL(t,e){x("InterpreterDirective",t,e)}function pL(t,e){x("Directive",t,e)}function fL(t,e){x("DirectiveLiteral",t,e)}function hL(t,e){x("BlockStatement",t,e)}function dL(t,e){x("BreakStatement",t,e)}function mL(t,e){x("CallExpression",t,e)}function yL(t,e){x("CatchClause",t,e)}function TL(t,e){x("ConditionalExpression",t,e)}function gL(t,e){x("ContinueStatement",t,e)}function xL(t,e){x("DebuggerStatement",t,e)}function bL(t,e){x("DoWhileStatement",t,e)}function SL(t,e){x("EmptyStatement",t,e)}function EL(t,e){x("ExpressionStatement",t,e)}function PL(t,e){x("File",t,e)}function vL(t,e){x("ForInStatement",t,e)}function AL(t,e){x("ForStatement",t,e)}function wL(t,e){x("FunctionDeclaration",t,e)}function CL(t,e){x("FunctionExpression",t,e)}function IL(t,e){x("Identifier",t,e)}function kL(t,e){x("IfStatement",t,e)}function _L(t,e){x("LabeledStatement",t,e)}function OL(t,e){x("StringLiteral",t,e)}function NL(t,e){x("NumericLiteral",t,e)}function DL(t,e){x("NullLiteral",t,e)}function LL(t,e){x("BooleanLiteral",t,e)}function ML(t,e){x("RegExpLiteral",t,e)}function FL(t,e){x("LogicalExpression",t,e)}function BL(t,e){x("MemberExpression",t,e)}function jL(t,e){x("NewExpression",t,e)}function RL(t,e){x("Program",t,e)}function $L(t,e){x("ObjectExpression",t,e)}function qL(t,e){x("ObjectMethod",t,e)}function UL(t,e){x("ObjectProperty",t,e)}function KL(t,e){x("RestElement",t,e)}function VL(t,e){x("ReturnStatement",t,e)}function WL(t,e){x("SequenceExpression",t,e)}function YL(t,e){x("ParenthesizedExpression",t,e)}function zL(t,e){x("SwitchCase",t,e)}function JL(t,e){x("SwitchStatement",t,e)}function XL(t,e){x("ThisExpression",t,e)}function HL(t,e){x("ThrowStatement",t,e)}function GL(t,e){x("TryStatement",t,e)}function QL(t,e){x("UnaryExpression",t,e)}function ZL(t,e){x("UpdateExpression",t,e)}function eM(t,e){x("VariableDeclaration",t,e)}function tM(t,e){x("VariableDeclarator",t,e)}function iM(t,e){x("WhileStatement",t,e)}function rM(t,e){x("WithStatement",t,e)}function sM(t,e){x("AssignmentPattern",t,e)}function nM(t,e){x("ArrayPattern",t,e)}function aM(t,e){x("ArrowFunctionExpression",t,e)}function oM(t,e){x("ClassBody",t,e)}function lM(t,e){x("ClassExpression",t,e)}function cM(t,e){x("ClassDeclaration",t,e)}function uM(t,e){x("ExportAllDeclaration",t,e)}function pM(t,e){x("ExportDefaultDeclaration",t,e)}function fM(t,e){x("ExportNamedDeclaration",t,e)}function hM(t,e){x("ExportSpecifier",t,e)}function dM(t,e){x("ForOfStatement",t,e)}function mM(t,e){x("ImportDeclaration",t,e)}function yM(t,e){x("ImportDefaultSpecifier",t,e)}function TM(t,e){x("ImportNamespaceSpecifier",t,e)}function gM(t,e){x("ImportSpecifier",t,e)}function xM(t,e){x("ImportExpression",t,e)}function bM(t,e){x("MetaProperty",t,e)}function SM(t,e){x("ClassMethod",t,e)}function EM(t,e){x("ObjectPattern",t,e)}function PM(t,e){x("SpreadElement",t,e)}function vM(t,e){x("Super",t,e)}function AM(t,e){x("TaggedTemplateExpression",t,e)}function wM(t,e){x("TemplateElement",t,e)}function CM(t,e){x("TemplateLiteral",t,e)}function IM(t,e){x("YieldExpression",t,e)}function kM(t,e){x("AwaitExpression",t,e)}function _M(t,e){x("Import",t,e)}function OM(t,e){x("BigIntLiteral",t,e)}function NM(t,e){x("ExportNamespaceSpecifier",t,e)}function DM(t,e){x("OptionalMemberExpression",t,e)}function LM(t,e){x("OptionalCallExpression",t,e)}function MM(t,e){x("ClassProperty",t,e)}function FM(t,e){x("ClassAccessorProperty",t,e)}function BM(t,e){x("ClassPrivateProperty",t,e)}function jM(t,e){x("ClassPrivateMethod",t,e)}function RM(t,e){x("PrivateName",t,e)}function $M(t,e){x("StaticBlock",t,e)}function qM(t,e){x("ImportAttribute",t,e)}function UM(t,e){x("AnyTypeAnnotation",t,e)}function KM(t,e){x("ArrayTypeAnnotation",t,e)}function VM(t,e){x("BooleanTypeAnnotation",t,e)}function WM(t,e){x("BooleanLiteralTypeAnnotation",t,e)}function YM(t,e){x("NullLiteralTypeAnnotation",t,e)}function zM(t,e){x("ClassImplements",t,e)}function JM(t,e){x("DeclareClass",t,e)}function XM(t,e){x("DeclareFunction",t,e)}function HM(t,e){x("DeclareInterface",t,e)}function GM(t,e){x("DeclareModule",t,e)}function QM(t,e){x("DeclareModuleExports",t,e)}function ZM(t,e){x("DeclareTypeAlias",t,e)}function e3(t,e){x("DeclareOpaqueType",t,e)}function t3(t,e){x("DeclareVariable",t,e)}function i3(t,e){x("DeclareExportDeclaration",t,e)}function r3(t,e){x("DeclareExportAllDeclaration",t,e)}function s3(t,e){x("DeclaredPredicate",t,e)}function n3(t,e){x("ExistsTypeAnnotation",t,e)}function a3(t,e){x("FunctionTypeAnnotation",t,e)}function o3(t,e){x("FunctionTypeParam",t,e)}function l3(t,e){x("GenericTypeAnnotation",t,e)}function c3(t,e){x("InferredPredicate",t,e)}function u3(t,e){x("InterfaceExtends",t,e)}function p3(t,e){x("InterfaceDeclaration",t,e)}function f3(t,e){x("InterfaceTypeAnnotation",t,e)}function h3(t,e){x("IntersectionTypeAnnotation",t,e)}function d3(t,e){x("MixedTypeAnnotation",t,e)}function m3(t,e){x("EmptyTypeAnnotation",t,e)}function y3(t,e){x("NullableTypeAnnotation",t,e)}function T3(t,e){x("NumberLiteralTypeAnnotation",t,e)}function g3(t,e){x("NumberTypeAnnotation",t,e)}function x3(t,e){x("ObjectTypeAnnotation",t,e)}function b3(t,e){x("ObjectTypeInternalSlot",t,e)}function S3(t,e){x("ObjectTypeCallProperty",t,e)}function E3(t,e){x("ObjectTypeIndexer",t,e)}function P3(t,e){x("ObjectTypeProperty",t,e)}function v3(t,e){x("ObjectTypeSpreadProperty",t,e)}function A3(t,e){x("OpaqueType",t,e)}function w3(t,e){x("QualifiedTypeIdentifier",t,e)}function C3(t,e){x("StringLiteralTypeAnnotation",t,e)}function I3(t,e){x("StringTypeAnnotation",t,e)}function k3(t,e){x("SymbolTypeAnnotation",t,e)}function _3(t,e){x("ThisTypeAnnotation",t,e)}function O3(t,e){x("TupleTypeAnnotation",t,e)}function N3(t,e){x("TypeofTypeAnnotation",t,e)}function D3(t,e){x("TypeAlias",t,e)}function L3(t,e){x("TypeAnnotation",t,e)}function M3(t,e){x("TypeCastExpression",t,e)}function F3(t,e){x("TypeParameter",t,e)}function B3(t,e){x("TypeParameterDeclaration",t,e)}function j3(t,e){x("TypeParameterInstantiation",t,e)}function R3(t,e){x("UnionTypeAnnotation",t,e)}function $3(t,e){x("Variance",t,e)}function q3(t,e){x("VoidTypeAnnotation",t,e)}function U3(t,e){x("EnumDeclaration",t,e)}function K3(t,e){x("EnumBooleanBody",t,e)}function V3(t,e){x("EnumNumberBody",t,e)}function W3(t,e){x("EnumStringBody",t,e)}function Y3(t,e){x("EnumSymbolBody",t,e)}function z3(t,e){x("EnumBooleanMember",t,e)}function J3(t,e){x("EnumNumberMember",t,e)}function X3(t,e){x("EnumStringMember",t,e)}function H3(t,e){x("EnumDefaultedMember",t,e)}function G3(t,e){x("IndexedAccessType",t,e)}function Q3(t,e){x("OptionalIndexedAccessType",t,e)}function Z3(t,e){x("JSXAttribute",t,e)}function eF(t,e){x("JSXClosingElement",t,e)}function tF(t,e){x("JSXElement",t,e)}function iF(t,e){x("JSXEmptyExpression",t,e)}function rF(t,e){x("JSXExpressionContainer",t,e)}function sF(t,e){x("JSXSpreadChild",t,e)}function nF(t,e){x("JSXIdentifier",t,e)}function aF(t,e){x("JSXMemberExpression",t,e)}function oF(t,e){x("JSXNamespacedName",t,e)}function lF(t,e){x("JSXOpeningElement",t,e)}function cF(t,e){x("JSXSpreadAttribute",t,e)}function uF(t,e){x("JSXText",t,e)}function pF(t,e){x("JSXFragment",t,e)}function fF(t,e){x("JSXOpeningFragment",t,e)}function hF(t,e){x("JSXClosingFragment",t,e)}function dF(t,e){x("Noop",t,e)}function mF(t,e){x("Placeholder",t,e)}function yF(t,e){x("V8IntrinsicIdentifier",t,e)}function TF(t,e){x("ArgumentPlaceholder",t,e)}function gF(t,e){x("BindExpression",t,e)}function xF(t,e){x("Decorator",t,e)}function bF(t,e){x("DoExpression",t,e)}function SF(t,e){x("ExportDefaultSpecifier",t,e)}function EF(t,e){x("RecordExpression",t,e)}function PF(t,e){x("TupleExpression",t,e)}function vF(t,e){x("DecimalLiteral",t,e)}function AF(t,e){x("ModuleExpression",t,e)}function wF(t,e){x("TopicReference",t,e)}function CF(t,e){x("PipelineTopicExpression",t,e)}function IF(t,e){x("PipelineBareFunction",t,e)}function kF(t,e){x("PipelinePrimaryTopicReference",t,e)}function _F(t,e){x("VoidPattern",t,e)}function OF(t,e){x("TSParameterProperty",t,e)}function NF(t,e){x("TSDeclareFunction",t,e)}function DF(t,e){x("TSDeclareMethod",t,e)}function LF(t,e){x("TSQualifiedName",t,e)}function MF(t,e){x("TSCallSignatureDeclaration",t,e)}function FF(t,e){x("TSConstructSignatureDeclaration",t,e)}function BF(t,e){x("TSPropertySignature",t,e)}function jF(t,e){x("TSMethodSignature",t,e)}function RF(t,e){x("TSIndexSignature",t,e)}function $F(t,e){x("TSAnyKeyword",t,e)}function qF(t,e){x("TSBooleanKeyword",t,e)}function UF(t,e){x("TSBigIntKeyword",t,e)}function KF(t,e){x("TSIntrinsicKeyword",t,e)}function VF(t,e){x("TSNeverKeyword",t,e)}function WF(t,e){x("TSNullKeyword",t,e)}function YF(t,e){x("TSNumberKeyword",t,e)}function zF(t,e){x("TSObjectKeyword",t,e)}function JF(t,e){x("TSStringKeyword",t,e)}function XF(t,e){x("TSSymbolKeyword",t,e)}function HF(t,e){x("TSUndefinedKeyword",t,e)}function GF(t,e){x("TSUnknownKeyword",t,e)}function QF(t,e){x("TSVoidKeyword",t,e)}function ZF(t,e){x("TSThisType",t,e)}function eB(t,e){x("TSFunctionType",t,e)}function tB(t,e){x("TSConstructorType",t,e)}function iB(t,e){x("TSTypeReference",t,e)}function rB(t,e){x("TSTypePredicate",t,e)}function sB(t,e){x("TSTypeQuery",t,e)}function nB(t,e){x("TSTypeLiteral",t,e)}function aB(t,e){x("TSArrayType",t,e)}function oB(t,e){x("TSTupleType",t,e)}function lB(t,e){x("TSOptionalType",t,e)}function cB(t,e){x("TSRestType",t,e)}function uB(t,e){x("TSNamedTupleMember",t,e)}function pB(t,e){x("TSUnionType",t,e)}function fB(t,e){x("TSIntersectionType",t,e)}function hB(t,e){x("TSConditionalType",t,e)}function dB(t,e){x("TSInferType",t,e)}function mB(t,e){x("TSParenthesizedType",t,e)}function yB(t,e){x("TSTypeOperator",t,e)}function TB(t,e){x("TSIndexedAccessType",t,e)}function gB(t,e){x("TSMappedType",t,e)}function xB(t,e){x("TSTemplateLiteralType",t,e)}function bB(t,e){x("TSLiteralType",t,e)}function SB(t,e){x("TSExpressionWithTypeArguments",t,e)}function EB(t,e){x("TSInterfaceDeclaration",t,e)}function PB(t,e){x("TSInterfaceBody",t,e)}function vB(t,e){x("TSTypeAliasDeclaration",t,e)}function AB(t,e){x("TSInstantiationExpression",t,e)}function wB(t,e){x("TSAsExpression",t,e)}function CB(t,e){x("TSSatisfiesExpression",t,e)}function IB(t,e){x("TSTypeAssertion",t,e)}function kB(t,e){x("TSEnumBody",t,e)}function _B(t,e){x("TSEnumDeclaration",t,e)}function OB(t,e){x("TSEnumMember",t,e)}function NB(t,e){x("TSModuleDeclaration",t,e)}function DB(t,e){x("TSModuleBlock",t,e)}function LB(t,e){x("TSImportType",t,e)}function MB(t,e){x("TSImportEqualsDeclaration",t,e)}function FB(t,e){x("TSExternalModuleReference",t,e)}function BB(t,e){x("TSNonNullExpression",t,e)}function jB(t,e){x("TSExportAssignment",t,e)}function RB(t,e){x("TSNamespaceExportDeclaration",t,e)}function $B(t,e){x("TSTypeAnnotation",t,e)}function qB(t,e){x("TSTypeParameterInstantiation",t,e)}function UB(t,e){x("TSTypeParameterDeclaration",t,e)}function KB(t,e){x("TSTypeParameter",t,e)}function VB(t,e){x("Standardized",t,e)}function WB(t,e){x("Expression",t,e)}function YB(t,e){x("Binary",t,e)}function zB(t,e){x("Scopable",t,e)}function JB(t,e){x("BlockParent",t,e)}function XB(t,e){x("Block",t,e)}function HB(t,e){x("Statement",t,e)}function GB(t,e){x("Terminatorless",t,e)}function QB(t,e){x("CompletionStatement",t,e)}function ZB(t,e){x("Conditional",t,e)}function ej(t,e){x("Loop",t,e)}function tj(t,e){x("While",t,e)}function ij(t,e){x("ExpressionWrapper",t,e)}function rj(t,e){x("For",t,e)}function sj(t,e){x("ForXStatement",t,e)}function nj(t,e){x("Function",t,e)}function aj(t,e){x("FunctionParent",t,e)}function oj(t,e){x("Pureish",t,e)}function lj(t,e){x("Declaration",t,e)}function cj(t,e){x("FunctionParameter",t,e)}function uj(t,e){x("PatternLike",t,e)}function pj(t,e){x("LVal",t,e)}function fj(t,e){x("TSEntityName",t,e)}function hj(t,e){x("Literal",t,e)}function dj(t,e){x("Immutable",t,e)}function mj(t,e){x("UserWhitespacable",t,e)}function yj(t,e){x("Method",t,e)}function Tj(t,e){x("ObjectMember",t,e)}function gj(t,e){x("Property",t,e)}function xj(t,e){x("UnaryLike",t,e)}function bj(t,e){x("Pattern",t,e)}function Sj(t,e){x("Class",t,e)}function Ej(t,e){x("ImportOrExportDeclaration",t,e)}function Pj(t,e){x("ExportDeclaration",t,e)}function vj(t,e){x("ModuleSpecifier",t,e)}function Aj(t,e){x("Accessor",t,e)}function wj(t,e){x("Private",t,e)}function Cj(t,e){x("Flow",t,e)}function Ij(t,e){x("FlowType",t,e)}function kj(t,e){x("FlowBaseAnnotation",t,e)}function _j(t,e){x("FlowDeclaration",t,e)}function Oj(t,e){x("FlowPredicate",t,e)}function Nj(t,e){x("EnumBody",t,e)}function Dj(t,e){x("EnumMember",t,e)}function Lj(t,e){x("JSX",t,e)}function Mj(t,e){x("Miscellaneous",t,e)}function Fj(t,e){x("TypeScript",t,e)}function Bj(t,e){x("TSTypeElement",t,e)}function jj(t,e){x("TSType",t,e)}function Rj(t,e){x("TSBaseType",t,e)}function $j(t,e){(0,Pn.default)("assertNumberLiteral","assertNumericLiteral"),x("NumberLiteral",t,e)}function qj(t,e){(0,Pn.default)("assertRegexLiteral","assertRegExpLiteral"),x("RegexLiteral",t,e)}function Uj(t,e){(0,Pn.default)("assertRestProperty","assertRestElement"),x("RestProperty",t,e)}function Kj(t,e){(0,Pn.default)("assertSpreadProperty","assertSpreadElement"),x("SpreadProperty",t,e)}function Vj(t,e){(0,Pn.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),x("ModuleDeclaration",t,e)}});var xy=_(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.default=void 0;var yi=Jt(),use=io.default=Wj;function Wj(t){switch(t){case"string":return(0,yi.stringTypeAnnotation)();case"number":return(0,yi.numberTypeAnnotation)();case"undefined":return(0,yi.voidTypeAnnotation)();case"boolean":return(0,yi.booleanTypeAnnotation)();case"function":return(0,yi.genericTypeAnnotation)((0,yi.identifier)("Function"));case"object":return(0,yi.genericTypeAnnotation)((0,yi.identifier)("Object"));case"symbol":return(0,yi.genericTypeAnnotation)((0,yi.identifier)("Symbol"));case"bigint":return(0,yi.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+t)}});var hu=_(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.default=Sy;var vn=lt();function by(t){return(0,vn.isIdentifier)(t)?t.name:`${t.id.name}.${by(t.qualification)}`}function Sy(t){let e=Array.from(t),i=new Map,r=new Map,s=new Set,n=[];for(let a=0;a<e.length;a++){let l=e[a];if(l&&!n.includes(l)){if((0,vn.isAnyTypeAnnotation)(l))return[l];if((0,vn.isFlowBaseAnnotation)(l)){r.set(l.type,l);continue}if((0,vn.isUnionTypeAnnotation)(l)){s.has(l.types)||(e.push(...l.types),s.add(l.types));continue}if((0,vn.isGenericTypeAnnotation)(l)){let c=by(l.id);if(i.has(c)){let o=i.get(c);o.typeParameters?l.typeParameters&&(o.typeParameters.params.push(...l.typeParameters.params),o.typeParameters.params=Sy(o.typeParameters.params)):o=l.typeParameters}else i.set(c,l);continue}n.push(l)}}for(let[,a]of r)n.push(a);for(let[,a]of i)n.push(a);return n}});var Ey=_(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.default=Jj;var Yj=Jt(),zj=hu();function Jj(t){let e=(0,zj.default)(t);return e.length===1?e[0]:(0,Yj.unionTypeAnnotation)(e)}});var Ay=_(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.default=vy;var Ps=lt();function Py(t){return(0,Ps.isIdentifier)(t)?t.name:(0,Ps.isThisExpression)(t)?"this":`${t.right.name}.${Py(t.left)}`}function vy(t){let e=Array.from(t),i=new Map,r=new Map,s=new Set,n=[];for(let a=0;a<e.length;a++){let l=e[a];if(!l||n.includes(l))continue;if((0,Ps.isTSAnyKeyword)(l))return[l];if((0,Ps.isTSBaseType)(l)){r.set(l.type,l);continue}if((0,Ps.isTSUnionType)(l)){s.has(l.types)||(e.push(...l.types),s.add(l.types));continue}let c="typeParameters";if((0,Ps.isTSTypeReference)(l)&&l[c]){let o=l[c],u=Py(l.typeName);if(i.has(u)){let f=i.get(u),d=f[c];d?(d.params.push(...o.params),d.params=vy(d.params)):f=o}else i.set(u,l);continue}n.push(l)}for(let[,a]of r)n.push(a);for(let[,a]of i)n.push(a);return n}});var wy=_(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.default=Qj;var Xj=Jt(),Hj=Ay(),Gj=lt();function Qj(t){let e=t.map(r=>(0,Gj.isTSTypeAnnotation)(r)?r.typeAnnotation:r),i=(0,Hj.default)(e);return i.length===1?i[0]:(0,Xj.tsUnionType)(i)}});var gu=_(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.buildUndefinedNode=Zj;var Cy=Jt();function Zj(){return(0,Cy.unaryExpression)("void",(0,Cy.numericLiteral)(0),!0)}});var lr=_(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.default=e4;var Iy=ai(),ky=lt(),{hasOwn:Oi}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function _y(t,e,i,r){return t&&typeof t.type=="string"?Oy(t,e,i,r):t}function xu(t,e,i,r){return Array.isArray(t)?t.map(s=>_y(s,e,i,r)):_y(t,e,i,r)}function e4(t,e=!0,i=!1){return Oy(t,e,i,new Map)}function Oy(t,e=!0,i=!1,r){if(!t)return t;let{type:s}=t,n={type:t.type};if((0,ky.isIdentifier)(t))n.name=t.name,Oi(t,"optional")&&typeof t.optional=="boolean"&&(n.optional=t.optional),Oi(t,"typeAnnotation")&&(n.typeAnnotation=e?xu(t.typeAnnotation,!0,i,r):t.typeAnnotation),Oi(t,"decorators")&&(n.decorators=e?xu(t.decorators,!0,i,r):t.decorators);else if(Oi(Iy.NODE_FIELDS,s))for(let a of Object.keys(Iy.NODE_FIELDS[s]))Oi(t,a)&&(e?n[a]=(0,ky.isFile)(t)&&a==="comments"?ro(t.comments,e,i,r):xu(t[a],!0,i,r):n[a]=t[a]);else throw new Error(`Unknown node type: "${s}"`);return Oi(t,"loc")&&(i?n.loc=null:n.loc=t.loc),Oi(t,"leadingComments")&&(n.leadingComments=ro(t.leadingComments,e,i,r)),Oi(t,"innerComments")&&(n.innerComments=ro(t.innerComments,e,i,r)),Oi(t,"trailingComments")&&(n.trailingComments=ro(t.trailingComments,e,i,r)),Oi(t,"extra")&&(n.extra=Object.assign({},t.extra)),n}function ro(t,e,i,r){return!t||!e?t:t.map(s=>{let n=r.get(s);if(n)return n;let{type:a,value:l,loc:c}=s,o={type:a,value:l,loc:c};return i&&(o.loc=null),r.set(s,o),o})}});var Ny=_(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.default=i4;var t4=lr();function i4(t){return(0,t4.default)(t,!1)}});var Dy=_(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.default=s4;var r4=lr();function s4(t){return(0,r4.default)(t)}});var Ly=_(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.default=a4;var n4=lr();function a4(t){return(0,n4.default)(t,!0,!0)}});var My=_(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.default=l4;var o4=lr();function l4(t){return(0,o4.default)(t,!1,!0)}});var wu=_(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.default=c4;function c4(t,e,i){if(!i||!t)return t;let r=`${e}Comments`;return t[r]?e==="leading"?t[r]=i.concat(t[r]):t[r].push(...i):t[r]=i,t}});var Fy=_(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.default=p4;var u4=wu();function p4(t,e,i,r){return(0,u4.default)(t,e,[{type:r?"CommentLine":"CommentBlock",value:i}])}});var so=_(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.default=f4;function f4(t,e,i){e&&i&&(e[t]=Array.from(new Set([].concat(e[t],i[t]).filter(Boolean))))}});var _u=_(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.default=d4;var h4=so();function d4(t,e){(0,h4.default)("innerComments",t,e)}});var Nu=_(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.default=y4;var m4=so();function y4(t,e){(0,m4.default)("leadingComments",t,e)}});var Lu=_(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.default=g4;var T4=so();function g4(t,e){(0,T4.default)("trailingComments",t,e)}});var Fu=_(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.default=E4;var x4=Lu(),b4=Nu(),S4=_u();function E4(t,e){return(0,x4.default)(t,e),(0,b4.default)(t,e),(0,S4.default)(t,e),t}});var By=_(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=v4;var P4=gs();function v4(t){return P4.COMMENT_KEYS.forEach(e=>{t[e]=null}),t}});var jy=_(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.WHILE_TYPES=q.USERWHITESPACABLE_TYPES=q.UNARYLIKE_TYPES=q.TYPESCRIPT_TYPES=q.TSTYPE_TYPES=q.TSTYPEELEMENT_TYPES=q.TSENTITYNAME_TYPES=q.TSBASETYPE_TYPES=q.TERMINATORLESS_TYPES=q.STATEMENT_TYPES=q.STANDARDIZED_TYPES=q.SCOPABLE_TYPES=q.PUREISH_TYPES=q.PROPERTY_TYPES=q.PRIVATE_TYPES=q.PATTERN_TYPES=q.PATTERNLIKE_TYPES=q.OBJECTMEMBER_TYPES=q.MODULESPECIFIER_TYPES=q.MODULEDECLARATION_TYPES=q.MISCELLANEOUS_TYPES=q.METHOD_TYPES=q.LVAL_TYPES=q.LOOP_TYPES=q.LITERAL_TYPES=q.JSX_TYPES=q.IMPORTOREXPORTDECLARATION_TYPES=q.IMMUTABLE_TYPES=q.FUNCTION_TYPES=q.FUNCTIONPARENT_TYPES=q.FUNCTIONPARAMETER_TYPES=q.FOR_TYPES=q.FORXSTATEMENT_TYPES=q.FLOW_TYPES=q.FLOWTYPE_TYPES=q.FLOWPREDICATE_TYPES=q.FLOWDECLARATION_TYPES=q.FLOWBASEANNOTATION_TYPES=q.EXPRESSION_TYPES=q.EXPRESSIONWRAPPER_TYPES=q.EXPORTDECLARATION_TYPES=q.ENUMMEMBER_TYPES=q.ENUMBODY_TYPES=q.DECLARATION_TYPES=q.CONDITIONAL_TYPES=q.COMPLETIONSTATEMENT_TYPES=q.CLASS_TYPES=q.BLOCK_TYPES=q.BLOCKPARENT_TYPES=q.BINARY_TYPES=q.ACCESSOR_TYPES=void 0;var de=ai(),_se=q.STANDARDIZED_TYPES=de.FLIPPED_ALIAS_KEYS.Standardized,Ose=q.EXPRESSION_TYPES=de.FLIPPED_ALIAS_KEYS.Expression,Nse=q.BINARY_TYPES=de.FLIPPED_ALIAS_KEYS.Binary,Dse=q.SCOPABLE_TYPES=de.FLIPPED_ALIAS_KEYS.Scopable,Lse=q.BLOCKPARENT_TYPES=de.FLIPPED_ALIAS_KEYS.BlockParent,Mse=q.BLOCK_TYPES=de.FLIPPED_ALIAS_KEYS.Block,Fse=q.STATEMENT_TYPES=de.FLIPPED_ALIAS_KEYS.Statement,Bse=q.TERMINATORLESS_TYPES=de.FLIPPED_ALIAS_KEYS.Terminatorless,jse=q.COMPLETIONSTATEMENT_TYPES=de.FLIPPED_ALIAS_KEYS.CompletionStatement,Rse=q.CONDITIONAL_TYPES=de.FLIPPED_ALIAS_KEYS.Conditional,$se=q.LOOP_TYPES=de.FLIPPED_ALIAS_KEYS.Loop,qse=q.WHILE_TYPES=de.FLIPPED_ALIAS_KEYS.While,Use=q.EXPRESSIONWRAPPER_TYPES=de.FLIPPED_ALIAS_KEYS.ExpressionWrapper,Kse=q.FOR_TYPES=de.FLIPPED_ALIAS_KEYS.For,Vse=q.FORXSTATEMENT_TYPES=de.FLIPPED_ALIAS_KEYS.ForXStatement,Wse=q.FUNCTION_TYPES=de.FLIPPED_ALIAS_KEYS.Function,Yse=q.FUNCTIONPARENT_TYPES=de.FLIPPED_ALIAS_KEYS.FunctionParent,zse=q.PUREISH_TYPES=de.FLIPPED_ALIAS_KEYS.Pureish,Jse=q.DECLARATION_TYPES=de.FLIPPED_ALIAS_KEYS.Declaration,Xse=q.FUNCTIONPARAMETER_TYPES=de.FLIPPED_ALIAS_KEYS.FunctionParameter,Hse=q.PATTERNLIKE_TYPES=de.FLIPPED_ALIAS_KEYS.PatternLike,Gse=q.LVAL_TYPES=de.FLIPPED_ALIAS_KEYS.LVal,Qse=q.TSENTITYNAME_TYPES=de.FLIPPED_ALIAS_KEYS.TSEntityName,Zse=q.LITERAL_TYPES=de.FLIPPED_ALIAS_KEYS.Literal,ene=q.IMMUTABLE_TYPES=de.FLIPPED_ALIAS_KEYS.Immutable,tne=q.USERWHITESPACABLE_TYPES=de.FLIPPED_ALIAS_KEYS.UserWhitespacable,ine=q.METHOD_TYPES=de.FLIPPED_ALIAS_KEYS.Method,rne=q.OBJECTMEMBER_TYPES=de.FLIPPED_ALIAS_KEYS.ObjectMember,sne=q.PROPERTY_TYPES=de.FLIPPED_ALIAS_KEYS.Property,nne=q.UNARYLIKE_TYPES=de.FLIPPED_ALIAS_KEYS.UnaryLike,ane=q.PATTERN_TYPES=de.FLIPPED_ALIAS_KEYS.Pattern,one=q.CLASS_TYPES=de.FLIPPED_ALIAS_KEYS.Class,A4=q.IMPORTOREXPORTDECLARATION_TYPES=de.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,lne=q.EXPORTDECLARATION_TYPES=de.FLIPPED_ALIAS_KEYS.ExportDeclaration,cne=q.MODULESPECIFIER_TYPES=de.FLIPPED_ALIAS_KEYS.ModuleSpecifier,une=q.ACCESSOR_TYPES=de.FLIPPED_ALIAS_KEYS.Accessor,pne=q.PRIVATE_TYPES=de.FLIPPED_ALIAS_KEYS.Private,fne=q.FLOW_TYPES=de.FLIPPED_ALIAS_KEYS.Flow,hne=q.FLOWTYPE_TYPES=de.FLIPPED_ALIAS_KEYS.FlowType,dne=q.FLOWBASEANNOTATION_TYPES=de.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,mne=q.FLOWDECLARATION_TYPES=de.FLIPPED_ALIAS_KEYS.FlowDeclaration,yne=q.FLOWPREDICATE_TYPES=de.FLIPPED_ALIAS_KEYS.FlowPredicate,Tne=q.ENUMBODY_TYPES=de.FLIPPED_ALIAS_KEYS.EnumBody,gne=q.ENUMMEMBER_TYPES=de.FLIPPED_ALIAS_KEYS.EnumMember,xne=q.JSX_TYPES=de.FLIPPED_ALIAS_KEYS.JSX,bne=q.MISCELLANEOUS_TYPES=de.FLIPPED_ALIAS_KEYS.Miscellaneous,Sne=q.TYPESCRIPT_TYPES=de.FLIPPED_ALIAS_KEYS.TypeScript,Ene=q.TSTYPEELEMENT_TYPES=de.FLIPPED_ALIAS_KEYS.TSTypeElement,Pne=q.TSTYPE_TYPES=de.FLIPPED_ALIAS_KEYS.TSType,vne=q.TSBASETYPE_TYPES=de.FLIPPED_ALIAS_KEYS.TSBaseType,Ane=q.MODULEDECLARATION_TYPES=A4});var $u=_(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default=w4;var no=lt(),ju=Jt();function w4(t,e){if((0,no.isBlockStatement)(t))return t;let i=[];return(0,no.isEmptyStatement)(t)?i=[]:((0,no.isStatement)(t)||((0,no.isFunction)(e)?t=(0,ju.returnStatement)(t):t=(0,ju.expressionStatement)(t)),i=[t]),(0,ju.blockStatement)(i)}});var Ry=_(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.default=I4;var C4=$u();function I4(t,e="body"){let i=(0,C4.default)(t[e],t);return t[e]=i,i}});var Ku=_(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.default=O4;var k4=Ts(),_4=Tn();function O4(t){t=t+"";let e="";for(let i of t)e+=(0,_4.isIdentifierChar)(i.codePointAt(0))?i:"-";return e=e.replace(/^[-0-9]+/,""),e=e.replace(/[-\s]+(.)?/g,function(i,r){return r?r.toUpperCase():""}),(0,k4.default)(e)||(e=`_${e}`),e||"_"}});var $y=_(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.default=D4;var N4=Ku();function D4(t){return t=(0,N4.default)(t),(t==="eval"||t==="arguments")&&(t="_"+t),t}});var qy=_(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.default=F4;var L4=lt(),M4=Jt();function F4(t,e=t.key||t.property){return!t.computed&&(0,L4.isIdentifier)(e)&&(e=(0,M4.stringLiteral)(e.name)),e}});var Uy=_(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=void 0;var An=lt(),Nne=ao.default=B4;function B4(t){if((0,An.isExpressionStatement)(t)&&(t=t.expression),(0,An.isExpression)(t))return t;if((0,An.isClass)(t)?(t.type="ClassExpression",t.abstract=!1):(0,An.isFunction)(t)&&(t.type="FunctionExpression"),!(0,An.isExpression)(t))throw new Error(`cannot turn ${t.type} to an expression`);return t}});var zu=_(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.default=wn;var j4=ai(),Ky=Symbol(),Vy=Symbol();function wn(t,e,i){if(!t)return!1;let r=j4.VISITOR_KEYS[t.type];if(!r)return!1;i=i||{};let s=e(t,i);if(s!==void 0)switch(s){case Ky:return!1;case Vy:return!0}for(let n of r){let a=t[n];if(a){if(Array.isArray(a)){for(let l of a)if(wn(l,e,i))return!0}else if(wn(a,e,i))return!0}}return!1}wn.skip=Ky;wn.stop=Vy});var Xu=_(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.default=q4;var R4=gs(),Wy=["tokens","start","end","loc","raw","rawValue"],$4=[...R4.COMMENT_KEYS,"comments",...Wy];function q4(t,e={}){let i=e.preserveComments?Wy:$4;for(let s of i)t[s]!=null&&(t[s]=void 0);for(let s of Object.keys(t))s[0]==="_"&&t[s]!=null&&(t[s]=void 0);let r=Object.getOwnPropertySymbols(t);for(let s of r)t[s]=null}});var Gu=_(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.default=V4;var U4=zu(),K4=Xu();function V4(t,e){return(0,U4.default)(t,K4.default,e),t}});var zy=_(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.default=Dr;var Yy=lt(),W4=lr(),Y4=Gu();function Dr(t,e=t.key){let i;return t.kind==="method"?Dr.increment()+"":((0,Yy.isIdentifier)(e)?i=e.name:(0,Yy.isStringLiteral)(e)?i=JSON.stringify(e.value):i=JSON.stringify((0,Y4.default)((0,W4.default)(e))),t.computed&&(i=`[${i}]`),t.static&&(i=`static:${i}`),i)}Dr.uid=0;Dr.increment=function(){return Dr.uid>=Number.MAX_SAFE_INTEGER?Dr.uid=0:Dr.uid++}});var Jy=_(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.default=void 0;var oo=lt(),z4=Jt(),jne=lo.default=J4;function J4(t,e){if((0,oo.isStatement)(t))return t;let i=!1,r;if((0,oo.isClass)(t))i=!0,r="ClassDeclaration";else if((0,oo.isFunction)(t))i=!0,r="FunctionDeclaration";else if((0,oo.isAssignmentExpression)(t))return(0,z4.expressionStatement)(t);if(i&&!t.id&&(r=!1),!r){if(e)return!1;throw new Error(`cannot turn ${t.type} to a statement`)}return t.type=r,t}});var Xy=_(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.default=void 0;var X4=Ts(),mt=Jt(),$ne=co.default=Zu,H4=Function.call.bind(Object.prototype.toString);function G4(t){return H4(t)==="[object RegExp]"}function Q4(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null}function Zu(t){if(t===void 0)return(0,mt.identifier)("undefined");if(t===!0||t===!1)return(0,mt.booleanLiteral)(t);if(t===null)return(0,mt.nullLiteral)();if(typeof t=="string")return(0,mt.stringLiteral)(t);if(typeof t=="number"){let e;if(Number.isFinite(t))e=(0,mt.numericLiteral)(Math.abs(t));else{let i;Number.isNaN(t)?i=(0,mt.numericLiteral)(0):i=(0,mt.numericLiteral)(1),e=(0,mt.binaryExpression)("/",i,(0,mt.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,mt.unaryExpression)("-",e)),e}if(typeof t=="bigint")return t<0?(0,mt.unaryExpression)("-",(0,mt.bigIntLiteral)(-t)):(0,mt.bigIntLiteral)(t);if(G4(t)){let e=t.source,i=/\/([a-z]*)$/.exec(t.toString())[1];return(0,mt.regExpLiteral)(e,i)}if(Array.isArray(t))return(0,mt.arrayExpression)(t.map(Zu));if(Q4(t)){let e=[];for(let i of Object.keys(t)){let r,s=!1;(0,X4.default)(i)?i==="__proto__"?(s=!0,r=(0,mt.stringLiteral)(i)):r=(0,mt.identifier)(i):r=(0,mt.stringLiteral)(i),e.push((0,mt.objectProperty)(r,Zu(t[i]),s))}return(0,mt.objectExpression)(e)}throw new Error("don't know how to turn this value into a node")}});var Hy=_(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.default=eR;var Z4=Jt();function eR(t,e,i=!1){return t.object=(0,Z4.memberExpression)(t.object,t.property,t.computed),t.property=e,t.computed=!!i,t}});var Qy=_(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.default=iR;var Gy=gs(),tR=Fu();function iR(t,e){if(!t||!e)return t;for(let i of Gy.INHERIT_KEYS.optional)t[i]==null&&(t[i]=e[i]);for(let i of Object.keys(e))i[0]==="_"&&i!=="__clone"&&(t[i]=e[i]);for(let i of Gy.INHERIT_KEYS.force)t[i]=e[i];return(0,tR.default)(t,e),t}});var Zy=_(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.default=nR;var rR=Jt(),sR=be();function nR(t,e){if((0,sR.isSuper)(t.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return t.object=(0,rR.memberExpression)(e,t.object),t}});var e0=_(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.default=aR;function aR(t){let e=[].concat(t),i=Object.create(null);for(;e.length;){let r=e.pop();if(r)switch(r.type){case"ArrayPattern":e.push(...r.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":e.push(r.left);break;case"ObjectPattern":e.push(...r.properties);break;case"ObjectProperty":e.push(r.value);break;case"RestElement":case"UpdateExpression":e.push(r.argument);break;case"UnaryExpression":r.operator==="delete"&&e.push(r.argument);break;case"Identifier":i[r.name]=r;break;default:break}}return i}});var Cn=_(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.default=sp;var Vi=lt();function sp(t,e,i,r){let s=[].concat(t),n=Object.create(null);for(;s.length;){let a=s.shift();if(!a||r&&((0,Vi.isAssignmentExpression)(a)||(0,Vi.isUnaryExpression)(a)||(0,Vi.isUpdateExpression)(a)))continue;if((0,Vi.isIdentifier)(a)){e?(n[a.name]=n[a.name]||[]).push(a):n[a.name]=a;continue}if((0,Vi.isExportDeclaration)(a)&&!(0,Vi.isExportAllDeclaration)(a)){(0,Vi.isDeclaration)(a.declaration)&&s.push(a.declaration);continue}if(i){if((0,Vi.isFunctionDeclaration)(a)){s.push(a.id);continue}if((0,Vi.isFunctionExpression)(a))continue}let l=sp.keys[a.type];if(l)for(let c=0;c<l.length;c++){let o=l[c],u=a[o];u&&(Array.isArray(u)?s.push(...u):s.push(u))}}return n}var oR={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};sp.keys=oR});var t0=_(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.default=void 0;var lR=Cn(),zne=uo.default=cR;function cR(t,e){return(0,lR.default)(t,e,!0)}});var r0=_(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.default=pR;var oi=lt();function uR(t){return(0,oi.isNullLiteral)(t)?"null":(0,oi.isRegExpLiteral)(t)?`/${t.pattern}/${t.flags}`:(0,oi.isTemplateLiteral)(t)?t.quasis.map(e=>e.value.raw).join(""):t.value!==void 0?String(t.value):null}function i0(t){if(!t.computed||(0,oi.isLiteral)(t.key))return t.key}function pR(t,e){if("id"in t&&t.id)return{name:t.id.name,originalNode:t.id};let i="",r;if((0,oi.isObjectProperty)(e,{value:t})?r=i0(e):(0,oi.isObjectMethod)(t)||(0,oi.isClassMethod)(t)?(r=i0(t),t.kind==="get"?i="get ":t.kind==="set"&&(i="set ")):(0,oi.isVariableDeclarator)(e,{init:t})?r=e.id:(0,oi.isAssignmentExpression)(e,{operator:"=",right:t})&&(r=e.left),!r)return null;let s=(0,oi.isLiteral)(r)?uR(r):(0,oi.isIdentifier)(r)?r.name:(0,oi.isPrivateName)(r)?r.id.name:null;return s==null?null:{name:i+s,originalNode:r}}});var s0=_(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.default=hR;var fR=ai();function hR(t,e,i){typeof e=="function"&&(e={enter:e});let{enter:r,exit:s}=e;op(t,r,s,i,[])}function op(t,e,i,r,s){let n=fR.VISITOR_KEYS[t.type];if(n){e&&e(t,s,r);for(let a of n){let l=t[a];if(Array.isArray(l))for(let c=0;c<l.length;c++){let o=l[c];o&&(s.push({node:t,key:a,index:c}),op(o,e,i,r,s),s.pop())}else l&&(s.push({node:t,key:a}),op(l,e,i,r,s),s.pop())}i&&i(t,s,r)}}});var n0=_(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.default=mR;var dR=Cn();function mR(t,e,i){if(i&&t.type==="Identifier"&&e.type==="ObjectProperty"&&i.type==="ObjectExpression")return!1;let r=dR.default.keys[e.type];if(r)for(let s=0;s<r.length;s++){let n=r[s],a=e[n];if(Array.isArray(a)){if(a.includes(t))return!0}else if(a===t)return!0}return!1}});var pp=_(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.default=TR;var yR=lt();a0=Symbol.for("var used to be block scoped");var a0;function TR(t){return(0,yR.isVariableDeclaration)(t)&&(t.kind!=="var"||t[a0])}});var l0=_(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.default=xR;var o0=lt(),gR=pp();function xR(t){return(0,o0.isFunctionDeclaration)(t)||(0,o0.isClassDeclaration)(t)||(0,gR.default)(t)}});var c0=_(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.default=ER;var bR=Ya(),SR=lt();function ER(t){return(0,bR.default)(t.type,"Immutable")?!0:(0,SR.isIdentifier)(t)?t.name==="undefined":!1}});var p0=_(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.default=dp;var u0=ai();function dp(t,e){if(typeof t!="object"||typeof e!="object"||t==null||e==null)return t===e;if(t.type!==e.type)return!1;let i=Object.keys(u0.NODE_FIELDS[t.type]||t.type),r=u0.VISITOR_KEYS[t.type];for(let s of i){let n=t[s],a=e[s];if(typeof n!=typeof a)return!1;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let l=0;l<n.length;l++)if(!dp(n[l],a[l]))return!1;continue}if(typeof n=="object"&&!(r!=null&&r.includes(s))){for(let l of Object.keys(n))if(n[l]!==a[l])return!1;continue}if(!dp(n,a))return!1}}return!0}});var f0=_(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.default=PR;function PR(t,e,i){switch(e.type){case"MemberExpression":case"OptionalMemberExpression":return e.property===t?!!e.computed:e.object===t;case"JSXMemberExpression":return e.object===t;case"VariableDeclarator":return e.init===t;case"ArrowFunctionExpression":return e.body===t;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return e.key===t?!!e.computed:!1;case"ObjectProperty":return e.key===t?!!e.computed:!i||i.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return e.key===t?!!e.computed:!0;case"ClassPrivateProperty":return e.key!==t;case"ClassDeclaration":case"ClassExpression":return e.superClass===t;case"AssignmentExpression":return e.right===t;case"AssignmentPattern":return e.right===t;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return i!=null&&i.source?!1:e.local===t;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return e.key!==t;case"TSEnumMember":return e.id!==t;case"TSPropertySignature":return e.key===t?!!e.computed:!0}return!0}});var h0=_(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.default=vR;var Lr=lt();function vR(t,e){return(0,Lr.isBlockStatement)(t)&&((0,Lr.isFunction)(e)||(0,Lr.isCatchClause)(e))?!1:(0,Lr.isPattern)(t)&&((0,Lr.isFunction)(e)||(0,Lr.isCatchClause)(e))?!0:(0,Lr.isScopable)(t)}});var m0=_(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.default=AR;var d0=lt();function AR(t){return(0,d0.isImportDefaultSpecifier)(t)||(0,d0.isIdentifier)(t.imported||t.exported,{name:"default"})}});var y0=_(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.default=IR;var wR=Ts(),CR=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function IR(t){return(0,wR.default)(t)&&!CR.has(t)}});var g0=_(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.default=_R;var kR=lt();T0=Symbol.for("var used to be block scoped");var T0;function _R(t){return(0,kR.isVariableDeclaration)(t,{kind:"var"})&&!t[T0]}});var x0=_(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.default=po;var OR=Cn(),Mr=lt(),Sp=Jt(),Ep=gu(),NR=lr();function po(t,e){let i=[],r=!0;for(let s of t)if((0,Mr.isEmptyStatement)(s)||(r=!1),(0,Mr.isExpression)(s))i.push(s);else if((0,Mr.isExpressionStatement)(s))i.push(s.expression);else if((0,Mr.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=(0,OR.default)(n);for(let l of Object.keys(a))e.push({kind:s.kind,id:(0,NR.default)(a[l])});n.init&&i.push((0,Sp.assignmentExpression)("=",n.id,n.init))}r=!0}else if((0,Mr.isIfStatement)(s)){let n=s.consequent?po([s.consequent],e):(0,Ep.buildUndefinedNode)(),a=s.alternate?po([s.alternate],e):(0,Ep.buildUndefinedNode)();if(!n||!a)return;i.push((0,Sp.conditionalExpression)(s.test,n,a))}else if((0,Mr.isBlockStatement)(s)){let n=po(s.body,e);if(!n)return;i.push(n)}else if((0,Mr.isEmptyStatement)(s))t.indexOf(s)===0&&(r=!0);else return;return r&&i.push((0,Ep.buildUndefinedNode)()),i.length===1?i[0]:(0,Sp.sequenceExpression)(i)}});var b0=_(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.default=LR;var DR=x0();function LR(t,e){if(!(t!=null&&t.length))return;let i=[],r=(0,DR.default)(t,i);if(r){for(let s of i)e.push(s);return r}}});var be=_(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});var cr={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(J,"__internal__deprecationWarning",{enumerable:!0,get:function(){return j6.default}});Object.defineProperty(J,"addComment",{enumerable:!0,get:function(){return YR.default}});Object.defineProperty(J,"addComments",{enumerable:!0,get:function(){return zR.default}});Object.defineProperty(J,"appendToMemberExpression",{enumerable:!0,get:function(){return l6.default}});Object.defineProperty(J,"assertNode",{enumerable:!0,get:function(){return jR.default}});Object.defineProperty(J,"buildMatchMemberExpression",{enumerable:!0,get:function(){return B6.default}});Object.defineProperty(J,"clone",{enumerable:!0,get:function(){return UR.default}});Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:function(){return KR.default}});Object.defineProperty(J,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return VR.default}});Object.defineProperty(J,"cloneNode",{enumerable:!0,get:function(){return qR.default}});Object.defineProperty(J,"cloneWithoutLoc",{enumerable:!0,get:function(){return WR.default}});Object.defineProperty(J,"createFlowUnionType",{enumerable:!0,get:function(){return S0.default}});Object.defineProperty(J,"createTSUnionType",{enumerable:!0,get:function(){return $R.default}});Object.defineProperty(J,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return RR.default}});Object.defineProperty(J,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return S0.default}});Object.defineProperty(J,"ensureBlock",{enumerable:!0,get:function(){return ZR.default}});Object.defineProperty(J,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return d6.default}});Object.defineProperty(J,"getBindingIdentifiers",{enumerable:!0,get:function(){return m6.default}});Object.defineProperty(J,"getFunctionName",{enumerable:!0,get:function(){return T6.default}});Object.defineProperty(J,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return y6.default}});Object.defineProperty(J,"inheritInnerComments",{enumerable:!0,get:function(){return JR.default}});Object.defineProperty(J,"inheritLeadingComments",{enumerable:!0,get:function(){return XR.default}});Object.defineProperty(J,"inheritTrailingComments",{enumerable:!0,get:function(){return GR.default}});Object.defineProperty(J,"inherits",{enumerable:!0,get:function(){return c6.default}});Object.defineProperty(J,"inheritsComments",{enumerable:!0,get:function(){return HR.default}});Object.defineProperty(J,"is",{enumerable:!0,get:function(){return b6.default}});Object.defineProperty(J,"isBinding",{enumerable:!0,get:function(){return S6.default}});Object.defineProperty(J,"isBlockScoped",{enumerable:!0,get:function(){return E6.default}});Object.defineProperty(J,"isImmutable",{enumerable:!0,get:function(){return P6.default}});Object.defineProperty(J,"isLet",{enumerable:!0,get:function(){return v6.default}});Object.defineProperty(J,"isNode",{enumerable:!0,get:function(){return A6.default}});Object.defineProperty(J,"isNodesEquivalent",{enumerable:!0,get:function(){return w6.default}});Object.defineProperty(J,"isPlaceholderType",{enumerable:!0,get:function(){return C6.default}});Object.defineProperty(J,"isReferenced",{enumerable:!0,get:function(){return I6.default}});Object.defineProperty(J,"isScope",{enumerable:!0,get:function(){return k6.default}});Object.defineProperty(J,"isSpecifierDefault",{enumerable:!0,get:function(){return _6.default}});Object.defineProperty(J,"isType",{enumerable:!0,get:function(){return O6.default}});Object.defineProperty(J,"isValidES3Identifier",{enumerable:!0,get:function(){return N6.default}});Object.defineProperty(J,"isValidIdentifier",{enumerable:!0,get:function(){return D6.default}});Object.defineProperty(J,"isVar",{enumerable:!0,get:function(){return L6.default}});Object.defineProperty(J,"matchesPattern",{enumerable:!0,get:function(){return M6.default}});Object.defineProperty(J,"prependToMemberExpression",{enumerable:!0,get:function(){return u6.default}});J.react=void 0;Object.defineProperty(J,"removeComments",{enumerable:!0,get:function(){return QR.default}});Object.defineProperty(J,"removeProperties",{enumerable:!0,get:function(){return p6.default}});Object.defineProperty(J,"removePropertiesDeep",{enumerable:!0,get:function(){return f6.default}});Object.defineProperty(J,"removeTypeDuplicates",{enumerable:!0,get:function(){return h6.default}});Object.defineProperty(J,"shallowEqual",{enumerable:!0,get:function(){return x6.default}});Object.defineProperty(J,"toBindingIdentifierName",{enumerable:!0,get:function(){return e6.default}});Object.defineProperty(J,"toBlock",{enumerable:!0,get:function(){return t6.default}});Object.defineProperty(J,"toComputedKey",{enumerable:!0,get:function(){return i6.default}});Object.defineProperty(J,"toExpression",{enumerable:!0,get:function(){return r6.default}});Object.defineProperty(J,"toIdentifier",{enumerable:!0,get:function(){return s6.default}});Object.defineProperty(J,"toKeyAlias",{enumerable:!0,get:function(){return n6.default}});Object.defineProperty(J,"toStatement",{enumerable:!0,get:function(){return a6.default}});Object.defineProperty(J,"traverse",{enumerable:!0,get:function(){return fo.default}});Object.defineProperty(J,"traverseFast",{enumerable:!0,get:function(){return g6.default}});Object.defineProperty(J,"validate",{enumerable:!0,get:function(){return F6.default}});Object.defineProperty(J,"valueToNode",{enumerable:!0,get:function(){return o6.default}});var MR=Pm(),FR=vm(),BR=yy(),jR=Ty(),Ap=gy();Object.keys(Ap).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===Ap[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return Ap[t]}})});var RR=xy(),S0=Ey(),$R=wy(),wp=gu();Object.keys(wp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===wp[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return wp[t]}})});var Cp=Jt();Object.keys(Cp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===Cp[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return Cp[t]}})});var qR=lr(),UR=Ny(),KR=Dy(),VR=Ly(),WR=My(),YR=Fy(),zR=wu(),JR=_u(),XR=Nu(),HR=Fu(),GR=Lu(),QR=By(),Ip=jy();Object.keys(Ip).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===Ip[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return Ip[t]}})});var kp=gs();Object.keys(kp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===kp[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return kp[t]}})});var ZR=Ry(),e6=$y(),t6=$u(),i6=qy(),r6=Uy(),s6=Ku(),n6=zy(),a6=Jy(),o6=Xy(),_p=ai();Object.keys(_p).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===_p[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return _p[t]}})});var l6=Hy(),c6=Qy(),u6=Zy(),p6=Xu(),f6=Gu(),h6=hu(),d6=e0(),m6=Cn(),y6=t0(),T6=r0(),fo=s0();Object.keys(fo).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===fo[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return fo[t]}})});var g6=zu(),x6=Va(),b6=ys(),S6=n0(),E6=l0(),P6=c0(),v6=pp(),A6=uu(),w6=p0(),C6=Mc(),I6=f0(),k6=h0(),_6=m0(),O6=Ya(),N6=y0(),D6=Ts(),L6=g0(),M6=kc(),F6=Ha(),B6=Oc(),Op=lt();Object.keys(Op).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===Op[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return Op[t]}})});var j6=ms(),R6=b0(),cae=J.react={isReactComponent:MR.default,isCompatTag:FR.default,buildChildren:BR.default};J.toSequenceExpression=R6.default;process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var Dp=_(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.isBindingIdentifier=l9;yt.isBlockScoped=h9;yt.isExpression=u9;yt.isFlow=g9;yt.isForAwaitStatement=S9;yt.isGenerated=y9;yt.isPure=T9;yt.isReferenced=f9;yt.isReferencedIdentifier=a9;yt.isReferencedMemberExpression=o9;yt.isRestProperty=x9;yt.isScope=p9;yt.isSpreadProperty=b9;yt.isStatement=c9;yt.isUser=m9;yt.isVar=d9;var $6=be(),{isBinding:q6,isBlockScoped:U6,isExportDeclaration:K6,isExpression:V6,isFlow:W6,isForStatement:Y6,isForXStatement:z6,isIdentifier:E0,isImportDeclaration:J6,isImportSpecifier:X6,isJSXIdentifier:H6,isJSXMemberExpression:G6,isMemberExpression:Q6,isRestElement:P0,isReferenced:Np,isScope:Z6,isStatement:e9,isVar:t9,isVariableDeclaration:i9,react:r9,isForOfStatement:s9}=$6,{isCompatTag:n9}=r9;function a9(t){let{node:e,parent:i}=this;if(!E0(e,t)&&!G6(i,t))if(H6(e,t)){if(n9(e.name))return!1}else return!1;return Np(e,i,this.parentPath.parent)}function o9(){let{node:t,parent:e}=this;return Q6(t)&&Np(t,e)}function l9(){let{node:t,parent:e}=this,i=this.parentPath.parent;return E0(t)&&q6(t,e,i)}function c9(){let{node:t,parent:e}=this;return e9(t)?!(i9(t)&&(z6(e,{left:t})||Y6(e,{init:t}))):!1}function u9(){return this.isIdentifier()?this.isReferencedIdentifier():V6(this.node)}function p9(){return Z6(this.node,this.parent)}function f9(){return Np(this.node,this.parent)}function h9(){return U6(this.node)}function d9(){return t9(this.node)}function m9(){return this.node&&!!this.node.loc}function y9(){return!this.isUser()}function T9(t){return this.scope.isPure(this.node,t)}function g9(){let{node:t}=this;return W6(t)?!0:J6(t)?t.importKind==="type"||t.importKind==="typeof":K6(t)?t.exportKind==="type":X6(t)?t.importKind==="type"||t.importKind==="typeof":!1}function x9(){var t;return P0(this.node)&&((t=this.parentPath)==null?void 0:t.isObjectPattern())}function b9(){var t;return P0(this.node)&&((t=this.parentPath)==null?void 0:t.isObjectExpression())}function S9(){return s9(this.node,{await:!0})}yt.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},yt.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var ho=_(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.environmentVisitor=k9;Br.explode=L0;Br.isExplodedVisitor=D0;Br.merge=F0;Br.verify=M0;var N0=Pc(),E9=Dp(),P9=be(),v0=Ti(),{DEPRECATED_KEYS:A0,DEPRECATED_ALIASES:w0,FLIPPED_ALIAS_KEYS:C0,TYPES:v9,__internal__deprecationWarning:I0}=P9;function A9(t){return t in N0}function D0(t){return t?._exploded}function L0(t){if(D0(t))return t;t._exploded=!0;for(let e of Object.keys(t)){if(Fr(e))continue;let i=e.split("|");if(i.length===1)continue;let r=t[e];delete t[e];for(let s of i)t[s]=r}M0(t),delete t.__esModule,w9(t),O0(t);for(let e of Object.keys(t)){if(Fr(e)||!A9(e))continue;let i=t[e];for(let s of Object.keys(i))i[s]=C9(e,i[s]);delete t[e];let r=N0[e];if(r!==null)for(let s of r)t[s]?In(t[s],i):t[s]=i;else In(t,i)}for(let e of Object.keys(t)){if(Fr(e))continue;let i=C0[e];if(e in A0){let s=A0[e];I0(e,s,"Visitor "),i=[s]}else if(e in w0){let s=w0[e];I0(e,s,"Visitor "),i=C0[s]}if(!i)continue;let r=t[e];delete t[e];for(let s of i){let n=t[s];n?In(n,r):t[s]=Object.assign({},r)}}for(let e of Object.keys(t))Fr(e)||O0(t[e]);return t}function M0(t){if(!t._verified){if(typeof t=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let e of Object.keys(t)){if((e==="enter"||e==="exit")&&k0(e,t[e]),Fr(e))continue;if(!v9.includes(e))throw new Error(`You gave us a visitor for the node type ${e} but it's not a valid type in @babel/traverse 7.28.0`);let i=t[e];if(typeof i=="object")for(let r of Object.keys(i))if(r==="enter"||r==="exit")k0(`${e}.${r}`,i[r]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${e} that has the invalid property ${r}`)}t._verified=!0}}function k0(t,e){let i=[].concat(e);for(let r of i)if(typeof r!="function")throw new TypeError(`Non-function found defined in ${t} with type ${typeof r}`)}function F0(t,e=[],i){let r={_verified:!0,_exploded:!0};Object.defineProperty(r,"_exploded",{enumerable:!1}),Object.defineProperty(r,"_verified",{enumerable:!1});for(let s=0;s<t.length;s++){let n=L0(t[s]),a=e[s],l=n;(a||i)&&(l=_0(l,a,i)),In(r,l);for(let c of Object.keys(n)){if(Fr(c))continue;let o=n[c];(a||i)&&(o=_0(o,a,i));let u=r[c]||(r[c]={});In(u,o)}}return r}function _0(t,e,i){let r={};for(let s of["enter","exit"]){let n=t[s];Array.isArray(n)&&(n=n.map(function(a){let l=a;return e&&(l=function(c){a.call(e,c,e)}),i&&(l=i(e?.key,s,l)),l!==a&&(l.toString=()=>a.toString()),l}),r[s]=n)}return r}function w9(t){for(let e of Object.keys(t)){if(Fr(e))continue;let i=t[e];typeof i=="function"&&(t[e]={enter:i})}}function O0(t){t.enter&&!Array.isArray(t.enter)&&(t.enter=[t.enter]),t.exit&&!Array.isArray(t.exit)&&(t.exit=[t.exit])}function C9(t,e){let i=`is${t}`,r=E9[i],s=function(n){if(r.call(n))return e.apply(this,arguments)};return s.toString=()=>e.toString(),s}function Fr(t){return t[0]==="_"||t==="enter"||t==="exit"||t==="shouldSkip"||t==="denylist"||t==="noScope"||t==="skipKeys"||t==="blacklist"}function In(t,e){for(let i of["enter","exit"])e[i]&&(t[i]=[].concat(t[i]||[],e[i]))}var I9={FunctionParent(t){t.isArrowFunctionExpression()||(t.skip(),t.isMethod()&&(t.requeueComputedKeyAndDecorators?t.requeueComputedKeyAndDecorators():v0.requeueComputedKeyAndDecorators.call(t)))},Property(t){t.isObjectProperty()||(t.skip(),t.requeueComputedKeyAndDecorators?t.requeueComputedKeyAndDecorators():v0.requeueComputedKeyAndDecorators.call(t))}};function k9(t){return F0([I9,t])}});var B0=_(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.default=void 0;var mo=be(),_9=mo,O9=To(),N9=ho(),D9=Ti(),{getAssignmentIdentifiers:L9}=_9,M9={ReferencedIdentifier({node:t},e){t.name===e.oldName&&(t.name=e.newName)},Scope(t,e){t.scope.bindingIdentifierEquals(e.oldName,e.binding.identifier)||(t.skip(),t.isMethod()&&(t.requeueComputedKeyAndDecorators?t.requeueComputedKeyAndDecorators():D9.requeueComputedKeyAndDecorators.call(t)))},ObjectProperty({node:t,scope:e},i){let{name:r}=t.key;if(t.shorthand&&(r===i.oldName||r===i.newName)&&e.getBindingIdentifier(r)===i.binding.identifier){t.shorthand=!1;{var s;(s=t.extra)!=null&&s.shorthand&&(t.extra.shorthand=!1)}}},"AssignmentExpression|Declaration|VariableDeclarator"(t,e){if(t.isVariableDeclaration())return;let i=t.isAssignmentExpression()?L9(t.node):t.getOuterBindingIdentifiers();for(let r in i)r===e.oldName&&(i[r].name=e.newName)}},Lp=class{constructor(e,i,r){this.newName=r,this.oldName=i,this.binding=e}maybeConvertFromExportDeclaration(e){let i=e.parentPath;if(i.isExportDeclaration()){if(i.isExportDefaultDeclaration()){let{declaration:r}=i.node;if(mo.isDeclaration(r)&&!r.id)return}i.isExportAllDeclaration()||i.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){let{binding:e,oldName:i,newName:r}=this,{scope:s,path:n}=e,a=n.find(o=>o.isDeclaration()||o.isFunctionExpression()||o.isClassExpression());a&&a.getOuterBindingIdentifiers()[i]===e.identifier&&this.maybeConvertFromExportDeclaration(a);let l=arguments[0]||s.block,c={discriminant:!0};mo.isMethod(l)&&(l.computed&&(c.key=!0),mo.isObjectMethod(l)||(c.decorators=!0)),(0,O9.traverseNode)(l,(0,N9.explode)(M9),s,this,s.path,c),arguments[0]||(s.removeOwnBinding(i),s.bindings[r]=e,this.binding.identifier.name=r),a&&(this.maybeConvertFromClassFunctionDeclaration(n),this.maybeConvertFromClassFunctionExpression(n))}};yo.default=Lp});var j0=_(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.default=void 0;var Mp=class{constructor({identifier:e,scope:i,path:r,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=i,this.path=r,this.kind=s,(s==="var"||s==="hoisted")&&F9(r)&&this.reassign(r),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,!this.constantViolations.includes(e)&&this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}};go.default=Mp;function F9(t){let e=!t.isVariableDeclarator()||t.node.init;for(let{parentPath:i,key:r}=t;i;{parentPath:i,key:r}=i){if(i.isFunctionParent())return!1;if(r==="left"&&i.isForXStatement()||e&&r==="body"&&i.isLoop())return!0}return!1}});var jr=_(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.clear=j9;Zt.clearPath=R0;Zt.clearScope=$0;Zt.getCachedPaths=R9;Zt.getOrCreateCachedPaths=$9;Zt.scope=Zt.path=void 0;var xo=Zt.path=new WeakMap,B9=Zt.scope=new WeakMap;function j9(){R0(),$0()}function R0(){Zt.path=xo=new WeakMap}function $0(){Zt.scope=B9=new WeakMap}function R9(t){let{parent:e,parentPath:i}=t;return xo.get(e)}function $9(t,e){let i=xo.get(t);return i||xo.set(t,i=new Map),i}});var q0=_((yae,q9)=>{q9.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var U0=_((Tae,U9)=>{U9.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var $p=_(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var K9=B0(),G0=_n(),V9=j0(),Q0=be(),Z0=Q0,K0=jr(),W9=q0(),Y9=U0(),{assignmentExpression:z9,callExpression:V0,cloneNode:W0,getBindingIdentifiers:eT,identifier:$r,isArrayExpression:tT,isBinary:J9,isCallExpression:Y0,isClass:X9,isClassBody:H9,isClassDeclaration:G9,isExportAllDeclaration:iT,isExportDefaultDeclaration:Q9,isExportNamedDeclaration:Fp,isFunctionDeclaration:Z9,isIdentifier:Rr,isImportDeclaration:Bp,isLiteral:e5,isMemberExpression:t5,isMethod:i5,isModuleSpecifier:r5,isNullLiteral:s5,isObjectExpression:n5,isProperty:a5,isPureish:o5,isRegExpLiteral:l5,isSuper:c5,isTaggedTemplateExpression:u5,isTemplateLiteral:rT,isThisExpression:z0,isUnaryExpression:p5,isVariableDeclaration:f5,expressionStatement:h5,matchesPattern:J0,memberExpression:jp,numericLiteral:d5,toIdentifier:m5,variableDeclaration:y5,variableDeclarator:T5,isRecordExpression:g5,isTupleExpression:x5,isObjectProperty:b5,isTopicReference:X0,isMetaProperty:S5,isPrivateName:E5,isExportDeclaration:P5,buildUndefinedNode:v5,sequenceExpression:A5}=Q0;function Ze(t,e){switch(t?.type){default:if(Bp(t)||P5(t)){var i;if((iT(t)||Fp(t)||Bp(t))&&t.source)Ze(t.source,e);else if((Fp(t)||Bp(t))&&(i=t.specifiers)!=null&&i.length)for(let r of t.specifiers)Ze(r,e);else(Q9(t)||Fp(t))&&t.declaration&&Ze(t.declaration,e)}else r5(t)?Ze(t.local,e):e5(t)&&!s5(t)&&!l5(t)&&!rT(t)&&e.push(t.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Ze(t.object,e),Ze(t.property,e);break;case"Identifier":case"JSXIdentifier":e.push(t.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Ze(t.callee,e);break;case"ObjectExpression":case"ObjectPattern":for(let r of t.properties)Ze(r,e);break;case"SpreadElement":case"RestElement":Ze(t.argument,e);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Ze(t.key,e);break;case"ThisExpression":e.push("this");break;case"Super":e.push("super");break;case"Import":case"ImportExpression":e.push("import");break;case"DoExpression":e.push("do");break;case"YieldExpression":e.push("yield"),Ze(t.argument,e);break;case"AwaitExpression":e.push("await"),Ze(t.argument,e);break;case"AssignmentExpression":Ze(t.left,e);break;case"VariableDeclarator":Ze(t.id,e);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Ze(t.id,e);break;case"PrivateName":Ze(t.id,e);break;case"ParenthesizedExpression":Ze(t.expression,e);break;case"UnaryExpression":case"UpdateExpression":Ze(t.argument,e);break;case"MetaProperty":Ze(t.meta,e),Ze(t.property,e);break;case"JSXElement":Ze(t.openingElement,e);break;case"JSXOpeningElement":Ze(t.name,e);break;case"JSXFragment":Ze(t.openingFragment,e);break;case"JSXOpeningFragment":e.push("Fragment");break;case"JSXNamespacedName":Ze(t.namespace,e),Ze(t.name,e);break}}function H0(t){t.references=Object.create(null),t.uids=Object.create(null),t.bindings=Object.create(null),t.globals=Object.create(null)}Rp=Symbol.for("should not be considered a local binding");var Rp,w5={ForStatement(t){let e=t.get("init");if(e.isVar()){let{scope:i}=t;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",e)}},Declaration(t){if(t.isBlockScoped()||t.isImportDeclaration()||t.isExportDeclaration())return;(t.scope.getFunctionParent()||t.scope.getProgramParent()).registerDeclaration(t)},ImportDeclaration(t){t.scope.getBlockParent().registerDeclaration(t)},TSImportEqualsDeclaration(t){t.scope.getBlockParent().registerDeclaration(t)},ReferencedIdentifier(t,e){Z0.isTSQualifiedName(t.parent)&&t.parent.right===t.node||t.parentPath.isTSImportEqualsDeclaration()||e.references.push(t)},ForXStatement(t,e){let i=t.get("left");if(i.isPattern()||i.isIdentifier())e.constantViolations.push(t);else if(i.isVar()){let{scope:r}=t;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",i)}},ExportDeclaration:{exit(t){let{node:e,scope:i}=t;if(iT(e))return;let r=e.declaration;if(G9(r)||Z9(r)){let s=r.id;if(!s)return;let n=i.getBinding(s.name);n?.reference(t)}else if(f5(r))for(let s of r.declarations)for(let n of Object.keys(eT(s))){let a=i.getBinding(n);a?.reference(t)}}},LabeledStatement(t){t.scope.getBlockParent().registerDeclaration(t)},AssignmentExpression(t,e){e.assignments.push(t)},UpdateExpression(t,e){e.constantViolations.push(t)},UnaryExpression(t,e){t.node.operator==="delete"&&e.constantViolations.push(t)},BlockScoped(t){let e=t.scope;if(e.path===t&&(e=e.parent),e.getBlockParent().registerDeclaration(t),t.isClassDeclaration()&&t.node.id){let s=t.node.id.name;t.scope.bindings[s]=t.scope.parent.getBinding(s)}},CatchClause(t){t.scope.registerBinding("let",t)},Function(t){let e=t.get("params");for(let i of e)t.scope.registerBinding("param",i);t.isFunctionExpression()&&t.node.id&&!t.node.id[Rp]&&t.scope.registerBinding("local",t.get("id"),t)},ClassExpression(t){t.node.id&&!t.node.id[Rp]&&t.scope.registerBinding("local",t.get("id"),t)},TSTypeAnnotation(t){t.skip()}},kn,C5=0,gi=class t{constructor(e){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:i}=e,r=K0.scope.get(i);if(r?.path===e)return r;K0.scope.set(i,this),this.uid=C5++,this.block=i,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e;let i,r=this.path;do{var s;let n=r.key==="key"||r.listKey==="decorators";r=r.parentPath,n&&r.isMethod()&&(r=r.parentPath),(s=r)!=null&&s.isScope()&&(i=r)}while(r&&!i);return(e=i)==null?void 0:e.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){let i=this.generateUidIdentifier(e);return this.push({id:i}),W0(i)}generateUidIdentifier(e){return $r(this.generateUid(e))}generateUid(e="temp"){e=m5(e).replace(/^_+/,"").replace(/\d+$/g,"");let i,r=0;do i=`_${e}`,r>=11?i+=r-1:r>=9?i+=r-9:r>=1&&(i+=r+1),r++;while(this.hasLabel(i)||this.hasBinding(i)||this.hasGlobal(i)||this.hasReference(i));let s=this.getProgramParent();return s.references[i]=!0,s.uids[i]=!0,i}generateUidBasedOnNode(e,i){let r=[];Ze(e,r);let s=r.join("$");return s=s.replace(/^_/,"")||i||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(e,i){return $r(this.generateUidBasedOnNode(e,i))}isStatic(e){if(z0(e)||c5(e)||X0(e))return!0;if(Rr(e)){let i=this.getBinding(e.name);return i?i.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,i){if(this.isStatic(e))return null;{let r=this.generateUidIdentifierBasedOnNode(e);return i?r:(this.push({id:r}),W0(r))}}checkBlockScopedCollisions(e,i,r,s){if(i==="param"||e.kind==="local")return;if(i==="let"||e.kind==="let"||e.kind==="const"||e.kind==="module"||e.kind==="param"&&i==="const")throw this.path.hub.buildError(s,`Duplicate declaration "${r}"`,TypeError)}rename(e,i){let r=this.getBinding(e);r&&(i||(i=this.generateUidIdentifier(e).name),new K9.default(r,e,i).rename(arguments[2]))}dump(){let e="-".repeat(60);console.log(e);let i=this;do{console.log("#",i.block.type);for(let r of Object.keys(i.bindings)){let s=i.bindings[r];console.log(" -",r,{constant:s.constant,references:s.references,violations:s.constantViolations.length,kind:s.kind})}}while(i=i.parent);console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){let i=e.get("declarations"),{kind:r}=e.node;for(let s of i)this.registerBinding(r==="using"||r==="await using"?"const":r,s)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){let i=e.node.importKind==="type"||e.node.importKind==="typeof",r=e.get("specifiers");for(let s of r){let n=i||s.isImportSpecifier()&&(s.node.importKind==="type"||s.node.importKind==="typeof");this.registerBinding(n?"unknown":"module",s)}}else if(e.isExportDeclaration()){let i=e.get("declaration");(i.isClassDeclaration()||i.isFunctionDeclaration()||i.isVariableDeclaration())&&this.registerDeclaration(i)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return v5()}registerConstantViolation(e){let i=e.getAssignmentIdentifiers();for(let s of Object.keys(i)){var r;(r=this.getBinding(s))==null||r.reassign(e)}}registerBinding(e,i,r=i){if(!e)throw new ReferenceError("no `kind`");if(i.isVariableDeclaration()){let a=i.get("declarations");for(let l of a)this.registerBinding(e,l);return}let s=this.getProgramParent(),n=i.getOuterBindingIdentifiers(!0);for(let a of Object.keys(n)){s.references[a]=!0;for(let l of n[a]){let c=this.getOwnBinding(a);if(c){if(c.identifier===l)continue;this.checkBlockScopedCollisions(c,e,a,l)}c?c.reassign(r):this.bindings[a]=new V9.default({identifier:l,scope:this,path:r,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){{let i=this;do if(i.uids[e])return!0;while(i=i.parent);return!1}}hasGlobal(e){let i=this;do if(i.globals[e])return!0;while(i=i.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,i){if(Rr(e)){let a=this.getBinding(e.name);return a?i?a.constant:!0:!1}else{if(z0(e)||S5(e)||X0(e)||E5(e))return!0;if(X9(e)){var r;return e.superClass&&!this.isPure(e.superClass,i)||((r=e.decorators)==null?void 0:r.length)>0?!1:this.isPure(e.body,i)}else if(H9(e)){for(let a of e.body)if(!this.isPure(a,i))return!1;return!0}else{if(J9(e))return this.isPure(e.left,i)&&this.isPure(e.right,i);if(tT(e)||x5(e)){for(let a of e.elements)if(a!==null&&!this.isPure(a,i))return!1;return!0}else if(n5(e)||g5(e)){for(let a of e.properties)if(!this.isPure(a,i))return!1;return!0}else if(i5(e)){var s;return!(e.computed&&!this.isPure(e.key,i)||((s=e.decorators)==null?void 0:s.length)>0)}else if(a5(e)){var n;return!(e.computed&&!this.isPure(e.key,i)||((n=e.decorators)==null?void 0:n.length)>0||(b5(e)||e.static)&&e.value!==null&&!this.isPure(e.value,i))}else{if(p5(e))return this.isPure(e.argument,i);if(rT(e)){for(let a of e.expressions)if(!this.isPure(a,i))return!1;return!0}else return u5(e)?J0(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,i):t5(e)?!e.computed&&Rr(e.object)&&e.object.name==="Symbol"&&Rr(e.property)&&e.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):Y0(e)?J0(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&e.arguments.length===1&&Z0.isStringLiteral(e.arguments[0]):o5(e)}}}}setData(e,i){return this.data[e]=i}getData(e){let i=this;do{let r=i.data[e];if(r!=null)return r}while(i=i.parent)}removeData(e){let i=this;do i.data[e]!=null&&(i.data[e]=null);while(i=i.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let e=this.path;H0(this),this.data=Object.create(null);let i=this;do{if(i.crawling)return;if(i.path.isProgram())break}while(i=i.parent);let r=i,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,kn||(kn=G0.default.visitors.merge([{Scope(n){H0(n.scope)}},w5])),e.type!=="Program"){for(let a of kn.enter)a.call(s,e,s);let n=kn[e.type];if(n)for(let a of n.enter)a.call(s,e,s)}e.traverse(kn,s),this.crawling=!1;for(let n of s.assignments){let a=n.getAssignmentIdentifiers();for(let l of Object.keys(a))n.scope.getBinding(l)||r.addGlobal(a[l]);n.scope.registerConstantViolation(n)}for(let n of s.references){let a=n.scope.getBinding(n.node.name);a?a.reference(n):r.addGlobal(n.node)}for(let n of s.constantViolations)n.scope.registerConstantViolation(n)}push(e){let i=this.path;i.isPattern()?i=this.getPatternParent().path:!i.isBlockStatement()&&!i.isProgram()&&(i=this.getBlockParent().path),i.isSwitchStatement()&&(i=(this.getFunctionParent()||this.getProgramParent()).path);let{init:r,unique:s,kind:n="var",id:a}=e;if(!r&&!s&&(n==="var"||n==="let")&&i.isFunction()&&!i.node.name&&Y0(i.parent,{callee:i.node})&&i.parent.arguments.length<=i.node.params.length&&Rr(a)){i.pushContainer("params",a),i.scope.registerBinding("param",i.get("params")[i.node.params.length-1]);return}(i.isLoop()||i.isCatchClause()||i.isFunction())&&(i.ensureBlock(),i=i.get("body"));let l=e._blockHoist==null?2:e._blockHoist,c=`declaration:${n}:${l}`,o=!s&&i.getData(c);if(!o){let d=y5(n,[]);d._blockHoist=l,[o]=i.unshiftContainer("body",[d]),s||i.setData(c,o)}let u=T5(a,r),f=o.node.declarations.push(u);i.scope.registerBinding(n,o.get("declarations")[f-1])}getProgramParent(){let e=this;do if(e.path.isProgram())return e;while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent);return null}getBlockParent(){let e=this;do if(e.path.isBlockParent())return e;while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do if(!e.path.isPattern())return e.getBlockParent();while(e=e.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let e=Object.create(null),i=this;do{for(let r of Object.keys(i.bindings))r in e||(e[r]=i.bindings[r]);i=i.parent}while(i);return e}bindingIdentifierEquals(e,i){return this.getBindingIdentifier(e)===i}getBinding(e){let i=this,r;do{let n=i.getOwnBinding(e);if(n){var s;if(!((s=r)!=null&&s.isPattern()&&n.kind!=="param"&&n.kind!=="local"))return n}else if(!n&&e==="arguments"&&i.path.isFunction()&&!i.path.isArrowFunctionExpression())break;r=i.path}while(i=i.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var i;return(i=this.getBinding(e))==null?void 0:i.identifier}getOwnBindingIdentifier(e){let i=this.bindings[e];return i?.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,i){if(!e)return!1;let r,s,n;typeof i=="object"?(r=i.noGlobals,s=i.noUids,n=i.upToScope):typeof i=="boolean"&&(r=i);let a=this;do{if(n===a)break;if(a.hasOwnBinding(e))return!0}while(a=a.parent);return!!(!s&&this.hasUid(e)||!r&&t.globals.includes(e)||!r&&t.contextVariables.includes(e))}parentHasBinding(e,i){var r;return(r=this.parent)==null?void 0:r.hasBinding(e,i)}moveBindingTo(e,i){let r=this.getBinding(e);r&&(r.scope.removeOwnBinding(e),r.scope=i,i.bindings[e]=r)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var i;(i=this.getBinding(e))==null||i.scope.removeOwnBinding(e);{let r=this;do r.uids[e]&&(r.uids[e]=!1);while(r=r.parent)}}hoistVariables(e=i=>this.push({id:i})){this.crawl();let i=new Set;for(let r of Object.keys(this.bindings)){let s=this.bindings[r];if(!s)continue;let{path:n}=s;if(!n.isVariableDeclarator())continue;let{parent:a,parentPath:l}=n;if(a.kind!=="var"||i.has(a))continue;i.add(n.parent);let c,o=[];for(let u of a.declarations){c??(c=u.id),u.init&&o.push(z9("=",u.id,u.init));let f=Object.keys(eT(u,!1,!0,!0));for(let d of f)e($r(d),u.init!=null)}if(l.parentPath.isFor({left:a}))l.replaceWith(c);else if(o.length===0)l.remove();else{let u=o.length===1?o[0]:A5(o);l.parentPath.isForStatement({init:a})?l.replaceWith(u):l.replaceWith(h5(u))}}}};bo.default=gi;gi.globals=[...W9,...Y9];gi.contextVariables=["arguments","undefined","Infinity","NaN"];gi.prototype._renameFromMap=function(e,i,r,s){e[i]&&(e[r]=s,e[i]=null)},gi.prototype.traverse=function(t,e,i){(0,G0.default)(t,e,this,i,this.path)},gi.prototype._generateUid=function(e,i){let r=e;return i>1&&(r+=i),`_${r}`},gi.prototype.toArray=function(e,i,r){if(Rr(e)){let a=this.getBinding(e.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return e}if(tT(e))return e;if(Rr(e,{name:"arguments"}))return V0(jp(jp(jp($r("Array"),$r("prototype")),$r("slice")),$r("call")),[e]);let s,n=[e];return i===!0?s="toConsumableArray":typeof i=="number"?(n.push(d5(i)),s="slicedToArray"):s="toArray",r&&(n.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),V0(this.path.hub.addHelper(s),n)},gi.prototype.getAllBindingsOfKind=function(...e){let i=Object.create(null);for(let r of e){let s=this;do{for(let n of Object.keys(s.bindings)){let a=s.bindings[n];a.kind===r&&(i[n]=a)}s=s.parent}while(s)}return i},Object.defineProperties(gi.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var Kp=_((qp,Up)=>{(function(t,e,i){typeof qp=="object"&&typeof Up<"u"?e(Up):typeof define=="function"&&define.amd?define(["module"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(i={exports:{}}),t.sourcemapCodec="default"in i.exports?i.exports.default:i.exports)})(qp,function(t){"use strict";var e=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n=(Y,z)=>{for(var F in z)e(Y,F,{get:z[F],enumerable:!0})},a=(Y,z,F,G)=>{if(z&&typeof z=="object"||typeof z=="function")for(let fe of r(z))!s.call(Y,fe)&&fe!==F&&e(Y,fe,{get:()=>z[fe],enumerable:!(G=i(z,fe))||G.enumerable});return Y},l=Y=>a(e({},"__esModule",{value:!0}),Y),c={};n(c,{decode:()=>Ot,decodeGeneratedRanges:()=>ee,decodeOriginalScopes:()=>U,encode:()=>Nt,encodeGeneratedRanges:()=>Pe,encodeOriginalScopes:()=>oe}),t.exports=l(c);var o=44,u=59,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=new Uint8Array(64),m=new Uint8Array(128);for(let Y=0;Y<f.length;Y++){let z=f.charCodeAt(Y);d[Y]=z,m[z]=Y}function S(Y,z){let F=0,G=0,fe=0;do{let Ue=Y.next();fe=m[Ue],F|=(fe&31)<<G,G+=5}while(fe&32);let ve=F&1;return F>>>=1,ve&&(F=-2147483648|-F),z+F}function P(Y,z,F){let G=z-F;G=G<0?-G<<1|1:G<<1;do{let fe=G&31;G>>>=5,G>0&&(fe|=32),Y.write(d[fe])}while(G>0);return z}function A(Y,z){return Y.pos>=z?!1:Y.peek()!==o}var C=1024*16,k=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(Y){return Buffer.from(Y.buffer,Y.byteOffset,Y.byteLength).toString()}}:{decode(Y){let z="";for(let F=0;F<Y.length;F++)z+=String.fromCharCode(Y[F]);return z}},D=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(C)}write(Y){let{buffer:z}=this;z[this.pos++]=Y,this.pos===C&&(this.out+=k.decode(z),this.pos=0)}flush(){let{buffer:Y,out:z,pos:F}=this;return F>0?z+k.decode(Y.subarray(0,F)):z}},L=class{constructor(Y){this.pos=0,this.buffer=Y}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(Y){let{buffer:z,pos:F}=this,G=z.indexOf(Y,F);return G===-1?z.length:G}},B=[];function U(Y){let{length:z}=Y,F=new L(Y),G=[],fe=[],ve=0;for(;F.pos<z;F.pos++){ve=S(F,ve);let Ue=S(F,0);if(!A(F,z)){let tt=fe.pop();tt[2]=ve,tt[3]=Ue;continue}let Le=S(F,0),Re=S(F,0)&1?[ve,Ue,0,0,Le,S(F,0)]:[ve,Ue,0,0,Le],He=B;if(A(F,z)){He=[];do{let tt=S(F,0);He.push(tt)}while(A(F,z))}Re.vars=He,G.push(Re),fe.push(Re)}return G}function oe(Y){let z=new D;for(let F=0;F<Y.length;)F=me(Y,F,z,[0]);return z.flush()}function me(Y,z,F,G){let fe=Y[z],{0:ve,1:Ue,2:Le,3:Xe,4:Me,vars:Re}=fe;z>0&&F.write(o),G[0]=P(F,ve,G[0]),P(F,Ue,0),P(F,Me,0);let He=fe.length===6?1:0;P(F,He,0),fe.length===6&&P(F,fe[5],0);for(let tt of Re)P(F,tt,0);for(z++;z<Y.length;){let tt=Y[z],{0:Ae,1:it}=tt;if(Ae>Le||Ae===Le&&it>=Xe)break;z=me(Y,z,F,G)}return F.write(o),G[0]=P(F,Le,G[0]),P(F,Xe,0),z}function ee(Y){let{length:z}=Y,F=new L(Y),G=[],fe=[],ve=0,Ue=0,Le=0,Xe=0,Me=0,Re=0,He=0,tt=0;do{let Ae=F.indexOf(";"),it=0;for(;F.pos<Ae;F.pos++){if(it=S(F,it),!A(F,Ae)){let ie=fe.pop();ie[2]=ve,ie[3]=it;continue}let dt=S(F,0),Bi=dt&1,Ht=dt&2,Kt=dt&4,K=null,V=B,Z;if(Bi){let ie=S(F,Ue);Le=S(F,Ue===ie?Le:0),Ue=ie,Z=[ve,it,0,0,ie,Le]}else Z=[ve,it,0,0];if(Z.isScope=!!Kt,Ht){let ie=Xe,ye=Me;Xe=S(F,Xe);let Te=ie===Xe;Me=S(F,Te?Me:0),Re=S(F,Te&&ye===Me?Re:0),K=[Xe,Me,Re]}if(Z.callsite=K,A(F,Ae)){V=[];do{He=ve,tt=it;let ie=S(F,0),ye;if(ie<-1){ye=[[S(F,0)]];for(let Te=-1;Te>ie;Te--){let Fe=He;He=S(F,He),tt=S(F,He===Fe?tt:0);let Pt=S(F,0);ye.push([Pt,He,tt])}}else ye=[[ie]];V.push(ye)}while(A(F,Ae))}Z.bindings=V,G.push(Z),fe.push(Z)}ve++,F.pos=Ae+1}while(F.pos<z);return G}function Pe(Y){if(Y.length===0)return"";let z=new D;for(let F=0;F<Y.length;)F=Ct(Y,F,z,[0,0,0,0,0,0,0]);return z.flush()}function Ct(Y,z,F,G){let fe=Y[z],{0:ve,1:Ue,2:Le,3:Xe,isScope:Me,callsite:Re,bindings:He}=fe;G[0]<ve?(ze(F,G[0],ve),G[0]=ve,G[1]=0):z>0&&F.write(o),G[1]=P(F,fe[1],G[1]);let tt=(fe.length===6?1:0)|(Re?2:0)|(Me?4:0);if(P(F,tt,0),fe.length===6){let{4:Ae,5:it}=fe;Ae!==G[2]&&(G[3]=0),G[2]=P(F,Ae,G[2]),G[3]=P(F,it,G[3])}if(Re){let{0:Ae,1:it,2:dt}=fe.callsite;Ae!==G[4]?(G[5]=0,G[6]=0):it!==G[5]&&(G[6]=0),G[4]=P(F,Ae,G[4]),G[5]=P(F,it,G[5]),G[6]=P(F,dt,G[6])}if(He)for(let Ae of He){Ae.length>1&&P(F,-Ae.length,0);let it=Ae[0][0];P(F,it,0);let dt=ve,Bi=Ue;for(let Ht=1;Ht<Ae.length;Ht++){let Kt=Ae[Ht];dt=P(F,Kt[1],dt),Bi=P(F,Kt[2],Bi),P(F,Kt[0],0)}}for(z++;z<Y.length;){let Ae=Y[z],{0:it,1:dt}=Ae;if(it>Le||it===Le&&dt>=Xe)break;z=Ct(Y,z,F,G)}return G[0]<Le?(ze(F,G[0],Le),G[0]=Le,G[1]=0):F.write(o),G[1]=P(F,Xe,G[1]),z}function ze(Y,z,F){do Y.write(u);while(++z<F)}function Ot(Y){let{length:z}=Y,F=new L(Y),G=[],fe=0,ve=0,Ue=0,Le=0,Xe=0;do{let Me=F.indexOf(";"),Re=[],He=!0,tt=0;for(fe=0;F.pos<Me;){let Ae;fe=S(F,fe),fe<tt&&(He=!1),tt=fe,A(F,Me)?(ve=S(F,ve),Ue=S(F,Ue),Le=S(F,Le),A(F,Me)?(Xe=S(F,Xe),Ae=[fe,ve,Ue,Le,Xe]):Ae=[fe,ve,Ue,Le]):Ae=[fe],Re.push(Ae),F.pos++}He||pe(Re),G.push(Re),F.pos=Me+1}while(F.pos<=z);return G}function pe(Y){Y.sort(Je)}function Je(Y,z){return Y[0]-z[0]}function Nt(Y){let z=new D,F=0,G=0,fe=0,ve=0;for(let Ue=0;Ue<Y.length;Ue++){let Le=Y[Ue];if(Ue>0&&z.write(u),Le.length===0)continue;let Xe=0;for(let Me=0;Me<Le.length;Me++){let Re=Le[Me];Me>0&&z.write(o),Xe=P(z,Re[0],Xe),Re.length!==1&&(F=P(z,Re[1],F),G=P(z,Re[2],G),fe=P(z,Re[3],fe),Re.length!==4&&(ve=P(z,Re[4],ve)))}}return z.flush()}})});var sT=_((Vp,Wp)=>{(function(t,e){typeof Vp=="object"&&typeof Wp<"u"?Wp.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.resolveURI=e())})(Vp,function(){"use strict";let t=/^[\w+.-]+:\/\//,e=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(A){return t.test(A)}function s(A){return A.startsWith("//")}function n(A){return A.startsWith("/")}function a(A){return A.startsWith("file:")}function l(A){return/^[.?#]/.test(A)}function c(A){let C=e.exec(A);return u(C[1],C[2]||"",C[3],C[4]||"",C[5]||"/",C[6]||"",C[7]||"")}function o(A){let C=i.exec(A),k=C[2];return u("file:","",C[1]||"","",n(k)?k:"/"+k,C[3]||"",C[4]||"")}function u(A,C,k,D,L,B,U){return{scheme:A,user:C,host:k,port:D,path:L,query:B,hash:U,type:7}}function f(A){if(s(A)){let k=c("http:"+A);return k.scheme="",k.type=6,k}if(n(A)){let k=c("http://foo.com"+A);return k.scheme="",k.host="",k.type=5,k}if(a(A))return o(A);if(r(A))return c(A);let C=c("http://foo.com/"+A);return C.scheme="",C.host="",C.type=A?A.startsWith("?")?3:A.startsWith("#")?2:4:1,C}function d(A){if(A.endsWith("/.."))return A;let C=A.lastIndexOf("/");return A.slice(0,C+1)}function m(A,C){S(C,C.type),A.path==="/"?A.path=C.path:A.path=d(C.path)+A.path}function S(A,C){let k=C<=4,D=A.path.split("/"),L=1,B=0,U=!1;for(let me=1;me<D.length;me++){let ee=D[me];if(!ee){U=!0;continue}if(U=!1,ee!=="."){if(ee===".."){B?(U=!0,B--,L--):k&&(D[L++]=ee);continue}D[L++]=ee,B++}}let oe="";for(let me=1;me<L;me++)oe+="/"+D[me];(!oe||U&&!oe.endsWith("/.."))&&(oe+="/"),A.path=oe}function P(A,C){if(!A&&!C)return"";let k=f(A),D=k.type;if(C&&D!==7){let B=f(C),U=B.type;switch(D){case 1:k.hash=B.hash;case 2:k.query=B.query;case 3:case 4:m(k,B);case 5:k.user=B.user,k.host=B.host,k.port=B.port;case 6:k.scheme=B.scheme}U>D&&(D=U)}S(k,D);let L=k.query+k.hash;switch(D){case 2:case 3:return L;case 4:{let B=k.path.slice(1);return B?l(C||A)&&!l(B)?"./"+B+L:B+L:L||"."}case 5:return k.path+L;default:return k.scheme+"//"+k.user+k.host+k.port+k.path+L}}return P})});var Jp=_((Yp,zp)=>{(function(t,e,i){typeof Yp=="object"&&typeof zp<"u"?e(zp,sT(),Kp()):typeof define=="function"&&define.amd?define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(i={exports:{}},t.resolveURI,t.sourcemapCodec),t.traceMapping="default"in i.exports?i.exports.default:i.exports)})(Yp,function(t,e,i){"use strict";var r=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,o=(N,R)=>function(){return R||(0,N[a(N)[0]])((R={exports:{}}).exports,R),R.exports},u=(N,R)=>{for(var $ in R)s(N,$,{get:R[$],enumerable:!0})},f=(N,R,$,X)=>{if(R&&typeof R=="object"||typeof R=="function")for(let he of a(R))!c.call(N,he)&&he!==$&&s(N,he,{get:()=>R[he],enumerable:!(X=n(R,he))||X.enumerable});return N},d=(N,R,$)=>($=N!=null?r(l(N)):{},f(R||!N||!N.__esModule?s($,"default",{value:N,enumerable:!0}):$,N)),m=N=>f(s({},"__esModule",{value:!0}),N),S=o({"umd:@jridgewell/sourcemap-codec"(N,R){R.exports=i}}),P=o({"umd:@jridgewell/resolve-uri"(N,R){R.exports=e}}),A={};u(A,{AnyMap:()=>Re,FlattenMap:()=>Re,GREATEST_LOWER_BOUND:()=>Kt,LEAST_UPPER_BOUND:()=>Ht,TraceMap:()=>K,allGeneratedPositionsFor:()=>Pt,decodedMap:()=>gr,decodedMappings:()=>ie,eachMapping:()=>ti,encodedMap:()=>Gr,encodedMappings:()=>Z,generatedPositionFor:()=>Fe,isIgnored:()=>yr,originalPositionFor:()=>Te,presortedDecodedMap:()=>Tr,sourceContentFor:()=>Hr,traceSegment:()=>ye}),t.exports=m(A);var C=d(S()),k=d(P());function D(N){if(!N)return"";let R=N.lastIndexOf("/");return N.slice(0,R+1)}function L(N,R){let $=D(N),X=R?R+"/":"";return he=>(0,k.default)(X+(he||""),$)}var B=0,U=1,oe=2,me=3,ee=4,Pe=1,Ct=2;function ze(N,R){let $=Ot(N,0);if($===N.length)return N;R||(N=N.slice());for(let X=$;X<N.length;X=Ot(N,X+1))N[X]=Je(N[X],R);return N}function Ot(N,R){for(let $=R;$<N.length;$++)if(!pe(N[$]))return $;return N.length}function pe(N){for(let R=1;R<N.length;R++)if(N[R][B]<N[R-1][B])return!1;return!0}function Je(N,R){return R||(N=N.slice()),N.sort(Nt)}function Nt(N,R){return N[B]-R[B]}var Y=!1;function z(N,R,$,X){for(;$<=X;){let he=$+(X-$>>1),le=N[he][B]-R;if(le===0)return Y=!0,he;le<0?$=he+1:X=he-1}return Y=!1,$-1}function F(N,R,$){for(let X=$+1;X<N.length&&N[X][B]===R;$=X++);return $}function G(N,R,$){for(let X=$-1;X>=0&&N[X][B]===R;$=X--);return $}function fe(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ve(N,R,$,X){let{lastKey:he,lastNeedle:le,lastIndex:De}=$,Ye=0,we=N.length-1;if(X===he){if(R===le)return Y=De!==-1&&N[De][B]===R,De;R>=le?Ye=De===-1?0:De:we=De}return $.lastKey=X,$.lastNeedle=R,$.lastIndex=z(N,R,Ye,we)}function Ue(N,R){let $=R.map(Xe);for(let X=0;X<N.length;X++){let he=N[X];for(let le=0;le<he.length;le++){let De=he[le];if(De.length===1)continue;let Ye=De[U],we=De[oe],Ge=De[me],Vt=$[Ye],rt=Vt[we]||(Vt[we]=[]),gt=R[Ye],Gt=F(rt,Ge,ve(rt,Ge,gt,we));gt.lastIndex=++Gt,Le(rt,Gt,[Ge,X,De[B]])}}return $}function Le(N,R,$){for(let X=N.length;X>R;X--)N[X]=N[X-1];N[R]=$}function Xe(){return{__proto__:null}}function Me(N){return typeof N=="string"?JSON.parse(N):N}var Re=function(N,R){let $=Me(N);if(!("sections"in $))return new K($,R);let X=[],he=[],le=[],De=[],Ye=[];He($,R,X,he,le,De,Ye,0,0,1/0,1/0);let we={version:3,file:$.file,names:De,sources:he,sourcesContent:le,mappings:X,ignoreList:Ye};return Tr(we)};function He(N,R,$,X,he,le,De,Ye,we,Ge,Vt){let{sections:rt}=N;for(let gt=0;gt<rt.length;gt++){let{map:Gt,offset:Ei}=rt[gt],br=Ge,Qr=Vt;if(gt+1<rt.length){let Zr=rt[gt+1].offset;br=Math.min(Ge,Ye+Zr.line),br===Ge?Qr=Math.min(Vt,we+Zr.column):br<Ge&&(Qr=we+Zr.column)}tt(Gt,R,$,X,he,le,De,Ye+Ei.line,we+Ei.column,br,Qr)}}function tt(N,R,$,X,he,le,De,Ye,we,Ge,Vt){let rt=Me(N);if("sections"in rt)return He(...arguments);let gt=new K(rt,R),Gt=X.length,Ei=le.length,br=ie(gt),{resolvedSources:Qr,sourcesContent:Zr,ignoreList:ol}=gt;if(Ae(X,Qr),Ae(le,gt.names),Zr)Ae(he,Zr);else for(let ii=0;ii<Qr.length;ii++)he.push(null);if(ol)for(let ii=0;ii<ol.length;ii++)De.push(ol[ii]+Gt);for(let ii=0;ii<br.length;ii++){let ll=Ye+ii;if(ll>Ge)return;let Eh=it($,ll),bb=ii===0?we:0,Ph=br[ii];for(let cl=0;cl<Ph.length;cl++){let Sr=Ph[cl],Xn=bb+Sr[B];if(ll===Ge&&Xn>=Vt)return;if(Sr.length===1){Eh.push([Xn]);continue}let vh=Gt+Sr[U],Ah=Sr[oe],wh=Sr[me];Eh.push(Sr.length===4?[Xn,vh,Ah,wh]:[Xn,vh,Ah,wh,Ei+Sr[ee]])}}}function Ae(N,R){for(let $=0;$<R.length;$++)N.push(R[$])}function it(N,R){for(let $=N.length;$<=R;$++)N[$]=[];return N[R]}var dt="`line` must be greater than 0 (lines start at line 1)",Bi="`column` must be greater than or equal to 0 (columns start at column 0)",Ht=-1,Kt=1,K=class{constructor(N,R){let $=typeof N=="string";if(!$&&N._decodedMemo)return N;let X=Me(N),{version:he,file:le,names:De,sourceRoot:Ye,sources:we,sourcesContent:Ge}=X;this.version=he,this.file=le,this.names=De||[],this.sourceRoot=Ye,this.sources=we,this.sourcesContent=Ge,this.ignoreList=X.ignoreList||X.x_google_ignoreList||void 0;let Vt=L(R,Ye);this.resolvedSources=we.map(Vt);let{mappings:rt}=X;if(typeof rt=="string")this._encoded=rt,this._decoded=void 0;else if(Array.isArray(rt))this._encoded=void 0,this._decoded=ze(rt,$);else throw X.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(X)}`);this._decodedMemo=fe(),this._bySources=void 0,this._bySourceMemos=void 0}};function V(N){return N}function Z(N){var R,$;return($=(R=N)._encoded)!=null?$:R._encoded=(0,C.encode)(N._decoded)}function ie(N){var R;return(R=N)._decoded||(R._decoded=(0,C.decode)(N._encoded))}function ye(N,R,$){let X=ie(N);if(R>=X.length)return null;let he=X[R],le=Jn(he,N._decodedMemo,R,$,Kt);return le===-1?null:he[le]}function Te(N,R){let{line:$,column:X,bias:he}=R;if($--,$<0)throw new Error(dt);if(X<0)throw new Error(Bi);let le=ie(N);if($>=le.length)return xr(null,null,null,null);let De=le[$],Ye=Jn(De,N._decodedMemo,$,X,he||Kt);if(Ye===-1)return xr(null,null,null,null);let we=De[Ye];if(we.length===1)return xr(null,null,null,null);let{names:Ge,resolvedSources:Vt}=N;return xr(Vt[we[U]],we[oe]+1,we[me],we.length===5?Ge[we[ee]]:null)}function Fe(N,R){let{source:$,line:X,column:he,bias:le}=R;return Sh(N,$,X,he,le||Kt,!1)}function Pt(N,R){let{source:$,line:X,column:he,bias:le}=R;return Sh(N,$,X,he,le||Ht,!0)}function ti(N,R){let $=ie(N),{names:X,resolvedSources:he}=N;for(let le=0;le<$.length;le++){let De=$[le];for(let Ye=0;Ye<De.length;Ye++){let we=De[Ye],Ge=le+1,Vt=we[0],rt=null,gt=null,Gt=null,Ei=null;we.length!==1&&(rt=he[we[1]],gt=we[2]+1,Gt=we[3]),we.length===5&&(Ei=X[we[4]]),R({generatedLine:Ge,generatedColumn:Vt,source:rt,originalLine:gt,originalColumn:Gt,name:Ei})}}}function Xr(N,R){let{sources:$,resolvedSources:X}=N,he=$.indexOf(R);return he===-1&&(he=X.indexOf(R)),he}function Hr(N,R){let{sourcesContent:$}=N;if($==null)return null;let X=Xr(N,R);return X===-1?null:$[X]}function yr(N,R){let{ignoreList:$}=N;if($==null)return!1;let X=Xr(N,R);return X===-1?!1:$.includes(X)}function Tr(N,R){let $=new K(ji(N,[]),R);return $._decoded=N.mappings,$}function gr(N){return ji(N,ie(N))}function Gr(N){return ji(N,Z(N))}function ji(N,R){return{version:N.version,file:N.file,names:N.names,sourceRoot:N.sourceRoot,sources:N.sources,sourcesContent:N.sourcesContent,mappings:R,ignoreList:N.ignoreList||N.x_google_ignoreList}}function xr(N,R,$,X){return{source:N,line:R,column:$,name:X}}function Ms(N,R){return{line:N,column:R}}function Jn(N,R,$,X,he){let le=ve(N,X,R,$);return Y?le=(he===Ht?F:G)(N,X,le):he===Ht&&le++,le===-1||le===N.length?-1:le}function xb(N,R,$,X,he){let le=Jn(N,R,$,X,Kt);if(!Y&&he===Ht&&le++,le===-1||le===N.length)return[];let De=Y?X:N[le][B];Y||(le=G(N,De,le));let Ye=F(N,De,le),we=[];for(;le<=Ye;le++){let Ge=N[le];we.push(Ms(Ge[Pe]+1,Ge[Ct]))}return we}function Sh(N,R,$,X,he,le){var De;if($--,$<0)throw new Error(dt);if(X<0)throw new Error(Bi);let{sources:Ye,resolvedSources:we}=N,Ge=Ye.indexOf(R);if(Ge===-1&&(Ge=we.indexOf(R)),Ge===-1)return le?[]:Ms(null,null);let rt=((De=N)._bySources||(De._bySources=Ue(ie(N),N._bySourceMemos=Ye.map(fe))))[Ge][$];if(rt==null)return le?[]:Ms(null,null);let gt=N._bySourceMemos[Ge];if(le)return xb(rt,gt,$,X,he);let Gt=Jn(rt,gt,$,X,he);if(Gt===-1)return Ms(null,null);let Ei=rt[Gt];return Ms(Ei[Pe]+1,Ei[Ct])}})});var nT=_((Xp,Hp)=>{(function(t,e,i){typeof Xp=="object"&&typeof Hp<"u"?e(Hp,Kp(),Jp()):typeof define=="function"&&define.amd?define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(i={exports:{}},t.sourcemapCodec,t.traceMapping),t.genMapping="default"in i.exports?i.exports.default:i.exports)})(Xp,function(t,e,i){"use strict";var r=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,o=(K,V)=>function(){return V||(0,K[a(K)[0]])((V={exports:{}}).exports,V),V.exports},u=(K,V)=>{for(var Z in V)s(K,Z,{get:V[Z],enumerable:!0})},f=(K,V,Z,ie)=>{if(V&&typeof V=="object"||typeof V=="function")for(let ye of a(V))!c.call(K,ye)&&ye!==Z&&s(K,ye,{get:()=>V[ye],enumerable:!(ie=n(V,ye))||ie.enumerable});return K},d=(K,V,Z)=>(Z=K!=null?r(l(K)):{},f(V||!K||!K.__esModule?s(Z,"default",{value:K,enumerable:!0}):Z,K)),m=K=>f(s({},"__esModule",{value:!0}),K),S=o({"umd:@jridgewell/sourcemap-codec"(K,V){V.exports=e}}),P=o({"umd:@jridgewell/trace-mapping"(K,V){V.exports=i}}),A={};u(A,{GenMapping:()=>pe,addMapping:()=>Y,addSegment:()=>Nt,allMappings:()=>Xe,fromMap:()=>Le,maybeAddMapping:()=>F,maybeAddSegment:()=>z,setIgnore:()=>fe,setSourceContent:()=>G,toDecodedMap:()=>ve,toEncodedMap:()=>Ue}),t.exports=m(A);var C=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function k(K){return K}function D(K,V){return K._indexes[V]}function L(K,V){let Z=D(K,V);if(Z!==void 0)return Z;let{array:ie,_indexes:ye}=K,Te=ie.push(V);return ye[V]=Te-1}function B(K,V){let Z=D(K,V);if(Z===void 0)return;let{array:ie,_indexes:ye}=K;for(let Te=Z+1;Te<ie.length;Te++){let Fe=ie[Te];ie[Te-1]=Fe,ye[Fe]--}ye[V]=void 0,ie.pop()}var U=d(S()),oe=d(P()),me=0,ee=1,Pe=2,Ct=3,ze=4,Ot=-1,pe=class{constructor({file:K,sourceRoot:V}={}){this._names=new C,this._sources=new C,this._sourcesContent=[],this._mappings=[],this.file=K,this.sourceRoot=V,this._ignoreList=new C}};function Je(K){return K}function Nt(K,V,Z,ie,ye,Te,Fe,Pt){return Me(!1,K,V,Z,ie,ye,Te,Fe,Pt)}function Y(K,V){return Kt(!1,K,V)}var z=(K,V,Z,ie,ye,Te,Fe,Pt)=>Me(!0,K,V,Z,ie,ye,Te,Fe,Pt),F=(K,V)=>Kt(!0,K,V);function G(K,V,Z){let{_sources:ie,_sourcesContent:ye}=K,Te=L(ie,V);ye[Te]=Z}function fe(K,V,Z=!0){let{_sources:ie,_sourcesContent:ye,_ignoreList:Te}=K,Fe=L(ie,V);Fe===ye.length&&(ye[Fe]=null),Z?L(Te,Fe):B(Te,Fe)}function ve(K){let{_mappings:V,_sources:Z,_sourcesContent:ie,_names:ye,_ignoreList:Te}=K;return it(V),{version:3,file:K.file||void 0,names:ye.array,sourceRoot:K.sourceRoot||void 0,sources:Z.array,sourcesContent:ie,mappings:V,ignoreList:Te.array}}function Ue(K){let V=ve(K);return Object.assign({},V,{mappings:(0,U.encode)(V.mappings)})}function Le(K){let V=new oe.TraceMap(K),Z=new pe({file:V.file,sourceRoot:V.sourceRoot});return dt(Z._names,V.names),dt(Z._sources,V.sources),Z._sourcesContent=V.sourcesContent||V.sources.map(()=>null),Z._mappings=(0,oe.decodedMappings)(V),V.ignoreList&&dt(Z._ignoreList,V.ignoreList),Z}function Xe(K){let V=[],{_mappings:Z,_sources:ie,_names:ye}=K;for(let Te=0;Te<Z.length;Te++){let Fe=Z[Te];for(let Pt=0;Pt<Fe.length;Pt++){let ti=Fe[Pt],Xr={line:Te+1,column:ti[me]},Hr,yr,Tr;ti.length!==1&&(Hr=ie.array[ti[ee]],yr={line:ti[Pe]+1,column:ti[Ct]},ti.length===5&&(Tr=ye.array[ti[ze]])),V.push({generated:Xr,source:Hr,original:yr,name:Tr})}}return V}function Me(K,V,Z,ie,ye,Te,Fe,Pt,ti){let{_mappings:Xr,_sources:Hr,_sourcesContent:yr,_names:Tr}=V,gr=He(Xr,Z),Gr=tt(gr,ie);if(!ye)return K&&Bi(gr,Gr)?void 0:Ae(gr,Gr,[ie]);let ji=L(Hr,ye),xr=Pt?L(Tr,Pt):Ot;if(ji===yr.length&&(yr[ji]=ti??null),!(K&&Ht(gr,Gr,ji,Te,Fe,xr)))return Ae(gr,Gr,Pt?[ie,ji,Te,Fe,xr]:[ie,ji,Te,Fe])}function Re(K){}function He(K,V){for(let Z=K.length;Z<=V;Z++)K[Z]=[];return K[V]}function tt(K,V){let Z=K.length;for(let ie=Z-1;ie>=0;Z=ie--){let ye=K[ie];if(V>=ye[me])break}return Z}function Ae(K,V,Z){for(let ie=K.length;ie>V;ie--)K[ie]=K[ie-1];K[V]=Z}function it(K){let{length:V}=K,Z=V;for(let ie=Z-1;ie>=0&&!(K[ie].length>0);Z=ie,ie--);Z<V&&(K.length=Z)}function dt(K,V){for(let Z=0;Z<V.length;Z++)L(K,V[Z])}function Bi(K,V){return V===0?!0:K[V-1].length===1}function Ht(K,V,Z,ie,ye,Te){if(V===0)return!1;let Fe=K[V-1];return Fe.length===1?!1:Z===Fe[ee]&&ie===Fe[Pe]&&ye===Fe[Ct]&&Te===(Fe.length===5?Fe[ze]:Ot)}function Kt(K,V,Z){let{generated:ie,source:ye,original:Te,name:Fe,content:Pt}=Z;return ye?Me(K,V,ie.line-1,ie.column,ye,Te.line-1,Te.column,Fe,Pt):Me(K,V,ie.line-1,ie.column,null,null,null,null,null)}})});var aT=_(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;var ur=nT(),Gp=Jp(),Qp=class{constructor(e,i){var r;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;let s=this._map=new ur.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=(r=e.sourceFileName)==null?void 0:r.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new Gp.TraceMap(e.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let l=0;l<a.length;l++){var n;(0,ur.setSourceContent)(s,a[l],(n=this._inputMap.sourcesContent)==null?void 0:n[l])}}if(typeof i=="string"&&!e.inputSourceMap)(0,ur.setSourceContent)(s,this._sourceFileName,i);else if(typeof i=="object")for(let a of Object.keys(i))(0,ur.setSourceContent)(s,a.replace(/\\/g,"/"),i[a])}get(){return(0,ur.toEncodedMap)(this._map)}getDecoded(){return(0,ur.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,ur.allMappings)(this._map))}mark(e,i,r,s,n,a){var l;this._rawMappings=void 0;let c;if(i!=null)if(this._inputMap){if(c=(0,Gp.originalPositionFor)(this._inputMap,{line:i,column:r}),!c.name&&n){let o=(0,Gp.originalPositionFor)(this._inputMap,n);o.name&&(s=o.name)}}else c={source:a?.replace(/\\/g,"/")||this._sourceFileName,line:i,column:r};(0,ur.maybeAddMapping)(this._map,{name:s,generated:e,source:(l=c)==null?void 0:l.source,original:c})}};So.default=Qp});var oT=_(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var Zp=class{constructor(e,i){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=i;for(let r=0;r<64;r++)this._fastIndentations.push(i.repeat(r));this._allocQueue()}_allocQueue(){let e=this._queue;for(let i=0;i<16;i++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,i,r,s,n){let a=this._queueCursor;a===this._queue.length&&this._allocQueue();let l=this._queue[a];l.char=e,l.repeat=i,l.line=r,l.column=s,l.filename=n,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let e=this._map,i={code:(this._buf+this._str).trimRight(),decodedMap:e?.getDecoded(),get __mergedMap(){return this.map},get map(){let r=e?e.get():null;return i.map=r,r},set map(r){Object.defineProperty(i,"map",{value:r,writable:!0})},get rawMappings(){let r=e?.getRawMappings();return i.rawMappings=r,r},set rawMappings(r){Object.defineProperty(i,"rawMappings",{value:r,writable:!0})}};return i}append(e,i){this._flush(),this._append(e,this._sourcePosition,i)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(e===10)for(;this._queueCursor!==0;){let r=this._queue[this._queueCursor-1].char;if(r!==32&&r!==9)break;this._queueCursor--}let i=this._sourcePosition;this._pushQueue(e,1,i.line,i.column,i.filename)}queueIndentation(e){e!==0&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){let e=this._queueCursor,i=this._queue;for(let r=0;r<e;r++){let s=i[r];this._appendChar(s.char,s.repeat,s)}this._queueCursor=0}_appendChar(e,i,r){if(this._last=e,e===-1){let s=this._fastIndentations[i];s!==void 0?this._str+=s:this._str+=i>1?this._indentChar.repeat(i):this._indentChar}else this._str+=i>1?String.fromCharCode(e).repeat(i):String.fromCharCode(e);e!==10?(this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename),this._position.column+=i):(this._position.line++,this._position.column=0),this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0)}_append(e,i,r){let s=e.length,n=this._position;if(this._last=e.charCodeAt(s-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!r&&!this._map){n.column+=s;return}let{column:a,identifierName:l,identifierNamePos:c,filename:o}=i,u=i.line;(l!=null||c!=null)&&this._canMarkIdName&&(i.identifierName=void 0,i.identifierNamePos=void 0);let f=e.indexOf(`
21
+ Expected ${i.length+1} quasis but got ${t.quasis.length}`)})}}});W("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("boolean"),Object.assign(function(t,e,i){if(i&&!t.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,E.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,E.assertNodeType)("Expression")}}});W("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,E.assertNodeType)("Expression")}}});W("Import",{aliases:["Expression"]});W("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,E.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});W("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,E.assertNodeType)("Identifier")}}});W("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression","LVal"],fields:{object:{validate:(0,E.assertNodeType)("Expression")},property:{validate:function(){let t=(0,E.assertNodeType)("Identifier"),e=(0,E.assertNodeType)("Expression");return Object.assign(function(r,s,n){(r.computed?e:t)(r,s,n)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("boolean"),(0,E.assertOptionalChainStart)()):(0,E.assertValueType)("boolean")}}});W("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,E.assertNodeType)("Expression")},arguments:(0,E.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("boolean"),(0,E.assertOptionalChainStart)()):(0,E.assertValueType)("boolean")},typeArguments:{validate:(0,E.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,E.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});W("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Ga(),{value:{validate:(0,E.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,E.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,E.assertValueType)("boolean"),optional:!0},declare:{validate:(0,E.assertValueType)("boolean"),optional:!0},variance:{validate:(0,E.assertNodeType)("Variance"),optional:!0}})});W("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},Ga(),{key:{validate:(0,E.chain)(function(){let t=(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),e=(0,E.assertNodeType)("Expression");return function(i,r,s){(i.computed?e:t)(i,r,s)}}(),(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,E.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,E.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,E.assertValueType)("boolean"),optional:!0},declare:{validate:(0,E.assertValueType)("boolean"),optional:!0},variance:{validate:(0,E.assertNodeType)("Variance"),optional:!0}})});W("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,E.assertNodeType)("PrivateName")},value:{validate:(0,E.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,E.assertValueType)("boolean"),default:!1},readonly:{validate:(0,E.assertValueType)("boolean"),optional:!0},optional:{validate:(0,E.assertValueType)("boolean"),optional:!0},definite:{validate:(0,E.assertValueType)("boolean"),optional:!0},variance:{validate:(0,E.assertNodeType)("Variance"),optional:!0}}});W("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Xc(),Nr(),{kind:{validate:(0,E.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,E.assertNodeType)("PrivateName")},body:{validate:(0,E.assertNodeType)("BlockStatement")}})});W("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,E.assertNodeType)("Identifier")}}});W("StaticBlock",{visitor:["body"],fields:{body:(0,E.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});W("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,E.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,E.assertNodeType)("StringLiteral")}}})});var Xm=_(()=>{"use strict";var Jm=bn(),O=_i(),se=(0,O.defineAliasedType)("Flow"),Hc=t=>{let e=t==="DeclareClass";se(t,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...e?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),extends:(0,O.validateOptional)((0,O.arrayOfType)("InterfaceExtends"))},e?{mixins:(0,O.validateOptional)((0,O.arrayOfType)("InterfaceExtends")),implements:(0,O.validateOptional)((0,O.arrayOfType)("ClassImplements"))}:{},{body:(0,O.validateType)("ObjectTypeAnnotation")})})};se("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,O.validateType)("FlowType")}});se("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterInstantiation")}});Hc("DeclareClass");se("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),predicate:(0,O.validateOptionalType)("DeclaredPredicate")}});Hc("DeclareInterface");se("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier","StringLiteral"),body:(0,O.validateType)("BlockStatement"),kind:(0,O.validateOptional)((0,O.assertOneOf)("CommonJS","ES"))}});se("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,O.validateType)("TypeAnnotation")}});se("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),right:(0,O.validateType)("FlowType")}});se("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,O.validateOptionalType)("FlowType"),impltype:(0,O.validateOptionalType)("FlowType")}});se("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier")}});se("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,O.validateOptionalType)("Flow"),specifiers:(0,O.validateOptional)((0,O.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,O.validateOptionalType)("StringLiteral"),default:(0,O.validateOptional)((0,O.assertValueType)("boolean"))},Jm.importAttributes)});se("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,O.validateType)("StringLiteral"),exportKind:(0,O.validateOptional)((0,O.assertOneOf)("type","value"))},Jm.importAttributes)});se("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,O.validateType)("Flow")}});se("ExistsTypeAnnotation",{aliases:["FlowType"]});se("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),params:(0,O.validateArrayOfType)("FunctionTypeParam"),rest:(0,O.validateOptionalType)("FunctionTypeParam"),this:(0,O.validateOptionalType)("FunctionTypeParam"),returnType:(0,O.validateType)("FlowType")}});se("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,O.validateOptionalType)("Identifier"),typeAnnotation:(0,O.validateType)("FlowType"),optional:(0,O.validateOptional)((0,O.assertValueType)("boolean"))}});se("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,O.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterInstantiation")}});se("InferredPredicate",{aliases:["FlowPredicate"]});se("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,O.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterInstantiation")}});Hc("InterfaceDeclaration");se("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,O.validateOptional)((0,O.arrayOfType)("InterfaceExtends")),body:(0,O.validateType)("ObjectTypeAnnotation")}});se("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});se("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,O.validateType)("FlowType")}});se("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,O.validate)((0,O.assertValueType)("number"))}});se("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,O.validate)((0,O.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,O.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,O.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,O.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,O.assertValueType)("boolean"),default:!1},inexact:(0,O.validateOptional)((0,O.assertValueType)("boolean"))}});se("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,O.validateType)("Identifier"),value:(0,O.validateType)("FlowType"),optional:(0,O.validate)((0,O.assertValueType)("boolean")),static:(0,O.validate)((0,O.assertValueType)("boolean")),method:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,O.validateType)("FlowType"),static:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,O.validateOptionalType)("Identifier"),key:(0,O.validateType)("FlowType"),value:(0,O.validateType)("FlowType"),static:(0,O.validate)((0,O.assertValueType)("boolean")),variance:(0,O.validateOptionalType)("Variance")}});se("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,O.validateType)("Identifier","StringLiteral"),value:(0,O.validateType)("FlowType"),kind:(0,O.validate)((0,O.assertOneOf)("init","get","set")),static:(0,O.validate)((0,O.assertValueType)("boolean")),proto:(0,O.validate)((0,O.assertValueType)("boolean")),optional:(0,O.validate)((0,O.assertValueType)("boolean")),variance:(0,O.validateOptionalType)("Variance"),method:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,O.validateType)("FlowType")}});se("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,O.validateOptionalType)("FlowType"),impltype:(0,O.validateType)("FlowType")}});se("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,O.validateType)("Identifier"),qualification:(0,O.validateType)("Identifier","QualifiedTypeIdentifier")}});se("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,O.validate)((0,O.assertValueType)("string"))}});se("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});se("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,O.validateType)("FlowType")}});se("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TypeParameterDeclaration"),right:(0,O.validateType)("FlowType")}});se("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("FlowType")}});se("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,O.validateType)("Expression"),typeAnnotation:(0,O.validateType)("TypeAnnotation")}});se("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,O.validate)((0,O.assertValueType)("string")),bound:(0,O.validateOptionalType)("TypeAnnotation"),default:(0,O.validateOptionalType)("FlowType"),variance:(0,O.validateOptionalType)("Variance")}});se("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,O.validate)((0,O.arrayOfType)("TypeParameter"))}});se("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});se("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,O.validate)((0,O.arrayOfType)("FlowType"))}});se("Variance",{builder:["kind"],fields:{kind:(0,O.validate)((0,O.assertOneOf)("minus","plus"))}});se("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});se("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,O.validateType)("Identifier"),body:(0,O.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});se("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,O.validate)((0,O.assertValueType)("boolean")),members:(0,O.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,O.validate)((0,O.assertValueType)("boolean")),members:(0,O.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,O.validate)((0,O.assertValueType)("boolean")),members:(0,O.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,O.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,O.validate)((0,O.assertValueType)("boolean"))}});se("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,O.validateType)("Identifier"),init:(0,O.validateType)("BooleanLiteral")}});se("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,O.validateType)("Identifier"),init:(0,O.validateType)("NumericLiteral")}});se("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,O.validateType)("Identifier"),init:(0,O.validateType)("StringLiteral")}});se("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,O.validateType)("Identifier")}});se("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,O.validateType)("FlowType"),indexType:(0,O.validateType)("FlowType")}});se("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,O.validateType)("FlowType"),indexType:(0,O.validateType)("FlowType"),optional:(0,O.validate)((0,O.assertValueType)("boolean"))}})});var Hm=_(()=>{"use strict";var st=_i(),jt=(0,st.defineAliasedType)("JSX");jt("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,st.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,st.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});jt("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,st.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});jt("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,st.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,st.assertNodeType)("JSXClosingElement")},children:(0,st.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,st.assertValueType)("boolean"),optional:!0}})});jt("JSXEmptyExpression",{});jt("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,st.assertNodeType)("Expression","JSXEmptyExpression")}}});jt("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,st.assertNodeType)("Expression")}}});jt("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,st.assertValueType)("string")}}});jt("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,st.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,st.assertNodeType)("JSXIdentifier")}}});jt("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,st.assertNodeType)("JSXIdentifier")},name:{validate:(0,st.assertNodeType)("JSXIdentifier")}}});jt("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,st.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,st.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,st.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,st.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});jt("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,st.assertNodeType)("Expression")}}});jt("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,st.assertValueType)("string")}}});jt("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,st.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,st.assertNodeType)("JSXClosingFragment")},children:(0,st.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});jt("JSXOpeningFragment",{aliases:["Immutable"]});jt("JSXClosingFragment",{aliases:["Immutable"]})});var Zc=_(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.PLACEHOLDERS_FLIPPED_ALIAS=ar.PLACEHOLDERS_ALIAS=ar.PLACEHOLDERS=void 0;var s_=_i(),n_=ar.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Qc=ar.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let t of n_){let e=s_.ALIAS_KEYS[t];e!=null&&e.length&&(Qc[t]=e)}var Gc=ar.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(Qc).forEach(t=>{Qc[t].forEach(e=>{hasOwnProperty.call(Gc,e)||(Gc[e]=[]),Gc[e].push(t)})})});var Gm=_(()=>{"use strict";var Qa=_i(),a_=Zc(),o_=bn(),eu=(0,Qa.defineAliasedType)("Miscellaneous");eu("Noop",{visitor:[]});eu("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,Qa.assertNodeType)("Identifier")},expectedNode:{validate:(0,Qa.assertOneOf)(...a_.PLACEHOLDERS)}},(0,o_.patternLikeCommon)())});eu("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,Qa.assertValueType)("string")}}})});var Qm=_(()=>{"use strict";var Qe=_i();(0,Qe.default)("ArgumentPlaceholder",{});(0,Qe.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,Qe.assertNodeType)("Expression")},callee:{validate:(0,Qe.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,Qe.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,Qe.assertNodeType)("Expression")}}});(0,Qe.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,Qe.assertNodeType)("BlockStatement")},async:{validate:(0,Qe.assertValueType)("boolean"),default:!1}}});(0,Qe.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,Qe.assertNodeType)("Identifier")}}});(0,Qe.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,Qe.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,Qe.default)("TupleExpression",{fields:{elements:{validate:(0,Qe.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,Qe.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,Qe.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,Qe.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,Qe.assertNodeType)("Program")}},aliases:["Expression"]});(0,Qe.default)("TopicReference",{aliases:["Expression"]});(0,Qe.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,Qe.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Qe.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,Qe.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Qe.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,Qe.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var ay=_(()=>{"use strict";var j=_i(),Zm=bn(),l_=ys(),pe=(0,j.defineAliasedType)("TypeScript"),Yt=(0,j.assertValueType)("boolean"),ey=()=>({returnType:{validate:(0,j.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,j.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});pe("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,j.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,j.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,j.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,j.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,j.arrayOfType)("Decorator"),optional:!0}}});pe("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,Zm.functionDeclarationCommon)(),ey())});pe("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,Zm.classMethodOrDeclareMethodCommon)(),ey())});pe("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,j.validateType)("TSEntityName"),right:(0,j.validateType)("Identifier")}});var Za=()=>({typeParameters:(0,j.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,j.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,j.validateOptionalType)("TSTypeAnnotation")}),ty={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:Za()};pe("TSCallSignatureDeclaration",ty);pe("TSConstructSignatureDeclaration",ty);var iy=()=>({key:(0,j.validateType)("Expression"),computed:{default:!1},optional:(0,j.validateOptional)(Yt)});pe("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},iy(),{readonly:(0,j.validateOptional)(Yt),typeAnnotation:(0,j.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,j.assertOneOf)("get","set")}})});pe("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},Za(),iy(),{kind:{validate:(0,j.assertOneOf)("method","get","set")}})});pe("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,j.validateOptional)(Yt),static:(0,j.validateOptional)(Yt),parameters:(0,j.validateArrayOfType)("Identifier"),typeAnnotation:(0,j.validateOptionalType)("TSTypeAnnotation")}});var c_=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let t of c_)pe(t,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});pe("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var ry={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};pe("TSFunctionType",Object.assign({},ry,{fields:Za()}));pe("TSConstructorType",Object.assign({},ry,{fields:Object.assign({},Za(),{abstract:(0,j.validateOptional)(Yt)})}));pe("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,j.validateType)("TSEntityName"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation")}});pe("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,j.validateType)("Identifier","TSThisType"),typeAnnotation:(0,j.validateOptionalType)("TSTypeAnnotation"),asserts:(0,j.validateOptional)(Yt)}});pe("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,j.validateType)("TSEntityName","TSImportType"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation")}});pe("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,j.validateArrayOfType)("TSTypeElement")}});pe("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,j.validateType)("TSType")}});pe("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,j.validateArrayOfType)("TSType","TSNamedTupleMember")}});pe("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,j.validateType)("TSType")}});pe("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,j.validateType)("TSType")}});pe("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,j.validateType)("Identifier"),optional:{validate:Yt,default:!1},elementType:(0,j.validateType)("TSType")}});var sy={aliases:["TSType"],visitor:["types"],fields:{types:(0,j.validateArrayOfType)("TSType")}};pe("TSUnionType",sy);pe("TSIntersectionType",sy);pe("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,j.validateType)("TSType"),extendsType:(0,j.validateType)("TSType"),trueType:(0,j.validateType)("TSType"),falseType:(0,j.validateType)("TSType")}});pe("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,j.validateType)("TSTypeParameter")}});pe("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,j.validateType)("TSType")}});pe("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,j.assertValueType)("string")},typeAnnotation:(0,j.validateType)("TSType")}});pe("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,j.validateType)("TSType"),indexType:(0,j.validateType)("TSType")}});pe("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,j.validateType)("TSTypeParameter")},{readonly:(0,j.validateOptional)((0,j.assertOneOf)(!0,!1,"+","-")),optional:(0,j.validateOptional)((0,j.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,j.validateOptionalType)("TSType"),nameType:(0,j.validateOptionalType)("TSType")})});pe("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,j.validateArrayOfType)("TemplateElement"),types:{validate:(0,j.chain)((0,j.assertValueType)("array"),(0,j.assertEach)((0,j.assertNodeType)("TSType")),function(t,e,i){if(t.quasis.length!==i.length+1)throw new TypeError(`Number of ${t.type} quasis should be exactly one more than the number of types.
22
+ Expected ${i.length+1} quasis but got ${t.quasis.length}`)})}}});pe("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let t=(0,j.assertNodeType)("NumericLiteral","BigIntLiteral"),e=(0,j.assertOneOf)("-"),i=(0,j.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function r(s,n,a){(0,l_.default)("UnaryExpression",a)?(e(a,"operator",a.operator),t(a,"argument",a.argument)):i(s,n,a)}return r.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],r}()}}});pe("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,j.validateType)("TSEntityName"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation")}});pe("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,j.validateOptional)(Yt),id:(0,j.validateType)("Identifier"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,j.validateOptional)((0,j.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,j.validateType)("TSInterfaceBody")}});pe("TSInterfaceBody",{visitor:["body"],fields:{body:(0,j.validateArrayOfType)("TSTypeElement")}});pe("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,j.validateOptional)(Yt),id:(0,j.validateType)("Identifier"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,j.validateType)("TSType")}});pe("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,j.validateType)("Expression"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation")}});var ny={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,j.validateType)("Expression"),typeAnnotation:(0,j.validateType)("TSType")}};pe("TSAsExpression",ny);pe("TSSatisfiesExpression",ny);pe("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,j.validateType)("TSType"),expression:(0,j.validateType)("Expression")}});pe("TSEnumBody",{visitor:["members"],fields:{members:(0,j.validateArrayOfType)("TSEnumMember")}});pe("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,j.validateOptional)(Yt),const:(0,j.validateOptional)(Yt),id:(0,j.validateType)("Identifier"),members:(0,j.validateArrayOfType)("TSEnumMember"),initializer:(0,j.validateOptionalType)("Expression"),body:(0,j.validateOptionalType)("TSEnumBody")}});pe("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,j.validateType)("Identifier","StringLiteral"),initializer:(0,j.validateOptionalType)("Expression")}});pe("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,j.assertOneOf)("global","module","namespace")},declare:(0,j.validateOptional)(Yt)},{global:(0,j.validateOptional)(Yt)},{id:(0,j.validateType)("Identifier","StringLiteral"),body:(0,j.validateType)("TSModuleBlock","TSModuleDeclaration")})});pe("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,j.validateArrayOfType)("Statement")}});pe("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,j.validateType)("StringLiteral"),qualifier:(0,j.validateOptionalType)("TSEntityName"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,j.assertNodeType)("ObjectExpression"),optional:!0}}});pe("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,j.validate)(Yt)},{id:(0,j.validateType)("Identifier"),moduleReference:(0,j.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,j.assertOneOf)("type","value"),optional:!0}})});pe("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,j.validateType)("StringLiteral")}});pe("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,j.validateType)("Expression")}});pe("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,j.validateType)("Expression")}});pe("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,j.validateType)("Identifier")}});pe("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,j.assertNodeType)("TSType")}}});pe("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,j.validateArrayOfType)("TSType")}});pe("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,j.validateArrayOfType)("TSTypeParameter")}});pe("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,j.assertValueType)("string")},in:{validate:(0,j.assertValueType)("boolean"),optional:!0},out:{validate:(0,j.assertValueType)("boolean"),optional:!0},const:{validate:(0,j.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,j.assertNodeType)("TSType"),optional:!0},default:{validate:(0,j.assertNodeType)("TSType"),optional:!0}}})});var oy=_(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.DEPRECATED_ALIASES=void 0;var cZ=eo.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var ai=_(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Object.defineProperty(Rt,"ALIAS_KEYS",{enumerable:!0,get:function(){return zt.ALIAS_KEYS}});Object.defineProperty(Rt,"BUILDER_KEYS",{enumerable:!0,get:function(){return zt.BUILDER_KEYS}});Object.defineProperty(Rt,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return tu.DEPRECATED_ALIASES}});Object.defineProperty(Rt,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return zt.DEPRECATED_KEYS}});Object.defineProperty(Rt,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return zt.FLIPPED_ALIAS_KEYS}});Object.defineProperty(Rt,"NODE_FIELDS",{enumerable:!0,get:function(){return zt.NODE_FIELDS}});Object.defineProperty(Rt,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return zt.NODE_PARENT_VALIDATIONS}});Object.defineProperty(Rt,"PLACEHOLDERS",{enumerable:!0,get:function(){return iu.PLACEHOLDERS}});Object.defineProperty(Rt,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return iu.PLACEHOLDERS_ALIAS}});Object.defineProperty(Rt,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return iu.PLACEHOLDERS_FLIPPED_ALIAS}});Rt.TYPES=void 0;Object.defineProperty(Rt,"VISITOR_KEYS",{enumerable:!0,get:function(){return zt.VISITOR_KEYS}});bn();Xm();Hm();Gm();Qm();ay();var zt=_i(),iu=Zc(),tu=oy();Object.keys(tu.DEPRECATED_ALIASES).forEach(t=>{zt.FLIPPED_ALIAS_KEYS[t]=zt.FLIPPED_ALIAS_KEYS[tu.DEPRECATED_ALIASES[t]]});for(let{types:t,set:e}of zt.allExpandedTypes)for(let i of t){let r=zt.FLIPPED_ALIAS_KEYS[i];r?r.forEach(e.add,e):e.add(i)}var pZ=Rt.TYPES=[].concat(Object.keys(zt.VISITOR_KEYS),Object.keys(zt.FLIPPED_ALIAS_KEYS),Object.keys(zt.DEPRECATED_KEYS))});var Ha=_(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.default=u_;Es.validateChild=cy;Es.validateField=ly;Es.validateInternal=p_;var Sn=ai();function u_(t,e,i){if(!t)return;let r=Sn.NODE_FIELDS[t.type];if(!r)return;let s=r[e];ly(t,e,i,s),cy(t,e,i)}function p_(t,e,i,r,s){if(t!=null&&t.validate&&!(t.optional&&r==null)&&(t.validate(e,i,r),s)){var n;let a=r.type;if(a==null)return;(n=Sn.NODE_PARENT_VALIDATIONS[a])==null||n.call(Sn.NODE_PARENT_VALIDATIONS,e,i,r)}}function ly(t,e,i,r){r!=null&&r.validate&&(r.optional&&i==null||r.validate(t,e,i))}function cy(t,e,i){var r;let s=i?.type;s!=null&&((r=Sn.NODE_PARENT_VALIDATIONS[s])==null||r.call(Sn.NODE_PARENT_VALIDATIONS,t,e,i))}});var ru=_(y=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});y.anyTypeAnnotation=WO;y.argumentPlaceholder=b2;y.arrayExpression=m_;y.arrayPattern=uO;y.arrayTypeAnnotation=YO;y.arrowFunctionExpression=pO;y.assignmentExpression=y_;y.assignmentPattern=cO;y.awaitExpression=DO;y.bigIntLiteral=d_;y.binaryExpression=T_;y.bindExpression=S2;y.blockStatement=S_;y.booleanLiteral=q_;y.booleanLiteralTypeAnnotation=JO;y.booleanTypeAnnotation=zO;y.breakStatement=E_;y.callExpression=P_;y.catchClause=v_;y.classAccessorProperty=RO;y.classBody=fO;y.classDeclaration=dO;y.classExpression=hO;y.classImplements=HO;y.classMethod=wO;y.classPrivateMethod=qO;y.classPrivateProperty=$O;y.classProperty=jO;y.conditionalExpression=A_;y.continueStatement=w_;y.debuggerStatement=C_;y.decimalLiteral=C2;y.declareClass=GO;y.declareExportAllDeclaration=aN;y.declareExportDeclaration=nN;y.declareFunction=QO;y.declareInterface=ZO;y.declareModule=eN;y.declareModuleExports=tN;y.declareOpaqueType=rN;y.declareTypeAlias=iN;y.declareVariable=sN;y.declaredPredicate=oN;y.decorator=E2;y.directive=x_;y.directiveLiteral=b_;y.doExpression=P2;y.doWhileStatement=I_;y.emptyStatement=k_;y.emptyTypeAnnotation=gN;y.enumBooleanBody=YN;y.enumBooleanMember=HN;y.enumDeclaration=WN;y.enumDefaultedMember=ZN;y.enumNumberBody=zN;y.enumNumberMember=GN;y.enumStringBody=JN;y.enumStringMember=QN;y.enumSymbolBody=XN;y.existsTypeAnnotation=lN;y.exportAllDeclaration=mO;y.exportDefaultDeclaration=yO;y.exportDefaultSpecifier=v2;y.exportNamedDeclaration=TO;y.exportNamespaceSpecifier=MO;y.exportSpecifier=gO;y.expressionStatement=__;y.file=O_;y.forInStatement=N_;y.forOfStatement=xO;y.forStatement=D_;y.functionDeclaration=L_;y.functionExpression=M_;y.functionTypeAnnotation=cN;y.functionTypeParam=uN;y.genericTypeAnnotation=pN;y.identifier=F_;y.ifStatement=B_;y.import=LO;y.importAttribute=VO;y.importDeclaration=bO;y.importDefaultSpecifier=SO;y.importExpression=vO;y.importNamespaceSpecifier=EO;y.importSpecifier=PO;y.indexedAccessType=e2;y.inferredPredicate=fN;y.interfaceDeclaration=dN;y.interfaceExtends=hN;y.interfaceTypeAnnotation=mN;y.interpreterDirective=g_;y.intersectionTypeAnnotation=yN;y.jSXAttribute=y.jsxAttribute=i2;y.jSXClosingElement=y.jsxClosingElement=r2;y.jSXClosingFragment=y.jsxClosingFragment=y2;y.jSXElement=y.jsxElement=s2;y.jSXEmptyExpression=y.jsxEmptyExpression=n2;y.jSXExpressionContainer=y.jsxExpressionContainer=a2;y.jSXFragment=y.jsxFragment=d2;y.jSXIdentifier=y.jsxIdentifier=l2;y.jSXMemberExpression=y.jsxMemberExpression=c2;y.jSXNamespacedName=y.jsxNamespacedName=u2;y.jSXOpeningElement=y.jsxOpeningElement=p2;y.jSXOpeningFragment=y.jsxOpeningFragment=m2;y.jSXSpreadAttribute=y.jsxSpreadAttribute=f2;y.jSXSpreadChild=y.jsxSpreadChild=o2;y.jSXText=y.jsxText=h2;y.labeledStatement=j_;y.logicalExpression=U_;y.memberExpression=K_;y.metaProperty=AO;y.mixedTypeAnnotation=TN;y.moduleExpression=I2;y.newExpression=V_;y.noop=T2;y.nullLiteral=$_;y.nullLiteralTypeAnnotation=XO;y.nullableTypeAnnotation=xN;y.numberLiteral=zD;y.numberLiteralTypeAnnotation=bN;y.numberTypeAnnotation=SN;y.numericLiteral=uy;y.objectExpression=Y_;y.objectMethod=z_;y.objectPattern=CO;y.objectProperty=J_;y.objectTypeAnnotation=EN;y.objectTypeCallProperty=vN;y.objectTypeIndexer=AN;y.objectTypeInternalSlot=PN;y.objectTypeProperty=wN;y.objectTypeSpreadProperty=CN;y.opaqueType=IN;y.optionalCallExpression=BO;y.optionalIndexedAccessType=t2;y.optionalMemberExpression=FO;y.parenthesizedExpression=G_;y.pipelineBareFunction=O2;y.pipelinePrimaryTopicReference=N2;y.pipelineTopicExpression=_2;y.placeholder=g2;y.privateName=UO;y.program=W_;y.qualifiedTypeIdentifier=kN;y.recordExpression=A2;y.regExpLiteral=py;y.regexLiteral=JD;y.restElement=fy;y.restProperty=XD;y.returnStatement=X_;y.sequenceExpression=H_;y.spreadElement=hy;y.spreadProperty=HD;y.staticBlock=KO;y.stringLiteral=R_;y.stringLiteralTypeAnnotation=_N;y.stringTypeAnnotation=ON;y.super=IO;y.switchCase=Q_;y.switchStatement=Z_;y.symbolTypeAnnotation=NN;y.taggedTemplateExpression=kO;y.templateElement=_O;y.templateLiteral=OO;y.thisExpression=eO;y.thisTypeAnnotation=DN;y.throwStatement=tO;y.topicReference=k2;y.tryStatement=iO;y.tSAnyKeyword=y.tsAnyKeyword=K2;y.tSArrayType=y.tsArrayType=cD;y.tSAsExpression=y.tsAsExpression=kD;y.tSBigIntKeyword=y.tsBigIntKeyword=W2;y.tSBooleanKeyword=y.tsBooleanKeyword=V2;y.tSCallSignatureDeclaration=y.tsCallSignatureDeclaration=j2;y.tSConditionalType=y.tsConditionalType=yD;y.tSConstructSignatureDeclaration=y.tsConstructSignatureDeclaration=R2;y.tSConstructorType=y.tsConstructorType=sD;y.tSDeclareFunction=y.tsDeclareFunction=M2;y.tSDeclareMethod=y.tsDeclareMethod=F2;y.tSEnumBody=y.tsEnumBody=ND;y.tSEnumDeclaration=y.tsEnumDeclaration=DD;y.tSEnumMember=y.tsEnumMember=LD;y.tSExportAssignment=y.tsExportAssignment=qD;y.tSExpressionWithTypeArguments=y.tsExpressionWithTypeArguments=vD;y.tSExternalModuleReference=y.tsExternalModuleReference=RD;y.tSFunctionType=y.tsFunctionType=rD;y.tSImportEqualsDeclaration=y.tsImportEqualsDeclaration=jD;y.tSImportType=y.tsImportType=BD;y.tSIndexSignature=y.tsIndexSignature=U2;y.tSIndexedAccessType=y.tsIndexedAccessType=bD;y.tSInferType=y.tsInferType=TD;y.tSInstantiationExpression=y.tsInstantiationExpression=ID;y.tSInterfaceBody=y.tsInterfaceBody=wD;y.tSInterfaceDeclaration=y.tsInterfaceDeclaration=AD;y.tSIntersectionType=y.tsIntersectionType=mD;y.tSIntrinsicKeyword=y.tsIntrinsicKeyword=Y2;y.tSLiteralType=y.tsLiteralType=PD;y.tSMappedType=y.tsMappedType=SD;y.tSMethodSignature=y.tsMethodSignature=q2;y.tSModuleBlock=y.tsModuleBlock=FD;y.tSModuleDeclaration=y.tsModuleDeclaration=MD;y.tSNamedTupleMember=y.tsNamedTupleMember=hD;y.tSNamespaceExportDeclaration=y.tsNamespaceExportDeclaration=UD;y.tSNeverKeyword=y.tsNeverKeyword=z2;y.tSNonNullExpression=y.tsNonNullExpression=$D;y.tSNullKeyword=y.tsNullKeyword=J2;y.tSNumberKeyword=y.tsNumberKeyword=X2;y.tSObjectKeyword=y.tsObjectKeyword=H2;y.tSOptionalType=y.tsOptionalType=pD;y.tSParameterProperty=y.tsParameterProperty=L2;y.tSParenthesizedType=y.tsParenthesizedType=gD;y.tSPropertySignature=y.tsPropertySignature=$2;y.tSQualifiedName=y.tsQualifiedName=B2;y.tSRestType=y.tsRestType=fD;y.tSSatisfiesExpression=y.tsSatisfiesExpression=_D;y.tSStringKeyword=y.tsStringKeyword=G2;y.tSSymbolKeyword=y.tsSymbolKeyword=Q2;y.tSTemplateLiteralType=y.tsTemplateLiteralType=ED;y.tSThisType=y.tsThisType=iD;y.tSTupleType=y.tsTupleType=uD;y.tSTypeAliasDeclaration=y.tsTypeAliasDeclaration=CD;y.tSTypeAnnotation=y.tsTypeAnnotation=KD;y.tSTypeAssertion=y.tsTypeAssertion=OD;y.tSTypeLiteral=y.tsTypeLiteral=lD;y.tSTypeOperator=y.tsTypeOperator=xD;y.tSTypeParameter=y.tsTypeParameter=YD;y.tSTypeParameterDeclaration=y.tsTypeParameterDeclaration=WD;y.tSTypeParameterInstantiation=y.tsTypeParameterInstantiation=VD;y.tSTypePredicate=y.tsTypePredicate=aD;y.tSTypeQuery=y.tsTypeQuery=oD;y.tSTypeReference=y.tsTypeReference=nD;y.tSUndefinedKeyword=y.tsUndefinedKeyword=Z2;y.tSUnionType=y.tsUnionType=dD;y.tSUnknownKeyword=y.tsUnknownKeyword=eD;y.tSVoidKeyword=y.tsVoidKeyword=tD;y.tupleExpression=w2;y.tupleTypeAnnotation=LN;y.typeAlias=FN;y.typeAnnotation=BN;y.typeCastExpression=jN;y.typeParameter=RN;y.typeParameterDeclaration=$N;y.typeParameterInstantiation=qN;y.typeofTypeAnnotation=MN;y.unaryExpression=rO;y.unionTypeAnnotation=UN;y.updateExpression=sO;y.v8IntrinsicIdentifier=x2;y.variableDeclaration=nO;y.variableDeclarator=aO;y.variance=KN;y.voidPattern=D2;y.voidTypeAnnotation=VN;y.whileStatement=oO;y.withStatement=lO;y.yieldExpression=NO;var f_=Ha(),to=ms(),h_=_i(),{validateInternal:h}=f_,{NODE_FIELDS:I}=h_;function d_(t){typeof t=="bigint"&&(t=t.toString());let e={type:"BigIntLiteral",value:t},i=I.BigIntLiteral;return h(i.value,e,"value",t),e}function m_(t=[]){let e={type:"ArrayExpression",elements:t},i=I.ArrayExpression;return h(i.elements,e,"elements",t,1),e}function y_(t,e,i){let r={type:"AssignmentExpression",operator:t,left:e,right:i},s=I.AssignmentExpression;return h(s.operator,r,"operator",t),h(s.left,r,"left",e,1),h(s.right,r,"right",i,1),r}function T_(t,e,i){let r={type:"BinaryExpression",operator:t,left:e,right:i},s=I.BinaryExpression;return h(s.operator,r,"operator",t),h(s.left,r,"left",e,1),h(s.right,r,"right",i,1),r}function g_(t){let e={type:"InterpreterDirective",value:t},i=I.InterpreterDirective;return h(i.value,e,"value",t),e}function x_(t){let e={type:"Directive",value:t},i=I.Directive;return h(i.value,e,"value",t,1),e}function b_(t){let e={type:"DirectiveLiteral",value:t},i=I.DirectiveLiteral;return h(i.value,e,"value",t),e}function S_(t,e=[]){let i={type:"BlockStatement",body:t,directives:e},r=I.BlockStatement;return h(r.body,i,"body",t,1),h(r.directives,i,"directives",e,1),i}function E_(t=null){let e={type:"BreakStatement",label:t},i=I.BreakStatement;return h(i.label,e,"label",t,1),e}function P_(t,e){let i={type:"CallExpression",callee:t,arguments:e},r=I.CallExpression;return h(r.callee,i,"callee",t,1),h(r.arguments,i,"arguments",e,1),i}function v_(t=null,e){let i={type:"CatchClause",param:t,body:e},r=I.CatchClause;return h(r.param,i,"param",t,1),h(r.body,i,"body",e,1),i}function A_(t,e,i){let r={type:"ConditionalExpression",test:t,consequent:e,alternate:i},s=I.ConditionalExpression;return h(s.test,r,"test",t,1),h(s.consequent,r,"consequent",e,1),h(s.alternate,r,"alternate",i,1),r}function w_(t=null){let e={type:"ContinueStatement",label:t},i=I.ContinueStatement;return h(i.label,e,"label",t,1),e}function C_(){return{type:"DebuggerStatement"}}function I_(t,e){let i={type:"DoWhileStatement",test:t,body:e},r=I.DoWhileStatement;return h(r.test,i,"test",t,1),h(r.body,i,"body",e,1),i}function k_(){return{type:"EmptyStatement"}}function __(t){let e={type:"ExpressionStatement",expression:t},i=I.ExpressionStatement;return h(i.expression,e,"expression",t,1),e}function O_(t,e=null,i=null){let r={type:"File",program:t,comments:e,tokens:i},s=I.File;return h(s.program,r,"program",t,1),h(s.comments,r,"comments",e,1),h(s.tokens,r,"tokens",i),r}function N_(t,e,i){let r={type:"ForInStatement",left:t,right:e,body:i},s=I.ForInStatement;return h(s.left,r,"left",t,1),h(s.right,r,"right",e,1),h(s.body,r,"body",i,1),r}function D_(t=null,e=null,i=null,r){let s={type:"ForStatement",init:t,test:e,update:i,body:r},n=I.ForStatement;return h(n.init,s,"init",t,1),h(n.test,s,"test",e,1),h(n.update,s,"update",i,1),h(n.body,s,"body",r,1),s}function L_(t=null,e,i,r=!1,s=!1){let n={type:"FunctionDeclaration",id:t,params:e,body:i,generator:r,async:s},a=I.FunctionDeclaration;return h(a.id,n,"id",t,1),h(a.params,n,"params",e,1),h(a.body,n,"body",i,1),h(a.generator,n,"generator",r),h(a.async,n,"async",s),n}function M_(t=null,e,i,r=!1,s=!1){let n={type:"FunctionExpression",id:t,params:e,body:i,generator:r,async:s},a=I.FunctionExpression;return h(a.id,n,"id",t,1),h(a.params,n,"params",e,1),h(a.body,n,"body",i,1),h(a.generator,n,"generator",r),h(a.async,n,"async",s),n}function F_(t){let e={type:"Identifier",name:t},i=I.Identifier;return h(i.name,e,"name",t),e}function B_(t,e,i=null){let r={type:"IfStatement",test:t,consequent:e,alternate:i},s=I.IfStatement;return h(s.test,r,"test",t,1),h(s.consequent,r,"consequent",e,1),h(s.alternate,r,"alternate",i,1),r}function j_(t,e){let i={type:"LabeledStatement",label:t,body:e},r=I.LabeledStatement;return h(r.label,i,"label",t,1),h(r.body,i,"body",e,1),i}function R_(t){let e={type:"StringLiteral",value:t},i=I.StringLiteral;return h(i.value,e,"value",t),e}function uy(t){let e={type:"NumericLiteral",value:t},i=I.NumericLiteral;return h(i.value,e,"value",t),e}function $_(){return{type:"NullLiteral"}}function q_(t){let e={type:"BooleanLiteral",value:t},i=I.BooleanLiteral;return h(i.value,e,"value",t),e}function py(t,e=""){let i={type:"RegExpLiteral",pattern:t,flags:e},r=I.RegExpLiteral;return h(r.pattern,i,"pattern",t),h(r.flags,i,"flags",e),i}function U_(t,e,i){let r={type:"LogicalExpression",operator:t,left:e,right:i},s=I.LogicalExpression;return h(s.operator,r,"operator",t),h(s.left,r,"left",e,1),h(s.right,r,"right",i,1),r}function K_(t,e,i=!1,r=null){let s={type:"MemberExpression",object:t,property:e,computed:i,optional:r},n=I.MemberExpression;return h(n.object,s,"object",t,1),h(n.property,s,"property",e,1),h(n.computed,s,"computed",i),h(n.optional,s,"optional",r),s}function V_(t,e){let i={type:"NewExpression",callee:t,arguments:e},r=I.NewExpression;return h(r.callee,i,"callee",t,1),h(r.arguments,i,"arguments",e,1),i}function W_(t,e=[],i="script",r=null){let s={type:"Program",body:t,directives:e,sourceType:i,interpreter:r},n=I.Program;return h(n.body,s,"body",t,1),h(n.directives,s,"directives",e,1),h(n.sourceType,s,"sourceType",i),h(n.interpreter,s,"interpreter",r,1),s}function Y_(t){let e={type:"ObjectExpression",properties:t},i=I.ObjectExpression;return h(i.properties,e,"properties",t,1),e}function z_(t="method",e,i,r,s=!1,n=!1,a=!1){let l={type:"ObjectMethod",kind:t,key:e,params:i,body:r,computed:s,generator:n,async:a},c=I.ObjectMethod;return h(c.kind,l,"kind",t),h(c.key,l,"key",e,1),h(c.params,l,"params",i,1),h(c.body,l,"body",r,1),h(c.computed,l,"computed",s),h(c.generator,l,"generator",n),h(c.async,l,"async",a),l}function J_(t,e,i=!1,r=!1,s=null){let n={type:"ObjectProperty",key:t,value:e,computed:i,shorthand:r,decorators:s},a=I.ObjectProperty;return h(a.key,n,"key",t,1),h(a.value,n,"value",e,1),h(a.computed,n,"computed",i),h(a.shorthand,n,"shorthand",r),h(a.decorators,n,"decorators",s,1),n}function fy(t){let e={type:"RestElement",argument:t},i=I.RestElement;return h(i.argument,e,"argument",t,1),e}function X_(t=null){let e={type:"ReturnStatement",argument:t},i=I.ReturnStatement;return h(i.argument,e,"argument",t,1),e}function H_(t){let e={type:"SequenceExpression",expressions:t},i=I.SequenceExpression;return h(i.expressions,e,"expressions",t,1),e}function G_(t){let e={type:"ParenthesizedExpression",expression:t},i=I.ParenthesizedExpression;return h(i.expression,e,"expression",t,1),e}function Q_(t=null,e){let i={type:"SwitchCase",test:t,consequent:e},r=I.SwitchCase;return h(r.test,i,"test",t,1),h(r.consequent,i,"consequent",e,1),i}function Z_(t,e){let i={type:"SwitchStatement",discriminant:t,cases:e},r=I.SwitchStatement;return h(r.discriminant,i,"discriminant",t,1),h(r.cases,i,"cases",e,1),i}function eO(){return{type:"ThisExpression"}}function tO(t){let e={type:"ThrowStatement",argument:t},i=I.ThrowStatement;return h(i.argument,e,"argument",t,1),e}function iO(t,e=null,i=null){let r={type:"TryStatement",block:t,handler:e,finalizer:i},s=I.TryStatement;return h(s.block,r,"block",t,1),h(s.handler,r,"handler",e,1),h(s.finalizer,r,"finalizer",i,1),r}function rO(t,e,i=!0){let r={type:"UnaryExpression",operator:t,argument:e,prefix:i},s=I.UnaryExpression;return h(s.operator,r,"operator",t),h(s.argument,r,"argument",e,1),h(s.prefix,r,"prefix",i),r}function sO(t,e,i=!1){let r={type:"UpdateExpression",operator:t,argument:e,prefix:i},s=I.UpdateExpression;return h(s.operator,r,"operator",t),h(s.argument,r,"argument",e,1),h(s.prefix,r,"prefix",i),r}function nO(t,e){let i={type:"VariableDeclaration",kind:t,declarations:e},r=I.VariableDeclaration;return h(r.kind,i,"kind",t),h(r.declarations,i,"declarations",e,1),i}function aO(t,e=null){let i={type:"VariableDeclarator",id:t,init:e},r=I.VariableDeclarator;return h(r.id,i,"id",t,1),h(r.init,i,"init",e,1),i}function oO(t,e){let i={type:"WhileStatement",test:t,body:e},r=I.WhileStatement;return h(r.test,i,"test",t,1),h(r.body,i,"body",e,1),i}function lO(t,e){let i={type:"WithStatement",object:t,body:e},r=I.WithStatement;return h(r.object,i,"object",t,1),h(r.body,i,"body",e,1),i}function cO(t,e){let i={type:"AssignmentPattern",left:t,right:e},r=I.AssignmentPattern;return h(r.left,i,"left",t,1),h(r.right,i,"right",e,1),i}function uO(t){let e={type:"ArrayPattern",elements:t},i=I.ArrayPattern;return h(i.elements,e,"elements",t,1),e}function pO(t,e,i=!1){let r={type:"ArrowFunctionExpression",params:t,body:e,async:i,expression:null},s=I.ArrowFunctionExpression;return h(s.params,r,"params",t,1),h(s.body,r,"body",e,1),h(s.async,r,"async",i),r}function fO(t){let e={type:"ClassBody",body:t},i=I.ClassBody;return h(i.body,e,"body",t,1),e}function hO(t=null,e=null,i,r=null){let s={type:"ClassExpression",id:t,superClass:e,body:i,decorators:r},n=I.ClassExpression;return h(n.id,s,"id",t,1),h(n.superClass,s,"superClass",e,1),h(n.body,s,"body",i,1),h(n.decorators,s,"decorators",r,1),s}function dO(t=null,e=null,i,r=null){let s={type:"ClassDeclaration",id:t,superClass:e,body:i,decorators:r},n=I.ClassDeclaration;return h(n.id,s,"id",t,1),h(n.superClass,s,"superClass",e,1),h(n.body,s,"body",i,1),h(n.decorators,s,"decorators",r,1),s}function mO(t){let e={type:"ExportAllDeclaration",source:t},i=I.ExportAllDeclaration;return h(i.source,e,"source",t,1),e}function yO(t){let e={type:"ExportDefaultDeclaration",declaration:t},i=I.ExportDefaultDeclaration;return h(i.declaration,e,"declaration",t,1),e}function TO(t=null,e=[],i=null){let r={type:"ExportNamedDeclaration",declaration:t,specifiers:e,source:i},s=I.ExportNamedDeclaration;return h(s.declaration,r,"declaration",t,1),h(s.specifiers,r,"specifiers",e,1),h(s.source,r,"source",i,1),r}function gO(t,e){let i={type:"ExportSpecifier",local:t,exported:e},r=I.ExportSpecifier;return h(r.local,i,"local",t,1),h(r.exported,i,"exported",e,1),i}function xO(t,e,i,r=!1){let s={type:"ForOfStatement",left:t,right:e,body:i,await:r},n=I.ForOfStatement;return h(n.left,s,"left",t,1),h(n.right,s,"right",e,1),h(n.body,s,"body",i,1),h(n.await,s,"await",r),s}function bO(t,e){let i={type:"ImportDeclaration",specifiers:t,source:e},r=I.ImportDeclaration;return h(r.specifiers,i,"specifiers",t,1),h(r.source,i,"source",e,1),i}function SO(t){let e={type:"ImportDefaultSpecifier",local:t},i=I.ImportDefaultSpecifier;return h(i.local,e,"local",t,1),e}function EO(t){let e={type:"ImportNamespaceSpecifier",local:t},i=I.ImportNamespaceSpecifier;return h(i.local,e,"local",t,1),e}function PO(t,e){let i={type:"ImportSpecifier",local:t,imported:e},r=I.ImportSpecifier;return h(r.local,i,"local",t,1),h(r.imported,i,"imported",e,1),i}function vO(t,e=null){let i={type:"ImportExpression",source:t,options:e},r=I.ImportExpression;return h(r.source,i,"source",t,1),h(r.options,i,"options",e,1),i}function AO(t,e){let i={type:"MetaProperty",meta:t,property:e},r=I.MetaProperty;return h(r.meta,i,"meta",t,1),h(r.property,i,"property",e,1),i}function wO(t="method",e,i,r,s=!1,n=!1,a=!1,l=!1){let c={type:"ClassMethod",kind:t,key:e,params:i,body:r,computed:s,static:n,generator:a,async:l},o=I.ClassMethod;return h(o.kind,c,"kind",t),h(o.key,c,"key",e,1),h(o.params,c,"params",i,1),h(o.body,c,"body",r,1),h(o.computed,c,"computed",s),h(o.static,c,"static",n),h(o.generator,c,"generator",a),h(o.async,c,"async",l),c}function CO(t){let e={type:"ObjectPattern",properties:t},i=I.ObjectPattern;return h(i.properties,e,"properties",t,1),e}function hy(t){let e={type:"SpreadElement",argument:t},i=I.SpreadElement;return h(i.argument,e,"argument",t,1),e}function IO(){return{type:"Super"}}function kO(t,e){let i={type:"TaggedTemplateExpression",tag:t,quasi:e},r=I.TaggedTemplateExpression;return h(r.tag,i,"tag",t,1),h(r.quasi,i,"quasi",e,1),i}function _O(t,e=!1){let i={type:"TemplateElement",value:t,tail:e},r=I.TemplateElement;return h(r.value,i,"value",t),h(r.tail,i,"tail",e),i}function OO(t,e){let i={type:"TemplateLiteral",quasis:t,expressions:e},r=I.TemplateLiteral;return h(r.quasis,i,"quasis",t,1),h(r.expressions,i,"expressions",e,1),i}function NO(t=null,e=!1){let i={type:"YieldExpression",argument:t,delegate:e},r=I.YieldExpression;return h(r.argument,i,"argument",t,1),h(r.delegate,i,"delegate",e),i}function DO(t){let e={type:"AwaitExpression",argument:t},i=I.AwaitExpression;return h(i.argument,e,"argument",t,1),e}function LO(){return{type:"Import"}}function MO(t){let e={type:"ExportNamespaceSpecifier",exported:t},i=I.ExportNamespaceSpecifier;return h(i.exported,e,"exported",t,1),e}function FO(t,e,i=!1,r){let s={type:"OptionalMemberExpression",object:t,property:e,computed:i,optional:r},n=I.OptionalMemberExpression;return h(n.object,s,"object",t,1),h(n.property,s,"property",e,1),h(n.computed,s,"computed",i),h(n.optional,s,"optional",r),s}function BO(t,e,i){let r={type:"OptionalCallExpression",callee:t,arguments:e,optional:i},s=I.OptionalCallExpression;return h(s.callee,r,"callee",t,1),h(s.arguments,r,"arguments",e,1),h(s.optional,r,"optional",i),r}function jO(t,e=null,i=null,r=null,s=!1,n=!1){let a={type:"ClassProperty",key:t,value:e,typeAnnotation:i,decorators:r,computed:s,static:n},l=I.ClassProperty;return h(l.key,a,"key",t,1),h(l.value,a,"value",e,1),h(l.typeAnnotation,a,"typeAnnotation",i,1),h(l.decorators,a,"decorators",r,1),h(l.computed,a,"computed",s),h(l.static,a,"static",n),a}function RO(t,e=null,i=null,r=null,s=!1,n=!1){let a={type:"ClassAccessorProperty",key:t,value:e,typeAnnotation:i,decorators:r,computed:s,static:n},l=I.ClassAccessorProperty;return h(l.key,a,"key",t,1),h(l.value,a,"value",e,1),h(l.typeAnnotation,a,"typeAnnotation",i,1),h(l.decorators,a,"decorators",r,1),h(l.computed,a,"computed",s),h(l.static,a,"static",n),a}function $O(t,e=null,i=null,r=!1){let s={type:"ClassPrivateProperty",key:t,value:e,decorators:i,static:r},n=I.ClassPrivateProperty;return h(n.key,s,"key",t,1),h(n.value,s,"value",e,1),h(n.decorators,s,"decorators",i,1),h(n.static,s,"static",r),s}function qO(t="method",e,i,r,s=!1){let n={type:"ClassPrivateMethod",kind:t,key:e,params:i,body:r,static:s},a=I.ClassPrivateMethod;return h(a.kind,n,"kind",t),h(a.key,n,"key",e,1),h(a.params,n,"params",i,1),h(a.body,n,"body",r,1),h(a.static,n,"static",s),n}function UO(t){let e={type:"PrivateName",id:t},i=I.PrivateName;return h(i.id,e,"id",t,1),e}function KO(t){let e={type:"StaticBlock",body:t},i=I.StaticBlock;return h(i.body,e,"body",t,1),e}function VO(t,e){let i={type:"ImportAttribute",key:t,value:e},r=I.ImportAttribute;return h(r.key,i,"key",t,1),h(r.value,i,"value",e,1),i}function WO(){return{type:"AnyTypeAnnotation"}}function YO(t){let e={type:"ArrayTypeAnnotation",elementType:t},i=I.ArrayTypeAnnotation;return h(i.elementType,e,"elementType",t,1),e}function zO(){return{type:"BooleanTypeAnnotation"}}function JO(t){let e={type:"BooleanLiteralTypeAnnotation",value:t},i=I.BooleanLiteralTypeAnnotation;return h(i.value,e,"value",t),e}function XO(){return{type:"NullLiteralTypeAnnotation"}}function HO(t,e=null){let i={type:"ClassImplements",id:t,typeParameters:e},r=I.ClassImplements;return h(r.id,i,"id",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function GO(t,e=null,i=null,r){let s={type:"DeclareClass",id:t,typeParameters:e,extends:i,body:r},n=I.DeclareClass;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.extends,s,"extends",i,1),h(n.body,s,"body",r,1),s}function QO(t){let e={type:"DeclareFunction",id:t},i=I.DeclareFunction;return h(i.id,e,"id",t,1),e}function ZO(t,e=null,i=null,r){let s={type:"DeclareInterface",id:t,typeParameters:e,extends:i,body:r},n=I.DeclareInterface;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.extends,s,"extends",i,1),h(n.body,s,"body",r,1),s}function eN(t,e,i=null){let r={type:"DeclareModule",id:t,body:e,kind:i},s=I.DeclareModule;return h(s.id,r,"id",t,1),h(s.body,r,"body",e,1),h(s.kind,r,"kind",i),r}function tN(t){let e={type:"DeclareModuleExports",typeAnnotation:t},i=I.DeclareModuleExports;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function iN(t,e=null,i){let r={type:"DeclareTypeAlias",id:t,typeParameters:e,right:i},s=I.DeclareTypeAlias;return h(s.id,r,"id",t,1),h(s.typeParameters,r,"typeParameters",e,1),h(s.right,r,"right",i,1),r}function rN(t,e=null,i=null){let r={type:"DeclareOpaqueType",id:t,typeParameters:e,supertype:i},s=I.DeclareOpaqueType;return h(s.id,r,"id",t,1),h(s.typeParameters,r,"typeParameters",e,1),h(s.supertype,r,"supertype",i,1),r}function sN(t){let e={type:"DeclareVariable",id:t},i=I.DeclareVariable;return h(i.id,e,"id",t,1),e}function nN(t=null,e=null,i=null,r=null){let s={type:"DeclareExportDeclaration",declaration:t,specifiers:e,source:i,attributes:r},n=I.DeclareExportDeclaration;return h(n.declaration,s,"declaration",t,1),h(n.specifiers,s,"specifiers",e,1),h(n.source,s,"source",i,1),h(n.attributes,s,"attributes",r,1),s}function aN(t,e=null){let i={type:"DeclareExportAllDeclaration",source:t,attributes:e},r=I.DeclareExportAllDeclaration;return h(r.source,i,"source",t,1),h(r.attributes,i,"attributes",e,1),i}function oN(t){let e={type:"DeclaredPredicate",value:t},i=I.DeclaredPredicate;return h(i.value,e,"value",t,1),e}function lN(){return{type:"ExistsTypeAnnotation"}}function cN(t=null,e,i=null,r){let s={type:"FunctionTypeAnnotation",typeParameters:t,params:e,rest:i,returnType:r},n=I.FunctionTypeAnnotation;return h(n.typeParameters,s,"typeParameters",t,1),h(n.params,s,"params",e,1),h(n.rest,s,"rest",i,1),h(n.returnType,s,"returnType",r,1),s}function uN(t=null,e){let i={type:"FunctionTypeParam",name:t,typeAnnotation:e},r=I.FunctionTypeParam;return h(r.name,i,"name",t,1),h(r.typeAnnotation,i,"typeAnnotation",e,1),i}function pN(t,e=null){let i={type:"GenericTypeAnnotation",id:t,typeParameters:e},r=I.GenericTypeAnnotation;return h(r.id,i,"id",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function fN(){return{type:"InferredPredicate"}}function hN(t,e=null){let i={type:"InterfaceExtends",id:t,typeParameters:e},r=I.InterfaceExtends;return h(r.id,i,"id",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function dN(t,e=null,i=null,r){let s={type:"InterfaceDeclaration",id:t,typeParameters:e,extends:i,body:r},n=I.InterfaceDeclaration;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.extends,s,"extends",i,1),h(n.body,s,"body",r,1),s}function mN(t=null,e){let i={type:"InterfaceTypeAnnotation",extends:t,body:e},r=I.InterfaceTypeAnnotation;return h(r.extends,i,"extends",t,1),h(r.body,i,"body",e,1),i}function yN(t){let e={type:"IntersectionTypeAnnotation",types:t},i=I.IntersectionTypeAnnotation;return h(i.types,e,"types",t,1),e}function TN(){return{type:"MixedTypeAnnotation"}}function gN(){return{type:"EmptyTypeAnnotation"}}function xN(t){let e={type:"NullableTypeAnnotation",typeAnnotation:t},i=I.NullableTypeAnnotation;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function bN(t){let e={type:"NumberLiteralTypeAnnotation",value:t},i=I.NumberLiteralTypeAnnotation;return h(i.value,e,"value",t),e}function SN(){return{type:"NumberTypeAnnotation"}}function EN(t,e=[],i=[],r=[],s=!1){let n={type:"ObjectTypeAnnotation",properties:t,indexers:e,callProperties:i,internalSlots:r,exact:s},a=I.ObjectTypeAnnotation;return h(a.properties,n,"properties",t,1),h(a.indexers,n,"indexers",e,1),h(a.callProperties,n,"callProperties",i,1),h(a.internalSlots,n,"internalSlots",r,1),h(a.exact,n,"exact",s),n}function PN(t,e,i,r,s){let n={type:"ObjectTypeInternalSlot",id:t,value:e,optional:i,static:r,method:s},a=I.ObjectTypeInternalSlot;return h(a.id,n,"id",t,1),h(a.value,n,"value",e,1),h(a.optional,n,"optional",i),h(a.static,n,"static",r),h(a.method,n,"method",s),n}function vN(t){let e={type:"ObjectTypeCallProperty",value:t,static:null},i=I.ObjectTypeCallProperty;return h(i.value,e,"value",t,1),e}function AN(t=null,e,i,r=null){let s={type:"ObjectTypeIndexer",id:t,key:e,value:i,variance:r,static:null},n=I.ObjectTypeIndexer;return h(n.id,s,"id",t,1),h(n.key,s,"key",e,1),h(n.value,s,"value",i,1),h(n.variance,s,"variance",r,1),s}function wN(t,e,i=null){let r={type:"ObjectTypeProperty",key:t,value:e,variance:i,kind:null,method:null,optional:null,proto:null,static:null},s=I.ObjectTypeProperty;return h(s.key,r,"key",t,1),h(s.value,r,"value",e,1),h(s.variance,r,"variance",i,1),r}function CN(t){let e={type:"ObjectTypeSpreadProperty",argument:t},i=I.ObjectTypeSpreadProperty;return h(i.argument,e,"argument",t,1),e}function IN(t,e=null,i=null,r){let s={type:"OpaqueType",id:t,typeParameters:e,supertype:i,impltype:r},n=I.OpaqueType;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.supertype,s,"supertype",i,1),h(n.impltype,s,"impltype",r,1),s}function kN(t,e){let i={type:"QualifiedTypeIdentifier",id:t,qualification:e},r=I.QualifiedTypeIdentifier;return h(r.id,i,"id",t,1),h(r.qualification,i,"qualification",e,1),i}function _N(t){let e={type:"StringLiteralTypeAnnotation",value:t},i=I.StringLiteralTypeAnnotation;return h(i.value,e,"value",t),e}function ON(){return{type:"StringTypeAnnotation"}}function NN(){return{type:"SymbolTypeAnnotation"}}function DN(){return{type:"ThisTypeAnnotation"}}function LN(t){let e={type:"TupleTypeAnnotation",types:t},i=I.TupleTypeAnnotation;return h(i.types,e,"types",t,1),e}function MN(t){let e={type:"TypeofTypeAnnotation",argument:t},i=I.TypeofTypeAnnotation;return h(i.argument,e,"argument",t,1),e}function FN(t,e=null,i){let r={type:"TypeAlias",id:t,typeParameters:e,right:i},s=I.TypeAlias;return h(s.id,r,"id",t,1),h(s.typeParameters,r,"typeParameters",e,1),h(s.right,r,"right",i,1),r}function BN(t){let e={type:"TypeAnnotation",typeAnnotation:t},i=I.TypeAnnotation;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function jN(t,e){let i={type:"TypeCastExpression",expression:t,typeAnnotation:e},r=I.TypeCastExpression;return h(r.expression,i,"expression",t,1),h(r.typeAnnotation,i,"typeAnnotation",e,1),i}function RN(t=null,e=null,i=null){let r={type:"TypeParameter",bound:t,default:e,variance:i,name:null},s=I.TypeParameter;return h(s.bound,r,"bound",t,1),h(s.default,r,"default",e,1),h(s.variance,r,"variance",i,1),r}function $N(t){let e={type:"TypeParameterDeclaration",params:t},i=I.TypeParameterDeclaration;return h(i.params,e,"params",t,1),e}function qN(t){let e={type:"TypeParameterInstantiation",params:t},i=I.TypeParameterInstantiation;return h(i.params,e,"params",t,1),e}function UN(t){let e={type:"UnionTypeAnnotation",types:t},i=I.UnionTypeAnnotation;return h(i.types,e,"types",t,1),e}function KN(t){let e={type:"Variance",kind:t},i=I.Variance;return h(i.kind,e,"kind",t),e}function VN(){return{type:"VoidTypeAnnotation"}}function WN(t,e){let i={type:"EnumDeclaration",id:t,body:e},r=I.EnumDeclaration;return h(r.id,i,"id",t,1),h(r.body,i,"body",e,1),i}function YN(t){let e={type:"EnumBooleanBody",members:t,explicitType:null,hasUnknownMembers:null},i=I.EnumBooleanBody;return h(i.members,e,"members",t,1),e}function zN(t){let e={type:"EnumNumberBody",members:t,explicitType:null,hasUnknownMembers:null},i=I.EnumNumberBody;return h(i.members,e,"members",t,1),e}function JN(t){let e={type:"EnumStringBody",members:t,explicitType:null,hasUnknownMembers:null},i=I.EnumStringBody;return h(i.members,e,"members",t,1),e}function XN(t){let e={type:"EnumSymbolBody",members:t,hasUnknownMembers:null},i=I.EnumSymbolBody;return h(i.members,e,"members",t,1),e}function HN(t){let e={type:"EnumBooleanMember",id:t,init:null},i=I.EnumBooleanMember;return h(i.id,e,"id",t,1),e}function GN(t,e){let i={type:"EnumNumberMember",id:t,init:e},r=I.EnumNumberMember;return h(r.id,i,"id",t,1),h(r.init,i,"init",e,1),i}function QN(t,e){let i={type:"EnumStringMember",id:t,init:e},r=I.EnumStringMember;return h(r.id,i,"id",t,1),h(r.init,i,"init",e,1),i}function ZN(t){let e={type:"EnumDefaultedMember",id:t},i=I.EnumDefaultedMember;return h(i.id,e,"id",t,1),e}function e2(t,e){let i={type:"IndexedAccessType",objectType:t,indexType:e},r=I.IndexedAccessType;return h(r.objectType,i,"objectType",t,1),h(r.indexType,i,"indexType",e,1),i}function t2(t,e){let i={type:"OptionalIndexedAccessType",objectType:t,indexType:e,optional:null},r=I.OptionalIndexedAccessType;return h(r.objectType,i,"objectType",t,1),h(r.indexType,i,"indexType",e,1),i}function i2(t,e=null){let i={type:"JSXAttribute",name:t,value:e},r=I.JSXAttribute;return h(r.name,i,"name",t,1),h(r.value,i,"value",e,1),i}function r2(t){let e={type:"JSXClosingElement",name:t},i=I.JSXClosingElement;return h(i.name,e,"name",t,1),e}function s2(t,e=null,i,r=null){let s={type:"JSXElement",openingElement:t,closingElement:e,children:i,selfClosing:r},n=I.JSXElement;return h(n.openingElement,s,"openingElement",t,1),h(n.closingElement,s,"closingElement",e,1),h(n.children,s,"children",i,1),h(n.selfClosing,s,"selfClosing",r),s}function n2(){return{type:"JSXEmptyExpression"}}function a2(t){let e={type:"JSXExpressionContainer",expression:t},i=I.JSXExpressionContainer;return h(i.expression,e,"expression",t,1),e}function o2(t){let e={type:"JSXSpreadChild",expression:t},i=I.JSXSpreadChild;return h(i.expression,e,"expression",t,1),e}function l2(t){let e={type:"JSXIdentifier",name:t},i=I.JSXIdentifier;return h(i.name,e,"name",t),e}function c2(t,e){let i={type:"JSXMemberExpression",object:t,property:e},r=I.JSXMemberExpression;return h(r.object,i,"object",t,1),h(r.property,i,"property",e,1),i}function u2(t,e){let i={type:"JSXNamespacedName",namespace:t,name:e},r=I.JSXNamespacedName;return h(r.namespace,i,"namespace",t,1),h(r.name,i,"name",e,1),i}function p2(t,e,i=!1){let r={type:"JSXOpeningElement",name:t,attributes:e,selfClosing:i},s=I.JSXOpeningElement;return h(s.name,r,"name",t,1),h(s.attributes,r,"attributes",e,1),h(s.selfClosing,r,"selfClosing",i),r}function f2(t){let e={type:"JSXSpreadAttribute",argument:t},i=I.JSXSpreadAttribute;return h(i.argument,e,"argument",t,1),e}function h2(t){let e={type:"JSXText",value:t},i=I.JSXText;return h(i.value,e,"value",t),e}function d2(t,e,i){let r={type:"JSXFragment",openingFragment:t,closingFragment:e,children:i},s=I.JSXFragment;return h(s.openingFragment,r,"openingFragment",t,1),h(s.closingFragment,r,"closingFragment",e,1),h(s.children,r,"children",i,1),r}function m2(){return{type:"JSXOpeningFragment"}}function y2(){return{type:"JSXClosingFragment"}}function T2(){return{type:"Noop"}}function g2(t,e){let i={type:"Placeholder",expectedNode:t,name:e},r=I.Placeholder;return h(r.expectedNode,i,"expectedNode",t),h(r.name,i,"name",e,1),i}function x2(t){let e={type:"V8IntrinsicIdentifier",name:t},i=I.V8IntrinsicIdentifier;return h(i.name,e,"name",t),e}function b2(){return{type:"ArgumentPlaceholder"}}function S2(t,e){let i={type:"BindExpression",object:t,callee:e},r=I.BindExpression;return h(r.object,i,"object",t,1),h(r.callee,i,"callee",e,1),i}function E2(t){let e={type:"Decorator",expression:t},i=I.Decorator;return h(i.expression,e,"expression",t,1),e}function P2(t,e=!1){let i={type:"DoExpression",body:t,async:e},r=I.DoExpression;return h(r.body,i,"body",t,1),h(r.async,i,"async",e),i}function v2(t){let e={type:"ExportDefaultSpecifier",exported:t},i=I.ExportDefaultSpecifier;return h(i.exported,e,"exported",t,1),e}function A2(t){let e={type:"RecordExpression",properties:t},i=I.RecordExpression;return h(i.properties,e,"properties",t,1),e}function w2(t=[]){let e={type:"TupleExpression",elements:t},i=I.TupleExpression;return h(i.elements,e,"elements",t,1),e}function C2(t){let e={type:"DecimalLiteral",value:t},i=I.DecimalLiteral;return h(i.value,e,"value",t),e}function I2(t){let e={type:"ModuleExpression",body:t},i=I.ModuleExpression;return h(i.body,e,"body",t,1),e}function k2(){return{type:"TopicReference"}}function _2(t){let e={type:"PipelineTopicExpression",expression:t},i=I.PipelineTopicExpression;return h(i.expression,e,"expression",t,1),e}function O2(t){let e={type:"PipelineBareFunction",callee:t},i=I.PipelineBareFunction;return h(i.callee,e,"callee",t,1),e}function N2(){return{type:"PipelinePrimaryTopicReference"}}function D2(){return{type:"VoidPattern"}}function L2(t){let e={type:"TSParameterProperty",parameter:t},i=I.TSParameterProperty;return h(i.parameter,e,"parameter",t,1),e}function M2(t=null,e=null,i,r=null){let s={type:"TSDeclareFunction",id:t,typeParameters:e,params:i,returnType:r},n=I.TSDeclareFunction;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.params,s,"params",i,1),h(n.returnType,s,"returnType",r,1),s}function F2(t=null,e,i=null,r,s=null){let n={type:"TSDeclareMethod",decorators:t,key:e,typeParameters:i,params:r,returnType:s},a=I.TSDeclareMethod;return h(a.decorators,n,"decorators",t,1),h(a.key,n,"key",e,1),h(a.typeParameters,n,"typeParameters",i,1),h(a.params,n,"params",r,1),h(a.returnType,n,"returnType",s,1),n}function B2(t,e){let i={type:"TSQualifiedName",left:t,right:e},r=I.TSQualifiedName;return h(r.left,i,"left",t,1),h(r.right,i,"right",e,1),i}function j2(t=null,e,i=null){let r={type:"TSCallSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:i},s=I.TSCallSignatureDeclaration;return h(s.typeParameters,r,"typeParameters",t,1),h(s.parameters,r,"parameters",e,1),h(s.typeAnnotation,r,"typeAnnotation",i,1),r}function R2(t=null,e,i=null){let r={type:"TSConstructSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:i},s=I.TSConstructSignatureDeclaration;return h(s.typeParameters,r,"typeParameters",t,1),h(s.parameters,r,"parameters",e,1),h(s.typeAnnotation,r,"typeAnnotation",i,1),r}function $2(t,e=null){let i={type:"TSPropertySignature",key:t,typeAnnotation:e},r=I.TSPropertySignature;return h(r.key,i,"key",t,1),h(r.typeAnnotation,i,"typeAnnotation",e,1),i}function q2(t,e=null,i,r=null){let s={type:"TSMethodSignature",key:t,typeParameters:e,parameters:i,typeAnnotation:r,kind:null},n=I.TSMethodSignature;return h(n.key,s,"key",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.parameters,s,"parameters",i,1),h(n.typeAnnotation,s,"typeAnnotation",r,1),s}function U2(t,e=null){let i={type:"TSIndexSignature",parameters:t,typeAnnotation:e},r=I.TSIndexSignature;return h(r.parameters,i,"parameters",t,1),h(r.typeAnnotation,i,"typeAnnotation",e,1),i}function K2(){return{type:"TSAnyKeyword"}}function V2(){return{type:"TSBooleanKeyword"}}function W2(){return{type:"TSBigIntKeyword"}}function Y2(){return{type:"TSIntrinsicKeyword"}}function z2(){return{type:"TSNeverKeyword"}}function J2(){return{type:"TSNullKeyword"}}function X2(){return{type:"TSNumberKeyword"}}function H2(){return{type:"TSObjectKeyword"}}function G2(){return{type:"TSStringKeyword"}}function Q2(){return{type:"TSSymbolKeyword"}}function Z2(){return{type:"TSUndefinedKeyword"}}function eD(){return{type:"TSUnknownKeyword"}}function tD(){return{type:"TSVoidKeyword"}}function iD(){return{type:"TSThisType"}}function rD(t=null,e,i=null){let r={type:"TSFunctionType",typeParameters:t,parameters:e,typeAnnotation:i},s=I.TSFunctionType;return h(s.typeParameters,r,"typeParameters",t,1),h(s.parameters,r,"parameters",e,1),h(s.typeAnnotation,r,"typeAnnotation",i,1),r}function sD(t=null,e,i=null){let r={type:"TSConstructorType",typeParameters:t,parameters:e,typeAnnotation:i},s=I.TSConstructorType;return h(s.typeParameters,r,"typeParameters",t,1),h(s.parameters,r,"parameters",e,1),h(s.typeAnnotation,r,"typeAnnotation",i,1),r}function nD(t,e=null){let i={type:"TSTypeReference",typeName:t,typeParameters:e},r=I.TSTypeReference;return h(r.typeName,i,"typeName",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function aD(t,e=null,i=null){let r={type:"TSTypePredicate",parameterName:t,typeAnnotation:e,asserts:i},s=I.TSTypePredicate;return h(s.parameterName,r,"parameterName",t,1),h(s.typeAnnotation,r,"typeAnnotation",e,1),h(s.asserts,r,"asserts",i),r}function oD(t,e=null){let i={type:"TSTypeQuery",exprName:t,typeParameters:e},r=I.TSTypeQuery;return h(r.exprName,i,"exprName",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function lD(t){let e={type:"TSTypeLiteral",members:t},i=I.TSTypeLiteral;return h(i.members,e,"members",t,1),e}function cD(t){let e={type:"TSArrayType",elementType:t},i=I.TSArrayType;return h(i.elementType,e,"elementType",t,1),e}function uD(t){let e={type:"TSTupleType",elementTypes:t},i=I.TSTupleType;return h(i.elementTypes,e,"elementTypes",t,1),e}function pD(t){let e={type:"TSOptionalType",typeAnnotation:t},i=I.TSOptionalType;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function fD(t){let e={type:"TSRestType",typeAnnotation:t},i=I.TSRestType;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function hD(t,e,i=!1){let r={type:"TSNamedTupleMember",label:t,elementType:e,optional:i},s=I.TSNamedTupleMember;return h(s.label,r,"label",t,1),h(s.elementType,r,"elementType",e,1),h(s.optional,r,"optional",i),r}function dD(t){let e={type:"TSUnionType",types:t},i=I.TSUnionType;return h(i.types,e,"types",t,1),e}function mD(t){let e={type:"TSIntersectionType",types:t},i=I.TSIntersectionType;return h(i.types,e,"types",t,1),e}function yD(t,e,i,r){let s={type:"TSConditionalType",checkType:t,extendsType:e,trueType:i,falseType:r},n=I.TSConditionalType;return h(n.checkType,s,"checkType",t,1),h(n.extendsType,s,"extendsType",e,1),h(n.trueType,s,"trueType",i,1),h(n.falseType,s,"falseType",r,1),s}function TD(t){let e={type:"TSInferType",typeParameter:t},i=I.TSInferType;return h(i.typeParameter,e,"typeParameter",t,1),e}function gD(t){let e={type:"TSParenthesizedType",typeAnnotation:t},i=I.TSParenthesizedType;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function xD(t,e){let i={type:"TSTypeOperator",typeAnnotation:t,operator:e},r=I.TSTypeOperator;return h(r.typeAnnotation,i,"typeAnnotation",t,1),h(r.operator,i,"operator",e),i}function bD(t,e){let i={type:"TSIndexedAccessType",objectType:t,indexType:e},r=I.TSIndexedAccessType;return h(r.objectType,i,"objectType",t,1),h(r.indexType,i,"indexType",e,1),i}function SD(t,e=null,i=null){let r={type:"TSMappedType",typeParameter:t,typeAnnotation:e,nameType:i},s=I.TSMappedType;return h(s.typeParameter,r,"typeParameter",t,1),h(s.typeAnnotation,r,"typeAnnotation",e,1),h(s.nameType,r,"nameType",i,1),r}function ED(t,e){let i={type:"TSTemplateLiteralType",quasis:t,types:e},r=I.TSTemplateLiteralType;return h(r.quasis,i,"quasis",t,1),h(r.types,i,"types",e,1),i}function PD(t){let e={type:"TSLiteralType",literal:t},i=I.TSLiteralType;return h(i.literal,e,"literal",t,1),e}function vD(t,e=null){let i={type:"TSExpressionWithTypeArguments",expression:t,typeParameters:e},r=I.TSExpressionWithTypeArguments;return h(r.expression,i,"expression",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function AD(t,e=null,i=null,r){let s={type:"TSInterfaceDeclaration",id:t,typeParameters:e,extends:i,body:r},n=I.TSInterfaceDeclaration;return h(n.id,s,"id",t,1),h(n.typeParameters,s,"typeParameters",e,1),h(n.extends,s,"extends",i,1),h(n.body,s,"body",r,1),s}function wD(t){let e={type:"TSInterfaceBody",body:t},i=I.TSInterfaceBody;return h(i.body,e,"body",t,1),e}function CD(t,e=null,i){let r={type:"TSTypeAliasDeclaration",id:t,typeParameters:e,typeAnnotation:i},s=I.TSTypeAliasDeclaration;return h(s.id,r,"id",t,1),h(s.typeParameters,r,"typeParameters",e,1),h(s.typeAnnotation,r,"typeAnnotation",i,1),r}function ID(t,e=null){let i={type:"TSInstantiationExpression",expression:t,typeParameters:e},r=I.TSInstantiationExpression;return h(r.expression,i,"expression",t,1),h(r.typeParameters,i,"typeParameters",e,1),i}function kD(t,e){let i={type:"TSAsExpression",expression:t,typeAnnotation:e},r=I.TSAsExpression;return h(r.expression,i,"expression",t,1),h(r.typeAnnotation,i,"typeAnnotation",e,1),i}function _D(t,e){let i={type:"TSSatisfiesExpression",expression:t,typeAnnotation:e},r=I.TSSatisfiesExpression;return h(r.expression,i,"expression",t,1),h(r.typeAnnotation,i,"typeAnnotation",e,1),i}function OD(t,e){let i={type:"TSTypeAssertion",typeAnnotation:t,expression:e},r=I.TSTypeAssertion;return h(r.typeAnnotation,i,"typeAnnotation",t,1),h(r.expression,i,"expression",e,1),i}function ND(t){let e={type:"TSEnumBody",members:t},i=I.TSEnumBody;return h(i.members,e,"members",t,1),e}function DD(t,e){let i={type:"TSEnumDeclaration",id:t,members:e},r=I.TSEnumDeclaration;return h(r.id,i,"id",t,1),h(r.members,i,"members",e,1),i}function LD(t,e=null){let i={type:"TSEnumMember",id:t,initializer:e},r=I.TSEnumMember;return h(r.id,i,"id",t,1),h(r.initializer,i,"initializer",e,1),i}function MD(t,e){let i={type:"TSModuleDeclaration",id:t,body:e,kind:null},r=I.TSModuleDeclaration;return h(r.id,i,"id",t,1),h(r.body,i,"body",e,1),i}function FD(t){let e={type:"TSModuleBlock",body:t},i=I.TSModuleBlock;return h(i.body,e,"body",t,1),e}function BD(t,e=null,i=null){let r={type:"TSImportType",argument:t,qualifier:e,typeParameters:i},s=I.TSImportType;return h(s.argument,r,"argument",t,1),h(s.qualifier,r,"qualifier",e,1),h(s.typeParameters,r,"typeParameters",i,1),r}function jD(t,e){let i={type:"TSImportEqualsDeclaration",id:t,moduleReference:e,isExport:null},r=I.TSImportEqualsDeclaration;return h(r.id,i,"id",t,1),h(r.moduleReference,i,"moduleReference",e,1),i}function RD(t){let e={type:"TSExternalModuleReference",expression:t},i=I.TSExternalModuleReference;return h(i.expression,e,"expression",t,1),e}function $D(t){let e={type:"TSNonNullExpression",expression:t},i=I.TSNonNullExpression;return h(i.expression,e,"expression",t,1),e}function qD(t){let e={type:"TSExportAssignment",expression:t},i=I.TSExportAssignment;return h(i.expression,e,"expression",t,1),e}function UD(t){let e={type:"TSNamespaceExportDeclaration",id:t},i=I.TSNamespaceExportDeclaration;return h(i.id,e,"id",t,1),e}function KD(t){let e={type:"TSTypeAnnotation",typeAnnotation:t},i=I.TSTypeAnnotation;return h(i.typeAnnotation,e,"typeAnnotation",t,1),e}function VD(t){let e={type:"TSTypeParameterInstantiation",params:t},i=I.TSTypeParameterInstantiation;return h(i.params,e,"params",t,1),e}function WD(t){let e={type:"TSTypeParameterDeclaration",params:t},i=I.TSTypeParameterDeclaration;return h(i.params,e,"params",t,1),e}function YD(t=null,e=null,i){let r={type:"TSTypeParameter",constraint:t,default:e,name:i},s=I.TSTypeParameter;return h(s.constraint,r,"constraint",t,1),h(s.default,r,"default",e,1),h(s.name,r,"name",i),r}function zD(t){return(0,to.default)("NumberLiteral","NumericLiteral","The node type "),uy(t)}function JD(t,e=""){return(0,to.default)("RegexLiteral","RegExpLiteral","The node type "),py(t,e)}function XD(t){return(0,to.default)("RestProperty","RestElement","The node type "),fy(t)}function HD(t){return(0,to.default)("SpreadProperty","SpreadElement","The node type "),hy(t)}});var dy=_(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.JSXIdentifier=p.JSXFragment=p.JSXExpressionContainer=p.JSXEmptyExpression=p.JSXElement=p.JSXClosingFragment=p.JSXClosingElement=p.JSXAttribute=p.IntersectionTypeAnnotation=p.InterpreterDirective=p.InterfaceTypeAnnotation=p.InterfaceExtends=p.InterfaceDeclaration=p.InferredPredicate=p.IndexedAccessType=p.ImportSpecifier=p.ImportNamespaceSpecifier=p.ImportExpression=p.ImportDefaultSpecifier=p.ImportDeclaration=p.ImportAttribute=p.Import=p.IfStatement=p.Identifier=p.GenericTypeAnnotation=p.FunctionTypeParam=p.FunctionTypeAnnotation=p.FunctionExpression=p.FunctionDeclaration=p.ForStatement=p.ForOfStatement=p.ForInStatement=p.File=p.ExpressionStatement=p.ExportSpecifier=p.ExportNamespaceSpecifier=p.ExportNamedDeclaration=p.ExportDefaultSpecifier=p.ExportDefaultDeclaration=p.ExportAllDeclaration=p.ExistsTypeAnnotation=p.EnumSymbolBody=p.EnumStringMember=p.EnumStringBody=p.EnumNumberMember=p.EnumNumberBody=p.EnumDefaultedMember=p.EnumDeclaration=p.EnumBooleanMember=p.EnumBooleanBody=p.EmptyTypeAnnotation=p.EmptyStatement=p.DoWhileStatement=p.DoExpression=p.DirectiveLiteral=p.Directive=p.Decorator=p.DeclaredPredicate=p.DeclareVariable=p.DeclareTypeAlias=p.DeclareOpaqueType=p.DeclareModuleExports=p.DeclareModule=p.DeclareInterface=p.DeclareFunction=p.DeclareExportDeclaration=p.DeclareExportAllDeclaration=p.DeclareClass=p.DecimalLiteral=p.DebuggerStatement=p.ContinueStatement=p.ConditionalExpression=p.ClassProperty=p.ClassPrivateProperty=p.ClassPrivateMethod=p.ClassMethod=p.ClassImplements=p.ClassExpression=p.ClassDeclaration=p.ClassBody=p.ClassAccessorProperty=p.CatchClause=p.CallExpression=p.BreakStatement=p.BooleanTypeAnnotation=p.BooleanLiteralTypeAnnotation=p.BooleanLiteral=p.BlockStatement=p.BindExpression=p.BinaryExpression=p.BigIntLiteral=p.AwaitExpression=p.AssignmentPattern=p.AssignmentExpression=p.ArrowFunctionExpression=p.ArrayTypeAnnotation=p.ArrayPattern=p.ArrayExpression=p.ArgumentPlaceholder=p.AnyTypeAnnotation=void 0;p.TSNumberKeyword=p.TSNullKeyword=p.TSNonNullExpression=p.TSNeverKeyword=p.TSNamespaceExportDeclaration=p.TSNamedTupleMember=p.TSModuleDeclaration=p.TSModuleBlock=p.TSMethodSignature=p.TSMappedType=p.TSLiteralType=p.TSIntrinsicKeyword=p.TSIntersectionType=p.TSInterfaceDeclaration=p.TSInterfaceBody=p.TSInstantiationExpression=p.TSInferType=p.TSIndexedAccessType=p.TSIndexSignature=p.TSImportType=p.TSImportEqualsDeclaration=p.TSFunctionType=p.TSExternalModuleReference=p.TSExpressionWithTypeArguments=p.TSExportAssignment=p.TSEnumMember=p.TSEnumDeclaration=p.TSEnumBody=p.TSDeclareMethod=p.TSDeclareFunction=p.TSConstructorType=p.TSConstructSignatureDeclaration=p.TSConditionalType=p.TSCallSignatureDeclaration=p.TSBooleanKeyword=p.TSBigIntKeyword=p.TSAsExpression=p.TSArrayType=p.TSAnyKeyword=p.SymbolTypeAnnotation=p.SwitchStatement=p.SwitchCase=p.Super=p.StringTypeAnnotation=p.StringLiteralTypeAnnotation=p.StringLiteral=p.StaticBlock=p.SpreadProperty=p.SpreadElement=p.SequenceExpression=p.ReturnStatement=p.RestProperty=p.RestElement=p.RegexLiteral=p.RegExpLiteral=p.RecordExpression=p.QualifiedTypeIdentifier=p.Program=p.PrivateName=p.Placeholder=p.PipelineTopicExpression=p.PipelinePrimaryTopicReference=p.PipelineBareFunction=p.ParenthesizedExpression=p.OptionalMemberExpression=p.OptionalIndexedAccessType=p.OptionalCallExpression=p.OpaqueType=p.ObjectTypeSpreadProperty=p.ObjectTypeProperty=p.ObjectTypeInternalSlot=p.ObjectTypeIndexer=p.ObjectTypeCallProperty=p.ObjectTypeAnnotation=p.ObjectProperty=p.ObjectPattern=p.ObjectMethod=p.ObjectExpression=p.NumericLiteral=p.NumberTypeAnnotation=p.NumberLiteralTypeAnnotation=p.NumberLiteral=p.NullableTypeAnnotation=p.NullLiteralTypeAnnotation=p.NullLiteral=p.Noop=p.NewExpression=p.ModuleExpression=p.MixedTypeAnnotation=p.MetaProperty=p.MemberExpression=p.LogicalExpression=p.LabeledStatement=p.JSXText=p.JSXSpreadChild=p.JSXSpreadAttribute=p.JSXOpeningFragment=p.JSXOpeningElement=p.JSXNamespacedName=p.JSXMemberExpression=void 0;p.YieldExpression=p.WithStatement=p.WhileStatement=p.VoidTypeAnnotation=p.VoidPattern=p.Variance=p.VariableDeclarator=p.VariableDeclaration=p.V8IntrinsicIdentifier=p.UpdateExpression=p.UnionTypeAnnotation=p.UnaryExpression=p.TypeofTypeAnnotation=p.TypeParameterInstantiation=p.TypeParameterDeclaration=p.TypeParameter=p.TypeCastExpression=p.TypeAnnotation=p.TypeAlias=p.TupleTypeAnnotation=p.TupleExpression=p.TryStatement=p.TopicReference=p.ThrowStatement=p.ThisTypeAnnotation=p.ThisExpression=p.TemplateLiteral=p.TemplateElement=p.TaggedTemplateExpression=p.TSVoidKeyword=p.TSUnknownKeyword=p.TSUnionType=p.TSUndefinedKeyword=p.TSTypeReference=p.TSTypeQuery=p.TSTypePredicate=p.TSTypeParameterInstantiation=p.TSTypeParameterDeclaration=p.TSTypeParameter=p.TSTypeOperator=p.TSTypeLiteral=p.TSTypeAssertion=p.TSTypeAnnotation=p.TSTypeAliasDeclaration=p.TSTupleType=p.TSThisType=p.TSTemplateLiteralType=p.TSSymbolKeyword=p.TSStringKeyword=p.TSSatisfiesExpression=p.TSRestType=p.TSQualifiedName=p.TSPropertySignature=p.TSParenthesizedType=p.TSParameterProperty=p.TSOptionalType=p.TSObjectKeyword=void 0;var En=ru(),mZ=ms();function v(t){return En[t]}var yZ=p.ArrayExpression=v("arrayExpression"),TZ=p.AssignmentExpression=v("assignmentExpression"),gZ=p.BinaryExpression=v("binaryExpression"),xZ=p.InterpreterDirective=v("interpreterDirective"),bZ=p.Directive=v("directive"),SZ=p.DirectiveLiteral=v("directiveLiteral"),EZ=p.BlockStatement=v("blockStatement"),PZ=p.BreakStatement=v("breakStatement"),vZ=p.CallExpression=v("callExpression"),AZ=p.CatchClause=v("catchClause"),wZ=p.ConditionalExpression=v("conditionalExpression"),CZ=p.ContinueStatement=v("continueStatement"),IZ=p.DebuggerStatement=v("debuggerStatement"),kZ=p.DoWhileStatement=v("doWhileStatement"),_Z=p.EmptyStatement=v("emptyStatement"),OZ=p.ExpressionStatement=v("expressionStatement"),NZ=p.File=v("file"),DZ=p.ForInStatement=v("forInStatement"),LZ=p.ForStatement=v("forStatement"),MZ=p.FunctionDeclaration=v("functionDeclaration"),FZ=p.FunctionExpression=v("functionExpression"),BZ=p.Identifier=v("identifier"),jZ=p.IfStatement=v("ifStatement"),RZ=p.LabeledStatement=v("labeledStatement"),$Z=p.StringLiteral=v("stringLiteral"),qZ=p.NumericLiteral=v("numericLiteral"),UZ=p.NullLiteral=v("nullLiteral"),KZ=p.BooleanLiteral=v("booleanLiteral"),VZ=p.RegExpLiteral=v("regExpLiteral"),WZ=p.LogicalExpression=v("logicalExpression"),YZ=p.MemberExpression=v("memberExpression"),zZ=p.NewExpression=v("newExpression"),JZ=p.Program=v("program"),XZ=p.ObjectExpression=v("objectExpression"),HZ=p.ObjectMethod=v("objectMethod"),GZ=p.ObjectProperty=v("objectProperty"),QZ=p.RestElement=v("restElement"),ZZ=p.ReturnStatement=v("returnStatement"),eee=p.SequenceExpression=v("sequenceExpression"),tee=p.ParenthesizedExpression=v("parenthesizedExpression"),iee=p.SwitchCase=v("switchCase"),ree=p.SwitchStatement=v("switchStatement"),see=p.ThisExpression=v("thisExpression"),nee=p.ThrowStatement=v("throwStatement"),aee=p.TryStatement=v("tryStatement"),oee=p.UnaryExpression=v("unaryExpression"),lee=p.UpdateExpression=v("updateExpression"),cee=p.VariableDeclaration=v("variableDeclaration"),uee=p.VariableDeclarator=v("variableDeclarator"),pee=p.WhileStatement=v("whileStatement"),fee=p.WithStatement=v("withStatement"),hee=p.AssignmentPattern=v("assignmentPattern"),dee=p.ArrayPattern=v("arrayPattern"),mee=p.ArrowFunctionExpression=v("arrowFunctionExpression"),yee=p.ClassBody=v("classBody"),Tee=p.ClassExpression=v("classExpression"),gee=p.ClassDeclaration=v("classDeclaration"),xee=p.ExportAllDeclaration=v("exportAllDeclaration"),bee=p.ExportDefaultDeclaration=v("exportDefaultDeclaration"),See=p.ExportNamedDeclaration=v("exportNamedDeclaration"),Eee=p.ExportSpecifier=v("exportSpecifier"),Pee=p.ForOfStatement=v("forOfStatement"),vee=p.ImportDeclaration=v("importDeclaration"),Aee=p.ImportDefaultSpecifier=v("importDefaultSpecifier"),wee=p.ImportNamespaceSpecifier=v("importNamespaceSpecifier"),Cee=p.ImportSpecifier=v("importSpecifier"),Iee=p.ImportExpression=v("importExpression"),kee=p.MetaProperty=v("metaProperty"),_ee=p.ClassMethod=v("classMethod"),Oee=p.ObjectPattern=v("objectPattern"),Nee=p.SpreadElement=v("spreadElement"),Dee=p.Super=v("super"),Lee=p.TaggedTemplateExpression=v("taggedTemplateExpression"),Mee=p.TemplateElement=v("templateElement"),Fee=p.TemplateLiteral=v("templateLiteral"),Bee=p.YieldExpression=v("yieldExpression"),jee=p.AwaitExpression=v("awaitExpression"),Ree=p.Import=v("import"),$ee=p.BigIntLiteral=v("bigIntLiteral"),qee=p.ExportNamespaceSpecifier=v("exportNamespaceSpecifier"),Uee=p.OptionalMemberExpression=v("optionalMemberExpression"),Kee=p.OptionalCallExpression=v("optionalCallExpression"),Vee=p.ClassProperty=v("classProperty"),Wee=p.ClassAccessorProperty=v("classAccessorProperty"),Yee=p.ClassPrivateProperty=v("classPrivateProperty"),zee=p.ClassPrivateMethod=v("classPrivateMethod"),Jee=p.PrivateName=v("privateName"),Xee=p.StaticBlock=v("staticBlock"),Hee=p.ImportAttribute=v("importAttribute"),Gee=p.AnyTypeAnnotation=v("anyTypeAnnotation"),Qee=p.ArrayTypeAnnotation=v("arrayTypeAnnotation"),Zee=p.BooleanTypeAnnotation=v("booleanTypeAnnotation"),ete=p.BooleanLiteralTypeAnnotation=v("booleanLiteralTypeAnnotation"),tte=p.NullLiteralTypeAnnotation=v("nullLiteralTypeAnnotation"),ite=p.ClassImplements=v("classImplements"),rte=p.DeclareClass=v("declareClass"),ste=p.DeclareFunction=v("declareFunction"),nte=p.DeclareInterface=v("declareInterface"),ate=p.DeclareModule=v("declareModule"),ote=p.DeclareModuleExports=v("declareModuleExports"),lte=p.DeclareTypeAlias=v("declareTypeAlias"),cte=p.DeclareOpaqueType=v("declareOpaqueType"),ute=p.DeclareVariable=v("declareVariable"),pte=p.DeclareExportDeclaration=v("declareExportDeclaration"),fte=p.DeclareExportAllDeclaration=v("declareExportAllDeclaration"),hte=p.DeclaredPredicate=v("declaredPredicate"),dte=p.ExistsTypeAnnotation=v("existsTypeAnnotation"),mte=p.FunctionTypeAnnotation=v("functionTypeAnnotation"),yte=p.FunctionTypeParam=v("functionTypeParam"),Tte=p.GenericTypeAnnotation=v("genericTypeAnnotation"),gte=p.InferredPredicate=v("inferredPredicate"),xte=p.InterfaceExtends=v("interfaceExtends"),bte=p.InterfaceDeclaration=v("interfaceDeclaration"),Ste=p.InterfaceTypeAnnotation=v("interfaceTypeAnnotation"),Ete=p.IntersectionTypeAnnotation=v("intersectionTypeAnnotation"),Pte=p.MixedTypeAnnotation=v("mixedTypeAnnotation"),vte=p.EmptyTypeAnnotation=v("emptyTypeAnnotation"),Ate=p.NullableTypeAnnotation=v("nullableTypeAnnotation"),wte=p.NumberLiteralTypeAnnotation=v("numberLiteralTypeAnnotation"),Cte=p.NumberTypeAnnotation=v("numberTypeAnnotation"),Ite=p.ObjectTypeAnnotation=v("objectTypeAnnotation"),kte=p.ObjectTypeInternalSlot=v("objectTypeInternalSlot"),_te=p.ObjectTypeCallProperty=v("objectTypeCallProperty"),Ote=p.ObjectTypeIndexer=v("objectTypeIndexer"),Nte=p.ObjectTypeProperty=v("objectTypeProperty"),Dte=p.ObjectTypeSpreadProperty=v("objectTypeSpreadProperty"),Lte=p.OpaqueType=v("opaqueType"),Mte=p.QualifiedTypeIdentifier=v("qualifiedTypeIdentifier"),Fte=p.StringLiteralTypeAnnotation=v("stringLiteralTypeAnnotation"),Bte=p.StringTypeAnnotation=v("stringTypeAnnotation"),jte=p.SymbolTypeAnnotation=v("symbolTypeAnnotation"),Rte=p.ThisTypeAnnotation=v("thisTypeAnnotation"),$te=p.TupleTypeAnnotation=v("tupleTypeAnnotation"),qte=p.TypeofTypeAnnotation=v("typeofTypeAnnotation"),Ute=p.TypeAlias=v("typeAlias"),Kte=p.TypeAnnotation=v("typeAnnotation"),Vte=p.TypeCastExpression=v("typeCastExpression"),Wte=p.TypeParameter=v("typeParameter"),Yte=p.TypeParameterDeclaration=v("typeParameterDeclaration"),zte=p.TypeParameterInstantiation=v("typeParameterInstantiation"),Jte=p.UnionTypeAnnotation=v("unionTypeAnnotation"),Xte=p.Variance=v("variance"),Hte=p.VoidTypeAnnotation=v("voidTypeAnnotation"),Gte=p.EnumDeclaration=v("enumDeclaration"),Qte=p.EnumBooleanBody=v("enumBooleanBody"),Zte=p.EnumNumberBody=v("enumNumberBody"),eie=p.EnumStringBody=v("enumStringBody"),tie=p.EnumSymbolBody=v("enumSymbolBody"),iie=p.EnumBooleanMember=v("enumBooleanMember"),rie=p.EnumNumberMember=v("enumNumberMember"),sie=p.EnumStringMember=v("enumStringMember"),nie=p.EnumDefaultedMember=v("enumDefaultedMember"),aie=p.IndexedAccessType=v("indexedAccessType"),oie=p.OptionalIndexedAccessType=v("optionalIndexedAccessType"),lie=p.JSXAttribute=v("jsxAttribute"),cie=p.JSXClosingElement=v("jsxClosingElement"),uie=p.JSXElement=v("jsxElement"),pie=p.JSXEmptyExpression=v("jsxEmptyExpression"),fie=p.JSXExpressionContainer=v("jsxExpressionContainer"),hie=p.JSXSpreadChild=v("jsxSpreadChild"),die=p.JSXIdentifier=v("jsxIdentifier"),mie=p.JSXMemberExpression=v("jsxMemberExpression"),yie=p.JSXNamespacedName=v("jsxNamespacedName"),Tie=p.JSXOpeningElement=v("jsxOpeningElement"),gie=p.JSXSpreadAttribute=v("jsxSpreadAttribute"),xie=p.JSXText=v("jsxText"),bie=p.JSXFragment=v("jsxFragment"),Sie=p.JSXOpeningFragment=v("jsxOpeningFragment"),Eie=p.JSXClosingFragment=v("jsxClosingFragment"),Pie=p.Noop=v("noop"),vie=p.Placeholder=v("placeholder"),Aie=p.V8IntrinsicIdentifier=v("v8IntrinsicIdentifier"),wie=p.ArgumentPlaceholder=v("argumentPlaceholder"),Cie=p.BindExpression=v("bindExpression"),Iie=p.Decorator=v("decorator"),kie=p.DoExpression=v("doExpression"),_ie=p.ExportDefaultSpecifier=v("exportDefaultSpecifier"),Oie=p.RecordExpression=v("recordExpression"),Nie=p.TupleExpression=v("tupleExpression"),Die=p.DecimalLiteral=v("decimalLiteral"),Lie=p.ModuleExpression=v("moduleExpression"),Mie=p.TopicReference=v("topicReference"),Fie=p.PipelineTopicExpression=v("pipelineTopicExpression"),Bie=p.PipelineBareFunction=v("pipelineBareFunction"),jie=p.PipelinePrimaryTopicReference=v("pipelinePrimaryTopicReference"),Rie=p.VoidPattern=v("voidPattern"),$ie=p.TSParameterProperty=v("tsParameterProperty"),qie=p.TSDeclareFunction=v("tsDeclareFunction"),Uie=p.TSDeclareMethod=v("tsDeclareMethod"),Kie=p.TSQualifiedName=v("tsQualifiedName"),Vie=p.TSCallSignatureDeclaration=v("tsCallSignatureDeclaration"),Wie=p.TSConstructSignatureDeclaration=v("tsConstructSignatureDeclaration"),Yie=p.TSPropertySignature=v("tsPropertySignature"),zie=p.TSMethodSignature=v("tsMethodSignature"),Jie=p.TSIndexSignature=v("tsIndexSignature"),Xie=p.TSAnyKeyword=v("tsAnyKeyword"),Hie=p.TSBooleanKeyword=v("tsBooleanKeyword"),Gie=p.TSBigIntKeyword=v("tsBigIntKeyword"),Qie=p.TSIntrinsicKeyword=v("tsIntrinsicKeyword"),Zie=p.TSNeverKeyword=v("tsNeverKeyword"),ere=p.TSNullKeyword=v("tsNullKeyword"),tre=p.TSNumberKeyword=v("tsNumberKeyword"),ire=p.TSObjectKeyword=v("tsObjectKeyword"),rre=p.TSStringKeyword=v("tsStringKeyword"),sre=p.TSSymbolKeyword=v("tsSymbolKeyword"),nre=p.TSUndefinedKeyword=v("tsUndefinedKeyword"),are=p.TSUnknownKeyword=v("tsUnknownKeyword"),ore=p.TSVoidKeyword=v("tsVoidKeyword"),lre=p.TSThisType=v("tsThisType"),cre=p.TSFunctionType=v("tsFunctionType"),ure=p.TSConstructorType=v("tsConstructorType"),pre=p.TSTypeReference=v("tsTypeReference"),fre=p.TSTypePredicate=v("tsTypePredicate"),hre=p.TSTypeQuery=v("tsTypeQuery"),dre=p.TSTypeLiteral=v("tsTypeLiteral"),mre=p.TSArrayType=v("tsArrayType"),yre=p.TSTupleType=v("tsTupleType"),Tre=p.TSOptionalType=v("tsOptionalType"),gre=p.TSRestType=v("tsRestType"),xre=p.TSNamedTupleMember=v("tsNamedTupleMember"),bre=p.TSUnionType=v("tsUnionType"),Sre=p.TSIntersectionType=v("tsIntersectionType"),Ere=p.TSConditionalType=v("tsConditionalType"),Pre=p.TSInferType=v("tsInferType"),vre=p.TSParenthesizedType=v("tsParenthesizedType"),Are=p.TSTypeOperator=v("tsTypeOperator"),wre=p.TSIndexedAccessType=v("tsIndexedAccessType"),Cre=p.TSMappedType=v("tsMappedType"),Ire=p.TSTemplateLiteralType=v("tsTemplateLiteralType"),kre=p.TSLiteralType=v("tsLiteralType"),_re=p.TSExpressionWithTypeArguments=v("tsExpressionWithTypeArguments"),Ore=p.TSInterfaceDeclaration=v("tsInterfaceDeclaration"),Nre=p.TSInterfaceBody=v("tsInterfaceBody"),Dre=p.TSTypeAliasDeclaration=v("tsTypeAliasDeclaration"),Lre=p.TSInstantiationExpression=v("tsInstantiationExpression"),Mre=p.TSAsExpression=v("tsAsExpression"),Fre=p.TSSatisfiesExpression=v("tsSatisfiesExpression"),Bre=p.TSTypeAssertion=v("tsTypeAssertion"),jre=p.TSEnumBody=v("tsEnumBody"),Rre=p.TSEnumDeclaration=v("tsEnumDeclaration"),$re=p.TSEnumMember=v("tsEnumMember"),qre=p.TSModuleDeclaration=v("tsModuleDeclaration"),Ure=p.TSModuleBlock=v("tsModuleBlock"),Kre=p.TSImportType=v("tsImportType"),Vre=p.TSImportEqualsDeclaration=v("tsImportEqualsDeclaration"),Wre=p.TSExternalModuleReference=v("tsExternalModuleReference"),Yre=p.TSNonNullExpression=v("tsNonNullExpression"),zre=p.TSExportAssignment=v("tsExportAssignment"),Jre=p.TSNamespaceExportDeclaration=v("tsNamespaceExportDeclaration"),Xre=p.TSTypeAnnotation=v("tsTypeAnnotation"),Hre=p.TSTypeParameterInstantiation=v("tsTypeParameterInstantiation"),Gre=p.TSTypeParameterDeclaration=v("tsTypeParameterDeclaration"),Qre=p.TSTypeParameter=v("tsTypeParameter"),Zre=p.NumberLiteral=En.numberLiteral,ese=p.RegexLiteral=En.regexLiteral,tse=p.RestProperty=En.restProperty,ise=p.SpreadProperty=En.spreadProperty});var Jt=_(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});var su=ru();Object.keys(su).forEach(function(t){t==="default"||t==="__esModule"||t in or&&or[t]===su[t]||Object.defineProperty(or,t,{enumerable:!0,get:function(){return su[t]}})});var nu=dy();Object.keys(nu).forEach(function(t){t==="default"||t==="__esModule"||t in or&&or[t]===nu[t]||Object.defineProperty(or,t,{enumerable:!0,get:function(){return nu[t]}})})});var my=_(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.default=ZD;var GD=Jt(),QD=be();function ZD(t,e){let i=t.value.split(/\r\n|\n|\r/),r=0;for(let n=0;n<i.length;n++)/[^ \t]/.exec(i[n])&&(r=n);let s="";for(let n=0;n<i.length;n++){let a=i[n],l=n===0,c=n===i.length-1,o=n===r,u=a.replace(/\t/g," ");l||(u=u.replace(/^ +/,"")),c||(u=u.replace(/ +$/,"")),u&&(o||(u+=" "),s+=u)}s&&e.push((0,QD.inherits)((0,GD.stringLiteral)(s),t))}});var yy=_(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.default=tL;var ou=lt(),eL=my();function tL(t){let e=[];for(let i=0;i<t.children.length;i++){let r=t.children[i];if((0,ou.isJSXText)(r)){(0,eL.default)(r,e);continue}(0,ou.isJSXExpressionContainer)(r)&&(r=r.expression),!(0,ou.isJSXEmptyExpression)(r)&&e.push(r)}return e}});var uu=_(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.default=rL;var iL=ai();function rL(t){return!!(t&&iL.VISITOR_KEYS[t.type])}});var Ty=_(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.default=nL;var sL=uu();function nL(t){if(!(0,sL.default)(t)){var e;let i=(e=t?.type)!=null?e:JSON.stringify(t);throw new TypeError(`Not a valid node of type "${i}"`)}}});var gy=_(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.assertAccessor=Aj;g.assertAnyTypeAnnotation=UM;g.assertArgumentPlaceholder=TF;g.assertArrayExpression=oL;g.assertArrayPattern=nM;g.assertArrayTypeAnnotation=KM;g.assertArrowFunctionExpression=aM;g.assertAssignmentExpression=lL;g.assertAssignmentPattern=sM;g.assertAwaitExpression=kM;g.assertBigIntLiteral=OM;g.assertBinary=YB;g.assertBinaryExpression=cL;g.assertBindExpression=gF;g.assertBlock=XB;g.assertBlockParent=JB;g.assertBlockStatement=hL;g.assertBooleanLiteral=LL;g.assertBooleanLiteralTypeAnnotation=WM;g.assertBooleanTypeAnnotation=VM;g.assertBreakStatement=dL;g.assertCallExpression=mL;g.assertCatchClause=yL;g.assertClass=Sj;g.assertClassAccessorProperty=FM;g.assertClassBody=oM;g.assertClassDeclaration=cM;g.assertClassExpression=lM;g.assertClassImplements=zM;g.assertClassMethod=SM;g.assertClassPrivateMethod=jM;g.assertClassPrivateProperty=BM;g.assertClassProperty=MM;g.assertCompletionStatement=QB;g.assertConditional=ZB;g.assertConditionalExpression=TL;g.assertContinueStatement=gL;g.assertDebuggerStatement=xL;g.assertDecimalLiteral=vF;g.assertDeclaration=lj;g.assertDeclareClass=JM;g.assertDeclareExportAllDeclaration=r3;g.assertDeclareExportDeclaration=i3;g.assertDeclareFunction=XM;g.assertDeclareInterface=HM;g.assertDeclareModule=GM;g.assertDeclareModuleExports=QM;g.assertDeclareOpaqueType=e3;g.assertDeclareTypeAlias=ZM;g.assertDeclareVariable=t3;g.assertDeclaredPredicate=s3;g.assertDecorator=xF;g.assertDirective=pL;g.assertDirectiveLiteral=fL;g.assertDoExpression=bF;g.assertDoWhileStatement=bL;g.assertEmptyStatement=SL;g.assertEmptyTypeAnnotation=m3;g.assertEnumBody=Nj;g.assertEnumBooleanBody=K3;g.assertEnumBooleanMember=z3;g.assertEnumDeclaration=U3;g.assertEnumDefaultedMember=H3;g.assertEnumMember=Dj;g.assertEnumNumberBody=V3;g.assertEnumNumberMember=J3;g.assertEnumStringBody=W3;g.assertEnumStringMember=X3;g.assertEnumSymbolBody=Y3;g.assertExistsTypeAnnotation=n3;g.assertExportAllDeclaration=uM;g.assertExportDeclaration=Pj;g.assertExportDefaultDeclaration=pM;g.assertExportDefaultSpecifier=SF;g.assertExportNamedDeclaration=fM;g.assertExportNamespaceSpecifier=NM;g.assertExportSpecifier=hM;g.assertExpression=WB;g.assertExpressionStatement=EL;g.assertExpressionWrapper=ij;g.assertFile=PL;g.assertFlow=Cj;g.assertFlowBaseAnnotation=kj;g.assertFlowDeclaration=_j;g.assertFlowPredicate=Oj;g.assertFlowType=Ij;g.assertFor=rj;g.assertForInStatement=vL;g.assertForOfStatement=dM;g.assertForStatement=AL;g.assertForXStatement=sj;g.assertFunction=nj;g.assertFunctionDeclaration=wL;g.assertFunctionExpression=CL;g.assertFunctionParameter=cj;g.assertFunctionParent=aj;g.assertFunctionTypeAnnotation=a3;g.assertFunctionTypeParam=o3;g.assertGenericTypeAnnotation=l3;g.assertIdentifier=IL;g.assertIfStatement=kL;g.assertImmutable=dj;g.assertImport=_M;g.assertImportAttribute=qM;g.assertImportDeclaration=mM;g.assertImportDefaultSpecifier=yM;g.assertImportExpression=xM;g.assertImportNamespaceSpecifier=TM;g.assertImportOrExportDeclaration=Ej;g.assertImportSpecifier=gM;g.assertIndexedAccessType=G3;g.assertInferredPredicate=c3;g.assertInterfaceDeclaration=p3;g.assertInterfaceExtends=u3;g.assertInterfaceTypeAnnotation=f3;g.assertInterpreterDirective=uL;g.assertIntersectionTypeAnnotation=h3;g.assertJSX=Lj;g.assertJSXAttribute=Z3;g.assertJSXClosingElement=eF;g.assertJSXClosingFragment=hF;g.assertJSXElement=tF;g.assertJSXEmptyExpression=iF;g.assertJSXExpressionContainer=rF;g.assertJSXFragment=pF;g.assertJSXIdentifier=nF;g.assertJSXMemberExpression=aF;g.assertJSXNamespacedName=oF;g.assertJSXOpeningElement=lF;g.assertJSXOpeningFragment=fF;g.assertJSXSpreadAttribute=cF;g.assertJSXSpreadChild=sF;g.assertJSXText=uF;g.assertLVal=pj;g.assertLabeledStatement=_L;g.assertLiteral=hj;g.assertLogicalExpression=FL;g.assertLoop=ej;g.assertMemberExpression=BL;g.assertMetaProperty=bM;g.assertMethod=yj;g.assertMiscellaneous=Mj;g.assertMixedTypeAnnotation=d3;g.assertModuleDeclaration=Vj;g.assertModuleExpression=AF;g.assertModuleSpecifier=vj;g.assertNewExpression=jL;g.assertNoop=dF;g.assertNullLiteral=DL;g.assertNullLiteralTypeAnnotation=YM;g.assertNullableTypeAnnotation=y3;g.assertNumberLiteral=$j;g.assertNumberLiteralTypeAnnotation=T3;g.assertNumberTypeAnnotation=g3;g.assertNumericLiteral=NL;g.assertObjectExpression=$L;g.assertObjectMember=Tj;g.assertObjectMethod=qL;g.assertObjectPattern=EM;g.assertObjectProperty=UL;g.assertObjectTypeAnnotation=x3;g.assertObjectTypeCallProperty=S3;g.assertObjectTypeIndexer=E3;g.assertObjectTypeInternalSlot=b3;g.assertObjectTypeProperty=P3;g.assertObjectTypeSpreadProperty=v3;g.assertOpaqueType=A3;g.assertOptionalCallExpression=LM;g.assertOptionalIndexedAccessType=Q3;g.assertOptionalMemberExpression=DM;g.assertParenthesizedExpression=YL;g.assertPattern=bj;g.assertPatternLike=uj;g.assertPipelineBareFunction=IF;g.assertPipelinePrimaryTopicReference=kF;g.assertPipelineTopicExpression=CF;g.assertPlaceholder=mF;g.assertPrivate=wj;g.assertPrivateName=RM;g.assertProgram=RL;g.assertProperty=gj;g.assertPureish=oj;g.assertQualifiedTypeIdentifier=w3;g.assertRecordExpression=EF;g.assertRegExpLiteral=ML;g.assertRegexLiteral=qj;g.assertRestElement=KL;g.assertRestProperty=Uj;g.assertReturnStatement=VL;g.assertScopable=zB;g.assertSequenceExpression=WL;g.assertSpreadElement=PM;g.assertSpreadProperty=Kj;g.assertStandardized=VB;g.assertStatement=HB;g.assertStaticBlock=$M;g.assertStringLiteral=OL;g.assertStringLiteralTypeAnnotation=C3;g.assertStringTypeAnnotation=I3;g.assertSuper=vM;g.assertSwitchCase=zL;g.assertSwitchStatement=JL;g.assertSymbolTypeAnnotation=k3;g.assertTSAnyKeyword=$F;g.assertTSArrayType=aB;g.assertTSAsExpression=wB;g.assertTSBaseType=Rj;g.assertTSBigIntKeyword=UF;g.assertTSBooleanKeyword=qF;g.assertTSCallSignatureDeclaration=MF;g.assertTSConditionalType=hB;g.assertTSConstructSignatureDeclaration=FF;g.assertTSConstructorType=tB;g.assertTSDeclareFunction=NF;g.assertTSDeclareMethod=DF;g.assertTSEntityName=fj;g.assertTSEnumBody=kB;g.assertTSEnumDeclaration=_B;g.assertTSEnumMember=OB;g.assertTSExportAssignment=jB;g.assertTSExpressionWithTypeArguments=SB;g.assertTSExternalModuleReference=FB;g.assertTSFunctionType=eB;g.assertTSImportEqualsDeclaration=MB;g.assertTSImportType=LB;g.assertTSIndexSignature=RF;g.assertTSIndexedAccessType=TB;g.assertTSInferType=dB;g.assertTSInstantiationExpression=AB;g.assertTSInterfaceBody=PB;g.assertTSInterfaceDeclaration=EB;g.assertTSIntersectionType=fB;g.assertTSIntrinsicKeyword=KF;g.assertTSLiteralType=bB;g.assertTSMappedType=gB;g.assertTSMethodSignature=jF;g.assertTSModuleBlock=DB;g.assertTSModuleDeclaration=NB;g.assertTSNamedTupleMember=uB;g.assertTSNamespaceExportDeclaration=RB;g.assertTSNeverKeyword=VF;g.assertTSNonNullExpression=BB;g.assertTSNullKeyword=WF;g.assertTSNumberKeyword=YF;g.assertTSObjectKeyword=zF;g.assertTSOptionalType=lB;g.assertTSParameterProperty=OF;g.assertTSParenthesizedType=mB;g.assertTSPropertySignature=BF;g.assertTSQualifiedName=LF;g.assertTSRestType=cB;g.assertTSSatisfiesExpression=CB;g.assertTSStringKeyword=JF;g.assertTSSymbolKeyword=XF;g.assertTSTemplateLiteralType=xB;g.assertTSThisType=ZF;g.assertTSTupleType=oB;g.assertTSType=jj;g.assertTSTypeAliasDeclaration=vB;g.assertTSTypeAnnotation=$B;g.assertTSTypeAssertion=IB;g.assertTSTypeElement=Bj;g.assertTSTypeLiteral=nB;g.assertTSTypeOperator=yB;g.assertTSTypeParameter=KB;g.assertTSTypeParameterDeclaration=UB;g.assertTSTypeParameterInstantiation=qB;g.assertTSTypePredicate=rB;g.assertTSTypeQuery=sB;g.assertTSTypeReference=iB;g.assertTSUndefinedKeyword=HF;g.assertTSUnionType=pB;g.assertTSUnknownKeyword=GF;g.assertTSVoidKeyword=QF;g.assertTaggedTemplateExpression=AM;g.assertTemplateElement=wM;g.assertTemplateLiteral=CM;g.assertTerminatorless=GB;g.assertThisExpression=XL;g.assertThisTypeAnnotation=_3;g.assertThrowStatement=HL;g.assertTopicReference=wF;g.assertTryStatement=GL;g.assertTupleExpression=PF;g.assertTupleTypeAnnotation=O3;g.assertTypeAlias=D3;g.assertTypeAnnotation=L3;g.assertTypeCastExpression=M3;g.assertTypeParameter=F3;g.assertTypeParameterDeclaration=B3;g.assertTypeParameterInstantiation=j3;g.assertTypeScript=Fj;g.assertTypeofTypeAnnotation=N3;g.assertUnaryExpression=QL;g.assertUnaryLike=xj;g.assertUnionTypeAnnotation=R3;g.assertUpdateExpression=ZL;g.assertUserWhitespacable=mj;g.assertV8IntrinsicIdentifier=yF;g.assertVariableDeclaration=eM;g.assertVariableDeclarator=tM;g.assertVariance=$3;g.assertVoidPattern=_F;g.assertVoidTypeAnnotation=q3;g.assertWhile=tj;g.assertWhileStatement=iM;g.assertWithStatement=rM;g.assertYieldExpression=IM;var aL=ys(),Pn=ms();function x(t,e,i){if(!(0,aL.default)(t,e,i))throw new Error(`Expected type "${t}" with option ${JSON.stringify(i)}, but instead got "${e.type}".`)}function oL(t,e){x("ArrayExpression",t,e)}function lL(t,e){x("AssignmentExpression",t,e)}function cL(t,e){x("BinaryExpression",t,e)}function uL(t,e){x("InterpreterDirective",t,e)}function pL(t,e){x("Directive",t,e)}function fL(t,e){x("DirectiveLiteral",t,e)}function hL(t,e){x("BlockStatement",t,e)}function dL(t,e){x("BreakStatement",t,e)}function mL(t,e){x("CallExpression",t,e)}function yL(t,e){x("CatchClause",t,e)}function TL(t,e){x("ConditionalExpression",t,e)}function gL(t,e){x("ContinueStatement",t,e)}function xL(t,e){x("DebuggerStatement",t,e)}function bL(t,e){x("DoWhileStatement",t,e)}function SL(t,e){x("EmptyStatement",t,e)}function EL(t,e){x("ExpressionStatement",t,e)}function PL(t,e){x("File",t,e)}function vL(t,e){x("ForInStatement",t,e)}function AL(t,e){x("ForStatement",t,e)}function wL(t,e){x("FunctionDeclaration",t,e)}function CL(t,e){x("FunctionExpression",t,e)}function IL(t,e){x("Identifier",t,e)}function kL(t,e){x("IfStatement",t,e)}function _L(t,e){x("LabeledStatement",t,e)}function OL(t,e){x("StringLiteral",t,e)}function NL(t,e){x("NumericLiteral",t,e)}function DL(t,e){x("NullLiteral",t,e)}function LL(t,e){x("BooleanLiteral",t,e)}function ML(t,e){x("RegExpLiteral",t,e)}function FL(t,e){x("LogicalExpression",t,e)}function BL(t,e){x("MemberExpression",t,e)}function jL(t,e){x("NewExpression",t,e)}function RL(t,e){x("Program",t,e)}function $L(t,e){x("ObjectExpression",t,e)}function qL(t,e){x("ObjectMethod",t,e)}function UL(t,e){x("ObjectProperty",t,e)}function KL(t,e){x("RestElement",t,e)}function VL(t,e){x("ReturnStatement",t,e)}function WL(t,e){x("SequenceExpression",t,e)}function YL(t,e){x("ParenthesizedExpression",t,e)}function zL(t,e){x("SwitchCase",t,e)}function JL(t,e){x("SwitchStatement",t,e)}function XL(t,e){x("ThisExpression",t,e)}function HL(t,e){x("ThrowStatement",t,e)}function GL(t,e){x("TryStatement",t,e)}function QL(t,e){x("UnaryExpression",t,e)}function ZL(t,e){x("UpdateExpression",t,e)}function eM(t,e){x("VariableDeclaration",t,e)}function tM(t,e){x("VariableDeclarator",t,e)}function iM(t,e){x("WhileStatement",t,e)}function rM(t,e){x("WithStatement",t,e)}function sM(t,e){x("AssignmentPattern",t,e)}function nM(t,e){x("ArrayPattern",t,e)}function aM(t,e){x("ArrowFunctionExpression",t,e)}function oM(t,e){x("ClassBody",t,e)}function lM(t,e){x("ClassExpression",t,e)}function cM(t,e){x("ClassDeclaration",t,e)}function uM(t,e){x("ExportAllDeclaration",t,e)}function pM(t,e){x("ExportDefaultDeclaration",t,e)}function fM(t,e){x("ExportNamedDeclaration",t,e)}function hM(t,e){x("ExportSpecifier",t,e)}function dM(t,e){x("ForOfStatement",t,e)}function mM(t,e){x("ImportDeclaration",t,e)}function yM(t,e){x("ImportDefaultSpecifier",t,e)}function TM(t,e){x("ImportNamespaceSpecifier",t,e)}function gM(t,e){x("ImportSpecifier",t,e)}function xM(t,e){x("ImportExpression",t,e)}function bM(t,e){x("MetaProperty",t,e)}function SM(t,e){x("ClassMethod",t,e)}function EM(t,e){x("ObjectPattern",t,e)}function PM(t,e){x("SpreadElement",t,e)}function vM(t,e){x("Super",t,e)}function AM(t,e){x("TaggedTemplateExpression",t,e)}function wM(t,e){x("TemplateElement",t,e)}function CM(t,e){x("TemplateLiteral",t,e)}function IM(t,e){x("YieldExpression",t,e)}function kM(t,e){x("AwaitExpression",t,e)}function _M(t,e){x("Import",t,e)}function OM(t,e){x("BigIntLiteral",t,e)}function NM(t,e){x("ExportNamespaceSpecifier",t,e)}function DM(t,e){x("OptionalMemberExpression",t,e)}function LM(t,e){x("OptionalCallExpression",t,e)}function MM(t,e){x("ClassProperty",t,e)}function FM(t,e){x("ClassAccessorProperty",t,e)}function BM(t,e){x("ClassPrivateProperty",t,e)}function jM(t,e){x("ClassPrivateMethod",t,e)}function RM(t,e){x("PrivateName",t,e)}function $M(t,e){x("StaticBlock",t,e)}function qM(t,e){x("ImportAttribute",t,e)}function UM(t,e){x("AnyTypeAnnotation",t,e)}function KM(t,e){x("ArrayTypeAnnotation",t,e)}function VM(t,e){x("BooleanTypeAnnotation",t,e)}function WM(t,e){x("BooleanLiteralTypeAnnotation",t,e)}function YM(t,e){x("NullLiteralTypeAnnotation",t,e)}function zM(t,e){x("ClassImplements",t,e)}function JM(t,e){x("DeclareClass",t,e)}function XM(t,e){x("DeclareFunction",t,e)}function HM(t,e){x("DeclareInterface",t,e)}function GM(t,e){x("DeclareModule",t,e)}function QM(t,e){x("DeclareModuleExports",t,e)}function ZM(t,e){x("DeclareTypeAlias",t,e)}function e3(t,e){x("DeclareOpaqueType",t,e)}function t3(t,e){x("DeclareVariable",t,e)}function i3(t,e){x("DeclareExportDeclaration",t,e)}function r3(t,e){x("DeclareExportAllDeclaration",t,e)}function s3(t,e){x("DeclaredPredicate",t,e)}function n3(t,e){x("ExistsTypeAnnotation",t,e)}function a3(t,e){x("FunctionTypeAnnotation",t,e)}function o3(t,e){x("FunctionTypeParam",t,e)}function l3(t,e){x("GenericTypeAnnotation",t,e)}function c3(t,e){x("InferredPredicate",t,e)}function u3(t,e){x("InterfaceExtends",t,e)}function p3(t,e){x("InterfaceDeclaration",t,e)}function f3(t,e){x("InterfaceTypeAnnotation",t,e)}function h3(t,e){x("IntersectionTypeAnnotation",t,e)}function d3(t,e){x("MixedTypeAnnotation",t,e)}function m3(t,e){x("EmptyTypeAnnotation",t,e)}function y3(t,e){x("NullableTypeAnnotation",t,e)}function T3(t,e){x("NumberLiteralTypeAnnotation",t,e)}function g3(t,e){x("NumberTypeAnnotation",t,e)}function x3(t,e){x("ObjectTypeAnnotation",t,e)}function b3(t,e){x("ObjectTypeInternalSlot",t,e)}function S3(t,e){x("ObjectTypeCallProperty",t,e)}function E3(t,e){x("ObjectTypeIndexer",t,e)}function P3(t,e){x("ObjectTypeProperty",t,e)}function v3(t,e){x("ObjectTypeSpreadProperty",t,e)}function A3(t,e){x("OpaqueType",t,e)}function w3(t,e){x("QualifiedTypeIdentifier",t,e)}function C3(t,e){x("StringLiteralTypeAnnotation",t,e)}function I3(t,e){x("StringTypeAnnotation",t,e)}function k3(t,e){x("SymbolTypeAnnotation",t,e)}function _3(t,e){x("ThisTypeAnnotation",t,e)}function O3(t,e){x("TupleTypeAnnotation",t,e)}function N3(t,e){x("TypeofTypeAnnotation",t,e)}function D3(t,e){x("TypeAlias",t,e)}function L3(t,e){x("TypeAnnotation",t,e)}function M3(t,e){x("TypeCastExpression",t,e)}function F3(t,e){x("TypeParameter",t,e)}function B3(t,e){x("TypeParameterDeclaration",t,e)}function j3(t,e){x("TypeParameterInstantiation",t,e)}function R3(t,e){x("UnionTypeAnnotation",t,e)}function $3(t,e){x("Variance",t,e)}function q3(t,e){x("VoidTypeAnnotation",t,e)}function U3(t,e){x("EnumDeclaration",t,e)}function K3(t,e){x("EnumBooleanBody",t,e)}function V3(t,e){x("EnumNumberBody",t,e)}function W3(t,e){x("EnumStringBody",t,e)}function Y3(t,e){x("EnumSymbolBody",t,e)}function z3(t,e){x("EnumBooleanMember",t,e)}function J3(t,e){x("EnumNumberMember",t,e)}function X3(t,e){x("EnumStringMember",t,e)}function H3(t,e){x("EnumDefaultedMember",t,e)}function G3(t,e){x("IndexedAccessType",t,e)}function Q3(t,e){x("OptionalIndexedAccessType",t,e)}function Z3(t,e){x("JSXAttribute",t,e)}function eF(t,e){x("JSXClosingElement",t,e)}function tF(t,e){x("JSXElement",t,e)}function iF(t,e){x("JSXEmptyExpression",t,e)}function rF(t,e){x("JSXExpressionContainer",t,e)}function sF(t,e){x("JSXSpreadChild",t,e)}function nF(t,e){x("JSXIdentifier",t,e)}function aF(t,e){x("JSXMemberExpression",t,e)}function oF(t,e){x("JSXNamespacedName",t,e)}function lF(t,e){x("JSXOpeningElement",t,e)}function cF(t,e){x("JSXSpreadAttribute",t,e)}function uF(t,e){x("JSXText",t,e)}function pF(t,e){x("JSXFragment",t,e)}function fF(t,e){x("JSXOpeningFragment",t,e)}function hF(t,e){x("JSXClosingFragment",t,e)}function dF(t,e){x("Noop",t,e)}function mF(t,e){x("Placeholder",t,e)}function yF(t,e){x("V8IntrinsicIdentifier",t,e)}function TF(t,e){x("ArgumentPlaceholder",t,e)}function gF(t,e){x("BindExpression",t,e)}function xF(t,e){x("Decorator",t,e)}function bF(t,e){x("DoExpression",t,e)}function SF(t,e){x("ExportDefaultSpecifier",t,e)}function EF(t,e){x("RecordExpression",t,e)}function PF(t,e){x("TupleExpression",t,e)}function vF(t,e){x("DecimalLiteral",t,e)}function AF(t,e){x("ModuleExpression",t,e)}function wF(t,e){x("TopicReference",t,e)}function CF(t,e){x("PipelineTopicExpression",t,e)}function IF(t,e){x("PipelineBareFunction",t,e)}function kF(t,e){x("PipelinePrimaryTopicReference",t,e)}function _F(t,e){x("VoidPattern",t,e)}function OF(t,e){x("TSParameterProperty",t,e)}function NF(t,e){x("TSDeclareFunction",t,e)}function DF(t,e){x("TSDeclareMethod",t,e)}function LF(t,e){x("TSQualifiedName",t,e)}function MF(t,e){x("TSCallSignatureDeclaration",t,e)}function FF(t,e){x("TSConstructSignatureDeclaration",t,e)}function BF(t,e){x("TSPropertySignature",t,e)}function jF(t,e){x("TSMethodSignature",t,e)}function RF(t,e){x("TSIndexSignature",t,e)}function $F(t,e){x("TSAnyKeyword",t,e)}function qF(t,e){x("TSBooleanKeyword",t,e)}function UF(t,e){x("TSBigIntKeyword",t,e)}function KF(t,e){x("TSIntrinsicKeyword",t,e)}function VF(t,e){x("TSNeverKeyword",t,e)}function WF(t,e){x("TSNullKeyword",t,e)}function YF(t,e){x("TSNumberKeyword",t,e)}function zF(t,e){x("TSObjectKeyword",t,e)}function JF(t,e){x("TSStringKeyword",t,e)}function XF(t,e){x("TSSymbolKeyword",t,e)}function HF(t,e){x("TSUndefinedKeyword",t,e)}function GF(t,e){x("TSUnknownKeyword",t,e)}function QF(t,e){x("TSVoidKeyword",t,e)}function ZF(t,e){x("TSThisType",t,e)}function eB(t,e){x("TSFunctionType",t,e)}function tB(t,e){x("TSConstructorType",t,e)}function iB(t,e){x("TSTypeReference",t,e)}function rB(t,e){x("TSTypePredicate",t,e)}function sB(t,e){x("TSTypeQuery",t,e)}function nB(t,e){x("TSTypeLiteral",t,e)}function aB(t,e){x("TSArrayType",t,e)}function oB(t,e){x("TSTupleType",t,e)}function lB(t,e){x("TSOptionalType",t,e)}function cB(t,e){x("TSRestType",t,e)}function uB(t,e){x("TSNamedTupleMember",t,e)}function pB(t,e){x("TSUnionType",t,e)}function fB(t,e){x("TSIntersectionType",t,e)}function hB(t,e){x("TSConditionalType",t,e)}function dB(t,e){x("TSInferType",t,e)}function mB(t,e){x("TSParenthesizedType",t,e)}function yB(t,e){x("TSTypeOperator",t,e)}function TB(t,e){x("TSIndexedAccessType",t,e)}function gB(t,e){x("TSMappedType",t,e)}function xB(t,e){x("TSTemplateLiteralType",t,e)}function bB(t,e){x("TSLiteralType",t,e)}function SB(t,e){x("TSExpressionWithTypeArguments",t,e)}function EB(t,e){x("TSInterfaceDeclaration",t,e)}function PB(t,e){x("TSInterfaceBody",t,e)}function vB(t,e){x("TSTypeAliasDeclaration",t,e)}function AB(t,e){x("TSInstantiationExpression",t,e)}function wB(t,e){x("TSAsExpression",t,e)}function CB(t,e){x("TSSatisfiesExpression",t,e)}function IB(t,e){x("TSTypeAssertion",t,e)}function kB(t,e){x("TSEnumBody",t,e)}function _B(t,e){x("TSEnumDeclaration",t,e)}function OB(t,e){x("TSEnumMember",t,e)}function NB(t,e){x("TSModuleDeclaration",t,e)}function DB(t,e){x("TSModuleBlock",t,e)}function LB(t,e){x("TSImportType",t,e)}function MB(t,e){x("TSImportEqualsDeclaration",t,e)}function FB(t,e){x("TSExternalModuleReference",t,e)}function BB(t,e){x("TSNonNullExpression",t,e)}function jB(t,e){x("TSExportAssignment",t,e)}function RB(t,e){x("TSNamespaceExportDeclaration",t,e)}function $B(t,e){x("TSTypeAnnotation",t,e)}function qB(t,e){x("TSTypeParameterInstantiation",t,e)}function UB(t,e){x("TSTypeParameterDeclaration",t,e)}function KB(t,e){x("TSTypeParameter",t,e)}function VB(t,e){x("Standardized",t,e)}function WB(t,e){x("Expression",t,e)}function YB(t,e){x("Binary",t,e)}function zB(t,e){x("Scopable",t,e)}function JB(t,e){x("BlockParent",t,e)}function XB(t,e){x("Block",t,e)}function HB(t,e){x("Statement",t,e)}function GB(t,e){x("Terminatorless",t,e)}function QB(t,e){x("CompletionStatement",t,e)}function ZB(t,e){x("Conditional",t,e)}function ej(t,e){x("Loop",t,e)}function tj(t,e){x("While",t,e)}function ij(t,e){x("ExpressionWrapper",t,e)}function rj(t,e){x("For",t,e)}function sj(t,e){x("ForXStatement",t,e)}function nj(t,e){x("Function",t,e)}function aj(t,e){x("FunctionParent",t,e)}function oj(t,e){x("Pureish",t,e)}function lj(t,e){x("Declaration",t,e)}function cj(t,e){x("FunctionParameter",t,e)}function uj(t,e){x("PatternLike",t,e)}function pj(t,e){x("LVal",t,e)}function fj(t,e){x("TSEntityName",t,e)}function hj(t,e){x("Literal",t,e)}function dj(t,e){x("Immutable",t,e)}function mj(t,e){x("UserWhitespacable",t,e)}function yj(t,e){x("Method",t,e)}function Tj(t,e){x("ObjectMember",t,e)}function gj(t,e){x("Property",t,e)}function xj(t,e){x("UnaryLike",t,e)}function bj(t,e){x("Pattern",t,e)}function Sj(t,e){x("Class",t,e)}function Ej(t,e){x("ImportOrExportDeclaration",t,e)}function Pj(t,e){x("ExportDeclaration",t,e)}function vj(t,e){x("ModuleSpecifier",t,e)}function Aj(t,e){x("Accessor",t,e)}function wj(t,e){x("Private",t,e)}function Cj(t,e){x("Flow",t,e)}function Ij(t,e){x("FlowType",t,e)}function kj(t,e){x("FlowBaseAnnotation",t,e)}function _j(t,e){x("FlowDeclaration",t,e)}function Oj(t,e){x("FlowPredicate",t,e)}function Nj(t,e){x("EnumBody",t,e)}function Dj(t,e){x("EnumMember",t,e)}function Lj(t,e){x("JSX",t,e)}function Mj(t,e){x("Miscellaneous",t,e)}function Fj(t,e){x("TypeScript",t,e)}function Bj(t,e){x("TSTypeElement",t,e)}function jj(t,e){x("TSType",t,e)}function Rj(t,e){x("TSBaseType",t,e)}function $j(t,e){(0,Pn.default)("assertNumberLiteral","assertNumericLiteral"),x("NumberLiteral",t,e)}function qj(t,e){(0,Pn.default)("assertRegexLiteral","assertRegExpLiteral"),x("RegexLiteral",t,e)}function Uj(t,e){(0,Pn.default)("assertRestProperty","assertRestElement"),x("RestProperty",t,e)}function Kj(t,e){(0,Pn.default)("assertSpreadProperty","assertSpreadElement"),x("SpreadProperty",t,e)}function Vj(t,e){(0,Pn.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),x("ModuleDeclaration",t,e)}});var xy=_(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.default=void 0;var yi=Jt(),use=io.default=Wj;function Wj(t){switch(t){case"string":return(0,yi.stringTypeAnnotation)();case"number":return(0,yi.numberTypeAnnotation)();case"undefined":return(0,yi.voidTypeAnnotation)();case"boolean":return(0,yi.booleanTypeAnnotation)();case"function":return(0,yi.genericTypeAnnotation)((0,yi.identifier)("Function"));case"object":return(0,yi.genericTypeAnnotation)((0,yi.identifier)("Object"));case"symbol":return(0,yi.genericTypeAnnotation)((0,yi.identifier)("Symbol"));case"bigint":return(0,yi.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+t)}});var hu=_(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.default=Sy;var vn=lt();function by(t){return(0,vn.isIdentifier)(t)?t.name:`${t.id.name}.${by(t.qualification)}`}function Sy(t){let e=Array.from(t),i=new Map,r=new Map,s=new Set,n=[];for(let a=0;a<e.length;a++){let l=e[a];if(l&&!n.includes(l)){if((0,vn.isAnyTypeAnnotation)(l))return[l];if((0,vn.isFlowBaseAnnotation)(l)){r.set(l.type,l);continue}if((0,vn.isUnionTypeAnnotation)(l)){s.has(l.types)||(e.push(...l.types),s.add(l.types));continue}if((0,vn.isGenericTypeAnnotation)(l)){let c=by(l.id);if(i.has(c)){let o=i.get(c);o.typeParameters?l.typeParameters&&(o.typeParameters.params.push(...l.typeParameters.params),o.typeParameters.params=Sy(o.typeParameters.params)):o=l.typeParameters}else i.set(c,l);continue}n.push(l)}}for(let[,a]of r)n.push(a);for(let[,a]of i)n.push(a);return n}});var Ey=_(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.default=Jj;var Yj=Jt(),zj=hu();function Jj(t){let e=(0,zj.default)(t);return e.length===1?e[0]:(0,Yj.unionTypeAnnotation)(e)}});var Ay=_(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.default=vy;var Ps=lt();function Py(t){return(0,Ps.isIdentifier)(t)?t.name:(0,Ps.isThisExpression)(t)?"this":`${t.right.name}.${Py(t.left)}`}function vy(t){let e=Array.from(t),i=new Map,r=new Map,s=new Set,n=[];for(let a=0;a<e.length;a++){let l=e[a];if(!l||n.includes(l))continue;if((0,Ps.isTSAnyKeyword)(l))return[l];if((0,Ps.isTSBaseType)(l)){r.set(l.type,l);continue}if((0,Ps.isTSUnionType)(l)){s.has(l.types)||(e.push(...l.types),s.add(l.types));continue}let c="typeParameters";if((0,Ps.isTSTypeReference)(l)&&l[c]){let o=l[c],u=Py(l.typeName);if(i.has(u)){let f=i.get(u),d=f[c];d?(d.params.push(...o.params),d.params=vy(d.params)):f=o}else i.set(u,l);continue}n.push(l)}for(let[,a]of r)n.push(a);for(let[,a]of i)n.push(a);return n}});var wy=_(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.default=Qj;var Xj=Jt(),Hj=Ay(),Gj=lt();function Qj(t){let e=t.map(r=>(0,Gj.isTSTypeAnnotation)(r)?r.typeAnnotation:r),i=(0,Hj.default)(e);return i.length===1?i[0]:(0,Xj.tsUnionType)(i)}});var gu=_(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.buildUndefinedNode=Zj;var Cy=Jt();function Zj(){return(0,Cy.unaryExpression)("void",(0,Cy.numericLiteral)(0),!0)}});var lr=_(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.default=e4;var Iy=ai(),ky=lt(),{hasOwn:Oi}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function _y(t,e,i,r){return t&&typeof t.type=="string"?Oy(t,e,i,r):t}function xu(t,e,i,r){return Array.isArray(t)?t.map(s=>_y(s,e,i,r)):_y(t,e,i,r)}function e4(t,e=!0,i=!1){return Oy(t,e,i,new Map)}function Oy(t,e=!0,i=!1,r){if(!t)return t;let{type:s}=t,n={type:t.type};if((0,ky.isIdentifier)(t))n.name=t.name,Oi(t,"optional")&&typeof t.optional=="boolean"&&(n.optional=t.optional),Oi(t,"typeAnnotation")&&(n.typeAnnotation=e?xu(t.typeAnnotation,!0,i,r):t.typeAnnotation),Oi(t,"decorators")&&(n.decorators=e?xu(t.decorators,!0,i,r):t.decorators);else if(Oi(Iy.NODE_FIELDS,s))for(let a of Object.keys(Iy.NODE_FIELDS[s]))Oi(t,a)&&(e?n[a]=(0,ky.isFile)(t)&&a==="comments"?ro(t.comments,e,i,r):xu(t[a],!0,i,r):n[a]=t[a]);else throw new Error(`Unknown node type: "${s}"`);return Oi(t,"loc")&&(i?n.loc=null:n.loc=t.loc),Oi(t,"leadingComments")&&(n.leadingComments=ro(t.leadingComments,e,i,r)),Oi(t,"innerComments")&&(n.innerComments=ro(t.innerComments,e,i,r)),Oi(t,"trailingComments")&&(n.trailingComments=ro(t.trailingComments,e,i,r)),Oi(t,"extra")&&(n.extra=Object.assign({},t.extra)),n}function ro(t,e,i,r){return!t||!e?t:t.map(s=>{let n=r.get(s);if(n)return n;let{type:a,value:l,loc:c}=s,o={type:a,value:l,loc:c};return i&&(o.loc=null),r.set(s,o),o})}});var Ny=_(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.default=i4;var t4=lr();function i4(t){return(0,t4.default)(t,!1)}});var Dy=_(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.default=s4;var r4=lr();function s4(t){return(0,r4.default)(t)}});var Ly=_(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.default=a4;var n4=lr();function a4(t){return(0,n4.default)(t,!0,!0)}});var My=_(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.default=l4;var o4=lr();function l4(t){return(0,o4.default)(t,!1,!0)}});var wu=_(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.default=c4;function c4(t,e,i){if(!i||!t)return t;let r=`${e}Comments`;return t[r]?e==="leading"?t[r]=i.concat(t[r]):t[r].push(...i):t[r]=i,t}});var Fy=_(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.default=p4;var u4=wu();function p4(t,e,i,r){return(0,u4.default)(t,e,[{type:r?"CommentLine":"CommentBlock",value:i}])}});var so=_(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.default=f4;function f4(t,e,i){e&&i&&(e[t]=Array.from(new Set([].concat(e[t],i[t]).filter(Boolean))))}});var _u=_(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.default=d4;var h4=so();function d4(t,e){(0,h4.default)("innerComments",t,e)}});var Nu=_(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.default=y4;var m4=so();function y4(t,e){(0,m4.default)("leadingComments",t,e)}});var Lu=_(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.default=g4;var T4=so();function g4(t,e){(0,T4.default)("trailingComments",t,e)}});var Fu=_(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.default=E4;var x4=Lu(),b4=Nu(),S4=_u();function E4(t,e){return(0,x4.default)(t,e),(0,b4.default)(t,e),(0,S4.default)(t,e),t}});var By=_(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=v4;var P4=gs();function v4(t){return P4.COMMENT_KEYS.forEach(e=>{t[e]=null}),t}});var jy=_(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.WHILE_TYPES=q.USERWHITESPACABLE_TYPES=q.UNARYLIKE_TYPES=q.TYPESCRIPT_TYPES=q.TSTYPE_TYPES=q.TSTYPEELEMENT_TYPES=q.TSENTITYNAME_TYPES=q.TSBASETYPE_TYPES=q.TERMINATORLESS_TYPES=q.STATEMENT_TYPES=q.STANDARDIZED_TYPES=q.SCOPABLE_TYPES=q.PUREISH_TYPES=q.PROPERTY_TYPES=q.PRIVATE_TYPES=q.PATTERN_TYPES=q.PATTERNLIKE_TYPES=q.OBJECTMEMBER_TYPES=q.MODULESPECIFIER_TYPES=q.MODULEDECLARATION_TYPES=q.MISCELLANEOUS_TYPES=q.METHOD_TYPES=q.LVAL_TYPES=q.LOOP_TYPES=q.LITERAL_TYPES=q.JSX_TYPES=q.IMPORTOREXPORTDECLARATION_TYPES=q.IMMUTABLE_TYPES=q.FUNCTION_TYPES=q.FUNCTIONPARENT_TYPES=q.FUNCTIONPARAMETER_TYPES=q.FOR_TYPES=q.FORXSTATEMENT_TYPES=q.FLOW_TYPES=q.FLOWTYPE_TYPES=q.FLOWPREDICATE_TYPES=q.FLOWDECLARATION_TYPES=q.FLOWBASEANNOTATION_TYPES=q.EXPRESSION_TYPES=q.EXPRESSIONWRAPPER_TYPES=q.EXPORTDECLARATION_TYPES=q.ENUMMEMBER_TYPES=q.ENUMBODY_TYPES=q.DECLARATION_TYPES=q.CONDITIONAL_TYPES=q.COMPLETIONSTATEMENT_TYPES=q.CLASS_TYPES=q.BLOCK_TYPES=q.BLOCKPARENT_TYPES=q.BINARY_TYPES=q.ACCESSOR_TYPES=void 0;var de=ai(),_se=q.STANDARDIZED_TYPES=de.FLIPPED_ALIAS_KEYS.Standardized,Ose=q.EXPRESSION_TYPES=de.FLIPPED_ALIAS_KEYS.Expression,Nse=q.BINARY_TYPES=de.FLIPPED_ALIAS_KEYS.Binary,Dse=q.SCOPABLE_TYPES=de.FLIPPED_ALIAS_KEYS.Scopable,Lse=q.BLOCKPARENT_TYPES=de.FLIPPED_ALIAS_KEYS.BlockParent,Mse=q.BLOCK_TYPES=de.FLIPPED_ALIAS_KEYS.Block,Fse=q.STATEMENT_TYPES=de.FLIPPED_ALIAS_KEYS.Statement,Bse=q.TERMINATORLESS_TYPES=de.FLIPPED_ALIAS_KEYS.Terminatorless,jse=q.COMPLETIONSTATEMENT_TYPES=de.FLIPPED_ALIAS_KEYS.CompletionStatement,Rse=q.CONDITIONAL_TYPES=de.FLIPPED_ALIAS_KEYS.Conditional,$se=q.LOOP_TYPES=de.FLIPPED_ALIAS_KEYS.Loop,qse=q.WHILE_TYPES=de.FLIPPED_ALIAS_KEYS.While,Use=q.EXPRESSIONWRAPPER_TYPES=de.FLIPPED_ALIAS_KEYS.ExpressionWrapper,Kse=q.FOR_TYPES=de.FLIPPED_ALIAS_KEYS.For,Vse=q.FORXSTATEMENT_TYPES=de.FLIPPED_ALIAS_KEYS.ForXStatement,Wse=q.FUNCTION_TYPES=de.FLIPPED_ALIAS_KEYS.Function,Yse=q.FUNCTIONPARENT_TYPES=de.FLIPPED_ALIAS_KEYS.FunctionParent,zse=q.PUREISH_TYPES=de.FLIPPED_ALIAS_KEYS.Pureish,Jse=q.DECLARATION_TYPES=de.FLIPPED_ALIAS_KEYS.Declaration,Xse=q.FUNCTIONPARAMETER_TYPES=de.FLIPPED_ALIAS_KEYS.FunctionParameter,Hse=q.PATTERNLIKE_TYPES=de.FLIPPED_ALIAS_KEYS.PatternLike,Gse=q.LVAL_TYPES=de.FLIPPED_ALIAS_KEYS.LVal,Qse=q.TSENTITYNAME_TYPES=de.FLIPPED_ALIAS_KEYS.TSEntityName,Zse=q.LITERAL_TYPES=de.FLIPPED_ALIAS_KEYS.Literal,ene=q.IMMUTABLE_TYPES=de.FLIPPED_ALIAS_KEYS.Immutable,tne=q.USERWHITESPACABLE_TYPES=de.FLIPPED_ALIAS_KEYS.UserWhitespacable,ine=q.METHOD_TYPES=de.FLIPPED_ALIAS_KEYS.Method,rne=q.OBJECTMEMBER_TYPES=de.FLIPPED_ALIAS_KEYS.ObjectMember,sne=q.PROPERTY_TYPES=de.FLIPPED_ALIAS_KEYS.Property,nne=q.UNARYLIKE_TYPES=de.FLIPPED_ALIAS_KEYS.UnaryLike,ane=q.PATTERN_TYPES=de.FLIPPED_ALIAS_KEYS.Pattern,one=q.CLASS_TYPES=de.FLIPPED_ALIAS_KEYS.Class,A4=q.IMPORTOREXPORTDECLARATION_TYPES=de.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,lne=q.EXPORTDECLARATION_TYPES=de.FLIPPED_ALIAS_KEYS.ExportDeclaration,cne=q.MODULESPECIFIER_TYPES=de.FLIPPED_ALIAS_KEYS.ModuleSpecifier,une=q.ACCESSOR_TYPES=de.FLIPPED_ALIAS_KEYS.Accessor,pne=q.PRIVATE_TYPES=de.FLIPPED_ALIAS_KEYS.Private,fne=q.FLOW_TYPES=de.FLIPPED_ALIAS_KEYS.Flow,hne=q.FLOWTYPE_TYPES=de.FLIPPED_ALIAS_KEYS.FlowType,dne=q.FLOWBASEANNOTATION_TYPES=de.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,mne=q.FLOWDECLARATION_TYPES=de.FLIPPED_ALIAS_KEYS.FlowDeclaration,yne=q.FLOWPREDICATE_TYPES=de.FLIPPED_ALIAS_KEYS.FlowPredicate,Tne=q.ENUMBODY_TYPES=de.FLIPPED_ALIAS_KEYS.EnumBody,gne=q.ENUMMEMBER_TYPES=de.FLIPPED_ALIAS_KEYS.EnumMember,xne=q.JSX_TYPES=de.FLIPPED_ALIAS_KEYS.JSX,bne=q.MISCELLANEOUS_TYPES=de.FLIPPED_ALIAS_KEYS.Miscellaneous,Sne=q.TYPESCRIPT_TYPES=de.FLIPPED_ALIAS_KEYS.TypeScript,Ene=q.TSTYPEELEMENT_TYPES=de.FLIPPED_ALIAS_KEYS.TSTypeElement,Pne=q.TSTYPE_TYPES=de.FLIPPED_ALIAS_KEYS.TSType,vne=q.TSBASETYPE_TYPES=de.FLIPPED_ALIAS_KEYS.TSBaseType,Ane=q.MODULEDECLARATION_TYPES=A4});var $u=_(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default=w4;var no=lt(),ju=Jt();function w4(t,e){if((0,no.isBlockStatement)(t))return t;let i=[];return(0,no.isEmptyStatement)(t)?i=[]:((0,no.isStatement)(t)||((0,no.isFunction)(e)?t=(0,ju.returnStatement)(t):t=(0,ju.expressionStatement)(t)),i=[t]),(0,ju.blockStatement)(i)}});var Ry=_(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.default=I4;var C4=$u();function I4(t,e="body"){let i=(0,C4.default)(t[e],t);return t[e]=i,i}});var Ku=_(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.default=O4;var k4=Ts(),_4=Tn();function O4(t){t=t+"";let e="";for(let i of t)e+=(0,_4.isIdentifierChar)(i.codePointAt(0))?i:"-";return e=e.replace(/^[-0-9]+/,""),e=e.replace(/[-\s]+(.)?/g,function(i,r){return r?r.toUpperCase():""}),(0,k4.default)(e)||(e=`_${e}`),e||"_"}});var $y=_(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.default=D4;var N4=Ku();function D4(t){return t=(0,N4.default)(t),(t==="eval"||t==="arguments")&&(t="_"+t),t}});var qy=_(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.default=F4;var L4=lt(),M4=Jt();function F4(t,e=t.key||t.property){return!t.computed&&(0,L4.isIdentifier)(e)&&(e=(0,M4.stringLiteral)(e.name)),e}});var Uy=_(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=void 0;var An=lt(),Nne=ao.default=B4;function B4(t){if((0,An.isExpressionStatement)(t)&&(t=t.expression),(0,An.isExpression)(t))return t;if((0,An.isClass)(t)?(t.type="ClassExpression",t.abstract=!1):(0,An.isFunction)(t)&&(t.type="FunctionExpression"),!(0,An.isExpression)(t))throw new Error(`cannot turn ${t.type} to an expression`);return t}});var zu=_(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.default=wn;var j4=ai(),Ky=Symbol(),Vy=Symbol();function wn(t,e,i){if(!t)return!1;let r=j4.VISITOR_KEYS[t.type];if(!r)return!1;i=i||{};let s=e(t,i);if(s!==void 0)switch(s){case Ky:return!1;case Vy:return!0}for(let n of r){let a=t[n];if(a){if(Array.isArray(a)){for(let l of a)if(wn(l,e,i))return!0}else if(wn(a,e,i))return!0}}return!1}wn.skip=Ky;wn.stop=Vy});var Xu=_(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.default=q4;var R4=gs(),Wy=["tokens","start","end","loc","raw","rawValue"],$4=[...R4.COMMENT_KEYS,"comments",...Wy];function q4(t,e={}){let i=e.preserveComments?Wy:$4;for(let s of i)t[s]!=null&&(t[s]=void 0);for(let s of Object.keys(t))s[0]==="_"&&t[s]!=null&&(t[s]=void 0);let r=Object.getOwnPropertySymbols(t);for(let s of r)t[s]=null}});var Gu=_(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.default=V4;var U4=zu(),K4=Xu();function V4(t,e){return(0,U4.default)(t,K4.default,e),t}});var zy=_(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.default=Dr;var Yy=lt(),W4=lr(),Y4=Gu();function Dr(t,e=t.key){let i;return t.kind==="method"?Dr.increment()+"":((0,Yy.isIdentifier)(e)?i=e.name:(0,Yy.isStringLiteral)(e)?i=JSON.stringify(e.value):i=JSON.stringify((0,Y4.default)((0,W4.default)(e))),t.computed&&(i=`[${i}]`),t.static&&(i=`static:${i}`),i)}Dr.uid=0;Dr.increment=function(){return Dr.uid>=Number.MAX_SAFE_INTEGER?Dr.uid=0:Dr.uid++}});var Jy=_(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.default=void 0;var oo=lt(),z4=Jt(),jne=lo.default=J4;function J4(t,e){if((0,oo.isStatement)(t))return t;let i=!1,r;if((0,oo.isClass)(t))i=!0,r="ClassDeclaration";else if((0,oo.isFunction)(t))i=!0,r="FunctionDeclaration";else if((0,oo.isAssignmentExpression)(t))return(0,z4.expressionStatement)(t);if(i&&!t.id&&(r=!1),!r){if(e)return!1;throw new Error(`cannot turn ${t.type} to a statement`)}return t.type=r,t}});var Xy=_(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.default=void 0;var X4=Ts(),mt=Jt(),$ne=co.default=Zu,H4=Function.call.bind(Object.prototype.toString);function G4(t){return H4(t)==="[object RegExp]"}function Q4(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null}function Zu(t){if(t===void 0)return(0,mt.identifier)("undefined");if(t===!0||t===!1)return(0,mt.booleanLiteral)(t);if(t===null)return(0,mt.nullLiteral)();if(typeof t=="string")return(0,mt.stringLiteral)(t);if(typeof t=="number"){let e;if(Number.isFinite(t))e=(0,mt.numericLiteral)(Math.abs(t));else{let i;Number.isNaN(t)?i=(0,mt.numericLiteral)(0):i=(0,mt.numericLiteral)(1),e=(0,mt.binaryExpression)("/",i,(0,mt.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,mt.unaryExpression)("-",e)),e}if(typeof t=="bigint")return t<0?(0,mt.unaryExpression)("-",(0,mt.bigIntLiteral)(-t)):(0,mt.bigIntLiteral)(t);if(G4(t)){let e=t.source,i=/\/([a-z]*)$/.exec(t.toString())[1];return(0,mt.regExpLiteral)(e,i)}if(Array.isArray(t))return(0,mt.arrayExpression)(t.map(Zu));if(Q4(t)){let e=[];for(let i of Object.keys(t)){let r,s=!1;(0,X4.default)(i)?i==="__proto__"?(s=!0,r=(0,mt.stringLiteral)(i)):r=(0,mt.identifier)(i):r=(0,mt.stringLiteral)(i),e.push((0,mt.objectProperty)(r,Zu(t[i]),s))}return(0,mt.objectExpression)(e)}throw new Error("don't know how to turn this value into a node")}});var Hy=_(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.default=eR;var Z4=Jt();function eR(t,e,i=!1){return t.object=(0,Z4.memberExpression)(t.object,t.property,t.computed),t.property=e,t.computed=!!i,t}});var Qy=_(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.default=iR;var Gy=gs(),tR=Fu();function iR(t,e){if(!t||!e)return t;for(let i of Gy.INHERIT_KEYS.optional)t[i]==null&&(t[i]=e[i]);for(let i of Object.keys(e))i[0]==="_"&&i!=="__clone"&&(t[i]=e[i]);for(let i of Gy.INHERIT_KEYS.force)t[i]=e[i];return(0,tR.default)(t,e),t}});var Zy=_(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.default=nR;var rR=Jt(),sR=be();function nR(t,e){if((0,sR.isSuper)(t.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return t.object=(0,rR.memberExpression)(e,t.object),t}});var e0=_(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.default=aR;function aR(t){let e=[].concat(t),i=Object.create(null);for(;e.length;){let r=e.pop();if(r)switch(r.type){case"ArrayPattern":e.push(...r.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":e.push(r.left);break;case"ObjectPattern":e.push(...r.properties);break;case"ObjectProperty":e.push(r.value);break;case"RestElement":case"UpdateExpression":e.push(r.argument);break;case"UnaryExpression":r.operator==="delete"&&e.push(r.argument);break;case"Identifier":i[r.name]=r;break;default:break}}return i}});var Cn=_(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.default=sp;var Vi=lt();function sp(t,e,i,r){let s=[].concat(t),n=Object.create(null);for(;s.length;){let a=s.shift();if(!a||r&&((0,Vi.isAssignmentExpression)(a)||(0,Vi.isUnaryExpression)(a)||(0,Vi.isUpdateExpression)(a)))continue;if((0,Vi.isIdentifier)(a)){e?(n[a.name]=n[a.name]||[]).push(a):n[a.name]=a;continue}if((0,Vi.isExportDeclaration)(a)&&!(0,Vi.isExportAllDeclaration)(a)){(0,Vi.isDeclaration)(a.declaration)&&s.push(a.declaration);continue}if(i){if((0,Vi.isFunctionDeclaration)(a)){s.push(a.id);continue}if((0,Vi.isFunctionExpression)(a))continue}let l=sp.keys[a.type];if(l)for(let c=0;c<l.length;c++){let o=l[c],u=a[o];u&&(Array.isArray(u)?s.push(...u):s.push(u))}}return n}var oR={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};sp.keys=oR});var t0=_(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.default=void 0;var lR=Cn(),zne=uo.default=cR;function cR(t,e){return(0,lR.default)(t,e,!0)}});var r0=_(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.default=pR;var oi=lt();function uR(t){return(0,oi.isNullLiteral)(t)?"null":(0,oi.isRegExpLiteral)(t)?`/${t.pattern}/${t.flags}`:(0,oi.isTemplateLiteral)(t)?t.quasis.map(e=>e.value.raw).join(""):t.value!==void 0?String(t.value):null}function i0(t){if(!t.computed||(0,oi.isLiteral)(t.key))return t.key}function pR(t,e){if("id"in t&&t.id)return{name:t.id.name,originalNode:t.id};let i="",r;if((0,oi.isObjectProperty)(e,{value:t})?r=i0(e):(0,oi.isObjectMethod)(t)||(0,oi.isClassMethod)(t)?(r=i0(t),t.kind==="get"?i="get ":t.kind==="set"&&(i="set ")):(0,oi.isVariableDeclarator)(e,{init:t})?r=e.id:(0,oi.isAssignmentExpression)(e,{operator:"=",right:t})&&(r=e.left),!r)return null;let s=(0,oi.isLiteral)(r)?uR(r):(0,oi.isIdentifier)(r)?r.name:(0,oi.isPrivateName)(r)?r.id.name:null;return s==null?null:{name:i+s,originalNode:r}}});var s0=_(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.default=hR;var fR=ai();function hR(t,e,i){typeof e=="function"&&(e={enter:e});let{enter:r,exit:s}=e;op(t,r,s,i,[])}function op(t,e,i,r,s){let n=fR.VISITOR_KEYS[t.type];if(n){e&&e(t,s,r);for(let a of n){let l=t[a];if(Array.isArray(l))for(let c=0;c<l.length;c++){let o=l[c];o&&(s.push({node:t,key:a,index:c}),op(o,e,i,r,s),s.pop())}else l&&(s.push({node:t,key:a}),op(l,e,i,r,s),s.pop())}i&&i(t,s,r)}}});var n0=_(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.default=mR;var dR=Cn();function mR(t,e,i){if(i&&t.type==="Identifier"&&e.type==="ObjectProperty"&&i.type==="ObjectExpression")return!1;let r=dR.default.keys[e.type];if(r)for(let s=0;s<r.length;s++){let n=r[s],a=e[n];if(Array.isArray(a)){if(a.includes(t))return!0}else if(a===t)return!0}return!1}});var pp=_(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.default=TR;var yR=lt();a0=Symbol.for("var used to be block scoped");var a0;function TR(t){return(0,yR.isVariableDeclaration)(t)&&(t.kind!=="var"||t[a0])}});var l0=_(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.default=xR;var o0=lt(),gR=pp();function xR(t){return(0,o0.isFunctionDeclaration)(t)||(0,o0.isClassDeclaration)(t)||(0,gR.default)(t)}});var c0=_(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.default=ER;var bR=Ya(),SR=lt();function ER(t){return(0,bR.default)(t.type,"Immutable")?!0:(0,SR.isIdentifier)(t)?t.name==="undefined":!1}});var p0=_(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.default=dp;var u0=ai();function dp(t,e){if(typeof t!="object"||typeof e!="object"||t==null||e==null)return t===e;if(t.type!==e.type)return!1;let i=Object.keys(u0.NODE_FIELDS[t.type]||t.type),r=u0.VISITOR_KEYS[t.type];for(let s of i){let n=t[s],a=e[s];if(typeof n!=typeof a)return!1;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let l=0;l<n.length;l++)if(!dp(n[l],a[l]))return!1;continue}if(typeof n=="object"&&!(r!=null&&r.includes(s))){for(let l of Object.keys(n))if(n[l]!==a[l])return!1;continue}if(!dp(n,a))return!1}}return!0}});var f0=_(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.default=PR;function PR(t,e,i){switch(e.type){case"MemberExpression":case"OptionalMemberExpression":return e.property===t?!!e.computed:e.object===t;case"JSXMemberExpression":return e.object===t;case"VariableDeclarator":return e.init===t;case"ArrowFunctionExpression":return e.body===t;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return e.key===t?!!e.computed:!1;case"ObjectProperty":return e.key===t?!!e.computed:!i||i.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return e.key===t?!!e.computed:!0;case"ClassPrivateProperty":return e.key!==t;case"ClassDeclaration":case"ClassExpression":return e.superClass===t;case"AssignmentExpression":return e.right===t;case"AssignmentPattern":return e.right===t;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return i!=null&&i.source?!1:e.local===t;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return e.key!==t;case"TSEnumMember":return e.id!==t;case"TSPropertySignature":return e.key===t?!!e.computed:!0}return!0}});var h0=_(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.default=vR;var Lr=lt();function vR(t,e){return(0,Lr.isBlockStatement)(t)&&((0,Lr.isFunction)(e)||(0,Lr.isCatchClause)(e))?!1:(0,Lr.isPattern)(t)&&((0,Lr.isFunction)(e)||(0,Lr.isCatchClause)(e))?!0:(0,Lr.isScopable)(t)}});var m0=_(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.default=AR;var d0=lt();function AR(t){return(0,d0.isImportDefaultSpecifier)(t)||(0,d0.isIdentifier)(t.imported||t.exported,{name:"default"})}});var y0=_(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.default=IR;var wR=Ts(),CR=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function IR(t){return(0,wR.default)(t)&&!CR.has(t)}});var g0=_(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.default=_R;var kR=lt();T0=Symbol.for("var used to be block scoped");var T0;function _R(t){return(0,kR.isVariableDeclaration)(t,{kind:"var"})&&!t[T0]}});var x0=_(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.default=po;var OR=Cn(),Mr=lt(),Sp=Jt(),Ep=gu(),NR=lr();function po(t,e){let i=[],r=!0;for(let s of t)if((0,Mr.isEmptyStatement)(s)||(r=!1),(0,Mr.isExpression)(s))i.push(s);else if((0,Mr.isExpressionStatement)(s))i.push(s.expression);else if((0,Mr.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=(0,OR.default)(n);for(let l of Object.keys(a))e.push({kind:s.kind,id:(0,NR.default)(a[l])});n.init&&i.push((0,Sp.assignmentExpression)("=",n.id,n.init))}r=!0}else if((0,Mr.isIfStatement)(s)){let n=s.consequent?po([s.consequent],e):(0,Ep.buildUndefinedNode)(),a=s.alternate?po([s.alternate],e):(0,Ep.buildUndefinedNode)();if(!n||!a)return;i.push((0,Sp.conditionalExpression)(s.test,n,a))}else if((0,Mr.isBlockStatement)(s)){let n=po(s.body,e);if(!n)return;i.push(n)}else if((0,Mr.isEmptyStatement)(s))t.indexOf(s)===0&&(r=!0);else return;return r&&i.push((0,Ep.buildUndefinedNode)()),i.length===1?i[0]:(0,Sp.sequenceExpression)(i)}});var b0=_(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.default=LR;var DR=x0();function LR(t,e){if(!(t!=null&&t.length))return;let i=[],r=(0,DR.default)(t,i);if(r){for(let s of i)e.push(s);return r}}});var be=_(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});var cr={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(J,"__internal__deprecationWarning",{enumerable:!0,get:function(){return j6.default}});Object.defineProperty(J,"addComment",{enumerable:!0,get:function(){return YR.default}});Object.defineProperty(J,"addComments",{enumerable:!0,get:function(){return zR.default}});Object.defineProperty(J,"appendToMemberExpression",{enumerable:!0,get:function(){return l6.default}});Object.defineProperty(J,"assertNode",{enumerable:!0,get:function(){return jR.default}});Object.defineProperty(J,"buildMatchMemberExpression",{enumerable:!0,get:function(){return B6.default}});Object.defineProperty(J,"clone",{enumerable:!0,get:function(){return UR.default}});Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:function(){return KR.default}});Object.defineProperty(J,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return VR.default}});Object.defineProperty(J,"cloneNode",{enumerable:!0,get:function(){return qR.default}});Object.defineProperty(J,"cloneWithoutLoc",{enumerable:!0,get:function(){return WR.default}});Object.defineProperty(J,"createFlowUnionType",{enumerable:!0,get:function(){return S0.default}});Object.defineProperty(J,"createTSUnionType",{enumerable:!0,get:function(){return $R.default}});Object.defineProperty(J,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return RR.default}});Object.defineProperty(J,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return S0.default}});Object.defineProperty(J,"ensureBlock",{enumerable:!0,get:function(){return ZR.default}});Object.defineProperty(J,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return d6.default}});Object.defineProperty(J,"getBindingIdentifiers",{enumerable:!0,get:function(){return m6.default}});Object.defineProperty(J,"getFunctionName",{enumerable:!0,get:function(){return T6.default}});Object.defineProperty(J,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return y6.default}});Object.defineProperty(J,"inheritInnerComments",{enumerable:!0,get:function(){return JR.default}});Object.defineProperty(J,"inheritLeadingComments",{enumerable:!0,get:function(){return XR.default}});Object.defineProperty(J,"inheritTrailingComments",{enumerable:!0,get:function(){return GR.default}});Object.defineProperty(J,"inherits",{enumerable:!0,get:function(){return c6.default}});Object.defineProperty(J,"inheritsComments",{enumerable:!0,get:function(){return HR.default}});Object.defineProperty(J,"is",{enumerable:!0,get:function(){return b6.default}});Object.defineProperty(J,"isBinding",{enumerable:!0,get:function(){return S6.default}});Object.defineProperty(J,"isBlockScoped",{enumerable:!0,get:function(){return E6.default}});Object.defineProperty(J,"isImmutable",{enumerable:!0,get:function(){return P6.default}});Object.defineProperty(J,"isLet",{enumerable:!0,get:function(){return v6.default}});Object.defineProperty(J,"isNode",{enumerable:!0,get:function(){return A6.default}});Object.defineProperty(J,"isNodesEquivalent",{enumerable:!0,get:function(){return w6.default}});Object.defineProperty(J,"isPlaceholderType",{enumerable:!0,get:function(){return C6.default}});Object.defineProperty(J,"isReferenced",{enumerable:!0,get:function(){return I6.default}});Object.defineProperty(J,"isScope",{enumerable:!0,get:function(){return k6.default}});Object.defineProperty(J,"isSpecifierDefault",{enumerable:!0,get:function(){return _6.default}});Object.defineProperty(J,"isType",{enumerable:!0,get:function(){return O6.default}});Object.defineProperty(J,"isValidES3Identifier",{enumerable:!0,get:function(){return N6.default}});Object.defineProperty(J,"isValidIdentifier",{enumerable:!0,get:function(){return D6.default}});Object.defineProperty(J,"isVar",{enumerable:!0,get:function(){return L6.default}});Object.defineProperty(J,"matchesPattern",{enumerable:!0,get:function(){return M6.default}});Object.defineProperty(J,"prependToMemberExpression",{enumerable:!0,get:function(){return u6.default}});J.react=void 0;Object.defineProperty(J,"removeComments",{enumerable:!0,get:function(){return QR.default}});Object.defineProperty(J,"removeProperties",{enumerable:!0,get:function(){return p6.default}});Object.defineProperty(J,"removePropertiesDeep",{enumerable:!0,get:function(){return f6.default}});Object.defineProperty(J,"removeTypeDuplicates",{enumerable:!0,get:function(){return h6.default}});Object.defineProperty(J,"shallowEqual",{enumerable:!0,get:function(){return x6.default}});Object.defineProperty(J,"toBindingIdentifierName",{enumerable:!0,get:function(){return e6.default}});Object.defineProperty(J,"toBlock",{enumerable:!0,get:function(){return t6.default}});Object.defineProperty(J,"toComputedKey",{enumerable:!0,get:function(){return i6.default}});Object.defineProperty(J,"toExpression",{enumerable:!0,get:function(){return r6.default}});Object.defineProperty(J,"toIdentifier",{enumerable:!0,get:function(){return s6.default}});Object.defineProperty(J,"toKeyAlias",{enumerable:!0,get:function(){return n6.default}});Object.defineProperty(J,"toStatement",{enumerable:!0,get:function(){return a6.default}});Object.defineProperty(J,"traverse",{enumerable:!0,get:function(){return fo.default}});Object.defineProperty(J,"traverseFast",{enumerable:!0,get:function(){return g6.default}});Object.defineProperty(J,"validate",{enumerable:!0,get:function(){return F6.default}});Object.defineProperty(J,"valueToNode",{enumerable:!0,get:function(){return o6.default}});var MR=Pm(),FR=vm(),BR=yy(),jR=Ty(),Ap=gy();Object.keys(Ap).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===Ap[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return Ap[t]}})});var RR=xy(),S0=Ey(),$R=wy(),wp=gu();Object.keys(wp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===wp[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return wp[t]}})});var Cp=Jt();Object.keys(Cp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===Cp[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return Cp[t]}})});var qR=lr(),UR=Ny(),KR=Dy(),VR=Ly(),WR=My(),YR=Fy(),zR=wu(),JR=_u(),XR=Nu(),HR=Fu(),GR=Lu(),QR=By(),Ip=jy();Object.keys(Ip).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===Ip[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return Ip[t]}})});var kp=gs();Object.keys(kp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===kp[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return kp[t]}})});var ZR=Ry(),e6=$y(),t6=$u(),i6=qy(),r6=Uy(),s6=Ku(),n6=zy(),a6=Jy(),o6=Xy(),_p=ai();Object.keys(_p).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===_p[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return _p[t]}})});var l6=Hy(),c6=Qy(),u6=Zy(),p6=Xu(),f6=Gu(),h6=hu(),d6=e0(),m6=Cn(),y6=t0(),T6=r0(),fo=s0();Object.keys(fo).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===fo[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return fo[t]}})});var g6=zu(),x6=Va(),b6=ys(),S6=n0(),E6=l0(),P6=c0(),v6=pp(),A6=uu(),w6=p0(),C6=Mc(),I6=f0(),k6=h0(),_6=m0(),O6=Ya(),N6=y0(),D6=Ts(),L6=g0(),M6=kc(),F6=Ha(),B6=Oc(),Op=lt();Object.keys(Op).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(cr,t)||t in J&&J[t]===Op[t]||Object.defineProperty(J,t,{enumerable:!0,get:function(){return Op[t]}})});var j6=ms(),R6=b0(),cae=J.react={isReactComponent:MR.default,isCompatTag:FR.default,buildChildren:BR.default};J.toSequenceExpression=R6.default;process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var Dp=_(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.isBindingIdentifier=l9;yt.isBlockScoped=h9;yt.isExpression=u9;yt.isFlow=g9;yt.isForAwaitStatement=S9;yt.isGenerated=y9;yt.isPure=T9;yt.isReferenced=f9;yt.isReferencedIdentifier=a9;yt.isReferencedMemberExpression=o9;yt.isRestProperty=x9;yt.isScope=p9;yt.isSpreadProperty=b9;yt.isStatement=c9;yt.isUser=m9;yt.isVar=d9;var $6=be(),{isBinding:q6,isBlockScoped:U6,isExportDeclaration:K6,isExpression:V6,isFlow:W6,isForStatement:Y6,isForXStatement:z6,isIdentifier:E0,isImportDeclaration:J6,isImportSpecifier:X6,isJSXIdentifier:H6,isJSXMemberExpression:G6,isMemberExpression:Q6,isRestElement:P0,isReferenced:Np,isScope:Z6,isStatement:e9,isVar:t9,isVariableDeclaration:i9,react:r9,isForOfStatement:s9}=$6,{isCompatTag:n9}=r9;function a9(t){let{node:e,parent:i}=this;if(!E0(e,t)&&!G6(i,t))if(H6(e,t)){if(n9(e.name))return!1}else return!1;return Np(e,i,this.parentPath.parent)}function o9(){let{node:t,parent:e}=this;return Q6(t)&&Np(t,e)}function l9(){let{node:t,parent:e}=this,i=this.parentPath.parent;return E0(t)&&q6(t,e,i)}function c9(){let{node:t,parent:e}=this;return e9(t)?!(i9(t)&&(z6(e,{left:t})||Y6(e,{init:t}))):!1}function u9(){return this.isIdentifier()?this.isReferencedIdentifier():V6(this.node)}function p9(){return Z6(this.node,this.parent)}function f9(){return Np(this.node,this.parent)}function h9(){return U6(this.node)}function d9(){return t9(this.node)}function m9(){return this.node&&!!this.node.loc}function y9(){return!this.isUser()}function T9(t){return this.scope.isPure(this.node,t)}function g9(){let{node:t}=this;return W6(t)?!0:J6(t)?t.importKind==="type"||t.importKind==="typeof":K6(t)?t.exportKind==="type":X6(t)?t.importKind==="type"||t.importKind==="typeof":!1}function x9(){var t;return P0(this.node)&&((t=this.parentPath)==null?void 0:t.isObjectPattern())}function b9(){var t;return P0(this.node)&&((t=this.parentPath)==null?void 0:t.isObjectExpression())}function S9(){return s9(this.node,{await:!0})}yt.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},yt.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var ho=_(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.environmentVisitor=k9;Br.explode=L0;Br.isExplodedVisitor=D0;Br.merge=F0;Br.verify=M0;var N0=Pc(),E9=Dp(),P9=be(),v0=Ti(),{DEPRECATED_KEYS:A0,DEPRECATED_ALIASES:w0,FLIPPED_ALIAS_KEYS:C0,TYPES:v9,__internal__deprecationWarning:I0}=P9;function A9(t){return t in N0}function D0(t){return t?._exploded}function L0(t){if(D0(t))return t;t._exploded=!0;for(let e of Object.keys(t)){if(Fr(e))continue;let i=e.split("|");if(i.length===1)continue;let r=t[e];delete t[e];for(let s of i)t[s]=r}M0(t),delete t.__esModule,w9(t),O0(t);for(let e of Object.keys(t)){if(Fr(e)||!A9(e))continue;let i=t[e];for(let s of Object.keys(i))i[s]=C9(e,i[s]);delete t[e];let r=N0[e];if(r!==null)for(let s of r)t[s]?In(t[s],i):t[s]=i;else In(t,i)}for(let e of Object.keys(t)){if(Fr(e))continue;let i=C0[e];if(e in A0){let s=A0[e];I0(e,s,"Visitor "),i=[s]}else if(e in w0){let s=w0[e];I0(e,s,"Visitor "),i=C0[s]}if(!i)continue;let r=t[e];delete t[e];for(let s of i){let n=t[s];n?In(n,r):t[s]=Object.assign({},r)}}for(let e of Object.keys(t))Fr(e)||O0(t[e]);return t}function M0(t){if(!t._verified){if(typeof t=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let e of Object.keys(t)){if((e==="enter"||e==="exit")&&k0(e,t[e]),Fr(e))continue;if(!v9.includes(e))throw new Error(`You gave us a visitor for the node type ${e} but it's not a valid type in @babel/traverse 7.28.0`);let i=t[e];if(typeof i=="object")for(let r of Object.keys(i))if(r==="enter"||r==="exit")k0(`${e}.${r}`,i[r]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${e} that has the invalid property ${r}`)}t._verified=!0}}function k0(t,e){let i=[].concat(e);for(let r of i)if(typeof r!="function")throw new TypeError(`Non-function found defined in ${t} with type ${typeof r}`)}function F0(t,e=[],i){let r={_verified:!0,_exploded:!0};Object.defineProperty(r,"_exploded",{enumerable:!1}),Object.defineProperty(r,"_verified",{enumerable:!1});for(let s=0;s<t.length;s++){let n=L0(t[s]),a=e[s],l=n;(a||i)&&(l=_0(l,a,i)),In(r,l);for(let c of Object.keys(n)){if(Fr(c))continue;let o=n[c];(a||i)&&(o=_0(o,a,i));let u=r[c]||(r[c]={});In(u,o)}}return r}function _0(t,e,i){let r={};for(let s of["enter","exit"]){let n=t[s];Array.isArray(n)&&(n=n.map(function(a){let l=a;return e&&(l=function(c){a.call(e,c,e)}),i&&(l=i(e?.key,s,l)),l!==a&&(l.toString=()=>a.toString()),l}),r[s]=n)}return r}function w9(t){for(let e of Object.keys(t)){if(Fr(e))continue;let i=t[e];typeof i=="function"&&(t[e]={enter:i})}}function O0(t){t.enter&&!Array.isArray(t.enter)&&(t.enter=[t.enter]),t.exit&&!Array.isArray(t.exit)&&(t.exit=[t.exit])}function C9(t,e){let i=`is${t}`,r=E9[i],s=function(n){if(r.call(n))return e.apply(this,arguments)};return s.toString=()=>e.toString(),s}function Fr(t){return t[0]==="_"||t==="enter"||t==="exit"||t==="shouldSkip"||t==="denylist"||t==="noScope"||t==="skipKeys"||t==="blacklist"}function In(t,e){for(let i of["enter","exit"])e[i]&&(t[i]=[].concat(t[i]||[],e[i]))}var I9={FunctionParent(t){t.isArrowFunctionExpression()||(t.skip(),t.isMethod()&&(t.requeueComputedKeyAndDecorators?t.requeueComputedKeyAndDecorators():v0.requeueComputedKeyAndDecorators.call(t)))},Property(t){t.isObjectProperty()||(t.skip(),t.requeueComputedKeyAndDecorators?t.requeueComputedKeyAndDecorators():v0.requeueComputedKeyAndDecorators.call(t))}};function k9(t){return F0([I9,t])}});var B0=_(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.default=void 0;var mo=be(),_9=mo,O9=To(),N9=ho(),D9=Ti(),{getAssignmentIdentifiers:L9}=_9,M9={ReferencedIdentifier({node:t},e){t.name===e.oldName&&(t.name=e.newName)},Scope(t,e){t.scope.bindingIdentifierEquals(e.oldName,e.binding.identifier)||(t.skip(),t.isMethod()&&(t.requeueComputedKeyAndDecorators?t.requeueComputedKeyAndDecorators():D9.requeueComputedKeyAndDecorators.call(t)))},ObjectProperty({node:t,scope:e},i){let{name:r}=t.key;if(t.shorthand&&(r===i.oldName||r===i.newName)&&e.getBindingIdentifier(r)===i.binding.identifier){t.shorthand=!1;{var s;(s=t.extra)!=null&&s.shorthand&&(t.extra.shorthand=!1)}}},"AssignmentExpression|Declaration|VariableDeclarator"(t,e){if(t.isVariableDeclaration())return;let i=t.isAssignmentExpression()?L9(t.node):t.getOuterBindingIdentifiers();for(let r in i)r===e.oldName&&(i[r].name=e.newName)}},Lp=class{constructor(e,i,r){this.newName=r,this.oldName=i,this.binding=e}maybeConvertFromExportDeclaration(e){let i=e.parentPath;if(i.isExportDeclaration()){if(i.isExportDefaultDeclaration()){let{declaration:r}=i.node;if(mo.isDeclaration(r)&&!r.id)return}i.isExportAllDeclaration()||i.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){let{binding:e,oldName:i,newName:r}=this,{scope:s,path:n}=e,a=n.find(o=>o.isDeclaration()||o.isFunctionExpression()||o.isClassExpression());a&&a.getOuterBindingIdentifiers()[i]===e.identifier&&this.maybeConvertFromExportDeclaration(a);let l=arguments[0]||s.block,c={discriminant:!0};mo.isMethod(l)&&(l.computed&&(c.key=!0),mo.isObjectMethod(l)||(c.decorators=!0)),(0,O9.traverseNode)(l,(0,N9.explode)(M9),s,this,s.path,c),arguments[0]||(s.removeOwnBinding(i),s.bindings[r]=e,this.binding.identifier.name=r),a&&(this.maybeConvertFromClassFunctionDeclaration(n),this.maybeConvertFromClassFunctionExpression(n))}};yo.default=Lp});var j0=_(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.default=void 0;var Mp=class{constructor({identifier:e,scope:i,path:r,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=i,this.path=r,this.kind=s,(s==="var"||s==="hoisted")&&F9(r)&&this.reassign(r),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,!this.constantViolations.includes(e)&&this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}};go.default=Mp;function F9(t){let e=!t.isVariableDeclarator()||t.node.init;for(let{parentPath:i,key:r}=t;i;{parentPath:i,key:r}=i){if(i.isFunctionParent())return!1;if(r==="left"&&i.isForXStatement()||e&&r==="body"&&i.isLoop())return!0}return!1}});var jr=_(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.clear=j9;Zt.clearPath=R0;Zt.clearScope=$0;Zt.getCachedPaths=R9;Zt.getOrCreateCachedPaths=$9;Zt.scope=Zt.path=void 0;var xo=Zt.path=new WeakMap,B9=Zt.scope=new WeakMap;function j9(){R0(),$0()}function R0(){Zt.path=xo=new WeakMap}function $0(){Zt.scope=B9=new WeakMap}function R9(t){let{parent:e,parentPath:i}=t;return xo.get(e)}function $9(t,e){let i=xo.get(t);return i||xo.set(t,i=new Map),i}});var q0=_((yae,q9)=>{q9.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var U0=_((Tae,U9)=>{U9.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var $p=_(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.default=void 0;var K9=B0(),G0=_n(),V9=j0(),Q0=be(),Z0=Q0,K0=jr(),W9=q0(),Y9=U0(),{assignmentExpression:z9,callExpression:V0,cloneNode:W0,getBindingIdentifiers:eT,identifier:$r,isArrayExpression:tT,isBinary:J9,isCallExpression:Y0,isClass:X9,isClassBody:H9,isClassDeclaration:G9,isExportAllDeclaration:iT,isExportDefaultDeclaration:Q9,isExportNamedDeclaration:Fp,isFunctionDeclaration:Z9,isIdentifier:Rr,isImportDeclaration:Bp,isLiteral:e5,isMemberExpression:t5,isMethod:i5,isModuleSpecifier:r5,isNullLiteral:s5,isObjectExpression:n5,isProperty:a5,isPureish:o5,isRegExpLiteral:l5,isSuper:c5,isTaggedTemplateExpression:u5,isTemplateLiteral:rT,isThisExpression:z0,isUnaryExpression:p5,isVariableDeclaration:f5,expressionStatement:h5,matchesPattern:J0,memberExpression:jp,numericLiteral:d5,toIdentifier:m5,variableDeclaration:y5,variableDeclarator:T5,isRecordExpression:g5,isTupleExpression:x5,isObjectProperty:b5,isTopicReference:X0,isMetaProperty:S5,isPrivateName:E5,isExportDeclaration:P5,buildUndefinedNode:v5,sequenceExpression:A5}=Q0;function Ze(t,e){switch(t?.type){default:if(Bp(t)||P5(t)){var i;if((iT(t)||Fp(t)||Bp(t))&&t.source)Ze(t.source,e);else if((Fp(t)||Bp(t))&&(i=t.specifiers)!=null&&i.length)for(let r of t.specifiers)Ze(r,e);else(Q9(t)||Fp(t))&&t.declaration&&Ze(t.declaration,e)}else r5(t)?Ze(t.local,e):e5(t)&&!s5(t)&&!l5(t)&&!rT(t)&&e.push(t.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Ze(t.object,e),Ze(t.property,e);break;case"Identifier":case"JSXIdentifier":e.push(t.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Ze(t.callee,e);break;case"ObjectExpression":case"ObjectPattern":for(let r of t.properties)Ze(r,e);break;case"SpreadElement":case"RestElement":Ze(t.argument,e);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Ze(t.key,e);break;case"ThisExpression":e.push("this");break;case"Super":e.push("super");break;case"Import":case"ImportExpression":e.push("import");break;case"DoExpression":e.push("do");break;case"YieldExpression":e.push("yield"),Ze(t.argument,e);break;case"AwaitExpression":e.push("await"),Ze(t.argument,e);break;case"AssignmentExpression":Ze(t.left,e);break;case"VariableDeclarator":Ze(t.id,e);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Ze(t.id,e);break;case"PrivateName":Ze(t.id,e);break;case"ParenthesizedExpression":Ze(t.expression,e);break;case"UnaryExpression":case"UpdateExpression":Ze(t.argument,e);break;case"MetaProperty":Ze(t.meta,e),Ze(t.property,e);break;case"JSXElement":Ze(t.openingElement,e);break;case"JSXOpeningElement":Ze(t.name,e);break;case"JSXFragment":Ze(t.openingFragment,e);break;case"JSXOpeningFragment":e.push("Fragment");break;case"JSXNamespacedName":Ze(t.namespace,e),Ze(t.name,e);break}}function H0(t){t.references=Object.create(null),t.uids=Object.create(null),t.bindings=Object.create(null),t.globals=Object.create(null)}Rp=Symbol.for("should not be considered a local binding");var Rp,w5={ForStatement(t){let e=t.get("init");if(e.isVar()){let{scope:i}=t;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",e)}},Declaration(t){if(t.isBlockScoped()||t.isImportDeclaration()||t.isExportDeclaration())return;(t.scope.getFunctionParent()||t.scope.getProgramParent()).registerDeclaration(t)},ImportDeclaration(t){t.scope.getBlockParent().registerDeclaration(t)},TSImportEqualsDeclaration(t){t.scope.getBlockParent().registerDeclaration(t)},ReferencedIdentifier(t,e){Z0.isTSQualifiedName(t.parent)&&t.parent.right===t.node||t.parentPath.isTSImportEqualsDeclaration()||e.references.push(t)},ForXStatement(t,e){let i=t.get("left");if(i.isPattern()||i.isIdentifier())e.constantViolations.push(t);else if(i.isVar()){let{scope:r}=t;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",i)}},ExportDeclaration:{exit(t){let{node:e,scope:i}=t;if(iT(e))return;let r=e.declaration;if(G9(r)||Z9(r)){let s=r.id;if(!s)return;let n=i.getBinding(s.name);n?.reference(t)}else if(f5(r))for(let s of r.declarations)for(let n of Object.keys(eT(s))){let a=i.getBinding(n);a?.reference(t)}}},LabeledStatement(t){t.scope.getBlockParent().registerDeclaration(t)},AssignmentExpression(t,e){e.assignments.push(t)},UpdateExpression(t,e){e.constantViolations.push(t)},UnaryExpression(t,e){t.node.operator==="delete"&&e.constantViolations.push(t)},BlockScoped(t){let e=t.scope;if(e.path===t&&(e=e.parent),e.getBlockParent().registerDeclaration(t),t.isClassDeclaration()&&t.node.id){let s=t.node.id.name;t.scope.bindings[s]=t.scope.parent.getBinding(s)}},CatchClause(t){t.scope.registerBinding("let",t)},Function(t){let e=t.get("params");for(let i of e)t.scope.registerBinding("param",i);t.isFunctionExpression()&&t.node.id&&!t.node.id[Rp]&&t.scope.registerBinding("local",t.get("id"),t)},ClassExpression(t){t.node.id&&!t.node.id[Rp]&&t.scope.registerBinding("local",t.get("id"),t)},TSTypeAnnotation(t){t.skip()}},kn,C5=0,gi=class t{constructor(e){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:i}=e,r=K0.scope.get(i);if(r?.path===e)return r;K0.scope.set(i,this),this.uid=C5++,this.block=i,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e;let i,r=this.path;do{var s;let n=r.key==="key"||r.listKey==="decorators";r=r.parentPath,n&&r.isMethod()&&(r=r.parentPath),(s=r)!=null&&s.isScope()&&(i=r)}while(r&&!i);return(e=i)==null?void 0:e.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){let i=this.generateUidIdentifier(e);return this.push({id:i}),W0(i)}generateUidIdentifier(e){return $r(this.generateUid(e))}generateUid(e="temp"){e=m5(e).replace(/^_+/,"").replace(/\d+$/g,"");let i,r=0;do i=`_${e}`,r>=11?i+=r-1:r>=9?i+=r-9:r>=1&&(i+=r+1),r++;while(this.hasLabel(i)||this.hasBinding(i)||this.hasGlobal(i)||this.hasReference(i));let s=this.getProgramParent();return s.references[i]=!0,s.uids[i]=!0,i}generateUidBasedOnNode(e,i){let r=[];Ze(e,r);let s=r.join("$");return s=s.replace(/^_/,"")||i||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(e,i){return $r(this.generateUidBasedOnNode(e,i))}isStatic(e){if(z0(e)||c5(e)||X0(e))return!0;if(Rr(e)){let i=this.getBinding(e.name);return i?i.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,i){if(this.isStatic(e))return null;{let r=this.generateUidIdentifierBasedOnNode(e);return i?r:(this.push({id:r}),W0(r))}}checkBlockScopedCollisions(e,i,r,s){if(i==="param"||e.kind==="local")return;if(i==="let"||e.kind==="let"||e.kind==="const"||e.kind==="module"||e.kind==="param"&&i==="const")throw this.path.hub.buildError(s,`Duplicate declaration "${r}"`,TypeError)}rename(e,i){let r=this.getBinding(e);r&&(i||(i=this.generateUidIdentifier(e).name),new K9.default(r,e,i).rename(arguments[2]))}dump(){let e="-".repeat(60);console.log(e);let i=this;do{console.log("#",i.block.type);for(let r of Object.keys(i.bindings)){let s=i.bindings[r];console.log(" -",r,{constant:s.constant,references:s.references,violations:s.constantViolations.length,kind:s.kind})}}while(i=i.parent);console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){let i=e.get("declarations"),{kind:r}=e.node;for(let s of i)this.registerBinding(r==="using"||r==="await using"?"const":r,s)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){let i=e.node.importKind==="type"||e.node.importKind==="typeof",r=e.get("specifiers");for(let s of r){let n=i||s.isImportSpecifier()&&(s.node.importKind==="type"||s.node.importKind==="typeof");this.registerBinding(n?"unknown":"module",s)}}else if(e.isExportDeclaration()){let i=e.get("declaration");(i.isClassDeclaration()||i.isFunctionDeclaration()||i.isVariableDeclaration())&&this.registerDeclaration(i)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return v5()}registerConstantViolation(e){let i=e.getAssignmentIdentifiers();for(let s of Object.keys(i)){var r;(r=this.getBinding(s))==null||r.reassign(e)}}registerBinding(e,i,r=i){if(!e)throw new ReferenceError("no `kind`");if(i.isVariableDeclaration()){let a=i.get("declarations");for(let l of a)this.registerBinding(e,l);return}let s=this.getProgramParent(),n=i.getOuterBindingIdentifiers(!0);for(let a of Object.keys(n)){s.references[a]=!0;for(let l of n[a]){let c=this.getOwnBinding(a);if(c){if(c.identifier===l)continue;this.checkBlockScopedCollisions(c,e,a,l)}c?c.reassign(r):this.bindings[a]=new V9.default({identifier:l,scope:this,path:r,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){{let i=this;do if(i.uids[e])return!0;while(i=i.parent);return!1}}hasGlobal(e){let i=this;do if(i.globals[e])return!0;while(i=i.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,i){if(Rr(e)){let a=this.getBinding(e.name);return a?i?a.constant:!0:!1}else{if(z0(e)||S5(e)||X0(e)||E5(e))return!0;if(X9(e)){var r;return e.superClass&&!this.isPure(e.superClass,i)||((r=e.decorators)==null?void 0:r.length)>0?!1:this.isPure(e.body,i)}else if(H9(e)){for(let a of e.body)if(!this.isPure(a,i))return!1;return!0}else{if(J9(e))return this.isPure(e.left,i)&&this.isPure(e.right,i);if(tT(e)||x5(e)){for(let a of e.elements)if(a!==null&&!this.isPure(a,i))return!1;return!0}else if(n5(e)||g5(e)){for(let a of e.properties)if(!this.isPure(a,i))return!1;return!0}else if(i5(e)){var s;return!(e.computed&&!this.isPure(e.key,i)||((s=e.decorators)==null?void 0:s.length)>0)}else if(a5(e)){var n;return!(e.computed&&!this.isPure(e.key,i)||((n=e.decorators)==null?void 0:n.length)>0||(b5(e)||e.static)&&e.value!==null&&!this.isPure(e.value,i))}else{if(p5(e))return this.isPure(e.argument,i);if(rT(e)){for(let a of e.expressions)if(!this.isPure(a,i))return!1;return!0}else return u5(e)?J0(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,i):t5(e)?!e.computed&&Rr(e.object)&&e.object.name==="Symbol"&&Rr(e.property)&&e.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):Y0(e)?J0(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&e.arguments.length===1&&Z0.isStringLiteral(e.arguments[0]):o5(e)}}}}setData(e,i){return this.data[e]=i}getData(e){let i=this;do{let r=i.data[e];if(r!=null)return r}while(i=i.parent)}removeData(e){let i=this;do i.data[e]!=null&&(i.data[e]=null);while(i=i.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let e=this.path;H0(this),this.data=Object.create(null);let i=this;do{if(i.crawling)return;if(i.path.isProgram())break}while(i=i.parent);let r=i,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,kn||(kn=G0.default.visitors.merge([{Scope(n){H0(n.scope)}},w5])),e.type!=="Program"){for(let a of kn.enter)a.call(s,e,s);let n=kn[e.type];if(n)for(let a of n.enter)a.call(s,e,s)}e.traverse(kn,s),this.crawling=!1;for(let n of s.assignments){let a=n.getAssignmentIdentifiers();for(let l of Object.keys(a))n.scope.getBinding(l)||r.addGlobal(a[l]);n.scope.registerConstantViolation(n)}for(let n of s.references){let a=n.scope.getBinding(n.node.name);a?a.reference(n):r.addGlobal(n.node)}for(let n of s.constantViolations)n.scope.registerConstantViolation(n)}push(e){let i=this.path;i.isPattern()?i=this.getPatternParent().path:!i.isBlockStatement()&&!i.isProgram()&&(i=this.getBlockParent().path),i.isSwitchStatement()&&(i=(this.getFunctionParent()||this.getProgramParent()).path);let{init:r,unique:s,kind:n="var",id:a}=e;if(!r&&!s&&(n==="var"||n==="let")&&i.isFunction()&&!i.node.name&&Y0(i.parent,{callee:i.node})&&i.parent.arguments.length<=i.node.params.length&&Rr(a)){i.pushContainer("params",a),i.scope.registerBinding("param",i.get("params")[i.node.params.length-1]);return}(i.isLoop()||i.isCatchClause()||i.isFunction())&&(i.ensureBlock(),i=i.get("body"));let l=e._blockHoist==null?2:e._blockHoist,c=`declaration:${n}:${l}`,o=!s&&i.getData(c);if(!o){let d=y5(n,[]);d._blockHoist=l,[o]=i.unshiftContainer("body",[d]),s||i.setData(c,o)}let u=T5(a,r),f=o.node.declarations.push(u);i.scope.registerBinding(n,o.get("declarations")[f-1])}getProgramParent(){let e=this;do if(e.path.isProgram())return e;while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent);return null}getBlockParent(){let e=this;do if(e.path.isBlockParent())return e;while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do if(!e.path.isPattern())return e.getBlockParent();while(e=e.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let e=Object.create(null),i=this;do{for(let r of Object.keys(i.bindings))r in e||(e[r]=i.bindings[r]);i=i.parent}while(i);return e}bindingIdentifierEquals(e,i){return this.getBindingIdentifier(e)===i}getBinding(e){let i=this,r;do{let n=i.getOwnBinding(e);if(n){var s;if(!((s=r)!=null&&s.isPattern()&&n.kind!=="param"&&n.kind!=="local"))return n}else if(!n&&e==="arguments"&&i.path.isFunction()&&!i.path.isArrowFunctionExpression())break;r=i.path}while(i=i.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var i;return(i=this.getBinding(e))==null?void 0:i.identifier}getOwnBindingIdentifier(e){let i=this.bindings[e];return i?.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,i){if(!e)return!1;let r,s,n;typeof i=="object"?(r=i.noGlobals,s=i.noUids,n=i.upToScope):typeof i=="boolean"&&(r=i);let a=this;do{if(n===a)break;if(a.hasOwnBinding(e))return!0}while(a=a.parent);return!!(!s&&this.hasUid(e)||!r&&t.globals.includes(e)||!r&&t.contextVariables.includes(e))}parentHasBinding(e,i){var r;return(r=this.parent)==null?void 0:r.hasBinding(e,i)}moveBindingTo(e,i){let r=this.getBinding(e);r&&(r.scope.removeOwnBinding(e),r.scope=i,i.bindings[e]=r)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var i;(i=this.getBinding(e))==null||i.scope.removeOwnBinding(e);{let r=this;do r.uids[e]&&(r.uids[e]=!1);while(r=r.parent)}}hoistVariables(e=i=>this.push({id:i})){this.crawl();let i=new Set;for(let r of Object.keys(this.bindings)){let s=this.bindings[r];if(!s)continue;let{path:n}=s;if(!n.isVariableDeclarator())continue;let{parent:a,parentPath:l}=n;if(a.kind!=="var"||i.has(a))continue;i.add(n.parent);let c,o=[];for(let u of a.declarations){c??(c=u.id),u.init&&o.push(z9("=",u.id,u.init));let f=Object.keys(eT(u,!1,!0,!0));for(let d of f)e($r(d),u.init!=null)}if(l.parentPath.isFor({left:a}))l.replaceWith(c);else if(o.length===0)l.remove();else{let u=o.length===1?o[0]:A5(o);l.parentPath.isForStatement({init:a})?l.replaceWith(u):l.replaceWith(h5(u))}}}};bo.default=gi;gi.globals=[...W9,...Y9];gi.contextVariables=["arguments","undefined","Infinity","NaN"];gi.prototype._renameFromMap=function(e,i,r,s){e[i]&&(e[r]=s,e[i]=null)},gi.prototype.traverse=function(t,e,i){(0,G0.default)(t,e,this,i,this.path)},gi.prototype._generateUid=function(e,i){let r=e;return i>1&&(r+=i),`_${r}`},gi.prototype.toArray=function(e,i,r){if(Rr(e)){let a=this.getBinding(e.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return e}if(tT(e))return e;if(Rr(e,{name:"arguments"}))return V0(jp(jp(jp($r("Array"),$r("prototype")),$r("slice")),$r("call")),[e]);let s,n=[e];return i===!0?s="toConsumableArray":typeof i=="number"?(n.push(d5(i)),s="slicedToArray"):s="toArray",r&&(n.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),V0(this.path.hub.addHelper(s),n)},gi.prototype.getAllBindingsOfKind=function(...e){let i=Object.create(null);for(let r of e){let s=this;do{for(let n of Object.keys(s.bindings)){let a=s.bindings[n];a.kind===r&&(i[n]=a)}s=s.parent}while(s)}return i},Object.defineProperties(gi.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var Kp=_((qp,Up)=>{(function(t,e,i){typeof qp=="object"&&typeof Up<"u"?e(Up):typeof define=="function"&&define.amd?define(["module"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(i={exports:{}}),t.sourcemapCodec="default"in i.exports?i.exports.default:i.exports)})(qp,function(t){"use strict";var e=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n=(Y,z)=>{for(var F in z)e(Y,F,{get:z[F],enumerable:!0})},a=(Y,z,F,G)=>{if(z&&typeof z=="object"||typeof z=="function")for(let fe of r(z))!s.call(Y,fe)&&fe!==F&&e(Y,fe,{get:()=>z[fe],enumerable:!(G=i(z,fe))||G.enumerable});return Y},l=Y=>a(e({},"__esModule",{value:!0}),Y),c={};n(c,{decode:()=>Ot,decodeGeneratedRanges:()=>ee,decodeOriginalScopes:()=>U,encode:()=>Nt,encodeGeneratedRanges:()=>Pe,encodeOriginalScopes:()=>oe}),t.exports=l(c);var o=44,u=59,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=new Uint8Array(64),m=new Uint8Array(128);for(let Y=0;Y<f.length;Y++){let z=f.charCodeAt(Y);d[Y]=z,m[z]=Y}function S(Y,z){let F=0,G=0,fe=0;do{let Ue=Y.next();fe=m[Ue],F|=(fe&31)<<G,G+=5}while(fe&32);let ve=F&1;return F>>>=1,ve&&(F=-2147483648|-F),z+F}function P(Y,z,F){let G=z-F;G=G<0?-G<<1|1:G<<1;do{let fe=G&31;G>>>=5,G>0&&(fe|=32),Y.write(d[fe])}while(G>0);return z}function A(Y,z){return Y.pos>=z?!1:Y.peek()!==o}var C=1024*16,k=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(Y){return Buffer.from(Y.buffer,Y.byteOffset,Y.byteLength).toString()}}:{decode(Y){let z="";for(let F=0;F<Y.length;F++)z+=String.fromCharCode(Y[F]);return z}},D=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(C)}write(Y){let{buffer:z}=this;z[this.pos++]=Y,this.pos===C&&(this.out+=k.decode(z),this.pos=0)}flush(){let{buffer:Y,out:z,pos:F}=this;return F>0?z+k.decode(Y.subarray(0,F)):z}},L=class{constructor(Y){this.pos=0,this.buffer=Y}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(Y){let{buffer:z,pos:F}=this,G=z.indexOf(Y,F);return G===-1?z.length:G}},B=[];function U(Y){let{length:z}=Y,F=new L(Y),G=[],fe=[],ve=0;for(;F.pos<z;F.pos++){ve=S(F,ve);let Ue=S(F,0);if(!A(F,z)){let tt=fe.pop();tt[2]=ve,tt[3]=Ue;continue}let Le=S(F,0),Re=S(F,0)&1?[ve,Ue,0,0,Le,S(F,0)]:[ve,Ue,0,0,Le],He=B;if(A(F,z)){He=[];do{let tt=S(F,0);He.push(tt)}while(A(F,z))}Re.vars=He,G.push(Re),fe.push(Re)}return G}function oe(Y){let z=new D;for(let F=0;F<Y.length;)F=me(Y,F,z,[0]);return z.flush()}function me(Y,z,F,G){let fe=Y[z],{0:ve,1:Ue,2:Le,3:Xe,4:Me,vars:Re}=fe;z>0&&F.write(o),G[0]=P(F,ve,G[0]),P(F,Ue,0),P(F,Me,0);let He=fe.length===6?1:0;P(F,He,0),fe.length===6&&P(F,fe[5],0);for(let tt of Re)P(F,tt,0);for(z++;z<Y.length;){let tt=Y[z],{0:Ae,1:it}=tt;if(Ae>Le||Ae===Le&&it>=Xe)break;z=me(Y,z,F,G)}return F.write(o),G[0]=P(F,Le,G[0]),P(F,Xe,0),z}function ee(Y){let{length:z}=Y,F=new L(Y),G=[],fe=[],ve=0,Ue=0,Le=0,Xe=0,Me=0,Re=0,He=0,tt=0;do{let Ae=F.indexOf(";"),it=0;for(;F.pos<Ae;F.pos++){if(it=S(F,it),!A(F,Ae)){let ie=fe.pop();ie[2]=ve,ie[3]=it;continue}let dt=S(F,0),Bi=dt&1,Ht=dt&2,Kt=dt&4,K=null,V=B,Z;if(Bi){let ie=S(F,Ue);Le=S(F,Ue===ie?Le:0),Ue=ie,Z=[ve,it,0,0,ie,Le]}else Z=[ve,it,0,0];if(Z.isScope=!!Kt,Ht){let ie=Xe,ye=Me;Xe=S(F,Xe);let Te=ie===Xe;Me=S(F,Te?Me:0),Re=S(F,Te&&ye===Me?Re:0),K=[Xe,Me,Re]}if(Z.callsite=K,A(F,Ae)){V=[];do{He=ve,tt=it;let ie=S(F,0),ye;if(ie<-1){ye=[[S(F,0)]];for(let Te=-1;Te>ie;Te--){let Fe=He;He=S(F,He),tt=S(F,He===Fe?tt:0);let Pt=S(F,0);ye.push([Pt,He,tt])}}else ye=[[ie]];V.push(ye)}while(A(F,Ae))}Z.bindings=V,G.push(Z),fe.push(Z)}ve++,F.pos=Ae+1}while(F.pos<z);return G}function Pe(Y){if(Y.length===0)return"";let z=new D;for(let F=0;F<Y.length;)F=Ct(Y,F,z,[0,0,0,0,0,0,0]);return z.flush()}function Ct(Y,z,F,G){let fe=Y[z],{0:ve,1:Ue,2:Le,3:Xe,isScope:Me,callsite:Re,bindings:He}=fe;G[0]<ve?(ze(F,G[0],ve),G[0]=ve,G[1]=0):z>0&&F.write(o),G[1]=P(F,fe[1],G[1]);let tt=(fe.length===6?1:0)|(Re?2:0)|(Me?4:0);if(P(F,tt,0),fe.length===6){let{4:Ae,5:it}=fe;Ae!==G[2]&&(G[3]=0),G[2]=P(F,Ae,G[2]),G[3]=P(F,it,G[3])}if(Re){let{0:Ae,1:it,2:dt}=fe.callsite;Ae!==G[4]?(G[5]=0,G[6]=0):it!==G[5]&&(G[6]=0),G[4]=P(F,Ae,G[4]),G[5]=P(F,it,G[5]),G[6]=P(F,dt,G[6])}if(He)for(let Ae of He){Ae.length>1&&P(F,-Ae.length,0);let it=Ae[0][0];P(F,it,0);let dt=ve,Bi=Ue;for(let Ht=1;Ht<Ae.length;Ht++){let Kt=Ae[Ht];dt=P(F,Kt[1],dt),Bi=P(F,Kt[2],Bi),P(F,Kt[0],0)}}for(z++;z<Y.length;){let Ae=Y[z],{0:it,1:dt}=Ae;if(it>Le||it===Le&&dt>=Xe)break;z=Ct(Y,z,F,G)}return G[0]<Le?(ze(F,G[0],Le),G[0]=Le,G[1]=0):F.write(o),G[1]=P(F,Xe,G[1]),z}function ze(Y,z,F){do Y.write(u);while(++z<F)}function Ot(Y){let{length:z}=Y,F=new L(Y),G=[],fe=0,ve=0,Ue=0,Le=0,Xe=0;do{let Me=F.indexOf(";"),Re=[],He=!0,tt=0;for(fe=0;F.pos<Me;){let Ae;fe=S(F,fe),fe<tt&&(He=!1),tt=fe,A(F,Me)?(ve=S(F,ve),Ue=S(F,Ue),Le=S(F,Le),A(F,Me)?(Xe=S(F,Xe),Ae=[fe,ve,Ue,Le,Xe]):Ae=[fe,ve,Ue,Le]):Ae=[fe],Re.push(Ae),F.pos++}He||le(Re),G.push(Re),F.pos=Me+1}while(F.pos<=z);return G}function le(Y){Y.sort(Je)}function Je(Y,z){return Y[0]-z[0]}function Nt(Y){let z=new D,F=0,G=0,fe=0,ve=0;for(let Ue=0;Ue<Y.length;Ue++){let Le=Y[Ue];if(Ue>0&&z.write(u),Le.length===0)continue;let Xe=0;for(let Me=0;Me<Le.length;Me++){let Re=Le[Me];Me>0&&z.write(o),Xe=P(z,Re[0],Xe),Re.length!==1&&(F=P(z,Re[1],F),G=P(z,Re[2],G),fe=P(z,Re[3],fe),Re.length!==4&&(ve=P(z,Re[4],ve)))}}return z.flush()}})});var sT=_((Vp,Wp)=>{(function(t,e){typeof Vp=="object"&&typeof Wp<"u"?Wp.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.resolveURI=e())})(Vp,function(){"use strict";let t=/^[\w+.-]+:\/\//,e=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(A){return t.test(A)}function s(A){return A.startsWith("//")}function n(A){return A.startsWith("/")}function a(A){return A.startsWith("file:")}function l(A){return/^[.?#]/.test(A)}function c(A){let C=e.exec(A);return u(C[1],C[2]||"",C[3],C[4]||"",C[5]||"/",C[6]||"",C[7]||"")}function o(A){let C=i.exec(A),k=C[2];return u("file:","",C[1]||"","",n(k)?k:"/"+k,C[3]||"",C[4]||"")}function u(A,C,k,D,L,B,U){return{scheme:A,user:C,host:k,port:D,path:L,query:B,hash:U,type:7}}function f(A){if(s(A)){let k=c("http:"+A);return k.scheme="",k.type=6,k}if(n(A)){let k=c("http://foo.com"+A);return k.scheme="",k.host="",k.type=5,k}if(a(A))return o(A);if(r(A))return c(A);let C=c("http://foo.com/"+A);return C.scheme="",C.host="",C.type=A?A.startsWith("?")?3:A.startsWith("#")?2:4:1,C}function d(A){if(A.endsWith("/.."))return A;let C=A.lastIndexOf("/");return A.slice(0,C+1)}function m(A,C){S(C,C.type),A.path==="/"?A.path=C.path:A.path=d(C.path)+A.path}function S(A,C){let k=C<=4,D=A.path.split("/"),L=1,B=0,U=!1;for(let me=1;me<D.length;me++){let ee=D[me];if(!ee){U=!0;continue}if(U=!1,ee!=="."){if(ee===".."){B?(U=!0,B--,L--):k&&(D[L++]=ee);continue}D[L++]=ee,B++}}let oe="";for(let me=1;me<L;me++)oe+="/"+D[me];(!oe||U&&!oe.endsWith("/.."))&&(oe+="/"),A.path=oe}function P(A,C){if(!A&&!C)return"";let k=f(A),D=k.type;if(C&&D!==7){let B=f(C),U=B.type;switch(D){case 1:k.hash=B.hash;case 2:k.query=B.query;case 3:case 4:m(k,B);case 5:k.user=B.user,k.host=B.host,k.port=B.port;case 6:k.scheme=B.scheme}U>D&&(D=U)}S(k,D);let L=k.query+k.hash;switch(D){case 2:case 3:return L;case 4:{let B=k.path.slice(1);return B?l(C||A)&&!l(B)?"./"+B+L:B+L:L||"."}case 5:return k.path+L;default:return k.scheme+"//"+k.user+k.host+k.port+k.path+L}}return P})});var Jp=_((Yp,zp)=>{(function(t,e,i){typeof Yp=="object"&&typeof zp<"u"?e(zp,sT(),Kp()):typeof define=="function"&&define.amd?define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(i={exports:{}},t.resolveURI,t.sourcemapCodec),t.traceMapping="default"in i.exports?i.exports.default:i.exports)})(Yp,function(t,e,i){"use strict";var r=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,o=(N,R)=>function(){return R||(0,N[a(N)[0]])((R={exports:{}}).exports,R),R.exports},u=(N,R)=>{for(var $ in R)s(N,$,{get:R[$],enumerable:!0})},f=(N,R,$,X)=>{if(R&&typeof R=="object"||typeof R=="function")for(let he of a(R))!c.call(N,he)&&he!==$&&s(N,he,{get:()=>R[he],enumerable:!(X=n(R,he))||X.enumerable});return N},d=(N,R,$)=>($=N!=null?r(l(N)):{},f(R||!N||!N.__esModule?s($,"default",{value:N,enumerable:!0}):$,N)),m=N=>f(s({},"__esModule",{value:!0}),N),S=o({"umd:@jridgewell/sourcemap-codec"(N,R){R.exports=i}}),P=o({"umd:@jridgewell/resolve-uri"(N,R){R.exports=e}}),A={};u(A,{AnyMap:()=>Re,FlattenMap:()=>Re,GREATEST_LOWER_BOUND:()=>Kt,LEAST_UPPER_BOUND:()=>Ht,TraceMap:()=>K,allGeneratedPositionsFor:()=>Pt,decodedMap:()=>gr,decodedMappings:()=>ie,eachMapping:()=>ti,encodedMap:()=>Gr,encodedMappings:()=>Z,generatedPositionFor:()=>Fe,isIgnored:()=>yr,originalPositionFor:()=>Te,presortedDecodedMap:()=>Tr,sourceContentFor:()=>Hr,traceSegment:()=>ye}),t.exports=m(A);var C=d(S()),k=d(P());function D(N){if(!N)return"";let R=N.lastIndexOf("/");return N.slice(0,R+1)}function L(N,R){let $=D(N),X=R?R+"/":"";return he=>(0,k.default)(X+(he||""),$)}var B=0,U=1,oe=2,me=3,ee=4,Pe=1,Ct=2;function ze(N,R){let $=Ot(N,0);if($===N.length)return N;R||(N=N.slice());for(let X=$;X<N.length;X=Ot(N,X+1))N[X]=Je(N[X],R);return N}function Ot(N,R){for(let $=R;$<N.length;$++)if(!le(N[$]))return $;return N.length}function le(N){for(let R=1;R<N.length;R++)if(N[R][B]<N[R-1][B])return!1;return!0}function Je(N,R){return R||(N=N.slice()),N.sort(Nt)}function Nt(N,R){return N[B]-R[B]}var Y=!1;function z(N,R,$,X){for(;$<=X;){let he=$+(X-$>>1),ce=N[he][B]-R;if(ce===0)return Y=!0,he;ce<0?$=he+1:X=he-1}return Y=!1,$-1}function F(N,R,$){for(let X=$+1;X<N.length&&N[X][B]===R;$=X++);return $}function G(N,R,$){for(let X=$-1;X>=0&&N[X][B]===R;$=X--);return $}function fe(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ve(N,R,$,X){let{lastKey:he,lastNeedle:ce,lastIndex:De}=$,Ye=0,we=N.length-1;if(X===he){if(R===ce)return Y=De!==-1&&N[De][B]===R,De;R>=ce?Ye=De===-1?0:De:we=De}return $.lastKey=X,$.lastNeedle=R,$.lastIndex=z(N,R,Ye,we)}function Ue(N,R){let $=R.map(Xe);for(let X=0;X<N.length;X++){let he=N[X];for(let ce=0;ce<he.length;ce++){let De=he[ce];if(De.length===1)continue;let Ye=De[U],we=De[oe],Ge=De[me],Vt=$[Ye],rt=Vt[we]||(Vt[we]=[]),gt=R[Ye],Gt=F(rt,Ge,ve(rt,Ge,gt,we));gt.lastIndex=++Gt,Le(rt,Gt,[Ge,X,De[B]])}}return $}function Le(N,R,$){for(let X=N.length;X>R;X--)N[X]=N[X-1];N[R]=$}function Xe(){return{__proto__:null}}function Me(N){return typeof N=="string"?JSON.parse(N):N}var Re=function(N,R){let $=Me(N);if(!("sections"in $))return new K($,R);let X=[],he=[],ce=[],De=[],Ye=[];He($,R,X,he,ce,De,Ye,0,0,1/0,1/0);let we={version:3,file:$.file,names:De,sources:he,sourcesContent:ce,mappings:X,ignoreList:Ye};return Tr(we)};function He(N,R,$,X,he,ce,De,Ye,we,Ge,Vt){let{sections:rt}=N;for(let gt=0;gt<rt.length;gt++){let{map:Gt,offset:Ei}=rt[gt],br=Ge,Qr=Vt;if(gt+1<rt.length){let Zr=rt[gt+1].offset;br=Math.min(Ge,Ye+Zr.line),br===Ge?Qr=Math.min(Vt,we+Zr.column):br<Ge&&(Qr=we+Zr.column)}tt(Gt,R,$,X,he,ce,De,Ye+Ei.line,we+Ei.column,br,Qr)}}function tt(N,R,$,X,he,ce,De,Ye,we,Ge,Vt){let rt=Me(N);if("sections"in rt)return He(...arguments);let gt=new K(rt,R),Gt=X.length,Ei=ce.length,br=ie(gt),{resolvedSources:Qr,sourcesContent:Zr,ignoreList:ol}=gt;if(Ae(X,Qr),Ae(ce,gt.names),Zr)Ae(he,Zr);else for(let ii=0;ii<Qr.length;ii++)he.push(null);if(ol)for(let ii=0;ii<ol.length;ii++)De.push(ol[ii]+Gt);for(let ii=0;ii<br.length;ii++){let ll=Ye+ii;if(ll>Ge)return;let Eh=it($,ll),bb=ii===0?we:0,Ph=br[ii];for(let cl=0;cl<Ph.length;cl++){let Sr=Ph[cl],Xn=bb+Sr[B];if(ll===Ge&&Xn>=Vt)return;if(Sr.length===1){Eh.push([Xn]);continue}let vh=Gt+Sr[U],Ah=Sr[oe],wh=Sr[me];Eh.push(Sr.length===4?[Xn,vh,Ah,wh]:[Xn,vh,Ah,wh,Ei+Sr[ee]])}}}function Ae(N,R){for(let $=0;$<R.length;$++)N.push(R[$])}function it(N,R){for(let $=N.length;$<=R;$++)N[$]=[];return N[R]}var dt="`line` must be greater than 0 (lines start at line 1)",Bi="`column` must be greater than or equal to 0 (columns start at column 0)",Ht=-1,Kt=1,K=class{constructor(N,R){let $=typeof N=="string";if(!$&&N._decodedMemo)return N;let X=Me(N),{version:he,file:ce,names:De,sourceRoot:Ye,sources:we,sourcesContent:Ge}=X;this.version=he,this.file=ce,this.names=De||[],this.sourceRoot=Ye,this.sources=we,this.sourcesContent=Ge,this.ignoreList=X.ignoreList||X.x_google_ignoreList||void 0;let Vt=L(R,Ye);this.resolvedSources=we.map(Vt);let{mappings:rt}=X;if(typeof rt=="string")this._encoded=rt,this._decoded=void 0;else if(Array.isArray(rt))this._encoded=void 0,this._decoded=ze(rt,$);else throw X.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(X)}`);this._decodedMemo=fe(),this._bySources=void 0,this._bySourceMemos=void 0}};function V(N){return N}function Z(N){var R,$;return($=(R=N)._encoded)!=null?$:R._encoded=(0,C.encode)(N._decoded)}function ie(N){var R;return(R=N)._decoded||(R._decoded=(0,C.decode)(N._encoded))}function ye(N,R,$){let X=ie(N);if(R>=X.length)return null;let he=X[R],ce=Jn(he,N._decodedMemo,R,$,Kt);return ce===-1?null:he[ce]}function Te(N,R){let{line:$,column:X,bias:he}=R;if($--,$<0)throw new Error(dt);if(X<0)throw new Error(Bi);let ce=ie(N);if($>=ce.length)return xr(null,null,null,null);let De=ce[$],Ye=Jn(De,N._decodedMemo,$,X,he||Kt);if(Ye===-1)return xr(null,null,null,null);let we=De[Ye];if(we.length===1)return xr(null,null,null,null);let{names:Ge,resolvedSources:Vt}=N;return xr(Vt[we[U]],we[oe]+1,we[me],we.length===5?Ge[we[ee]]:null)}function Fe(N,R){let{source:$,line:X,column:he,bias:ce}=R;return Sh(N,$,X,he,ce||Kt,!1)}function Pt(N,R){let{source:$,line:X,column:he,bias:ce}=R;return Sh(N,$,X,he,ce||Ht,!0)}function ti(N,R){let $=ie(N),{names:X,resolvedSources:he}=N;for(let ce=0;ce<$.length;ce++){let De=$[ce];for(let Ye=0;Ye<De.length;Ye++){let we=De[Ye],Ge=ce+1,Vt=we[0],rt=null,gt=null,Gt=null,Ei=null;we.length!==1&&(rt=he[we[1]],gt=we[2]+1,Gt=we[3]),we.length===5&&(Ei=X[we[4]]),R({generatedLine:Ge,generatedColumn:Vt,source:rt,originalLine:gt,originalColumn:Gt,name:Ei})}}}function Xr(N,R){let{sources:$,resolvedSources:X}=N,he=$.indexOf(R);return he===-1&&(he=X.indexOf(R)),he}function Hr(N,R){let{sourcesContent:$}=N;if($==null)return null;let X=Xr(N,R);return X===-1?null:$[X]}function yr(N,R){let{ignoreList:$}=N;if($==null)return!1;let X=Xr(N,R);return X===-1?!1:$.includes(X)}function Tr(N,R){let $=new K(ji(N,[]),R);return $._decoded=N.mappings,$}function gr(N){return ji(N,ie(N))}function Gr(N){return ji(N,Z(N))}function ji(N,R){return{version:N.version,file:N.file,names:N.names,sourceRoot:N.sourceRoot,sources:N.sources,sourcesContent:N.sourcesContent,mappings:R,ignoreList:N.ignoreList||N.x_google_ignoreList}}function xr(N,R,$,X){return{source:N,line:R,column:$,name:X}}function Ms(N,R){return{line:N,column:R}}function Jn(N,R,$,X,he){let ce=ve(N,X,R,$);return Y?ce=(he===Ht?F:G)(N,X,ce):he===Ht&&ce++,ce===-1||ce===N.length?-1:ce}function xb(N,R,$,X,he){let ce=Jn(N,R,$,X,Kt);if(!Y&&he===Ht&&ce++,ce===-1||ce===N.length)return[];let De=Y?X:N[ce][B];Y||(ce=G(N,De,ce));let Ye=F(N,De,ce),we=[];for(;ce<=Ye;ce++){let Ge=N[ce];we.push(Ms(Ge[Pe]+1,Ge[Ct]))}return we}function Sh(N,R,$,X,he,ce){var De;if($--,$<0)throw new Error(dt);if(X<0)throw new Error(Bi);let{sources:Ye,resolvedSources:we}=N,Ge=Ye.indexOf(R);if(Ge===-1&&(Ge=we.indexOf(R)),Ge===-1)return ce?[]:Ms(null,null);let rt=((De=N)._bySources||(De._bySources=Ue(ie(N),N._bySourceMemos=Ye.map(fe))))[Ge][$];if(rt==null)return ce?[]:Ms(null,null);let gt=N._bySourceMemos[Ge];if(ce)return xb(rt,gt,$,X,he);let Gt=Jn(rt,gt,$,X,he);if(Gt===-1)return Ms(null,null);let Ei=rt[Gt];return Ms(Ei[Pe]+1,Ei[Ct])}})});var nT=_((Xp,Hp)=>{(function(t,e,i){typeof Xp=="object"&&typeof Hp<"u"?e(Hp,Kp(),Jp()):typeof define=="function"&&define.amd?define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(i={exports:{}},t.sourcemapCodec,t.traceMapping),t.genMapping="default"in i.exports?i.exports.default:i.exports)})(Xp,function(t,e,i){"use strict";var r=Object.create,s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,o=(K,V)=>function(){return V||(0,K[a(K)[0]])((V={exports:{}}).exports,V),V.exports},u=(K,V)=>{for(var Z in V)s(K,Z,{get:V[Z],enumerable:!0})},f=(K,V,Z,ie)=>{if(V&&typeof V=="object"||typeof V=="function")for(let ye of a(V))!c.call(K,ye)&&ye!==Z&&s(K,ye,{get:()=>V[ye],enumerable:!(ie=n(V,ye))||ie.enumerable});return K},d=(K,V,Z)=>(Z=K!=null?r(l(K)):{},f(V||!K||!K.__esModule?s(Z,"default",{value:K,enumerable:!0}):Z,K)),m=K=>f(s({},"__esModule",{value:!0}),K),S=o({"umd:@jridgewell/sourcemap-codec"(K,V){V.exports=e}}),P=o({"umd:@jridgewell/trace-mapping"(K,V){V.exports=i}}),A={};u(A,{GenMapping:()=>le,addMapping:()=>Y,addSegment:()=>Nt,allMappings:()=>Xe,fromMap:()=>Le,maybeAddMapping:()=>F,maybeAddSegment:()=>z,setIgnore:()=>fe,setSourceContent:()=>G,toDecodedMap:()=>ve,toEncodedMap:()=>Ue}),t.exports=m(A);var C=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function k(K){return K}function D(K,V){return K._indexes[V]}function L(K,V){let Z=D(K,V);if(Z!==void 0)return Z;let{array:ie,_indexes:ye}=K,Te=ie.push(V);return ye[V]=Te-1}function B(K,V){let Z=D(K,V);if(Z===void 0)return;let{array:ie,_indexes:ye}=K;for(let Te=Z+1;Te<ie.length;Te++){let Fe=ie[Te];ie[Te-1]=Fe,ye[Fe]--}ye[V]=void 0,ie.pop()}var U=d(S()),oe=d(P()),me=0,ee=1,Pe=2,Ct=3,ze=4,Ot=-1,le=class{constructor({file:K,sourceRoot:V}={}){this._names=new C,this._sources=new C,this._sourcesContent=[],this._mappings=[],this.file=K,this.sourceRoot=V,this._ignoreList=new C}};function Je(K){return K}function Nt(K,V,Z,ie,ye,Te,Fe,Pt){return Me(!1,K,V,Z,ie,ye,Te,Fe,Pt)}function Y(K,V){return Kt(!1,K,V)}var z=(K,V,Z,ie,ye,Te,Fe,Pt)=>Me(!0,K,V,Z,ie,ye,Te,Fe,Pt),F=(K,V)=>Kt(!0,K,V);function G(K,V,Z){let{_sources:ie,_sourcesContent:ye}=K,Te=L(ie,V);ye[Te]=Z}function fe(K,V,Z=!0){let{_sources:ie,_sourcesContent:ye,_ignoreList:Te}=K,Fe=L(ie,V);Fe===ye.length&&(ye[Fe]=null),Z?L(Te,Fe):B(Te,Fe)}function ve(K){let{_mappings:V,_sources:Z,_sourcesContent:ie,_names:ye,_ignoreList:Te}=K;return it(V),{version:3,file:K.file||void 0,names:ye.array,sourceRoot:K.sourceRoot||void 0,sources:Z.array,sourcesContent:ie,mappings:V,ignoreList:Te.array}}function Ue(K){let V=ve(K);return Object.assign({},V,{mappings:(0,U.encode)(V.mappings)})}function Le(K){let V=new oe.TraceMap(K),Z=new le({file:V.file,sourceRoot:V.sourceRoot});return dt(Z._names,V.names),dt(Z._sources,V.sources),Z._sourcesContent=V.sourcesContent||V.sources.map(()=>null),Z._mappings=(0,oe.decodedMappings)(V),V.ignoreList&&dt(Z._ignoreList,V.ignoreList),Z}function Xe(K){let V=[],{_mappings:Z,_sources:ie,_names:ye}=K;for(let Te=0;Te<Z.length;Te++){let Fe=Z[Te];for(let Pt=0;Pt<Fe.length;Pt++){let ti=Fe[Pt],Xr={line:Te+1,column:ti[me]},Hr,yr,Tr;ti.length!==1&&(Hr=ie.array[ti[ee]],yr={line:ti[Pe]+1,column:ti[Ct]},ti.length===5&&(Tr=ye.array[ti[ze]])),V.push({generated:Xr,source:Hr,original:yr,name:Tr})}}return V}function Me(K,V,Z,ie,ye,Te,Fe,Pt,ti){let{_mappings:Xr,_sources:Hr,_sourcesContent:yr,_names:Tr}=V,gr=He(Xr,Z),Gr=tt(gr,ie);if(!ye)return K&&Bi(gr,Gr)?void 0:Ae(gr,Gr,[ie]);let ji=L(Hr,ye),xr=Pt?L(Tr,Pt):Ot;if(ji===yr.length&&(yr[ji]=ti??null),!(K&&Ht(gr,Gr,ji,Te,Fe,xr)))return Ae(gr,Gr,Pt?[ie,ji,Te,Fe,xr]:[ie,ji,Te,Fe])}function Re(K){}function He(K,V){for(let Z=K.length;Z<=V;Z++)K[Z]=[];return K[V]}function tt(K,V){let Z=K.length;for(let ie=Z-1;ie>=0;Z=ie--){let ye=K[ie];if(V>=ye[me])break}return Z}function Ae(K,V,Z){for(let ie=K.length;ie>V;ie--)K[ie]=K[ie-1];K[V]=Z}function it(K){let{length:V}=K,Z=V;for(let ie=Z-1;ie>=0&&!(K[ie].length>0);Z=ie,ie--);Z<V&&(K.length=Z)}function dt(K,V){for(let Z=0;Z<V.length;Z++)L(K,V[Z])}function Bi(K,V){return V===0?!0:K[V-1].length===1}function Ht(K,V,Z,ie,ye,Te){if(V===0)return!1;let Fe=K[V-1];return Fe.length===1?!1:Z===Fe[ee]&&ie===Fe[Pe]&&ye===Fe[Ct]&&Te===(Fe.length===5?Fe[ze]:Ot)}function Kt(K,V,Z){let{generated:ie,source:ye,original:Te,name:Fe,content:Pt}=Z;return ye?Me(K,V,ie.line-1,ie.column,ye,Te.line-1,Te.column,Fe,Pt):Me(K,V,ie.line-1,ie.column,null,null,null,null,null)}})});var aT=_(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.default=void 0;var ur=nT(),Gp=Jp(),Qp=class{constructor(e,i){var r;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;let s=this._map=new ur.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=(r=e.sourceFileName)==null?void 0:r.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new Gp.TraceMap(e.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let l=0;l<a.length;l++){var n;(0,ur.setSourceContent)(s,a[l],(n=this._inputMap.sourcesContent)==null?void 0:n[l])}}if(typeof i=="string"&&!e.inputSourceMap)(0,ur.setSourceContent)(s,this._sourceFileName,i);else if(typeof i=="object")for(let a of Object.keys(i))(0,ur.setSourceContent)(s,a.replace(/\\/g,"/"),i[a])}get(){return(0,ur.toEncodedMap)(this._map)}getDecoded(){return(0,ur.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,ur.allMappings)(this._map))}mark(e,i,r,s,n,a){var l;this._rawMappings=void 0;let c;if(i!=null)if(this._inputMap){if(c=(0,Gp.originalPositionFor)(this._inputMap,{line:i,column:r}),!c.name&&n){let o=(0,Gp.originalPositionFor)(this._inputMap,n);o.name&&(s=o.name)}}else c={source:a?.replace(/\\/g,"/")||this._sourceFileName,line:i,column:r};(0,ur.maybeAddMapping)(this._map,{name:s,generated:e,source:(l=c)==null?void 0:l.source,original:c})}};So.default=Qp});var oT=_(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.default=void 0;var Zp=class{constructor(e,i){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=i;for(let r=0;r<64;r++)this._fastIndentations.push(i.repeat(r));this._allocQueue()}_allocQueue(){let e=this._queue;for(let i=0;i<16;i++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,i,r,s,n){let a=this._queueCursor;a===this._queue.length&&this._allocQueue();let l=this._queue[a];l.char=e,l.repeat=i,l.line=r,l.column=s,l.filename=n,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let e=this._map,i={code:(this._buf+this._str).trimRight(),decodedMap:e?.getDecoded(),get __mergedMap(){return this.map},get map(){let r=e?e.get():null;return i.map=r,r},set map(r){Object.defineProperty(i,"map",{value:r,writable:!0})},get rawMappings(){let r=e?.getRawMappings();return i.rawMappings=r,r},set rawMappings(r){Object.defineProperty(i,"rawMappings",{value:r,writable:!0})}};return i}append(e,i){this._flush(),this._append(e,this._sourcePosition,i)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(e===10)for(;this._queueCursor!==0;){let r=this._queue[this._queueCursor-1].char;if(r!==32&&r!==9)break;this._queueCursor--}let i=this._sourcePosition;this._pushQueue(e,1,i.line,i.column,i.filename)}queueIndentation(e){e!==0&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){let e=this._queueCursor,i=this._queue;for(let r=0;r<e;r++){let s=i[r];this._appendChar(s.char,s.repeat,s)}this._queueCursor=0}_appendChar(e,i,r){if(this._last=e,e===-1){let s=this._fastIndentations[i];s!==void 0?this._str+=s:this._str+=i>1?this._indentChar.repeat(i):this._indentChar}else this._str+=i>1?String.fromCharCode(e).repeat(i):String.fromCharCode(e);e!==10?(this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename),this._position.column+=i):(this._position.line++,this._position.column=0),this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0)}_append(e,i,r){let s=e.length,n=this._position;if(this._last=e.charCodeAt(s-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!r&&!this._map){n.column+=s;return}let{column:a,identifierName:l,identifierNamePos:c,filename:o}=i,u=i.line;(l!=null||c!=null)&&this._canMarkIdName&&(i.identifierName=void 0,i.identifierNamePos=void 0);let f=e.indexOf(`
23
23
  `),d=0;for(f!==0&&this._mark(u,a,l,c,o);f!==-1;)n.line++,n.column=0,d=f+1,d<s&&u!==void 0&&this._mark(++u,0,null,null,o),f=e.indexOf(`
24
24
  `,d);n.column+=s-d}_mark(e,i,r,s,n){var a;(a=this._map)==null||a.mark(this._position,e,i,r,s,n)}removeTrailingNewline(){let e=this._queueCursor;e!==0&&this._queue[e-1].char===10&&this._queueCursor--}removeLastSemicolon(){let e=this._queueCursor;e!==0&&this._queue[e-1].char===59&&this._queueCursor--}getLastChar(){let e=this._queueCursor;return e!==0?this._queue[e-1].char:this._last}getNewlineCount(){let e=this._queueCursor,i=0;if(e===0)return this._last===10?1:0;for(let r=e-1;r>=0&&this._queue[r].char===10;r--)i++;return i===e&&this._last===10?i+1:i}endsWithCharAndNewline(){let e=this._queue,i=this._queueCursor;if(i!==0)return e[i-1].char!==10?void 0:i>1?e[i-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(e,i){if(!this._map){i();return}this.source("start",e);let r=e.identifierName,s=this._sourcePosition;r&&(this._canMarkIdName=!1,s.identifierName=r),i(),r&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",e)}source(e,i){this._map&&this._normalizePosition(e,i,0)}sourceWithOffset(e,i,r){this._map&&this._normalizePosition(e,i,r)}_normalizePosition(e,i,r){let s=i[e],n=this._sourcePosition;s&&(n.line=s.line,n.column=Math.max(s.column+r,0),n.filename=i.filename)}getCurrentColumn(){let e=this._queue,i=this._queueCursor,r=-1,s=0;for(let n=0;n<i;n++){let a=e[n];a.char===10&&(r=s),s+=a.repeat}return r===-1?this._position.column+s:s-1-r}getCurrentLine(){let e=0,i=this._queue;for(let r=0;r<this._queueCursor;r++)i[r].char===10&&e++;return this._position.line+e}};Eo.default=Zp});var fT=_(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.nodes=void 0;var I5=be(),{FLIPPED_ALIAS_KEYS:k5,isArrayExpression:_5,isAssignmentExpression:cT,isBinary:uT,isBlockStatement:O5,isCallExpression:pT,isFunction:On,isIdentifier:Po,isLiteral:N5,isMemberExpression:ef,isObjectExpression:D5,isOptionalCallExpression:L5,isOptionalMemberExpression:M5,isStringLiteral:F5}=I5;function vs(t,e){return t&&(ef(t)||M5(t)?(vs(t.object,e),t.computed&&vs(t.property,e)):uT(t)||cT(t)?(vs(t.left,e),vs(t.right,e)):pT(t)||L5(t)?(e.hasCall=!0,vs(t.callee,e)):On(t)?e.hasFunction=!0:Po(t)&&(e.hasHelper=e.hasHelper||t.callee&&Wi(t.callee))),e}function lT(t){return vs(t,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function Wi(t){return t?ef(t)?Wi(t.object)||Wi(t.property):Po(t)?t.name==="require"||t.name.charCodeAt(0)===95:pT(t)?Wi(t.callee):uT(t)||cT(t)?Po(t.left)&&Wi(t.left)||Wi(t.right):!1:!1}function B5(t){return N5(t)||D5(t)||_5(t)||Po(t)||ef(t)}var qr=vo.nodes={AssignmentExpression(t){let e=lT(t.right);if(e.hasCall&&e.hasHelper||e.hasFunction)return e.hasFunction?3:2},SwitchCase(t,e){return(t.consequent.length||e.cases[0]===t?1:0)|(!t.consequent.length&&e.cases[e.cases.length-1]===t?2:0)},LogicalExpression(t){if(On(t.left)||On(t.right))return 2},Literal(t){if(F5(t)&&t.value==="use strict")return 2},CallExpression(t){if(On(t.callee)||Wi(t))return 3},OptionalCallExpression(t){if(On(t.callee))return 3},VariableDeclaration(t){for(let e=0;e<t.declarations.length;e++){let i=t.declarations[e],r=Wi(i.id)&&!B5(i.init);if(!r&&i.init){let s=lT(i.init);r=Wi(i.init)&&s.hasCall||s.hasFunction}if(r)return 3}},IfStatement(t){if(O5(t.consequent))return 3}};qr.ObjectProperty=qr.ObjectTypeProperty=qr.ObjectMethod=function(t,e){if(e.properties[0]===t)return 1};qr.ObjectTypeCallProperty=function(t,e){var i;if(e.callProperties[0]===t&&!((i=e.properties)!=null&&i.length))return 1};qr.ObjectTypeIndexer=function(t,e){var i,r;if(e.indexers[0]===t&&!((i=e.properties)!=null&&i.length)&&!((r=e.callProperties)!=null&&r.length))return 1};qr.ObjectTypeInternalSlot=function(t,e){var i,r,s;if(e.internalSlots[0]===t&&!((i=e.properties)!=null&&i.length)&&!((r=e.callProperties)!=null&&r.length)&&!((s=e.indexers)!=null&&s.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([t,e]){[t].concat(k5[t]||[]).forEach(function(i){let r=e?3:0;qr[i]=()=>r})})});var bT=_(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.AssignmentExpression=m8;Ie.Binary=TT;Ie.BinaryExpression=c8;Ie.ClassExpression=f8;Ie.ArrowFunctionExpression=Ie.ConditionalExpression=xT;Ie.DoExpression=Q5;Ie.FunctionExpression=h8;Ie.FunctionTypeAnnotation=X5;Ie.Identifier=T8;Ie.LogicalExpression=y8;Ie.NullableTypeAnnotation=J5;Ie.ObjectExpression=G5;Ie.OptionalIndexedAccessType=e8;Ie.OptionalCallExpression=Ie.OptionalMemberExpression=d8;Ie.SequenceExpression=u8;Ie.TSSatisfiesExpression=Ie.TSAsExpression=t8;Ie.TSConditionalType=i8;Ie.TSConstructorType=Ie.TSFunctionType=l8;Ie.TSInferType=n8;Ie.TSInstantiationExpression=o8;Ie.TSIntersectionType=s8;Ie.UnaryLike=Ie.TSTypeAssertion=gT;Ie.TSTypeOperator=a8;Ie.TSUnionType=r8;Ie.IntersectionTypeAnnotation=Ie.UnionTypeAnnotation=Z5;Ie.UpdateExpression=H5;Ie.AwaitExpression=Ie.YieldExpression=p8;var j5=be(),ei=Ur(),{isArrayTypeAnnotation:R5,isBinaryExpression:$5,isCallExpression:q5,isForOfStatement:U5,isIndexedAccessType:K5,isMemberExpression:mT,isObjectPattern:V5,isOptionalMemberExpression:W5,isYieldExpression:Y5,isStatement:z5}=j5,hT=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function dT(t,e){if(e==="BinaryExpression"||e==="LogicalExpression")return hT.get(t.operator);if(e==="TSAsExpression"||e==="TSSatisfiesExpression")return hT.get("in")}function tf(t){return t==="TSAsExpression"||t==="TSSatisfiesExpression"||t==="TSTypeAssertion"}var Ao=(t,e)=>{let i=e.type;return(i==="ClassDeclaration"||i==="ClassExpression")&&e.superClass===t},wo=(t,e)=>{let i=e.type;return(i==="MemberExpression"||i==="OptionalMemberExpression")&&e.object===t||(i==="CallExpression"||i==="OptionalCallExpression"||i==="NewExpression")&&e.callee===t||i==="TaggedTemplateExpression"&&e.tag===t||i==="TSNonNullExpression"};function J5(t,e){return R5(e)}function X5(t,e,i){let r=e.type;return r==="UnionTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="ArrayTypeAnnotation"||!!(i&ei.TokenContext.arrowFlowReturnType)}function H5(t,e){return wo(t,e)||Ao(t,e)}function yT(t){return!!(t&(ei.TokenContext.expressionStatement|ei.TokenContext.arrowBody))}function G5(t,e,i){return yT(i)}function Q5(t,e,i){return!t.async&&!!(i&ei.TokenContext.expressionStatement)}function TT(t,e){let i=e.type;if(t.type==="BinaryExpression"&&t.operator==="**"&&i==="BinaryExpression"&&e.operator==="**")return e.left===t;if(Ao(t,e)||wo(t,e)||i==="UnaryExpression"||i==="SpreadElement"||i==="AwaitExpression")return!0;let r=dT(e,i);if(r!=null){let s=dT(t,t.type);if(r===s&&i==="BinaryExpression"&&e.right===t||r>s)return!0}}function Z5(t,e){let i=e.type;return i==="ArrayTypeAnnotation"||i==="NullableTypeAnnotation"||i==="IntersectionTypeAnnotation"||i==="UnionTypeAnnotation"}function e8(t,e){return K5(e)&&e.objectType===t}function t8(t,e){return(e.type==="AssignmentExpression"||e.type==="AssignmentPattern")&&e.left===t||e.type==="BinaryExpression"&&(e.operator==="|"||e.operator==="&")&&t===e.left?!0:TT(t,e)}function i8(t,e){let i=e.type;return i==="TSArrayType"||i==="TSIndexedAccessType"&&e.objectType===t||i==="TSOptionalType"||i==="TSTypeOperator"||i==="TSTypeParameter"||(i==="TSIntersectionType"||i==="TSUnionType")&&e.types[0]===t||i==="TSConditionalType"&&(e.checkType===t||e.extendsType===t)}function r8(t,e){let i=e.type;return i==="TSIntersectionType"||i==="TSTypeOperator"||i==="TSArrayType"||i==="TSIndexedAccessType"&&e.objectType===t||i==="TSOptionalType"}function s8(t,e){let i=e.type;return i==="TSTypeOperator"||i==="TSArrayType"||i==="TSIndexedAccessType"&&e.objectType===t||i==="TSOptionalType"}function n8(t,e){let i=e.type;return!!(i==="TSArrayType"||i==="TSIndexedAccessType"&&e.objectType===t||i==="TSOptionalType"||t.typeParameter.constraint&&(i==="TSIntersectionType"||i==="TSUnionType")&&e.types[0]===t)}function a8(t,e){let i=e.type;return i==="TSArrayType"||i==="TSIndexedAccessType"&&e.objectType===t||i==="TSOptionalType"}function o8(t,e){let i=e.type;return(i==="CallExpression"||i==="OptionalCallExpression"||i==="NewExpression"||i==="TSInstantiationExpression")&&!!e.typeParameters}function l8(t,e){let i=e.type;return i==="TSIntersectionType"||i==="TSUnionType"||i==="TSTypeOperator"||i==="TSOptionalType"||i==="TSArrayType"||i==="TSIndexedAccessType"&&e.objectType===t||i==="TSConditionalType"&&(e.checkType===t||e.extendsType===t)}function c8(t,e,i){return t.operator==="in"&&!!(i&ei.TokenContext.forInOrInitHeadAccumulate)}function u8(t,e){let i=e.type;return i==="SequenceExpression"||i==="ParenthesizedExpression"||i==="MemberExpression"&&e.property===t||i==="OptionalMemberExpression"&&e.property===t||i==="TemplateLiteral"?!1:i==="ClassDeclaration"?!0:i==="ForOfStatement"?e.right===t:i==="ExportDefaultDeclaration"?!0:!z5(e)}function p8(t,e){let i=e.type;return i==="BinaryExpression"||i==="LogicalExpression"||i==="UnaryExpression"||i==="SpreadElement"||wo(t,e)||i==="AwaitExpression"&&Y5(t)||i==="ConditionalExpression"&&t===e.test||Ao(t,e)||tf(i)}function f8(t,e,i){return!!(i&(ei.TokenContext.expressionStatement|ei.TokenContext.exportDefault))}function gT(t,e){return wo(t,e)||$5(e)&&e.operator==="**"&&e.left===t||Ao(t,e)}function h8(t,e,i){return!!(i&(ei.TokenContext.expressionStatement|ei.TokenContext.exportDefault))}function xT(t,e){let i=e.type;return i==="UnaryExpression"||i==="SpreadElement"||i==="BinaryExpression"||i==="LogicalExpression"||i==="ConditionalExpression"&&e.test===t||i==="AwaitExpression"||tf(i)?!0:gT(t,e)}function d8(t,e){return q5(e)&&e.callee===t||mT(e)&&e.object===t}function m8(t,e,i){return yT(i)&&V5(t.left)?!0:xT(t,e)}function y8(t,e){let i=e.type;if(tf(i))return!0;if(i!=="LogicalExpression")return!1;switch(t.operator){case"||":return e.operator==="??"||e.operator==="&&";case"&&":return e.operator==="??";case"??":return e.operator!=="??"}}function T8(t,e,i,r){var s;let n=e.type;if((s=t.extra)!=null&&s.parenthesized&&n==="AssignmentExpression"&&e.left===t){let a=e.right.type;if((a==="FunctionExpression"||a==="ClassExpression")&&e.right.id==null)return!0}return r&&r(t)!==t.name?!1:t.name==="let"?(mT(e,{object:t,computed:!0})||W5(e,{object:t,computed:!0,optional:!1}))&&i&(ei.TokenContext.expressionStatement|ei.TokenContext.forInitHead|ei.TokenContext.forInHead)?!0:!!(i&ei.TokenContext.forOfHead):t.name==="async"&&U5(e,{left:t,await:!1})}});var Ur=_(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.TokenContext=void 0;Yi.isLastChild=D8;Yi.needsParens=N8;Yi.needsWhitespace=sf;Yi.needsWhitespaceAfter=O8;Yi.needsWhitespaceBefore=_8;var g8=fT(),x8=bT(),b8=be(),{FLIPPED_ALIAS_KEYS:S8,VISITOR_KEYS:E8,isCallExpression:ST,isDecorator:P8,isExpressionStatement:v8,isMemberExpression:A8,isNewExpression:w8,isParenthesizedExpression:C8}=b8,Iae=Yi.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};function ET(t){let e=new Map;function i(r,s){let n=e.get(r);e.set(r,n?function(a,l,c,o){var u;return(u=n(a,l,c,o))!=null?u:s(a,l,c,o)}:s)}for(let r of Object.keys(t)){let s=S8[r];if(s)for(let n of s)i(n,t[r]);else i(r,t[r])}return e}var I8=ET(x8),k8=ET(g8.nodes);function PT(t){return ST(t)?!0:A8(t)&&PT(t.object)}function sf(t,e,i){var r;if(!t)return!1;v8(t)&&(t=t.expression);let s=(r=k8.get(t.type))==null?void 0:r(t,e);return typeof s=="number"?(s&i)!==0:!1}function _8(t,e){return sf(t,e,1)}function O8(t,e){return sf(t,e,2)}function N8(t,e,i,r){var s;return e?w8(e)&&e.callee===t&&PT(t)?!0:P8(e)?!rf(t)&&!(ST(t)&&rf(t.callee))&&!C8(t):(s=I8.get(t.type))==null?void 0:s(t,e,i,r):!1}function rf(t){switch(t.type){case"Identifier":return!0;case"MemberExpression":return!t.computed&&t.property.type==="Identifier"&&rf(t.object);default:return!1}}function D8(t,e){let i=E8[t.type];for(let r=i.length-1;r>=0;r--){let s=t[i[r]];if(s===e)return!0;if(Array.isArray(s)){let n=s.length-1;for(;n>=0&&s[n]===null;)n--;return n>=0&&s[n]===e}else if(s)return!1}return!1}});var vT=_(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.TokenMap=void 0;var L8=be(),{traverseFast:M8,VISITOR_KEYS:F8}=L8,nf=class{constructor(e,i,r){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=i,this._source=r,M8(e,s=>{let n=this._getTokensIndexesOfNode(s);n.length>0&&this._nodesToTokenIndexes.set(s,n)}),this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,i){let r=this._nodesToTokenIndexes.get(e);if(r)for(let s=0;s<r.length;s++){let n=r[s],a=this._tokens[n];if(i(a,n))return a}return null}findLastIndex(e,i){let r=this._nodesToTokenIndexes.get(e);if(r)for(let s=r.length-1;s>=0;s--){let n=r[s],a=this._tokens[n];if(i(a,n))return n}return-1}findMatching(e,i,r=0){let s=this._nodesToTokenIndexes.get(e);if(s){let n=0,a=r;if(a>1){let l=this._nodesOccurrencesCountCache.get(e);l&&l.test===i&&l.count<a&&(n=l.i+1,r-=l.count+1)}for(;n<s.length;n++){let l=this._tokens[s[n]];if(this.matchesOriginal(l,i)){if(r===0)return a>0&&this._nodesOccurrencesCountCache.set(e,{test:i,count:a,i:n}),l;r--}}}return null}matchesOriginal(e,i){return e.end-e.start!==i.length?!1:e.value!=null?e.value===i:this._source.startsWith(i,e.start)}startMatches(e,i){let r=this._nodesToTokenIndexes.get(e);if(!r)return!1;let s=this._tokens[r[0]];return s.start!==e.start?!1:this.matchesOriginal(s,i)}endMatches(e,i){let r=this._nodesToTokenIndexes.get(e);if(!r)return!1;let s=this._tokens[r[r.length-1]];return s.end!==e.end?!1:this.matchesOriginal(s,i)}_getTokensIndexesOfNode(e){if(e.start==null||e.end==null)return[];let{first:i,last:r}=this._findTokensOfNode(e,0,this._tokens.length-1),s=i,n=B8(e);(e.type==="ExportNamedDeclaration"||e.type==="ExportDefaultDeclaration")&&e.declaration&&e.declaration.type==="ClassDeclaration"&&n.next();let a=[];for(let l of n){if(l==null||l.start==null||l.end==null)continue;let c=this._findTokensOfNode(l,s,r),o=c.first;for(let u=s;u<o;u++)a.push(u);s=c.last+1}for(let l=s;l<=r;l++)a.push(l);return a}_findTokensOfNode(e,i,r){let s=this._tokensCache.get(e);if(s)return s;let n=this._findFirstTokenOfNode(e.start,i,r),a=this._findLastTokenOfNode(e.end,n,r);return this._tokensCache.set(e,{first:n,last:a}),{first:n,last:a}}_findFirstTokenOfNode(e,i,r){for(;i<=r;){let s=r+i>>1;if(e<this._tokens[s].start)r=s-1;else if(e>this._tokens[s].start)i=s+1;else return s}return i}_findLastTokenOfNode(e,i,r){for(;i<=r;){let s=r+i>>1;if(e<this._tokens[s].end)r=s-1;else if(e>this._tokens[s].end)i=s+1;else return s}return r}};Co.TokenMap=nf;function*B8(t){if(t.type==="TemplateLiteral"){yield t.quasis[0];for(let i=1;i<t.quasis.length;i++)yield t.expressions[i-1],yield t.quasis[i];return}let e=F8[t.type];for(let i of e){let r=t[i];r&&(Array.isArray(r)?yield*r:yield r)}}});var AT=_(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.TaggedTemplateExpression=j8;As.TemplateElement=R8;As.TemplateLiteral=q8;As._printTemplate=$8;function j8(t){this.print(t.tag),this.print(t.typeParameters),this.print(t.quasi)}function R8(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function $8(t,e){let i=t.quasis,r="`";for(let s=0;s<i.length-1;s++)if(r+=i[s].value.raw,this.token(r+"${",!0),this.print(e[s]),r="}",this.tokenMap){let n=this.tokenMap.findMatching(t,"}",s);n&&this._catchUpTo(n.loc.start)}r+=i[i.length-1].value.raw,this.token(r+"`",!0)}function q8(t){this._printTemplate(t,t.expressions)}});var CT=_(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.LogicalExpression=qe.BinaryExpression=qe.AssignmentExpression=h7;qe.AssignmentPattern=f7;qe.AwaitExpression=l7;qe.BindExpression=d7;qe.CallExpression=a7;qe.ConditionalExpression=G8;qe.Decorator=r7;qe.DoExpression=J8;qe.EmptyStatement=u7;qe.ExpressionStatement=p7;qe.Import=o7;qe.MemberExpression=m7;qe.MetaProperty=y7;qe.ModuleExpression=x7;qe.NewExpression=Q8;qe.OptionalCallExpression=n7;qe.OptionalMemberExpression=s7;qe.ParenthesizedExpression=X8;qe.PrivateName=T7;qe.SequenceExpression=Z8;qe.Super=t7;qe.ThisExpression=e7;qe.UnaryExpression=z8;qe.UpdateExpression=H8;qe.V8IntrinsicIdentifier=g7;qe.YieldExpression=c7;qe._shouldPrintDecoratorsBeforeExport=i7;var U8=be(),K8=Ur(),{isCallExpression:V8,isLiteral:wT,isMemberExpression:af,isNewExpression:W8,isPattern:Y8}=U8;function z8(t){let{operator:e}=t;e==="void"||e==="delete"||e==="typeof"||e==="throw"?(this.word(e),this.space()):this.token(e),this.print(t.argument)}function J8(t){t.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(t.body)}function X8(t){this.tokenChar(40);let e=this.enterDelimited();this.print(t.expression),e(),this.rightParens(t)}function H8(t){t.prefix?(this.token(t.operator),this.print(t.argument)):(this.print(t.argument,!0),this.token(t.operator))}function G8(t){this.print(t.test),this.space(),this.tokenChar(63),this.space(),this.print(t.consequent),this.space(),this.tokenChar(58),this.space(),this.print(t.alternate)}function Q8(t,e){if(this.word("new"),this.space(),this.print(t.callee),this.format.minified&&t.arguments.length===0&&!t.optional&&!V8(e,{callee:t})&&!af(e)&&!W8(e)||(this.print(t.typeArguments),this.print(t.typeParameters),t.optional&&this.token("?."),t.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(t,")")))return;this.tokenChar(40);let i=this.enterDelimited();this.printList(t.arguments,this.shouldPrintTrailingComma(")")),i(),this.rightParens(t)}function Z8(t){this.printList(t.expressions)}function e7(){this.word("this")}function t7(){this.word("super")}function i7(t){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof t.start=="number"&&t.start===t.declaration.start}function r7(t){this.tokenChar(64),this.print(t.expression),this.newline()}function s7(t){let{computed:e}=t,{optional:i,property:r}=t;if(this.print(t.object),!e&&af(r))throw new TypeError("Got a MemberExpression for MemberExpression property");wT(r)&&typeof r.value=="number"&&(e=!0),i&&this.token("?."),e?(this.tokenChar(91),this.print(r),this.tokenChar(93)):(i||this.tokenChar(46),this.print(r))}function n7(t){this.print(t.callee),this.print(t.typeParameters),t.optional&&this.token("?."),this.print(t.typeArguments),this.tokenChar(40);let e=this.enterDelimited();this.printList(t.arguments),e(),this.rightParens(t)}function a7(t){this.print(t.callee),this.print(t.typeArguments),this.print(t.typeParameters),this.tokenChar(40);let e=this.enterDelimited();this.printList(t.arguments,this.shouldPrintTrailingComma(")")),e(),this.rightParens(t)}function o7(){this.word("import")}function l7(t){this.word("await"),this.space(),this.print(t.argument)}function c7(t){t.delegate?(this.word("yield",!0),this.tokenChar(42),t.argument&&(this.space(),this.print(t.argument))):t.argument?(this.word("yield",!0),this.space(),this.print(t.argument)):this.word("yield")}function u7(){this.semicolon(!0)}function p7(t){this.tokenContext|=K8.TokenContext.expressionStatement,this.print(t.expression),this.semicolon()}function f7(t){this.print(t.left),(t.left.type==="Identifier"||Y8(t.left))&&(t.left.optional&&this.tokenChar(63),this.print(t.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(t.right)}function h7(t){this.print(t.left),this.space(),t.operator==="in"||t.operator==="instanceof"?this.word(t.operator):(this.token(t.operator),this._endsWithDiv=t.operator==="/"),this.space(),this.print(t.right)}function d7(t){this.print(t.object),this.token("::"),this.print(t.callee)}function m7(t){if(this.print(t.object),!t.computed&&af(t.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let e=t.computed;if(wT(t.property)&&typeof t.property.value=="number"&&(e=!0),e){let i=this.enterDelimited();this.tokenChar(91),this.print(t.property),this.tokenChar(93),i()}else this.tokenChar(46),this.print(t.property)}function y7(t){this.print(t.meta),this.tokenChar(46),this.print(t.property)}function T7(t){this.tokenChar(35),this.print(t.id)}function g7(t){this.tokenChar(37),this.word(t.name)}function x7(t){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:e}=t;(e.body.length||e.directives.length)&&this.newline(),this.print(e),this.dedent(),this.rightBrace(t)}});var OT=_(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.BreakStatement=k7;ot.CatchClause=M7;ot.ContinueStatement=_7;ot.DebuggerStatement=j7;ot.DoWhileStatement=I7;ot.ForOfStatement=ot.ForInStatement=void 0;ot.ForStatement=w7;ot.IfStatement=A7;ot.LabeledStatement=D7;ot.ReturnStatement=O7;ot.SwitchCase=B7;ot.SwitchStatement=F7;ot.ThrowStatement=N7;ot.TryStatement=L7;ot.VariableDeclaration=R7;ot.VariableDeclarator=$7;ot.WhileStatement=C7;ot.WithStatement=v7;var b7=be(),{isFor:IT,isForStatement:S7,isIfStatement:E7,isStatement:P7}=b7;function v7(t){this.word("with"),this.space(),this.tokenChar(40),this.print(t.object),this.tokenChar(41),this.printBlock(t)}function A7(t){this.word("if"),this.space(),this.tokenChar(40),this.print(t.test),this.tokenChar(41),this.space();let e=t.alternate&&E7(kT(t.consequent));e&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(t.consequent),e&&(this.dedent(),this.newline(),this.tokenChar(125)),t.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(t.alternate))}function kT(t){let{body:e}=t;return P7(e)===!1?t:kT(e)}function w7(t){this.word("for"),this.space(),this.tokenChar(40);{let e=this.enterForStatementInit();this.print(t.init),e()}this.tokenChar(59),t.test&&(this.space(),this.print(t.test)),this.token(";",!1,1),t.update&&(this.space(),this.print(t.update)),this.tokenChar(41),this.printBlock(t)}function C7(t){this.word("while"),this.space(),this.tokenChar(40),this.print(t.test),this.tokenChar(41),this.printBlock(t)}function _T(t){this.word("for"),this.space();let e=t.type==="ForOfStatement";e&&t.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{let i=this.enterForXStatementInit(e);this.print(t.left),i?.()}this.space(),this.word(e?"of":"in"),this.space(),this.print(t.right),this.tokenChar(41),this.printBlock(t)}var Dae=ot.ForInStatement=_T,Lae=ot.ForOfStatement=_T;function I7(t){this.word("do"),this.space(),this.print(t.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(t.test),this.tokenChar(41),this.semicolon()}function Io(t,e){e&&(t.space(),t.printTerminatorless(e)),t.semicolon()}function k7(t){this.word("break"),Io(this,t.label)}function _7(t){this.word("continue"),Io(this,t.label)}function O7(t){this.word("return"),Io(this,t.argument)}function N7(t){this.word("throw"),Io(this,t.argument)}function D7(t){this.print(t.label),this.tokenChar(58),this.space(),this.print(t.body)}function L7(t){this.word("try"),this.space(),this.print(t.block),this.space(),t.handlers?this.print(t.handlers[0]):this.print(t.handler),t.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(t.finalizer))}function M7(t){this.word("catch"),this.space(),t.param&&(this.tokenChar(40),this.print(t.param),this.print(t.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(t.body)}function F7(t){this.word("switch"),this.space(),this.tokenChar(40),this.print(t.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(t.cases,!0,void 0,function(i,r){if(!i&&t.cases[t.cases.length-1]===r)return-1}),this.rightBrace(t)}function B7(t){t.test?(this.word("case"),this.space(),this.print(t.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),t.consequent.length&&(this.newline(),this.printSequence(t.consequent,!0))}function j7(){this.word("debugger"),this.semicolon()}function R7(t,e){t.declare&&(this.word("declare"),this.space());let{kind:i}=t;i==="await using"?(this.word("await"),this.space(),this.word("using",!0)):this.word(i,i==="using"),this.space();let r=!1;if(!IT(e))for(let s of t.declarations)s.init&&(r=!0);if(this.printList(t.declarations,void 0,void 0,t.declarations.length>1,r?function(s){this.token(",",!1,s),this.newline()}:void 0),IT(e)){if(S7(e)){if(e.init===t)return}else if(e.left===t)return}this.semicolon()}function $7(t){this.print(t.id),t.definite&&this.tokenChar(33),this.print(t.id.typeAnnotation),t.init&&(this.space(),this.tokenChar(61),this.space(),this.print(t.init))}});var NT=_(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.ClassAccessorProperty=J7;li.ClassBody=W7;li.ClassExpression=li.ClassDeclaration=V7;li.ClassMethod=H7;li.ClassPrivateMethod=G7;li.ClassPrivateProperty=X7;li.ClassProperty=z7;li.StaticBlock=Z7;li._classMethodHead=Q7;var q7=be(),{isExportDefaultDeclaration:U7,isExportNamedDeclaration:K7}=q7;function V7(t,e){(!(U7(e)||K7(e))||!this._shouldPrintDecoratorsBeforeExport(e))&&this.printJoin(t.decorators),t.declare&&(this.word("declare"),this.space()),t.abstract&&(this.word("abstract"),this.space()),this.word("class"),t.id&&(this.space(),this.print(t.id)),this.print(t.typeParameters),t.superClass&&(this.space(),this.word("extends"),this.space(),this.print(t.superClass),this.print(t.superTypeParameters)),t.implements&&(this.space(),this.word("implements"),this.space(),this.printList(t.implements)),this.space(),this.print(t.body)}function W7(t){if(this.tokenChar(123),t.body.length===0)this.tokenChar(125);else{this.newline();let e=Y7(this,t);e?.(-1);let i=this.enterDelimited();this.printJoin(t.body,!0,!0,e,!0),i(),this.endsWith(10)||this.newline(),this.rightBrace(t)}}function Y7(t,e){if(!t.tokenMap||e.start==null||e.end==null)return null;let i=t.tokenMap.getIndexes(e);if(!i)return null;let r=1,s=0,n=0,a=()=>{for(;n<e.body.length&&e.body[n].start==null;)n++};return a(),l=>{n<=l&&(n=l+1,a());let c=n===e.body.length?e.end:e.body[n].start,o;for(;r<i.length&&t.tokenMap.matchesOriginal(o=t._tokens[i[r]],";")&&o.start<c;)t.token(";",void 0,s++),r++}}function z7(t){if(this.printJoin(t.decorators),!t.static&&!this.format.preserveFormat){var e;let i=(e=t.key.loc)==null||(e=e.end)==null?void 0:e.line;i&&this.catchUp(i)}this.tsPrintClassMemberModifiers(t),t.computed?(this.tokenChar(91),this.print(t.key),this.tokenChar(93)):(this._variance(t),this.print(t.key)),t.optional&&this.tokenChar(63),t.definite&&this.tokenChar(33),this.print(t.typeAnnotation),t.value&&(this.space(),this.tokenChar(61),this.space(),this.print(t.value)),this.semicolon()}function J7(t){var e;this.printJoin(t.decorators);let i=(e=t.key.loc)==null||(e=e.end)==null?void 0:e.line;i&&this.catchUp(i),this.tsPrintClassMemberModifiers(t),this.word("accessor",!0),this.space(),t.computed?(this.tokenChar(91),this.print(t.key),this.tokenChar(93)):(this._variance(t),this.print(t.key)),t.optional&&this.tokenChar(63),t.definite&&this.tokenChar(33),this.print(t.typeAnnotation),t.value&&(this.space(),this.tokenChar(61),this.space(),this.print(t.value)),this.semicolon()}function X7(t){this.printJoin(t.decorators),this.tsPrintClassMemberModifiers(t),this.print(t.key),t.optional&&this.tokenChar(63),t.definite&&this.tokenChar(33),this.print(t.typeAnnotation),t.value&&(this.space(),this.tokenChar(61),this.space(),this.print(t.value)),this.semicolon()}function H7(t){this._classMethodHead(t),this.space(),this.print(t.body)}function G7(t){this._classMethodHead(t),this.space(),this.print(t.body)}function Q7(t){if(this.printJoin(t.decorators),!this.format.preserveFormat){var e;let i=(e=t.key.loc)==null||(e=e.end)==null?void 0:e.line;i&&this.catchUp(i)}this.tsPrintClassMemberModifiers(t),this._methodHead(t)}function Z7(t){this.word("static"),this.space(),this.tokenChar(123),t.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(t.body,!0),this.rightBrace(t))}});var DT=_(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.ArrowFunctionExpression=u$;ci.FunctionDeclaration=ci.FunctionExpression=c$;ci._functionHead=l$;ci._methodHead=a$;ci._param=n$;ci._parameters=s$;ci._params=r$;ci._predicate=o$;ci._shouldPrintArrowParamsParens=p$;var e$=be(),t$=Ur(),{isIdentifier:i$}=e$;function r$(t,e,i){this.print(t.typeParameters);let r=f$.call(this,e,i);r&&this.sourceIdentifierName(r.name,r.pos),this.tokenChar(40),this._parameters(t.params,")");let s=t.type==="ArrowFunctionExpression";this.print(t.returnType,s),this._noLineTerminator=s}function s$(t,e){let i=this.enterDelimited(),r=this.shouldPrintTrailingComma(e),s=t.length;for(let n=0;n<s;n++)this._param(t[n]),(r||n<s-1)&&(this.token(",",null,n),this.space());this.token(e),i()}function n$(t){this.printJoin(t.decorators),this.print(t),t.optional&&this.tokenChar(63),this.print(t.typeAnnotation)}function a$(t){let e=t.kind,i=t.key;(e==="get"||e==="set")&&(this.word(e),this.space()),t.async&&(this.word("async",!0),this.space()),(e==="method"||e==="init")&&t.generator&&this.tokenChar(42),t.computed?(this.tokenChar(91),this.print(i),this.tokenChar(93)):this.print(i),t.optional&&this.tokenChar(63),this._params(t,t.computed&&t.key.type!=="StringLiteral"?void 0:t.key,void 0)}function o$(t,e){t.predicate&&(t.returnType||this.tokenChar(58),this.space(),this.print(t.predicate,e))}function l$(t,e){t.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),t.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),t.id&&this.print(t.id),this._params(t,t.id,e),t.type!=="TSDeclareFunction"&&this._predicate(t)}function c$(t,e){this._functionHead(t,e),this.space(),this.print(t.body)}function u$(t,e){t.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(t)?this._params(t,void 0,e):this.print(t.params[0],!0),this._predicate(t,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=t$.TokenContext.arrowBody,this.print(t.body)}function p$(t){var e,i;if(t.params.length!==1||t.typeParameters||t.returnType||t.predicate)return!0;let r=t.params[0];if(!i$(r)||r.typeAnnotation||r.optional||(e=r.leadingComments)!=null&&e.length||(i=r.trailingComments)!=null&&i.length)return!0;if(this.tokenMap){if(t.loc==null||this.tokenMap.findMatching(t,"(")!==null)return!0;let s=this.tokenMap.findMatching(t,"=>");return s?.loc==null?!0:s.loc.start.line!==t.loc.start.line}return!!this.format.retainLines}function f$(t,e){let i=t;if(!i&&e){let c=e.type;c==="VariableDeclarator"?i=e.id:c==="AssignmentExpression"||c==="AssignmentPattern"?i=e.left:c==="ObjectProperty"||c==="ClassProperty"?(!e.computed||e.key.type==="StringLiteral")&&(i=e.key):(c==="ClassPrivateProperty"||c==="ClassAccessorProperty")&&(i=e.key)}if(!i)return;let r;if(i.type==="Identifier"){var s,n;r={pos:(s=i.loc)==null?void 0:s.start,name:((n=i.loc)==null?void 0:n.identifierName)||i.name}}else if(i.type==="PrivateName"){var a;r={pos:(a=i.loc)==null?void 0:a.start,name:"#"+i.id.name}}else if(i.type==="StringLiteral"){var l;r={pos:(l=i.loc)==null?void 0:l.start,name:i.value}}return r}});var of=_($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.ExportAllDeclaration=w$;$t.ExportDefaultDeclaration=I$;$t.ExportDefaultSpecifier=E$;$t.ExportNamedDeclaration=C$;$t.ExportNamespaceSpecifier=v$;$t.ExportSpecifier=P$;$t.ImportAttribute=_$;$t.ImportDeclaration=k$;$t.ImportDefaultSpecifier=S$;$t.ImportExpression=N$;$t.ImportNamespaceSpecifier=O$;$t.ImportSpecifier=b$;$t._printAttributes=A$;var h$=be(),d$=Ur(),{isClassDeclaration:m$,isExportDefaultSpecifier:y$,isExportNamespaceSpecifier:T$,isImportDefaultSpecifier:g$,isImportNamespaceSpecifier:x$,isStatement:MT}=h$;function b$(t){(t.importKind==="type"||t.importKind==="typeof")&&(this.word(t.importKind),this.space()),this.print(t.imported),t.local&&t.local.name!==t.imported.name&&(this.space(),this.word("as"),this.space(),this.print(t.local))}function S$(t){this.print(t.local)}function E$(t){this.print(t.exported)}function P$(t){t.exportKind==="type"&&(this.word("type"),this.space()),this.print(t.local),t.exported&&t.local.name!==t.exported.name&&(this.space(),this.word("as"),this.space(),this.print(t.exported))}function v$(t){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(t.exported)}var LT=!1;function A$(t,e){var i;let{importAttributesKeyword:r}=this.format,{attributes:s,assertions:n}=t;s&&!r&&t.extra&&(t.extra.deprecatedAssertSyntax||t.extra.deprecatedWithLegacySyntax)&&!LT&&(LT=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let a=r==="assert"||!r&&n;if(this.word(a?"assert":"with"),this.space(),!a&&(r==="with-legacy"||!r&&(i=t.extra)!=null&&i.deprecatedWithLegacySyntax)){this.printList(s||n);return}let l=e?1:0;this.token("{",null,l),this.space(),this.printList(s||n,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,l)}function w$(t){var e,i;this.word("export"),this.space(),t.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(e=t.attributes)!=null&&e.length||(i=t.assertions)!=null&&i.length?(this.print(t.source,!0),this.space(),this._printAttributes(t,!1)):this.print(t.source),this.semicolon()}function FT(t,e){m$(e.declaration)&&t._shouldPrintDecoratorsBeforeExport(e)&&t.printJoin(e.declaration.decorators)}function C$(t){if(FT(this,t),this.word("export"),this.space(),t.declaration){let r=t.declaration;this.print(r),MT(r)||this.semicolon()}else{t.exportKind==="type"&&(this.word("type"),this.space());let r=t.specifiers.slice(0),s=!1;for(;;){let a=r[0];if(y$(a)||T$(a))s=!0,this.print(r.shift()),r.length&&(this.tokenChar(44),this.space());else break}let n=!1;if((r.length||!r.length&&!s)&&(n=!0,this.tokenChar(123),r.length&&(this.space(),this.printList(r,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),t.source){var e,i;this.space(),this.word("from"),this.space(),(e=t.attributes)!=null&&e.length||(i=t.assertions)!=null&&i.length?(this.print(t.source,!0),this.space(),this._printAttributes(t,n)):this.print(t.source)}this.semicolon()}}function I$(t){FT(this,t),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=d$.TokenContext.exportDefault;let e=t.declaration;this.print(e),MT(e)||this.semicolon()}function k$(t){var e,i;this.word("import"),this.space();let r=t.importKind==="type"||t.importKind==="typeof";r?(this.noIndentInnerCommentsHere(),this.word(t.importKind),this.space()):t.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):t.phase&&(this.noIndentInnerCommentsHere(),this.word(t.phase),this.space());let s=t.specifiers.slice(0),n=!!s.length;for(;n;){let l=s[0];if(g$(l)||x$(l))this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}let a=!1;s.length?(a=!0,this.tokenChar(123),this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):r&&!n&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(n||r)&&(this.space(),this.word("from"),this.space()),(e=t.attributes)!=null&&e.length||(i=t.assertions)!=null&&i.length?(this.print(t.source,!0),this.space(),this._printAttributes(t,a)):this.print(t.source),this.semicolon()}function _$(t){this.print(t.key),this.tokenChar(58),this.space(),this.print(t.value)}function O$(t){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(t.local)}function N$(t){this.word("import"),t.phase&&(this.tokenChar(46),this.word(t.phase)),this.tokenChar(40);let e=this.shouldPrintTrailingComma(")");this.print(t.source),t.options!=null&&(this.tokenChar(44),this.space(),this.print(t.options)),e&&this.tokenChar(44),this.rightParens(t)}});var $T=_((Rae,RT)=>{"use strict";var BT={},D$=BT.hasOwnProperty,jT=(t,e)=>{for(let i in t)D$.call(t,i)&&e(i,t[i])},L$=(t,e)=>(e&&jT(e,(i,r)=>{t[i]=r}),t),M$=(t,e)=>{let i=t.length,r=-1;for(;++r<i;)e(t[r])},ko=t=>"\\u"+("0000"+t).slice(-4),Nn=(t,e)=>{let i=t.toString(16);return e?i:i.toUpperCase()},Dn=BT.toString,F$=Array.isArray,B$=t=>typeof Buffer=="function"&&Buffer.isBuffer(t),j$=t=>Dn.call(t)=="[object Object]",R$=t=>typeof t=="string"||Dn.call(t)=="[object String]",$$=t=>typeof t=="number"||Dn.call(t)=="[object Number]",lf=t=>typeof t=="bigint",q$=t=>typeof t=="function",U$=t=>Dn.call(t)=="[object Map]",K$=t=>Dn.call(t)=="[object Set]",V$={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},W$=/[\\\b\f\n\r\t]/,Y$=/[0-9]/,z$=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,J$=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,X$=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,pr=(t,e)=>{let i=()=>{o=c,++e.indentLevel,c=e.indent.repeat(e.indentLevel)},r={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},s=e&&e.json;s&&(r.quotes="double",r.wrap=!0),e=L$(r,e),e.quotes!="single"&&e.quotes!="double"&&e.quotes!="backtick"&&(e.quotes="single");let n=e.quotes=="double"?'"':e.quotes=="backtick"?"`":"'",a=e.compact,l=e.lowercaseHex,c=e.indent.repeat(e.indentLevel),o="",u=e.__inline1__,f=e.__inline2__,d=a?"":`
25
25
  `,m,S=!0,P=e.numbers=="binary",A=e.numbers=="octal",C=e.numbers=="decimal",k=e.numbers=="hexadecimal";if(s&&t&&q$(t.toJSON)&&(t=t.toJSON()),!R$(t)){if(U$(t))return t.size==0?"new Map()":(a||(e.__inline1__=!0,e.__inline2__=!1),"new Map("+pr(Array.from(t),e)+")");if(K$(t))return t.size==0?"new Set()":"new Set("+pr(Array.from(t),e)+")";if(B$(t))return t.length==0?"Buffer.from([])":"Buffer.from("+pr(Array.from(t),e)+")";if(F$(t))return m=[],e.wrap=!0,u&&(e.__inline1__=!1,e.__inline2__=!0),f||i(),M$(t,L=>{S=!1,f&&(e.__inline2__=!1),m.push((a||f?"":c)+pr(L,e))}),S?"[]":f?"["+m.join(", ")+"]":"["+d+m.join(","+d)+d+(a?"":o)+"]";if($$(t)||lf(t)){if(s)return JSON.stringify(Number(t));let L;if(C)L=String(t);else if(k){let B=t.toString(16);l||(B=B.toUpperCase()),L="0x"+B}else P?L="0b"+t.toString(2):A&&(L="0o"+t.toString(8));return lf(t)?L+"n":L}else return lf(t)?s?JSON.stringify(Number(t)):t+"n":j$(t)?(m=[],e.wrap=!0,i(),jT(t,(L,B)=>{S=!1,m.push((a?"":c)+pr(L,e)+":"+(a?"":" ")+pr(B,e))}),S?"{}":"{"+d+m.join(","+d)+d+(a?"":o)+"}"):s?JSON.stringify(t)||"null":String(t)}let D=e.escapeEverything?J$:X$;return m=t.replace(D,(L,B,U,oe,me,ee)=>{if(B){if(e.minimal)return B;let Ct=B.charCodeAt(0),ze=B.charCodeAt(1);if(e.es6){let Ot=(Ct-55296)*1024+ze-56320+65536;return"\\u{"+Nn(Ot,l)+"}"}return ko(Nn(Ct,l))+ko(Nn(ze,l))}if(U)return ko(Nn(U.charCodeAt(0),l));if(L=="\0"&&!s&&!Y$.test(ee.charAt(me+1)))return"\\0";if(oe)return oe==n||e.escapeEverything?"\\"+oe:oe;if(W$.test(L))return V$[L];if(e.minimal&&!z$.test(L))return L;let Pe=Nn(L.charCodeAt(0),l);return s||Pe.length>2?ko(Pe):"\\x"+("00"+Pe).slice(-2)}),n=="`"&&(m=m.replace(/\$\{/g,"\\${")),e.isScriptContext&&(m=m.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--")),e.wrap&&(m=n+m+n),m};pr.version="3.0.2";RT.exports=pr});var uf=_(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.ArgumentPlaceholder=eq;et.ArrayPattern=et.ArrayExpression=nq;et.BigIntLiteral=hq;et.BooleanLiteral=cq;et.Identifier=Z$;et.NullLiteral=uq;et.NumericLiteral=pq;et.ObjectPattern=et.ObjectExpression=iq;et.ObjectMethod=rq;et.ObjectProperty=sq;et.PipelineBareFunction=yq;et.PipelinePrimaryTopicReference=Tq;et.PipelineTopicExpression=mq;et.RecordExpression=aq;et.RegExpLiteral=lq;et.SpreadElement=et.RestElement=tq;et.StringLiteral=fq;et.TopicReference=dq;et.TupleExpression=oq;et.VoidPattern=gq;et._getRawIdentifier=Q$;var H$=be(),KT=$T(),{isAssignmentPattern:G$,isIdentifier:cf}=H$,qT=null,_o="";function Q$(t){if(t===qT)return _o;qT=t;let{name:e}=t,i=this.tokenMap.find(t,r=>r.value===e);return i?(_o=this._originalCode.slice(i.start,i.end),_o):_o=t.name}function Z$(t){var e;this.sourceIdentifierName(((e=t.loc)==null?void 0:e.identifierName)||t.name),this.word(this.tokenMap?this._getRawIdentifier(t):t.name)}function eq(){this.tokenChar(63)}function tq(t){this.token("..."),this.print(t.argument)}function iq(t){let e=t.properties;if(this.tokenChar(123),e.length){let i=this.enterDelimited();this.space(),this.printList(e,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),i()}this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}function rq(t){this.printJoin(t.decorators),this._methodHead(t),this.space(),this.print(t.body)}function sq(t){if(this.printJoin(t.decorators),t.computed)this.tokenChar(91),this.print(t.key),this.tokenChar(93);else{if(G$(t.value)&&cf(t.key)&&t.key.name===t.value.left.name){this.print(t.value);return}if(this.print(t.key),t.shorthand&&cf(t.key)&&cf(t.value)&&t.key.name===t.value.name)return}this.tokenChar(58),this.space(),this.print(t.value)}function nq(t){let e=t.elements,i=e.length;this.tokenChar(91);let r=this.enterDelimited();for(let s=0;s<e.length;s++){let n=e[s];n?(s>0&&this.space(),this.print(n),(s<i-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,s)):this.token(",",!1,s)}r(),this.tokenChar(93)}function aq(t){let e=t.properties,i,r;if(this.format.recordAndTupleSyntaxType==="bar")i="{|",r="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);i="#{",r="}"}this.token(i),e.length&&(this.space(),this.printList(e,this.shouldPrintTrailingComma(r),!0,!0),this.space()),this.token(r)}function oq(t){let e=t.elements,i=e.length,r,s;if(this.format.recordAndTupleSyntaxType==="bar")r="[|",s="|]";else if(this.format.recordAndTupleSyntaxType==="hash")r="#[",s="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(r);for(let n=0;n<e.length;n++){let a=e[n];a&&(n>0&&this.space(),this.print(a),(n<i-1||this.shouldPrintTrailingComma(s))&&this.token(",",!1,n))}this.token(s)}function lq(t){this.word(`/${t.pattern}/${t.flags}`)}function cq(t){this.word(t.value?"true":"false")}function uq(){this.word("null")}function pq(t){let e=this.getPossibleRaw(t),i=this.format.jsescOption,r=t.value,s=r+"";i.numbers?this.number(KT(r,i),r):e==null?this.number(s,r):this.format.minified?this.number(e.length<s.length?e:s,r):this.number(e,r)}function fq(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.token(e);return}let i=KT(t.value,this.format.jsescOption);this.token(i)}function hq(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.word(e);return}this.word(t.value+"n")}var UT=new Set(["^^","@@","^","%","#"]);function dq(){let{topicToken:t}=this.format;if(UT.has(t))this.token(t);else{let e=JSON.stringify(t),i=Array.from(UT,r=>JSON.stringify(r));throw new Error(`The "topicToken" generator option must be one of ${i.join(", ")} (${e} received instead).`)}}function mq(t){this.print(t.expression)}function yq(t){this.print(t.callee)}function Tq(){this.tokenChar(35)}function gq(){this.word("void")}});var WT=_(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.AnyTypeAnnotation=Pq;te.ArrayTypeAnnotation=vq;te.BooleanLiteralTypeAnnotation=wq;te.BooleanTypeAnnotation=Aq;te.DeclareClass=Iq;te.DeclareExportAllDeclaration=Rq;te.DeclareExportDeclaration=jq;te.DeclareFunction=kq;te.DeclareInterface=Nq;te.DeclareModule=Dq;te.DeclareModuleExports=Lq;te.DeclareOpaqueType=Fq;te.DeclareTypeAlias=Mq;te.DeclareVariable=Bq;te.DeclaredPredicate=Oq;te.EmptyTypeAnnotation=oU;te.EnumBooleanBody=qq;te.EnumBooleanMember=Yq;te.EnumDeclaration=$q;te.EnumDefaultedMember=Wq;te.EnumNumberBody=Uq;te.EnumNumberMember=zq;te.EnumStringBody=Kq;te.EnumStringMember=Jq;te.EnumSymbolBody=Vq;te.ExistsTypeAnnotation=Hq;te.FunctionTypeAnnotation=Gq;te.FunctionTypeParam=Qq;te.IndexedAccessType=NU;te.InferredPredicate=_q;te.InterfaceDeclaration=iU;te.GenericTypeAnnotation=te.ClassImplements=te.InterfaceExtends=Zq;te.InterfaceTypeAnnotation=sU;te.IntersectionTypeAnnotation=nU;te.MixedTypeAnnotation=aU;te.NullLiteralTypeAnnotation=Cq;te.NullableTypeAnnotation=lU;Object.defineProperty(te,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return VT.NumericLiteral}});te.NumberTypeAnnotation=cU;te.ObjectTypeAnnotation=xU;te.ObjectTypeCallProperty=SU;te.ObjectTypeIndexer=EU;te.ObjectTypeInternalSlot=bU;te.ObjectTypeProperty=PU;te.ObjectTypeSpreadProperty=vU;te.OpaqueType=gU;te.OptionalIndexedAccessType=DU;te.QualifiedTypeIdentifier=AU;Object.defineProperty(te,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return VT.StringLiteral}});te.StringTypeAnnotation=uU;te.SymbolTypeAnnotation=wU;te.ThisTypeAnnotation=pU;te.TupleTypeAnnotation=fU;te.TypeAlias=dU;te.TypeAnnotation=mU;te.TypeCastExpression=kU;te.TypeParameter=TU;te.TypeParameterDeclaration=te.TypeParameterInstantiation=yU;te.TypeofTypeAnnotation=hU;te.UnionTypeAnnotation=IU;te.Variance=_U;te.VoidTypeAnnotation=OU;te._interfaceish=eU;te._variance=tU;var xq=be(),bq=of(),Sq=Ur(),VT=uf(),{isDeclareExportDeclaration:Oo,isStatement:Eq}=xq;function Pq(){this.word("any")}function vq(t){this.print(t.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function Aq(){this.word("boolean")}function wq(t){this.word(t.value?"true":"false")}function Cq(){this.word("null")}function Iq(t,e){Oo(e)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(t)}function kq(t,e){Oo(e)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(t.id),this.print(t.id.typeAnnotation.typeAnnotation),t.predicate&&(this.space(),this.print(t.predicate)),this.semicolon()}function _q(){this.tokenChar(37),this.word("checks")}function Oq(t){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(t.value),this.tokenChar(41)}function Nq(t){this.word("declare"),this.space(),this.InterfaceDeclaration(t)}function Dq(t){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(t.id),this.space(),this.print(t.body)}function Lq(t){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(t.typeAnnotation)}function Mq(t){this.word("declare"),this.space(),this.TypeAlias(t)}function Fq(t,e){Oo(e)||(this.word("declare"),this.space()),this.OpaqueType(t)}function Bq(t,e){Oo(e)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(t.id),this.print(t.id.typeAnnotation),this.semicolon()}function jq(t){this.word("declare"),this.space(),this.word("export"),this.space(),t.default&&(this.word("default"),this.space()),Xq.call(this,t)}function Rq(t){this.word("declare"),this.space(),bq.ExportAllDeclaration.call(this,t)}function $q(t){let{id:e,body:i}=t;this.word("enum"),this.space(),this.print(e),this.print(i)}function No(t,e,i){i&&(t.space(),t.word("of"),t.space(),t.word(e)),t.space()}function Do(t,e){let{members:i}=e;t.token("{"),t.indent(),t.newline();for(let r of i)t.print(r),t.newline();e.hasUnknownMembers&&(t.token("..."),t.newline()),t.dedent(),t.token("}")}function qq(t){let{explicitType:e}=t;No(this,"boolean",e),Do(this,t)}function Uq(t){let{explicitType:e}=t;No(this,"number",e),Do(this,t)}function Kq(t){let{explicitType:e}=t;No(this,"string",e),Do(this,t)}function Vq(t){No(this,"symbol",!0),Do(this,t)}function Wq(t){let{id:e}=t;this.print(e),this.tokenChar(44)}function pf(t,e){t.print(e.id),t.space(),t.token("="),t.space(),t.print(e.init),t.token(",")}function Yq(t){pf(this,t)}function zq(t){pf(this,t)}function Jq(t){pf(this,t)}function Xq(t){if(t.declaration){let e=t.declaration;this.print(e),Eq(e)||this.semicolon()}else this.tokenChar(123),t.specifiers.length&&(this.space(),this.printList(t.specifiers),this.space()),this.tokenChar(125),t.source&&(this.space(),this.word("from"),this.space(),this.print(t.source)),this.semicolon()}function Hq(){this.tokenChar(42)}function Gq(t,e){this.print(t.typeParameters),this.tokenChar(40),t.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(t.this.typeAnnotation),(t.params.length||t.rest)&&(this.tokenChar(44),this.space())),this.printList(t.params),t.rest&&(t.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(t.rest)),this.tokenChar(41);let i=e?.type;i!=null&&(i==="ObjectTypeCallProperty"||i==="ObjectTypeInternalSlot"||i==="DeclareFunction"||i==="ObjectTypeProperty"&&e.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(t.returnType)}function Qq(t){this.print(t.name),t.optional&&this.tokenChar(63),t.name&&(this.tokenChar(58),this.space()),this.print(t.typeAnnotation)}function Zq(t){this.print(t.id),this.print(t.typeParameters,!0)}function eU(t){var e;if(this.print(t.id),this.print(t.typeParameters),(e=t.extends)!=null&&e.length&&(this.space(),this.word("extends"),this.space(),this.printList(t.extends)),t.type==="DeclareClass"){var i,r;(i=t.mixins)!=null&&i.length&&(this.space(),this.word("mixins"),this.space(),this.printList(t.mixins)),(r=t.implements)!=null&&r.length&&(this.space(),this.word("implements"),this.space(),this.printList(t.implements))}this.space(),this.print(t.body)}function tU(t){var e;let i=(e=t.variance)==null?void 0:e.kind;i!=null&&(i==="plus"?this.tokenChar(43):i==="minus"&&this.tokenChar(45))}function iU(t){this.word("interface"),this.space(),this._interfaceish(t)}function rU(t){this.space(),this.token("&",!1,t),this.space()}function sU(t){var e;this.word("interface"),(e=t.extends)!=null&&e.length&&(this.space(),this.word("extends"),this.space(),this.printList(t.extends)),this.space(),this.print(t.body)}function nU(t){this.printJoin(t.types,void 0,void 0,rU)}function aU(){this.word("mixed")}function oU(){this.word("empty")}function lU(t){this.tokenChar(63),this.print(t.typeAnnotation)}function cU(){this.word("number")}function uU(){this.word("string")}function pU(){this.word("this")}function fU(t){this.tokenChar(91),this.printList(t.types),this.tokenChar(93)}function hU(t){this.word("typeof"),this.space(),this.print(t.argument)}function dU(t){this.word("type"),this.space(),this.print(t.id),this.print(t.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(t.right),this.semicolon()}function mU(t,e){this.tokenChar(58),this.space(),e.type==="ArrowFunctionExpression"?this.tokenContext|=Sq.TokenContext.arrowFlowReturnType:t.optional&&this.tokenChar(63),this.print(t.typeAnnotation)}function yU(t){this.tokenChar(60),this.printList(t.params),this.tokenChar(62)}function TU(t){this._variance(t),this.word(t.name),t.bound&&this.print(t.bound),t.default&&(this.space(),this.tokenChar(61),this.space(),this.print(t.default))}function gU(t){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(t.id),this.print(t.typeParameters),t.supertype&&(this.tokenChar(58),this.space(),this.print(t.supertype)),t.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(t.impltype)),this.semicolon()}function xU(t){t.exact?this.token("{|"):this.tokenChar(123);let e=[...t.properties,...t.callProperties||[],...t.indexers||[],...t.internalSlots||[]];e.length&&(this.newline(),this.space(),this.printJoin(e,!0,!0,void 0,void 0,function(r){if(r&&!e[0])return 1},()=>{(e.length!==1||t.inexact)&&(this.tokenChar(44),this.space())}),this.space()),t.inexact&&(this.indent(),this.token("..."),e.length&&this.newline(),this.dedent()),t.exact?this.token("|}"):this.tokenChar(125)}function bU(t){t.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(t.id),this.tokenChar(93),this.tokenChar(93),t.optional&&this.tokenChar(63),t.method||(this.tokenChar(58),this.space()),this.print(t.value)}function SU(t){t.static&&(this.word("static"),this.space()),this.print(t.value)}function EU(t){t.static&&(this.word("static"),this.space()),this._variance(t),this.tokenChar(91),t.id&&(this.print(t.id),this.tokenChar(58),this.space()),this.print(t.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(t.value)}function PU(t){t.proto&&(this.word("proto"),this.space()),t.static&&(this.word("static"),this.space()),(t.kind==="get"||t.kind==="set")&&(this.word(t.kind),this.space()),this._variance(t),this.print(t.key),t.optional&&this.tokenChar(63),t.method||(this.tokenChar(58),this.space()),this.print(t.value)}function vU(t){this.token("..."),this.print(t.argument)}function AU(t){this.print(t.qualification),this.tokenChar(46),this.print(t.id)}function wU(){this.word("symbol")}function CU(t){this.space(),this.token("|",!1,t),this.space()}function IU(t){this.printJoin(t.types,void 0,void 0,CU)}function kU(t){this.tokenChar(40),this.print(t.expression),this.print(t.typeAnnotation),this.tokenChar(41)}function _U(t){t.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function OU(){this.word("void")}function NU(t){this.print(t.objectType,!0),this.tokenChar(91),this.print(t.indexType),this.tokenChar(93)}function DU(t){this.print(t.objectType),t.optional&&this.token("?."),this.tokenChar(91),this.print(t.indexType),this.tokenChar(93)}});var YT=_(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.BlockStatement=FU;zi.Directive=BU;zi.DirectiveLiteral=$U;zi.File=LU;zi.InterpreterDirective=qU;zi.Placeholder=UU;zi.Program=MU;function LU(t){t.program&&this.print(t.program.interpreter),this.print(t.program)}function MU(t){var e;this.noIndentInnerCommentsHere(),this.printInnerComments();let i=(e=t.directives)==null?void 0:e.length;if(i){var r;let s=t.body.length?2:1;this.printSequence(t.directives,void 0,s),(r=t.directives[i-1].trailingComments)!=null&&r.length||this.newline(s)}this.printSequence(t.body)}function FU(t){var e;this.tokenChar(123);let i=this.enterDelimited(),r=(e=t.directives)==null?void 0:e.length;if(r){var s;let n=t.body.length?2:1;this.printSequence(t.directives,!0,n),(s=t.directives[r-1].trailingComments)!=null&&s.length||this.newline(n)}this.printSequence(t.body,!0),i(),this.rightBrace(t)}function BU(t){this.print(t.value),this.semicolon()}var jU=/(?:^|[^\\])(?:\\\\)*'/,RU=/(?:^|[^\\])(?:\\\\)*"/;function $U(t){let e=this.getPossibleRaw(t);if(!this.format.minified&&e!==void 0){this.token(e);return}let{value:i}=t;if(!RU.test(i))this.token(`"${i}"`);else if(!jU.test(i))this.token(`'${i}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function qU(t){this.token(`#!${t.value}`),this.newline(1,!0)}function UU(t){this.token("%%"),this.print(t.name),this.token("%%"),t.expectedNode==="Statement"&&this.semicolon()}});var zT=_(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.JSXAttribute=KU;At.JSXClosingElement=eK;At.JSXClosingFragment=sK;At.JSXElement=GU;At.JSXEmptyExpression=tK;At.JSXExpressionContainer=JU;At.JSXFragment=iK;At.JSXIdentifier=VU;At.JSXMemberExpression=YU;At.JSXNamespacedName=WU;At.JSXOpeningElement=ZU;At.JSXOpeningFragment=rK;At.JSXSpreadAttribute=zU;At.JSXSpreadChild=XU;At.JSXText=HU;function KU(t){this.print(t.name),t.value&&(this.tokenChar(61),this.print(t.value))}function VU(t){this.word(t.name)}function WU(t){this.print(t.namespace),this.tokenChar(58),this.print(t.name)}function YU(t){this.print(t.object),this.tokenChar(46),this.print(t.property)}function zU(t){this.tokenChar(123),this.token("..."),this.print(t.argument),this.rightBrace(t)}function JU(t){this.tokenChar(123),this.print(t.expression),this.rightBrace(t)}function XU(t){this.tokenChar(123),this.token("..."),this.print(t.expression),this.rightBrace(t)}function HU(t){let e=this.getPossibleRaw(t);e!==void 0?this.token(e,!0):this.token(t.value,!0)}function GU(t){let e=t.openingElement;if(this.print(e),!e.selfClosing){this.indent();for(let i of t.children)this.print(i);this.dedent(),this.print(t.closingElement)}}function QU(){this.space()}function ZU(t){this.tokenChar(60),this.print(t.name),t.typeArguments&&this.print(t.typeArguments),this.print(t.typeParameters),t.attributes.length>0&&(this.space(),this.printJoin(t.attributes,void 0,void 0,QU)),t.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)}function eK(t){this.tokenChar(60),this.tokenChar(47),this.print(t.name),this.tokenChar(62)}function tK(){this.printInnerComments()}function iK(t){this.print(t.openingFragment),this.indent();for(let e of t.children)this.print(e);this.dedent(),this.print(t.closingFragment)}function rK(){this.tokenChar(60),this.tokenChar(62)}function sK(){this.token("</"),this.tokenChar(62)}});var QT=_(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.TSAnyKeyword=gK;Q.TSArrayType=RK;Q.TSSatisfiesExpression=Q.TSAsExpression=sV;Q.TSBigIntKeyword=xK;Q.TSBooleanKeyword=PK;Q.TSCallSignatureDeclaration=fK;Q.TSInterfaceHeritage=Q.TSClassImplements=eV;Q.TSConditionalType=YK;Q.TSConstructSignatureDeclaration=hK;Q.TSConstructorType=DK;Q.TSDeclareFunction=cK;Q.TSDeclareMethod=uK;Q.TSEnumBody=GT;Q.TSEnumDeclaration=oV;Q.TSEnumMember=lV;Q.TSExportAssignment=mV;Q.TSExternalModuleReference=hV;Q.TSFunctionType=NK;Q.TSImportEqualsDeclaration=fV;Q.TSImportType=pV;Q.TSIndexSignature=TK;Q.TSIndexedAccessType=HK;Q.TSInferType=zK;Q.TSInstantiationExpression=aV;Q.TSInterfaceBody=iV;Q.TSInterfaceDeclaration=tV;Q.TSIntersectionType=WK;Q.TSIntrinsicKeyword=_K;Q.TSLiteralType=ZK;Q.TSMappedType=GK;Q.TSMethodSignature=yK;Q.TSModuleBlock=uV;Q.TSModuleDeclaration=cV;Q.TSNamedTupleMember=KK;Q.TSNamespaceExportDeclaration=yV;Q.TSNeverKeyword=kK;Q.TSNonNullExpression=dV;Q.TSNullKeyword=IK;Q.TSNumberKeyword=SK;Q.TSObjectKeyword=EK;Q.TSOptionalType=qK;Q.TSParameterProperty=lK;Q.TSParenthesizedType=JK;Q.TSPropertySignature=dK;Q.TSQualifiedName=pK;Q.TSRestType=UK;Q.TSStringKeyword=vK;Q.TSSymbolKeyword=AK;Q.TSTemplateLiteralType=QK;Q.TSThisType=OK;Q.TSTupleType=$K;Q.TSTypeAliasDeclaration=rV;Q.TSTypeAnnotation=nK;Q.TSTypeAssertion=nV;Q.TSTypeLiteral=jK;Q.TSTypeOperator=XK;Q.TSTypeParameter=oK;Q.TSTypeParameterDeclaration=Q.TSTypeParameterInstantiation=aK;Q.TSTypePredicate=FK;Q.TSTypeQuery=BK;Q.TSTypeReference=MK;Q.TSUndefinedKeyword=CK;Q.TSUnionType=VK;Q.TSUnknownKeyword=bK;Q.TSVoidKeyword=wK;Q.tsPrintClassMemberModifiers=gV;Q.tsPrintFunctionOrConstructorType=LK;Q.tsPrintPropertyOrMethodName=mK;Q.tsPrintSignatureDeclarationBase=TV;function nK(t,e){this.token((e.type==="TSFunctionType"||e.type==="TSConstructorType")&&e.typeAnnotation===t?"=>":":"),this.space(),t.optional&&this.tokenChar(63),this.print(t.typeAnnotation)}function aK(t,e){this.tokenChar(60);let i=e.type==="ArrowFunctionExpression"&&t.params.length===1;this.tokenMap&&t.start!=null&&t.end!=null&&(i&&(i=!!this.tokenMap.find(t,r=>this.tokenMap.matchesOriginal(r,","))),i||(i=this.shouldPrintTrailingComma(">"))),this.printList(t.params,i),this.tokenChar(62)}function oK(t){t.const&&(this.word("const"),this.space()),t.in&&(this.word("in"),this.space()),t.out&&(this.word("out"),this.space()),this.word(t.name),t.constraint&&(this.space(),this.word("extends"),this.space(),this.print(t.constraint)),t.default&&(this.space(),this.tokenChar(61),this.space(),this.print(t.default))}function lK(t){t.accessibility&&(this.word(t.accessibility),this.space()),t.readonly&&(this.word("readonly"),this.space()),this._param(t.parameter)}function cK(t,e){t.declare&&(this.word("declare"),this.space()),this._functionHead(t,e),this.semicolon()}function uK(t){this._classMethodHead(t),this.semicolon()}function pK(t){this.print(t.left),this.tokenChar(46),this.print(t.right)}function fK(t){this.tsPrintSignatureDeclarationBase(t),Ln(this,t)}function Ln(t,e){if(!t.tokenMap||!e.start||!e.end){t.semicolon();return}t.tokenMap.endMatches(e,",")?t.token(","):t.tokenMap.endMatches(e,";")&&t.semicolon()}function hK(t){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(t),Ln(this,t)}function dK(t){let{readonly:e}=t;e&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(t),this.print(t.typeAnnotation),Ln(this,t)}function mK(t){t.computed&&this.tokenChar(91),this.print(t.key),t.computed&&this.tokenChar(93),t.optional&&this.tokenChar(63)}function yK(t){let{kind:e}=t;(e==="set"||e==="get")&&(this.word(e),this.space()),this.tsPrintPropertyOrMethodName(t),this.tsPrintSignatureDeclarationBase(t),Ln(this,t)}function TK(t){let{readonly:e,static:i}=t;i&&(this.word("static"),this.space()),e&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(t.parameters,"]"),this.print(t.typeAnnotation),Ln(this,t)}function gK(){this.word("any")}function xK(){this.word("bigint")}function bK(){this.word("unknown")}function SK(){this.word("number")}function EK(){this.word("object")}function PK(){this.word("boolean")}function vK(){this.word("string")}function AK(){this.word("symbol")}function wK(){this.word("void")}function CK(){this.word("undefined")}function IK(){this.word("null")}function kK(){this.word("never")}function _K(){this.word("intrinsic")}function OK(){this.word("this")}function NK(t){this.tsPrintFunctionOrConstructorType(t)}function DK(t){t.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(t)}function LK(t){let{typeParameters:e}=t,i=t.parameters;this.print(e),this.tokenChar(40),this._parameters(i,")"),this.space();let r=t.typeAnnotation;this.print(r)}function MK(t){let e=t.typeParameters;this.print(t.typeName,!!e),this.print(e)}function FK(t){t.asserts&&(this.word("asserts"),this.space()),this.print(t.parameterName),t.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(t.typeAnnotation.typeAnnotation))}function BK(t){this.word("typeof"),this.space(),this.print(t.exprName);let e=t.typeParameters;e&&this.print(e)}function jK(t){Lo(this,t,()=>this.printJoin(t.members,!0,!0))}function RK(t){this.print(t.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function $K(t){this.tokenChar(91),this.printList(t.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function qK(t){this.print(t.typeAnnotation),this.tokenChar(63)}function UK(t){this.token("..."),this.print(t.typeAnnotation)}function KK(t){this.print(t.label),t.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(t.elementType)}function VK(t){HT(this,t,"|")}function WK(t){HT(this,t,"&")}function HT(t,e,i){var r;let s=0;(r=t.tokenMap)!=null&&r.startMatches(e,i)&&(s=1,t.token(i)),t.printJoin(e.types,void 0,void 0,function(n){this.space(),this.token(i,null,n+s),this.space()})}function YK(t){this.print(t.checkType),this.space(),this.word("extends"),this.space(),this.print(t.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(t.trueType),this.space(),this.tokenChar(58),this.space(),this.print(t.falseType)}function zK(t){this.word("infer"),this.print(t.typeParameter)}function JK(t){this.tokenChar(40),this.print(t.typeAnnotation),this.tokenChar(41)}function XK(t){this.word(t.operator),this.space(),this.print(t.typeAnnotation)}function HK(t){this.print(t.objectType,!0),this.tokenChar(91),this.print(t.indexType),this.tokenChar(93)}function GK(t){let{nameType:e,optional:i,readonly:r,typeAnnotation:s}=t;this.tokenChar(123);let n=this.enterDelimited();this.space(),r&&(JT(this,r),this.word("readonly"),this.space()),this.tokenChar(91),this.word(t.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(t.typeParameter.constraint),e&&(this.space(),this.word("as"),this.space(),this.print(e)),this.tokenChar(93),i&&(JT(this,i),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s)),this.space(),n(),this.tokenChar(125)}function JT(t,e){e!==!0&&t.token(e)}function QK(t){this._printTemplate(t,t.types)}function ZK(t){this.print(t.literal)}function eV(t){this.print(t.expression),this.print(t.typeArguments)}function tV(t){let{declare:e,id:i,typeParameters:r,extends:s,body:n}=t;e&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(i),this.print(r),s!=null&&s.length&&(this.space(),this.word("extends"),this.space(),this.printList(s)),this.space(),this.print(n)}function iV(t){Lo(this,t,()=>this.printJoin(t.body,!0,!0))}function rV(t){let{declare:e,id:i,typeParameters:r,typeAnnotation:s}=t;e&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(i),this.print(r),this.space(),this.tokenChar(61),this.space(),this.print(s),this.semicolon()}function sV(t){let{type:e,expression:i,typeAnnotation:r}=t;this.print(i,!0),this.space(),this.word(e==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(r)}function nV(t){let{typeAnnotation:e,expression:i}=t;this.tokenChar(60),this.print(e),this.tokenChar(62),this.space(),this.print(i)}function aV(t){this.print(t.expression),this.print(t.typeParameters)}function oV(t){let{declare:e,const:i,id:r}=t;e&&(this.word("declare"),this.space()),i&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(r),this.space(),GT.call(this,t)}function GT(t){Lo(this,t,()=>{var e;return this.printList(t.members,(e=this.shouldPrintTrailingComma("}"))!=null?e:!0,!0,!0)})}function lV(t){let{id:e,initializer:i}=t;this.print(e),i&&(this.space(),this.tokenChar(61),this.space(),this.print(i))}function cV(t){let{declare:e,id:i,kind:r}=t;e&&(this.word("declare"),this.space());{if(t.global||(this.word(r??(i.type==="Identifier"?"namespace":"module")),this.space()),this.print(i),!t.body){this.semicolon();return}let s=t.body;for(;s.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(s.id),s=s.body;this.space(),this.print(s)}}function uV(t){Lo(this,t,()=>this.printSequence(t.body,!0))}function pV(t){let{argument:e,qualifier:i,options:r}=t;this.word("import"),this.tokenChar(40),this.print(e),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),i&&(this.tokenChar(46),this.print(i));let s=t.typeParameters;s&&this.print(s)}function fV(t){let{id:e,moduleReference:i}=t;t.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(e),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()}function hV(t){this.token("require("),this.print(t.expression),this.tokenChar(41)}function dV(t){this.print(t.expression),this.tokenChar(33)}function mV(t){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(t.expression),this.semicolon()}function yV(t){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(t.id),this.semicolon()}function TV(t){let{typeParameters:e}=t,i=t.parameters;this.print(e),this.tokenChar(40),this._parameters(i,")");let r=t.typeAnnotation;this.print(r)}function gV(t){let e=t.type==="ClassPrivateProperty",i=t.type==="ClassAccessorProperty"||t.type==="ClassProperty";XT(this,t,[i&&t.declare&&"declare",!e&&t.accessibility]),t.static&&(this.word("static"),this.space()),XT(this,t,[!e&&t.abstract&&"abstract",!e&&t.override&&"override",(i||e)&&t.readonly&&"readonly"])}function Lo(t,e,i){t.token("{");let r=t.enterDelimited();i(),r(),t.rightBrace(e)}function XT(t,e,i){var r;let s=new Set;for(let n of i)n&&s.add(n);(r=t.tokenMap)==null||r.find(e,n=>{if(s.has(n.value))return t.token(n.value),t.space(),s.delete(n.value),s.size===0});for(let n of s)t.word(n),t.space()}});var ZT=_(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});var ff=AT();Object.keys(ff).forEach(function(t){t==="default"||t==="__esModule"||t in Ne&&Ne[t]===ff[t]||Object.defineProperty(Ne,t,{enumerable:!0,get:function(){return ff[t]}})});var hf=CT();Object.keys(hf).forEach(function(t){t==="default"||t==="__esModule"||t in Ne&&Ne[t]===hf[t]||Object.defineProperty(Ne,t,{enumerable:!0,get:function(){return hf[t]}})});var df=OT();Object.keys(df).forEach(function(t){t==="default"||t==="__esModule"||t in Ne&&Ne[t]===df[t]||Object.defineProperty(Ne,t,{enumerable:!0,get:function(){return df[t]}})});var mf=NT();Object.keys(mf).forEach(function(t){t==="default"||t==="__esModule"||t in Ne&&Ne[t]===mf[t]||Object.defineProperty(Ne,t,{enumerable:!0,get:function(){return mf[t]}})});var yf=DT();Object.keys(yf).forEach(function(t){t==="default"||t==="__esModule"||t in Ne&&Ne[t]===yf[t]||Object.defineProperty(Ne,t,{enumerable:!0,get:function(){return yf[t]}})});var Tf=of();Object.keys(Tf).forEach(function(t){t==="default"||t==="__esModule"||t in Ne&&Ne[t]===Tf[t]||Object.defineProperty(Ne,t,{enumerable:!0,get:function(){return Tf[t]}})});var gf=uf();Object.keys(gf).forEach(function(t){t==="default"||t==="__esModule"||t in Ne&&Ne[t]===gf[t]||Object.defineProperty(Ne,t,{enumerable:!0,get:function(){return gf[t]}})});var xf=WT();Object.keys(xf).forEach(function(t){t==="default"||t==="__esModule"||t in Ne&&Ne[t]===xf[t]||Object.defineProperty(Ne,t,{enumerable:!0,get:function(){return xf[t]}})});var bf=YT();Object.keys(bf).forEach(function(t){t==="default"||t==="__esModule"||t in Ne&&Ne[t]===bf[t]||Object.defineProperty(Ne,t,{enumerable:!0,get:function(){return bf[t]}})});var Sf=zT();Object.keys(Sf).forEach(function(t){t==="default"||t==="__esModule"||t in Ne&&Ne[t]===Sf[t]||Object.defineProperty(Ne,t,{enumerable:!0,get:function(){return Sf[t]}})});var Ef=QT();Object.keys(Ef).forEach(function(t){t==="default"||t==="__esModule"||t in Ne&&Ne[t]===Ef[t]||Object.defineProperty(Ne,t,{enumerable:!0,get:function(){return Ef[t]}})})});var eg=_(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.addDeprecatedGenerators=xV;function xV(t){{let e={Noop(){},TSExpressionWithTypeArguments(i){this.print(i.expression),this.print(i.typeParameters)},DecimalLiteral(i){let r=this.getPossibleRaw(i);if(!this.format.minified&&r!==void 0){this.word(r);return}this.word(i.value+"m")}};Object.assign(t.prototype,e)}}});var sg=_(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.default=void 0;var bV=oT(),_t=Ur(),ig=_t,SV=be(),EV=vT(),PV=ZT(),vV=eg(),{isExpression:AV,isFunction:wV,isStatement:CV,isClassBody:IV,isTSInterfaceBody:kV,isTSEnumMember:_V}=SV,OV=/e/i,NV=/\.0+$/,rg=/[\n\r\u2028\u2029]/,DV=/[\n\r\u2028\u2029]|\*\//;function tg(t){return t.type==="CommentLine"||rg.test(t.value)}var{needsParens:LV}=ig,Mn=class{constructor(e,i,r,s){this.tokenContext=_t.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=r,this._originalCode=s,this._indentRepeat=e.indent.style.length,this._inputMap=i?._inputMap,this._buf=new bV.default(i,e.indent.style[0])}enterForStatementInit(){return this.tokenContext|=_t.TokenContext.forInitHead|_t.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=_t.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=_t.TokenContext.forOfHead,null):(this.tokenContext|=_t.TokenContext.forInHead|_t.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=_t.TokenContext.normal)}enterDelimited(){let e=this.tokenContext,i=this._noLineTerminatorAfterNode;return!(e&_t.TokenContext.forInOrInitHeadAccumulate)&&i===null?()=>{}:(this._noLineTerminatorAfterNode=null,this.tokenContext=_t.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=i,this.tokenContext=e})}generate(e){return this.format.preserveFormat&&(this.tokenMap=new EV.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){let{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent++}dedent(){let{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e){this._appendChar(59),this._noLineTerminator=!1;return}if(this.tokenMap){let i=this._currentNode;if(i.start!=null&&i.end!=null){if(!this.tokenMap.endMatches(i,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let r=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[r[r.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){let{format:i}=this;if(!(i.compact||i.preserveFormat)){if(e)this._space();else if(this._buf.hasContent()){let r=this.getLastChar();r!==32&&r!==10&&this._space()}}}word(e,i=!1){this.tokenContext&=_t.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&e.charCodeAt(0)===47)&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=i}number(e,i){function r(s){if(s.length>2&&s.charCodeAt(0)===48){let n=s.charCodeAt(1);return n===98||n===111||n===120}return!1}this.word(e),this._endsWithInteger=Number.isInteger(i)&&!r(e)&&!OV.test(e)&&!NV.test(e)&&e.charCodeAt(e.length-1)!==46}token(e,i=!1,r=0){this.tokenContext&=_t.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,r),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,r);let s=this.getLastChar(),n=e.charCodeAt(0);(s===33&&(e==="--"||n===61)||n===43&&s===43||n===45&&s===45||n===46&&this._endsWithInteger)&&this._space(),this._append(e,i),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=_t.TokenContext.forInOrInitHeadAccumulatePassThroughMask;let i=String.fromCharCode(e);this._maybePrintInnerComments(i),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(i);let r=this.getLastChar();(e===43&&r===43||e===45&&r===45||e===46&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,i){if(!(e<=0)){if(!i){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let r=0;r<e;r++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,i){if(!e){i();return}this._catchUp("start",e),this._buf.exactSource(e,i)}source(e,i){i&&(this._catchUp(e,i),this._buf.source(e,i))}sourceWithOffset(e,i,r){!i||this.format.preserveFormat||(this._catchUp(e,i),this._buf.sourceWithOffset(e,i,r))}sourceIdentifierName(e,i){if(!this._buf._canMarkIdName)return;let r=this._buf._sourcePosition;r.identifierNamePos=i,r.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,i=0){let r=this.tokenMap.findMatching(this._currentNode,e,i);r&&this._catchUpTo(r.loc.start),this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,i){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,i),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&e!==10&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&e!==10&&this.endsWith(10))return!0}catchUp(e){if(!this.format.retainLines)return;let i=e-this._buf.getCurrentLine();for(let r=0;r<i;r++)this._newline()}_catchUp(e,i){let{format:r}=this;if(!r.preserveFormat){r.retainLines&&i!=null&&i[e]&&this.catchUp(i[e].line);return}let s=i?.[e];s!=null&&this._catchUpTo(s)}_catchUpTo({line:e,column:i,index:r}){let s=e-this._buf.getCurrentLine();if(s>0&&this._noLineTerminator)return;for(let a=0;a<s;a++)this._newline();let n=s>0?i:i-this._buf.getCurrentColumn();if(n>0){let a=this._originalCode?this._originalCode.slice(r-n,r).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(n);this._append(a,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,i,r){var s,n,a;if(!e)return;this._endsWithInnerRaw=!1;let l=e.type,c=this.format,o=c.concise;e._compact&&(c.concise=!0);let u=this[l];if(u===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(l)} with constructor ${JSON.stringify(e.constructor.name)}`);let f=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let d=this._insideAux;this._insideAux=e.loc==null,this._maybeAddAuxComment(this._insideAux&&!d);let m=(s=e.extra)==null?void 0:s.parenthesized,S=m&&c.preserveFormat||m&&c.retainFunctionParens&&l==="FunctionExpression"||LV(e,f,this.tokenContext,c.preserveFormat?this._boundGetRawIdentifier:void 0);if(!S&&m&&(n=e.leadingComments)!=null&&n.length&&e.leadingComments[0].type==="CommentBlock")switch(f?.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(f.callee!==e)break;default:S=!0}let P=!1;!S&&this._noLineTerminator&&((a=e.leadingComments)!=null&&a.some(tg)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(S=!0,P=!0);let A,C;if(!S&&(i||(i=f&&this._noLineTerminatorAfterNode===f&&ig.isLastChild(f,e)),i)){var k;(k=e.trailingComments)!=null&&k.some(tg)?AV(e)&&(S=!0):(A=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e)}S&&(this.tokenChar(40),P&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&_t.TokenContext.forInOrInitHeadAccumulate&&(C=this.tokenContext,this.tokenContext=_t.TokenContext.normal),A=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,f);let D=l==="Program"||l==="File"?null:e.loc;this.exactSource(D,u.bind(this,e,f)),S?(this._printTrailingComments(e,f),P&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=i,C&&(this.tokenContext=C)):i&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,f)):this._printTrailingComments(e,f,r),this._currentNode=f,c.concise=o,this._insideAux=d,A!==void 0&&(this._noLineTerminatorAfterNode=A),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){let i=e.extra;if(i?.raw!=null&&i.rawValue!=null&&e.value===i.rawValue)return i.raw}printJoin(e,i,r,s,n,a,l,c){if(!(e!=null&&e.length))return;if(r==null&&this.format.retainLines){var o;let P=(o=e[0].loc)==null?void 0:o.start.line;P!=null&&P!==this._buf.getCurrentLine()&&(r=!0)}r&&this.indent();let u={addNewlines:a,nextNodeStartLine:0},f=s?.bind(this),d=e.length;for(let P=0;P<d;P++){let A=e[P];if(A&&(i&&this._printNewline(P===0,u),this.print(A,void 0,c||0),l?.(A,P),f!=null&&(P<d-1?f(P,!1):n&&f(P,!0)),i)){var m;if((m=A.trailingComments)!=null&&m.length||(this._lastCommentLine=0),P+1===d)this.newline(1);else{var S;let C=e[P+1];u.nextNodeStartLine=((S=C.loc)==null?void 0:S.start.line)||0,this._printNewline(!0,u)}}}r&&this.dedent()}printAndIndentOnComments(e){let i=e.leadingComments&&e.leadingComments.length>0;i&&this.indent(),this.print(e),i&&this.dedent()}printBlock(e){let i=e.body;i.type!=="EmptyStatement"&&this.space(),this.print(i)}_printTrailingComments(e,i,r){let{innerComments:s,trailingComments:n}=e;s!=null&&s.length&&this._printComments(2,s,e,i,r),n!=null&&n.length&&this._printComments(2,n,e,i,r)}_printLeadingComments(e,i){let r=e.leadingComments;r!=null&&r.length&&this._printComments(0,r,e,i)}_maybePrintInnerComments(e,i){if(this._endsWithInnerRaw){var r;this.printInnerComments((r=this.tokenMap)==null?void 0:r.findMatching(this._currentNode,e,i))}this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){let i=this._currentNode,r=i.innerComments;if(!(r!=null&&r.length))return;let s=this.endsWith(32),n=this._indentInnerComments,a=this._printedComments.size;n&&this.indent(),this._printComments(1,r,i,void 0,void 0,e),s&&a!==this._printedComments.size&&this.space(),n&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,i,r,s){this.printJoin(e,!0,i??!1,void 0,void 0,s,void 0,r)}printList(e,i,r,s,n,a){this.printJoin(e,r,s,n??MV,i,void 0,a)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;let i=this.tokenMap.findLastIndex(this._currentNode,r=>this.tokenMap.matchesOriginal(r,e));return i<=0?null:this.tokenMap.matchesOriginal(this._tokens[i-1],",")}_printNewline(e,i){let r=this.format;if(r.retainLines||r.compact)return;if(r.concise){this.space();return}if(!e)return;let s=i.nextNodeStartLine,n=this._lastCommentLine;if(s>0&&n>0){let a=s-n;if(a>=0){this.newline(a||1);return}}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e,i){if(e.ignore||this._printedComments.has(e))return 0;if(this._noLineTerminator&&DV.test(e.value))return 2;if(i&&this.tokenMap){let r=this.tokenMap.find(this._currentNode,s=>s.value===e.value);if(r&&r.start>i.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,i){let r=this._noLineTerminator,s=e.type==="CommentBlock",n=s&&i!==1&&!this._noLineTerminator;n&&this._buf.hasContent()&&i!==2&&this.newline(1);let a=this.getLastChar();a!==91&&a!==123&&a!==40&&this.space();let l;if(s){if(l=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var c;let o=(c=e.loc)==null?void 0:c.start.column;if(o){let u=new RegExp("\\n\\s{1,"+o+"}","g");l=l.replace(u,`
@@ -53,7 +53,7 @@ ${e}`,r}}}});var Ix=_(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{v
53
53
 
54
54
  return ${Yr(r)};
55
55
  })(${Dx(this.node)})
56
- `;return this.replaceWith(o)[0].get("arguments.0")}function SX(t){let e=t.params.findIndex(i=>QJ(i)||ZJ(i));return e===-1?t.params.length:e}});var Ux=_(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct._guessExecutionStatusRelativeTo=UX;ct._resolve=qx;ct.canHaveVariableDeclarationOrExpression=LX;ct.canSwapBetweenExpressionAndStatement=MX;ct.getSource=RX;ct.isCompletionRecord=FX;ct.isConstantExpression=YX;ct.isInStrictMode=zX;ct.isNodeType=DX;ct.isStatementOrBlock=BX;ct.isStatic=NX;ct.matchesPattern=OX;ct.referencesImport=jX;ct.resolve=WX;ct.willIMaybeExecuteBefore=$X;var EX=be(),{STATEMENT_OR_BLOCK_KEYS:PX,VISITOR_KEYS:vX,isBlockStatement:$x,isExpression:AX,isIdentifier:wX,isLiteral:CX,isStringLiteral:IX,isType:kX,matchesPattern:_X}=EX;function OX(t,e){return _X(this.node,t,e)}ct.has=function(e){var i;let r=(i=this.node)==null?void 0:i[e];return r&&Array.isArray(r)?!!r.length:!!r};function NX(){return this.scope.isStatic(this.node)}ct.is=ct.has,ct.isnt=function(e){return!this.has(e)},ct.equals=function(e,i){return this.node[e]===i};function DX(t){return kX(this.type,t)}function LX(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function MX(t){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?$x(t):this.isBlockStatement()?AX(t):!1}function FX(t){let e=this,i=!0;do{let{type:r,container:s}=e;if(!i&&(e.isFunction()||r==="StaticBlock"))return!!t;if(i=!1,Array.isArray(s)&&e.key!==s.length-1)return!1}while((e=e.parentPath)&&!e.isProgram()&&!e.isDoExpression());return!0}function BX(){return this.parentPath.isLabeledStatement()||$x(this.container)?!1:PX.includes(this.key)}function jX(t,e){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===e||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?IX(this.node.property,{value:e}):this.node.property.name===e)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(t,"*")}return!1}let i=this.scope.getBinding(this.node.name);if(!i||i.kind!=="module")return!1;let r=i.path,s=r.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===t){if(!e)return!0}else return!1;return!!(r.isImportDefaultSpecifier()&&e==="default"||r.isImportNamespaceSpecifier()&&e==="*"||r.isImportSpecifier()&&wX(r.node.imported,{name:e}))}function RX(){let t=this.node;if(t.end){let e=this.hub.getCode();if(e)return e.slice(t.start,t.end)}return""}function $X(t){return this._guessExecutionStatusRelativeTo(t)!=="after"}function Bx(t){return t.isProgram()?t:(t.parentPath.scope.getFunctionParent()||t.parentPath.scope.getProgramParent()).path}function qX(t,e){switch(t){case"LogicalExpression":return e==="right";case"ConditionalExpression":case"IfStatement":return e==="consequent"||e==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return e==="body";case"ForStatement":return e==="body"||e==="update";case"SwitchStatement":return e==="cases";case"TryStatement":return e==="handler";case"AssignmentPattern":return e==="right";case"OptionalMemberExpression":return e==="property";case"OptionalCallExpression":return e==="arguments";default:return!1}}function jx(t,e){for(let i=0;i<e;i++){let r=t[i];if(qX(r.parent.type,r.parentKey))return!0}return!1}var Rx=Symbol();function UX(t){return lh(this,t,new Map)}function lh(t,e,i){let r={this:Bx(t),target:Bx(e)};if(r.target.node!==r.this.node)return VX(t,r.target,i);let s={target:e.getAncestry(),this:t.getAncestry()};if(s.target.includes(t))return"after";if(s.this.includes(e))return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let u=s.this[a.this];a.target=s.target.indexOf(u),a.target>=0?n=u:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(jx(s.this,a.this-1)||jx(s.target,a.target-1))return"unknown";let l={this:s.this[a.this-1],target:s.target[a.target-1]};if(l.target.listKey&&l.this.listKey&&l.target.container===l.this.container)return l.target.key>l.this.key?"before":"after";let c=vX[n.type],o={this:c.indexOf(l.this.parentKey),target:c.indexOf(l.target.parentKey)};return o.target>o.this?"before":"after"}function KX(t,e,i){if(e.isFunctionDeclaration()){if(e.parentPath.isExportDeclaration())return"unknown"}else return lh(t,e,i)==="before"?"before":"unknown";let r=e.scope.getBinding(e.node.id.name);if(!r.references)return"before";let s=r.referencePaths,n;for(let a of s){if(!!a.find(o=>o.node===e.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let c=lh(t,a,i);if(n&&n!==c)return"unknown";n=c}return n}function VX(t,e,i){let r=i.get(t.node),s;if(!r)i.set(t.node,r=new Map);else if(s=r.get(e.node))return s===Rx?"unknown":s;r.set(e.node,Rx);let n=KX(t,e,i);return r.set(e.node,n),n}function WX(t,e){return qx.call(this,t,e)||this}function qx(t,e){var i;if(!((i=e)!=null&&i.includes(this)))if(e=e||[],e.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(t,e)}else if(this.isReferencedIdentifier()){let r=this.scope.getBinding(this.node.name);if(!r||!r.constant||r.kind==="module")return;if(r.path!==this){let s=r.path.resolve(t,e);return this.find(n=>n.node===s.node)?void 0:s}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(t,e);if(t&&this.isMemberExpression()){let r=this.toComputedKey();if(!CX(r))return;let s=r.value,n=this.get("object").resolve(t,e);if(n.isObjectExpression()){let a=n.get("properties");for(let l of a){if(!l.isProperty())continue;let c=l.get("key"),o=l.isnt("computed")&&c.isIdentifier({name:s});if(o=o||c.isLiteral({value:s}),o)return l.get("value").resolve(t,e)}}else if(n.isArrayExpression()&&!isNaN(+s)){let l=n.get("elements")[s];if(l)return l.resolve(t,e)}}}}function YX(){if(this.isIdentifier()){let t=this.scope.getBinding(this.node.name);return t?t.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(t=>t.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:t}=this.node;return t!=="in"&&t!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function zX(){return!!(this.isProgram()?this:this.parentPath).find(i=>{if(i.isProgram({sourceType:"module"})||i.isClass())return!0;if(i.isArrowFunctionExpression()&&!i.get("body").isBlockStatement())return!1;let r;if(i.isFunction())r=i.node.body;else if(i.isProgram())r=i.node;else return!1;for(let s of r.directives)if(s.value.value==="use strict")return!0})}});var zx=_(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt._getKey=Wx;wt._getPattern=Yx;wt.get=uH;wt.getAllNextSiblings=lH;wt.getAllPrevSiblings=cH;wt.getAssignmentIdentifiers=pH;wt.getBindingIdentifierPaths=dH;wt.getBindingIdentifiers=fH;wt.getCompletionRecords=sH;wt.getNextSibling=oH;wt.getOpposite=tH;wt.getOuterBindingIdentifierPaths=mH;wt.getOuterBindingIdentifiers=hH;wt.getPrevSibling=aH;wt.getSibling=nH;var uh=Ji(),JX=be(),{getAssignmentIdentifiers:XX,getBindingIdentifiers:Vx,getOuterBindingIdentifiers:HX,numericLiteral:GX,unaryExpression:QX}=JX,ph=0,Kn=1;function ZX(t){return{type:ph,path:t}}function eH(t){return{type:Kn,path:t}}function tH(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function _s(t,e,i){return t&&e.push(...Os(t,i)),e}function iH(t,e,i){let r=[];for(let s=0;s<t.length;s++){let n=t[s],a=Os(n,i),l=[],c=[];for(let o of a)o.type===ph&&l.push(o),o.type===Kn&&c.push(o);l.length&&(r=l),e.push(...c)}return e.push(...r),e}function rH(t){t.forEach(e=>{e.type=Kn})}function ch(t,e){t.forEach(i=>{i.path.isBreakStatement({label:null})&&(e?i.path.replaceWith(QX("void",GX(0))):i.path.remove())})}function Kx(t,e){let i=[];if(e.canHaveBreak){let r=[];for(let s=0;s<t.length;s++){let n=t[s],a=Object.assign({},e,{inCaseClause:!1});n.isBlockStatement()&&(e.inCaseClause||e.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let l=Os(n,a);if(l.length>0&&l.every(c=>c.type===Kn)){r.length>0&&l.every(c=>c.path.isBreakStatement({label:null}))?(rH(r),i.push(...r),r.some(c=>c.path.isDeclaration())&&(i.push(...l),e.shouldPreserveBreak||ch(l,!0)),e.shouldPreserveBreak||ch(l,!1)):(i.push(...l),!e.shouldPopulateBreak&&!e.shouldPreserveBreak&&ch(l,!0));break}if(s===t.length-1)i.push(...l);else{r=[];for(let c=0;c<l.length;c++){let o=l[c];o.type===Kn&&i.push(o),o.type===ph&&r.push(o)}}}}else if(t.length)for(let r=t.length-1;r>=0;r--){let s=Os(t[r],e);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()&&!s[0].path.isEmptyStatement()){i.push(...s);break}}return i}function Os(t,e){let i=[];if(t.isIfStatement())i=_s(t.get("consequent"),i,e),i=_s(t.get("alternate"),i,e);else{if(t.isDoExpression()||t.isFor()||t.isWhile()||t.isLabeledStatement())return _s(t.get("body"),i,e);if(t.isProgram()||t.isBlockStatement())return Kx(t.get("body"),e);if(t.isFunction())return Os(t.get("body"),e);if(t.isTryStatement())i=_s(t.get("block"),i,e),i=_s(t.get("handler"),i,e);else{if(t.isCatchClause())return _s(t.get("body"),i,e);if(t.isSwitchStatement())return iH(t.get("cases"),i,e);if(t.isSwitchCase())return Kx(t.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:e.shouldPreserveBreak});t.isBreakStatement()?i.push(eH(t)):i.push(ZX(t))}}return i}function sH(t=!1){return Os(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:t}).map(i=>i.path)}function nH(t){return uh.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:t}).setContext(this.context)}function aH(){return this.getSibling(this.key-1)}function oH(){return this.getSibling(this.key+1)}function lH(){let t=this.key,e=this.getSibling(++t),i=[];for(;e.node;)i.push(e),e=this.getSibling(++t);return i}function cH(){let t=this.key,e=this.getSibling(--t),i=[];for(;e.node;)i.push(e),e=this.getSibling(--t);return i}function uH(t,e=!0){e===!0&&(e=this.context);let i=t.split(".");return i.length===1?Wx.call(this,t,e):Yx.call(this,i,e)}function Wx(t,e){let i=this.node,r=i[t];return Array.isArray(r)?r.map((s,n)=>uh.default.get({listKey:t,parentPath:this,parent:i,container:r,key:n}).setContext(e)):uh.default.get({parentPath:this,parent:i,container:i,key:t}).setContext(e)}function Yx(t,e){let i=this;for(let r of t)r==="."?i=i.parentPath:Array.isArray(i)?i=i[r]:i=i.get(r,e);return i}function pH(){return XX(this.node)}function fH(t){return Vx(this.node,t)}function hH(t){return HX(this.node,t)}function dH(t=!1,e=!1){let r=[this],s=Object.create(null);for(;r.length;){let n=r.shift();if(!n||!n.node)continue;let a=Vx.keys[n.node.type];if(n.isIdentifier()){t?(s[n.node.name]=s[n.node.name]||[]).push(n):s[n.node.name]=n;continue}if(n.isExportDeclaration()){let l=n.get("declaration");l.isDeclaration()&&r.push(l);continue}if(e){if(n.isFunctionDeclaration()){r.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let l=0;l<a.length;l++){let c=a[l],o=n.get(c);Array.isArray(o)?r.push(...o):o.node&&r.push(o)}}return s}function mH(t=!1){return this.getBindingIdentifierPaths(t,!0)}});var Xx=_(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.addComment=bH;Vn.addComments=SH;Vn.shareCommentsWithSiblings=xH;var yH=be(),{addComment:TH,addComments:gH}=yH;function xH(){if(typeof this.key=="string")return;let t=this.node;if(!t)return;let e=t.trailingComments,i=t.leadingComments;if(!e&&!i)return;let r=this.getSibling(this.key-1),s=this.getSibling(this.key+1),n=!!r.node,a=!!s.node;n&&(i&&r.addComments("trailing",Jx(i,r.node.trailingComments)),e&&!a&&r.addComments("trailing",e)),a&&(e&&s.addComments("leading",Jx(e,s.node.leadingComments)),i&&!n&&s.addComments("leading",i))}function Jx(t,e){if(!(e!=null&&e.length))return t;let i=new Set(e);return t.filter(r=>!i.has(r))}function bH(t,e,i){TH(this.node,t,e,i)}function SH(t,e){gH(this.node,t,e)}});var Ji=_(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.default=Mi.SHOULD_STOP=Mi.SHOULD_SKIP=Mi.REMOVED=void 0;var EH=Pc(),PH=xm(),vH=_n(),AH=$p(),Qx=be(),Qo=Qx,wH=jr(),CH=cg(),Di=ug(),Ns=_g(),Ds=Mf(),Hx=mx(),zr=Fx(),ft=Ux(),Zx=Ti(),ut=Zx,Ls=Ko(),Li=Vo(),Ut=zx(),fh=Xx(),IH=Dp(),{validate:kH}=Qx,Gx=PH("babel"),_oe=Mi.REMOVED=1,Ooe=Mi.SHOULD_STOP=2,Noe=Mi.SHOULD_SKIP=4,Hi=Mi.default=class eb{constructor(e,i){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=i,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:e,parentPath:i,parent:r,container:s,listKey:n,key:a}){if(!e&&i&&(e=i.hub),!r)throw new Error("To get a node path the parent needs to exist");let l=s[a],c=wH.getOrCreateCachedPaths(r,i),o=c.get(l);return o||(o=new eb(e,r),l&&c.set(l,o)),Zx.setup.call(o,i,s,n,a),o}getScope(e){return this.isScope()?new AH.default(this):e}setData(e,i){return this.data==null&&(this.data=Object.create(null)),this.data[e]=i}getData(e,i){this.data==null&&(this.data=Object.create(null));let r=this.data[e];return r===void 0&&i!==void 0&&(r=this.data[e]=i),r}hasNode(){return this.node!=null}buildCodeFrameError(e,i=SyntaxError){return this.hub.buildError(this.node,e,i)}traverse(e,i){(0,vH.default)(this.node,e,this.scope,i,this)}set(e,i){kH(this.node,e,i),this.node[e]=i}getPathLocation(){let e=[],i=this;do{let r=i.key;i.inList&&(r=`${i.listKey}[${r}]`),e.unshift(r)}while(i=i.parentPath);return e.join(".")}debug(e){Gx.enabled&&Gx(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,CH.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},_H={findParent:Di.findParent,find:Di.find,getFunctionParent:Di.getFunctionParent,getStatementParent:Di.getStatementParent,getEarliestCommonAncestorFrom:Di.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:Di.getDeepestCommonAncestorFrom,getAncestry:Di.getAncestry,isAncestor:Di.isAncestor,isDescendant:Di.isDescendant,inType:Di.inType,getTypeAnnotation:Ns.getTypeAnnotation,isBaseType:Ns.isBaseType,couldBeBaseType:Ns.couldBeBaseType,baseTypeStrictlyMatches:Ns.baseTypeStrictlyMatches,isGenericType:Ns.isGenericType,replaceWithMultiple:Ds.replaceWithMultiple,replaceWithSourceString:Ds.replaceWithSourceString,replaceWith:Ds.replaceWith,replaceExpressionWithStatements:Ds.replaceExpressionWithStatements,replaceInline:Ds.replaceInline,evaluateTruthy:Hx.evaluateTruthy,evaluate:Hx.evaluate,toComputedKey:zr.toComputedKey,ensureBlock:zr.ensureBlock,unwrapFunctionEnvironment:zr.unwrapFunctionEnvironment,arrowFunctionToExpression:zr.arrowFunctionToExpression,splitExportDeclaration:zr.splitExportDeclaration,ensureFunctionName:zr.ensureFunctionName,matchesPattern:ft.matchesPattern,isStatic:ft.isStatic,isNodeType:ft.isNodeType,canHaveVariableDeclarationOrExpression:ft.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:ft.canSwapBetweenExpressionAndStatement,isCompletionRecord:ft.isCompletionRecord,isStatementOrBlock:ft.isStatementOrBlock,referencesImport:ft.referencesImport,getSource:ft.getSource,willIMaybeExecuteBefore:ft.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:ft._guessExecutionStatusRelativeTo,resolve:ft.resolve,isConstantExpression:ft.isConstantExpression,isInStrictMode:ft.isInStrictMode,isDenylisted:ut.isDenylisted,visit:ut.visit,skip:ut.skip,skipKey:ut.skipKey,stop:ut.stop,setContext:ut.setContext,requeue:ut.requeue,requeueComputedKeyAndDecorators:ut.requeueComputedKeyAndDecorators,remove:Ls.remove,insertBefore:Li.insertBefore,insertAfter:Li.insertAfter,unshiftContainer:Li.unshiftContainer,pushContainer:Li.pushContainer,getOpposite:Ut.getOpposite,getCompletionRecords:Ut.getCompletionRecords,getSibling:Ut.getSibling,getPrevSibling:Ut.getPrevSibling,getNextSibling:Ut.getNextSibling,getAllNextSiblings:Ut.getAllNextSiblings,getAllPrevSiblings:Ut.getAllPrevSiblings,get:Ut.get,getAssignmentIdentifiers:Ut.getAssignmentIdentifiers,getBindingIdentifiers:Ut.getBindingIdentifiers,getOuterBindingIdentifiers:Ut.getOuterBindingIdentifiers,getBindingIdentifierPaths:Ut.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:Ut.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:fh.shareCommentsWithSiblings,addComment:fh.addComment,addComments:fh.addComments};Object.assign(Hi.prototype,_H);Hi.prototype.arrowFunctionToShadowed=zr.arrowFunctionToShadowed,Object.assign(Hi.prototype,{has:ft.has,is:ft.is,isnt:ft.isnt,equals:ft.equals,hoist:Li.hoist,updateSiblingKeys:Li.updateSiblingKeys,call:ut.call,isBlacklisted:ut.isBlacklisted,setScope:ut.setScope,resync:ut.resync,popContext:ut.popContext,pushContext:ut.pushContext,setup:ut.setup,setKey:ut.setKey});Hi.prototype._guessExecutionStatusRelativeToDifferentFunctions=ft._guessExecutionStatusRelativeTo,Hi.prototype._guessExecutionStatusRelativeToDifferentFunctions=ft._guessExecutionStatusRelativeTo,Object.assign(Hi.prototype,{_getTypeAnnotation:Ns._getTypeAnnotation,_replaceWith:Ds._replaceWith,_resolve:ft._resolve,_call:ut._call,_resyncParent:ut._resyncParent,_resyncKey:ut._resyncKey,_resyncList:ut._resyncList,_resyncRemoved:ut._resyncRemoved,_getQueueContexts:ut._getQueueContexts,_removeFromScope:Ls._removeFromScope,_callRemovalHooks:Ls._callRemovalHooks,_remove:Ls._remove,_markRemoved:Ls._markRemoved,_assertUnremoved:Ls._assertUnremoved,_containerInsert:Li._containerInsert,_containerInsertBefore:Li._containerInsertBefore,_containerInsertAfter:Li._containerInsertAfter,_verifyNodeList:Li._verifyNodeList,_getKey:Ut._getKey,_getPattern:Ut._getPattern});for(let t of Qo.TYPES){let e=`is${t}`,i=Qo[e];Hi.prototype[e]=function(r){return i(this.node,r)},Hi.prototype[`assert${t}`]=function(r){if(!i(this.node,r))throw new TypeError(`Expected node path of type ${t}`)}}Object.assign(Hi.prototype,IH);for(let t of Object.keys(EH))t[0]!=="_"&&(Qo.TYPES.includes(t)||Qo.TYPES.push(t))});var tb=_(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.default=void 0;var OH=Ji(),NH=be(),hh=Ti(),{VISITOR_KEYS:DH}=NH,dh=class{constructor(e,i,r,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=e,this.state=r,this.opts=i}shouldVisit(e){let i=this.opts;if(i.enter||i.exit||i[e.type])return!0;let r=DH[e.type];if(!(r!=null&&r.length))return!1;for(let s of r)if(e[s])return!0;return!1}create(e,i,r,s){return OH.default.get({parentPath:this.parentPath,parent:e,container:i,key:r,listKey:s})}maybeQueue(e,i){this.queue&&(i?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,i,r){if(e.length===0)return!1;let s=[];for(let n=0;n<e.length;n++){let a=e[n];a&&this.shouldVisit(a)&&s.push(this.create(i,e,n,r))}return this.visitQueue(s)}visitSingle(e,i){return this.shouldVisit(e[i])?this.visitQueue([this.create(e,e,i)]):!1}visitQueue(e){this.queue=e,this.priorityQueue=[];let i=new WeakSet,r=!1,s=0;for(;s<e.length;){let n=e[s];if(s++,hh.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&hh.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!i.has(a)){if(a&&i.add(a),n.visit()){r=!0;break}if(this.priorityQueue.length&&(r=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,r))break}}for(let n=0;n<s;n++)hh.popContext.call(e[n]);return this.queue=null,r}visit(e,i){let r=e[i];return r?Array.isArray(r)?this.visitMultiple(r,e,i):this.visitSingle(e,i):!1}};Zo.default=dh});var To=_(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.traverseNode=BH;var LH=tb(),Moe=Ji(),MH=be(),Foe=Ti(),{VISITOR_KEYS:FH}=MH;function BH(t,e,i,r,s,n,a){let l=FH[t.type];if(!l)return!1;let c=new LH.default(i,e,r,s);if(a)return n!=null&&n[s.parentKey]?!1:c.visitQueue([s]);for(let o of l)if(!(n!=null&&n[o])&&c.visit(t,o))return!0;return!1}});var Ti=_(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt._call=Th;nt._getQueueContexts=ZH;nt._resyncKey=ob;nt._resyncList=lb;nt._resyncParent=ab;nt._resyncRemoved=zH;nt.call=yh;nt.isDenylisted=sb;nt.popContext=JH;nt.pushContext=XH;nt.requeue=GH;nt.requeueComputedKeyAndDecorators=QH;nt.resync=YH;nt.setContext=WH;nt.setKey=el;nt.setScope=nb;nt.setup=HH;nt.skip=UH;nt.skipKey=KH;nt.stop=VH;nt.visit=qH;var jH=To(),ib=Ji(),RH=Ko(),$H=be();function yh(t){let e=this.opts;if(this.debug(t),this.node&&Th.call(this,e[t]))return!0;if(this.node){var i;return Th.call(this,(i=e[this.node.type])==null?void 0:i[t])}return!1}function Th(t){if(!t)return!1;for(let e of t){if(!e)continue;let i=this.node;if(!i)return!0;let r=e.call(this.state,this,this.state);if(r&&typeof r=="object"&&typeof r.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(r)throw new Error(`Unexpected return value from visitor method ${e}`);if(this.node!==i||this._traverseFlags>0)return!0}return!1}function sb(){var t;let e=(t=this.opts.denylist)!=null?t:this.opts.blacklist;return e?.includes(this.node.type)}nt.isBlacklisted=sb;function rb(t,e){t.context!==e&&(t.context=e,t.state=e.state,t.opts=e.opts)}function qH(){var t,e;if(!this.node||this.isDenylisted()||(t=(e=this.opts).shouldSkip)!=null&&t.call(e,this))return!1;let i=this.context;return this.shouldSkip||yh.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(rb(this,i),this.debug("Recursing into..."),this.shouldStop=(0,jH.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),rb(this,i),yh.call(this,"exit"),this.shouldStop)}function UH(){this.shouldSkip=!0}function KH(t){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[t]=!0}function VH(){this._traverseFlags|=ib.SHOULD_SKIP|ib.SHOULD_STOP}function nb(){var t,e;if((t=this.opts)!=null&&t.noScope)return;let i=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&i.isMethod()||this.key==="discriminant"&&i.isSwitchStatement())&&(i=i.parentPath);let r;for(;i&&!r;){var s;if((s=i.opts)!=null&&s.noScope)return;r=i.scope,i=i.parentPath}this.scope=this.getScope(r),(e=this.scope)==null||e.init()}function WH(t){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,t&&(this.context=t,this.state=t.state,this.opts=t.opts),nb.call(this),this}function YH(){this.removed||(ab.call(this),lb.call(this),ob.call(this))}function ab(){this.parentPath&&(this.parent=this.parentPath.node)}function ob(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let t=0;t<this.container.length;t++)if(this.container[t]===this.node){el.call(this,t);return}}else for(let t of Object.keys(this.container))if(this.container[t]===this.node){el.call(this,t);return}this.key=null}}function lb(){if(!this.parent||!this.inList)return;let t=this.parent[this.listKey];this.container!==t&&(this.container=t||null)}function zH(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&RH._markRemoved.call(this)}function JH(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function XH(t){this.contexts.push(t),this.setContext(t)}function HH(t,e,i,r){this.listKey=i,this.container=e,this.parentPath=t||this.parentPath,el.call(this,r)}function el(t){var e;this.key=t,this.node=this.container[this.key],this.type=(e=this.node)==null?void 0:e.type}function GH(t=this){if(t.removed)return;let e=this.contexts;for(let i of e)i.maybeQueue(t)}function QH(){let{context:t,node:e}=this;if(!$H.isPrivate(e)&&e.computed&&t.maybeQueue(this.get("key")),e.decorators)for(let i of this.get("decorators"))t.maybeQueue(i)}function ZH(){let t=this,e=this.contexts;for(;!e.length&&(t=t.parentPath,!!t);)e=t.contexts;return e}});var cb=_(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.default=void 0;var gh=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,i,r=TypeError){return new r(i)}};tl.default=gh});var _n=_(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Object.defineProperty(Gi,"Hub",{enumerable:!0,get:function(){return sG.default}});Object.defineProperty(Gi,"NodePath",{enumerable:!0,get:function(){return iG.default}});Object.defineProperty(Gi,"Scope",{enumerable:!0,get:function(){return rG.default}});Gi.visitors=Gi.default=void 0;Ti();var Yn=ho();Gi.visitors=Yn;var eG=be(),tG=jr(),ub=To(),iG=Ji(),rG=$p(),sG=cb(),{VISITOR_KEYS:nG,removeProperties:aG,traverseFast:Wn}=eG;function Si(t,e={},i,r,s,n){if(t){if(!e.noScope&&!i&&t.type!=="Program"&&t.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${t.type} node without passing scope and parentPath.`);if(!s&&n)throw new Error("visitSelf can only be used when providing a NodePath.");nG[t.type]&&(Yn.explode(e),(0,ub.traverseNode)(t,e,i,r,s,null,n))}}var $oe=Gi.default=Si;Si.visitors=Yn;Si.verify=Yn.verify;Si.explode=Yn.explode;Si.cheap=function(t,e){Wn(t,e)};Si.node=function(t,e,i,r,s,n){(0,ub.traverseNode)(t,e,i,r,s,n)};Si.clearNode=function(t,e){aG(t,e)};Si.removeProperties=function(t,e){return Wn(t,Si.clearNode,e),t};Si.hasType=function(t,e,i){return i!=null&&i.includes(t.type)?!1:t.type===e?!0:Wn(t,function(r){if(i!=null&&i.includes(r.type))return Wn.skip;if(r.type===e)return Wn.stop})};Si.cache=tG});var fb=_((Uoe,pb)=>{var oG=require("fs"),lG=Ra(),cG=_n().default;function uG(t){let e=oG.readFileSync(t,"utf-8"),i=new Set,r,s={};function n(c){return!(!c||typeof c!="string"||(c=c.trim(),c.length===0)||!/[a-zA-Z0-9_-]/.test(c))}function a(c){n(c)&&i.add(c.trim())}try{r=lG.parse(e,{sourceType:"module",plugins:["jsx","typescript","classProperties","objectRestSpread","optionalChaining","nullishCoalescingOperator"]})}catch{return[]}function l(c){if(c)if(c.type==="StringLiteral"||c.type==="Literal")c.value.split(/\s+/).forEach(o=>a(o));else if(c.type==="ArrayExpression")c.elements.forEach(o=>l(o));else if(c.type==="TemplateLiteral")c.quasis.forEach(o=>{o.value.cooked&&o.value.cooked.split(/\s+/).forEach(u=>a(u))}),c.expressions.forEach(o=>l(o));else if(c.type==="Identifier"&&s[c.name]){let o=s[c.name];Array.isArray(o)?o.forEach(u=>a(u)):typeof o=="string"?o.split(/\s+/).forEach(u=>a(u)):typeof o=="object"&&Object.values(o).forEach(u=>{typeof u=="string"&&u.split(/\s+/).forEach(f=>a(f))})}else if(c.type==="BinaryExpression"&&c.operator==="+")l(c.left),l(c.right);else if(c.type==="ConditionalExpression")l(c.consequent),l(c.alternate);else if(c.type==="LogicalExpression")l(c.left),l(c.right);else if(c.type==="MemberExpression"){if(c.object.type==="Identifier"&&s[c.object.name]){let o=null;if(!c.computed&&c.property.type==="Identifier")o=c.property.name;else if(c.computed&&c.property.type==="StringLiteral")o=c.property.value;else if(c.computed&&c.property.type==="Identifier"){let u=s[c.object.name];typeof u=="object"&&Object.values(u).forEach(f=>{typeof f=="string"&&f.split(/\s+/).forEach(d=>a(d))});return}if(o){let u=s[c.object.name][o];typeof u=="string"&&u.split(/\s+/).forEach(f=>a(f))}}}else c.type==="ArrowFunctionExpression"?c.body.type==="TemplateLiteral"||c.body.type==="ConditionalExpression"?l(c.body):c.body.type==="BlockStatement"&&c.body.body.forEach(o=>{o.type==="ReturnStatement"&&o.argument&&l(o.argument)}):c.type==="CallExpression"&&l(c.callee)}return cG(r,{VariableDeclarator(c){if(c.node.init&&c.node.id.type==="Identifier"){let o=c.node.id.name,u=/Classes?$/.test(o)||/classes?$/i.test(o)||/ClassNames?$/.test(o),f=u||/color|variant|style|map/i.test(o);if(c.node.init.type==="ObjectExpression"&&f){let d={},m=S=>{S.type==="StringLiteral"?S.value.split(/\s+/).forEach(P=>a(P)):S.type==="ObjectExpression"&&S.properties.forEach(P=>{m(P.value)})};c.node.init.properties.forEach(S=>{let P=null;S.key.type==="Identifier"?P=S.key.name:S.key.type==="StringLiteral"&&(P=S.key.value),P&&(S.value.type==="StringLiteral"?(d[P]=S.value.value,S.value.value.split(/\s+/).forEach(A=>a(A))):S.value.type==="ObjectExpression"&&m(S.value))}),s[o]=d}else if((c.node.init.type==="ArrayExpression"||c.node.init.type==="StringLiteral")&&f){let d=[];c.node.init.type==="ArrayExpression"?c.node.init.elements.forEach(m=>{m&&m.type==="StringLiteral"&&m.value.split(/\s+/).forEach(S=>{n(S)&&d.push(S.trim())})}):c.node.init.type==="StringLiteral"&&c.node.init.value.split(/\s+/).forEach(m=>{n(m)&&d.push(m.trim())}),s[o]=d}else c.node.init.type==="StringLiteral"&&u&&(s[o]=c.node.init.value)}},ObjectProperty(c){let o=c.node.key.name||(c.node.key.type==="StringLiteral"?c.node.key.value:null);o&&/Class$|ClassName$|^className$/i.test(o)&&(c.node.value.type==="StringLiteral"?c.node.value.value.split(/\s+/).forEach(u=>a(u)):c.node.value.type==="TemplateLiteral"&&l(c.node.value))},JSXAttribute(c){if(typeof c.node.name.name=="string"&&/^(class(Name)?|.*[cC]lass(Name)?)$/.test(c.node.name.name)){let o=c.node.value;o&&(o.type==="StringLiteral"?o.value.split(/\s+/).forEach(u=>a(u)):o.type==="JSXExpressionContainer"&&l(o.expression))}}}),Array.from(i).filter(n)}pb.exports=uG});var zn=require("fs"),bh=require("path"),pG=Id(),fG=Nd(),hb=Ld(),db=Fd(),hG=fb(),mb=(...t)=>t.reduce((e,i)=>fG(e,i||{},{arrayMerge:(r,s)=>s}),{}),dG=()=>{try{return require(bh.resolve(process.cwd(),"unicss.config.js"))}catch{return{}}},at=t=>t.replace(/([:\/\[\]\(\)\?\=\&\,\'\;\+\"#%\*!])/g,"\\$1").replace(/\./g,"\\.").replace(/^([0-9])/,"\\3$1"),ht=t=>t.replace(/\./g,"\\."),M=(t,e)=>{let i=t.replace(/[\[\]]/g,"");return["bg-image","mask-image","list-image"].includes(e)?/^url\(/i.test(i.trim())?i:i.replace(/_/g," "):i.replace(/_/g," ").replace(/calc\(([^)]+)\)/g,(s,n)=>`calc(${n.replace(/([+\-*\/])/g," $1 ").replace(/\s+/g," ").trim()})`)},yb=t=>{let e=zn.readFileSync(t,"utf-8"),i=[];return[/class=["']([^"']+)["']/g,/className=["']([^"']+)["']/g,/class=\{["'`]([^"'`]+)["'`]\}/g,/className=\{["'`]([^"'`]+)["'`]\}/g,/class:\s*["']([^"']+)["']/g,/class:\s*\[["']([^"']+)["']\]/g,/\b\w+(?:Class|ClassName)=["']([^"']+)["']/g,/\b\w+(?:Class|ClassName)=\{["'`]([^"'`]+)["'`]\}/g].forEach(s=>{let n;for(;(n=s.exec(e))!==null;){let a=n[1];if(a){let l=a.split(/\s+/).filter(Boolean);i.push(...l)}}}),i},ke=t=>{if(t=t.replace(/[\[\]]/g,""),["inherit","current","transparent","currentColor"].includes(t))return t==="current"?"currentColor":t;let i=t.match(/^rgba?\((\d+),(\d+),(\d+)(?:,(\d*\.?\d+))?\)$/);if(i){let[,s,n,a,l]=i;return`rgba(${s},${n},${a},${l||1})`}let r=t.match(/^rgb\((\d+)_(\d+)_(\d+)(?:_\/(\d+))?\)$/);if(r){let[,s,n,a,l]=r,c=l?parseInt(l,10)/100:1;return`rgba(${s},${n},${a},${c})`}if(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{3}$/.test(t))return t;if(t.includes("/")){let[s,n]=t.split("/");if(s.startsWith("#")){let a=s.replace("#","");a.length===3&&(a=a.split("").map(u=>u+u).join(""));let l=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),o=parseInt(a.substring(4,6),16);return`rgba(${l},${c},${o},${parseInt(n,10)/100})`}return`color-mix(in srgb, var(--color-${s}) ${parseInt(n,10)}%, transparent)`}return`var(--color-${t})`},Tt=t=>t==="full"?"100%":t==="px"?"1px":/^\d+\/\d+$/.test(t)?t.replace(/^(\d+)\/(\d+)$/,(e,i,r)=>`${parseInt(i,10)/parseInt(r,10)*100}%`):/^\d+(\.\d+)?$/.test(t)?`calc(0.25rem * ${t})`:`var(--${ht(t)})`,Ve=t=>t==="full"?"-100%":t==="px"?"-1px":/^\d+\/\d+$/.test(t)?`-${t.replace(/^(\d+)\/(\d+)$/,(e,i,r)=>`${parseInt(i,10)/parseInt(r,10)*100}%`)}`:/^\d+(\.\d+)?$/.test(t)?`calc(-0.25rem * ${t})`:`calc(-1 * var(--${ht(t)}))`,mG=t=>{let e=t.split(" ");if(e.length===1){let i=Tt(e[0]);return`${i} ${i}`}return e.map(Tt).join(" ")},yG=t=>{let e=t.split(" ");if(e.length===1){let i=Ve(e[0]);return`${i} ${i}`}return e.map(Ve).join(" ")},Jr={first:"first-child",last:"last-child","not-first":"not(:first-child)","not-last":"not(:last-child)",odd:"nth-child(odd)",even:"nth-child(even)",placeholder:"placeholder",file:"file-selector-button",marker:"marker",selection:"selection","first-line":"first-line","first-letter":"first-letter",backdrop:"backdrop","has-checked":"has(:checked)","focus-within":"focus-within",before:"before",after:"after","peer-hover":":hover","peer-focus":":focus","peer-active":":active","peer-invalid":":invalid","peer-checked":":checked","peer-disabled":":disabled","peer-required":":required","peer-read-only":":read-only","peer-indeterminate":":indeterminate","not-hover":"not(:hover)","not-focus":"not(:focus)","not-active":"not(:active)","not-visited":"not(:visited)","not-disabled":"not(:disabled)","not-checked":"not(:checked)","not-focus-visible":"not(:focus-visible)","not-invalid":"not(:invalid)","not-valid":"not(:valid)","not-required":"not(:required)","not-read-only":"not(:read-only)","not-indeterminate":"not(:indeterminate)"},TG=t=>{let e=t.match(/^nth-(\d+)$/);if(e)return`nth-child(${e[1]})`;let i=t.match(/^nth-last-(\d+)$/);if(i)return`nth-last-child(${i[1]})`;let r=t.match(/^nth-of-type-(\d+)$/);if(r)return`nth-of-type(${r[1]})`;let s=t.match(/^nth-last-of-type-(\d+)$/);return s?`nth-last-of-type(${s[1]})`:null},Fi=t=>{let e=TG(t);if(e)return`:${e}`;if(t.startsWith("group-hover/"))return`.group\\/${t.replace("group-hover/","")}:hover`;if(t==="group-hover")return".group:hover";if(t.startsWith("peer-")&&t.includes("/")){let[r,s]=t.split("/"),n=Jr[r]||r.replace("peer-","");return`.peer\\/${s}:${n} ~`}return t.startsWith("peer-")?`.peer:${Jr[t]||t.replace("peer-","")} ~`:`:${Jr[t]||t}`},il=["--uni-blur","--uni-drop-shadow","--uni-brightness","--uni-contrast","--uni-grayscale","--uni-hue-rotate","--uni-invert","--uni-saturate","--uni-sepia"],rl=["--uni-backdrop-blur","--uni-backdrop-brightness","--uni-backdrop-contrast","--uni-backdrop-grayscale","--uni-backdrop-hue-rotate","--uni-backdrop-invert","--uni-backdrop-saturate","--uni-backdrop-opacity","--uni-backdrop-sepia"],Tb=["--uni-shadow","--uni-shadow-color","--uni-inset-shadow","--uni-inset-shadow-color","--uni-ring-shadow","--uni-ring-color","--uni-inset-ring-shadow","--uni-inset-ring-color","--uni-ring-inset"],sl=["--uni-rotate-x","--uni-rotate-y","--uni-rotate-z","--uni-skew-x","--uni-skew-y"],nl=["--uni-scale-x","--uni-scale-y"],al=["--uni-translate-x","--uni-translate-y","--uni-translate-z"],gG=(t,e,i,r,s=null,n=null,a=!1)=>{let l=at(t),c=`.${l}`,o=!1;if(t.includes("space-x-")||t.includes("space-y-")||t.includes("divide-x")||t.includes("divide-y")||t.includes("divide-color-")||t.includes("divide-style-")?(c+=" > :not(:last-child)",o=!0):a&&(c+=" > *"),o&&(c=`:where(${c})`),s&&(s.startsWith("peer-")||s.includes("peer-")))c=`${Fi(s)}${c}`;else if(s){let k=Fi(s);o?c=c.replace(`:where(.${l}`,`:where(.${l}${k.startsWith(":")?k:":"+k}`):c+=k.startsWith(":")?k:`:${k}`}let u=il.includes(i),f=rl.includes(i),d=Tb.includes(i),m=sl.includes(i),S=nl.includes(i),P=al.includes(i),A;if(typeof r=="object"?A=Object.entries(r).map(([k,D])=>`${k}: ${D};`).join(" "):Array.isArray(i)?A=i.map(k=>`${k}: ${r}`).join("; "):A=`${i}: ${r}`,!A||A.trim()===";"||A.trim()==="")return null;let C;return u?C=`${c} { ${A}; filter: ${il.map(k=>`var(${k})`).join(" ")}; }`:f?C=`${c} { ${A}; backdrop-filter: ${rl.map(k=>`var(${k})`).join(" ")}; }`:d?C=`${c} { ${A}; box-shadow: var(--uni-inset-shadow, 0 0 #0000), var(--uni-inset-ring-shadow, 0 0 #0000), var(--uni-ring-shadow, 0 0 #0000), var(--uni-shadow, 0 0 #0000); }`:m?C=`${c} { ${A}; transform: ${sl.map(k=>`var(${k})`).join(" ")}; }`:S?C=`${c} { ${A}; scale: ${nl.map(k=>`var(${k})`).join(" ")}; }`:P?C=`${c} { ${A}; translate: ${al.map(k=>`var(${k})`).join(" ")}; }`:C=`${c} { ${A}; }`,{selector:c,rule:C,screen:n}},xG=(t,e={})=>{let i=[],r=(o,u,f)=>{i.push({prefix:o,prop:u,transform:f})};["w","min-w","max-w"].forEach(o=>{let u=o.replace("w","width");r(`${o}-[`,u,M),r(`${o}-`,u,f=>{let d=`container-${f}`;if(e[d])return`var(--${d})`;if(/^\d+\/\d+$/.test(f))return f.replace(/^(\d+)\/(\d+)$/,(S,P,A)=>`${parseInt(P,10)/parseInt(A,10)*100}%`);let m={full:"100%",screen:"100vw",dvw:"100dvw",dvh:"100dvh",lvw:"100lvw",lvh:"100lvh",svw:"100svw",svh:"100svh",auto:"auto",px:"1px",min:"min-content",max:"max-content",fit:"fit-content"};return m[f]?m[f]:/^\d+(\.\d+)?$/.test(f)?`calc(0.25rem * ${f})`:`var(--${ht(f)})`})}),["h","min-h","max-h"].forEach(o=>{let u=o.replace("h","height");r(`${o}-[`,u,M),r(`${o}-`,u,f=>{let d=`container-${f}`;if(e[d])return`var(--${d})`;if(/^\d+\/\d+$/.test(f))return f.replace(/^(\d+)\/(\d+)$/,(S,P,A)=>`${parseInt(P,10)/parseInt(A,10)*100}%`);let m={full:"100%",screen:"100vh",dvw:"100dvw",dvh:"100dvh",lvw:"100lvw",lvh:"100lvh",svw:"100svw",svh:"100svh",auto:"auto",px:"1px",min:"min-content",max:"max-content",fit:"fit-content"};return m[f]?m[f]:/^\d+(\.\d+)?$/.test(f)?`calc(0.25rem * ${f})`:`var(--${ht(f)})`})}),[["p","padding"],["pt","padding-top"],["pr","padding-right"],["pb","padding-bottom"],["pl","padding-left"],["px","padding-inline"],["py","padding-block"],["m","margin"],["mt","margin-top"],["mr","margin-right"],["mb","margin-bottom"],["ml","margin-left"]].forEach(([o,u])=>{r(`${o}-[`,u,M),r(`${o}-`,u,f=>f==="auto"?"auto":f==="px"?"1px":Tt(f))}),r("mx-[",["margin-left","margin-right"],M),r("mx-",["margin-left","margin-right"],o=>o==="auto"?"auto":o==="px"?"1px":Tt(o)),r("my-[",["margin-top","margin-bottom"],M),r("my-",["margin-top","margin-bottom"],o=>o==="auto"?"auto":o==="px"?"1px":Tt(o)),r("-m-","margin",o=>o==="px"?"-1px":Ve(o)),r("-mt-","margin-top",o=>o==="px"?"-1px":Ve(o)),r("-mr-","margin-right",o=>o==="px"?"-1px":Ve(o)),r("-mb-","margin-bottom",o=>o==="px"?"-1px":Ve(o)),r("-ml-","margin-left",o=>o==="px"?"-1px":Ve(o)),r("-mx-",["margin-left","margin-right"],o=>o==="px"?"-1px":Ve(o)),r("-my-",["margin-top","margin-bottom"],o=>o==="px"?"-1px":Ve(o)),["top","right","bottom","left"].forEach(o=>{r(`${o}-[`,o,M),r(`${o}-`,o,u=>u==="auto"?"auto":u==="px"?"1px":u==="full"?"100%":Tt(u)),r(`-${o}-[`,o,u=>`-${M(u)}`),r(`-${o}-`,o,u=>u==="px"?"-1px":u==="full"?"-100%":Ve(u))}),r("gap-x-[","column-gap",M),r("gap-x-","column-gap",o=>o==="px"?"1px":/^\d+(\.\d+)?$/.test(o)?`calc(0.25rem * ${o})`:`var(--${ht(o)})`),r("gap-y-[","row-gap",M),r("gap-y-","row-gap",o=>o==="px"?"1px":/^\d+(\.\d+)?$/.test(o)?`calc(0.25rem * ${o})`:`var(--${ht(o)})`),r("gap-[","gap",M),r("gap-","gap",o=>o==="px"?"1px":/^\d+(\.\d+)?$/.test(o)?`calc(0.25rem * ${o})`:`var(--${ht(o)})`),r("inset-x-[","inset-inline",M),r("inset-x-","inset-inline",o=>o==="auto"?"auto":o==="px"?"1px":o==="full"?"100%":Tt(o)),r("-inset-x-[","inset-inline",o=>`-${M(o)}`),r("-inset-x-","inset-inline",Ve),r("inset-y-[","inset-block",M),r("inset-y-","inset-block",o=>o==="auto"?"auto":o==="px"?"1px":o==="full"?"100%":Tt(o)),r("-inset-y-[","inset-block",o=>`-${M(o)}`),r("-inset-y-","inset-block",Ve),r("inset-[","inset",M),r("inset-","inset",o=>o==="auto"?"auto":o==="px"?"1px":o==="full"?"100%":Tt(o)),r("-inset-[","inset",o=>`-${M(o)}`),r("-inset-","inset",Ve),r("z-","z-index",M),r("-z-","z-index",o=>`-${o}`),r("flex-[","flex",M),r("flex-row-reverse","flex-direction",()=>"row-reverse"),r("flex-col-reverse","flex-direction",()=>"column-reverse"),r("flex-row","flex-direction",()=>"row"),r("flex-col","flex-direction",()=>"column"),r("flex-wrap-reverse","flex-wrap",()=>"wrap-reverse"),r("flex-wrap","flex-wrap",()=>"wrap"),r("flex-nowrap","flex-wrap",()=>"nowrap"),r("flex-","flex",M),r("grow-","flex-grow",M),r("shrink-","flex-shrink",M),r("basis-[","flex-basis",M),r("basis-","flex-basis",o=>{if(o==="auto")return"auto";if(o==="px")return"1px";if(o==="full")return"100%";let u=`container-${o}`;return e[u]?`var(--${u})`:Tt(o)}),r("order-first","order",()=>"-999999"),r("order-last","order",()=>"999999"),r("order-","order",M),r("-order-","order",o=>`-${o}`),[["auto",{width:"auto",height:"auto"}],["px",{width:"1px",height:"1px"}],["full",{width:"100%",height:"100%"}],["dvw",{width:"100dvw",height:"100dvw"}],["dvh",{width:"100dvh",height:"100dvh"}],["lvw",{width:"100lvw",height:"100lvw"}],["lvh",{width:"100lvh",height:"100lvh"}],["svw",{width:"100svw",height:"100svw"}],["svh",{width:"100svh",height:"100svh"}],["min",{width:"min-content",height:"min-content"}],["max",{width:"max-content",height:"max-content"}],["fit",{width:"fit-content",height:"fit-content"}]].forEach(([o,u])=>{r(`size-${o}`,null,()=>u)}),r("size-[",["width","height"],M),r("size-",["width","height"],Tt),r("aspect-[","aspect-ratio",M),r("aspect-","aspect-ratio",o=>/^\d+\/\d+$/.test(o)?o:{auto:"auto",square:"1/1",video:"16/9"}[o]||o),[["scroll-m","scroll-margin"],["scroll-mt","scroll-margin-top"],["scroll-mr","scroll-margin-right"],["scroll-mb","scroll-margin-bottom"],["scroll-ml","scroll-margin-left"]].forEach(([o,u])=>{r(`${o}-[`,u,M),r(`${o}-`,u,f=>f==="auto"?"auto":f==="px"?"1px":Tt(f))}),r("scroll-mx-[","scroll-margin-inline",M),r("scroll-mx-","scroll-margin-inline",o=>o==="auto"?"auto":o==="px"?"1px":Tt(o)),r("scroll-my-[","scroll-margin-block",M),r("scroll-my-","scroll-margin-block",o=>o==="auto"?"auto":o==="px"?"1px":Tt(o)),r("-scroll-m-[","scroll-margin",o=>`-${M(o)}`),r("-scroll-m-","scroll-margin",o=>o==="px"?"-1px":Ve(o)),r("-scroll-mt-[","scroll-margin-top",o=>`-${M(o)}`),r("-scroll-mt-","scroll-margin-top",o=>o==="px"?"-1px":Ve(o)),r("-scroll-mr-[","scroll-margin-right",o=>`-${M(o)}`),r("-scroll-mr-","scroll-margin-right",o=>o==="px"?"-1px":Ve(o)),r("-scroll-mb-[","scroll-margin-bottom",o=>`-${M(o)}`),r("-scroll-mb-","scroll-margin-bottom",o=>o==="px"?"-1px":Ve(o)),r("-scroll-ml-[","scroll-margin-left",o=>`-${M(o)}`),r("-scroll-ml-","scroll-margin-left",o=>o==="px"?"-1px":Ve(o)),r("-scroll-mx-[","scroll-margin-inline",o=>`-${M(o)}`),r("-scroll-mx-","scroll-margin-inline",o=>o==="px"?"-1px":Ve(o)),r("-scroll-my-[","scroll-margin-block",o=>`-${M(o)}`),r("-scroll-my-","scroll-margin-block",o=>o==="px"?"-1px":Ve(o)),[["scroll-p","scroll-padding"],["scroll-pt","scroll-padding-top"],["scroll-pr","scroll-padding-right"],["scroll-pb","scroll-padding-bottom"],["scroll-pl","scroll-padding-left"]].forEach(([o,u])=>{r(`${o}-[`,u,M),r(`${o}-`,u,f=>f==="px"?"1px":Tt(f))}),r("scroll-px-[","scroll-padding-inline",M),r("scroll-px-","scroll-padding-inline",o=>o==="px"?"1px":Tt(o)),r("scroll-py-[","scroll-padding-block",M),r("scroll-py-","scroll-padding-block",o=>o==="px"?"1px":Tt(o)),r("-scroll-p-[","scroll-padding",o=>`-${M(o)}`),r("-scroll-p-","scroll-padding",o=>o==="px"?"-1px":Ve(o)),r("-scroll-pt-[","scroll-padding-top",o=>`-${M(o)}`),r("-scroll-pt-","scroll-padding-top",o=>o==="px"?"-1px":Ve(o)),r("-scroll-pr-[","scroll-padding-right",o=>`-${M(o)}`),r("-scroll-pr-","scroll-padding-right",o=>o==="px"?"-1px":Ve(o)),r("-scroll-pb-[","scroll-padding-bottom",o=>`-${M(o)}`),r("-scroll-pb-","scroll-padding-bottom",o=>o==="px"?"-1px":Ve(o)),r("-scroll-pl-[","scroll-padding-left",o=>`-${M(o)}`),r("-scroll-pl-","scroll-padding-left",o=>o==="px"?"-1px":Ve(o)),r("-scroll-px-[","scroll-padding-inline",o=>`-${M(o)}`),r("-scroll-px-","scroll-padding-inline",o=>o==="px"?"-1px":Ve(o)),r("-scroll-py-[","scroll-padding-block",o=>`-${M(o)}`),r("-scroll-py-","scroll-padding-block",o=>o==="px"?"-1px":Ve(o)),r("font-[","font-weight",M),r("font-family-[","font-family",o=>{let u=M(o);return u.startsWith('"')||u.startsWith("'")?u:`"${u}"`}),r("tracking-[","letter-spacing",M),r("leading-[","line-height",M),r("leading-","line-height",o=>/^\d+$/.test(o)||/^\d*\.\d+$/.test(o)?`calc(var(--1) * ${o})`:null),r("indent-[","text-indent",M),r("indent-","text-indent",o=>`var(--${ht(o)})`),r("-indent-","text-indent",o=>`calc(-1 * var(--${ht(o)}))`),r("align-[","vertical-align",M),r("text-shadow-color-[",null,o=>({"--uni-text-shadow-color":ke(o)})),r("text-shadow-color-",null,o=>({"--uni-text-shadow-color":ke(o)})),r("text-shadow-[","text-shadow",M),r("text-color-[","color",ke),r("text-color-","color",ke),r("text-[","font-size",M),r("text-",null,function(o){if(o.startsWith("color-"))return{color:ke(o.replace("color-",""))};let u=o.match(/^([a-z0-9\[\]\-\.]+)\/([a-z0-9\[\]\-\.]+)$/i);if(u){let[,f,d]=u;if(!f.startsWith("color-"))return{"font-size":t[f]?`var(--${ht(f)})`:`var(--text-${f})`,"line-height":t[d]?`var(--${ht(d)})`:`var(--line-${d})`}}return t[o]?{"font-size":`var(--${ht(o)})`}:{"font-size":`var(--text-${o})`}}),r("decoration-color-[","text-decoration-color",ke),r("decoration-color-","text-decoration-color",ke),r("decoration-thick-[","text-decoration-thickness",M),r("decoration-thick-","text-decoration-thickness",o=>o==="auto"?"auto":o==="from-font"?"from-font":/^\d+$/.test(o)?`${o}px`:`var(--${ht(o)})`),r("underline-offset-[","text-underline-offset",M),r("underline-offset-","text-underline-offset",o=>o==="auto"?"auto":/^\d+$/.test(o)?`${o}px`:`var(--${ht(o)})`),r("-underline-offset-[","text-underline-offset",o=>`-${M(o)}`),r("-underline-offset-","text-underline-offset",o=>/^\d+$/.test(o)?`-${o}px`:`calc(-1 * var(--${ht(o)}))`),r("bg-color-[","background-color",ke),r("bg-color-","background-color",ke),r("bg-image-[","background-image",o=>M(o,"bg-image")),r("bg-position-[","background-position",M),r("bg-size-[","background-size",M),r("bg-gradient-[","background-image",o=>M(o).replace(/color-([a-zA-Z0-9\-]+(?:\/[0-9]+)?)/g,(u,f)=>ke(f))),r("list-image-[","list-style-image",o=>M(o,"list-image")),r("mask-image-[",null,o=>({"mask-image":M(o,"mask-image"),"-webkit-mask-image":M(o,"mask-image")})),r("mask-position-[",null,o=>({"mask-position":M(o),"-webkit-mask-position":M(o)})),r("mask-size-[",null,o=>({"mask-size":M(o),"-webkit-mask-size":M(o)})),r("border-style-",null,o=>({"--uni-border-style":o,"border-style":"var(--uni-border-style)"})),r("border-spacing-x-[",null,o=>({"--uni-border-spacing-x":M(o),"border-spacing":`var(--uni-border-spacing-x, ${M(o)}) var(--uni-border-spacing-y, 0)`})),r("border-spacing-x-",null,o=>({"--uni-border-spacing-x":`${o}px`,"border-spacing":`var(--uni-border-spacing-x, ${o}px) var(--uni-border-spacing-y, 0)`})),r("border-spacing-y-[",null,o=>({"--uni-border-spacing-y":M(o),"border-spacing":`var(--uni-border-spacing-x, 0) var(--uni-border-spacing-y, ${M(o)})`})),r("border-spacing-y-",null,o=>({"--uni-border-spacing-y":`${o}px`,"border-spacing":`var(--uni-border-spacing-x, 0) var(--uni-border-spacing-y, ${o}px)`})),r("border-spacing-[","border-spacing",M),r("border-spacing-","border-spacing",o=>`${o}px`),r("border-color-[","border-color",ke),r("border-color-","border-color",ke),["t","r","b","l","x","y"].forEach(o=>{let u={t:"border-top-color",r:"border-right-color",b:"border-bottom-color",l:"border-left-color",x:"border-inline-color",y:"border-block-color"};r(`border-${o}-color-[`,u[o],ke),r(`border-${o}-color-`,u[o],ke)}),r("border-x-",null,o=>({"border-inline-width":`${o}px`,"border-style":"var(--uni-border-style)"})),r("border-y-",null,o=>({"border-block-width":`${o}px`,"border-style":"var(--uni-border-style)"})),r("border-t-",null,o=>({"border-top-width":`${o}px`,"border-style":"var(--uni-border-style)"})),r("border-r-",null,o=>({"border-right-width":`${o}px`,"border-style":"var(--uni-border-style)"})),r("border-b-",null,o=>({"border-bottom-width":`${o}px`,"border-style":"var(--uni-border-style)"})),r("border-l-",null,o=>({"border-left-width":`${o}px`,"border-style":"var(--uni-border-style)"})),r("border-[",null,o=>({"border-width":M(o),"border-style":"var(--uni-border-style)"})),r("border-",null,o=>/^\d+$/.test(o)||/^\d+(px|rem|em|%)$/.test(o)?{"border-width":`${o}px`,"border-style":"var(--uni-border-style)"}:{});let c=["xs","sm","md","lg","xl","2xl","3xl","4xl","none","full"];return c.forEach(o=>{let u=o==="none"?"0":o==="full"?"999999px":`var(--radius-${o})`;r(`rounded-${o}`,"border-radius",()=>u)}),r("rounded-[","border-radius",M),["t","r","b","l","tl","tr","br","bl"].forEach(o=>{let u={t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-right","bottom-left"],l:["top-left","bottom-left"],tl:["top-left"],tr:["top-right"],br:["bottom-right"],bl:["bottom-left"]};c.forEach(f=>{let d=f==="none"?"0":f==="full"?"999999px":`var(--radius-${f})`,m={};u[o].forEach(S=>{m[`border-${S}-radius`]=d}),r(`rounded-${o}-${f}`,null,()=>m)})}),r("shadow-[","--uni-shadow",M),r("shadow-inset-[","--uni-inset-shadow",M),r("shadow-color-[",null,o=>({"--uni-shadow-color":ke(o)})),r("shadow-color-",null,o=>({"--uni-shadow-color":ke(o)})),r("shadow-inset-color-[",null,o=>({"--uni-inset-shadow-color":ke(o)})),r("shadow-inset-color-",null,o=>({"--uni-inset-shadow-color":ke(o)})),r("ring-inset-color-[","--uni-inset-ring-color",ke),r("ring-inset-color-","--uni-inset-ring-color",ke),r("ring-inset-[","--uni-inset-ring-shadow",o=>`inset 0 0 0 ${M(o)} var(--uni-inset-ring-color, currentColor)`),r("ring-inset-","--uni-inset-ring-shadow",o=>`inset 0 0 0 ${o}px var(--uni-inset-ring-color, currentColor)`),r("ring-inset","--uni-inset-ring-shadow",()=>"inset 0 0 0 1px var(--uni-inset-ring-color, currentColor)"),r("ring-color-[","--uni-ring-color",ke),r("ring-color-","--uni-ring-color",ke),r("ring-[","--uni-ring-shadow",o=>`0 0 0 ${M(o)} var(--uni-ring-color, currentColor)`),r("ring-","--uni-ring-shadow",o=>`0 0 0 ${o}px var(--uni-ring-color, currentColor)`),r("ring","--uni-ring-shadow",()=>"0 0 0 1px var(--uni-ring-color, currentColor)"),r("blur-[","--uni-blur",o=>`blur(${M(o)})`),r("blur-","--uni-blur",o=>`blur(var(--blur-${o}))`),r("brightness-","--uni-brightness",o=>`brightness(${M(o)}%)`),r("contrast-","--uni-contrast",o=>`contrast(${M(o)}%)`),r("drop-shadow-[","--uni-drop-shadow",o=>`drop-shadow(${M(o)})`),r("drop-shadow-color-[",null,o=>({"--uni-drop-shadow-color":ke(o)})),r("drop-shadow-color-",null,o=>({"--uni-drop-shadow-color":ke(o)})),r("grayscale-","--uni-grayscale",o=>`grayscale(${M(o)}%)`),r("grayscale","--uni-grayscale",()=>"grayscale(100%)"),r("hue-rotate-","--uni-hue-rotate",o=>`hue-rotate(${M(o)}deg)`),r("-hue-rotate-","--uni-hue-rotate",o=>`hue-rotate(calc(${M(o)}deg * -1))`),r("invert-","--uni-invert",o=>`invert(${M(o)}%)`),r("invert","--uni-invert",()=>"invert(100%)"),r("saturate-","--uni-saturate",o=>`saturate(${M(o)}%)`),r("sepia-","--uni-sepia",o=>`sepia(${M(o)}%)`),r("sepia","--uni-sepia",()=>"sepia(100%)"),r("backdrop-blur-[","--uni-backdrop-blur",o=>`blur(${M(o)})`),r("backdrop-blur-","--uni-backdrop-blur",o=>`blur(var(--blur-${o}))`),r("backdrop-brightness-","--uni-backdrop-brightness",o=>`brightness(${M(o)}%)`),r("backdrop-contrast-","--uni-backdrop-contrast",o=>`contrast(${M(o)}%)`),r("backdrop-grayscale-","--uni-backdrop-grayscale",o=>`grayscale(${M(o)}%)`),r("backdrop-grayscale","--uni-backdrop-grayscale",()=>"grayscale(100%)"),r("backdrop-hue-rotate-","--uni-backdrop-hue-rotate",o=>`hue-rotate(${M(o)}deg)`),r("-backdrop-hue-rotate-","--uni-backdrop-hue-rotate",o=>`hue-rotate(calc(${M(o)}deg * -1))`),r("backdrop-invert-","--uni-backdrop-invert",o=>`invert(${M(o)}%)`),r("backdrop-invert","--uni-backdrop-invert",()=>"invert(100%)"),r("backdrop-opacity-","--uni-backdrop-opacity",o=>`opacity(${M(o)}%)`),r("backdrop-saturate-","--uni-backdrop-saturate",o=>`saturate(${M(o)}%)`),r("backdrop-sepia-","--uni-backdrop-sepia",o=>`sepia(${M(o)}%)`),r("backdrop-sepia","--uni-backdrop-sepia",()=>"sepia(100%)"),r("opacity-","opacity",function(o){if(/^\d+$/.test(o)){let u=parseInt(o,10);if(u>=0&&u<=100)return(u/100).toString()}return M(o)}),r("duration-",null,o=>({"--uni-transition-duration":`${M(o)}ms`,"transition-duration":"var(--uni-transition-duration, 150ms)"})),r("ease-[",null,o=>({"--uni-transition-timing-function":M(o),"transition-timing-function":"var(--uni-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1))"})),r("delay-",null,o=>({"--uni-transition-delay":`${M(o)}ms`,"transition-delay":"var(--uni-transition-delay, 0ms)"})),r("transition-",null,o=>{let u=M(o);return u==="colors"?u="color, background-color, border-color, text-decoration-color, fill, stroke":u==="opacity"?u="opacity":u==="shadow"?u="box-shadow":u==="transform"?u="transform":u==="all"?u="all":u==="none"&&(u="none"),{"--uni-transition-property":u,"transition-property":"var(--uni-transition-property, all)","transition-duration":"var(--uni-transition-duration, 150ms)","transition-timing-function":"var(--uni-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1))"}}),r("transition",null,()=>({"--uni-transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter","transition-property":"var(--uni-transition-property, all)","transition-duration":"var(--uni-transition-duration, 150ms)","transition-timing-function":"var(--uni-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1))"})),r("animate-[","animation",M),r("animate-spin","animation",()=>"var(--animate-spin)"),r("animate-ping","animation",()=>"var(--animate-ping)"),r("animate-pulse","animation",()=>"var(--animate-pulse)"),r("animate-bounce","animation",()=>"var(--animate-bounce)"),r("animate-none","animation",()=>"none"),r("iteration-","animation-iteration-count",M),r("will-change-[","will-change",M),r("perspective-origin-[","perspective-origin",M),r("perspective-[","perspective",M),r("rotate-[","rotate",M),r("rotate-x-","--uni-rotate-x",o=>`rotateX(${o}deg)`),r("rotate-y-","--uni-rotate-y",o=>`rotateY(${o}deg)`),r("rotate-z-","--uni-rotate-z",o=>`rotateZ(${o}deg)`),r("-rotate-x-","--uni-rotate-x",o=>`rotateX(calc(${o}deg * -1))`),r("-rotate-y-","--uni-rotate-y",o=>`rotateY(calc(${o}deg * -1))`),r("-rotate-z-","--uni-rotate-z",o=>`rotateZ(calc(${o}deg * -1))`),r("rotate-","rotate",o=>`${M(o)}deg`),r("-rotate-","rotate",o=>`calc(${M(o)}deg * -1)`),r("scale-x-","--uni-scale-x",o=>`${o}%`),r("scale-y-","--uni-scale-y",o=>`${o}%`),r("-scale-x-","--uni-scale-x",o=>`calc(${o}% * -1)`),r("-scale-y-","--uni-scale-y",o=>`calc(${o}% * -1)`),r("scale-","scale",o=>`${M(o)}%`),r("-scale-","scale",o=>`calc(${M(o)}% * -1)`),r("skew-x-","--uni-skew-x",o=>`skewX(${o}deg)`),r("skew-y-","--uni-skew-y",o=>`skewY(${o}deg)`),r("-skew-x-","--uni-skew-x",o=>`skewX(calc(${o}deg * -1))`),r("-skew-y-","--uni-skew-y",o=>`skewY(calc(${o}deg * -1))`),r("skew-","transform",o=>`skewX(${o}deg) skewY(${o}deg)`),r("-skew-","transform",o=>`skewX(-${o}deg) skewY(-${o}deg)`),r("origin-[","transform-origin",M),r("translate-[","translate",M),r("translate-x-[","--uni-translate-x",M),r("translate-y-[","--uni-translate-y",M),r("translate-x-","--uni-translate-x",Tt),r("translate-y-","--uni-translate-y",Tt),r("translate-z-","--uni-translate-z",Tt),r("-translate-x-","--uni-translate-x",Ve),r("-translate-y-","--uni-translate-y",Ve),r("-translate-z-","--uni-translate-z",Ve),r("translate-","translate",mG),r("-translate-","translate",yG),r("grid-columns-[","grid-template-columns",M),r("grid-columns-","grid-template-columns",o=>/^\d+$/.test(o)?`repeat(${o}, minmax(0, 1fr))`:o),r("col-start-","grid-column-start",M),r("-col-start-","grid-column-start",o=>`calc(${M(o)} * -1)`),r("col-end-","grid-column-end",M),r("-col-end-","grid-column-end",o=>`calc(${M(o)} * -1)`),r("col-span-","grid-column",o=>o==="full"?"1 / -1":`span ${M(o)} / span ${M(o)}`),r("col-[","grid-column",M),r("grid-rows-[","grid-template-rows",M),r("grid-rows-","grid-template-rows",o=>/^\d+$/.test(o)?`repeat(${o}, minmax(0, 1fr))`:o),r("row-start-","grid-row-start",M),r("-row-start-","grid-row-start",o=>`calc(${M(o)} * -1)`),r("row-end-","grid-row-end",M),r("-row-end-","grid-row-end",o=>`calc(${M(o)} * -1)`),r("row-span-","grid-row",o=>o==="full"?"1 / -1":`span ${M(o)} / span ${M(o)}`),r("row-[","grid-row",M),r("auto-columns-[","grid-auto-columns",M),r("auto-rows-[","grid-auto-rows",M),r("space-x-[","margin-right",M),r("space-x-","margin-right",o=>o==="px"?"1px":/^\d+\/\d+$/.test(o)?o.replace(/^(\d+)\/(\d+)$/,(u,f,d)=>`${parseInt(f,10)/parseInt(d,10)*100}%`):/^\d+(\.\d+)?$/.test(o)?`calc(0.25rem * ${o})`:`var(--${ht(o)})`),r("-space-x-[","margin-right",o=>`calc(${M(o)} * -1)`),r("-space-x-","margin-right",o=>o==="px"?"-1px":/^\d+\/\d+$/.test(o)?`-${o.replace(/^(\d+)\/(\d+)$/,(u,f,d)=>`${parseInt(f,10)/parseInt(d,10)*100}%`)}`:/^\d+(\.\d+)?$/.test(o)?`calc(-0.25rem * ${o})`:`calc(var(--${ht(o)}) * -1)`),r("space-y-[","margin-bottom",M),r("space-y-","margin-bottom",o=>o==="px"?"1px":/^\d+\/\d+$/.test(o)?o.replace(/^(\d+)\/(\d+)$/,(u,f,d)=>`${parseInt(f,10)/parseInt(d,10)*100}%`):/^\d+(\.\d+)?$/.test(o)?`calc(0.25rem * ${o})`:`var(--${ht(o)})`),r("-space-y-[","margin-bottom",o=>`calc(${M(o)} * -1)`),r("-space-y-","margin-bottom",o=>o==="px"?"-1px":/^\d+\/\d+$/.test(o)?`-${o.replace(/^(\d+)\/(\d+)$/,(u,f,d)=>`${parseInt(f,10)/parseInt(d,10)*100}%`)}`:/^\d+(\.\d+)?$/.test(o)?`calc(-0.25rem * ${o})`:`calc(var(--${ht(o)}) * -1)`),r("divide-x-[",null,o=>({"border-right-width":M(o),"border-right-style":"solid"})),r("divide-x-",null,o=>/^\d+$/.test(o)?{"border-right-width":`${o}px`,"border-right-style":"solid"}:{"border-right-width":o,"border-right-style":"solid"}),r("divide-x",null,()=>({"border-right-width":"1px","border-right-style":"solid"})),r("divide-y-[",null,o=>({"border-bottom-width":M(o),"border-bottom-style":"solid"})),r("divide-y-",null,o=>/^\d+$/.test(o)?{"border-bottom-width":`${o}px`,"border-bottom-style":"solid"}:{"border-bottom-width":o,"border-bottom-style":"solid"}),r("divide-y",null,()=>({"border-bottom-width":"1px","border-bottom-style":"solid"})),r("divide-style-","border-style",o=>o),r("divide-color-[","border-color",ke),r("divide-color-","border-color",ke),r("columns-","columns",o=>/^\d+$/.test(o)?o:["3xs","2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"].includes(o)?`var(--container-${o})`:M(o)),r("scrollbar-[","scrollbar-color",o=>M(o).replace(/color-([a-zA-Z0-9\-]+)/g,(u,f)=>`var(--color-${f})`)),r("object-[","object-position",M),r("caret-color-[","caret-color",ke),r("caret-color-","caret-color",ke),r("accent-color-[","accent-color",ke),r("accent-color-","accent-color",ke),r("outline-offset-[","outline-offset",M),r("outline-style-",null,o=>({"--uni-outline-style":o,"outline-style":"var(--uni-outline-style)"})),r("outline-color-[","outline-color",ke),r("outline-color-","outline-color",ke),r("outline-[",null,o=>({"outline-width":M(o),"outline-style":"var(--uni-outline-style)"})),r("outline-offset-","outline-offset",o=>`${o}px`),r("-outline-offset-","outline-offset",o=>`-${o}px`),r("outline-",null,o=>o.startsWith("offset")?{}:{"outline-width":/^\d+$/.test(o)?`${o}px`:o,"outline-style":"var(--uni-outline-style)"}),r("fill-color-[","fill",ke),r("fill-color-","fill",ke),r("stroke-color-[","stroke",ke),r("stroke-color-","stroke",ke),r("stroke-[","stroke-width",M),r("stroke-","stroke-width",o=>/^\d+$/.test(o)?`${o}px`:M(o)),r("content-[","content",o=>{let u=M(o);return u.startsWith("'")||u.startsWith('"')?u:`"${u}"`}),r("line-clamp-",null,o=>({overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.replace("/","")})),r("line-clamp-none",null,()=>({overflow:"visible",display:"block","-webkit-box-orient":"horizontal","-webkit-line-clamp":"unset"})),r("truncate",null,()=>({overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"})),r("sr-only",null,()=>({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap","border-width":"0"})),r("not-sr-only",null,()=>({position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"})),i},bG=()=>`
56
+ `;return this.replaceWith(o)[0].get("arguments.0")}function SX(t){let e=t.params.findIndex(i=>QJ(i)||ZJ(i));return e===-1?t.params.length:e}});var Ux=_(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct._guessExecutionStatusRelativeTo=UX;ct._resolve=qx;ct.canHaveVariableDeclarationOrExpression=LX;ct.canSwapBetweenExpressionAndStatement=MX;ct.getSource=RX;ct.isCompletionRecord=FX;ct.isConstantExpression=YX;ct.isInStrictMode=zX;ct.isNodeType=DX;ct.isStatementOrBlock=BX;ct.isStatic=NX;ct.matchesPattern=OX;ct.referencesImport=jX;ct.resolve=WX;ct.willIMaybeExecuteBefore=$X;var EX=be(),{STATEMENT_OR_BLOCK_KEYS:PX,VISITOR_KEYS:vX,isBlockStatement:$x,isExpression:AX,isIdentifier:wX,isLiteral:CX,isStringLiteral:IX,isType:kX,matchesPattern:_X}=EX;function OX(t,e){return _X(this.node,t,e)}ct.has=function(e){var i;let r=(i=this.node)==null?void 0:i[e];return r&&Array.isArray(r)?!!r.length:!!r};function NX(){return this.scope.isStatic(this.node)}ct.is=ct.has,ct.isnt=function(e){return!this.has(e)},ct.equals=function(e,i){return this.node[e]===i};function DX(t){return kX(this.type,t)}function LX(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function MX(t){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?$x(t):this.isBlockStatement()?AX(t):!1}function FX(t){let e=this,i=!0;do{let{type:r,container:s}=e;if(!i&&(e.isFunction()||r==="StaticBlock"))return!!t;if(i=!1,Array.isArray(s)&&e.key!==s.length-1)return!1}while((e=e.parentPath)&&!e.isProgram()&&!e.isDoExpression());return!0}function BX(){return this.parentPath.isLabeledStatement()||$x(this.container)?!1:PX.includes(this.key)}function jX(t,e){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===e||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?IX(this.node.property,{value:e}):this.node.property.name===e)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(t,"*")}return!1}let i=this.scope.getBinding(this.node.name);if(!i||i.kind!=="module")return!1;let r=i.path,s=r.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===t){if(!e)return!0}else return!1;return!!(r.isImportDefaultSpecifier()&&e==="default"||r.isImportNamespaceSpecifier()&&e==="*"||r.isImportSpecifier()&&wX(r.node.imported,{name:e}))}function RX(){let t=this.node;if(t.end){let e=this.hub.getCode();if(e)return e.slice(t.start,t.end)}return""}function $X(t){return this._guessExecutionStatusRelativeTo(t)!=="after"}function Bx(t){return t.isProgram()?t:(t.parentPath.scope.getFunctionParent()||t.parentPath.scope.getProgramParent()).path}function qX(t,e){switch(t){case"LogicalExpression":return e==="right";case"ConditionalExpression":case"IfStatement":return e==="consequent"||e==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return e==="body";case"ForStatement":return e==="body"||e==="update";case"SwitchStatement":return e==="cases";case"TryStatement":return e==="handler";case"AssignmentPattern":return e==="right";case"OptionalMemberExpression":return e==="property";case"OptionalCallExpression":return e==="arguments";default:return!1}}function jx(t,e){for(let i=0;i<e;i++){let r=t[i];if(qX(r.parent.type,r.parentKey))return!0}return!1}var Rx=Symbol();function UX(t){return lh(this,t,new Map)}function lh(t,e,i){let r={this:Bx(t),target:Bx(e)};if(r.target.node!==r.this.node)return VX(t,r.target,i);let s={target:e.getAncestry(),this:t.getAncestry()};if(s.target.includes(t))return"after";if(s.this.includes(e))return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let u=s.this[a.this];a.target=s.target.indexOf(u),a.target>=0?n=u:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(jx(s.this,a.this-1)||jx(s.target,a.target-1))return"unknown";let l={this:s.this[a.this-1],target:s.target[a.target-1]};if(l.target.listKey&&l.this.listKey&&l.target.container===l.this.container)return l.target.key>l.this.key?"before":"after";let c=vX[n.type],o={this:c.indexOf(l.this.parentKey),target:c.indexOf(l.target.parentKey)};return o.target>o.this?"before":"after"}function KX(t,e,i){if(e.isFunctionDeclaration()){if(e.parentPath.isExportDeclaration())return"unknown"}else return lh(t,e,i)==="before"?"before":"unknown";let r=e.scope.getBinding(e.node.id.name);if(!r.references)return"before";let s=r.referencePaths,n;for(let a of s){if(!!a.find(o=>o.node===e.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let c=lh(t,a,i);if(n&&n!==c)return"unknown";n=c}return n}function VX(t,e,i){let r=i.get(t.node),s;if(!r)i.set(t.node,r=new Map);else if(s=r.get(e.node))return s===Rx?"unknown":s;r.set(e.node,Rx);let n=KX(t,e,i);return r.set(e.node,n),n}function WX(t,e){return qx.call(this,t,e)||this}function qx(t,e){var i;if(!((i=e)!=null&&i.includes(this)))if(e=e||[],e.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(t,e)}else if(this.isReferencedIdentifier()){let r=this.scope.getBinding(this.node.name);if(!r||!r.constant||r.kind==="module")return;if(r.path!==this){let s=r.path.resolve(t,e);return this.find(n=>n.node===s.node)?void 0:s}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(t,e);if(t&&this.isMemberExpression()){let r=this.toComputedKey();if(!CX(r))return;let s=r.value,n=this.get("object").resolve(t,e);if(n.isObjectExpression()){let a=n.get("properties");for(let l of a){if(!l.isProperty())continue;let c=l.get("key"),o=l.isnt("computed")&&c.isIdentifier({name:s});if(o=o||c.isLiteral({value:s}),o)return l.get("value").resolve(t,e)}}else if(n.isArrayExpression()&&!isNaN(+s)){let l=n.get("elements")[s];if(l)return l.resolve(t,e)}}}}function YX(){if(this.isIdentifier()){let t=this.scope.getBinding(this.node.name);return t?t.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(t=>t.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:t}=this.node;return t!=="in"&&t!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function zX(){return!!(this.isProgram()?this:this.parentPath).find(i=>{if(i.isProgram({sourceType:"module"})||i.isClass())return!0;if(i.isArrowFunctionExpression()&&!i.get("body").isBlockStatement())return!1;let r;if(i.isFunction())r=i.node.body;else if(i.isProgram())r=i.node;else return!1;for(let s of r.directives)if(s.value.value==="use strict")return!0})}});var zx=_(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt._getKey=Wx;wt._getPattern=Yx;wt.get=uH;wt.getAllNextSiblings=lH;wt.getAllPrevSiblings=cH;wt.getAssignmentIdentifiers=pH;wt.getBindingIdentifierPaths=dH;wt.getBindingIdentifiers=fH;wt.getCompletionRecords=sH;wt.getNextSibling=oH;wt.getOpposite=tH;wt.getOuterBindingIdentifierPaths=mH;wt.getOuterBindingIdentifiers=hH;wt.getPrevSibling=aH;wt.getSibling=nH;var uh=Ji(),JX=be(),{getAssignmentIdentifiers:XX,getBindingIdentifiers:Vx,getOuterBindingIdentifiers:HX,numericLiteral:GX,unaryExpression:QX}=JX,ph=0,Kn=1;function ZX(t){return{type:ph,path:t}}function eH(t){return{type:Kn,path:t}}function tH(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function _s(t,e,i){return t&&e.push(...Os(t,i)),e}function iH(t,e,i){let r=[];for(let s=0;s<t.length;s++){let n=t[s],a=Os(n,i),l=[],c=[];for(let o of a)o.type===ph&&l.push(o),o.type===Kn&&c.push(o);l.length&&(r=l),e.push(...c)}return e.push(...r),e}function rH(t){t.forEach(e=>{e.type=Kn})}function ch(t,e){t.forEach(i=>{i.path.isBreakStatement({label:null})&&(e?i.path.replaceWith(QX("void",GX(0))):i.path.remove())})}function Kx(t,e){let i=[];if(e.canHaveBreak){let r=[];for(let s=0;s<t.length;s++){let n=t[s],a=Object.assign({},e,{inCaseClause:!1});n.isBlockStatement()&&(e.inCaseClause||e.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let l=Os(n,a);if(l.length>0&&l.every(c=>c.type===Kn)){r.length>0&&l.every(c=>c.path.isBreakStatement({label:null}))?(rH(r),i.push(...r),r.some(c=>c.path.isDeclaration())&&(i.push(...l),e.shouldPreserveBreak||ch(l,!0)),e.shouldPreserveBreak||ch(l,!1)):(i.push(...l),!e.shouldPopulateBreak&&!e.shouldPreserveBreak&&ch(l,!0));break}if(s===t.length-1)i.push(...l);else{r=[];for(let c=0;c<l.length;c++){let o=l[c];o.type===Kn&&i.push(o),o.type===ph&&r.push(o)}}}}else if(t.length)for(let r=t.length-1;r>=0;r--){let s=Os(t[r],e);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()&&!s[0].path.isEmptyStatement()){i.push(...s);break}}return i}function Os(t,e){let i=[];if(t.isIfStatement())i=_s(t.get("consequent"),i,e),i=_s(t.get("alternate"),i,e);else{if(t.isDoExpression()||t.isFor()||t.isWhile()||t.isLabeledStatement())return _s(t.get("body"),i,e);if(t.isProgram()||t.isBlockStatement())return Kx(t.get("body"),e);if(t.isFunction())return Os(t.get("body"),e);if(t.isTryStatement())i=_s(t.get("block"),i,e),i=_s(t.get("handler"),i,e);else{if(t.isCatchClause())return _s(t.get("body"),i,e);if(t.isSwitchStatement())return iH(t.get("cases"),i,e);if(t.isSwitchCase())return Kx(t.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:e.shouldPreserveBreak});t.isBreakStatement()?i.push(eH(t)):i.push(ZX(t))}}return i}function sH(t=!1){return Os(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:t}).map(i=>i.path)}function nH(t){return uh.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:t}).setContext(this.context)}function aH(){return this.getSibling(this.key-1)}function oH(){return this.getSibling(this.key+1)}function lH(){let t=this.key,e=this.getSibling(++t),i=[];for(;e.node;)i.push(e),e=this.getSibling(++t);return i}function cH(){let t=this.key,e=this.getSibling(--t),i=[];for(;e.node;)i.push(e),e=this.getSibling(--t);return i}function uH(t,e=!0){e===!0&&(e=this.context);let i=t.split(".");return i.length===1?Wx.call(this,t,e):Yx.call(this,i,e)}function Wx(t,e){let i=this.node,r=i[t];return Array.isArray(r)?r.map((s,n)=>uh.default.get({listKey:t,parentPath:this,parent:i,container:r,key:n}).setContext(e)):uh.default.get({parentPath:this,parent:i,container:i,key:t}).setContext(e)}function Yx(t,e){let i=this;for(let r of t)r==="."?i=i.parentPath:Array.isArray(i)?i=i[r]:i=i.get(r,e);return i}function pH(){return XX(this.node)}function fH(t){return Vx(this.node,t)}function hH(t){return HX(this.node,t)}function dH(t=!1,e=!1){let r=[this],s=Object.create(null);for(;r.length;){let n=r.shift();if(!n||!n.node)continue;let a=Vx.keys[n.node.type];if(n.isIdentifier()){t?(s[n.node.name]=s[n.node.name]||[]).push(n):s[n.node.name]=n;continue}if(n.isExportDeclaration()){let l=n.get("declaration");l.isDeclaration()&&r.push(l);continue}if(e){if(n.isFunctionDeclaration()){r.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let l=0;l<a.length;l++){let c=a[l],o=n.get(c);Array.isArray(o)?r.push(...o):o.node&&r.push(o)}}return s}function mH(t=!1){return this.getBindingIdentifierPaths(t,!0)}});var Xx=_(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.addComment=bH;Vn.addComments=SH;Vn.shareCommentsWithSiblings=xH;var yH=be(),{addComment:TH,addComments:gH}=yH;function xH(){if(typeof this.key=="string")return;let t=this.node;if(!t)return;let e=t.trailingComments,i=t.leadingComments;if(!e&&!i)return;let r=this.getSibling(this.key-1),s=this.getSibling(this.key+1),n=!!r.node,a=!!s.node;n&&(i&&r.addComments("trailing",Jx(i,r.node.trailingComments)),e&&!a&&r.addComments("trailing",e)),a&&(e&&s.addComments("leading",Jx(e,s.node.leadingComments)),i&&!n&&s.addComments("leading",i))}function Jx(t,e){if(!(e!=null&&e.length))return t;let i=new Set(e);return t.filter(r=>!i.has(r))}function bH(t,e,i){TH(this.node,t,e,i)}function SH(t,e){gH(this.node,t,e)}});var Ji=_(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.default=Mi.SHOULD_STOP=Mi.SHOULD_SKIP=Mi.REMOVED=void 0;var EH=Pc(),PH=xm(),vH=_n(),AH=$p(),Qx=be(),Qo=Qx,wH=jr(),CH=cg(),Di=ug(),Ns=_g(),Ds=Mf(),Hx=mx(),zr=Fx(),ft=Ux(),Zx=Ti(),ut=Zx,Ls=Ko(),Li=Vo(),Ut=zx(),fh=Xx(),IH=Dp(),{validate:kH}=Qx,Gx=PH("babel"),_oe=Mi.REMOVED=1,Ooe=Mi.SHOULD_STOP=2,Noe=Mi.SHOULD_SKIP=4,Hi=Mi.default=class eb{constructor(e,i){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=i,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:e,parentPath:i,parent:r,container:s,listKey:n,key:a}){if(!e&&i&&(e=i.hub),!r)throw new Error("To get a node path the parent needs to exist");let l=s[a],c=wH.getOrCreateCachedPaths(r,i),o=c.get(l);return o||(o=new eb(e,r),l&&c.set(l,o)),Zx.setup.call(o,i,s,n,a),o}getScope(e){return this.isScope()?new AH.default(this):e}setData(e,i){return this.data==null&&(this.data=Object.create(null)),this.data[e]=i}getData(e,i){this.data==null&&(this.data=Object.create(null));let r=this.data[e];return r===void 0&&i!==void 0&&(r=this.data[e]=i),r}hasNode(){return this.node!=null}buildCodeFrameError(e,i=SyntaxError){return this.hub.buildError(this.node,e,i)}traverse(e,i){(0,vH.default)(this.node,e,this.scope,i,this)}set(e,i){kH(this.node,e,i),this.node[e]=i}getPathLocation(){let e=[],i=this;do{let r=i.key;i.inList&&(r=`${i.listKey}[${r}]`),e.unshift(r)}while(i=i.parentPath);return e.join(".")}debug(e){Gx.enabled&&Gx(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,CH.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},_H={findParent:Di.findParent,find:Di.find,getFunctionParent:Di.getFunctionParent,getStatementParent:Di.getStatementParent,getEarliestCommonAncestorFrom:Di.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:Di.getDeepestCommonAncestorFrom,getAncestry:Di.getAncestry,isAncestor:Di.isAncestor,isDescendant:Di.isDescendant,inType:Di.inType,getTypeAnnotation:Ns.getTypeAnnotation,isBaseType:Ns.isBaseType,couldBeBaseType:Ns.couldBeBaseType,baseTypeStrictlyMatches:Ns.baseTypeStrictlyMatches,isGenericType:Ns.isGenericType,replaceWithMultiple:Ds.replaceWithMultiple,replaceWithSourceString:Ds.replaceWithSourceString,replaceWith:Ds.replaceWith,replaceExpressionWithStatements:Ds.replaceExpressionWithStatements,replaceInline:Ds.replaceInline,evaluateTruthy:Hx.evaluateTruthy,evaluate:Hx.evaluate,toComputedKey:zr.toComputedKey,ensureBlock:zr.ensureBlock,unwrapFunctionEnvironment:zr.unwrapFunctionEnvironment,arrowFunctionToExpression:zr.arrowFunctionToExpression,splitExportDeclaration:zr.splitExportDeclaration,ensureFunctionName:zr.ensureFunctionName,matchesPattern:ft.matchesPattern,isStatic:ft.isStatic,isNodeType:ft.isNodeType,canHaveVariableDeclarationOrExpression:ft.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:ft.canSwapBetweenExpressionAndStatement,isCompletionRecord:ft.isCompletionRecord,isStatementOrBlock:ft.isStatementOrBlock,referencesImport:ft.referencesImport,getSource:ft.getSource,willIMaybeExecuteBefore:ft.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:ft._guessExecutionStatusRelativeTo,resolve:ft.resolve,isConstantExpression:ft.isConstantExpression,isInStrictMode:ft.isInStrictMode,isDenylisted:ut.isDenylisted,visit:ut.visit,skip:ut.skip,skipKey:ut.skipKey,stop:ut.stop,setContext:ut.setContext,requeue:ut.requeue,requeueComputedKeyAndDecorators:ut.requeueComputedKeyAndDecorators,remove:Ls.remove,insertBefore:Li.insertBefore,insertAfter:Li.insertAfter,unshiftContainer:Li.unshiftContainer,pushContainer:Li.pushContainer,getOpposite:Ut.getOpposite,getCompletionRecords:Ut.getCompletionRecords,getSibling:Ut.getSibling,getPrevSibling:Ut.getPrevSibling,getNextSibling:Ut.getNextSibling,getAllNextSiblings:Ut.getAllNextSiblings,getAllPrevSiblings:Ut.getAllPrevSiblings,get:Ut.get,getAssignmentIdentifiers:Ut.getAssignmentIdentifiers,getBindingIdentifiers:Ut.getBindingIdentifiers,getOuterBindingIdentifiers:Ut.getOuterBindingIdentifiers,getBindingIdentifierPaths:Ut.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:Ut.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:fh.shareCommentsWithSiblings,addComment:fh.addComment,addComments:fh.addComments};Object.assign(Hi.prototype,_H);Hi.prototype.arrowFunctionToShadowed=zr.arrowFunctionToShadowed,Object.assign(Hi.prototype,{has:ft.has,is:ft.is,isnt:ft.isnt,equals:ft.equals,hoist:Li.hoist,updateSiblingKeys:Li.updateSiblingKeys,call:ut.call,isBlacklisted:ut.isBlacklisted,setScope:ut.setScope,resync:ut.resync,popContext:ut.popContext,pushContext:ut.pushContext,setup:ut.setup,setKey:ut.setKey});Hi.prototype._guessExecutionStatusRelativeToDifferentFunctions=ft._guessExecutionStatusRelativeTo,Hi.prototype._guessExecutionStatusRelativeToDifferentFunctions=ft._guessExecutionStatusRelativeTo,Object.assign(Hi.prototype,{_getTypeAnnotation:Ns._getTypeAnnotation,_replaceWith:Ds._replaceWith,_resolve:ft._resolve,_call:ut._call,_resyncParent:ut._resyncParent,_resyncKey:ut._resyncKey,_resyncList:ut._resyncList,_resyncRemoved:ut._resyncRemoved,_getQueueContexts:ut._getQueueContexts,_removeFromScope:Ls._removeFromScope,_callRemovalHooks:Ls._callRemovalHooks,_remove:Ls._remove,_markRemoved:Ls._markRemoved,_assertUnremoved:Ls._assertUnremoved,_containerInsert:Li._containerInsert,_containerInsertBefore:Li._containerInsertBefore,_containerInsertAfter:Li._containerInsertAfter,_verifyNodeList:Li._verifyNodeList,_getKey:Ut._getKey,_getPattern:Ut._getPattern});for(let t of Qo.TYPES){let e=`is${t}`,i=Qo[e];Hi.prototype[e]=function(r){return i(this.node,r)},Hi.prototype[`assert${t}`]=function(r){if(!i(this.node,r))throw new TypeError(`Expected node path of type ${t}`)}}Object.assign(Hi.prototype,IH);for(let t of Object.keys(EH))t[0]!=="_"&&(Qo.TYPES.includes(t)||Qo.TYPES.push(t))});var tb=_(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.default=void 0;var OH=Ji(),NH=be(),hh=Ti(),{VISITOR_KEYS:DH}=NH,dh=class{constructor(e,i,r,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=e,this.state=r,this.opts=i}shouldVisit(e){let i=this.opts;if(i.enter||i.exit||i[e.type])return!0;let r=DH[e.type];if(!(r!=null&&r.length))return!1;for(let s of r)if(e[s])return!0;return!1}create(e,i,r,s){return OH.default.get({parentPath:this.parentPath,parent:e,container:i,key:r,listKey:s})}maybeQueue(e,i){this.queue&&(i?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,i,r){if(e.length===0)return!1;let s=[];for(let n=0;n<e.length;n++){let a=e[n];a&&this.shouldVisit(a)&&s.push(this.create(i,e,n,r))}return this.visitQueue(s)}visitSingle(e,i){return this.shouldVisit(e[i])?this.visitQueue([this.create(e,e,i)]):!1}visitQueue(e){this.queue=e,this.priorityQueue=[];let i=new WeakSet,r=!1,s=0;for(;s<e.length;){let n=e[s];if(s++,hh.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&hh.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!i.has(a)){if(a&&i.add(a),n.visit()){r=!0;break}if(this.priorityQueue.length&&(r=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,r))break}}for(let n=0;n<s;n++)hh.popContext.call(e[n]);return this.queue=null,r}visit(e,i){let r=e[i];return r?Array.isArray(r)?this.visitMultiple(r,e,i):this.visitSingle(e,i):!1}};Zo.default=dh});var To=_(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.traverseNode=BH;var LH=tb(),Moe=Ji(),MH=be(),Foe=Ti(),{VISITOR_KEYS:FH}=MH;function BH(t,e,i,r,s,n,a){let l=FH[t.type];if(!l)return!1;let c=new LH.default(i,e,r,s);if(a)return n!=null&&n[s.parentKey]?!1:c.visitQueue([s]);for(let o of l)if(!(n!=null&&n[o])&&c.visit(t,o))return!0;return!1}});var Ti=_(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt._call=Th;nt._getQueueContexts=ZH;nt._resyncKey=ob;nt._resyncList=lb;nt._resyncParent=ab;nt._resyncRemoved=zH;nt.call=yh;nt.isDenylisted=sb;nt.popContext=JH;nt.pushContext=XH;nt.requeue=GH;nt.requeueComputedKeyAndDecorators=QH;nt.resync=YH;nt.setContext=WH;nt.setKey=el;nt.setScope=nb;nt.setup=HH;nt.skip=UH;nt.skipKey=KH;nt.stop=VH;nt.visit=qH;var jH=To(),ib=Ji(),RH=Ko(),$H=be();function yh(t){let e=this.opts;if(this.debug(t),this.node&&Th.call(this,e[t]))return!0;if(this.node){var i;return Th.call(this,(i=e[this.node.type])==null?void 0:i[t])}return!1}function Th(t){if(!t)return!1;for(let e of t){if(!e)continue;let i=this.node;if(!i)return!0;let r=e.call(this.state,this,this.state);if(r&&typeof r=="object"&&typeof r.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(r)throw new Error(`Unexpected return value from visitor method ${e}`);if(this.node!==i||this._traverseFlags>0)return!0}return!1}function sb(){var t;let e=(t=this.opts.denylist)!=null?t:this.opts.blacklist;return e?.includes(this.node.type)}nt.isBlacklisted=sb;function rb(t,e){t.context!==e&&(t.context=e,t.state=e.state,t.opts=e.opts)}function qH(){var t,e;if(!this.node||this.isDenylisted()||(t=(e=this.opts).shouldSkip)!=null&&t.call(e,this))return!1;let i=this.context;return this.shouldSkip||yh.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(rb(this,i),this.debug("Recursing into..."),this.shouldStop=(0,jH.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),rb(this,i),yh.call(this,"exit"),this.shouldStop)}function UH(){this.shouldSkip=!0}function KH(t){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[t]=!0}function VH(){this._traverseFlags|=ib.SHOULD_SKIP|ib.SHOULD_STOP}function nb(){var t,e;if((t=this.opts)!=null&&t.noScope)return;let i=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&i.isMethod()||this.key==="discriminant"&&i.isSwitchStatement())&&(i=i.parentPath);let r;for(;i&&!r;){var s;if((s=i.opts)!=null&&s.noScope)return;r=i.scope,i=i.parentPath}this.scope=this.getScope(r),(e=this.scope)==null||e.init()}function WH(t){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,t&&(this.context=t,this.state=t.state,this.opts=t.opts),nb.call(this),this}function YH(){this.removed||(ab.call(this),lb.call(this),ob.call(this))}function ab(){this.parentPath&&(this.parent=this.parentPath.node)}function ob(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let t=0;t<this.container.length;t++)if(this.container[t]===this.node){el.call(this,t);return}}else for(let t of Object.keys(this.container))if(this.container[t]===this.node){el.call(this,t);return}this.key=null}}function lb(){if(!this.parent||!this.inList)return;let t=this.parent[this.listKey];this.container!==t&&(this.container=t||null)}function zH(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&RH._markRemoved.call(this)}function JH(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function XH(t){this.contexts.push(t),this.setContext(t)}function HH(t,e,i,r){this.listKey=i,this.container=e,this.parentPath=t||this.parentPath,el.call(this,r)}function el(t){var e;this.key=t,this.node=this.container[this.key],this.type=(e=this.node)==null?void 0:e.type}function GH(t=this){if(t.removed)return;let e=this.contexts;for(let i of e)i.maybeQueue(t)}function QH(){let{context:t,node:e}=this;if(!$H.isPrivate(e)&&e.computed&&t.maybeQueue(this.get("key")),e.decorators)for(let i of this.get("decorators"))t.maybeQueue(i)}function ZH(){let t=this,e=this.contexts;for(;!e.length&&(t=t.parentPath,!!t);)e=t.contexts;return e}});var cb=_(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.default=void 0;var gh=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,i,r=TypeError){return new r(i)}};tl.default=gh});var _n=_(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Object.defineProperty(Gi,"Hub",{enumerable:!0,get:function(){return sG.default}});Object.defineProperty(Gi,"NodePath",{enumerable:!0,get:function(){return iG.default}});Object.defineProperty(Gi,"Scope",{enumerable:!0,get:function(){return rG.default}});Gi.visitors=Gi.default=void 0;Ti();var Yn=ho();Gi.visitors=Yn;var eG=be(),tG=jr(),ub=To(),iG=Ji(),rG=$p(),sG=cb(),{VISITOR_KEYS:nG,removeProperties:aG,traverseFast:Wn}=eG;function Si(t,e={},i,r,s,n){if(t){if(!e.noScope&&!i&&t.type!=="Program"&&t.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${t.type} node without passing scope and parentPath.`);if(!s&&n)throw new Error("visitSelf can only be used when providing a NodePath.");nG[t.type]&&(Yn.explode(e),(0,ub.traverseNode)(t,e,i,r,s,null,n))}}var $oe=Gi.default=Si;Si.visitors=Yn;Si.verify=Yn.verify;Si.explode=Yn.explode;Si.cheap=function(t,e){Wn(t,e)};Si.node=function(t,e,i,r,s,n){(0,ub.traverseNode)(t,e,i,r,s,n)};Si.clearNode=function(t,e){aG(t,e)};Si.removeProperties=function(t,e){return Wn(t,Si.clearNode,e),t};Si.hasType=function(t,e,i){return i!=null&&i.includes(t.type)?!1:t.type===e?!0:Wn(t,function(r){if(i!=null&&i.includes(r.type))return Wn.skip;if(r.type===e)return Wn.stop})};Si.cache=tG});var fb=_((Uoe,pb)=>{var oG=require("fs"),lG=Ra(),cG=_n().default;function uG(t){let e=oG.readFileSync(t,"utf-8"),i=new Set,r,s={};function n(c){return!(!c||typeof c!="string"||(c=c.trim(),c.length===0)||!/[a-zA-Z0-9_-]/.test(c))}function a(c){n(c)&&i.add(c.trim())}try{r=lG.parse(e,{sourceType:"module",plugins:["jsx","typescript","classProperties","objectRestSpread","optionalChaining","nullishCoalescingOperator"]})}catch{return[]}function l(c){if(c)if(c.type==="StringLiteral"||c.type==="Literal")c.value.split(/\s+/).forEach(o=>a(o));else if(c.type==="ArrayExpression")c.elements.forEach(o=>l(o));else if(c.type==="TemplateLiteral")c.quasis.forEach(o=>{o.value.cooked&&o.value.cooked.split(/\s+/).forEach(u=>a(u))}),c.expressions.forEach(o=>l(o));else if(c.type==="Identifier"&&s[c.name]){let o=s[c.name];Array.isArray(o)?o.forEach(u=>a(u)):typeof o=="string"?o.split(/\s+/).forEach(u=>a(u)):typeof o=="object"&&Object.values(o).forEach(u=>{typeof u=="string"&&u.split(/\s+/).forEach(f=>a(f))})}else if(c.type==="BinaryExpression"&&c.operator==="+")l(c.left),l(c.right);else if(c.type==="ConditionalExpression")l(c.consequent),l(c.alternate);else if(c.type==="LogicalExpression")l(c.left),l(c.right);else if(c.type==="MemberExpression"){if(c.object.type==="Identifier"&&s[c.object.name]){let o=null;if(!c.computed&&c.property.type==="Identifier")o=c.property.name;else if(c.computed&&c.property.type==="StringLiteral")o=c.property.value;else if(c.computed&&c.property.type==="Identifier"){let u=s[c.object.name];typeof u=="object"&&Object.values(u).forEach(f=>{typeof f=="string"&&f.split(/\s+/).forEach(d=>a(d))});return}if(o){let u=s[c.object.name][o];typeof u=="string"&&u.split(/\s+/).forEach(f=>a(f))}}}else c.type==="ArrowFunctionExpression"?c.body.type==="TemplateLiteral"||c.body.type==="ConditionalExpression"?l(c.body):c.body.type==="BlockStatement"&&c.body.body.forEach(o=>{o.type==="ReturnStatement"&&o.argument&&l(o.argument)}):c.type==="CallExpression"&&l(c.callee)}return cG(r,{VariableDeclarator(c){if(c.node.init&&c.node.id.type==="Identifier"){let o=c.node.id.name,u=/Classes?$/.test(o)||/classes?$/i.test(o)||/ClassNames?$/.test(o),f=u||/color|variant|style|map/i.test(o);if(c.node.init.type==="ObjectExpression"&&f){let d={},m=S=>{S.type==="StringLiteral"?S.value.split(/\s+/).forEach(P=>a(P)):S.type==="ObjectExpression"&&S.properties.forEach(P=>{m(P.value)})};c.node.init.properties.forEach(S=>{let P=null;S.key.type==="Identifier"?P=S.key.name:S.key.type==="StringLiteral"&&(P=S.key.value),P&&(S.value.type==="StringLiteral"?(d[P]=S.value.value,S.value.value.split(/\s+/).forEach(A=>a(A))):S.value.type==="ObjectExpression"&&m(S.value))}),s[o]=d}else if((c.node.init.type==="ArrayExpression"||c.node.init.type==="StringLiteral")&&f){let d=[];c.node.init.type==="ArrayExpression"?c.node.init.elements.forEach(m=>{m&&m.type==="StringLiteral"&&m.value.split(/\s+/).forEach(S=>{n(S)&&d.push(S.trim())})}):c.node.init.type==="StringLiteral"&&c.node.init.value.split(/\s+/).forEach(m=>{n(m)&&d.push(m.trim())}),s[o]=d}else c.node.init.type==="StringLiteral"&&u&&(s[o]=c.node.init.value)}},ObjectProperty(c){let o=c.node.key.name||(c.node.key.type==="StringLiteral"?c.node.key.value:null);o&&/Class$|ClassName$|^className$/i.test(o)&&(c.node.value.type==="StringLiteral"?c.node.value.value.split(/\s+/).forEach(u=>a(u)):c.node.value.type==="TemplateLiteral"&&l(c.node.value))},JSXAttribute(c){if(typeof c.node.name.name=="string"&&/^(class(Name)?|.*[cC]lass(Name)?)$/.test(c.node.name.name)){let o=c.node.value;o&&(o.type==="StringLiteral"?o.value.split(/\s+/).forEach(u=>a(u)):o.type==="JSXExpressionContainer"&&l(o.expression))}}}),Array.from(i).filter(n)}pb.exports=uG});var zn=require("fs"),bh=require("path"),pG=Id(),fG=Nd(),hb=Ld(),db=Fd(),hG=fb(),mb=(...t)=>t.reduce((e,i)=>fG(e,i||{},{arrayMerge:(r,s)=>s}),{}),dG=()=>{try{return require(bh.resolve(process.cwd(),"unicss.config.js"))}catch{return{}}},at=t=>t.replace(/([:\/\[\]\(\)\?\=\&\,\'\;\+\"#%\*!])/g,"\\$1").replace(/\./g,"\\.").replace(/^([0-9])/,"\\3$1"),ht=t=>t.replace(/\./g,"\\."),M=(t,e)=>{let i=t.replace(/[\[\]]/g,"");return["bg-image","mask-image","list-image"].includes(e)?/^url\(/i.test(i.trim())?i:i.replace(/_/g," "):i.replace(/_/g," ").replace(/calc\(([^)]+)\)/g,(s,n)=>`calc(${n.replace(/([+\-*\/])/g," $1 ").replace(/\s+/g," ").trim()})`)},yb=t=>{let e=zn.readFileSync(t,"utf-8"),i=[];return[/class=["']([^"']+)["']/g,/className=["']([^"']+)["']/g,/class=\{["'`]([^"'`]+)["'`]\}/g,/className=\{["'`]([^"'`]+)["'`]\}/g,/class:\s*["']([^"']+)["']/g,/class:\s*\[["']([^"']+)["']\]/g,/\b\w+(?:Class|ClassName)=["']([^"']+)["']/g,/\b\w+(?:Class|ClassName)=\{["'`]([^"'`]+)["'`]\}/g].forEach(s=>{let n;for(;(n=s.exec(e))!==null;){let a=n[1];if(a){let l=a.split(/\s+/).map(c=>c.replace(/['"`\\]/g,"")).filter(Boolean);i.push(...l)}}}),i},ke=t=>{if(t=t.replace(/[\[\]]/g,""),["inherit","current","transparent","currentColor"].includes(t))return t==="current"?"currentColor":t;let i=t.match(/^rgba?\((\d+),(\d+),(\d+)(?:,(\d*\.?\d+))?\)$/);if(i){let[,s,n,a,l]=i;return`rgba(${s},${n},${a},${l||1})`}let r=t.match(/^rgb\((\d+)_(\d+)_(\d+)(?:_\/(\d+))?\)$/);if(r){let[,s,n,a,l]=r,c=l?parseInt(l,10)/100:1;return`rgba(${s},${n},${a},${c})`}if(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{3}$/.test(t))return t;if(t.includes("/")){let[s,n]=t.split("/");if(s.startsWith("#")){let a=s.replace("#","");a.length===3&&(a=a.split("").map(u=>u+u).join(""));let l=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),o=parseInt(a.substring(4,6),16);return`rgba(${l},${c},${o},${parseInt(n,10)/100})`}return`color-mix(in srgb, var(--color-${s}) ${parseInt(n,10)}%, transparent)`}return`var(--color-${t})`},Tt=t=>t==="full"?"100%":t==="px"?"1px":/^\d+\/\d+$/.test(t)?t.replace(/^(\d+)\/(\d+)$/,(e,i,r)=>`${parseInt(i,10)/parseInt(r,10)*100}%`):/^\d+(\.\d+)?$/.test(t)?`calc(0.25rem * ${t})`:`var(--${ht(t)})`,Ve=t=>t==="full"?"-100%":t==="px"?"-1px":/^\d+\/\d+$/.test(t)?`-${t.replace(/^(\d+)\/(\d+)$/,(e,i,r)=>`${parseInt(i,10)/parseInt(r,10)*100}%`)}`:/^\d+(\.\d+)?$/.test(t)?`calc(-0.25rem * ${t})`:`calc(-1 * var(--${ht(t)}))`,mG=t=>{let e=t.split(" ");if(e.length===1){let i=Tt(e[0]);return`${i} ${i}`}return e.map(Tt).join(" ")},yG=t=>{let e=t.split(" ");if(e.length===1){let i=Ve(e[0]);return`${i} ${i}`}return e.map(Ve).join(" ")},Jr={first:"first-child",last:"last-child","not-first":"not(:first-child)","not-last":"not(:last-child)",odd:"nth-child(odd)",even:"nth-child(even)",placeholder:"placeholder",file:"file-selector-button",marker:"marker",selection:"selection","first-line":"first-line","first-letter":"first-letter",backdrop:"backdrop","has-checked":"has(:checked)","focus-within":"focus-within",before:"before",after:"after","peer-hover":":hover","peer-focus":":focus","peer-active":":active","peer-invalid":":invalid","peer-checked":":checked","peer-disabled":":disabled","peer-required":":required","peer-read-only":":read-only","peer-indeterminate":":indeterminate","not-hover":"not(:hover)","not-focus":"not(:focus)","not-active":"not(:active)","not-visited":"not(:visited)","not-disabled":"not(:disabled)","not-checked":"not(:checked)","not-focus-visible":"not(:focus-visible)","not-invalid":"not(:invalid)","not-valid":"not(:valid)","not-required":"not(:required)","not-read-only":"not(:read-only)","not-indeterminate":"not(:indeterminate)"},TG=t=>{let e=t.match(/^nth-(\d+)$/);if(e)return`nth-child(${e[1]})`;let i=t.match(/^nth-last-(\d+)$/);if(i)return`nth-last-child(${i[1]})`;let r=t.match(/^nth-of-type-(\d+)$/);if(r)return`nth-of-type(${r[1]})`;let s=t.match(/^nth-last-of-type-(\d+)$/);return s?`nth-last-of-type(${s[1]})`:null},Fi=t=>{let e=TG(t);if(e)return`:${e}`;if(t.startsWith("group-hover/"))return`.group\\/${t.replace("group-hover/","")}:hover`;if(t==="group-hover")return".group:hover";if(t.startsWith("peer-")&&t.includes("/")){let[r,s]=t.split("/"),n=Jr[r]||r.replace("peer-","");return`.peer\\/${s}:${n} ~`}return t.startsWith("peer-")?`.peer:${Jr[t]||t.replace("peer-","")} ~`:`:${Jr[t]||t}`},il=["--uni-blur","--uni-drop-shadow","--uni-brightness","--uni-contrast","--uni-grayscale","--uni-hue-rotate","--uni-invert","--uni-saturate","--uni-sepia"],rl=["--uni-backdrop-blur","--uni-backdrop-brightness","--uni-backdrop-contrast","--uni-backdrop-grayscale","--uni-backdrop-hue-rotate","--uni-backdrop-invert","--uni-backdrop-saturate","--uni-backdrop-opacity","--uni-backdrop-sepia"],Tb=["--uni-shadow","--uni-shadow-color","--uni-inset-shadow","--uni-inset-shadow-color","--uni-ring-shadow","--uni-ring-color","--uni-inset-ring-shadow","--uni-inset-ring-color","--uni-ring-inset"],sl=["--uni-rotate-x","--uni-rotate-y","--uni-rotate-z","--uni-skew-x","--uni-skew-y"],nl=["--uni-scale-x","--uni-scale-y"],al=["--uni-translate-x","--uni-translate-y","--uni-translate-z"],gG=(t,e,i,r,s=null,n=null,a=!1)=>{let l=at(t),c=`.${l}`,o=!1;if(t.includes("space-x-")||t.includes("space-y-")||t.includes("divide-x")||t.includes("divide-y")||t.includes("divide-color-")||t.includes("divide-style-")?(c+=" > :not(:last-child)",o=!0):a&&(c+=" > *"),o&&(c=`:where(${c})`),s&&(s.startsWith("peer-")||s.includes("peer-")))c=`${Fi(s)}${c}`;else if(s){let k=Fi(s);o?c=c.replace(`:where(.${l}`,`:where(.${l}${k.startsWith(":")?k:":"+k}`):c+=k.startsWith(":")?k:`:${k}`}let u=il.includes(i),f=rl.includes(i),d=Tb.includes(i),m=sl.includes(i),S=nl.includes(i),P=al.includes(i),A;if(typeof r=="object"?A=Object.entries(r).map(([k,D])=>`${k}: ${D};`).join(" "):Array.isArray(i)?A=i.map(k=>`${k}: ${r}`).join("; "):A=`${i}: ${r}`,!A||A.replace(/[\s;]/g,"")==="")return null;let C;return u?C=`${c} { ${A}; filter: ${il.map(k=>`var(${k})`).join(" ")}; }`:f?C=`${c} { ${A}; backdrop-filter: ${rl.map(k=>`var(${k})`).join(" ")}; }`:d?C=`${c} { ${A}; box-shadow: var(--uni-inset-shadow, 0 0 #0000), var(--uni-inset-ring-shadow, 0 0 #0000), var(--uni-ring-shadow, 0 0 #0000), var(--uni-shadow, 0 0 #0000); }`:m?C=`${c} { ${A}; transform: ${sl.map(k=>`var(${k})`).join(" ")}; }`:S?C=`${c} { ${A}; scale: ${nl.map(k=>`var(${k})`).join(" ")}; }`:P?C=`${c} { ${A}; translate: ${al.map(k=>`var(${k})`).join(" ")}; }`:C=`${c} { ${A}; }`,{selector:c,rule:C,screen:n}},xG=(t,e={})=>{let i=[],r=(o,u,f)=>{i.push({prefix:o,prop:u,transform:f})};["w","min-w","max-w"].forEach(o=>{let u=o.replace("w","width");r(`${o}-[`,u,M),r(`${o}-`,u,f=>{let d=`container-${f}`;if(e[d])return`var(--${d})`;if(/^\d+\/\d+$/.test(f))return f.replace(/^(\d+)\/(\d+)$/,(S,P,A)=>`${parseInt(P,10)/parseInt(A,10)*100}%`);let m={full:"100%",screen:"100vw",dvw:"100dvw",dvh:"100dvh",lvw:"100lvw",lvh:"100lvh",svw:"100svw",svh:"100svh",auto:"auto",px:"1px",min:"min-content",max:"max-content",fit:"fit-content"};return m[f]?m[f]:/^\d+(\.\d+)?$/.test(f)?`calc(0.25rem * ${f})`:`var(--${ht(f)})`})}),["h","min-h","max-h"].forEach(o=>{let u=o.replace("h","height");r(`${o}-[`,u,M),r(`${o}-`,u,f=>{let d=`container-${f}`;if(e[d])return`var(--${d})`;if(/^\d+\/\d+$/.test(f))return f.replace(/^(\d+)\/(\d+)$/,(S,P,A)=>`${parseInt(P,10)/parseInt(A,10)*100}%`);let m={full:"100%",screen:"100vh",dvw:"100dvw",dvh:"100dvh",lvw:"100lvw",lvh:"100lvh",svw:"100svw",svh:"100svh",auto:"auto",px:"1px",min:"min-content",max:"max-content",fit:"fit-content"};return m[f]?m[f]:/^\d+(\.\d+)?$/.test(f)?`calc(0.25rem * ${f})`:`var(--${ht(f)})`})}),[["p","padding"],["pt","padding-top"],["pr","padding-right"],["pb","padding-bottom"],["pl","padding-left"],["px","padding-inline"],["py","padding-block"],["m","margin"],["mt","margin-top"],["mr","margin-right"],["mb","margin-bottom"],["ml","margin-left"]].forEach(([o,u])=>{r(`${o}-[`,u,M),r(`${o}-`,u,f=>f==="auto"?"auto":f==="px"?"1px":Tt(f))}),r("mx-[",["margin-left","margin-right"],M),r("mx-",["margin-left","margin-right"],o=>o==="auto"?"auto":o==="px"?"1px":Tt(o)),r("my-[",["margin-top","margin-bottom"],M),r("my-",["margin-top","margin-bottom"],o=>o==="auto"?"auto":o==="px"?"1px":Tt(o)),r("-m-","margin",o=>o==="px"?"-1px":Ve(o)),r("-mt-","margin-top",o=>o==="px"?"-1px":Ve(o)),r("-mr-","margin-right",o=>o==="px"?"-1px":Ve(o)),r("-mb-","margin-bottom",o=>o==="px"?"-1px":Ve(o)),r("-ml-","margin-left",o=>o==="px"?"-1px":Ve(o)),r("-mx-",["margin-left","margin-right"],o=>o==="px"?"-1px":Ve(o)),r("-my-",["margin-top","margin-bottom"],o=>o==="px"?"-1px":Ve(o)),["top","right","bottom","left"].forEach(o=>{r(`${o}-[`,o,M),r(`${o}-`,o,u=>u==="auto"?"auto":u==="px"?"1px":u==="full"?"100%":Tt(u)),r(`-${o}-[`,o,u=>`-${M(u)}`),r(`-${o}-`,o,u=>u==="px"?"-1px":u==="full"?"-100%":Ve(u))}),r("gap-x-[","column-gap",M),r("gap-x-","column-gap",o=>o==="px"?"1px":/^\d+(\.\d+)?$/.test(o)?`calc(0.25rem * ${o})`:`var(--${ht(o)})`),r("gap-y-[","row-gap",M),r("gap-y-","row-gap",o=>o==="px"?"1px":/^\d+(\.\d+)?$/.test(o)?`calc(0.25rem * ${o})`:`var(--${ht(o)})`),r("gap-[","gap",M),r("gap-","gap",o=>o==="px"?"1px":/^\d+(\.\d+)?$/.test(o)?`calc(0.25rem * ${o})`:`var(--${ht(o)})`),r("inset-x-[","inset-inline",M),r("inset-x-","inset-inline",o=>o==="auto"?"auto":o==="px"?"1px":o==="full"?"100%":Tt(o)),r("-inset-x-[","inset-inline",o=>`-${M(o)}`),r("-inset-x-","inset-inline",Ve),r("inset-y-[","inset-block",M),r("inset-y-","inset-block",o=>o==="auto"?"auto":o==="px"?"1px":o==="full"?"100%":Tt(o)),r("-inset-y-[","inset-block",o=>`-${M(o)}`),r("-inset-y-","inset-block",Ve),r("inset-[","inset",M),r("inset-","inset",o=>o==="auto"?"auto":o==="px"?"1px":o==="full"?"100%":Tt(o)),r("-inset-[","inset",o=>`-${M(o)}`),r("-inset-","inset",Ve),r("z-","z-index",M),r("-z-","z-index",o=>`-${o}`),r("flex-[","flex",M),r("flex-row-reverse","flex-direction",()=>"row-reverse"),r("flex-col-reverse","flex-direction",()=>"column-reverse"),r("flex-row","flex-direction",()=>"row"),r("flex-col","flex-direction",()=>"column"),r("flex-wrap-reverse","flex-wrap",()=>"wrap-reverse"),r("flex-wrap","flex-wrap",()=>"wrap"),r("flex-nowrap","flex-wrap",()=>"nowrap"),r("flex-","flex",M),r("grow-","flex-grow",M),r("shrink-","flex-shrink",M),r("basis-[","flex-basis",M),r("basis-","flex-basis",o=>{if(o==="auto")return"auto";if(o==="px")return"1px";if(o==="full")return"100%";let u=`container-${o}`;return e[u]?`var(--${u})`:Tt(o)}),r("order-first","order",()=>"-999999"),r("order-last","order",()=>"999999"),r("order-","order",M),r("-order-","order",o=>`-${o}`),[["auto",{width:"auto",height:"auto"}],["px",{width:"1px",height:"1px"}],["full",{width:"100%",height:"100%"}],["dvw",{width:"100dvw",height:"100dvw"}],["dvh",{width:"100dvh",height:"100dvh"}],["lvw",{width:"100lvw",height:"100lvw"}],["lvh",{width:"100lvh",height:"100lvh"}],["svw",{width:"100svw",height:"100svw"}],["svh",{width:"100svh",height:"100svh"}],["min",{width:"min-content",height:"min-content"}],["max",{width:"max-content",height:"max-content"}],["fit",{width:"fit-content",height:"fit-content"}]].forEach(([o,u])=>{r(`size-${o}`,null,()=>u)}),r("size-[",["width","height"],M),r("size-",["width","height"],Tt),r("aspect-[","aspect-ratio",M),r("aspect-","aspect-ratio",o=>/^\d+\/\d+$/.test(o)?o:{auto:"auto",square:"1/1",video:"16/9"}[o]||o),[["scroll-m","scroll-margin"],["scroll-mt","scroll-margin-top"],["scroll-mr","scroll-margin-right"],["scroll-mb","scroll-margin-bottom"],["scroll-ml","scroll-margin-left"]].forEach(([o,u])=>{r(`${o}-[`,u,M),r(`${o}-`,u,f=>f==="auto"?"auto":f==="px"?"1px":Tt(f))}),r("scroll-mx-[","scroll-margin-inline",M),r("scroll-mx-","scroll-margin-inline",o=>o==="auto"?"auto":o==="px"?"1px":Tt(o)),r("scroll-my-[","scroll-margin-block",M),r("scroll-my-","scroll-margin-block",o=>o==="auto"?"auto":o==="px"?"1px":Tt(o)),r("-scroll-m-[","scroll-margin",o=>`-${M(o)}`),r("-scroll-m-","scroll-margin",o=>o==="px"?"-1px":Ve(o)),r("-scroll-mt-[","scroll-margin-top",o=>`-${M(o)}`),r("-scroll-mt-","scroll-margin-top",o=>o==="px"?"-1px":Ve(o)),r("-scroll-mr-[","scroll-margin-right",o=>`-${M(o)}`),r("-scroll-mr-","scroll-margin-right",o=>o==="px"?"-1px":Ve(o)),r("-scroll-mb-[","scroll-margin-bottom",o=>`-${M(o)}`),r("-scroll-mb-","scroll-margin-bottom",o=>o==="px"?"-1px":Ve(o)),r("-scroll-ml-[","scroll-margin-left",o=>`-${M(o)}`),r("-scroll-ml-","scroll-margin-left",o=>o==="px"?"-1px":Ve(o)),r("-scroll-mx-[","scroll-margin-inline",o=>`-${M(o)}`),r("-scroll-mx-","scroll-margin-inline",o=>o==="px"?"-1px":Ve(o)),r("-scroll-my-[","scroll-margin-block",o=>`-${M(o)}`),r("-scroll-my-","scroll-margin-block",o=>o==="px"?"-1px":Ve(o)),[["scroll-p","scroll-padding"],["scroll-pt","scroll-padding-top"],["scroll-pr","scroll-padding-right"],["scroll-pb","scroll-padding-bottom"],["scroll-pl","scroll-padding-left"]].forEach(([o,u])=>{r(`${o}-[`,u,M),r(`${o}-`,u,f=>f==="px"?"1px":Tt(f))}),r("scroll-px-[","scroll-padding-inline",M),r("scroll-px-","scroll-padding-inline",o=>o==="px"?"1px":Tt(o)),r("scroll-py-[","scroll-padding-block",M),r("scroll-py-","scroll-padding-block",o=>o==="px"?"1px":Tt(o)),r("-scroll-p-[","scroll-padding",o=>`-${M(o)}`),r("-scroll-p-","scroll-padding",o=>o==="px"?"-1px":Ve(o)),r("-scroll-pt-[","scroll-padding-top",o=>`-${M(o)}`),r("-scroll-pt-","scroll-padding-top",o=>o==="px"?"-1px":Ve(o)),r("-scroll-pr-[","scroll-padding-right",o=>`-${M(o)}`),r("-scroll-pr-","scroll-padding-right",o=>o==="px"?"-1px":Ve(o)),r("-scroll-pb-[","scroll-padding-bottom",o=>`-${M(o)}`),r("-scroll-pb-","scroll-padding-bottom",o=>o==="px"?"-1px":Ve(o)),r("-scroll-pl-[","scroll-padding-left",o=>`-${M(o)}`),r("-scroll-pl-","scroll-padding-left",o=>o==="px"?"-1px":Ve(o)),r("-scroll-px-[","scroll-padding-inline",o=>`-${M(o)}`),r("-scroll-px-","scroll-padding-inline",o=>o==="px"?"-1px":Ve(o)),r("-scroll-py-[","scroll-padding-block",o=>`-${M(o)}`),r("-scroll-py-","scroll-padding-block",o=>o==="px"?"-1px":Ve(o)),r("font-[","font-weight",M),r("font-family-[","font-family",o=>{let u=M(o);return u.startsWith('"')||u.startsWith("'")?u:`"${u}"`}),r("tracking-[","letter-spacing",M),r("leading-[","line-height",M),r("leading-","line-height",o=>/^\d+$/.test(o)||/^\d*\.\d+$/.test(o)?`calc(var(--1) * ${o})`:null),r("indent-[","text-indent",M),r("indent-","text-indent",o=>`var(--${ht(o)})`),r("-indent-","text-indent",o=>`calc(-1 * var(--${ht(o)}))`),r("align-[","vertical-align",M),r("text-shadow-color-[",null,o=>({"--uni-text-shadow-color":ke(o)})),r("text-shadow-color-",null,o=>({"--uni-text-shadow-color":ke(o)})),r("text-shadow-[","text-shadow",M),r("text-color-[","color",ke),r("text-color-","color",ke),r("text-[","font-size",M),r("text-",null,function(o){if(o.startsWith("color-"))return{color:ke(o.replace("color-",""))};let u=o.match(/^([a-z0-9\[\]\-\.]+)\/([a-z0-9\[\]\-\.]+)$/i);if(u){let[,f,d]=u;if(!f.startsWith("color-"))return{"font-size":t[f]?`var(--${ht(f)})`:`var(--text-${f})`,"line-height":t[d]?`var(--${ht(d)})`:`var(--line-${d})`}}return t[o]?{"font-size":`var(--${ht(o)})`}:{"font-size":`var(--text-${o})`}}),r("decoration-color-[","text-decoration-color",ke),r("decoration-color-","text-decoration-color",ke),r("decoration-thick-[","text-decoration-thickness",M),r("decoration-thick-","text-decoration-thickness",o=>o==="auto"?"auto":o==="from-font"?"from-font":/^\d+$/.test(o)?`${o}px`:`var(--${ht(o)})`),r("underline-offset-[","text-underline-offset",M),r("underline-offset-","text-underline-offset",o=>o==="auto"?"auto":/^\d+$/.test(o)?`${o}px`:`var(--${ht(o)})`),r("-underline-offset-[","text-underline-offset",o=>`-${M(o)}`),r("-underline-offset-","text-underline-offset",o=>/^\d+$/.test(o)?`-${o}px`:`calc(-1 * var(--${ht(o)}))`),r("bg-color-[","background-color",ke),r("bg-color-","background-color",ke),r("bg-image-[","background-image",o=>M(o,"bg-image")),r("bg-position-[","background-position",M),r("bg-size-[","background-size",M),r("bg-gradient-[","background-image",o=>M(o).replace(/color-([a-zA-Z0-9\-]+(?:\/[0-9]+)?)/g,(u,f)=>ke(f))),r("list-image-[","list-style-image",o=>M(o,"list-image")),r("mask-image-[",null,o=>({"mask-image":M(o,"mask-image"),"-webkit-mask-image":M(o,"mask-image")})),r("mask-position-[",null,o=>({"mask-position":M(o),"-webkit-mask-position":M(o)})),r("mask-size-[",null,o=>({"mask-size":M(o),"-webkit-mask-size":M(o)})),r("border-style-",null,o=>({"--uni-border-style":o,"border-style":"var(--uni-border-style)"})),r("border-spacing-x-[",null,o=>({"--uni-border-spacing-x":M(o),"border-spacing":`var(--uni-border-spacing-x, ${M(o)}) var(--uni-border-spacing-y, 0)`})),r("border-spacing-x-",null,o=>({"--uni-border-spacing-x":`${o}px`,"border-spacing":`var(--uni-border-spacing-x, ${o}px) var(--uni-border-spacing-y, 0)`})),r("border-spacing-y-[",null,o=>({"--uni-border-spacing-y":M(o),"border-spacing":`var(--uni-border-spacing-x, 0) var(--uni-border-spacing-y, ${M(o)})`})),r("border-spacing-y-",null,o=>({"--uni-border-spacing-y":`${o}px`,"border-spacing":`var(--uni-border-spacing-x, 0) var(--uni-border-spacing-y, ${o}px)`})),r("border-spacing-[","border-spacing",M),r("border-spacing-","border-spacing",o=>`${o}px`),r("border-color-[","border-color",ke),r("border-color-","border-color",ke),["t","r","b","l","x","y"].forEach(o=>{let u={t:"border-top-color",r:"border-right-color",b:"border-bottom-color",l:"border-left-color",x:"border-inline-color",y:"border-block-color"};r(`border-${o}-color-[`,u[o],ke),r(`border-${o}-color-`,u[o],ke)}),r("border-x-",null,o=>({"border-inline-width":`${o}px`,"border-style":"var(--uni-border-style)"})),r("border-y-",null,o=>({"border-block-width":`${o}px`,"border-style":"var(--uni-border-style)"})),r("border-t-",null,o=>({"border-top-width":`${o}px`,"border-style":"var(--uni-border-style)"})),r("border-r-",null,o=>({"border-right-width":`${o}px`,"border-style":"var(--uni-border-style)"})),r("border-b-",null,o=>({"border-bottom-width":`${o}px`,"border-style":"var(--uni-border-style)"})),r("border-l-",null,o=>({"border-left-width":`${o}px`,"border-style":"var(--uni-border-style)"})),r("border-[",null,o=>({"border-width":M(o),"border-style":"var(--uni-border-style)"})),r("border-",null,o=>/^\d+$/.test(o)||/^\d+(px|rem|em|%)$/.test(o)?{"border-width":`${o}px`,"border-style":"var(--uni-border-style)"}:{});let c=["xs","sm","md","lg","xl","2xl","3xl","4xl","none","full"];return c.forEach(o=>{let u=o==="none"?"0":o==="full"?"999999px":`var(--radius-${o})`;r(`rounded-${o}`,"border-radius",()=>u)}),r("rounded-[","border-radius",M),["t","r","b","l","tl","tr","br","bl"].forEach(o=>{let u={t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-right","bottom-left"],l:["top-left","bottom-left"],tl:["top-left"],tr:["top-right"],br:["bottom-right"],bl:["bottom-left"]};c.forEach(f=>{let d=f==="none"?"0":f==="full"?"999999px":`var(--radius-${f})`,m={};u[o].forEach(S=>{m[`border-${S}-radius`]=d}),r(`rounded-${o}-${f}`,null,()=>m)})}),r("shadow-[","--uni-shadow",M),r("shadow-inset-[","--uni-inset-shadow",M),r("shadow-color-[",null,o=>({"--uni-shadow-color":ke(o)})),r("shadow-color-",null,o=>({"--uni-shadow-color":ke(o)})),r("shadow-inset-color-[",null,o=>({"--uni-inset-shadow-color":ke(o)})),r("shadow-inset-color-",null,o=>({"--uni-inset-shadow-color":ke(o)})),r("ring-inset-color-[","--uni-inset-ring-color",ke),r("ring-inset-color-","--uni-inset-ring-color",ke),r("ring-inset-[","--uni-inset-ring-shadow",o=>`inset 0 0 0 ${M(o)} var(--uni-inset-ring-color, currentColor)`),r("ring-inset-","--uni-inset-ring-shadow",o=>`inset 0 0 0 ${o}px var(--uni-inset-ring-color, currentColor)`),r("ring-inset","--uni-inset-ring-shadow",()=>"inset 0 0 0 1px var(--uni-inset-ring-color, currentColor)"),r("ring-color-[","--uni-ring-color",ke),r("ring-color-","--uni-ring-color",ke),r("ring-[","--uni-ring-shadow",o=>`0 0 0 ${M(o)} var(--uni-ring-color, currentColor)`),r("ring-","--uni-ring-shadow",o=>`0 0 0 ${o}px var(--uni-ring-color, currentColor)`),r("ring","--uni-ring-shadow",()=>"0 0 0 1px var(--uni-ring-color, currentColor)"),r("blur-[","--uni-blur",o=>`blur(${M(o)})`),r("blur-","--uni-blur",o=>`blur(var(--blur-${o}))`),r("brightness-","--uni-brightness",o=>`brightness(${M(o)}%)`),r("contrast-","--uni-contrast",o=>`contrast(${M(o)}%)`),r("drop-shadow-[","--uni-drop-shadow",o=>`drop-shadow(${M(o)})`),r("drop-shadow-color-[",null,o=>({"--uni-drop-shadow-color":ke(o)})),r("drop-shadow-color-",null,o=>({"--uni-drop-shadow-color":ke(o)})),r("grayscale-","--uni-grayscale",o=>`grayscale(${M(o)}%)`),r("grayscale","--uni-grayscale",()=>"grayscale(100%)"),r("hue-rotate-","--uni-hue-rotate",o=>`hue-rotate(${M(o)}deg)`),r("-hue-rotate-","--uni-hue-rotate",o=>`hue-rotate(calc(${M(o)}deg * -1))`),r("invert-","--uni-invert",o=>`invert(${M(o)}%)`),r("invert","--uni-invert",()=>"invert(100%)"),r("saturate-","--uni-saturate",o=>`saturate(${M(o)}%)`),r("sepia-","--uni-sepia",o=>`sepia(${M(o)}%)`),r("sepia","--uni-sepia",()=>"sepia(100%)"),r("backdrop-blur-[","--uni-backdrop-blur",o=>`blur(${M(o)})`),r("backdrop-blur-","--uni-backdrop-blur",o=>`blur(var(--blur-${o}))`),r("backdrop-brightness-","--uni-backdrop-brightness",o=>`brightness(${M(o)}%)`),r("backdrop-contrast-","--uni-backdrop-contrast",o=>`contrast(${M(o)}%)`),r("backdrop-grayscale-","--uni-backdrop-grayscale",o=>`grayscale(${M(o)}%)`),r("backdrop-grayscale","--uni-backdrop-grayscale",()=>"grayscale(100%)"),r("backdrop-hue-rotate-","--uni-backdrop-hue-rotate",o=>`hue-rotate(${M(o)}deg)`),r("-backdrop-hue-rotate-","--uni-backdrop-hue-rotate",o=>`hue-rotate(calc(${M(o)}deg * -1))`),r("backdrop-invert-","--uni-backdrop-invert",o=>`invert(${M(o)}%)`),r("backdrop-invert","--uni-backdrop-invert",()=>"invert(100%)"),r("backdrop-opacity-","--uni-backdrop-opacity",o=>`opacity(${M(o)}%)`),r("backdrop-saturate-","--uni-backdrop-saturate",o=>`saturate(${M(o)}%)`),r("backdrop-sepia-","--uni-backdrop-sepia",o=>`sepia(${M(o)}%)`),r("backdrop-sepia","--uni-backdrop-sepia",()=>"sepia(100%)"),r("opacity-","opacity",function(o){if(/^\d+$/.test(o)){let u=parseInt(o,10);if(u>=0&&u<=100)return(u/100).toString()}return M(o)}),r("duration-",null,o=>({"--uni-transition-duration":`${M(o)}ms`,"transition-duration":"var(--uni-transition-duration, 150ms)"})),r("ease-[",null,o=>({"--uni-transition-timing-function":M(o),"transition-timing-function":"var(--uni-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1))"})),r("delay-",null,o=>({"--uni-transition-delay":`${M(o)}ms`,"transition-delay":"var(--uni-transition-delay, 0ms)"})),r("transition-",null,o=>{let u=M(o);return u==="colors"?u="color, background-color, border-color, text-decoration-color, fill, stroke":u==="opacity"?u="opacity":u==="shadow"?u="box-shadow":u==="transform"?u="transform":u==="all"?u="all":u==="none"&&(u="none"),{"--uni-transition-property":u,"transition-property":"var(--uni-transition-property, all)","transition-duration":"var(--uni-transition-duration, 150ms)","transition-timing-function":"var(--uni-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1))"}}),r("transition",null,()=>({"--uni-transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter","transition-property":"var(--uni-transition-property, all)","transition-duration":"var(--uni-transition-duration, 150ms)","transition-timing-function":"var(--uni-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1))"})),r("animate-[","animation",M),r("animate-spin","animation",()=>"var(--animate-spin)"),r("animate-ping","animation",()=>"var(--animate-ping)"),r("animate-pulse","animation",()=>"var(--animate-pulse)"),r("animate-bounce","animation",()=>"var(--animate-bounce)"),r("animate-none","animation",()=>"none"),r("iteration-","animation-iteration-count",M),r("will-change-[","will-change",M),r("perspective-origin-[","perspective-origin",M),r("perspective-[","perspective",M),r("rotate-[","rotate",M),r("rotate-x-","--uni-rotate-x",o=>`rotateX(${o}deg)`),r("rotate-y-","--uni-rotate-y",o=>`rotateY(${o}deg)`),r("rotate-z-","--uni-rotate-z",o=>`rotateZ(${o}deg)`),r("-rotate-x-","--uni-rotate-x",o=>`rotateX(calc(${o}deg * -1))`),r("-rotate-y-","--uni-rotate-y",o=>`rotateY(calc(${o}deg * -1))`),r("-rotate-z-","--uni-rotate-z",o=>`rotateZ(calc(${o}deg * -1))`),r("rotate-","rotate",o=>`${M(o)}deg`),r("-rotate-","rotate",o=>`calc(${M(o)}deg * -1)`),r("scale-x-","--uni-scale-x",o=>`${o}%`),r("scale-y-","--uni-scale-y",o=>`${o}%`),r("-scale-x-","--uni-scale-x",o=>`calc(${o}% * -1)`),r("-scale-y-","--uni-scale-y",o=>`calc(${o}% * -1)`),r("scale-","scale",o=>`${M(o)}%`),r("-scale-","scale",o=>`calc(${M(o)}% * -1)`),r("skew-x-","--uni-skew-x",o=>`skewX(${o}deg)`),r("skew-y-","--uni-skew-y",o=>`skewY(${o}deg)`),r("-skew-x-","--uni-skew-x",o=>`skewX(calc(${o}deg * -1))`),r("-skew-y-","--uni-skew-y",o=>`skewY(calc(${o}deg * -1))`),r("skew-","transform",o=>`skewX(${o}deg) skewY(${o}deg)`),r("-skew-","transform",o=>`skewX(-${o}deg) skewY(-${o}deg)`),r("origin-[","transform-origin",M),r("translate-[","translate",M),r("translate-x-[","--uni-translate-x",M),r("translate-y-[","--uni-translate-y",M),r("translate-x-","--uni-translate-x",Tt),r("translate-y-","--uni-translate-y",Tt),r("translate-z-","--uni-translate-z",Tt),r("-translate-x-","--uni-translate-x",Ve),r("-translate-y-","--uni-translate-y",Ve),r("-translate-z-","--uni-translate-z",Ve),r("translate-","translate",mG),r("-translate-","translate",yG),r("grid-columns-[","grid-template-columns",M),r("grid-columns-","grid-template-columns",o=>/^\d+$/.test(o)?`repeat(${o}, minmax(0, 1fr))`:o),r("col-start-","grid-column-start",M),r("-col-start-","grid-column-start",o=>`calc(${M(o)} * -1)`),r("col-end-","grid-column-end",M),r("-col-end-","grid-column-end",o=>`calc(${M(o)} * -1)`),r("col-span-","grid-column",o=>o==="full"?"1 / -1":`span ${M(o)} / span ${M(o)}`),r("col-[","grid-column",M),r("grid-rows-[","grid-template-rows",M),r("grid-rows-","grid-template-rows",o=>/^\d+$/.test(o)?`repeat(${o}, minmax(0, 1fr))`:o),r("row-start-","grid-row-start",M),r("-row-start-","grid-row-start",o=>`calc(${M(o)} * -1)`),r("row-end-","grid-row-end",M),r("-row-end-","grid-row-end",o=>`calc(${M(o)} * -1)`),r("row-span-","grid-row",o=>o==="full"?"1 / -1":`span ${M(o)} / span ${M(o)}`),r("row-[","grid-row",M),r("auto-columns-[","grid-auto-columns",M),r("auto-rows-[","grid-auto-rows",M),r("space-x-[","margin-right",M),r("space-x-","margin-right",o=>o==="px"?"1px":/^\d+\/\d+$/.test(o)?o.replace(/^(\d+)\/(\d+)$/,(u,f,d)=>`${parseInt(f,10)/parseInt(d,10)*100}%`):/^\d+(\.\d+)?$/.test(o)?`calc(0.25rem * ${o})`:`var(--${ht(o)})`),r("-space-x-[","margin-right",o=>`calc(${M(o)} * -1)`),r("-space-x-","margin-right",o=>o==="px"?"-1px":/^\d+\/\d+$/.test(o)?`-${o.replace(/^(\d+)\/(\d+)$/,(u,f,d)=>`${parseInt(f,10)/parseInt(d,10)*100}%`)}`:/^\d+(\.\d+)?$/.test(o)?`calc(-0.25rem * ${o})`:`calc(var(--${ht(o)}) * -1)`),r("space-y-[","margin-bottom",M),r("space-y-","margin-bottom",o=>o==="px"?"1px":/^\d+\/\d+$/.test(o)?o.replace(/^(\d+)\/(\d+)$/,(u,f,d)=>`${parseInt(f,10)/parseInt(d,10)*100}%`):/^\d+(\.\d+)?$/.test(o)?`calc(0.25rem * ${o})`:`var(--${ht(o)})`),r("-space-y-[","margin-bottom",o=>`calc(${M(o)} * -1)`),r("-space-y-","margin-bottom",o=>o==="px"?"-1px":/^\d+\/\d+$/.test(o)?`-${o.replace(/^(\d+)\/(\d+)$/,(u,f,d)=>`${parseInt(f,10)/parseInt(d,10)*100}%`)}`:/^\d+(\.\d+)?$/.test(o)?`calc(-0.25rem * ${o})`:`calc(var(--${ht(o)}) * -1)`),r("divide-x-[",null,o=>({"border-right-width":M(o),"border-right-style":"solid"})),r("divide-x-",null,o=>/^\d+$/.test(o)?{"border-right-width":`${o}px`,"border-right-style":"solid"}:{"border-right-width":o,"border-right-style":"solid"}),r("divide-x",null,()=>({"border-right-width":"1px","border-right-style":"solid"})),r("divide-y-[",null,o=>({"border-bottom-width":M(o),"border-bottom-style":"solid"})),r("divide-y-",null,o=>/^\d+$/.test(o)?{"border-bottom-width":`${o}px`,"border-bottom-style":"solid"}:{"border-bottom-width":o,"border-bottom-style":"solid"}),r("divide-y",null,()=>({"border-bottom-width":"1px","border-bottom-style":"solid"})),r("divide-style-","border-style",o=>o),r("divide-color-[","border-color",ke),r("divide-color-","border-color",ke),r("columns-","columns",o=>/^\d+$/.test(o)?o:["3xs","2xs","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"].includes(o)?`var(--container-${o})`:M(o)),r("scrollbar-[","scrollbar-color",o=>M(o).replace(/color-([a-zA-Z0-9\-]+)/g,(u,f)=>`var(--color-${f})`)),r("object-[","object-position",M),r("caret-color-[","caret-color",ke),r("caret-color-","caret-color",ke),r("accent-color-[","accent-color",ke),r("accent-color-","accent-color",ke),r("outline-offset-[","outline-offset",M),r("outline-style-",null,o=>({"--uni-outline-style":o,"outline-style":"var(--uni-outline-style)"})),r("outline-color-[","outline-color",ke),r("outline-color-","outline-color",ke),r("outline-[",null,o=>({"outline-width":M(o),"outline-style":"var(--uni-outline-style)"})),r("outline-offset-","outline-offset",o=>`${o}px`),r("-outline-offset-","outline-offset",o=>`-${o}px`),r("outline-",null,o=>o.startsWith("offset")?{}:{"outline-width":/^\d+$/.test(o)?`${o}px`:o,"outline-style":"var(--uni-outline-style)"}),r("fill-color-[","fill",ke),r("fill-color-","fill",ke),r("stroke-color-[","stroke",ke),r("stroke-color-","stroke",ke),r("stroke-[","stroke-width",M),r("stroke-","stroke-width",o=>/^\d+$/.test(o)?`${o}px`:M(o)),r("content-[","content",o=>{let u=M(o);return u.startsWith("'")||u.startsWith('"')?u:`"${u}"`}),r("line-clamp-",null,o=>({overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.replace("/","")})),r("line-clamp-none",null,()=>({overflow:"visible",display:"block","-webkit-box-orient":"horizontal","-webkit-line-clamp":"unset"})),r("truncate",null,()=>({overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"})),r("sr-only",null,()=>({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap","border-width":"0"})),r("not-sr-only",null,()=>({position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"})),i},bG=()=>`
57
57
  *,::after,::before,::backdrop,::file-selector-button {margin: 0; padding: 0; box-sizing: border-box; border: 0 solid; outline: 0 solid;}
58
58
  h1,h2,h3,h4,h5,h6 {font-size: inherit;font-weight: inherit;}
59
59
  ol,ul,menu {list-style: none;}
@@ -119,31 +119,31 @@ textarea {resize: vertical;}
119
119
  `,this.processed.add(f.selector)),!0}return!1}handlePseudoClasses(e){let i=e.split(":");if(i.length<2)return!1;let r=i[i.length-1],s=i.slice(0,-1),n=Object.keys(Jr),a=["hover","focus","active","visited","disabled","checked","focus-visible","invalid","required","read-only","indeterminate","valid","in-range","out-of-range","focus-within","target","before","after"];if(!s.every(k=>{let D=/^nth-(\d+)$|^nth-last-(\d+)$|^nth-of-type-(\d+)$|^nth-last-of-type-(\d+)$/.test(k);return n.includes(k)||D||a.includes(k)||k.startsWith("group-")||k.startsWith("peer-")}))return!1;let c=r.includes("!"),o=c?r.replace("!",""):r,u=this.buildRuleForClassWithoutSelector(o,c);if(!u)return!1;let f=at(e),d=o.includes("space-x-")||o.includes("space-y-")||o.includes("divide-x")||o.includes("divide-y")||o.includes("divide-color-")||o.includes("divide-style-"),m="",S=!1,P=!1,A=["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop"];for(let k of s)if(k.startsWith("peer-")){S=!0,m=Fi(k);break}else if(k.startsWith("group-")){P=!0,m=Fi(k);break}else{let D=Fi(k);A.includes(k)?m+=D.startsWith("::")?D:`::${D.replace(/^:/,"")}`:m+=D.startsWith(":")?D:`:${D}`}let C;return S?C=`${m}.${f} { ${u} }`:P?C=`${m} .${f} { ${u} }`:d?C=`:where(.${f}${m} > :not(:last-child)) { ${u} }`:C=`.${f}${m} { ${u} }`,this.processed.has(f)||(this.output.main+=`${C}
120
120
  `,this.processed.add(f)),!0}handleDarkModeWithModifiers(e){if(!e.startsWith("dark:"))return!1;let r=e.slice(5).split(":");if(r.length<2)return!1;let s=Object.keys(Jr),n=["hover","focus","active","visited","disabled","checked","focus-visible","invalid","required","read-only","indeterminate","valid","in-range","out-of-range"],a=r.slice(0,-1),l=r[r.length-1];if(!a.every(P=>{let A=/^nth-(\d+)$|^nth-last-(\d+)$|^nth-of-type-(\d+)$|^nth-last-of-type-(\d+)$/.test(P);return s.includes(P)||A||n.includes(P)}))return!1;let o=l.includes("!"),u=o?l.replace("!",""):l,f=this.buildRuleForClassWithoutSelector(u,o);if(!f)return!1;let d=at(e),m="";for(let P of a){let A=Fi(P);m+=A.startsWith(":")?A:`:${A}`}let S=`.dark .${d}${m} { ${f} }`;return this.processed.has(d)||(this.output.dark+=`${S}
121
121
  `,this.processed.add(d)),!0}handleBreakpoints(e){let{breakpoints:i}=this.config;for(let r of Object.keys(i))if(!(r==="portrait"||r==="landscape")){if(e.startsWith(`${r}:*:`)){let s=e.slice(`${r}:*:`.length),n=s.includes("!"),a=n?s.replace("!",""):s,l=this.buildRuleForClassWithoutSelector(a,n);if(l){let o=`.${at(e)} > * { ${l} }`;return this.mediaQueries[r]||(this.mediaQueries[r]=[]),this.mediaQueries[r].push(o),!0}}if(e.startsWith(`${r}:`)){let s=e.slice(r.length+1),n=s.includes("!"),a=n?s.replace("!",""):s,l=a.split(":");if(l.length>=2){let o=l[0];if(o==="group-hover"||o.startsWith("group-hover/")){let m=l.slice(1).join(":"),S=m.includes("!"),P=S?m.replace("!",""):m,A=this.buildRuleForClassWithoutSelector(P,S||n);if(A){let C=at(e),k;return o.startsWith("group-hover/")?k=`.group\\/${o.replace("group-hover/","")}:hover .${C} { ${A} }`:k=`.group:hover .${C} { ${A} }`,this.mediaQueries[r]||(this.mediaQueries[r]=[]),this.mediaQueries[r].push(k),!0}}if(o.startsWith("peer-")){let m=l.slice(1).join(":"),S=m.includes("!"),P=S?m.replace("!",""):m,A=this.buildRuleForClassWithoutSelector(P,S||n);if(A){let C=at(e),D=`${Fi(o)}.${C} { ${A} }`;return this.mediaQueries[r]||(this.mediaQueries[r]=[]),this.mediaQueries[r].push(D),!0}}let u=Object.keys(Jr),f=["hover","focus","active","visited","disabled","checked","focus-visible","invalid","required","read-only","indeterminate","valid","in-range","out-of-range","focus-within","target","before","after"],d=/^nth-(\d+)$|^nth-last-(\d+)$|^nth-of-type-(\d+)$|^nth-last-of-type-(\d+)$/.test(o);if(u.includes(o)||f.includes(o)||d){let m=l[l.length-1],S=l.slice(0,-1),P=m.includes("!"),A=P?m.replace("!",""):m,C=this.buildRuleForClassWithoutSelector(A,P||n);if(C){let k=at(e),D="";for(let B of S){let U=Fi(B);["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop"].includes(B)?D+=`::${U}`:D+=U.startsWith(":")?U:`:${U}`}let L=`.${k}${D} { ${C} }`;return this.mediaQueries[r]||(this.mediaQueries[r]=[]),this.mediaQueries[r].push(L),!0}}}let c=this.buildRuleForClassWithoutSelector(a,n);if(c){let o=at(e),f=a.includes("space-x-")||a.includes("space-y-")||a.includes("divide-x")||a.includes("divide-y")||a.includes("divide-color-")||a.includes("divide-style-")?`:where(.${o} > :not(:last-child)) { ${c} }`:`.${o} { ${c} }`;return this.mediaQueries[r]||(this.mediaQueries[r]=[]),this.mediaQueries[r].push(f),!0}}if(e.startsWith(`dark:${r}:*:`)){let s=e.slice(`dark:${r}:*:`.length),n=s.includes("!"),a=n?s.replace("!",""):s,l=this.buildRuleForClassWithoutSelector(a,n);if(l){let o=`.dark .${at(e)} > * { ${l} }`,u=`${r}_dark`;return this.mediaQueries[u]||(this.mediaQueries[u]=[]),this.mediaQueries[u].push(o),!0}}if(e.startsWith(`dark:${r}:`)){let s=e.slice(`dark:${r}:`.length),n=s.split(":");if(n.length>=2){let o=n[0];if(o==="group-hover"||o.startsWith("group-hover/")){let m=n.slice(1).join(":"),S=m.includes("!"),P=S?m.replace("!",""):m,A=this.buildRuleForClassWithoutSelector(P,S);if(A){let C=at(e),k;o.startsWith("group-hover/")?k=`.dark .group\\/${o.replace("group-hover/","")}:hover .${C} { ${A} }`:k=`.dark .group:hover .${C} { ${A} }`;let D=`${r}_dark`;return this.mediaQueries[D]||(this.mediaQueries[D]=[]),this.mediaQueries[D].push(k),!0}}if(o.startsWith("peer-")){let m=n.slice(1).join(":"),S=m.includes("!"),P=S?m.replace("!",""):m,A=this.buildRuleForClassWithoutSelector(P,S);if(A){let C=at(e),D=`.dark ${Fi(o)}.${C} { ${A} }`,L=`${r}_dark`;return this.mediaQueries[L]||(this.mediaQueries[L]=[]),this.mediaQueries[L].push(D),!0}}let u=Object.keys(Jr),f=["hover","focus","active","visited","disabled","checked","focus-visible","invalid","required","read-only","indeterminate","valid","in-range","out-of-range","focus-within","target"],d=/^nth-(\d+)$|^nth-last-(\d+)$|^nth-of-type-(\d+)$|^nth-last-of-type-(\d+)$/.test(o);if(u.includes(o)||f.includes(o)||d){let m=n[n.length-1],S=n.slice(0,-1),P=m.includes("!"),A=P?m.replace("!",""):m,C=this.buildRuleForClassWithoutSelector(A,P);if(C){let k=at(e),D="";for(let U of S){let oe=Fi(U);D+=oe.startsWith(":")?oe:`:${oe}`}let L=`.dark .${k}${D} { ${C} }`,B=`${r}_dark`;return this.mediaQueries[B]||(this.mediaQueries[B]=[]),this.mediaQueries[B].push(L),!0}}}let a=s.includes("!"),l=a?s.replace("!",""):s,c=this.buildRuleForClassWithoutSelector(l,a);if(c){let o=at(e),f=l.includes("space-x-")||l.includes("space-y-")||l.includes("divide-x")||l.includes("divide-y")||l.includes("divide-color-")||l.includes("divide-style-")?`.dark :where(.${o} > :not(:last-child)) { ${c} }`:`.dark .${o} { ${c} }`,d=`${r}_dark`;return this.mediaQueries[d]||(this.mediaQueries[d]=[]),this.mediaQueries[d].push(f),!0}}}return!1}handleDarkMode(e){if(!e.startsWith("dark:"))return!1;let i=e.replace("dark:",""),{breakpoints:r}=this.config;for(let l of Object.keys(r))if(i.startsWith(`${l}:`))return!1;let s=i.includes("!"),n=s?i.replace("!",""):i,a=this.buildRuleForClassWithoutSelector(n,s);if(a){let l=at(e),o=n.includes("space-x-")||n.includes("space-y-")||n.includes("divide-x")||n.includes("divide-y")||n.includes("divide-color-")||n.includes("divide-style-")?`.dark :where(.${l} > :not(:last-child)) { ${a} }`:`.dark .${l} { ${a} }`;return this.processed.has(l)||(this.output.dark+=`${o}
122
- `,this.processed.add(l)),!0}return!1}buildRuleForClass(e){let i=e.includes("!"),r=i?e.replace("!",""):e,{layout:s,flexGrid:n,sizing:a,typography:l,background:c,border:o,effects:u,filters:f,table:d,transition:m,transforms:S,interactivity:P,svg:A}=this.config,C={layout:s,flexGrid:n,sizing:a,typography:l,background:c,border:o,effects:u,filters:f,table:d,transition:m,transforms:S,interactivity:P,svg:A};for(let[k,D]of Object.entries(C))if(!(!D||typeof D!="object")){for(let[L,B]of Object.entries(D))if(typeof B=="object"&&B!==null&&B[r])return`.${at(e)} { ${L}: ${B[r]}${i?" !important":""}; }`}for(let{prefix:k,prop:D,transform:L}of this.utilityRules)if(r.startsWith(k)){let B=r.replace(k,""),U=L(B);if(U===null)continue;if(typeof U=="object"){let oe=Object.entries(U).map(([ee,Pe])=>`${ee}: ${Pe}${i?" !important":""}`).join("; ");return`.${at(e)} { ${oe}; }`}else{U=`${U}${i?" !important":""}`;let oe=at(e);if(Array.isArray(D)){let me=D.map(ee=>`${ee}: ${U}`).join("; ");return`.${oe} { ${me}; }`}else return`.${oe} { ${D}: ${U}; }`}}return null}buildRuleForClassWithoutSelector(e,i=!1){let r=e,{layout:s,flexGrid:n,sizing:a,typography:l,background:c,border:o,effects:u,filters:f,table:d,transition:m,transforms:S,interactivity:P,svg:A}=this.config,C={layout:s,flexGrid:n,sizing:a,typography:l,background:c,border:o,effects:u,filters:f,table:d,transition:m,transforms:S,interactivity:P,svg:A};for(let[k,D]of Object.entries(C))if(!(!D||typeof D!="object")){for(let[L,B]of Object.entries(D))if(typeof B=="object"&&B!==null){if(L==="shadow"&&r.startsWith("shadow-")){let U=r.replace("shadow-","");if(B[U]){let oe=B[U],me;return U.startsWith("inset-")?me="--uni-inset-shadow":me="--uni-shadow",`${me}: ${oe}${i?" !important":""}; box-shadow: var(--uni-inset-shadow, 0 0 #0000), var(--uni-inset-ring-shadow, 0 0 #0000), var(--uni-ring-shadow, 0 0 #0000), var(--uni-shadow, 0 0 #0000)${i?" !important":""};`}}if(L==="dropShadow"&&r.startsWith("drop-shadow-")){let U=r.replace("drop-shadow-","");if(B[U])return`--uni-drop-shadow: drop-shadow(${B[U]})${i?" !important":""}; filter: var(--uni-blur) var(--uni-drop-shadow) var(--uni-brightness) var(--uni-contrast) var(--uni-grayscale) var(--uni-hue-rotate) var(--uni-invert) var(--uni-saturate) var(--uni-sepia)${i?" !important":""};`}if(B[r])return`${L}: ${B[r]}${i?" !important":""};`}}for(let{prefix:k,prop:D,transform:L}of this.utilityRules)if(r.startsWith(k)){let B=r.replace(k,""),U=L(B);if(U===null||!(typeof U=="object"?Object.values(U).every(ee=>this.isValidCSSValue(ee)):this.isValidCSSValue(U)))continue;let me=!0;if(typeof U=="object"?me=Object.entries(U).every(([ee,Pe])=>this.isValidPropertyValue(ee,Pe)):Array.isArray(D)?me=D.every(ee=>this.isValidPropertyValue(ee,U)):me=this.isValidPropertyValue(D,U),!me)continue;if(typeof U=="object")return Object.entries(U).map(([ee,Pe])=>`${ee}: ${Pe}${i?" !important":""}`).join("; ")+";";if(U=`${U}${i?" !important":""}`,Array.isArray(D))return D.map(ee=>`${ee}: ${U}`).join("; ")+";";if(rl.includes(D)){let ee=rl.map(Pe=>`var(${Pe})`).join(" ");return`${D}: ${U}; backdrop-filter: ${ee}${i?" !important":""};`}else if(il.includes(D)){let ee=il.map(Pe=>`var(${Pe})`).join(" ");return`${D}: ${U}; filter: ${ee}${i?" !important":""};`}else{if(Tb.includes(D))return`${D}: ${U}; box-shadow: var(--uni-inset-shadow, 0 0 #0000), var(--uni-inset-ring-shadow, 0 0 #0000), var(--uni-ring-shadow, 0 0 #0000), var(--uni-shadow, 0 0 #0000)${i?" !important":""};`;if(sl.includes(D)){let ee=sl.map(Pe=>`var(${Pe})`).join(" ");return`${D}: ${U}; transform: ${ee}${i?" !important":""};`}else if(nl.includes(D)){let ee=nl.map(Pe=>`var(${Pe})`).join(" ");return`${D}: ${U}; scale: ${ee}${i?" !important":""};`}else if(al.includes(D)){let ee=al.map(Pe=>`var(${Pe})`).join(" ");return`${D}: ${U}; translate: ${ee}${i?" !important":""};`}}return`${D}: ${U};`}return null}};function gb({skipBase:t=!1,content:e=null}={}){let i=dG(),s=(t?mb(db,i):mb(hb,db,i)).theme?.extend||{},{sizing:n={},spacing:a={},colors:l={},breakpoints:c={},layout:o={},flexGrid:u={},typography:f={},background:d={},border:m={},effects:S={},filters:P={},table:A={},transition:C={},transforms:k={},interactivity:D={},svg:L={},rootClass:B={}}=s,oe=(e||i.content||["**/*.{html,js,jsx,ts,tsx,vue}"]).flatMap(pe=>pG.sync(pe,{cwd:process.cwd(),absolute:!0,ignore:["**/node_modules/**","**/dist/**","**/build/**","**/.vite/**","**/.next/**","**/.nuxt/**","**/coverage/**"]})).filter(pe=>zn.existsSync(pe)&&zn.statSync(pe).isFile()),me=Array.from(new Set(oe.flatMap(pe=>{if(pe.endsWith(".js")||pe.endsWith(".jsx")||pe.endsWith(".ts")||pe.endsWith(".tsx"))try{return hG(pe)}catch{return yb(pe)}return yb(pe)}))),ee="";t?(Object.keys(l).length||Object.keys(a).length||Object.keys(B).length)&&(ee=`:root {
123
- ${Object.entries({...l,...a,...B}).map(([pe,Je])=>` --${ht(pe)}: ${Je};`).join(`
122
+ `,this.processed.add(l)),!0}return!1}buildRuleForClass(e){let i=e.includes("!"),r=i?e.replace("!",""):e,{layout:s,flexGrid:n,sizing:a,typography:l,background:c,border:o,effects:u,filters:f,table:d,transition:m,transforms:S,interactivity:P,svg:A}=this.config,C={layout:s,flexGrid:n,sizing:a,typography:l,background:c,border:o,effects:u,filters:f,table:d,transition:m,transforms:S,interactivity:P,svg:A};for(let[k,D]of Object.entries(C))if(!(!D||typeof D!="object")){for(let[L,B]of Object.entries(D))if(typeof B=="object"&&B!==null&&B[r])return`.${at(e)} { ${L}: ${B[r]}${i?" !important":""}; }`}for(let{prefix:k,prop:D,transform:L}of this.utilityRules)if(r.startsWith(k)){let B=r.replace(k,""),U=L(B);if(U===null)continue;if(typeof U=="object"){let oe=Object.entries(U).map(([ee,Pe])=>`${ee}: ${Pe}${i?" !important":""}`).join("; ");return`.${at(e)} { ${oe}; }`}else{U=`${U}${i?" !important":""}`;let oe=at(e);if(Array.isArray(D)){let me=D.map(ee=>`${ee}: ${U}`).join("; ");return`.${oe} { ${me}; }`}else return`.${oe} { ${D}: ${U}; }`}}return null}buildRuleForClassWithoutSelector(e,i=!1){let r=e,{layout:s,flexGrid:n,sizing:a,typography:l,background:c,border:o,effects:u,filters:f,table:d,transition:m,transforms:S,interactivity:P,svg:A}=this.config,C={layout:s,flexGrid:n,sizing:a,typography:l,background:c,border:o,effects:u,filters:f,table:d,transition:m,transforms:S,interactivity:P,svg:A};for(let[k,D]of Object.entries(C))if(!(!D||typeof D!="object")){for(let[L,B]of Object.entries(D))if(typeof B=="object"&&B!==null){if(L==="shadow"&&r.startsWith("shadow-")){let U=r.replace("shadow-","");if(B[U]){let oe=B[U],me;return U.startsWith("inset-")?me="--uni-inset-shadow":me="--uni-shadow",`${me}: ${oe}${i?" !important":""}; box-shadow: var(--uni-inset-shadow, 0 0 #0000), var(--uni-inset-ring-shadow, 0 0 #0000), var(--uni-ring-shadow, 0 0 #0000), var(--uni-shadow, 0 0 #0000)${i?" !important":""};`}}if(L==="dropShadow"&&r.startsWith("drop-shadow-")){let U=r.replace("drop-shadow-","");if(B[U])return`--uni-drop-shadow: drop-shadow(${B[U]})${i?" !important":""}; filter: var(--uni-blur) var(--uni-drop-shadow) var(--uni-brightness) var(--uni-contrast) var(--uni-grayscale) var(--uni-hue-rotate) var(--uni-invert) var(--uni-saturate) var(--uni-sepia)${i?" !important":""};`}if(B[r])return`${L}: ${B[r]}${i?" !important":""};`}}for(let{prefix:k,prop:D,transform:L}of this.utilityRules)if(r.startsWith(k)){let B=r.replace(k,""),U=L(B);if(U===null||!(typeof U=="object"?Object.values(U).every(ee=>this.isValidCSSValue(ee)):this.isValidCSSValue(U)))continue;let me=!0;if(typeof U=="object"?me=Object.entries(U).every(([ee,Pe])=>this.isValidPropertyValue(ee,Pe)):Array.isArray(D)?me=D.every(ee=>this.isValidPropertyValue(ee,U)):me=this.isValidPropertyValue(D,U),!me)continue;if(typeof U=="object")return Object.entries(U).map(([ee,Pe])=>`${ee}: ${Pe}${i?" !important":""}`).join("; ")+";";if(U=`${U}${i?" !important":""}`,Array.isArray(D))return D.map(ee=>`${ee}: ${U}`).join("; ")+";";if(rl.includes(D)){let ee=rl.map(Pe=>`var(${Pe})`).join(" ");return`${D}: ${U}; backdrop-filter: ${ee}${i?" !important":""};`}else if(il.includes(D)){let ee=il.map(Pe=>`var(${Pe})`).join(" ");return`${D}: ${U}; filter: ${ee}${i?" !important":""};`}else{if(Tb.includes(D))return`${D}: ${U}; box-shadow: var(--uni-inset-shadow, 0 0 #0000), var(--uni-inset-ring-shadow, 0 0 #0000), var(--uni-ring-shadow, 0 0 #0000), var(--uni-shadow, 0 0 #0000)${i?" !important":""};`;if(sl.includes(D)){let ee=sl.map(Pe=>`var(${Pe})`).join(" ");return`${D}: ${U}; transform: ${ee}${i?" !important":""};`}else if(nl.includes(D)){let ee=nl.map(Pe=>`var(${Pe})`).join(" ");return`${D}: ${U}; scale: ${ee}${i?" !important":""};`}else if(al.includes(D)){let ee=al.map(Pe=>`var(${Pe})`).join(" ");return`${D}: ${U}; translate: ${ee}${i?" !important":""};`}}return`${D}: ${U};`}return null}};function gb({skipBase:t=!1,content:e=null}={}){let i=dG(),s=(t?mb(db,i):mb(hb,db,i)).theme?.extend||{},{sizing:n={},spacing:a={},colors:l={},breakpoints:c={},layout:o={},flexGrid:u={},typography:f={},background:d={},border:m={},effects:S={},filters:P={},table:A={},transition:C={},transforms:k={},interactivity:D={},svg:L={},rootClass:B={}}=s,oe=(e||i.content||["**/*.{html,js,jsx,ts,tsx,vue}"]).flatMap(le=>pG.sync(le,{cwd:process.cwd(),absolute:!0,ignore:["**/node_modules/**","**/dist/**","**/build/**","**/.vite/**","**/.next/**","**/.nuxt/**","**/coverage/**"]})).filter(le=>zn.existsSync(le)&&zn.statSync(le).isFile()),me=Array.from(new Set(oe.flatMap(le=>{if(le.endsWith(".js")||le.endsWith(".jsx")||le.endsWith(".ts")||le.endsWith(".tsx"))try{return hG(le)}catch{return yb(le)}return yb(le)}))),ee="";t?(Object.keys(l).length||Object.keys(a).length||Object.keys(B).length)&&(ee=`:root {
123
+ ${Object.entries({...l,...a,...B}).map(([le,Je])=>` --${ht(le)}: ${Je};`).join(`
124
124
  `)}
125
125
  }
126
126
  `):ee=bG()+`:root {
127
- ${Object.entries({...l,...a,...B}).map(([pe,Je])=>` --${ht(pe)}: ${Je};`).join(`
127
+ ${Object.entries({...l,...a,...B}).map(([le,Je])=>` --${ht(le)}: ${Je};`).join(`
128
128
  `)}
129
129
  }
130
- `;let Pe=t&&Object.keys(B).length===0?hb.theme?.extend?.rootClass||{}:B,Ct=xG(a,Pe),ze=new xh({layout:o,flexGrid:u,sizing:n,typography:f,background:d,border:m,effects:S,filters:P,table:A,transition:C,transforms:k,interactivity:D,svg:L,breakpoints:c,spacing:a,colors:l,rootClass:Pe},Ct);if(me.filter(pe=>/^[a-zA-Z0-9_\-\[\]\/:%\.!]+$/.test(pe)).forEach(pe=>ze.processClass(pe)),ee+=ze.output.main,ze.output.dark){ee+=ze.output.dark;let pe=ze.output.dark.replace(/\.dark\s+/g,"").split(`
130
+ `;let Pe=t&&Object.keys(B).length===0?hb.theme?.extend?.rootClass||{}:B,Ct=xG(a,Pe),ze=new xh({layout:o,flexGrid:u,sizing:n,typography:f,background:d,border:m,effects:S,filters:P,table:A,transition:C,transforms:k,interactivity:D,svg:L,breakpoints:c,spacing:a,colors:l,rootClass:Pe},Ct);if(me.map(le=>le.trim()).map(le=>le.replace(/['"`\\]/g,"")).filter(le=>le.length>0).filter(le=>/^[a-zA-Z0-9_\-\[\]\/:%\.!]+$/.test(le)).forEach(le=>ze.processClass(le)),ee+=ze.output.main,ze.output.dark){ee+=ze.output.dark;let le=ze.output.dark.replace(/\.dark\s+/g,"").split(`
131
131
  `).map(Je=>Je.trim()&&Je.includes("{")?`html[data-theme="system"] ${Je.trim()}`:Je).join(`
132
132
  `);ee+=`@media (prefers-color-scheme: dark) {
133
- ${pe}
133
+ ${le}
134
134
  }
135
- `}let Ot=Object.keys(c).filter(pe=>pe!=="portrait"&&pe!=="landscape").sort((pe,Je)=>parseFloat(c[pe])-parseFloat(c[Je]));return Ot.forEach(pe=>{let Je=ze.mediaQueries[pe]||[],Nt=ze.mediaQueries[`${pe}_dark`]||[];(Je.length>0||Nt.length>0)&&(ee+=`@media (min-width: ${c[pe]}) {
135
+ `}let Ot=Object.keys(c).filter(le=>le!=="portrait"&&le!=="landscape").sort((le,Je)=>parseFloat(c[le])-parseFloat(c[Je]));return Ot.forEach(le=>{let Je=ze.mediaQueries[le]||[],Nt=ze.mediaQueries[`${le}_dark`]||[];(Je.length>0||Nt.length>0)&&(ee+=`@media (min-width: ${c[le]}) {
136
136
  `,Je.length>0&&(ee+=` ${Je.join(`
137
137
  `)}
138
138
  `),Nt.length>0&&(ee+=` ${Nt.join(`
139
139
  `)}
140
140
  `),ee+=`}
141
- `)}),Ot.forEach(pe=>{let Je=ze.mediaQueries[`${pe}_dark`]||[],Nt=ze.mediaQueries[`${pe}_darkmedia`]||[],Y=[];if(Je.length>0){let z=Je.map(F=>F.replace(/\.dark\s+/,'html[data-theme="system"] '));Y.push(...z)}Nt.length>0&&Y.push(...Nt),Y.length>0&&(ee+=`@media (min-width: ${c[pe]}) and (prefers-color-scheme: dark) {
141
+ `)}),Ot.forEach(le=>{let Je=ze.mediaQueries[`${le}_dark`]||[],Nt=ze.mediaQueries[`${le}_darkmedia`]||[],Y=[];if(Je.length>0){let z=Je.map(F=>F.replace(/\.dark\s+/,'html[data-theme="system"] '));Y.push(...z)}Nt.length>0&&Y.push(...Nt),Y.length>0&&(ee+=`@media (min-width: ${c[le]}) and (prefers-color-scheme: dark) {
142
142
  ${Y.join(`
143
143
  `)}
144
144
  }
145
- `)}),["portrait","landscape"].forEach(pe=>{ze.mediaQueries[pe]?.length&&(ee+=`@media (orientation: ${pe}) {
146
- ${ze.mediaQueries[pe].join(`
145
+ `)}),["portrait","landscape"].forEach(le=>{ze.mediaQueries[le]?.length&&(ee+=`@media (orientation: ${le}) {
146
+ ${ze.mediaQueries[le].join(`
147
147
  `)}
148
148
  }
149
149
  `)}),ze.mediaQueries.print?.length&&(ee+=`@media print {