@stacksjs/buddy 0.64.5 → 0.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/chunk-1bcxd9nx.js +5 -0
  2. package/dist/chunk-1bcxd9nx.js.map +17 -0
  3. package/dist/chunk-3gvx3tap.js +5 -0
  4. package/dist/{chunk-wmfxrbxe.js.map → chunk-3gvx3tap.js.map} +1 -1
  5. package/dist/chunk-5mkzknp4.js +5 -0
  6. package/dist/{chunk-4b0aba5k.js.map → chunk-5mkzknp4.js.map} +13 -13
  7. package/dist/chunk-a3d48jzd.js +15 -0
  8. package/dist/chunk-a3d48jzd.js.map +164 -0
  9. package/dist/chunk-a6ba4vgs.js +5 -0
  10. package/dist/{chunk-6qhap62a.js.map → chunk-a6ba4vgs.js.map} +3 -3
  11. package/dist/{chunk-5eg9jpdw.js → chunk-agapayce.js} +3 -3
  12. package/dist/{chunk-5eg9jpdw.js.map → chunk-agapayce.js.map} +1 -1
  13. package/dist/chunk-b9d377d9.js +5 -0
  14. package/dist/{chunk-qkk1z4t3.js.map → chunk-b9d377d9.js.map} +9 -9
  15. package/dist/chunk-bh61bx6h.js +4 -0
  16. package/dist/{chunk-89jmvbwz.js.map → chunk-bh61bx6h.js.map} +2 -2
  17. package/dist/chunk-fqrjh7j8.js +5 -0
  18. package/dist/chunk-fqrjh7j8.js.map +10 -0
  19. package/dist/chunk-jkt9jxar.js +9 -0
  20. package/dist/{chunk-9f43d1kt.js.map → chunk-jkt9jxar.js.map} +3 -3
  21. package/dist/chunk-k1q2z202.js +4 -0
  22. package/dist/chunk-k1q2z202.js.map +16 -0
  23. package/dist/chunk-mmjggjd5.js +849 -0
  24. package/dist/chunk-mmjggjd5.js.map +240 -0
  25. package/dist/chunk-mxwvrbdh.js +6 -0
  26. package/dist/{chunk-a365bfhw.js.map → chunk-mxwvrbdh.js.map} +20 -17
  27. package/dist/chunk-n55kahn5.js +5 -0
  28. package/dist/{chunk-6a30kt0n.js.map → chunk-n55kahn5.js.map} +3 -3
  29. package/dist/chunk-pbpgcz3v.js +5 -0
  30. package/dist/{chunk-1f6t66bt.js.map → chunk-pbpgcz3v.js.map} +4 -4
  31. package/dist/chunk-sadghty0.js +5 -0
  32. package/dist/{chunk-0aqj22dq.js.map → chunk-sadghty0.js.map} +4 -4
  33. package/dist/chunk-smzpmhmp.js +11 -0
  34. package/dist/chunk-smzpmhmp.js.map +10 -0
  35. package/dist/chunk-w4zypt02.js +5 -0
  36. package/dist/{chunk-yxrf386g.js.map → chunk-w4zypt02.js.map} +4 -4
  37. package/dist/chunk-ywfsnx7v.js +5 -0
  38. package/dist/chunk-ywfsnx7v.js.map +22 -0
  39. package/dist/chunk-yxs8vtg9.js +5 -0
  40. package/dist/{chunk-b6hb11ta.js.map → chunk-yxs8vtg9.js.map} +2 -2
  41. package/dist/chunk-z7609s4h.js +12 -0
  42. package/dist/{chunk-knp3sj60.js.map → chunk-z7609s4h.js.map} +2 -2
  43. package/dist/cli.d.ts +1 -0
  44. package/dist/cli.js +2 -2
  45. package/dist/cli.js.map +3 -3
  46. package/dist/commands/add.d.ts +2 -0
  47. package/dist/commands/build.d.ts +2 -0
  48. package/dist/commands/changelog.d.ts +2 -0
  49. package/dist/commands/clean.d.ts +2 -0
  50. package/dist/commands/cloud.d.ts +2 -0
  51. package/dist/commands/commit.d.ts +2 -0
  52. package/dist/commands/configure.d.ts +2 -0
  53. package/dist/commands/create.d.ts +2 -0
  54. package/dist/commands/deploy.d.ts +2 -0
  55. package/dist/commands/dev.d.ts +3 -0
  56. package/dist/commands/dns.d.ts +2 -0
  57. package/dist/commands/domains.d.ts +2 -0
  58. package/dist/commands/fresh.d.ts +2 -0
  59. package/dist/commands/generate.d.ts +2 -0
  60. package/dist/commands/http.d.ts +2 -0
  61. package/dist/commands/index.d.ts +33 -0
  62. package/dist/commands/install.d.ts +2 -0
  63. package/dist/commands/key.d.ts +2 -0
  64. package/dist/commands/lint.d.ts +2 -0
  65. package/dist/commands/list.d.ts +2 -0
  66. package/dist/commands/make.d.ts +2 -0
  67. package/dist/commands/migrate.d.ts +2 -0
  68. package/dist/commands/outdated.d.ts +2 -0
  69. package/dist/commands/ports.d.ts +2 -0
  70. package/dist/commands/prepublish.d.ts +2 -0
  71. package/dist/commands/projects.d.ts +2 -0
  72. package/dist/commands/release.d.ts +2 -0
  73. package/dist/commands/route.d.ts +2 -0
  74. package/dist/commands/seed.d.ts +2 -0
  75. package/dist/commands/setup.d.ts +4 -0
  76. package/dist/commands/test.d.ts +2 -0
  77. package/dist/commands/tinker.d.ts +2 -0
  78. package/dist/commands/types.d.ts +2 -0
  79. package/dist/commands/upgrade.d.ts +2 -0
  80. package/dist/commands/version.d.ts +2 -0
  81. package/dist/custom-cli.d.ts +1 -0
  82. package/dist/index.d.ts +1 -0
  83. package/dist/index.js +2 -2
  84. package/dist/index.js.map +1 -1
  85. package/dist/stacks +0 -0
  86. package/package.json +50 -56
  87. package/src/cli.ts +10 -7
  88. package/src/commands/add.ts +2 -2
  89. package/src/commands/build.ts +50 -32
  90. package/src/commands/changelog.ts +2 -2
  91. package/src/commands/clean.ts +2 -2
  92. package/src/commands/cloud.ts +31 -12
  93. package/src/commands/commit.ts +2 -2
  94. package/src/commands/configure.ts +4 -3
  95. package/src/commands/create.ts +3 -3
  96. package/src/commands/deploy.ts +21 -10
  97. package/src/commands/dev.ts +38 -25
  98. package/src/commands/dns.ts +2 -2
  99. package/src/commands/domains.ts +2 -2
  100. package/src/commands/fresh.ts +2 -2
  101. package/src/commands/generate.ts +27 -3
  102. package/src/commands/http.ts +2 -2
  103. package/src/commands/index.ts +3 -3
  104. package/src/commands/install.ts +2 -2
  105. package/src/commands/key.ts +2 -2
  106. package/src/commands/lint.ts +7 -10
  107. package/src/commands/list.ts +2 -2
  108. package/src/commands/make.ts +12 -12
  109. package/src/commands/migrate.ts +2 -2
  110. package/src/commands/outdated.ts +3 -3
  111. package/src/commands/ports.ts +26 -16
  112. package/src/commands/prepublish.ts +2 -2
  113. package/src/commands/projects.ts +6 -4
  114. package/src/commands/release.ts +4 -3
  115. package/src/commands/route.ts +2 -2
  116. package/src/commands/seed.ts +2 -2
  117. package/src/commands/setup.ts +11 -7
  118. package/src/commands/test.ts +77 -54
  119. package/src/commands/tinker.ts +2 -2
  120. package/src/commands/types.ts +2 -2
  121. package/src/commands/upgrade.ts +20 -13
  122. package/src/commands/version.ts +2 -2
  123. package/src/custom-cli.ts +3 -2
  124. package/dist/chunk-0aqj22dq.js +0 -5
  125. package/dist/chunk-1f6t66bt.js +0 -5
  126. package/dist/chunk-4b0aba5k.js +0 -5
  127. package/dist/chunk-6a30kt0n.js +0 -5
  128. package/dist/chunk-6qhap62a.js +0 -5
  129. package/dist/chunk-89jmvbwz.js +0 -4
  130. package/dist/chunk-953dm442.js +0 -5
  131. package/dist/chunk-953dm442.js.map +0 -17
  132. package/dist/chunk-9f43d1kt.js +0 -9
  133. package/dist/chunk-a365bfhw.js +0 -6
  134. package/dist/chunk-b6hb11ta.js +0 -5
  135. package/dist/chunk-gc8bvwm2.js +0 -5
  136. package/dist/chunk-gc8bvwm2.js.map +0 -22
  137. package/dist/chunk-kkb03h19.js +0 -5
  138. package/dist/chunk-kkb03h19.js.map +0 -10
  139. package/dist/chunk-knp3sj60.js +0 -12
  140. package/dist/chunk-p9n9dek4.js +0 -21
  141. package/dist/chunk-p9n9dek4.js.map +0 -170
  142. package/dist/chunk-pe71p33y.js +0 -5
  143. package/dist/chunk-pe71p33y.js.map +0 -16
  144. package/dist/chunk-qkk1z4t3.js +0 -5
  145. package/dist/chunk-s03s5x4g.js +0 -7
  146. package/dist/chunk-s03s5x4g.js.map +0 -60
  147. package/dist/chunk-wmfxrbxe.js +0 -5
  148. package/dist/chunk-yxrf386g.js +0 -5
@@ -0,0 +1,849 @@
1
+ import{K as LZ}from"./chunk-z7609s4h.js";import{$ as $Z,L as mZ,M as xZ,N as lZ,O as cZ,P as YF,Q as qF,R as aZ,S as rZ,T as XZ,U as HZ,V as ZZ,W as VZ,X as W6,Y as iZ,Z as KZ,_ as BZ,aa as RZ,ba as uZ,ca as dZ,da as KV,ea as BV,fa as sZ,ga as MZ,ha as pZ,ia as qZ,ja as oZ,ka as AZ,la as CZ,ma as fZ,na as SZ,oa as PZ,pa as bZ,qa as hZ}from"./chunk-a3d48jzd.js";import{ra as $F,sa as a0}from"./chunk-k1q2z202.js";import{Aa as MF,Ba as nZ,Ca as FZ,Da as jZ,Ha as $V,Ma as JV,Na as XV,Oa as T,Pa as HV,Ra as ZV,Sa as GV,Ta as k,Ua as VV,Va as DZ,Wa as IZ,Ya as _Z,Za as gZ,_a as QV,ab as YZ,bb as N,ta as OZ,ua as vZ,za as RF}from"./chunk-mxwvrbdh.js";import{Ab as JK1,Bb as XK1,xb as H2,yb as zK1,zb as S}from"./chunk-3gvx3tap.js";var NV=S((VG,wV)=>{(function(G,J){typeof VG==="object"&&typeof wV!=="undefined"?J(VG):typeof define==="function"&&define.amd?define(["exports"],J):(G=typeof globalThis!=="undefined"?globalThis:G||self,J(G.setArray={}))})(VG,function(G){class J{constructor(){this._indexes={__proto__:null},this.array=[]}}function X(Y){return Y}function H(Y,W){return X(Y)._indexes[W]}function Z(Y,W){const z=H(Y,W);if(z!==void 0)return z;const{array:B,_indexes:q}=X(Y),F=B.push(W);return q[W]=F-1}function V(Y){const{array:W,_indexes:z}=X(Y);if(W.length===0)return;const B=W.pop();z[B]=void 0}function Q(Y,W){const z=H(Y,W);if(z===void 0)return;const{array:B,_indexes:q}=X(Y);for(let F=z+1;F<B.length;F++){const j=B[F];B[F-1]=j,q[j]--}q[W]=void 0,B.pop()}G.SetArray=J,G.get=H,G.pop=V,G.put=Z,G.remove=Q,Object.defineProperty(G,"__esModule",{value:!0})})});var JX=S((QG,kV)=>{(function(G,J){typeof QG==="object"&&typeof kV!=="undefined"?J(QG):typeof define==="function"&&define.amd?define(["exports"],J):(G=typeof globalThis!=="undefined"?globalThis:G||self,J(G.sourcemapCodec={}))})(QG,function(G){const J=",".charCodeAt(0),X=";".charCodeAt(0),Z=new Uint8Array(64),V=new Uint8Array(128);for(let i=0;i<"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".length;i++){const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(i);Z[i]=u,V[u]=i}function Q(i,u){let _=0,b=0,Y1=0;do{const r=i.next();Y1=V[r],_|=(Y1&31)<<b,b+=5}while(Y1&32);const R1=_&1;if(_>>>=1,R1)_=-2147483648|-_;return u+_}function Y(i,u,_){let b=u-_;b=b<0?-b<<1|1:b<<1;do{let Y1=b&31;if(b>>>=5,b>0)Y1|=32;i.write(Z[Y1])}while(b>0);return u}function W(i,u){if(i.pos>=u)return!1;return i.peek()!==J}const z=16384,B=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(i){return Buffer.from(i.buffer,i.byteOffset,i.byteLength).toString()}}:{decode(i){let u="";for(let _=0;_<i.length;_++)u+=String.fromCharCode(i[_]);return u}};class q{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(z)}write(i){const{buffer:u}=this;if(u[this.pos++]=i,this.pos===z)this.out+=B.decode(u),this.pos=0}flush(){const{buffer:i,out:u,pos:_}=this;return _>0?u+B.decode(i.subarray(0,_)):u}}class F{constructor(i){this.pos=0,this.buffer=i}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(i){const{buffer:u,pos:_}=this,b=u.indexOf(i,_);return b===-1?u.length:b}}const j=[];function f(i){const{length:u}=i,_=new F(i),b=[],Y1=[];let R1=0;for(;_.pos<u;_.pos++){R1=Q(_,R1);const r=Q(_,0);if(!W(_,u)){const H1=Y1.pop();H1[2]=R1,H1[3]=r;continue}const l=Q(_,0),X1=Q(_,0)&1?[R1,r,0,0,l,Q(_,0)]:[R1,r,0,0,l];let J1=j;if(W(_,u)){J1=[];do{const H1=Q(_,0);J1.push(H1)}while(W(_,u))}X1.vars=J1,b.push(X1),Y1.push(X1)}return b}function y(i){const u=new q;for(let _=0;_<i.length;)_=w(i,_,u,[0]);return u.flush()}function w(i,u,_,b){const Y1=i[u],{0:R1,1:r,2:l,3:p,4:n,vars:X1}=Y1;if(u>0)_.write(J);b[0]=Y(_,R1,b[0]),Y(_,r,0),Y(_,n,0);const J1=Y1.length===6?1:0;if(Y(_,J1,0),Y1.length===6)Y(_,Y1[5],0);for(let H1 of X1)Y(_,H1,0);for(u++;u<i.length;){const H1=i[u],{0:B1,1:q1}=H1;if(B1>l||B1===l&&q1>=p)break;u=w(i,u,_,b)}return _.write(J),b[0]=Y(_,l,b[0]),Y(_,p,0),u}function v(i){const{length:u}=i,_=new F(i),b=[],Y1=[];let R1=0,r=0,l=0,p=0,n=0,X1=0,J1=0,H1=0;do{const B1=_.indexOf(";");let q1=0;for(;_.pos<B1;_.pos++){if(q1=Q(_,q1),!W(_,B1)){const X2=Y1.pop();X2[2]=R1,X2[3]=q1;continue}const e1=Q(_,0),b2=e1&1,D2=e1&2,L2=e1&4;let r2=null,h2=j,Q2;if(b2){const X2=Q(_,r);l=Q(_,r===X2?l:0),r=X2,Q2=[R1,q1,0,0,X2,l]}else Q2=[R1,q1,0,0];if(Q2.isScope=!!L2,D2){const X2=p,X0=n;p=Q(_,p);const m0=X2===p;n=Q(_,m0?n:0),X1=Q(_,m0&&X0===n?X1:0),r2=[p,n,X1]}if(Q2.callsite=r2,W(_,B1)){h2=[];do{J1=R1,H1=q1;const X2=Q(_,0);let X0;if(X2<-1){X0=[[Q(_,0)]];for(let m0=-1;m0>X2;m0--){const kJ=J1;J1=Q(_,J1),H1=Q(_,J1===kJ?H1:0);const Z9=Q(_,0);X0.push([Z9,J1,H1])}}else X0=[[X2]];h2.push(X0)}while(W(_,B1))}Q2.bindings=h2,b.push(Q2),Y1.push(Q2)}R1++,_.pos=B1+1}while(_.pos<u);return b}function h(i){if(i.length===0)return"";const u=new q;for(let _=0;_<i.length;)_=K1(i,_,u,[0,0,0,0,0,0,0]);return u.flush()}function K1(i,u,_,b){const Y1=i[u],{0:R1,1:r,2:l,3:p,isScope:n,callsite:X1,bindings:J1}=Y1;if(b[0]<R1)e(_,b[0],R1),b[0]=R1,b[1]=0;else if(u>0)_.write(J);b[1]=Y(_,Y1[1],b[1]);const H1=(Y1.length===6?1:0)|(X1?2:0)|(n?4:0);if(Y(_,H1,0),Y1.length===6){const{4:B1,5:q1}=Y1;if(B1!==b[2])b[3]=0;b[2]=Y(_,B1,b[2]),b[3]=Y(_,q1,b[3])}if(X1){const{0:B1,1:q1,2:e1}=Y1.callsite;if(B1!==b[4])b[5]=0,b[6]=0;else if(q1!==b[5])b[6]=0;b[4]=Y(_,B1,b[4]),b[5]=Y(_,q1,b[5]),b[6]=Y(_,e1,b[6])}if(J1)for(let B1 of J1){if(B1.length>1)Y(_,-B1.length,0);const q1=B1[0][0];Y(_,q1,0);let e1=R1,b2=r;for(let D2=1;D2<B1.length;D2++){const L2=B1[D2];e1=Y(_,L2[1],e1),b2=Y(_,L2[2],b2),Y(_,L2[0],0)}}for(u++;u<i.length;){const B1=i[u],{0:q1,1:e1}=B1;if(q1>l||q1===l&&e1>=p)break;u=K1(i,u,_,b)}if(b[0]<l)e(_,b[0],l),b[0]=l,b[1]=0;else _.write(J);return b[1]=Y(_,p,b[1]),u}function e(i,u,_){do i.write(X);while(++u<_)}function $1(i){const{length:u}=i,_=new F(i),b=[];let Y1=0,R1=0,r=0,l=0,p=0;do{const n=_.indexOf(";"),X1=[];let J1=!0,H1=0;Y1=0;while(_.pos<n){let B1;if(Y1=Q(_,Y1),Y1<H1)J1=!1;if(H1=Y1,W(_,n))if(R1=Q(_,R1),r=Q(_,r),l=Q(_,l),W(_,n))p=Q(_,p),B1=[Y1,R1,r,l,p];else B1=[Y1,R1,r,l];else B1=[Y1];X1.push(B1),_.pos++}if(!J1)Q1(X1);b.push(X1),_.pos=n+1}while(_.pos<=u);return b}function Q1(i){i.sort(L1)}function L1(i,u){return i[0]-u[0]}function E1(i){const u=new q;let _=0,b=0,Y1=0,R1=0;for(let r=0;r<i.length;r++){const l=i[r];if(r>0)u.write(X);if(l.length===0)continue;let p=0;for(let n=0;n<l.length;n++){const X1=l[n];if(n>0)u.write(J);if(p=Y(u,X1[0],p),X1.length===1)continue;if(_=Y(u,X1[1],_),b=Y(u,X1[2],b),Y1=Y(u,X1[3],Y1),X1.length===4)continue;R1=Y(u,X1[4],R1)}}return u.flush()}G.decode=$1,G.decodeGeneratedRanges=v,G.decodeOriginalScopes=f,G.encode=E1,G.encodeGeneratedRanges=h,G.encodeOriginalScopes=y,Object.defineProperty(G,"__esModule",{value:!0})})});var EV=S((XX,HX)=>{(function(G,J){typeof XX==="object"&&typeof HX!=="undefined"?HX.exports=J():typeof define==="function"&&define.amd?define(J):(G=typeof globalThis!=="undefined"?globalThis:G||self,G.resolveURI=J())})(XX,function(){const G=/^[\w+.-]+:\/\//,J=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,X=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function H(w){return G.test(w)}function Z(w){return w.startsWith("//")}function V(w){return w.startsWith("/")}function Q(w){return w.startsWith("file:")}function Y(w){return/^[.?#]/.test(w)}function W(w){const v=J.exec(w);return B(v[1],v[2]||"",v[3],v[4]||"",v[5]||"/",v[6]||"",v[7]||"")}function z(w){const v=X.exec(w),h=v[2];return B("file:","",v[1]||"","",V(h)?h:"/"+h,v[3]||"",v[4]||"")}function B(w,v,h,K1,e,$1,Q1){return{scheme:w,user:v,host:h,port:K1,path:e,query:$1,hash:Q1,type:7}}function q(w){if(Z(w)){const h=W("http:"+w);return h.scheme="",h.type=6,h}if(V(w)){const h=W("http://foo.com"+w);return h.scheme="",h.host="",h.type=5,h}if(Q(w))return z(w);if(H(w))return W(w);const v=W("http://foo.com/"+w);return v.scheme="",v.host="",v.type=w?w.startsWith("?")?3:w.startsWith("#")?2:4:1,v}function F(w){if(w.endsWith("/.."))return w;const v=w.lastIndexOf("/");return w.slice(0,v+1)}function j(w,v){if(f(v,v.type),w.path==="/")w.path=v.path;else w.path=F(v.path)+w.path}function f(w,v){const h=v<=4,K1=w.path.split("/");let e=1,$1=0,Q1=!1;for(let E1=1;E1<K1.length;E1++){const i=K1[E1];if(!i){Q1=!0;continue}if(Q1=!1,i===".")continue;if(i===".."){if($1)Q1=!0,$1--,e--;else if(h)K1[e++]=i;continue}K1[e++]=i,$1++}let L1="";for(let E1=1;E1<e;E1++)L1+="/"+K1[E1];if(!L1||Q1&&!L1.endsWith("/.."))L1+="/";w.path=L1}function y(w,v){if(!w&&!v)return"";const h=q(w);let K1=h.type;if(v&&K1!==7){const $1=q(v),Q1=$1.type;switch(K1){case 1:h.hash=$1.hash;case 2:h.query=$1.query;case 3:case 4:j(h,$1);case 5:h.user=$1.user,h.host=$1.host,h.port=$1.port;case 6:h.scheme=$1.scheme}if(Q1>K1)K1=Q1}f(h,K1);const e=h.query+h.hash;switch(K1){case 2:case 3:return e;case 4:{const $1=h.path.slice(1);if(!$1)return e||".";if(Y(v||w)&&!Y($1))return"./"+$1+e;return $1+e}case 5:return h.path+e;default:return h.scheme+"//"+h.user+h.host+h.port+h.path+e}}return y})});var ZX=S((YG,OV)=>{(function(G,J){typeof YG==="object"&&typeof OV!=="undefined"?J(YG,JX(),EV()):typeof define==="function"&&define.amd?define(["exports","@jridgewell/sourcemap-codec","@jridgewell/resolve-uri"],J):(G=typeof globalThis!=="undefined"?globalThis:G||self,J(G.traceMapping={},G.sourcemapCodec,G.resolveURI))})(YG,function(G,J,X){function H(O,m){if(m&&!m.endsWith("/"))m+="/";return X(O,m)}function Z(O){if(!O)return"";const m=O.lastIndexOf("/");return O.slice(0,m+1)}const V=0,Q=1,Y=2,W=3,z=4,B=1,q=2;function F(O,m){const x=j(O,0);if(x===O.length)return O;if(!m)O=O.slice();for(let s=x;s<O.length;s=j(O,s+1))O[s]=y(O[s],m);return O}function j(O,m){for(let x=m;x<O.length;x++)if(!f(O[x]))return x;return O.length}function f(O){for(let m=1;m<O.length;m++)if(O[m][V]<O[m-1][V])return!1;return!0}function y(O,m){if(!m)O=O.slice();return O.sort(w)}function w(O,m){return O[V]-m[V]}let v=!1;function h(O,m,x,s){while(x<=s){const M1=x+(s-x>>1),V1=O[M1][V]-m;if(V1===0)return v=!0,M1;if(V1<0)x=M1+1;else s=M1-1}return v=!1,x-1}function K1(O,m,x){for(let s=x+1;s<O.length;x=s++)if(O[s][V]!==m)break;return x}function e(O,m,x){for(let s=x-1;s>=0;x=s--)if(O[s][V]!==m)break;return x}function $1(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Q1(O,m,x,s){const{lastKey:M1,lastNeedle:V1,lastIndex:T1}=x;let b1=0,I1=O.length-1;if(s===M1){if(m===V1)return v=T1!==-1&&O[T1][V]===m,T1;if(m>=V1)b1=T1===-1?0:T1;else I1=T1}return x.lastKey=s,x.lastNeedle=m,x.lastIndex=h(O,m,b1,I1)}function L1(O,m){const x=m.map(i);for(let s=0;s<O.length;s++){const M1=O[s];for(let V1=0;V1<M1.length;V1++){const T1=M1[V1];if(T1.length===1)continue;const b1=T1[Q],I1=T1[Y],m1=T1[W],q2=x[b1],l1=q2[I1]||(q2[I1]=[]),d1=m[b1];let I2=K1(l1,m1,Q1(l1,m1,d1,I1));d1.lastIndex=++I2,E1(l1,I2,[m1,s,T1[V]])}}return x}function E1(O,m,x){for(let s=O.length;s>m;s--)O[s]=O[s-1];O[m]=x}function i(){return{__proto__:null}}const u=function(O,m){const x=_(O);if(!("sections"in x))return new J1(x,m);const s=[],M1=[],V1=[],T1=[],b1=[];b(x,m,s,M1,V1,T1,b1,0,0,1/0,1/0);const I1={version:3,file:x.file,names:T1,sources:M1,sourcesContent:V1,mappings:s,ignoreList:b1};return X0(I1)};function _(O){return typeof O==="string"?JSON.parse(O):O}function b(O,m,x,s,M1,V1,T1,b1,I1,m1,q2){const{sections:l1}=O;for(let d1=0;d1<l1.length;d1++){const{map:I2,offset:i2}=l1[d1];let x0=m1,D5=q2;if(d1+1<l1.length){const I5=l1[d1+1].offset;if(x0=Math.min(m1,b1+I5.line),x0===m1)D5=Math.min(q2,I1+I5.column);else if(x0<m1)D5=I1+I5.column}Y1(I2,m,x,s,M1,V1,T1,b1+i2.line,I1+i2.column,x0,D5)}}function Y1(O,m,x,s,M1,V1,T1,b1,I1,m1,q2){const l1=_(O);if("sections"in l1)return b(...arguments);const d1=new J1(l1,m),I2=s.length,i2=V1.length,x0=q1(d1),{resolvedSources:D5,sourcesContent:I5,ignoreList:EJ}=d1;if(R1(s,D5),R1(V1,d1.names),I5)R1(M1,I5);else for(let T2=0;T2<D5.length;T2++)M1.push(null);if(EJ)for(let T2=0;T2<EJ.length;T2++)T1.push(EJ[T2]+I2);for(let T2=0;T2<x0.length;T2++){const OJ=b1+T2;if(OJ>m1)return;const TH=r(x,OJ),nq=T2===0?I1:0,wH=x0[T2];for(let vJ=0;vJ<wH.length;vJ++){const l0=wH[vJ],Q6=nq+l0[V];if(OJ===m1&&Q6>=q2)return;if(l0.length===1){TH.push([Q6]);continue}const NH=I2+l0[Q],kH=l0[Y],EH=l0[W];TH.push(l0.length===4?[Q6,NH,kH,EH]:[Q6,NH,kH,EH,i2+l0[z]])}}}function R1(O,m){for(let x=0;x<m.length;x++)O.push(m[x])}function r(O,m){for(let x=O.length;x<=m;x++)O[x]=[];return O[m]}const l="`line` must be greater than 0 (lines start at line 1)",p="`column` must be greater than or equal to 0 (columns start at column 0)",n=-1,X1=1;class J1{constructor(O,m){const x=typeof O==="string";if(!x&&O._decodedMemo)return O;const s=x?JSON.parse(O):O,{version:M1,file:V1,names:T1,sourceRoot:b1,sources:I1,sourcesContent:m1}=s;this.version=M1,this.file=V1,this.names=T1||[],this.sourceRoot=b1,this.sources=I1,this.sourcesContent=m1,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const q2=H(b1||"",Z(m));this.resolvedSources=I1.map((d1)=>H(d1||"",q2));const{mappings:l1}=s;if(typeof l1==="string")this._encoded=l1,this._decoded=void 0;else this._encoded=void 0,this._decoded=F(l1,x);this._decodedMemo=$1(),this._bySources=void 0,this._bySourceMemos=void 0}}function H1(O){return O}function B1(O){var m,x;return(m=(x=H1(O))._encoded)!==null&&m!==void 0?m:x._encoded=J.encode(H1(O)._decoded)}function q1(O){var m;return(m=H1(O))._decoded||(m._decoded=J.decode(H1(O)._encoded))}function e1(O,m,x){const s=q1(O);if(m>=s.length)return null;const M1=s[m],V1=V6(M1,H1(O)._decodedMemo,m,x,X1);return V1===-1?null:M1[V1]}function b2(O,m){let{line:x,column:s,bias:M1}=m;if(x--,x<0)throw new Error(l);if(s<0)throw new Error(p);const V1=q1(O);if(x>=V1.length)return Z6(null,null,null,null);const T1=V1[x],b1=V6(T1,H1(O)._decodedMemo,x,s,M1||X1);if(b1===-1)return Z6(null,null,null,null);const I1=T1[b1];if(I1.length===1)return Z6(null,null,null,null);const{names:m1,resolvedSources:q2}=O;return Z6(q2[I1[Q]],I1[Y]+1,I1[W],I1.length===5?m1[I1[z]]:null)}function D2(O,m){const{source:x,line:s,column:M1,bias:V1}=m;return LH(O,x,s,M1,V1||X1,!1)}function L2(O,m){const{source:x,line:s,column:M1,bias:V1}=m;return LH(O,x,s,M1,V1||n,!0)}function r2(O,m){const x=q1(O),{names:s,resolvedSources:M1}=O;for(let V1=0;V1<x.length;V1++){const T1=x[V1];for(let b1=0;b1<T1.length;b1++){const I1=T1[b1],m1=V1+1,q2=I1[0];let l1=null,d1=null,I2=null,i2=null;if(I1.length!==1)l1=M1[I1[1]],d1=I1[2]+1,I2=I1[3];if(I1.length===5)i2=s[I1[4]];m({generatedLine:m1,generatedColumn:q2,source:l1,originalLine:d1,originalColumn:I2,name:i2})}}}function h2(O,m){const{sources:x,resolvedSources:s}=O;let M1=x.indexOf(m);if(M1===-1)M1=s.indexOf(m);return M1}function Q2(O,m){const{sourcesContent:x}=O;if(x==null)return null;const s=h2(O,m);return s===-1?null:x[s]}function X2(O,m){const{ignoreList:x}=O;if(x==null)return!1;const s=h2(O,m);return s===-1?!1:x.includes(s)}function X0(O,m){const x=new J1(Z9(O,[]),m);return H1(x)._decoded=O.mappings,x}function m0(O){return Z9(O,q1(O))}function kJ(O){return Z9(O,B1(O))}function Z9(O,m){return{version:O.version,file:O.file,names:O.names,sourceRoot:O.sourceRoot,sources:O.sources,sourcesContent:O.sourcesContent,mappings:m,ignoreList:O.ignoreList||O.x_google_ignoreList}}function Z6(O,m,x,s){return{source:O,line:m,column:x,name:s}}function V9(O,m){return{line:O,column:m}}function V6(O,m,x,s,M1){let V1=Q1(O,s,m,x);if(v)V1=(M1===n?K1:e)(O,s,V1);else if(M1===n)V1++;if(V1===-1||V1===O.length)return-1;return V1}function pq(O,m,x,s,M1){let V1=V6(O,m,x,s,X1);if(!v&&M1===n)V1++;if(V1===-1||V1===O.length)return[];const T1=v?s:O[V1][V];if(!v)V1=e(O,T1,V1);const b1=K1(O,T1,V1),I1=[];for(;V1<=b1;V1++){const m1=O[V1];I1.push(V9(m1[B]+1,m1[q]))}return I1}function LH(O,m,x,s,M1,V1){var T1;if(x--,x<0)throw new Error(l);if(s<0)throw new Error(p);const{sources:b1,resolvedSources:I1}=O;let m1=b1.indexOf(m);if(m1===-1)m1=I1.indexOf(m);if(m1===-1)return V1?[]:V9(null,null);const l1=((T1=H1(O))._bySources||(T1._bySources=L1(q1(O),H1(O)._bySourceMemos=b1.map($1))))[m1][x];if(l1==null)return V1?[]:V9(null,null);const d1=H1(O)._bySourceMemos[m1];if(V1)return pq(l1,d1,x,s,M1);const I2=V6(l1,d1,x,s,M1);if(I2===-1)return V9(null,null);const i2=l1[I2];return V9(i2[B]+1,i2[q])}G.AnyMap=u,G.GREATEST_LOWER_BOUND=X1,G.LEAST_UPPER_BOUND=n,G.TraceMap=J1,G.allGeneratedPositionsFor=L2,G.decodedMap=m0,G.decodedMappings=q1,G.eachMapping=r2,G.encodedMap=kJ,G.encodedMappings=B1,G.generatedPositionFor=D2,G.isIgnored=X2,G.originalPositionFor=b2,G.presortedDecodedMap=X0,G.sourceContentFor=Q2,G.traceSegment=e1})});var _V=S((WG,vV)=>{(function(G,J){typeof WG==="object"&&typeof vV!=="undefined"?J(WG,NV(),JX(),ZX()):typeof define==="function"&&define.amd?define(["exports","@jridgewell/set-array","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],J):(G=typeof globalThis!=="undefined"?globalThis:G||self,J(G.genMapping={},G.setArray,G.sourcemapCodec,G.traceMapping))})(WG,function(G,J,X,H){class B{constructor({file:r,sourceRoot:l}={}){this._names=new J.SetArray,this._sources=new J.SetArray,this._sourcesContent=[],this._mappings=[],this.file=r,this.sourceRoot=l,this._ignoreList=new J.SetArray}}function q(r){return r}function F(r,l,p,n,X1,J1,H1,B1){return Q1(!1,r,l,p,n,X1,J1,H1,B1)}function j(r,l){return R1(!1,r,l)}const f=(r,l,p,n,X1,J1,H1,B1)=>{return Q1(!0,r,l,p,n,X1,J1,H1,B1)},y=(r,l)=>{return R1(!0,r,l)};function w(r,l,p){const{_sources:n,_sourcesContent:X1}=q(r),J1=J.put(n,l);X1[J1]=p}function v(r,l,p=!0){const{_sources:n,_sourcesContent:X1,_ignoreList:J1}=q(r),H1=J.put(n,l);if(H1===X1.length)X1[H1]=null;if(p)J.put(J1,H1);else J.remove(J1,H1)}function h(r){const{_mappings:l,_sources:p,_sourcesContent:n,_names:X1,_ignoreList:J1}=q(r);return u(l),{version:3,file:r.file||void 0,names:X1.array,sourceRoot:r.sourceRoot||void 0,sources:p.array,sourcesContent:n,mappings:l,ignoreList:J1.array}}function K1(r){const l=h(r);return Object.assign(Object.assign({},l),{mappings:X.encode(l.mappings)})}function e(r){const l=new H.TraceMap(r),p=new B({file:l.file,sourceRoot:l.sourceRoot});if(_(q(p)._names,l.names),_(q(p)._sources,l.sources),q(p)._sourcesContent=l.sourcesContent||l.sources.map(()=>null),q(p)._mappings=H.decodedMappings(l),l.ignoreList)_(q(p)._ignoreList,l.ignoreList);return p}function $1(r){const l=[],{_mappings:p,_sources:n,_names:X1}=q(r);for(let J1=0;J1<p.length;J1++){const H1=p[J1];for(let B1=0;B1<H1.length;B1++){const q1=H1[B1],e1={line:J1+1,column:q1[0]};let b2=void 0,D2=void 0,L2=void 0;if(q1.length!==1){if(b2=n.array[q1[1]],D2={line:q1[2]+1,column:q1[3]},q1.length===5)L2=X1.array[q1[4]]}l.push({generated:e1,source:b2,original:D2,name:L2})}}return l}function Q1(r,l,p,n,X1,J1,H1,B1,q1){const{_mappings:e1,_sources:b2,_sourcesContent:D2,_names:L2}=q(l),r2=L1(e1,p),h2=E1(r2,n);if(!X1){if(r&&b(r2,h2))return;return i(r2,h2,[n])}const Q2=J.put(b2,X1),X2=B1?J.put(L2,B1):-1;if(Q2===D2.length)D2[Q2]=q1!==null&&q1!==void 0?q1:null;if(r&&Y1(r2,h2,Q2,J1,H1,X2))return;return i(r2,h2,B1?[n,Q2,J1,H1,X2]:[n,Q2,J1,H1])}function L1(r,l){for(let p=r.length;p<=l;p++)r[p]=[];return r[l]}function E1(r,l){let p=r.length;for(let n=p-1;n>=0;p=n--){const X1=r[n];if(l>=X1[0])break}return p}function i(r,l,p){for(let n=r.length;n>l;n--)r[n]=r[n-1];r[l]=p}function u(r){const{length:l}=r;let p=l;for(let n=p-1;n>=0;p=n,n--)if(r[n].length>0)break;if(p<l)r.length=p}function _(r,l){for(let p=0;p<l.length;p++)J.put(r,l[p])}function b(r,l){if(l===0)return!0;return r[l-1].length===1}function Y1(r,l,p,n,X1,J1){if(l===0)return!1;const H1=r[l-1];if(H1.length===1)return!1;return p===H1[1]&&n===H1[2]&&X1===H1[3]&&J1===(H1.length===5?H1[4]:-1)}function R1(r,l,p){const{generated:n,source:X1,original:J1,name:H1,content:B1}=p;if(!X1)return Q1(r,l,n.line-1,n.column,null,null,null,null,null);return Q1(r,l,n.line-1,n.column,X1,J1.line-1,J1.column,H1,B1)}G.GenMapping=B,G.addMapping=j,G.addSegment=F,G.allMappings=$1,G.fromMap=e,G.maybeAddMapping=y,G.maybeAddSegment=f,G.setIgnore=v,G.setSourceContent=w,G.toDecodedMap=h,G.toEncodedMap=K1,Object.defineProperty(G,"__esModule",{value:!0})})});var yV=S((bV)=>{Object.defineProperty(bV,"__esModule",{value:!0});bV.default=void 0;var S0=_V(),VX=ZX();class gV{constructor(G,J){var X;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;const H=this._map=new S0.GenMapping({sourceRoot:G.sourceRoot});if(this._sourceFileName=(X=G.sourceFileName)==null?void 0:X.replace(/\\/g,"/"),this._rawMappings=void 0,G.inputSourceMap){this._inputMap=new VX.TraceMap(G.inputSourceMap);const V=this._inputMap.resolvedSources;if(V.length)for(let Q=0;Q<V.length;Q++){var Z;S0.setSourceContent(H,V[Q],(Z=this._inputMap.sourcesContent)==null?void 0:Z[Q])}}if(typeof J==="string"&&!G.inputSourceMap)S0.setSourceContent(H,this._sourceFileName,J);else if(typeof J==="object")for(let V of Object.keys(J))S0.setSourceContent(H,V.replace(/\\/g,"/"),J[V])}get(){return S0.toEncodedMap(this._map)}getDecoded(){return S0.toDecodedMap(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=S0.allMappings(this._map))}mark(G,J,X,H,Z,V){var Q;this._rawMappings=void 0;let Y;if(J!=null)if(this._inputMap){if(Y=VX.originalPositionFor(this._inputMap,{line:J,column:X}),!Y.name&&Z){const W=VX.originalPositionFor(this._inputMap,Z);if(W.name)H=W.name}}else Y={source:(V==null?void 0:V.replace(/\\/g,"/"))||this._sourceFileName,line:J,column:X};S0.maybeAddMapping(this._map,{name:H,generated:G,source:(Q=Y)==null?void 0:Q.source,original:Y})}}bV.default=gV});var cV=S((xV)=>{Object.defineProperty(xV,"__esModule",{value:!0});xV.default=void 0;class mV{constructor(G,J){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=G,this._indentChar=J;for(let X=0;X<64;X++)this._fastIndentations.push(J.repeat(X));this._allocQueue()}_allocQueue(){const G=this._queue;for(let J=0;J<16;J++)G.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(G,J,X,H,Z){const V=this._queueCursor;if(V===this._queue.length)this._allocQueue();const Q=this._queue[V];Q.char=G,Q.repeat=J,Q.line=X,Q.column=H,Q.filename=Z,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const G=this._map,J={code:(this._buf+this._str).trimRight(),decodedMap:G==null?void 0:G.getDecoded(),get __mergedMap(){return this.map},get map(){const X=G?G.get():null;return J.map=X,X},set map(X){Object.defineProperty(J,"map",{value:X,writable:!0})},get rawMappings(){const X=G==null?void 0:G.getRawMappings();return J.rawMappings=X,X},set rawMappings(X){Object.defineProperty(J,"rawMappings",{value:X,writable:!0})}};return J}append(G,J){this._flush(),this._append(G,this._sourcePosition,J)}appendChar(G){this._flush(),this._appendChar(G,1,this._sourcePosition)}queue(G){if(G===10)while(this._queueCursor!==0){const X=this._queue[this._queueCursor-1].char;if(X!==32&&X!==9)break;this._queueCursor--}const J=this._sourcePosition;this._pushQueue(G,1,J.line,J.column,J.filename)}queueIndentation(G){if(G===0)return;this._pushQueue(-1,G,void 0,void 0,void 0)}_flush(){const G=this._queueCursor,J=this._queue;for(let X=0;X<G;X++){const H=J[X];this._appendChar(H.char,H.repeat,H)}this._queueCursor=0}_appendChar(G,J,X){if(this._last=G,G===-1){const H=this._fastIndentations[J];if(H!==void 0)this._str+=H;else this._str+=J>1?this._indentChar.repeat(J):this._indentChar}else this._str+=J>1?String.fromCharCode(G).repeat(J):String.fromCharCode(G);if(G!==10)this._mark(X.line,X.column,X.identifierName,X.identifierNamePos,X.filename),this._position.column+=J;else this._position.line++,this._position.column=0;if(this._canMarkIdName)X.identifierName=void 0,X.identifierNamePos=void 0}_append(G,J,X){const H=G.length,Z=this._position;if(this._last=G.charCodeAt(H-1),++this._appendCount>4096)+this._str,this._buf+=this._str,this._str=G,this._appendCount=0;else this._str+=G;if(!X&&!this._map){Z.column+=H;return}const{column:V,identifierName:Q,identifierNamePos:Y,filename:W}=J;let z=J.line;if((Q!=null||Y!=null)&&this._canMarkIdName)J.identifierName=void 0,J.identifierNamePos=void 0;let B=G.indexOf("\n"),q=0;if(B!==0)this._mark(z,V,Q,Y,W);while(B!==-1){if(Z.line++,Z.column=0,q=B+1,q<H&&z!==void 0)this._mark(++z,0,null,null,W);B=G.indexOf("\n",q)}Z.column+=H-q}_mark(G,J,X,H,Z){var V;(V=this._map)==null||V.mark(this._position,G,J,X,H,Z)}removeTrailingNewline(){const G=this._queueCursor;if(G!==0&&this._queue[G-1].char===10)this._queueCursor--}removeLastSemicolon(){const G=this._queueCursor;if(G!==0&&this._queue[G-1].char===59)this._queueCursor--}getLastChar(){const G=this._queueCursor;return G!==0?this._queue[G-1].char:this._last}getNewlineCount(){const G=this._queueCursor;let J=0;if(G===0)return this._last===10?1:0;for(let X=G-1;X>=0;X--){if(this._queue[X].char!==10)break;J++}return J===G&&this._last===10?J+1:J}endsWithCharAndNewline(){const G=this._queue,J=this._queueCursor;if(J!==0){if(G[J-1].char!==10)return;if(J>1)return G[J-2].char;else return this._last}}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(G,J){if(!this._map){J();return}this.source("start",G);const X=G.identifierName,H=this._sourcePosition;if(X)this._canMarkIdName=!1,H.identifierName=X;if(J(),X)this._canMarkIdName=!0,H.identifierName=void 0,H.identifierNamePos=void 0;this.source("end",G)}source(G,J){if(!this._map)return;this._normalizePosition(G,J,0)}sourceWithOffset(G,J,X){if(!this._map)return;this._normalizePosition(G,J,X)}_normalizePosition(G,J,X){const H=J[G],Z=this._sourcePosition;if(H)Z.line=H.line,Z.column=Math.max(H.column+X,0),Z.filename=J.filename}getCurrentColumn(){const G=this._queue,J=this._queueCursor;let X=-1,H=0;for(let Z=0;Z<J;Z++){const V=G[Z];if(V.char===10)X=H;H+=V.repeat}return X===-1?this._position.column+H:H-1-X}getCurrentLine(){let G=0;const J=this._queue;for(let X=0;X<this._queueCursor;X++)if(J[X].char===10)G++;return this._position.line+G}}xV.default=mV});var zG=S((aV)=>{function SA(G,J){const X=Object.keys(J);for(let H of X)if(G[H]!==J[H])return!1;return!0}Object.defineProperty(aV,"__esModule",{value:!0});aV.default=SA});var K9=S((iV)=>{function LA(G,J,X=""){if(rV.has(G))return;rV.add(G);const{internal:H,trace:Z}=TA(1,2);if(H)return;console.warn(`${X}\`${G}\` has been deprecated, please migrate to \`${J}\`\n${Z}`)}function TA(G,J){const{stackTraceLimit:X,prepareStackTrace:H}=Error;let Z;if(Error.stackTraceLimit=1+G+J,Error.prepareStackTrace=function(Q,Y){Z=Y},new Error().stack,Error.stackTraceLimit=X,Error.prepareStackTrace=H,!Z)return{internal:!1,trace:""};const V=Z.slice(1+G,1+G+J);return{internal:/[\\/]@babel[\\/]/.test(V[1].getFileName()),trace:V.map((Q)=>` at ${Q}`).join("\n")}}Object.defineProperty(iV,"__esModule",{value:!0});iV.default=LA;var rV=new Set});var r1=S((dV)=>{function NA(G,J){if(!G)return!1;if(G.type!=="ArrayExpression")return!1;return J==null||R.default(G,J)}function kA(G,J){if(!G)return!1;if(G.type!=="AssignmentExpression")return!1;return J==null||R.default(G,J)}function EA(G,J){if(!G)return!1;if(G.type!=="BinaryExpression")return!1;return J==null||R.default(G,J)}function OA(G,J){if(!G)return!1;if(G.type!=="InterpreterDirective")return!1;return J==null||R.default(G,J)}function vA(G,J){if(!G)return!1;if(G.type!=="Directive")return!1;return J==null||R.default(G,J)}function _A(G,J){if(!G)return!1;if(G.type!=="DirectiveLiteral")return!1;return J==null||R.default(G,J)}function gA(G,J){if(!G)return!1;if(G.type!=="BlockStatement")return!1;return J==null||R.default(G,J)}function bA(G,J){if(!G)return!1;if(G.type!=="BreakStatement")return!1;return J==null||R.default(G,J)}function hA(G,J){if(!G)return!1;if(G.type!=="CallExpression")return!1;return J==null||R.default(G,J)}function yA(G,J){if(!G)return!1;if(G.type!=="CatchClause")return!1;return J==null||R.default(G,J)}function mA(G,J){if(!G)return!1;if(G.type!=="ConditionalExpression")return!1;return J==null||R.default(G,J)}function xA(G,J){if(!G)return!1;if(G.type!=="ContinueStatement")return!1;return J==null||R.default(G,J)}function lA(G,J){if(!G)return!1;if(G.type!=="DebuggerStatement")return!1;return J==null||R.default(G,J)}function cA(G,J){if(!G)return!1;if(G.type!=="DoWhileStatement")return!1;return J==null||R.default(G,J)}function aA(G,J){if(!G)return!1;if(G.type!=="EmptyStatement")return!1;return J==null||R.default(G,J)}function rA(G,J){if(!G)return!1;if(G.type!=="ExpressionStatement")return!1;return J==null||R.default(G,J)}function iA(G,J){if(!G)return!1;if(G.type!=="File")return!1;return J==null||R.default(G,J)}function uA(G,J){if(!G)return!1;if(G.type!=="ForInStatement")return!1;return J==null||R.default(G,J)}function dA(G,J){if(!G)return!1;if(G.type!=="ForStatement")return!1;return J==null||R.default(G,J)}function sA(G,J){if(!G)return!1;if(G.type!=="FunctionDeclaration")return!1;return J==null||R.default(G,J)}function pA(G,J){if(!G)return!1;if(G.type!=="FunctionExpression")return!1;return J==null||R.default(G,J)}function nA(G,J){if(!G)return!1;if(G.type!=="Identifier")return!1;return J==null||R.default(G,J)}function oA(G,J){if(!G)return!1;if(G.type!=="IfStatement")return!1;return J==null||R.default(G,J)}function eA(G,J){if(!G)return!1;if(G.type!=="LabeledStatement")return!1;return J==null||R.default(G,J)}function tA(G,J){if(!G)return!1;if(G.type!=="StringLiteral")return!1;return J==null||R.default(G,J)}function GC(G,J){if(!G)return!1;if(G.type!=="NumericLiteral")return!1;return J==null||R.default(G,J)}function JC(G,J){if(!G)return!1;if(G.type!=="NullLiteral")return!1;return J==null||R.default(G,J)}function XC(G,J){if(!G)return!1;if(G.type!=="BooleanLiteral")return!1;return J==null||R.default(G,J)}function HC(G,J){if(!G)return!1;if(G.type!=="RegExpLiteral")return!1;return J==null||R.default(G,J)}function ZC(G,J){if(!G)return!1;if(G.type!=="LogicalExpression")return!1;return J==null||R.default(G,J)}function VC(G,J){if(!G)return!1;if(G.type!=="MemberExpression")return!1;return J==null||R.default(G,J)}function QC(G,J){if(!G)return!1;if(G.type!=="NewExpression")return!1;return J==null||R.default(G,J)}function YC(G,J){if(!G)return!1;if(G.type!=="Program")return!1;return J==null||R.default(G,J)}function WC(G,J){if(!G)return!1;if(G.type!=="ObjectExpression")return!1;return J==null||R.default(G,J)}function zC(G,J){if(!G)return!1;if(G.type!=="ObjectMethod")return!1;return J==null||R.default(G,J)}function UC(G,J){if(!G)return!1;if(G.type!=="ObjectProperty")return!1;return J==null||R.default(G,J)}function KC(G,J){if(!G)return!1;if(G.type!=="RestElement")return!1;return J==null||R.default(G,J)}function BC(G,J){if(!G)return!1;if(G.type!=="ReturnStatement")return!1;return J==null||R.default(G,J)}function $C(G,J){if(!G)return!1;if(G.type!=="SequenceExpression")return!1;return J==null||R.default(G,J)}function RC(G,J){if(!G)return!1;if(G.type!=="ParenthesizedExpression")return!1;return J==null||R.default(G,J)}function MC(G,J){if(!G)return!1;if(G.type!=="SwitchCase")return!1;return J==null||R.default(G,J)}function qC(G,J){if(!G)return!1;if(G.type!=="SwitchStatement")return!1;return J==null||R.default(G,J)}function FC(G,J){if(!G)return!1;if(G.type!=="ThisExpression")return!1;return J==null||R.default(G,J)}function jC(G,J){if(!G)return!1;if(G.type!=="ThrowStatement")return!1;return J==null||R.default(G,J)}function DC(G,J){if(!G)return!1;if(G.type!=="TryStatement")return!1;return J==null||R.default(G,J)}function IC(G,J){if(!G)return!1;if(G.type!=="UnaryExpression")return!1;return J==null||R.default(G,J)}function AC(G,J){if(!G)return!1;if(G.type!=="UpdateExpression")return!1;return J==null||R.default(G,J)}function CC(G,J){if(!G)return!1;if(G.type!=="VariableDeclaration")return!1;return J==null||R.default(G,J)}function fC(G,J){if(!G)return!1;if(G.type!=="VariableDeclarator")return!1;return J==null||R.default(G,J)}function SC(G,J){if(!G)return!1;if(G.type!=="WhileStatement")return!1;return J==null||R.default(G,J)}function PC(G,J){if(!G)return!1;if(G.type!=="WithStatement")return!1;return J==null||R.default(G,J)}function LC(G,J){if(!G)return!1;if(G.type!=="AssignmentPattern")return!1;return J==null||R.default(G,J)}function TC(G,J){if(!G)return!1;if(G.type!=="ArrayPattern")return!1;return J==null||R.default(G,J)}function wC(G,J){if(!G)return!1;if(G.type!=="ArrowFunctionExpression")return!1;return J==null||R.default(G,J)}function NC(G,J){if(!G)return!1;if(G.type!=="ClassBody")return!1;return J==null||R.default(G,J)}function kC(G,J){if(!G)return!1;if(G.type!=="ClassExpression")return!1;return J==null||R.default(G,J)}function EC(G,J){if(!G)return!1;if(G.type!=="ClassDeclaration")return!1;return J==null||R.default(G,J)}function OC(G,J){if(!G)return!1;if(G.type!=="ExportAllDeclaration")return!1;return J==null||R.default(G,J)}function vC(G,J){if(!G)return!1;if(G.type!=="ExportDefaultDeclaration")return!1;return J==null||R.default(G,J)}function _C(G,J){if(!G)return!1;if(G.type!=="ExportNamedDeclaration")return!1;return J==null||R.default(G,J)}function gC(G,J){if(!G)return!1;if(G.type!=="ExportSpecifier")return!1;return J==null||R.default(G,J)}function bC(G,J){if(!G)return!1;if(G.type!=="ForOfStatement")return!1;return J==null||R.default(G,J)}function hC(G,J){if(!G)return!1;if(G.type!=="ImportDeclaration")return!1;return J==null||R.default(G,J)}function yC(G,J){if(!G)return!1;if(G.type!=="ImportDefaultSpecifier")return!1;return J==null||R.default(G,J)}function mC(G,J){if(!G)return!1;if(G.type!=="ImportNamespaceSpecifier")return!1;return J==null||R.default(G,J)}function xC(G,J){if(!G)return!1;if(G.type!=="ImportSpecifier")return!1;return J==null||R.default(G,J)}function lC(G,J){if(!G)return!1;if(G.type!=="ImportExpression")return!1;return J==null||R.default(G,J)}function cC(G,J){if(!G)return!1;if(G.type!=="MetaProperty")return!1;return J==null||R.default(G,J)}function aC(G,J){if(!G)return!1;if(G.type!=="ClassMethod")return!1;return J==null||R.default(G,J)}function rC(G,J){if(!G)return!1;if(G.type!=="ObjectPattern")return!1;return J==null||R.default(G,J)}function iC(G,J){if(!G)return!1;if(G.type!=="SpreadElement")return!1;return J==null||R.default(G,J)}function uC(G,J){if(!G)return!1;if(G.type!=="Super")return!1;return J==null||R.default(G,J)}function dC(G,J){if(!G)return!1;if(G.type!=="TaggedTemplateExpression")return!1;return J==null||R.default(G,J)}function sC(G,J){if(!G)return!1;if(G.type!=="TemplateElement")return!1;return J==null||R.default(G,J)}function pC(G,J){if(!G)return!1;if(G.type!=="TemplateLiteral")return!1;return J==null||R.default(G,J)}function nC(G,J){if(!G)return!1;if(G.type!=="YieldExpression")return!1;return J==null||R.default(G,J)}function oC(G,J){if(!G)return!1;if(G.type!=="AwaitExpression")return!1;return J==null||R.default(G,J)}function eC(G,J){if(!G)return!1;if(G.type!=="Import")return!1;return J==null||R.default(G,J)}function tC(G,J){if(!G)return!1;if(G.type!=="BigIntLiteral")return!1;return J==null||R.default(G,J)}function Gf(G,J){if(!G)return!1;if(G.type!=="ExportNamespaceSpecifier")return!1;return J==null||R.default(G,J)}function Jf(G,J){if(!G)return!1;if(G.type!=="OptionalMemberExpression")return!1;return J==null||R.default(G,J)}function Xf(G,J){if(!G)return!1;if(G.type!=="OptionalCallExpression")return!1;return J==null||R.default(G,J)}function Hf(G,J){if(!G)return!1;if(G.type!=="ClassProperty")return!1;return J==null||R.default(G,J)}function Zf(G,J){if(!G)return!1;if(G.type!=="ClassAccessorProperty")return!1;return J==null||R.default(G,J)}function Vf(G,J){if(!G)return!1;if(G.type!=="ClassPrivateProperty")return!1;return J==null||R.default(G,J)}function Qf(G,J){if(!G)return!1;if(G.type!=="ClassPrivateMethod")return!1;return J==null||R.default(G,J)}function Yf(G,J){if(!G)return!1;if(G.type!=="PrivateName")return!1;return J==null||R.default(G,J)}function Wf(G,J){if(!G)return!1;if(G.type!=="StaticBlock")return!1;return J==null||R.default(G,J)}function zf(G,J){if(!G)return!1;if(G.type!=="AnyTypeAnnotation")return!1;return J==null||R.default(G,J)}function Uf(G,J){if(!G)return!1;if(G.type!=="ArrayTypeAnnotation")return!1;return J==null||R.default(G,J)}function Kf(G,J){if(!G)return!1;if(G.type!=="BooleanTypeAnnotation")return!1;return J==null||R.default(G,J)}function Bf(G,J){if(!G)return!1;if(G.type!=="BooleanLiteralTypeAnnotation")return!1;return J==null||R.default(G,J)}function $f(G,J){if(!G)return!1;if(G.type!=="NullLiteralTypeAnnotation")return!1;return J==null||R.default(G,J)}function Rf(G,J){if(!G)return!1;if(G.type!=="ClassImplements")return!1;return J==null||R.default(G,J)}function Mf(G,J){if(!G)return!1;if(G.type!=="DeclareClass")return!1;return J==null||R.default(G,J)}function qf(G,J){if(!G)return!1;if(G.type!=="DeclareFunction")return!1;return J==null||R.default(G,J)}function Ff(G,J){if(!G)return!1;if(G.type!=="DeclareInterface")return!1;return J==null||R.default(G,J)}function jf(G,J){if(!G)return!1;if(G.type!=="DeclareModule")return!1;return J==null||R.default(G,J)}function Df(G,J){if(!G)return!1;if(G.type!=="DeclareModuleExports")return!1;return J==null||R.default(G,J)}function If(G,J){if(!G)return!1;if(G.type!=="DeclareTypeAlias")return!1;return J==null||R.default(G,J)}function Af(G,J){if(!G)return!1;if(G.type!=="DeclareOpaqueType")return!1;return J==null||R.default(G,J)}function Cf(G,J){if(!G)return!1;if(G.type!=="DeclareVariable")return!1;return J==null||R.default(G,J)}function ff(G,J){if(!G)return!1;if(G.type!=="DeclareExportDeclaration")return!1;return J==null||R.default(G,J)}function Sf(G,J){if(!G)return!1;if(G.type!=="DeclareExportAllDeclaration")return!1;return J==null||R.default(G,J)}function Pf(G,J){if(!G)return!1;if(G.type!=="DeclaredPredicate")return!1;return J==null||R.default(G,J)}function Lf(G,J){if(!G)return!1;if(G.type!=="ExistsTypeAnnotation")return!1;return J==null||R.default(G,J)}function Tf(G,J){if(!G)return!1;if(G.type!=="FunctionTypeAnnotation")return!1;return J==null||R.default(G,J)}function wf(G,J){if(!G)return!1;if(G.type!=="FunctionTypeParam")return!1;return J==null||R.default(G,J)}function Nf(G,J){if(!G)return!1;if(G.type!=="GenericTypeAnnotation")return!1;return J==null||R.default(G,J)}function kf(G,J){if(!G)return!1;if(G.type!=="InferredPredicate")return!1;return J==null||R.default(G,J)}function Ef(G,J){if(!G)return!1;if(G.type!=="InterfaceExtends")return!1;return J==null||R.default(G,J)}function Of(G,J){if(!G)return!1;if(G.type!=="InterfaceDeclaration")return!1;return J==null||R.default(G,J)}function vf(G,J){if(!G)return!1;if(G.type!=="InterfaceTypeAnnotation")return!1;return J==null||R.default(G,J)}function _f(G,J){if(!G)return!1;if(G.type!=="IntersectionTypeAnnotation")return!1;return J==null||R.default(G,J)}function gf(G,J){if(!G)return!1;if(G.type!=="MixedTypeAnnotation")return!1;return J==null||R.default(G,J)}function bf(G,J){if(!G)return!1;if(G.type!=="EmptyTypeAnnotation")return!1;return J==null||R.default(G,J)}function hf(G,J){if(!G)return!1;if(G.type!=="NullableTypeAnnotation")return!1;return J==null||R.default(G,J)}function yf(G,J){if(!G)return!1;if(G.type!=="NumberLiteralTypeAnnotation")return!1;return J==null||R.default(G,J)}function mf(G,J){if(!G)return!1;if(G.type!=="NumberTypeAnnotation")return!1;return J==null||R.default(G,J)}function xf(G,J){if(!G)return!1;if(G.type!=="ObjectTypeAnnotation")return!1;return J==null||R.default(G,J)}function lf(G,J){if(!G)return!1;if(G.type!=="ObjectTypeInternalSlot")return!1;return J==null||R.default(G,J)}function cf(G,J){if(!G)return!1;if(G.type!=="ObjectTypeCallProperty")return!1;return J==null||R.default(G,J)}function af(G,J){if(!G)return!1;if(G.type!=="ObjectTypeIndexer")return!1;return J==null||R.default(G,J)}function rf(G,J){if(!G)return!1;if(G.type!=="ObjectTypeProperty")return!1;return J==null||R.default(G,J)}function uf(G,J){if(!G)return!1;if(G.type!=="ObjectTypeSpreadProperty")return!1;return J==null||R.default(G,J)}function df(G,J){if(!G)return!1;if(G.type!=="OpaqueType")return!1;return J==null||R.default(G,J)}function sf(G,J){if(!G)return!1;if(G.type!=="QualifiedTypeIdentifier")return!1;return J==null||R.default(G,J)}function pf(G,J){if(!G)return!1;if(G.type!=="StringLiteralTypeAnnotation")return!1;return J==null||R.default(G,J)}function nf(G,J){if(!G)return!1;if(G.type!=="StringTypeAnnotation")return!1;return J==null||R.default(G,J)}function of(G,J){if(!G)return!1;if(G.type!=="SymbolTypeAnnotation")return!1;return J==null||R.default(G,J)}function ef(G,J){if(!G)return!1;if(G.type!=="ThisTypeAnnotation")return!1;return J==null||R.default(G,J)}function tf(G,J){if(!G)return!1;if(G.type!=="TupleTypeAnnotation")return!1;return J==null||R.default(G,J)}function GS(G,J){if(!G)return!1;if(G.type!=="TypeofTypeAnnotation")return!1;return J==null||R.default(G,J)}function JS(G,J){if(!G)return!1;if(G.type!=="TypeAlias")return!1;return J==null||R.default(G,J)}function XS(G,J){if(!G)return!1;if(G.type!=="TypeAnnotation")return!1;return J==null||R.default(G,J)}function HS(G,J){if(!G)return!1;if(G.type!=="TypeCastExpression")return!1;return J==null||R.default(G,J)}function ZS(G,J){if(!G)return!1;if(G.type!=="TypeParameter")return!1;return J==null||R.default(G,J)}function VS(G,J){if(!G)return!1;if(G.type!=="TypeParameterDeclaration")return!1;return J==null||R.default(G,J)}function QS(G,J){if(!G)return!1;if(G.type!=="TypeParameterInstantiation")return!1;return J==null||R.default(G,J)}function YS(G,J){if(!G)return!1;if(G.type!=="UnionTypeAnnotation")return!1;return J==null||R.default(G,J)}function WS(G,J){if(!G)return!1;if(G.type!=="Variance")return!1;return J==null||R.default(G,J)}function zS(G,J){if(!G)return!1;if(G.type!=="VoidTypeAnnotation")return!1;return J==null||R.default(G,J)}function US(G,J){if(!G)return!1;if(G.type!=="EnumDeclaration")return!1;return J==null||R.default(G,J)}function KS(G,J){if(!G)return!1;if(G.type!=="EnumBooleanBody")return!1;return J==null||R.default(G,J)}function BS(G,J){if(!G)return!1;if(G.type!=="EnumNumberBody")return!1;return J==null||R.default(G,J)}function $S(G,J){if(!G)return!1;if(G.type!=="EnumStringBody")return!1;return J==null||R.default(G,J)}function RS(G,J){if(!G)return!1;if(G.type!=="EnumSymbolBody")return!1;return J==null||R.default(G,J)}function MS(G,J){if(!G)return!1;if(G.type!=="EnumBooleanMember")return!1;return J==null||R.default(G,J)}function qS(G,J){if(!G)return!1;if(G.type!=="EnumNumberMember")return!1;return J==null||R.default(G,J)}function FS(G,J){if(!G)return!1;if(G.type!=="EnumStringMember")return!1;return J==null||R.default(G,J)}function jS(G,J){if(!G)return!1;if(G.type!=="EnumDefaultedMember")return!1;return J==null||R.default(G,J)}function DS(G,J){if(!G)return!1;if(G.type!=="IndexedAccessType")return!1;return J==null||R.default(G,J)}function IS(G,J){if(!G)return!1;if(G.type!=="OptionalIndexedAccessType")return!1;return J==null||R.default(G,J)}function AS(G,J){if(!G)return!1;if(G.type!=="JSXAttribute")return!1;return J==null||R.default(G,J)}function CS(G,J){if(!G)return!1;if(G.type!=="JSXClosingElement")return!1;return J==null||R.default(G,J)}function fS(G,J){if(!G)return!1;if(G.type!=="JSXElement")return!1;return J==null||R.default(G,J)}function SS(G,J){if(!G)return!1;if(G.type!=="JSXEmptyExpression")return!1;return J==null||R.default(G,J)}function PS(G,J){if(!G)return!1;if(G.type!=="JSXExpressionContainer")return!1;return J==null||R.default(G,J)}function LS(G,J){if(!G)return!1;if(G.type!=="JSXSpreadChild")return!1;return J==null||R.default(G,J)}function TS(G,J){if(!G)return!1;if(G.type!=="JSXIdentifier")return!1;return J==null||R.default(G,J)}function wS(G,J){if(!G)return!1;if(G.type!=="JSXMemberExpression")return!1;return J==null||R.default(G,J)}function NS(G,J){if(!G)return!1;if(G.type!=="JSXNamespacedName")return!1;return J==null||R.default(G,J)}function kS(G,J){if(!G)return!1;if(G.type!=="JSXOpeningElement")return!1;return J==null||R.default(G,J)}function ES(G,J){if(!G)return!1;if(G.type!=="JSXSpreadAttribute")return!1;return J==null||R.default(G,J)}function OS(G,J){if(!G)return!1;if(G.type!=="JSXText")return!1;return J==null||R.default(G,J)}function vS(G,J){if(!G)return!1;if(G.type!=="JSXFragment")return!1;return J==null||R.default(G,J)}function _S(G,J){if(!G)return!1;if(G.type!=="JSXOpeningFragment")return!1;return J==null||R.default(G,J)}function gS(G,J){if(!G)return!1;if(G.type!=="JSXClosingFragment")return!1;return J==null||R.default(G,J)}function bS(G,J){if(!G)return!1;if(G.type!=="Noop")return!1;return J==null||R.default(G,J)}function hS(G,J){if(!G)return!1;if(G.type!=="Placeholder")return!1;return J==null||R.default(G,J)}function yS(G,J){if(!G)return!1;if(G.type!=="V8IntrinsicIdentifier")return!1;return J==null||R.default(G,J)}function mS(G,J){if(!G)return!1;if(G.type!=="ArgumentPlaceholder")return!1;return J==null||R.default(G,J)}function xS(G,J){if(!G)return!1;if(G.type!=="BindExpression")return!1;return J==null||R.default(G,J)}function lS(G,J){if(!G)return!1;if(G.type!=="ImportAttribute")return!1;return J==null||R.default(G,J)}function cS(G,J){if(!G)return!1;if(G.type!=="Decorator")return!1;return J==null||R.default(G,J)}function aS(G,J){if(!G)return!1;if(G.type!=="DoExpression")return!1;return J==null||R.default(G,J)}function rS(G,J){if(!G)return!1;if(G.type!=="ExportDefaultSpecifier")return!1;return J==null||R.default(G,J)}function iS(G,J){if(!G)return!1;if(G.type!=="RecordExpression")return!1;return J==null||R.default(G,J)}function uS(G,J){if(!G)return!1;if(G.type!=="TupleExpression")return!1;return J==null||R.default(G,J)}function dS(G,J){if(!G)return!1;if(G.type!=="DecimalLiteral")return!1;return J==null||R.default(G,J)}function sS(G,J){if(!G)return!1;if(G.type!=="ModuleExpression")return!1;return J==null||R.default(G,J)}function pS(G,J){if(!G)return!1;if(G.type!=="TopicReference")return!1;return J==null||R.default(G,J)}function nS(G,J){if(!G)return!1;if(G.type!=="PipelineTopicExpression")return!1;return J==null||R.default(G,J)}function oS(G,J){if(!G)return!1;if(G.type!=="PipelineBareFunction")return!1;return J==null||R.default(G,J)}function eS(G,J){if(!G)return!1;if(G.type!=="PipelinePrimaryTopicReference")return!1;return J==null||R.default(G,J)}function tS(G,J){if(!G)return!1;if(G.type!=="TSParameterProperty")return!1;return J==null||R.default(G,J)}function GP(G,J){if(!G)return!1;if(G.type!=="TSDeclareFunction")return!1;return J==null||R.default(G,J)}function JP(G,J){if(!G)return!1;if(G.type!=="TSDeclareMethod")return!1;return J==null||R.default(G,J)}function XP(G,J){if(!G)return!1;if(G.type!=="TSQualifiedName")return!1;return J==null||R.default(G,J)}function HP(G,J){if(!G)return!1;if(G.type!=="TSCallSignatureDeclaration")return!1;return J==null||R.default(G,J)}function ZP(G,J){if(!G)return!1;if(G.type!=="TSConstructSignatureDeclaration")return!1;return J==null||R.default(G,J)}function VP(G,J){if(!G)return!1;if(G.type!=="TSPropertySignature")return!1;return J==null||R.default(G,J)}function QP(G,J){if(!G)return!1;if(G.type!=="TSMethodSignature")return!1;return J==null||R.default(G,J)}function YP(G,J){if(!G)return!1;if(G.type!=="TSIndexSignature")return!1;return J==null||R.default(G,J)}function WP(G,J){if(!G)return!1;if(G.type!=="TSAnyKeyword")return!1;return J==null||R.default(G,J)}function zP(G,J){if(!G)return!1;if(G.type!=="TSBooleanKeyword")return!1;return J==null||R.default(G,J)}function UP(G,J){if(!G)return!1;if(G.type!=="TSBigIntKeyword")return!1;return J==null||R.default(G,J)}function KP(G,J){if(!G)return!1;if(G.type!=="TSIntrinsicKeyword")return!1;return J==null||R.default(G,J)}function BP(G,J){if(!G)return!1;if(G.type!=="TSNeverKeyword")return!1;return J==null||R.default(G,J)}function $P(G,J){if(!G)return!1;if(G.type!=="TSNullKeyword")return!1;return J==null||R.default(G,J)}function RP(G,J){if(!G)return!1;if(G.type!=="TSNumberKeyword")return!1;return J==null||R.default(G,J)}function MP(G,J){if(!G)return!1;if(G.type!=="TSObjectKeyword")return!1;return J==null||R.default(G,J)}function qP(G,J){if(!G)return!1;if(G.type!=="TSStringKeyword")return!1;return J==null||R.default(G,J)}function FP(G,J){if(!G)return!1;if(G.type!=="TSSymbolKeyword")return!1;return J==null||R.default(G,J)}function jP(G,J){if(!G)return!1;if(G.type!=="TSUndefinedKeyword")return!1;return J==null||R.default(G,J)}function DP(G,J){if(!G)return!1;if(G.type!=="TSUnknownKeyword")return!1;return J==null||R.default(G,J)}function IP(G,J){if(!G)return!1;if(G.type!=="TSVoidKeyword")return!1;return J==null||R.default(G,J)}function AP(G,J){if(!G)return!1;if(G.type!=="TSThisType")return!1;return J==null||R.default(G,J)}function CP(G,J){if(!G)return!1;if(G.type!=="TSFunctionType")return!1;return J==null||R.default(G,J)}function fP(G,J){if(!G)return!1;if(G.type!=="TSConstructorType")return!1;return J==null||R.default(G,J)}function SP(G,J){if(!G)return!1;if(G.type!=="TSTypeReference")return!1;return J==null||R.default(G,J)}function PP(G,J){if(!G)return!1;if(G.type!=="TSTypePredicate")return!1;return J==null||R.default(G,J)}function LP(G,J){if(!G)return!1;if(G.type!=="TSTypeQuery")return!1;return J==null||R.default(G,J)}function TP(G,J){if(!G)return!1;if(G.type!=="TSTypeLiteral")return!1;return J==null||R.default(G,J)}function wP(G,J){if(!G)return!1;if(G.type!=="TSArrayType")return!1;return J==null||R.default(G,J)}function NP(G,J){if(!G)return!1;if(G.type!=="TSTupleType")return!1;return J==null||R.default(G,J)}function kP(G,J){if(!G)return!1;if(G.type!=="TSOptionalType")return!1;return J==null||R.default(G,J)}function EP(G,J){if(!G)return!1;if(G.type!=="TSRestType")return!1;return J==null||R.default(G,J)}function OP(G,J){if(!G)return!1;if(G.type!=="TSNamedTupleMember")return!1;return J==null||R.default(G,J)}function vP(G,J){if(!G)return!1;if(G.type!=="TSUnionType")return!1;return J==null||R.default(G,J)}function _P(G,J){if(!G)return!1;if(G.type!=="TSIntersectionType")return!1;return J==null||R.default(G,J)}function gP(G,J){if(!G)return!1;if(G.type!=="TSConditionalType")return!1;return J==null||R.default(G,J)}function bP(G,J){if(!G)return!1;if(G.type!=="TSInferType")return!1;return J==null||R.default(G,J)}function hP(G,J){if(!G)return!1;if(G.type!=="TSParenthesizedType")return!1;return J==null||R.default(G,J)}function yP(G,J){if(!G)return!1;if(G.type!=="TSTypeOperator")return!1;return J==null||R.default(G,J)}function mP(G,J){if(!G)return!1;if(G.type!=="TSIndexedAccessType")return!1;return J==null||R.default(G,J)}function xP(G,J){if(!G)return!1;if(G.type!=="TSMappedType")return!1;return J==null||R.default(G,J)}function lP(G,J){if(!G)return!1;if(G.type!=="TSLiteralType")return!1;return J==null||R.default(G,J)}function cP(G,J){if(!G)return!1;if(G.type!=="TSExpressionWithTypeArguments")return!1;return J==null||R.default(G,J)}function aP(G,J){if(!G)return!1;if(G.type!=="TSInterfaceDeclaration")return!1;return J==null||R.default(G,J)}function rP(G,J){if(!G)return!1;if(G.type!=="TSInterfaceBody")return!1;return J==null||R.default(G,J)}function iP(G,J){if(!G)return!1;if(G.type!=="TSTypeAliasDeclaration")return!1;return J==null||R.default(G,J)}function uP(G,J){if(!G)return!1;if(G.type!=="TSInstantiationExpression")return!1;return J==null||R.default(G,J)}function dP(G,J){if(!G)return!1;if(G.type!=="TSAsExpression")return!1;return J==null||R.default(G,J)}function sP(G,J){if(!G)return!1;if(G.type!=="TSSatisfiesExpression")return!1;return J==null||R.default(G,J)}function pP(G,J){if(!G)return!1;if(G.type!=="TSTypeAssertion")return!1;return J==null||R.default(G,J)}function nP(G,J){if(!G)return!1;if(G.type!=="TSEnumDeclaration")return!1;return J==null||R.default(G,J)}function oP(G,J){if(!G)return!1;if(G.type!=="TSEnumMember")return!1;return J==null||R.default(G,J)}function eP(G,J){if(!G)return!1;if(G.type!=="TSModuleDeclaration")return!1;return J==null||R.default(G,J)}function tP(G,J){if(!G)return!1;if(G.type!=="TSModuleBlock")return!1;return J==null||R.default(G,J)}function GL(G,J){if(!G)return!1;if(G.type!=="TSImportType")return!1;return J==null||R.default(G,J)}function JL(G,J){if(!G)return!1;if(G.type!=="TSImportEqualsDeclaration")return!1;return J==null||R.default(G,J)}function XL(G,J){if(!G)return!1;if(G.type!=="TSExternalModuleReference")return!1;return J==null||R.default(G,J)}function HL(G,J){if(!G)return!1;if(G.type!=="TSNonNullExpression")return!1;return J==null||R.default(G,J)}function ZL(G,J){if(!G)return!1;if(G.type!=="TSExportAssignment")return!1;return J==null||R.default(G,J)}function VL(G,J){if(!G)return!1;if(G.type!=="TSNamespaceExportDeclaration")return!1;return J==null||R.default(G,J)}function QL(G,J){if(!G)return!1;if(G.type!=="TSTypeAnnotation")return!1;return J==null||R.default(G,J)}function YL(G,J){if(!G)return!1;if(G.type!=="TSTypeParameterInstantiation")return!1;return J==null||R.default(G,J)}function WL(G,J){if(!G)return!1;if(G.type!=="TSTypeParameterDeclaration")return!1;return J==null||R.default(G,J)}function zL(G,J){if(!G)return!1;if(G.type!=="TSTypeParameter")return!1;return J==null||R.default(G,J)}function UL(G,J){if(!G)return!1;switch(G.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(G.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return J==null||R.default(G,J)}function KL(G,J){if(!G)return!1;switch(G.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(G.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return J==null||R.default(G,J)}function BL(G,J){if(!G)return!1;switch(G.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return J==null||R.default(G,J)}function $L(G,J){if(!G)return!1;switch(G.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(G.expectedNode==="BlockStatement")break;default:return!1}return J==null||R.default(G,J)}function RL(G,J){if(!G)return!1;switch(G.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(G.expectedNode==="BlockStatement")break;default:return!1}return J==null||R.default(G,J)}function ML(G,J){if(!G)return!1;switch(G.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(G.expectedNode==="BlockStatement")break;default:return!1}return J==null||R.default(G,J)}function qL(G,J){if(!G)return!1;switch(G.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(G.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return J==null||R.default(G,J)}function FL(G,J){if(!G)return!1;switch(G.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return J==null||R.default(G,J)}function jL(G,J){if(!G)return!1;switch(G.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return J==null||R.default(G,J)}function DL(G,J){if(!G)return!1;switch(G.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return J==null||R.default(G,J)}function IL(G,J){if(!G)return!1;switch(G.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return J==null||R.default(G,J)}function AL(G,J){if(!G)return!1;switch(G.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return J==null||R.default(G,J)}function CL(G,J){if(!G)return!1;switch(G.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return J==null||R.default(G,J)}function fL(G,J){if(!G)return!1;switch(G.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return J==null||R.default(G,J)}function SL(G,J){if(!G)return!1;switch(G.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return J==null||R.default(G,J)}function PL(G,J){if(!G)return!1;switch(G.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return J==null||R.default(G,J)}function LL(G,J){if(!G)return!1;switch(G.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return J==null||R.default(G,J)}function TL(G,J){if(!G)return!1;switch(G.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(G.expectedNode==="StringLiteral")break;default:return!1}return J==null||R.default(G,J)}function wL(G,J){if(!G)return!1;switch(G.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if(G.expectedNode==="Declaration")break;default:return!1}return J==null||R.default(G,J)}function NL(G,J){if(!G)return!1;switch(G.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(G.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return J==null||R.default(G,J)}function kL(G,J){if(!G)return!1;switch(G.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(G.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return J==null||R.default(G,J)}function EL(G,J){if(!G)return!1;switch(G.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(G.expectedNode==="Identifier")break;default:return!1}return J==null||R.default(G,J)}function OL(G,J){if(!G)return!1;switch(G.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(G.expectedNode==="StringLiteral")break;default:return!1}return J==null||R.default(G,J)}function vL(G,J){if(!G)return!1;switch(G.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(G.expectedNode==="StringLiteral")break;default:return!1}return J==null||R.default(G,J)}function _L(G,J){if(!G)return!1;switch(G.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return J==null||R.default(G,J)}function gL(G,J){if(!G)return!1;switch(G.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return J==null||R.default(G,J)}function bL(G,J){if(!G)return!1;switch(G.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return J==null||R.default(G,J)}function hL(G,J){if(!G)return!1;switch(G.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return J==null||R.default(G,J)}function yL(G,J){if(!G)return!1;switch(G.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return J==null||R.default(G,J)}function mL(G,J){if(!G)return!1;switch(G.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(G.expectedNode==="Pattern")break;default:return!1}return J==null||R.default(G,J)}function xL(G,J){if(!G)return!1;switch(G.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return J==null||R.default(G,J)}function uV(G,J){if(!G)return!1;switch(G.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return J==null||R.default(G,J)}function lL(G,J){if(!G)return!1;switch(G.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return J==null||R.default(G,J)}function cL(G,J){if(!G)return!1;switch(G.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return J==null||R.default(G,J)}function aL(G,J){if(!G)return!1;switch(G.type){case"ClassAccessorProperty":break;default:return!1}return J==null||R.default(G,J)}function rL(G,J){if(!G)return!1;switch(G.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return J==null||R.default(G,J)}function iL(G,J){if(!G)return!1;switch(G.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return J==null||R.default(G,J)}function uL(G,J){if(!G)return!1;switch(G.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return J==null||R.default(G,J)}function dL(G,J){if(!G)return!1;switch(G.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return J==null||R.default(G,J)}function sL(G,J){if(!G)return!1;switch(G.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return J==null||R.default(G,J)}function pL(G,J){if(!G)return!1;switch(G.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return J==null||R.default(G,J)}function nL(G,J){if(!G)return!1;switch(G.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return J==null||R.default(G,J)}function oL(G,J){if(!G)return!1;switch(G.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return J==null||R.default(G,J)}function eL(G,J){if(!G)return!1;switch(G.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return J==null||R.default(G,J)}function tL(G,J){if(!G)return!1;switch(G.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return J==null||R.default(G,J)}function GT(G,J){if(!G)return!1;switch(G.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return J==null||R.default(G,J)}function JT(G,J){if(!G)return!1;switch(G.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return J==null||R.default(G,J)}function XT(G,J){if(!G)return!1;switch(G.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return J==null||R.default(G,J)}function HT(G,J){if(!G)return!1;switch(G.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return J==null||R.default(G,J)}function ZT(G,J){if(B9.default("isNumberLiteral","isNumericLiteral"),!G)return!1;if(G.type!=="NumberLiteral")return!1;return J==null||R.default(G,J)}function VT(G,J){if(B9.default("isRegexLiteral","isRegExpLiteral"),!G)return!1;if(G.type!=="RegexLiteral")return!1;return J==null||R.default(G,J)}function QT(G,J){if(B9.default("isRestProperty","isRestElement"),!G)return!1;if(G.type!=="RestProperty")return!1;return J==null||R.default(G,J)}function YT(G,J){if(B9.default("isSpreadProperty","isSpreadElement"),!G)return!1;if(G.type!=="SpreadProperty")return!1;return J==null||R.default(G,J)}function WT(G,J){return B9.default("isModuleDeclaration","isImportOrExportDeclaration"),uV(G,J)}Object.defineProperty(dV,"__esModule",{value:!0});dV.isAccessor=aL;dV.isAnyTypeAnnotation=zf;dV.isArgumentPlaceholder=mS;dV.isArrayExpression=NA;dV.isArrayPattern=TC;dV.isArrayTypeAnnotation=Uf;dV.isArrowFunctionExpression=wC;dV.isAssignmentExpression=kA;dV.isAssignmentPattern=LC;dV.isAwaitExpression=oC;dV.isBigIntLiteral=tC;dV.isBinary=BL;dV.isBinaryExpression=EA;dV.isBindExpression=xS;dV.isBlock=ML;dV.isBlockParent=RL;dV.isBlockStatement=gA;dV.isBooleanLiteral=XC;dV.isBooleanLiteralTypeAnnotation=Bf;dV.isBooleanTypeAnnotation=Kf;dV.isBreakStatement=bA;dV.isCallExpression=hA;dV.isCatchClause=yA;dV.isClass=xL;dV.isClassAccessorProperty=Zf;dV.isClassBody=NC;dV.isClassDeclaration=EC;dV.isClassExpression=kC;dV.isClassImplements=Rf;dV.isClassMethod=aC;dV.isClassPrivateMethod=Qf;dV.isClassPrivateProperty=Vf;dV.isClassProperty=Hf;dV.isCompletionStatement=jL;dV.isConditional=DL;dV.isConditionalExpression=mA;dV.isContinueStatement=xA;dV.isDebuggerStatement=lA;dV.isDecimalLiteral=dS;dV.isDeclaration=wL;dV.isDeclareClass=Mf;dV.isDeclareExportAllDeclaration=Sf;dV.isDeclareExportDeclaration=ff;dV.isDeclareFunction=qf;dV.isDeclareInterface=Ff;dV.isDeclareModule=jf;dV.isDeclareModuleExports=Df;dV.isDeclareOpaqueType=Af;dV.isDeclareTypeAlias=If;dV.isDeclareVariable=Cf;dV.isDeclaredPredicate=Pf;dV.isDecorator=cS;dV.isDirective=vA;dV.isDirectiveLiteral=_A;dV.isDoExpression=aS;dV.isDoWhileStatement=cA;dV.isEmptyStatement=aA;dV.isEmptyTypeAnnotation=bf;dV.isEnumBody=nL;dV.isEnumBooleanBody=KS;dV.isEnumBooleanMember=MS;dV.isEnumDeclaration=US;dV.isEnumDefaultedMember=jS;dV.isEnumMember=oL;dV.isEnumNumberBody=BS;dV.isEnumNumberMember=qS;dV.isEnumStringBody=$S;dV.isEnumStringMember=FS;dV.isEnumSymbolBody=RS;dV.isExistsTypeAnnotation=Lf;dV.isExportAllDeclaration=OC;dV.isExportDeclaration=lL;dV.isExportDefaultDeclaration=vC;dV.isExportDefaultSpecifier=rS;dV.isExportNamedDeclaration=_C;dV.isExportNamespaceSpecifier=Gf;dV.isExportSpecifier=gC;dV.isExpression=KL;dV.isExpressionStatement=rA;dV.isExpressionWrapper=CL;dV.isFile=iA;dV.isFlow=iL;dV.isFlowBaseAnnotation=dL;dV.isFlowDeclaration=sL;dV.isFlowPredicate=pL;dV.isFlowType=uL;dV.isFor=fL;dV.isForInStatement=uA;dV.isForOfStatement=bC;dV.isForStatement=dA;dV.isForXStatement=SL;dV.isFunction=PL;dV.isFunctionDeclaration=sA;dV.isFunctionExpression=pA;dV.isFunctionParent=LL;dV.isFunctionTypeAnnotation=Tf;dV.isFunctionTypeParam=wf;dV.isGenericTypeAnnotation=Nf;dV.isIdentifier=nA;dV.isIfStatement=oA;dV.isImmutable=vL;dV.isImport=eC;dV.isImportAttribute=lS;dV.isImportDeclaration=hC;dV.isImportDefaultSpecifier=yC;dV.isImportExpression=lC;dV.isImportNamespaceSpecifier=mC;dV.isImportOrExportDeclaration=uV;dV.isImportSpecifier=xC;dV.isIndexedAccessType=DS;dV.isInferredPredicate=kf;dV.isInterfaceDeclaration=Of;dV.isInterfaceExtends=Ef;dV.isInterfaceTypeAnnotation=vf;dV.isInterpreterDirective=OA;dV.isIntersectionTypeAnnotation=_f;dV.isJSX=eL;dV.isJSXAttribute=AS;dV.isJSXClosingElement=CS;dV.isJSXClosingFragment=gS;dV.isJSXElement=fS;dV.isJSXEmptyExpression=SS;dV.isJSXExpressionContainer=PS;dV.isJSXFragment=vS;dV.isJSXIdentifier=TS;dV.isJSXMemberExpression=wS;dV.isJSXNamespacedName=NS;dV.isJSXOpeningElement=kS;dV.isJSXOpeningFragment=_S;dV.isJSXSpreadAttribute=ES;dV.isJSXSpreadChild=LS;dV.isJSXText=OS;dV.isLVal=kL;dV.isLabeledStatement=eA;dV.isLiteral=OL;dV.isLogicalExpression=ZC;dV.isLoop=IL;dV.isMemberExpression=VC;dV.isMetaProperty=cC;dV.isMethod=gL;dV.isMiscellaneous=tL;dV.isMixedTypeAnnotation=gf;dV.isModuleDeclaration=WT;dV.isModuleExpression=sS;dV.isModuleSpecifier=cL;dV.isNewExpression=QC;dV.isNoop=bS;dV.isNullLiteral=JC;dV.isNullLiteralTypeAnnotation=$f;dV.isNullableTypeAnnotation=hf;dV.isNumberLiteral=ZT;dV.isNumberLiteralTypeAnnotation=yf;dV.isNumberTypeAnnotation=mf;dV.isNumericLiteral=GC;dV.isObjectExpression=WC;dV.isObjectMember=bL;dV.isObjectMethod=zC;dV.isObjectPattern=rC;dV.isObjectProperty=UC;dV.isObjectTypeAnnotation=xf;dV.isObjectTypeCallProperty=cf;dV.isObjectTypeIndexer=af;dV.isObjectTypeInternalSlot=lf;dV.isObjectTypeProperty=rf;dV.isObjectTypeSpreadProperty=uf;dV.isOpaqueType=df;dV.isOptionalCallExpression=Xf;dV.isOptionalIndexedAccessType=IS;dV.isOptionalMemberExpression=Jf;dV.isParenthesizedExpression=RC;dV.isPattern=mL;dV.isPatternLike=NL;dV.isPipelineBareFunction=oS;dV.isPipelinePrimaryTopicReference=eS;dV.isPipelineTopicExpression=nS;dV.isPlaceholder=hS;dV.isPrivate=rL;dV.isPrivateName=Yf;dV.isProgram=YC;dV.isProperty=hL;dV.isPureish=TL;dV.isQualifiedTypeIdentifier=sf;dV.isRecordExpression=iS;dV.isRegExpLiteral=HC;dV.isRegexLiteral=VT;dV.isRestElement=KC;dV.isRestProperty=QT;dV.isReturnStatement=BC;dV.isScopable=$L;dV.isSequenceExpression=$C;dV.isSpreadElement=iC;dV.isSpreadProperty=YT;dV.isStandardized=UL;dV.isStatement=qL;dV.isStaticBlock=Wf;dV.isStringLiteral=tA;dV.isStringLiteralTypeAnnotation=pf;dV.isStringTypeAnnotation=nf;dV.isSuper=uC;dV.isSwitchCase=MC;dV.isSwitchStatement=qC;dV.isSymbolTypeAnnotation=of;dV.isTSAnyKeyword=WP;dV.isTSArrayType=wP;dV.isTSAsExpression=dP;dV.isTSBaseType=HT;dV.isTSBigIntKeyword=UP;dV.isTSBooleanKeyword=zP;dV.isTSCallSignatureDeclaration=HP;dV.isTSConditionalType=gP;dV.isTSConstructSignatureDeclaration=ZP;dV.isTSConstructorType=fP;dV.isTSDeclareFunction=GP;dV.isTSDeclareMethod=JP;dV.isTSEntityName=EL;dV.isTSEnumDeclaration=nP;dV.isTSEnumMember=oP;dV.isTSExportAssignment=ZL;dV.isTSExpressionWithTypeArguments=cP;dV.isTSExternalModuleReference=XL;dV.isTSFunctionType=CP;dV.isTSImportEqualsDeclaration=JL;dV.isTSImportType=GL;dV.isTSIndexSignature=YP;dV.isTSIndexedAccessType=mP;dV.isTSInferType=bP;dV.isTSInstantiationExpression=uP;dV.isTSInterfaceBody=rP;dV.isTSInterfaceDeclaration=aP;dV.isTSIntersectionType=_P;dV.isTSIntrinsicKeyword=KP;dV.isTSLiteralType=lP;dV.isTSMappedType=xP;dV.isTSMethodSignature=QP;dV.isTSModuleBlock=tP;dV.isTSModuleDeclaration=eP;dV.isTSNamedTupleMember=OP;dV.isTSNamespaceExportDeclaration=VL;dV.isTSNeverKeyword=BP;dV.isTSNonNullExpression=HL;dV.isTSNullKeyword=$P;dV.isTSNumberKeyword=RP;dV.isTSObjectKeyword=MP;dV.isTSOptionalType=kP;dV.isTSParameterProperty=tS;dV.isTSParenthesizedType=hP;dV.isTSPropertySignature=VP;dV.isTSQualifiedName=XP;dV.isTSRestType=EP;dV.isTSSatisfiesExpression=sP;dV.isTSStringKeyword=qP;dV.isTSSymbolKeyword=FP;dV.isTSThisType=AP;dV.isTSTupleType=NP;dV.isTSType=XT;dV.isTSTypeAliasDeclaration=iP;dV.isTSTypeAnnotation=QL;dV.isTSTypeAssertion=pP;dV.isTSTypeElement=JT;dV.isTSTypeLiteral=TP;dV.isTSTypeOperator=yP;dV.isTSTypeParameter=zL;dV.isTSTypeParameterDeclaration=WL;dV.isTSTypeParameterInstantiation=YL;dV.isTSTypePredicate=PP;dV.isTSTypeQuery=LP;dV.isTSTypeReference=SP;dV.isTSUndefinedKeyword=jP;dV.isTSUnionType=vP;dV.isTSUnknownKeyword=DP;dV.isTSVoidKeyword=IP;dV.isTaggedTemplateExpression=dC;dV.isTemplateElement=sC;dV.isTemplateLiteral=pC;dV.isTerminatorless=FL;dV.isThisExpression=FC;dV.isThisTypeAnnotation=ef;dV.isThrowStatement=jC;dV.isTopicReference=pS;dV.isTryStatement=DC;dV.isTupleExpression=uS;dV.isTupleTypeAnnotation=tf;dV.isTypeAlias=JS;dV.isTypeAnnotation=XS;dV.isTypeCastExpression=HS;dV.isTypeParameter=ZS;dV.isTypeParameterDeclaration=VS;dV.isTypeParameterInstantiation=QS;dV.isTypeScript=GT;dV.isTypeofTypeAnnotation=GS;dV.isUnaryExpression=IC;dV.isUnaryLike=yL;dV.isUnionTypeAnnotation=YS;dV.isUpdateExpression=AC;dV.isUserWhitespacable=_L;dV.isV8IntrinsicIdentifier=yS;dV.isVariableDeclaration=CC;dV.isVariableDeclarator=fC;dV.isVariance=WS;dV.isVoidTypeAnnotation=zS;dV.isWhile=AL;dV.isWhileStatement=SC;dV.isWithStatement=PC;dV.isYieldExpression=nC;var R=zG(),B9=K9()});var QX=S((sV)=>{function aO(G,J,X){if(!$9.isMemberExpression(G))return!1;const H=Array.isArray(J)?J:J.split("."),Z=[];let V;for(V=G;$9.isMemberExpression(V);V=V.object)Z.push(V.property);if(Z.push(V),Z.length<H.length)return!1;if(!X&&Z.length>H.length)return!1;for(let Q=0,Y=Z.length-1;Q<H.length;Q++,Y--){const W=Z[Y];let z;if($9.isIdentifier(W))z=W.name;else if($9.isStringLiteral(W))z=W.value;else if($9.isThisExpression(W))z="this";else return!1;if(H[Q]!==z)return!1}return!0}Object.defineProperty(sV,"__esModule",{value:!0});sV.default=aO;var $9=r1()});var YX=S((pV)=>{function uO(G,J){const X=G.split(".");return(H)=>iO.default(H,X,J)}Object.defineProperty(pV,"__esModule",{value:!0});pV.default=uO;var iO=QX()});var eV=S((nV)=>{Object.defineProperty(nV,"__esModule",{value:!0});nV.default=void 0;var sO=YX(),pO=sO.default("React.Component"),$N1=nV.default=pO});var GQ=S((tV)=>{function nO(G){return!!G&&/^[a-z]/.test(G)}Object.defineProperty(tV,"__esModule",{value:!0});tV.default=nO});var XQ=S((qN1,JQ)=>{function M9(G){if(R9!==null&&typeof R9.property){const J=R9;return R9=M9.prototype=null,J}return R9=M9.prototype=G==null?Object.create(null):G,new M9}var R9=null;M9();JQ.exports=function G(J){return M9(J)}});var UG=S((ZQ)=>{function eO(G,J){if(G===J)return!0;if(G==null)return!1;if(HQ.ALIAS_KEYS[J])return!1;const X=HQ.FLIPPED_ALIAS_KEYS[J];if(X){if(X[0]===G)return!0;for(let H of X)if(G===H)return!0}return!1}Object.defineProperty(ZQ,"__esModule",{value:!0});ZQ.default=eO;var HQ=w2()});var WX=S((VQ)=>{function Jv(G,J){if(G===J)return!0;const X=Gv.PLACEHOLDERS_ALIAS[G];if(X){for(let H of X)if(J===H)return!0}return!1}Object.defineProperty(VQ,"__esModule",{value:!0});VQ.default=Jv;var Gv=w2()});var N5=S((QQ)=>{function Yv(G,J,X){if(!J)return!1;if(!Zv.default(J.type,G)){if(!X&&J.type==="Placeholder"&&G in Qv.FLIPPED_ALIAS_KEYS)return Vv.default(J.expectedNode,G);return!1}if(X===void 0)return!0;else return Hv.default(J,X)}Object.defineProperty(QQ,"__esModule",{value:!0});QQ.default=Yv;var Hv=zG(),Zv=UG(),Vv=WX(),Qv=w2()});var BQ=S((KQ)=>{function zX(G,J){let X=65536;for(let H=0,Z=J.length;H<Z;H+=2){if(X+=J[H],X>G)return!1;if(X+=J[H+1],X>=G)return!0}return!1}function zQ(G){if(G<65)return G===36;if(G<=90)return!0;if(G<97)return G===95;if(G<=122)return!0;if(G<=65535)return G>=170&&zv.test(String.fromCharCode(G));return zX(G,WQ)}function UQ(G){if(G<48)return G===36;if(G<58)return!0;if(G<65)return!1;if(G<=90)return!0;if(G<97)return G===95;if(G<=122)return!0;if(G<=65535)return G>=170&&Uv.test(String.fromCharCode(G));return zX(G,WQ)||zX(G,Kv)}function Bv(G){let J=!0;for(let X=0;X<G.length;X++){let H=G.charCodeAt(X);if((H&64512)===55296&&X+1<G.length){const Z=G.charCodeAt(++X);if((Z&64512)===56320)H=65536+((H&1023)<<10)+(Z&1023)}if(J){if(J=!1,!zQ(H))return!1}else if(!UQ(H))return!1}return!J}Object.defineProperty(KQ,"__esModule",{value:!0});KQ.isIdentifierChar=UQ;KQ.isIdentifierName=Bv;KQ.isIdentifierStart=zQ;var UX="\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",YQ="\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",zv=new RegExp("["+UX+"]"),Uv=new RegExp("["+UX+YQ+"]");UX=YQ=null;var WQ=[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],Kv=[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]});var FQ=S((qQ)=>{function $Q(G,J){return J&&G==="await"||G==="enum"}function RQ(G,J){return $Q(G,J)||Fv.has(G)}function MQ(G){return jv.has(G)}function Dv(G,J){return RQ(G,J)||MQ(G)}function Iv(G){return qv.has(G)}Object.defineProperty(qQ,"__esModule",{value:!0});qQ.isKeyword=Iv;qQ.isReservedWord=$Q;qQ.isStrictBindOnlyReservedWord=MQ;qQ.isStrictBindReservedWord=Dv;qQ.isStrictReservedWord=RQ;var KX={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"]},qv=new Set(KX.keyword),Fv=new Set(KX.strict),jv=new Set(KX.strictBind)});var F9=S((s2)=>{Object.defineProperty(s2,"__esModule",{value:!0});Object.defineProperty(s2,"isIdentifierChar",{enumerable:!0,get:function(){return BX.isIdentifierChar}});Object.defineProperty(s2,"isIdentifierName",{enumerable:!0,get:function(){return BX.isIdentifierName}});Object.defineProperty(s2,"isIdentifierStart",{enumerable:!0,get:function(){return BX.isIdentifierStart}});Object.defineProperty(s2,"isKeyword",{enumerable:!0,get:function(){return q9.isKeyword}});Object.defineProperty(s2,"isReservedWord",{enumerable:!0,get:function(){return q9.isReservedWord}});Object.defineProperty(s2,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return q9.isStrictBindOnlyReservedWord}});Object.defineProperty(s2,"isStrictBindReservedWord",{enumerable:!0,get:function(){return q9.isStrictBindReservedWord}});Object.defineProperty(s2,"isStrictReservedWord",{enumerable:!0,get:function(){return q9.isStrictReservedWord}});var BX=BQ(),q9=FQ()});var k5=S((jQ)=>{function Lv(G,J=!0){if(typeof G!=="string")return!1;if(J){if($X.isKeyword(G)||$X.isStrictReservedWord(G,!0))return!1}return $X.isIdentifierName(G)}Object.defineProperty(jQ,"__esModule",{value:!0});jQ.default=Lv;var $X=F9()});var fQ=S((CQ)=>{function Nv(G,J,X,H,Z,V){const Q=X,Y=H,W=Z;let z="",B=null,q=X;const{length:F}=J;for(;;){if(X>=F){V.unterminated(Q,Y,W),z+=J.slice(q,X);break}const j=J.charCodeAt(X);if(kv(G,j,J,X)){z+=J.slice(q,X);break}if(j===92){z+=J.slice(q,X);const f=Ev(J,X,H,Z,G==="template",V);if(f.ch===null&&!B)B={pos:X,lineStart:H,curLine:Z};else z+=f.ch;({pos:X,lineStart:H,curLine:Z}=f),q=X}else if(j===8232||j===8233)++X,++Z,H=X;else if(j===10||j===13)if(G==="template"){if(z+=J.slice(q,X)+"\n",++X,j===13&&J.charCodeAt(X)===10)++X;++Z,q=H=X}else V.unterminated(Q,Y,W);else++X}return{pos:X,str:z,firstInvalidLoc:B,lineStart:H,curLine:Z,containsInvalid:!!B}}function kv(G,J,X,H){if(G==="template")return J===96||J===36&&X.charCodeAt(H+1)===123;return J===(G==="double"?34:39)}function Ev(G,J,X,H,Z,V){const Q=!Z;J++;const Y=(z)=>({pos:J,ch:z,lineStart:X,curLine:H}),W=G.charCodeAt(J++);switch(W){case 110:return Y("\n");case 114:return Y("\r");case 120:{let z;return{code:z,pos:J}=RX(G,J,X,H,2,!1,Q,V),Y(z===null?null:String.fromCharCode(z))}case 117:{let z;return{code:z,pos:J}=AQ(G,J,X,H,Q,V),Y(z===null?null:String.fromCodePoint(z))}case 116:return Y("\t");case 98:return Y("\b");case 118:return Y("\v");case 102:return Y("\f");case 13:if(G.charCodeAt(J)===10)++J;case 10:X=J,++H;case 8232:case 8233:return Y("");case 56:case 57:if(Z)return Y(null);else V.strictNumericEscape(J-1,X,H);default:if(W>=48&&W<=55){const z=J-1;let q=/^[0-7]+/.exec(G.slice(z,J+2))[0],F=parseInt(q,8);if(F>255)q=q.slice(0,-1),F=parseInt(q,8);J+=q.length-1;const j=G.charCodeAt(J);if(q!=="0"||j===56||j===57)if(Z)return Y(null);else V.strictNumericEscape(z,X,H);return Y(String.fromCharCode(F))}return Y(String.fromCharCode(W))}}function RX(G,J,X,H,Z,V,Q,Y){const W=J;let z;if({n:z,pos:J}=IQ(G,J,X,H,16,Z,V,!1,Y,!Q),z===null)if(Q)Y.invalidEscapeSequence(W,X,H);else J=W-1;return{code:z,pos:J}}function IQ(G,J,X,H,Z,V,Q,Y,W,z){const B=J,q=Z===16?DQ.hex:DQ.decBinOct,F=Z===16?KG.hex:Z===10?KG.dec:Z===8?KG.oct:KG.bin;let j=!1,f=0;for(let y=0,w=V==null?1/0:V;y<w;++y){const v=G.charCodeAt(J);let h;if(v===95&&Y!=="bail"){const K1=G.charCodeAt(J-1),e=G.charCodeAt(J+1);if(!Y){if(z)return{n:null,pos:J};W.numericSeparatorInEscapeSequence(J,X,H)}else if(Number.isNaN(e)||!F(e)||q.has(K1)||q.has(e)){if(z)return{n:null,pos:J};W.unexpectedNumericSeparator(J,X,H)}++J;continue}if(v>=97)h=v-97+10;else if(v>=65)h=v-65+10;else if(wv(v))h=v-48;else h=1/0;if(h>=Z)if(h<=9&&z)return{n:null,pos:J};else if(h<=9&&W.invalidDigit(J,X,H,Z))h=0;else if(Q)h=0,j=!0;else break;++J,f=f*Z+h}if(J===B||V!=null&&J-B!==V||j)return{n:null,pos:J};return{n:f,pos:J}}function AQ(G,J,X,H,Z,V){const Q=G.charCodeAt(J);let Y;if(Q===123){if(++J,{code:Y,pos:J}=RX(G,J,X,H,G.indexOf("}",J)-J,!0,Z,V),++J,Y!==null&&Y>1114111)if(Z)V.invalidCodePoint(J,X,H);else return{code:null,pos:J}}else({code:Y,pos:J}=RX(G,J,X,H,4,!1,Z,V));return{code:Y,pos:J}}Object.defineProperty(CQ,"__esModule",{value:!0});CQ.readCodePoint=AQ;CQ.readInt=IQ;CQ.readStringContents=Nv;var wv=function G(J){return J>=48&&J<=57},DQ={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},KG={bin:(G)=>G===48||G===49,oct:(G)=>G>=48&&G<=55,dec:(G)=>G>=48&&G<=57,hex:(G)=>G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102}});var P0=S((PQ)=>{Object.defineProperty(PQ,"__esModule",{value:!0});PQ.UPDATE_OPERATORS=PQ.UNARY_OPERATORS=PQ.STRING_UNARY_OPERATORS=PQ.STATEMENT_OR_BLOCK_KEYS=PQ.NUMBER_UNARY_OPERATORS=PQ.NUMBER_BINARY_OPERATORS=PQ.NOT_LOCAL_BINDING=PQ.LOGICAL_OPERATORS=PQ.INHERIT_KEYS=PQ.FOR_INIT_KEYS=PQ.FLATTENABLE_KEYS=PQ.EQUALITY_BINARY_OPERATORS=PQ.COMPARISON_BINARY_OPERATORS=PQ.COMMENT_KEYS=PQ.BOOLEAN_UNARY_OPERATORS=PQ.BOOLEAN_NUMBER_BINARY_OPERATORS=PQ.BOOLEAN_BINARY_OPERATORS=PQ.BLOCK_SCOPED_SYMBOL=PQ.BINARY_OPERATORS=PQ.ASSIGNMENT_OPERATORS=void 0;var PN1=PQ.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],LN1=PQ.FLATTENABLE_KEYS=["body","expressions"],TN1=PQ.FOR_INIT_KEYS=["left","init"],wN1=PQ.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],gv=PQ.LOGICAL_OPERATORS=["||","&&","??"],NN1=PQ.UPDATE_OPERATORS=["++","--"],bv=PQ.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],hv=PQ.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],yv=PQ.COMPARISON_BINARY_OPERATORS=[...hv,"in","instanceof"],mv=PQ.BOOLEAN_BINARY_OPERATORS=[...yv,...bv],SQ=PQ.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],kN1=PQ.BINARY_OPERATORS=["+",...SQ,...mv,"|>"],EN1=PQ.ASSIGNMENT_OPERATORS=["=","+=",...SQ.map((G)=>G+"="),...gv.map((G)=>G+"=")],xv=PQ.BOOLEAN_UNARY_OPERATORS=["delete","!"],lv=PQ.NUMBER_UNARY_OPERATORS=["+","-","~"],cv=PQ.STRING_UNARY_OPERATORS=["typeof"],ON1=PQ.UNARY_OPERATORS=["void","throw",...xv,...lv,...cv],vN1=PQ.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},_N1=PQ.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),gN1=PQ.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var p2=S((vQ)=>{function BG(G){if(Array.isArray(G))return"array";else if(G===null)return"null";else return typeof G}function FX(G){return{validate:G}}function R_(...G){return FX(RG(...G))}function M_(G){return{validate:G,optional:!0}}function q_(...G){return{validate:RG(...G),optional:!0}}function wQ(G){return EQ(jX("array"),kQ(G))}function NQ(...G){return wQ(RG(...G))}function F_(...G){return FX(NQ(...G))}function kQ(G){const J=process.env.BABEL_TYPES_8_BREAKING?$G.validateChild:()=>{};function X(H,Z,V){if(!Array.isArray(V))return;for(let Q=0;Q<V.length;Q++){const Y=`${Z}[${Q}]`,W=V[Q];G(H,Y,W),J(H,Y,W)}}return X.each=G,X}function j_(...G){function J(X,H,Z){if(!G.includes(Z))throw new TypeError(`Property ${H} expected value to be one of ${JSON.stringify(G)} but got ${JSON.stringify(Z)}`)}return J.oneOf=G,J}function RG(...G){function J(X,H,Z){for(let V of G)if(TQ.default(V,Z)){$G.validateChild(X,H,Z);return}throw new TypeError(`Property ${H} of ${X.type} expected node to be of a type ${JSON.stringify(G)} but instead got ${JSON.stringify(Z==null?void 0:Z.type)}`)}return J.oneOfNodeTypes=G,J}function D_(...G){function J(X,H,Z){for(let V of G)if(BG(Z)===V||TQ.default(V,Z)){$G.validateChild(X,H,Z);return}throw new TypeError(`Property ${H} of ${X.type} expected node to be of a type ${JSON.stringify(G)} but instead got ${JSON.stringify(Z==null?void 0:Z.type)}`)}return J.oneOfNodeOrValueTypes=G,J}function jX(G){function J(X,H,Z){if(BG(Z)!==G)throw new TypeError(`Property ${H} expected type of ${G} but got ${BG(Z)}`)}return J.type=G,J}function I_(G){function J(X,H,Z){const V=[];for(let Q of Object.keys(G))try{$G.validateField(X,Q,Z[Q],G[Q])}catch(Y){if(Y instanceof TypeError){V.push(Y.message);continue}throw Y}if(V.length)throw new TypeError(`Property ${H} of ${X.type} expected to have the following:\n${V.join("\n")}`)}return J.shapeOf=G,J}function A_(){function G(J){var X;let H=J;while(J){const{type:Z}=H;if(Z==="OptionalCallExpression"){if(H.optional)return;H=H.callee;continue}if(Z==="OptionalMemberExpression"){if(H.optional)return;H=H.object;continue}break}throw new TypeError(`Non-optional ${J.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(X=H)==null?void 0:X.type}`)}return G}function EQ(...G){function J(...X){for(let H of G)H(...X)}if(J.chainOf=G,G.length>=2&&"type"in G[0]&&G[0].type==="array"&&!("each"in G[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return J}function S_(...G){return(J,X={})=>{let H=X.aliases;if(!H){var Z,V;if(X.inherits)H=(Z=qX[X.inherits].aliases)==null?void 0:Z.slice();(V=H)!=null||(H=[]),X.aliases=H}const Q=G.filter((Y)=>!H.includes(Y));H.unshift(...Q),OQ(J,X)}}function OQ(G,J={}){const X=J.inherits&&qX[J.inherits]||{};let H=J.fields;if(!H){if(H={},X.fields){const Y=Object.getOwnPropertyNames(X.fields);for(let W of Y){const z=X.fields[W],B=z.default;if(Array.isArray(B)?B.length>0:B&&typeof B==="object")throw new Error("field defaults can only be primitives or empty arrays currently");H[W]={default:Array.isArray(B)?[]:B,optional:z.optional,deprecated:z.deprecated,validate:z.validate}}}}const Z=J.visitor||X.visitor||[],V=J.aliases||X.aliases||[],Q=J.builder||X.builder||J.visitor||[];for(let Y of Object.keys(J))if(!C_.has(Y))throw new Error(`Unknown type option "${Y}" on ${G}`);if(J.deprecatedAlias)B_[J.deprecatedAlias]=G;for(let Y of Z.concat(Q))H[Y]=H[Y]||{};for(let Y of Object.keys(H)){const W=H[Y];if(W.default!==void 0&&!Q.includes(Y))W.optional=!0;if(W.default===void 0)W.default=null;else if(!W.validate&&W.default!=null)W.validate=jX(BG(W.default));for(let z of Object.keys(W))if(!f_.has(z))throw new Error(`Unknown field key "${z}" on ${G}.${Y}`)}if(W_[G]=J.visitor=Z,K_[G]=J.builder=Q,U_[G]=J.fields=H,z_[G]=J.aliases=V,V.forEach((Y)=>{MX[Y]=MX[Y]||[],MX[Y].push(G)}),J.validate)$_[G]=J.validate;qX[G]=J}Object.defineProperty(vQ,"__esModule",{value:!0});vQ.VISITOR_KEYS=vQ.NODE_PARENT_VALIDATIONS=vQ.NODE_FIELDS=vQ.FLIPPED_ALIAS_KEYS=vQ.DEPRECATED_KEYS=vQ.BUILDER_KEYS=vQ.ALIAS_KEYS=void 0;vQ.arrayOf=wQ;vQ.arrayOfType=NQ;vQ.assertEach=kQ;vQ.assertNodeOrValueType=D_;vQ.assertNodeType=RG;vQ.assertOneOf=j_;vQ.assertOptionalChainStart=A_;vQ.assertShape=I_;vQ.assertValueType=jX;vQ.chain=EQ;vQ.default=OQ;vQ.defineAliasedType=S_;vQ.validate=FX;vQ.validateArrayOfType=F_;vQ.validateOptional=M_;vQ.validateOptionalType=q_;vQ.validateType=R_;var TQ=N5(),$G=MG(),W_=vQ.VISITOR_KEYS={},z_=vQ.ALIAS_KEYS={},MX=vQ.FLIPPED_ALIAS_KEYS={},U_=vQ.NODE_FIELDS={},K_=vQ.BUILDER_KEYS={},B_=vQ.DEPRECATED_KEYS={},$_=vQ.NODE_PARENT_VALIDATIONS={},C_=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),f_=new Set(["default","optional","deprecated","validate"]),qX={}});var IX=S((hQ)=>{Object.defineProperty(hQ,"__esModule",{value:!0});hQ.patternLikeCommon=hQ.functionTypeAnnotationCommon=hQ.functionDeclarationCommon=hQ.functionCommon=hQ.classMethodOrPropertyCommon=hQ.classMethodOrDeclareMethodCommon=void 0;var Y2=N5(),s_=k5(),gQ=F9(),p_=fQ(),j9=P0(),M=p2(),c=M.defineAliasedType("Standardized");c("ArrayExpression",{fields:{elements:{validate:M.arrayOf(M.assertNodeOrValueType("null","Expression","SpreadElement")),default:!process.env.BABEL_TYPES_8_BREAKING?[]:void 0}},visitor:["elements"],aliases:["Expression"]});c("AssignmentExpression",{fields:{operator:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertValueType("string"):Object.assign(function(){const G=M.assertOneOf(...j9.ASSIGNMENT_OPERATORS),J=M.assertOneOf("=");return function(X,H,Z){(Y2.default("Pattern",X.left)?J:G)(X,H,Z)}}(),{type:"string"})},left:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("LVal","OptionalMemberExpression"):M.assertNodeType("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:M.assertNodeType("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});c("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:M.assertOneOf(...j9.BINARY_OPERATORS)},left:{validate:function(){const G=M.assertNodeType("Expression"),J=M.assertNodeType("Expression","PrivateName");return Object.assign(function(H,Z,V){(H.operator==="in"?J:G)(H,Z,V)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:M.assertNodeType("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});c("InterpreterDirective",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}}});c("Directive",{visitor:["value"],fields:{value:{validate:M.assertNodeType("DirectiveLiteral")}}});c("DirectiveLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}}});c("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:M.arrayOfType("Directive"),default:[]},body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});c("BreakStatement",{visitor:["label"],fields:{label:{validate:M.assertNodeType("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});c("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:M.assertNodeType("Expression","Super","V8IntrinsicIdentifier")},arguments:M.validateArrayOfType("Expression","SpreadElement","ArgumentPlaceholder")},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:M.assertValueType("boolean"),optional:!0}}:{},{typeArguments:{validate:M.assertNodeType("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:M.assertNodeType("TSTypeParameterInstantiation"),optional:!0}})});c("CatchClause",{visitor:["param","body"],fields:{param:{validate:M.assertNodeType("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")}},aliases:["Scopable","BlockParent"]});c("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:M.assertNodeType("Expression")},consequent:{validate:M.assertNodeType("Expression")},alternate:{validate:M.assertNodeType("Expression")}},aliases:["Expression","Conditional"]});c("ContinueStatement",{visitor:["label"],fields:{label:{validate:M.assertNodeType("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});c("DebuggerStatement",{aliases:["Statement"]});c("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});c("EmptyStatement",{aliases:["Statement"]});c("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:M.assertNodeType("Expression")}},aliases:["Statement","ExpressionWrapper"]});c("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:M.assertNodeType("Program")},comments:{validate:!process.env.BABEL_TYPES_8_BREAKING?Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}):M.assertEach(M.assertNodeType("CommentBlock","CommentLine")),optional:!0},tokens:{validate:M.assertEach(Object.assign(()=>{},{type:"any"})),optional:!0}}});c("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("VariableDeclaration","LVal"):M.assertNodeType("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});c("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:M.assertNodeType("VariableDeclaration","Expression"),optional:!0},test:{validate:M.assertNodeType("Expression"),optional:!0},update:{validate:M.assertNodeType("Expression"),optional:!0},body:{validate:M.assertNodeType("Statement")}}});var E5=()=>({params:M.validateArrayOfType("Identifier","Pattern","RestElement"),generator:{default:!1},async:{default:!1}});hQ.functionCommon=E5;var p0=()=>({returnType:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:M.assertNodeType("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});hQ.functionTypeAnnotationCommon=p0;var bQ=()=>Object.assign({},E5(),{declare:{validate:M.assertValueType("boolean"),optional:!0},id:{validate:M.assertNodeType("Identifier"),optional:!0}});hQ.functionDeclarationCommon=bQ;c("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","returnType","body"],fields:Object.assign({},bQ(),p0(),{body:{validate:M.assertNodeType("BlockStatement")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){const G=M.assertNodeType("Identifier");return function(J,X,H){if(!Y2.default("ExportDefaultDeclaration",J))G(H,"id",H.id)}}()});c("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},E5(),p0(),{id:{validate:M.assertNodeType("Identifier"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}})});var O5=()=>({typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:M.assertValueType("boolean"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}});hQ.patternLikeCommon=O5;c("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},O5(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("string"),Object.assign(function(G,J,X){if(!s_.default(X,!1))throw new TypeError(`"${X}" is not a valid identifier name`)},{type:"string"})):M.assertValueType("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(G,J,X){const H=/\.(\w+)$/.exec(J);if(!H)return;const[,Z]=H,V={computed:!1};if(Z==="property"){if(Y2.default("MemberExpression",G,V))return;if(Y2.default("OptionalMemberExpression",G,V))return}else if(Z==="key"){if(Y2.default("Property",G,V))return;if(Y2.default("Method",G,V))return}else if(Z==="exported"){if(Y2.default("ExportSpecifier",G))return}else if(Z==="imported"){if(Y2.default("ImportSpecifier",G,{imported:X}))return}else if(Z==="meta"){if(Y2.default("MetaProperty",G,{meta:X}))return}if((gQ.isKeyword(X.name)||gQ.isReservedWord(X.name,!1))&&X.name!=="this")throw new TypeError(`"${X.name}" is not a valid identifier`)}:void 0});c("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:M.assertNodeType("Expression")},consequent:{validate:M.assertNodeType("Statement")},alternate:{optional:!0,validate:M.assertNodeType("Statement")}}});c("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:M.assertNodeType("Identifier")},body:{validate:M.assertNodeType("Statement")}}});c("StringLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});c("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:M.chain(M.assertValueType("number"),Object.assign(function(G,J,X){if(1/X<0||!Number.isFinite(X)){const H=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${X}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});c("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});c("BooleanLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});c("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:M.assertValueType("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("string"),Object.assign(function(G,J,X){const H=/[^gimsuy]/.exec(X);if(H)throw new TypeError(`"${H[0]}" is not a valid RegExp flag`)},{type:"string"})):M.assertValueType("string"),default:""}}});c("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:M.assertOneOf(...j9.LOGICAL_OPERATORS)},left:{validate:M.assertNodeType("Expression")},right:{validate:M.assertNodeType("Expression")}}});c("MemberExpression",{builder:["object","property","computed",...!process.env.BABEL_TYPES_8_BREAKING?["optional"]:[]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:M.assertNodeType("Expression","Super")},property:{validate:function(){const G=M.assertNodeType("Identifier","PrivateName"),J=M.assertNodeType("Expression"),X=function(H,Z,V){(H.computed?J:G)(H,Z,V)};return X.oneOfNodeTypes=["Expression","Identifier","PrivateName"],X}()},computed:{default:!1}},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:M.assertValueType("boolean"),optional:!0}}:{})});c("NewExpression",{inherits:"CallExpression"});c("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:M.assertOneOf("script","module"),default:"script"},interpreter:{validate:M.assertNodeType("InterpreterDirective"),default:null,optional:!0},directives:{validate:M.arrayOfType("Directive"),default:[]},body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","Block"]});c("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:M.validateArrayOfType("ObjectMethod","ObjectProperty","SpreadElement")}});c("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},E5(),p0(),{kind:Object.assign({validate:M.assertOneOf("method","get","set")},!process.env.BABEL_TYPES_8_BREAKING?{default:"method"}:{}),computed:{default:!1},key:{validate:function(){const G=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),J=M.assertNodeType("Expression"),X=function(H,Z,V){(H.computed?J:G)(H,Z,V)};return X.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],X}()},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},body:{validate:M.assertNodeType("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});c("ObjectProperty",{builder:["key","value","computed","shorthand",...!process.env.BABEL_TYPES_8_BREAKING?["decorators"]:[]],fields:{computed:{default:!1},key:{validate:function(){const G=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),J=M.assertNodeType("Expression");return Object.assign(function(H,Z,V){(H.computed?J:G)(H,Z,V)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:M.assertNodeType("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("boolean"),Object.assign(function(G,J,X){if(!X)return;if(G.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!Y2.default("Identifier",G.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")},{type:"boolean"})):M.assertValueType("boolean"),default:!1},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){const G=M.assertNodeType("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),J=M.assertNodeType("Expression");return function(X,H,Z){(Y2.default("ObjectPattern",X)?G:J)(Z,"value",Z.value)}}()});c("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},O5(),{argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("LVal"):M.assertNodeType("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(G,J){const X=/(\w+)\[(\d+)\]/.exec(J);if(!X)throw new Error("Internal Babel error: malformed key.");const[,H,Z]=X;if(G[H].length>+Z+1)throw new TypeError(`RestElement must be last element of ${H}`)}:void 0});c("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:M.assertNodeType("Expression"),optional:!0}}});c("SequenceExpression",{visitor:["expressions"],fields:{expressions:M.validateArrayOfType("Expression")},aliases:["Expression"]});c("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:M.assertNodeType("Expression")}}});c("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:M.assertNodeType("Expression"),optional:!0},consequent:M.validateArrayOfType("Statement")}});c("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:M.assertNodeType("Expression")},cases:M.validateArrayOfType("SwitchCase")}});c("ThisExpression",{aliases:["Expression"]});c("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:M.assertNodeType("Expression")}}});c("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertNodeType("BlockStatement"),Object.assign(function(G){if(!G.handler&&!G.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):M.assertNodeType("BlockStatement")},handler:{optional:!0,validate:M.assertNodeType("CatchClause")},finalizer:{optional:!0,validate:M.assertNodeType("BlockStatement")}}});c("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:M.assertNodeType("Expression")},operator:{validate:M.assertOneOf(...j9.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});c("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("Expression"):M.assertNodeType("Identifier","MemberExpression")},operator:{validate:M.assertOneOf(...j9.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});c("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:M.assertValueType("boolean"),optional:!0},kind:{validate:M.assertOneOf("var","let","const","using","await using")},declarations:M.validateArrayOfType("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{const G=M.assertNodeType("Identifier");return function(J,X,H){if(Y2.default("ForXStatement",J,{left:H})){if(H.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${J.type}`)}else H.declarations.forEach((Z)=>{if(!Z.init)G(Z,"id",Z.id)})}})():void 0});c("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertNodeType("LVal"):M.assertNodeType("Identifier","ArrayPattern","ObjectPattern")},definite:{optional:!0,validate:M.assertValueType("boolean")},init:{optional:!0,validate:M.assertNodeType("Expression")}}});c("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});c("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")}}});c("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},O5(),{left:{validate:M.assertNodeType("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:M.assertNodeType("Expression")},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}})});c("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},O5(),{elements:{validate:M.chain(M.assertValueType("array"),M.assertEach(M.assertNodeOrValueType("null","PatternLike","LVal")))}})});c("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},E5(),p0(),{expression:{validate:M.assertValueType("boolean")},body:{validate:M.assertNodeType("BlockStatement","Expression")},predicate:{validate:M.assertNodeType("DeclaredPredicate","InferredPredicate"),optional:!0}})});c("ClassBody",{visitor:["body"],fields:{body:M.validateArrayOfType("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});c("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:M.assertNodeType("Identifier"),optional:!0},typeParameters:{validate:M.assertNodeType("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:M.assertNodeType("ClassBody")},superClass:{optional:!0,validate:M.assertNodeType("Expression")},superTypeParameters:{validate:M.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:M.arrayOfType("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},mixins:{validate:M.assertNodeType("InterfaceExtends"),optional:!0}}});c("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:M.assertNodeType("Identifier"),optional:!0},typeParameters:{validate:M.assertNodeType("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:M.assertNodeType("ClassBody")},superClass:{optional:!0,validate:M.assertNodeType("Expression")},superTypeParameters:{validate:M.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:M.arrayOfType("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},mixins:{validate:M.assertNodeType("InterfaceExtends"),optional:!0},declare:{validate:M.assertValueType("boolean"),optional:!0},abstract:{validate:M.assertValueType("boolean"),optional:!0}},validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){const G=M.assertNodeType("Identifier");return function(J,X,H){if(!Y2.default("ExportDefaultDeclaration",J))G(H,"id",H.id)}}()});c("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:M.assertNodeType("StringLiteral")},exportKind:M.validateOptional(M.assertOneOf("type","value")),attributes:{optional:!0,validate:M.arrayOfType("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:M.arrayOfType("ImportAttribute")}}});c("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:M.validateType("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:M.validateOptional(M.assertOneOf("value"))}});c("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:process.env?["declaration","specifiers","source","attributes"]:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertNodeType("Declaration"),Object.assign(function(G,J,X){if(X&&G.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(X&&G.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):M.assertNodeType("Declaration")},attributes:{optional:!0,validate:M.arrayOfType("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:M.arrayOfType("ImportAttribute")},specifiers:{default:[],validate:M.arrayOf(function(){const G=M.assertNodeType("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),J=M.assertNodeType("ExportSpecifier");if(!process.env.BABEL_TYPES_8_BREAKING)return G;return Object.assign(function(X,H,Z){(X.source?G:J)(X,H,Z)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})}())},source:{validate:M.assertNodeType("StringLiteral"),optional:!0},exportKind:M.validateOptional(M.assertOneOf("type","value"))}});c("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")},exported:{validate:M.assertNodeType("Identifier","StringLiteral")},exportKind:{validate:M.assertOneOf("type","value"),optional:!0}}});c("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 M.assertNodeType("VariableDeclaration","LVal");const G=M.assertNodeType("VariableDeclaration"),J=M.assertNodeType("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(X,H,Z){if(Y2.default("VariableDeclaration",Z))G(X,H,Z);else J(X,H,Z)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:M.assertNodeType("Expression")},body:{validate:M.assertNodeType("Statement")},await:{default:!1}}});c("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:M.arrayOfType("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:M.arrayOfType("ImportAttribute")},module:{optional:!0,validate:M.assertValueType("boolean")},phase:{default:null,validate:M.assertOneOf("source","defer")},specifiers:M.validateArrayOfType("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:M.assertNodeType("StringLiteral")},importKind:{validate:M.assertOneOf("type","typeof","value"),optional:!0}}});c("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")}}});c("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")}}});c("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:M.assertNodeType("Identifier")},imported:{validate:M.assertNodeType("Identifier","StringLiteral")},importKind:{validate:M.assertOneOf("type","typeof","value"),optional:!0}}});c("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:M.assertOneOf("source","defer")},source:{validate:M.assertNodeType("Expression")},options:{validate:M.assertNodeType("Expression"),optional:!0}}});c("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertNodeType("Identifier"),Object.assign(function(G,J,X){let H;switch(X.name){case"function":H="sent";break;case"new":H="target";break;case"import":H="meta";break}if(!Y2.default("Identifier",G.property,{name:H}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):M.assertNodeType("Identifier")},property:{validate:M.assertNodeType("Identifier")}}});var qG=()=>({abstract:{validate:M.assertValueType("boolean"),optional:!0},accessibility:{validate:M.assertOneOf("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:M.assertValueType("boolean"),optional:!0},key:{validate:M.chain(function(){const G=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),J=M.assertNodeType("Expression");return function(X,H,Z){(X.computed?J:G)(X,H,Z)}}(),M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});hQ.classMethodOrPropertyCommon=qG;var DX=()=>Object.assign({},E5(),qG(),{params:M.validateArrayOfType("Identifier","Pattern","RestElement","TSParameterProperty"),kind:{validate:M.assertOneOf("get","set","method","constructor"),default:"method"},access:{validate:M.chain(M.assertValueType("string"),M.assertOneOf("public","private","protected")),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0}});hQ.classMethodOrDeclareMethodCommon=DX;c("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({},DX(),p0(),{body:{validate:M.assertNodeType("BlockStatement")}})});c("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},O5(),{properties:M.validateArrayOfType("RestElement","ObjectProperty")})});c("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:M.assertNodeType("Expression")}}});c("Super",{aliases:["Expression"]});c("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:M.assertNodeType("Expression")},quasi:{validate:M.assertNodeType("TemplateLiteral")},typeParameters:{validate:M.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});c("TemplateElement",{builder:["value","tail"],fields:{value:{validate:M.chain(M.assertShape({raw:{validate:M.assertValueType("string")},cooked:{validate:M.assertValueType("string"),optional:!0}}),function G(J){const X=J.value.raw;let H=!1;const Z=()=>{throw new Error("Internal @babel/types error.")},{str:V,firstInvalidLoc:Q}=p_.readStringContents("template",X,0,0,0,{unterminated(){H=!0},strictNumericEscape:Z,invalidEscapeSequence:Z,numericSeparatorInEscapeSequence:Z,unexpectedNumericSeparator:Z,invalidDigit:Z,invalidCodePoint:Z});if(!H)throw new Error("Invalid raw");J.value.cooked=Q?null:V})},tail:{default:!1}}});c("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:M.validateArrayOfType("TemplateElement"),expressions:{validate:M.chain(M.assertValueType("array"),M.assertEach(M.assertNodeType("Expression","TSType")),function(G,J,X){if(G.quasis.length!==X.length+1)throw new TypeError(`Number of ${G.type} quasis should be exactly one more than the number of expressions.\nExpected ${X.length+1} quasis but got ${G.quasis.length}`)})}}});c("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?M.chain(M.assertValueType("boolean"),Object.assign(function(G,J,X){if(X&&!G.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):M.assertValueType("boolean"),default:!1},argument:{optional:!0,validate:M.assertNodeType("Expression")}}});c("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:M.assertNodeType("Expression")}}});c("Import",{aliases:["Expression"]});c("BigIntLiteral",{builder:["value"],fields:{value:{validate:M.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});c("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:M.assertNodeType("Identifier")}}});c("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:M.assertNodeType("Expression")},property:{validate:function(){const G=M.assertNodeType("Identifier"),J=M.assertNodeType("Expression");return Object.assign(function(H,Z,V){(H.computed?J:G)(H,Z,V)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertValueType("boolean"):M.chain(M.assertValueType("boolean"),M.assertOptionalChainStart())}}});c("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:M.assertNodeType("Expression")},arguments:M.validateArrayOfType("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?M.assertValueType("boolean"):M.chain(M.assertValueType("boolean"),M.assertOptionalChainStart())},typeArguments:{validate:M.assertNodeType("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:M.assertNodeType("TSTypeParameterInstantiation"),optional:!0}}});c("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},qG(),{value:{validate:M.assertNodeType("Expression"),optional:!0},definite:{validate:M.assertValueType("boolean"),optional:!0},typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},readonly:{validate:M.assertValueType("boolean"),optional:!0},declare:{validate:M.assertValueType("boolean"),optional:!0},variance:{validate:M.assertNodeType("Variance"),optional:!0}})});c("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},qG(),{key:{validate:M.chain(function(){const G=M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),J=M.assertNodeType("Expression");return function(X,H,Z){(X.computed?J:G)(X,H,Z)}}(),M.assertNodeType("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:M.assertNodeType("Expression"),optional:!0},definite:{validate:M.assertValueType("boolean"),optional:!0},typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},readonly:{validate:M.assertValueType("boolean"),optional:!0},declare:{validate:M.assertValueType("boolean"),optional:!0},variance:{validate:M.assertNodeType("Variance"),optional:!0}})});c("ClassPrivateProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:M.assertNodeType("PrivateName")},value:{validate:M.assertNodeType("Expression"),optional:!0},typeAnnotation:{validate:M.assertNodeType("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:M.arrayOfType("Decorator"),optional:!0},static:{validate:M.assertValueType("boolean"),default:!1},readonly:{validate:M.assertValueType("boolean"),optional:!0},definite:{validate:M.assertValueType("boolean"),optional:!0},variance:{validate:M.assertNodeType("Variance"),optional:!0}}});c("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},DX(),p0(),{kind:{validate:M.assertOneOf("get","set","method"),default:"method"},key:{validate:M.assertNodeType("PrivateName")},body:{validate:M.assertNodeType("BlockStatement")}})});c("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:M.assertNodeType("Identifier")}}});c("StaticBlock",{visitor:["body"],fields:{body:M.validateArrayOfType("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]})});var mQ=S(()=>{var P=p2(),t=P.defineAliasedType("Flow"),AX=(G)=>{const J=G==="DeclareClass";t(G,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...J?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),extends:P.validateOptional(P.arrayOfType("InterfaceExtends"))},J?{mixins:P.validateOptional(P.arrayOfType("InterfaceExtends")),implements:P.validateOptional(P.arrayOfType("ClassImplements"))}:{},{body:P.validateType("ObjectTypeAnnotation")})})};t("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:P.validateType("FlowType")}});t("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:P.validate(P.assertValueType("boolean"))}});t("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("ClassImplements",{visitor:["id","typeParameters"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterInstantiation")}});AX("DeclareClass");t("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),predicate:P.validateOptionalType("DeclaredPredicate")}});AX("DeclareInterface");t("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier","StringLiteral"),body:P.validateType("BlockStatement"),kind:P.validateOptional(P.assertOneOf("CommonJS","ES"))}});t("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:P.validateType("TypeAnnotation")}});t("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),right:P.validateType("FlowType")}});t("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),supertype:P.validateOptionalType("FlowType"),impltype:P.validateOptionalType("FlowType")}});t("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier")}});t("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:P.validateOptionalType("Flow"),specifiers:P.validateOptional(P.arrayOfType("ExportSpecifier","ExportNamespaceSpecifier")),source:P.validateOptionalType("StringLiteral"),default:P.validateOptional(P.assertValueType("boolean"))}});t("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:P.validateType("StringLiteral"),exportKind:P.validateOptional(P.assertOneOf("type","value"))}});t("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:P.validateType("Flow")}});t("ExistsTypeAnnotation",{aliases:["FlowType"]});t("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:P.validateOptionalType("TypeParameterDeclaration"),params:P.validateArrayOfType("FunctionTypeParam"),rest:P.validateOptionalType("FunctionTypeParam"),this:P.validateOptionalType("FunctionTypeParam"),returnType:P.validateType("FlowType")}});t("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:P.validateOptionalType("Identifier"),typeAnnotation:P.validateType("FlowType"),optional:P.validateOptional(P.assertValueType("boolean"))}});t("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:P.validateType("Identifier","QualifiedTypeIdentifier"),typeParameters:P.validateOptionalType("TypeParameterInstantiation")}});t("InferredPredicate",{aliases:["FlowPredicate"]});t("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:P.validateType("Identifier","QualifiedTypeIdentifier"),typeParameters:P.validateOptionalType("TypeParameterInstantiation")}});AX("InterfaceDeclaration");t("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:P.validateOptional(P.arrayOfType("InterfaceExtends")),body:P.validateType("ObjectTypeAnnotation")}});t("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:P.validate(P.arrayOfType("FlowType"))}});t("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:P.validateType("FlowType")}});t("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:P.validate(P.assertValueType("number"))}});t("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:P.validate(P.arrayOfType("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:P.arrayOfType("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:P.arrayOfType("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:P.arrayOfType("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:P.assertValueType("boolean"),default:!1},inexact:P.validateOptional(P.assertValueType("boolean"))}});t("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:P.validateType("Identifier"),value:P.validateType("FlowType"),optional:P.validate(P.assertValueType("boolean")),static:P.validate(P.assertValueType("boolean")),method:P.validate(P.assertValueType("boolean"))}});t("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:P.validateType("FlowType"),static:P.validate(P.assertValueType("boolean"))}});t("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:P.validateOptionalType("Identifier"),key:P.validateType("FlowType"),value:P.validateType("FlowType"),static:P.validate(P.assertValueType("boolean")),variance:P.validateOptionalType("Variance")}});t("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:P.validateType("Identifier","StringLiteral"),value:P.validateType("FlowType"),kind:P.validate(P.assertOneOf("init","get","set")),static:P.validate(P.assertValueType("boolean")),proto:P.validate(P.assertValueType("boolean")),optional:P.validate(P.assertValueType("boolean")),variance:P.validateOptionalType("Variance"),method:P.validate(P.assertValueType("boolean"))}});t("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:P.validateType("FlowType")}});t("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),supertype:P.validateOptionalType("FlowType"),impltype:P.validateType("FlowType")}});t("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:P.validateType("Identifier"),qualification:P.validateType("Identifier","QualifiedTypeIdentifier")}});t("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:P.validate(P.assertValueType("string"))}});t("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:P.validate(P.arrayOfType("FlowType"))}});t("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:P.validateType("FlowType")}});t("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:P.validateType("Identifier"),typeParameters:P.validateOptionalType("TypeParameterDeclaration"),right:P.validateType("FlowType")}});t("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:P.validateType("FlowType")}});t("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:P.validateType("Expression"),typeAnnotation:P.validateType("TypeAnnotation")}});t("TypeParameter",{visitor:["bound","default","variance"],fields:{name:P.validate(P.assertValueType("string")),bound:P.validateOptionalType("TypeAnnotation"),default:P.validateOptionalType("FlowType"),variance:P.validateOptionalType("Variance")}});t("TypeParameterDeclaration",{visitor:["params"],fields:{params:P.validate(P.arrayOfType("TypeParameter"))}});t("TypeParameterInstantiation",{visitor:["params"],fields:{params:P.validate(P.arrayOfType("FlowType"))}});t("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:P.validate(P.arrayOfType("FlowType"))}});t("Variance",{builder:["kind"],fields:{kind:P.validate(P.assertOneOf("minus","plus"))}});t("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});t("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:P.validateType("Identifier"),body:P.validateType("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});t("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:P.validate(P.assertValueType("boolean")),members:P.validateArrayOfType("EnumBooleanMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});t("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:P.validate(P.assertValueType("boolean")),members:P.validateArrayOfType("EnumNumberMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});t("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:P.validate(P.assertValueType("boolean")),members:P.validateArrayOfType("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});t("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:P.validateArrayOfType("EnumDefaultedMember"),hasUnknownMembers:P.validate(P.assertValueType("boolean"))}});t("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:P.validateType("Identifier"),init:P.validateType("BooleanLiteral")}});t("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:P.validateType("Identifier"),init:P.validateType("NumericLiteral")}});t("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:P.validateType("Identifier"),init:P.validateType("StringLiteral")}});t("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:P.validateType("Identifier")}});t("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:P.validateType("FlowType"),indexType:P.validateType("FlowType")}});t("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:P.validateType("FlowType"),indexType:P.validateType("FlowType"),optional:P.validate(P.assertValueType("boolean"))}})});var xQ=S(()=>{var c1=p2(),W2=c1.defineAliasedType("JSX");W2("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:c1.assertNodeType("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:c1.assertNodeType("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});W2("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:c1.assertNodeType("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});W2("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:c1.assertNodeType("JSXOpeningElement")},closingElement:{optional:!0,validate:c1.assertNodeType("JSXClosingElement")},children:c1.validateArrayOfType("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:c1.assertValueType("boolean"),optional:!0}})});W2("JSXEmptyExpression",{});W2("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:c1.assertNodeType("Expression","JSXEmptyExpression")}}});W2("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:c1.assertNodeType("Expression")}}});W2("JSXIdentifier",{builder:["name"],fields:{name:{validate:c1.assertValueType("string")}}});W2("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:c1.assertNodeType("JSXMemberExpression","JSXIdentifier")},property:{validate:c1.assertNodeType("JSXIdentifier")}}});W2("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:c1.assertNodeType("JSXIdentifier")},name:{validate:c1.assertNodeType("JSXIdentifier")}}});W2("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:c1.assertNodeType("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:c1.validateArrayOfType("JSXAttribute","JSXSpreadAttribute"),typeParameters:{validate:c1.assertNodeType("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});W2("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:c1.assertNodeType("Expression")}}});W2("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:c1.assertValueType("string")}}});W2("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:c1.assertNodeType("JSXOpeningFragment")},closingFragment:{validate:c1.assertNodeType("JSXClosingFragment")},children:c1.validateArrayOfType("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});W2("JSXOpeningFragment",{aliases:["Immutable"]});W2("JSXClosingFragment",{aliases:["Immutable"]})});var SX=S((lQ)=>{Object.defineProperty(lQ,"__esModule",{value:!0});lQ.PLACEHOLDERS_FLIPPED_ALIAS=lQ.PLACEHOLDERS_ALIAS=lQ.PLACEHOLDERS=void 0;var Jg=p2(),Xg=lQ.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],fX=lQ.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let G of Xg){const J=Jg.ALIAS_KEYS[G];if(J!=null&&J.length)fX[G]=J}var CX=lQ.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(fX).forEach((G)=>{fX[G].forEach((J)=>{if(!hasOwnProperty.call(CX,J))CX[J]=[];CX[J].push(G)})})});var aQ=S(()=>{var FG=p2(),Vg=SX(),PX=FG.defineAliasedType("Miscellaneous");PX("Noop",{visitor:[]});PX("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:FG.assertNodeType("Identifier")},expectedNode:{validate:FG.assertOneOf(...Vg.PLACEHOLDERS)}}});PX("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:FG.assertValueType("string")}}})});var rQ=S(()=>{var h1=p2();h1.default("ArgumentPlaceholder",{});h1.default("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:!process.env.BABEL_TYPES_8_BREAKING?{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}:{object:{validate:h1.assertNodeType("Expression")},callee:{validate:h1.assertNodeType("Expression")}}});h1.default("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:h1.assertNodeType("Identifier","StringLiteral")},value:{validate:h1.assertNodeType("StringLiteral")}}});h1.default("Decorator",{visitor:["expression"],fields:{expression:{validate:h1.assertNodeType("Expression")}}});h1.default("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:h1.assertNodeType("BlockStatement")},async:{validate:h1.assertValueType("boolean"),default:!1}}});h1.default("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:h1.assertNodeType("Identifier")}}});h1.default("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:h1.validateArrayOfType("ObjectProperty","SpreadElement")}});h1.default("TupleExpression",{fields:{elements:{validate:h1.arrayOfType("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});h1.default("DecimalLiteral",{builder:["value"],fields:{value:{validate:h1.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});h1.default("ModuleExpression",{visitor:["body"],fields:{body:{validate:h1.assertNodeType("Program")}},aliases:["Expression"]});h1.default("TopicReference",{aliases:["Expression"]});h1.default("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:h1.assertNodeType("Expression")}},aliases:["Expression"]});h1.default("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:h1.assertNodeType("Expression")}},aliases:["Expression"]});h1.default("PipelinePrimaryTopicReference",{aliases:["Expression"]})});var eQ=S(()=>{var g=p2(),iQ=IX(),Qg=N5(),z1=g.defineAliasedType("TypeScript"),F2=g.assertValueType("boolean"),uQ=()=>({returnType:{validate:g.assertNodeType("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:g.assertNodeType("TSTypeParameterDeclaration","Noop"),optional:!0}});z1("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:g.assertOneOf("public","private","protected"),optional:!0},readonly:{validate:g.assertValueType("boolean"),optional:!0},parameter:{validate:g.assertNodeType("Identifier","AssignmentPattern")},override:{validate:g.assertValueType("boolean"),optional:!0},decorators:{validate:g.arrayOfType("Decorator"),optional:!0}}});z1("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},iQ.functionDeclarationCommon(),uQ())});z1("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},iQ.classMethodOrDeclareMethodCommon(),uQ())});z1("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:g.validateType("TSEntityName"),right:g.validateType("Identifier")}});var jG=()=>({typeParameters:g.validateOptionalType("TSTypeParameterDeclaration"),["parameters"]:g.validateArrayOfType("ArrayPattern","Identifier","ObjectPattern","RestElement"),["typeAnnotation"]:g.validateOptionalType("TSTypeAnnotation")}),dQ={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:jG()};z1("TSCallSignatureDeclaration",dQ);z1("TSConstructSignatureDeclaration",dQ);var sQ=()=>({key:g.validateType("Expression"),computed:{default:!1},optional:g.validateOptional(F2)});z1("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},sQ(),{readonly:g.validateOptional(F2),typeAnnotation:g.validateOptionalType("TSTypeAnnotation"),kind:{validate:g.assertOneOf("get","set")}})});z1("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},jG(),sQ(),{kind:{validate:g.assertOneOf("method","get","set")}})});z1("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:g.validateOptional(F2),static:g.validateOptional(F2),parameters:g.validateArrayOfType("Identifier"),typeAnnotation:g.validateOptionalType("TSTypeAnnotation")}});var Yg=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let G of Yg)z1(G,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});z1("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var pQ={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};z1("TSFunctionType",Object.assign({},pQ,{fields:jG()}));z1("TSConstructorType",Object.assign({},pQ,{fields:Object.assign({},jG(),{abstract:g.validateOptional(F2)})}));z1("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:g.validateType("TSEntityName"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation")}});z1("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:g.validateType("Identifier","TSThisType"),typeAnnotation:g.validateOptionalType("TSTypeAnnotation"),asserts:g.validateOptional(F2)}});z1("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:g.validateType("TSEntityName","TSImportType"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation")}});z1("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:g.validateArrayOfType("TSTypeElement")}});z1("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:g.validateType("TSType")}});z1("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:g.validateArrayOfType("TSType","TSNamedTupleMember")}});z1("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:g.validateType("TSType")}});z1("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:g.validateType("TSType")}});z1("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:g.validateType("Identifier"),optional:{validate:F2,default:!1},elementType:g.validateType("TSType")}});var nQ={aliases:["TSType"],visitor:["types"],fields:{types:g.validateArrayOfType("TSType")}};z1("TSUnionType",nQ);z1("TSIntersectionType",nQ);z1("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:g.validateType("TSType"),extendsType:g.validateType("TSType"),trueType:g.validateType("TSType"),falseType:g.validateType("TSType")}});z1("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:g.validateType("TSTypeParameter")}});z1("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:g.validateType("TSType")}});z1("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:g.validate(g.assertValueType("string")),typeAnnotation:g.validateType("TSType")}});z1("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:g.validateType("TSType"),indexType:g.validateType("TSType")}});z1("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:g.validateType("TSTypeParameter")},{readonly:g.validateOptional(g.assertOneOf(!0,!1,"+","-")),optional:g.validateOptional(g.assertOneOf(!0,!1,"+","-")),typeAnnotation:g.validateOptionalType("TSType"),nameType:g.validateOptionalType("TSType")})});z1("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const G=g.assertNodeType("NumericLiteral","BigIntLiteral"),J=g.assertOneOf("-"),X=g.assertNodeType("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function H(Z,V,Q){if(Qg.default("UnaryExpression",Q))J(Q,"operator",Q.operator),G(Q,"argument",Q.argument);else X(Z,V,Q)}return H.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],H}()}}});var Wg={aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:g.validateType("TSEntityName"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation")}};z1("TSExpressionWithTypeArguments",Wg);z1("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:g.validateOptional(F2),id:g.validateType("Identifier"),typeParameters:g.validateOptionalType("TSTypeParameterDeclaration"),extends:g.validateOptional(g.arrayOfType("TSExpressionWithTypeArguments")),body:g.validateType("TSInterfaceBody")}});z1("TSInterfaceBody",{visitor:["body"],fields:{body:g.validateArrayOfType("TSTypeElement")}});z1("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:g.validateOptional(F2),id:g.validateType("Identifier"),typeParameters:g.validateOptionalType("TSTypeParameterDeclaration"),typeAnnotation:g.validateType("TSType")}});z1("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:g.validateType("Expression"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation")}});var oQ={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:g.validateType("Expression"),typeAnnotation:g.validateType("TSType")}};z1("TSAsExpression",oQ);z1("TSSatisfiesExpression",oQ);z1("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:g.validateType("TSType"),expression:g.validateType("Expression")}});z1("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:g.validateOptional(F2),const:g.validateOptional(F2),id:g.validateType("Identifier"),members:g.validateArrayOfType("TSEnumMember"),initializer:g.validateOptionalType("Expression")}});z1("TSEnumMember",{visitor:["id","initializer"],fields:{id:g.validateType("Identifier","StringLiteral"),initializer:g.validateOptionalType("Expression")}});z1("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:g.validateOptional(F2),global:g.validateOptional(F2),id:g.validateType("Identifier","StringLiteral"),body:g.validateType("TSModuleBlock","TSModuleDeclaration")}});z1("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:g.validateArrayOfType("Statement")}});z1("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:g.validateType("StringLiteral"),qualifier:g.validateOptionalType("TSEntityName"),typeParameters:g.validateOptionalType("TSTypeParameterInstantiation"),options:{validate:g.assertNodeType("Expression"),optional:!0}}});z1("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:g.validate(F2),id:g.validateType("Identifier"),moduleReference:g.validateType("TSEntityName","TSExternalModuleReference"),importKind:{validate:g.assertOneOf("type","value"),optional:!0}}});z1("TSExternalModuleReference",{visitor:["expression"],fields:{expression:g.validateType("StringLiteral")}});z1("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:g.validateType("Expression")}});z1("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:g.validateType("Expression")}});z1("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:g.validateType("Identifier")}});z1("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:g.assertNodeType("TSType")}}});z1("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:g.validateArrayOfType("TSType")}});z1("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:g.validateArrayOfType("TSTypeParameter")}});z1("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:g.assertValueType("string")},in:{validate:g.assertValueType("boolean"),optional:!0},out:{validate:g.assertValueType("boolean"),optional:!0},const:{validate:g.assertValueType("boolean"),optional:!0},constraint:{validate:g.assertNodeType("TSType"),optional:!0},default:{validate:g.assertNodeType("TSType"),optional:!0}}})});var JY=S((tQ)=>{Object.defineProperty(tQ,"__esModule",{value:!0});tQ.DEPRECATED_ALIASES=void 0;var nN1=tQ.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var w2=S((f2)=>{Object.defineProperty(f2,"__esModule",{value:!0});Object.defineProperty(f2,"ALIAS_KEYS",{enumerable:!0,get:function(){return G2.ALIAS_KEYS}});Object.defineProperty(f2,"BUILDER_KEYS",{enumerable:!0,get:function(){return G2.BUILDER_KEYS}});Object.defineProperty(f2,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return LX.DEPRECATED_ALIASES}});Object.defineProperty(f2,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return G2.DEPRECATED_KEYS}});Object.defineProperty(f2,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return G2.FLIPPED_ALIAS_KEYS}});Object.defineProperty(f2,"NODE_FIELDS",{enumerable:!0,get:function(){return G2.NODE_FIELDS}});Object.defineProperty(f2,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return G2.NODE_PARENT_VALIDATIONS}});Object.defineProperty(f2,"PLACEHOLDERS",{enumerable:!0,get:function(){return D9.PLACEHOLDERS}});Object.defineProperty(f2,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return D9.PLACEHOLDERS_ALIAS}});Object.defineProperty(f2,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return D9.PLACEHOLDERS_FLIPPED_ALIAS}});f2.TYPES=void 0;Object.defineProperty(f2,"VISITOR_KEYS",{enumerable:!0,get:function(){return G2.VISITOR_KEYS}});var L0=XQ();IX();mQ();xQ();aQ();rQ();eQ();var G2=p2(),D9=SX(),LX=JY();Object.keys(LX.DEPRECATED_ALIASES).forEach((G)=>{G2.FLIPPED_ALIAS_KEYS[G]=G2.FLIPPED_ALIAS_KEYS[LX.DEPRECATED_ALIASES[G]]});L0(G2.VISITOR_KEYS);L0(G2.ALIAS_KEYS);L0(G2.FLIPPED_ALIAS_KEYS);L0(G2.NODE_FIELDS);L0(G2.BUILDER_KEYS);L0(G2.DEPRECATED_KEYS);L0(D9.PLACEHOLDERS_ALIAS);L0(D9.PLACEHOLDERS_FLIPPED_ALIAS);var eN1=f2.TYPES=[].concat(Object.keys(G2.VISITOR_KEYS),Object.keys(G2.FLIPPED_ALIAS_KEYS),Object.keys(G2.DEPRECATED_KEYS))});var MG=S((VY)=>{function zg(G,J,X){if(!G)return;const H=I9.NODE_FIELDS[G.type];if(!H)return;const Z=H[J];HY(G,J,X,Z),ZY(G,J,X)}function Ug(G,J,X,H,Z){if(!(G!=null&&G.validate))return;if(G.optional&&H==null)return;if(G.validate(J,X,H),Z){var V;const Q=H.type;if(Q==null)return;(V=I9.NODE_PARENT_VALIDATIONS[Q])==null||V.call(I9.NODE_PARENT_VALIDATIONS,J,X,H)}}function HY(G,J,X,H){if(!(H!=null&&H.validate))return;if(H.optional&&X==null)return;H.validate(G,J,X)}function ZY(G,J,X){var H;const Z=X==null?void 0:X.type;if(Z==null)return;(H=I9.NODE_PARENT_VALIDATIONS[Z])==null||H.call(I9.NODE_PARENT_VALIDATIONS,G,J,X)}Object.defineProperty(VY,"__esModule",{value:!0});VY.default=zg;VY.validateChild=ZY;VY.validateField=HY;VY.validateInternal=Ug;var I9=w2()});var z2=S((UY)=>{function Fg(G=[]){const J={type:"ArrayExpression",elements:G},X=C.ArrayExpression;return K(X.elements,J,"elements",G,1),J}function jg(G,J,X){const H={type:"AssignmentExpression",operator:G,left:J,right:X},Z=C.AssignmentExpression;return K(Z.operator,H,"operator",G),K(Z.left,H,"left",J,1),K(Z.right,H,"right",X,1),H}function Dg(G,J,X){const H={type:"BinaryExpression",operator:G,left:J,right:X},Z=C.BinaryExpression;return K(Z.operator,H,"operator",G),K(Z.left,H,"left",J,1),K(Z.right,H,"right",X,1),H}function Ig(G){const J={type:"InterpreterDirective",value:G},X=C.InterpreterDirective;return K(X.value,J,"value",G),J}function Ag(G){const J={type:"Directive",value:G},X=C.Directive;return K(X.value,J,"value",G,1),J}function Cg(G){const J={type:"DirectiveLiteral",value:G},X=C.DirectiveLiteral;return K(X.value,J,"value",G),J}function fg(G,J=[]){const X={type:"BlockStatement",body:G,directives:J},H=C.BlockStatement;return K(H.body,X,"body",G,1),K(H.directives,X,"directives",J,1),X}function Sg(G=null){const J={type:"BreakStatement",label:G},X=C.BreakStatement;return K(X.label,J,"label",G,1),J}function Pg(G,J){const X={type:"CallExpression",callee:G,arguments:J},H=C.CallExpression;return K(H.callee,X,"callee",G,1),K(H.arguments,X,"arguments",J,1),X}function Lg(G=null,J){const X={type:"CatchClause",param:G,body:J},H=C.CatchClause;return K(H.param,X,"param",G,1),K(H.body,X,"body",J,1),X}function Tg(G,J,X){const H={type:"ConditionalExpression",test:G,consequent:J,alternate:X},Z=C.ConditionalExpression;return K(Z.test,H,"test",G,1),K(Z.consequent,H,"consequent",J,1),K(Z.alternate,H,"alternate",X,1),H}function wg(G=null){const J={type:"ContinueStatement",label:G},X=C.ContinueStatement;return K(X.label,J,"label",G,1),J}function Ng(){return{type:"DebuggerStatement"}}function kg(G,J){const X={type:"DoWhileStatement",test:G,body:J},H=C.DoWhileStatement;return K(H.test,X,"test",G,1),K(H.body,X,"body",J,1),X}function Eg(){return{type:"EmptyStatement"}}function Og(G){const J={type:"ExpressionStatement",expression:G},X=C.ExpressionStatement;return K(X.expression,J,"expression",G,1),J}function vg(G,J=null,X=null){const H={type:"File",program:G,comments:J,tokens:X},Z=C.File;return K(Z.program,H,"program",G,1),K(Z.comments,H,"comments",J,1),K(Z.tokens,H,"tokens",X),H}function _g(G,J,X){const H={type:"ForInStatement",left:G,right:J,body:X},Z=C.ForInStatement;return K(Z.left,H,"left",G,1),K(Z.right,H,"right",J,1),K(Z.body,H,"body",X,1),H}function gg(G=null,J=null,X=null,H){const Z={type:"ForStatement",init:G,test:J,update:X,body:H},V=C.ForStatement;return K(V.init,Z,"init",G,1),K(V.test,Z,"test",J,1),K(V.update,Z,"update",X,1),K(V.body,Z,"body",H,1),Z}function bg(G=null,J,X,H=!1,Z=!1){const V={type:"FunctionDeclaration",id:G,params:J,body:X,generator:H,async:Z},Q=C.FunctionDeclaration;return K(Q.id,V,"id",G,1),K(Q.params,V,"params",J,1),K(Q.body,V,"body",X,1),K(Q.generator,V,"generator",H),K(Q.async,V,"async",Z),V}function hg(G=null,J,X,H=!1,Z=!1){const V={type:"FunctionExpression",id:G,params:J,body:X,generator:H,async:Z},Q=C.FunctionExpression;return K(Q.id,V,"id",G,1),K(Q.params,V,"params",J,1),K(Q.body,V,"body",X,1),K(Q.generator,V,"generator",H),K(Q.async,V,"async",Z),V}function yg(G){const J={type:"Identifier",name:G},X=C.Identifier;return K(X.name,J,"name",G),J}function mg(G,J,X=null){const H={type:"IfStatement",test:G,consequent:J,alternate:X},Z=C.IfStatement;return K(Z.test,H,"test",G,1),K(Z.consequent,H,"consequent",J,1),K(Z.alternate,H,"alternate",X,1),H}function xg(G,J){const X={type:"LabeledStatement",label:G,body:J},H=C.LabeledStatement;return K(H.label,X,"label",G,1),K(H.body,X,"body",J,1),X}function lg(G){const J={type:"StringLiteral",value:G},X=C.StringLiteral;return K(X.value,J,"value",G),J}function QY(G){const J={type:"NumericLiteral",value:G},X=C.NumericLiteral;return K(X.value,J,"value",G),J}function cg(){return{type:"NullLiteral"}}function ag(G){const J={type:"BooleanLiteral",value:G},X=C.BooleanLiteral;return K(X.value,J,"value",G),J}function YY(G,J=""){const X={type:"RegExpLiteral",pattern:G,flags:J},H=C.RegExpLiteral;return K(H.pattern,X,"pattern",G),K(H.flags,X,"flags",J),X}function rg(G,J,X){const H={type:"LogicalExpression",operator:G,left:J,right:X},Z=C.LogicalExpression;return K(Z.operator,H,"operator",G),K(Z.left,H,"left",J,1),K(Z.right,H,"right",X,1),H}function ig(G,J,X=!1,H=null){const Z={type:"MemberExpression",object:G,property:J,computed:X,optional:H},V=C.MemberExpression;return K(V.object,Z,"object",G,1),K(V.property,Z,"property",J,1),K(V.computed,Z,"computed",X),K(V.optional,Z,"optional",H),Z}function ug(G,J){const X={type:"NewExpression",callee:G,arguments:J},H=C.NewExpression;return K(H.callee,X,"callee",G,1),K(H.arguments,X,"arguments",J,1),X}function dg(G,J=[],X="script",H=null){const Z={type:"Program",body:G,directives:J,sourceType:X,interpreter:H},V=C.Program;return K(V.body,Z,"body",G,1),K(V.directives,Z,"directives",J,1),K(V.sourceType,Z,"sourceType",X),K(V.interpreter,Z,"interpreter",H,1),Z}function sg(G){const J={type:"ObjectExpression",properties:G},X=C.ObjectExpression;return K(X.properties,J,"properties",G,1),J}function pg(G="method",J,X,H,Z=!1,V=!1,Q=!1){const Y={type:"ObjectMethod",kind:G,key:J,params:X,body:H,computed:Z,generator:V,async:Q},W=C.ObjectMethod;return K(W.kind,Y,"kind",G),K(W.key,Y,"key",J,1),K(W.params,Y,"params",X,1),K(W.body,Y,"body",H,1),K(W.computed,Y,"computed",Z),K(W.generator,Y,"generator",V),K(W.async,Y,"async",Q),Y}function ng(G,J,X=!1,H=!1,Z=null){const V={type:"ObjectProperty",key:G,value:J,computed:X,shorthand:H,decorators:Z},Q=C.ObjectProperty;return K(Q.key,V,"key",G,1),K(Q.value,V,"value",J,1),K(Q.computed,V,"computed",X),K(Q.shorthand,V,"shorthand",H),K(Q.decorators,V,"decorators",Z,1),V}function WY(G){const J={type:"RestElement",argument:G},X=C.RestElement;return K(X.argument,J,"argument",G,1),J}function og(G=null){const J={type:"ReturnStatement",argument:G},X=C.ReturnStatement;return K(X.argument,J,"argument",G,1),J}function eg(G){const J={type:"SequenceExpression",expressions:G},X=C.SequenceExpression;return K(X.expressions,J,"expressions",G,1),J}function tg(G){const J={type:"ParenthesizedExpression",expression:G},X=C.ParenthesizedExpression;return K(X.expression,J,"expression",G,1),J}function Gb(G=null,J){const X={type:"SwitchCase",test:G,consequent:J},H=C.SwitchCase;return K(H.test,X,"test",G,1),K(H.consequent,X,"consequent",J,1),X}function Jb(G,J){const X={type:"SwitchStatement",discriminant:G,cases:J},H=C.SwitchStatement;return K(H.discriminant,X,"discriminant",G,1),K(H.cases,X,"cases",J,1),X}function Xb(){return{type:"ThisExpression"}}function Hb(G){const J={type:"ThrowStatement",argument:G},X=C.ThrowStatement;return K(X.argument,J,"argument",G,1),J}function Zb(G,J=null,X=null){const H={type:"TryStatement",block:G,handler:J,finalizer:X},Z=C.TryStatement;return K(Z.block,H,"block",G,1),K(Z.handler,H,"handler",J,1),K(Z.finalizer,H,"finalizer",X,1),H}function Vb(G,J,X=!0){const H={type:"UnaryExpression",operator:G,argument:J,prefix:X},Z=C.UnaryExpression;return K(Z.operator,H,"operator",G),K(Z.argument,H,"argument",J,1),K(Z.prefix,H,"prefix",X),H}function Qb(G,J,X=!1){const H={type:"UpdateExpression",operator:G,argument:J,prefix:X},Z=C.UpdateExpression;return K(Z.operator,H,"operator",G),K(Z.argument,H,"argument",J,1),K(Z.prefix,H,"prefix",X),H}function Yb(G,J){const X={type:"VariableDeclaration",kind:G,declarations:J},H=C.VariableDeclaration;return K(H.kind,X,"kind",G),K(H.declarations,X,"declarations",J,1),X}function Wb(G,J=null){const X={type:"VariableDeclarator",id:G,init:J},H=C.VariableDeclarator;return K(H.id,X,"id",G,1),K(H.init,X,"init",J,1),X}function zb(G,J){const X={type:"WhileStatement",test:G,body:J},H=C.WhileStatement;return K(H.test,X,"test",G,1),K(H.body,X,"body",J,1),X}function Ub(G,J){const X={type:"WithStatement",object:G,body:J},H=C.WithStatement;return K(H.object,X,"object",G,1),K(H.body,X,"body",J,1),X}function Kb(G,J){const X={type:"AssignmentPattern",left:G,right:J},H=C.AssignmentPattern;return K(H.left,X,"left",G,1),K(H.right,X,"right",J,1),X}function Bb(G){const J={type:"ArrayPattern",elements:G},X=C.ArrayPattern;return K(X.elements,J,"elements",G,1),J}function $b(G,J,X=!1){const H={type:"ArrowFunctionExpression",params:G,body:J,async:X,expression:null},Z=C.ArrowFunctionExpression;return K(Z.params,H,"params",G,1),K(Z.body,H,"body",J,1),K(Z.async,H,"async",X),H}function Rb(G){const J={type:"ClassBody",body:G},X=C.ClassBody;return K(X.body,J,"body",G,1),J}function Mb(G=null,J=null,X,H=null){const Z={type:"ClassExpression",id:G,superClass:J,body:X,decorators:H},V=C.ClassExpression;return K(V.id,Z,"id",G,1),K(V.superClass,Z,"superClass",J,1),K(V.body,Z,"body",X,1),K(V.decorators,Z,"decorators",H,1),Z}function qb(G=null,J=null,X,H=null){const Z={type:"ClassDeclaration",id:G,superClass:J,body:X,decorators:H},V=C.ClassDeclaration;return K(V.id,Z,"id",G,1),K(V.superClass,Z,"superClass",J,1),K(V.body,Z,"body",X,1),K(V.decorators,Z,"decorators",H,1),Z}function Fb(G){const J={type:"ExportAllDeclaration",source:G},X=C.ExportAllDeclaration;return K(X.source,J,"source",G,1),J}function jb(G){const J={type:"ExportDefaultDeclaration",declaration:G},X=C.ExportDefaultDeclaration;return K(X.declaration,J,"declaration",G,1),J}function Db(G=null,J=[],X=null){const H={type:"ExportNamedDeclaration",declaration:G,specifiers:J,source:X},Z=C.ExportNamedDeclaration;return K(Z.declaration,H,"declaration",G,1),K(Z.specifiers,H,"specifiers",J,1),K(Z.source,H,"source",X,1),H}function Ib(G,J){const X={type:"ExportSpecifier",local:G,exported:J},H=C.ExportSpecifier;return K(H.local,X,"local",G,1),K(H.exported,X,"exported",J,1),X}function Ab(G,J,X,H=!1){const Z={type:"ForOfStatement",left:G,right:J,body:X,await:H},V=C.ForOfStatement;return K(V.left,Z,"left",G,1),K(V.right,Z,"right",J,1),K(V.body,Z,"body",X,1),K(V.await,Z,"await",H),Z}function Cb(G,J){const X={type:"ImportDeclaration",specifiers:G,source:J},H=C.ImportDeclaration;return K(H.specifiers,X,"specifiers",G,1),K(H.source,X,"source",J,1),X}function fb(G){const J={type:"ImportDefaultSpecifier",local:G},X=C.ImportDefaultSpecifier;return K(X.local,J,"local",G,1),J}function Sb(G){const J={type:"ImportNamespaceSpecifier",local:G},X=C.ImportNamespaceSpecifier;return K(X.local,J,"local",G,1),J}function Pb(G,J){const X={type:"ImportSpecifier",local:G,imported:J},H=C.ImportSpecifier;return K(H.local,X,"local",G,1),K(H.imported,X,"imported",J,1),X}function Lb(G,J=null){const X={type:"ImportExpression",source:G,options:J},H=C.ImportExpression;return K(H.source,X,"source",G,1),K(H.options,X,"options",J,1),X}function Tb(G,J){const X={type:"MetaProperty",meta:G,property:J},H=C.MetaProperty;return K(H.meta,X,"meta",G,1),K(H.property,X,"property",J,1),X}function wb(G="method",J,X,H,Z=!1,V=!1,Q=!1,Y=!1){const W={type:"ClassMethod",kind:G,key:J,params:X,body:H,computed:Z,static:V,generator:Q,async:Y},z=C.ClassMethod;return K(z.kind,W,"kind",G),K(z.key,W,"key",J,1),K(z.params,W,"params",X,1),K(z.body,W,"body",H,1),K(z.computed,W,"computed",Z),K(z.static,W,"static",V),K(z.generator,W,"generator",Q),K(z.async,W,"async",Y),W}function Nb(G){const J={type:"ObjectPattern",properties:G},X=C.ObjectPattern;return K(X.properties,J,"properties",G,1),J}function zY(G){const J={type:"SpreadElement",argument:G},X=C.SpreadElement;return K(X.argument,J,"argument",G,1),J}function kb(){return{type:"Super"}}function Eb(G,J){const X={type:"TaggedTemplateExpression",tag:G,quasi:J},H=C.TaggedTemplateExpression;return K(H.tag,X,"tag",G,1),K(H.quasi,X,"quasi",J,1),X}function Ob(G,J=!1){const X={type:"TemplateElement",value:G,tail:J},H=C.TemplateElement;return K(H.value,X,"value",G),K(H.tail,X,"tail",J),X}function vb(G,J){const X={type:"TemplateLiteral",quasis:G,expressions:J},H=C.TemplateLiteral;return K(H.quasis,X,"quasis",G,1),K(H.expressions,X,"expressions",J,1),X}function _b(G=null,J=!1){const X={type:"YieldExpression",argument:G,delegate:J},H=C.YieldExpression;return K(H.argument,X,"argument",G,1),K(H.delegate,X,"delegate",J),X}function gb(G){const J={type:"AwaitExpression",argument:G},X=C.AwaitExpression;return K(X.argument,J,"argument",G,1),J}function bb(){return{type:"Import"}}function hb(G){const J={type:"BigIntLiteral",value:G},X=C.BigIntLiteral;return K(X.value,J,"value",G),J}function yb(G){const J={type:"ExportNamespaceSpecifier",exported:G},X=C.ExportNamespaceSpecifier;return K(X.exported,J,"exported",G,1),J}function mb(G,J,X=!1,H){const Z={type:"OptionalMemberExpression",object:G,property:J,computed:X,optional:H},V=C.OptionalMemberExpression;return K(V.object,Z,"object",G,1),K(V.property,Z,"property",J,1),K(V.computed,Z,"computed",X),K(V.optional,Z,"optional",H),Z}function xb(G,J,X){const H={type:"OptionalCallExpression",callee:G,arguments:J,optional:X},Z=C.OptionalCallExpression;return K(Z.callee,H,"callee",G,1),K(Z.arguments,H,"arguments",J,1),K(Z.optional,H,"optional",X),H}function lb(G,J=null,X=null,H=null,Z=!1,V=!1){const Q={type:"ClassProperty",key:G,value:J,typeAnnotation:X,decorators:H,computed:Z,static:V},Y=C.ClassProperty;return K(Y.key,Q,"key",G,1),K(Y.value,Q,"value",J,1),K(Y.typeAnnotation,Q,"typeAnnotation",X,1),K(Y.decorators,Q,"decorators",H,1),K(Y.computed,Q,"computed",Z),K(Y.static,Q,"static",V),Q}function cb(G,J=null,X=null,H=null,Z=!1,V=!1){const Q={type:"ClassAccessorProperty",key:G,value:J,typeAnnotation:X,decorators:H,computed:Z,static:V},Y=C.ClassAccessorProperty;return K(Y.key,Q,"key",G,1),K(Y.value,Q,"value",J,1),K(Y.typeAnnotation,Q,"typeAnnotation",X,1),K(Y.decorators,Q,"decorators",H,1),K(Y.computed,Q,"computed",Z),K(Y.static,Q,"static",V),Q}function ab(G,J=null,X=null,H=!1){const Z={type:"ClassPrivateProperty",key:G,value:J,decorators:X,static:H},V=C.ClassPrivateProperty;return K(V.key,Z,"key",G,1),K(V.value,Z,"value",J,1),K(V.decorators,Z,"decorators",X,1),K(V.static,Z,"static",H),Z}function rb(G="method",J,X,H,Z=!1){const V={type:"ClassPrivateMethod",kind:G,key:J,params:X,body:H,static:Z},Q=C.ClassPrivateMethod;return K(Q.kind,V,"kind",G),K(Q.key,V,"key",J,1),K(Q.params,V,"params",X,1),K(Q.body,V,"body",H,1),K(Q.static,V,"static",Z),V}function ib(G){const J={type:"PrivateName",id:G},X=C.PrivateName;return K(X.id,J,"id",G,1),J}function ub(G){const J={type:"StaticBlock",body:G},X=C.StaticBlock;return K(X.body,J,"body",G,1),J}function db(){return{type:"AnyTypeAnnotation"}}function sb(G){const J={type:"ArrayTypeAnnotation",elementType:G},X=C.ArrayTypeAnnotation;return K(X.elementType,J,"elementType",G,1),J}function pb(){return{type:"BooleanTypeAnnotation"}}function nb(G){const J={type:"BooleanLiteralTypeAnnotation",value:G},X=C.BooleanLiteralTypeAnnotation;return K(X.value,J,"value",G),J}function ob(){return{type:"NullLiteralTypeAnnotation"}}function eb(G,J=null){const X={type:"ClassImplements",id:G,typeParameters:J},H=C.ClassImplements;return K(H.id,X,"id",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function tb(G,J=null,X=null,H){const Z={type:"DeclareClass",id:G,typeParameters:J,extends:X,body:H},V=C.DeclareClass;return K(V.id,Z,"id",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.extends,Z,"extends",X,1),K(V.body,Z,"body",H,1),Z}function Gh(G){const J={type:"DeclareFunction",id:G},X=C.DeclareFunction;return K(X.id,J,"id",G,1),J}function Jh(G,J=null,X=null,H){const Z={type:"DeclareInterface",id:G,typeParameters:J,extends:X,body:H},V=C.DeclareInterface;return K(V.id,Z,"id",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.extends,Z,"extends",X,1),K(V.body,Z,"body",H,1),Z}function Xh(G,J,X=null){const H={type:"DeclareModule",id:G,body:J,kind:X},Z=C.DeclareModule;return K(Z.id,H,"id",G,1),K(Z.body,H,"body",J,1),K(Z.kind,H,"kind",X),H}function Hh(G){const J={type:"DeclareModuleExports",typeAnnotation:G},X=C.DeclareModuleExports;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function Zh(G,J=null,X){const H={type:"DeclareTypeAlias",id:G,typeParameters:J,right:X},Z=C.DeclareTypeAlias;return K(Z.id,H,"id",G,1),K(Z.typeParameters,H,"typeParameters",J,1),K(Z.right,H,"right",X,1),H}function Vh(G,J=null,X=null){const H={type:"DeclareOpaqueType",id:G,typeParameters:J,supertype:X},Z=C.DeclareOpaqueType;return K(Z.id,H,"id",G,1),K(Z.typeParameters,H,"typeParameters",J,1),K(Z.supertype,H,"supertype",X,1),H}function Qh(G){const J={type:"DeclareVariable",id:G},X=C.DeclareVariable;return K(X.id,J,"id",G,1),J}function Yh(G=null,J=null,X=null){const H={type:"DeclareExportDeclaration",declaration:G,specifiers:J,source:X},Z=C.DeclareExportDeclaration;return K(Z.declaration,H,"declaration",G,1),K(Z.specifiers,H,"specifiers",J,1),K(Z.source,H,"source",X,1),H}function Wh(G){const J={type:"DeclareExportAllDeclaration",source:G},X=C.DeclareExportAllDeclaration;return K(X.source,J,"source",G,1),J}function zh(G){const J={type:"DeclaredPredicate",value:G},X=C.DeclaredPredicate;return K(X.value,J,"value",G,1),J}function Uh(){return{type:"ExistsTypeAnnotation"}}function Kh(G=null,J,X=null,H){const Z={type:"FunctionTypeAnnotation",typeParameters:G,params:J,rest:X,returnType:H},V=C.FunctionTypeAnnotation;return K(V.typeParameters,Z,"typeParameters",G,1),K(V.params,Z,"params",J,1),K(V.rest,Z,"rest",X,1),K(V.returnType,Z,"returnType",H,1),Z}function Bh(G=null,J){const X={type:"FunctionTypeParam",name:G,typeAnnotation:J},H=C.FunctionTypeParam;return K(H.name,X,"name",G,1),K(H.typeAnnotation,X,"typeAnnotation",J,1),X}function $h(G,J=null){const X={type:"GenericTypeAnnotation",id:G,typeParameters:J},H=C.GenericTypeAnnotation;return K(H.id,X,"id",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function Rh(){return{type:"InferredPredicate"}}function Mh(G,J=null){const X={type:"InterfaceExtends",id:G,typeParameters:J},H=C.InterfaceExtends;return K(H.id,X,"id",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function qh(G,J=null,X=null,H){const Z={type:"InterfaceDeclaration",id:G,typeParameters:J,extends:X,body:H},V=C.InterfaceDeclaration;return K(V.id,Z,"id",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.extends,Z,"extends",X,1),K(V.body,Z,"body",H,1),Z}function Fh(G=null,J){const X={type:"InterfaceTypeAnnotation",extends:G,body:J},H=C.InterfaceTypeAnnotation;return K(H.extends,X,"extends",G,1),K(H.body,X,"body",J,1),X}function jh(G){const J={type:"IntersectionTypeAnnotation",types:G},X=C.IntersectionTypeAnnotation;return K(X.types,J,"types",G,1),J}function Dh(){return{type:"MixedTypeAnnotation"}}function Ih(){return{type:"EmptyTypeAnnotation"}}function Ah(G){const J={type:"NullableTypeAnnotation",typeAnnotation:G},X=C.NullableTypeAnnotation;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function Ch(G){const J={type:"NumberLiteralTypeAnnotation",value:G},X=C.NumberLiteralTypeAnnotation;return K(X.value,J,"value",G),J}function fh(){return{type:"NumberTypeAnnotation"}}function Sh(G,J=[],X=[],H=[],Z=!1){const V={type:"ObjectTypeAnnotation",properties:G,indexers:J,callProperties:X,internalSlots:H,exact:Z},Q=C.ObjectTypeAnnotation;return K(Q.properties,V,"properties",G,1),K(Q.indexers,V,"indexers",J,1),K(Q.callProperties,V,"callProperties",X,1),K(Q.internalSlots,V,"internalSlots",H,1),K(Q.exact,V,"exact",Z),V}function Ph(G,J,X,H,Z){const V={type:"ObjectTypeInternalSlot",id:G,value:J,optional:X,static:H,method:Z},Q=C.ObjectTypeInternalSlot;return K(Q.id,V,"id",G,1),K(Q.value,V,"value",J,1),K(Q.optional,V,"optional",X),K(Q.static,V,"static",H),K(Q.method,V,"method",Z),V}function Lh(G){const J={type:"ObjectTypeCallProperty",value:G,static:null},X=C.ObjectTypeCallProperty;return K(X.value,J,"value",G,1),J}function Th(G=null,J,X,H=null){const Z={type:"ObjectTypeIndexer",id:G,key:J,value:X,variance:H,static:null},V=C.ObjectTypeIndexer;return K(V.id,Z,"id",G,1),K(V.key,Z,"key",J,1),K(V.value,Z,"value",X,1),K(V.variance,Z,"variance",H,1),Z}function wh(G,J,X=null){const H={type:"ObjectTypeProperty",key:G,value:J,variance:X,kind:null,method:null,optional:null,proto:null,static:null},Z=C.ObjectTypeProperty;return K(Z.key,H,"key",G,1),K(Z.value,H,"value",J,1),K(Z.variance,H,"variance",X,1),H}function Nh(G){const J={type:"ObjectTypeSpreadProperty",argument:G},X=C.ObjectTypeSpreadProperty;return K(X.argument,J,"argument",G,1),J}function kh(G,J=null,X=null,H){const Z={type:"OpaqueType",id:G,typeParameters:J,supertype:X,impltype:H},V=C.OpaqueType;return K(V.id,Z,"id",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.supertype,Z,"supertype",X,1),K(V.impltype,Z,"impltype",H,1),Z}function Eh(G,J){const X={type:"QualifiedTypeIdentifier",id:G,qualification:J},H=C.QualifiedTypeIdentifier;return K(H.id,X,"id",G,1),K(H.qualification,X,"qualification",J,1),X}function Oh(G){const J={type:"StringLiteralTypeAnnotation",value:G},X=C.StringLiteralTypeAnnotation;return K(X.value,J,"value",G),J}function vh(){return{type:"StringTypeAnnotation"}}function _h(){return{type:"SymbolTypeAnnotation"}}function gh(){return{type:"ThisTypeAnnotation"}}function bh(G){const J={type:"TupleTypeAnnotation",types:G},X=C.TupleTypeAnnotation;return K(X.types,J,"types",G,1),J}function hh(G){const J={type:"TypeofTypeAnnotation",argument:G},X=C.TypeofTypeAnnotation;return K(X.argument,J,"argument",G,1),J}function yh(G,J=null,X){const H={type:"TypeAlias",id:G,typeParameters:J,right:X},Z=C.TypeAlias;return K(Z.id,H,"id",G,1),K(Z.typeParameters,H,"typeParameters",J,1),K(Z.right,H,"right",X,1),H}function mh(G){const J={type:"TypeAnnotation",typeAnnotation:G},X=C.TypeAnnotation;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function xh(G,J){const X={type:"TypeCastExpression",expression:G,typeAnnotation:J},H=C.TypeCastExpression;return K(H.expression,X,"expression",G,1),K(H.typeAnnotation,X,"typeAnnotation",J,1),X}function lh(G=null,J=null,X=null){const H={type:"TypeParameter",bound:G,default:J,variance:X,name:null},Z=C.TypeParameter;return K(Z.bound,H,"bound",G,1),K(Z.default,H,"default",J,1),K(Z.variance,H,"variance",X,1),H}function ch(G){const J={type:"TypeParameterDeclaration",params:G},X=C.TypeParameterDeclaration;return K(X.params,J,"params",G,1),J}function ah(G){const J={type:"TypeParameterInstantiation",params:G},X=C.TypeParameterInstantiation;return K(X.params,J,"params",G,1),J}function rh(G){const J={type:"UnionTypeAnnotation",types:G},X=C.UnionTypeAnnotation;return K(X.types,J,"types",G,1),J}function ih(G){const J={type:"Variance",kind:G},X=C.Variance;return K(X.kind,J,"kind",G),J}function uh(){return{type:"VoidTypeAnnotation"}}function dh(G,J){const X={type:"EnumDeclaration",id:G,body:J},H=C.EnumDeclaration;return K(H.id,X,"id",G,1),K(H.body,X,"body",J,1),X}function sh(G){const J={type:"EnumBooleanBody",members:G,explicitType:null,hasUnknownMembers:null},X=C.EnumBooleanBody;return K(X.members,J,"members",G,1),J}function ph(G){const J={type:"EnumNumberBody",members:G,explicitType:null,hasUnknownMembers:null},X=C.EnumNumberBody;return K(X.members,J,"members",G,1),J}function nh(G){const J={type:"EnumStringBody",members:G,explicitType:null,hasUnknownMembers:null},X=C.EnumStringBody;return K(X.members,J,"members",G,1),J}function oh(G){const J={type:"EnumSymbolBody",members:G,hasUnknownMembers:null},X=C.EnumSymbolBody;return K(X.members,J,"members",G,1),J}function eh(G){const J={type:"EnumBooleanMember",id:G,init:null},X=C.EnumBooleanMember;return K(X.id,J,"id",G,1),J}function th(G,J){const X={type:"EnumNumberMember",id:G,init:J},H=C.EnumNumberMember;return K(H.id,X,"id",G,1),K(H.init,X,"init",J,1),X}function Gy(G,J){const X={type:"EnumStringMember",id:G,init:J},H=C.EnumStringMember;return K(H.id,X,"id",G,1),K(H.init,X,"init",J,1),X}function Jy(G){const J={type:"EnumDefaultedMember",id:G},X=C.EnumDefaultedMember;return K(X.id,J,"id",G,1),J}function Xy(G,J){const X={type:"IndexedAccessType",objectType:G,indexType:J},H=C.IndexedAccessType;return K(H.objectType,X,"objectType",G,1),K(H.indexType,X,"indexType",J,1),X}function Hy(G,J){const X={type:"OptionalIndexedAccessType",objectType:G,indexType:J,optional:null},H=C.OptionalIndexedAccessType;return K(H.objectType,X,"objectType",G,1),K(H.indexType,X,"indexType",J,1),X}function Zy(G,J=null){const X={type:"JSXAttribute",name:G,value:J},H=C.JSXAttribute;return K(H.name,X,"name",G,1),K(H.value,X,"value",J,1),X}function Vy(G){const J={type:"JSXClosingElement",name:G},X=C.JSXClosingElement;return K(X.name,J,"name",G,1),J}function Qy(G,J=null,X,H=null){const Z={type:"JSXElement",openingElement:G,closingElement:J,children:X,selfClosing:H},V=C.JSXElement;return K(V.openingElement,Z,"openingElement",G,1),K(V.closingElement,Z,"closingElement",J,1),K(V.children,Z,"children",X,1),K(V.selfClosing,Z,"selfClosing",H),Z}function Yy(){return{type:"JSXEmptyExpression"}}function Wy(G){const J={type:"JSXExpressionContainer",expression:G},X=C.JSXExpressionContainer;return K(X.expression,J,"expression",G,1),J}function zy(G){const J={type:"JSXSpreadChild",expression:G},X=C.JSXSpreadChild;return K(X.expression,J,"expression",G,1),J}function Uy(G){const J={type:"JSXIdentifier",name:G},X=C.JSXIdentifier;return K(X.name,J,"name",G),J}function Ky(G,J){const X={type:"JSXMemberExpression",object:G,property:J},H=C.JSXMemberExpression;return K(H.object,X,"object",G,1),K(H.property,X,"property",J,1),X}function By(G,J){const X={type:"JSXNamespacedName",namespace:G,name:J},H=C.JSXNamespacedName;return K(H.namespace,X,"namespace",G,1),K(H.name,X,"name",J,1),X}function $y(G,J,X=!1){const H={type:"JSXOpeningElement",name:G,attributes:J,selfClosing:X},Z=C.JSXOpeningElement;return K(Z.name,H,"name",G,1),K(Z.attributes,H,"attributes",J,1),K(Z.selfClosing,H,"selfClosing",X),H}function Ry(G){const J={type:"JSXSpreadAttribute",argument:G},X=C.JSXSpreadAttribute;return K(X.argument,J,"argument",G,1),J}function My(G){const J={type:"JSXText",value:G},X=C.JSXText;return K(X.value,J,"value",G),J}function qy(G,J,X){const H={type:"JSXFragment",openingFragment:G,closingFragment:J,children:X},Z=C.JSXFragment;return K(Z.openingFragment,H,"openingFragment",G,1),K(Z.closingFragment,H,"closingFragment",J,1),K(Z.children,H,"children",X,1),H}function Fy(){return{type:"JSXOpeningFragment"}}function jy(){return{type:"JSXClosingFragment"}}function Dy(){return{type:"Noop"}}function Iy(G,J){const X={type:"Placeholder",expectedNode:G,name:J},H=C.Placeholder;return K(H.expectedNode,X,"expectedNode",G),K(H.name,X,"name",J,1),X}function Ay(G){const J={type:"V8IntrinsicIdentifier",name:G},X=C.V8IntrinsicIdentifier;return K(X.name,J,"name",G),J}function Cy(){return{type:"ArgumentPlaceholder"}}function fy(G,J){const X={type:"BindExpression",object:G,callee:J},H=C.BindExpression;return K(H.object,X,"object",G,1),K(H.callee,X,"callee",J,1),X}function Sy(G,J){const X={type:"ImportAttribute",key:G,value:J},H=C.ImportAttribute;return K(H.key,X,"key",G,1),K(H.value,X,"value",J,1),X}function Py(G){const J={type:"Decorator",expression:G},X=C.Decorator;return K(X.expression,J,"expression",G,1),J}function Ly(G,J=!1){const X={type:"DoExpression",body:G,async:J},H=C.DoExpression;return K(H.body,X,"body",G,1),K(H.async,X,"async",J),X}function Ty(G){const J={type:"ExportDefaultSpecifier",exported:G},X=C.ExportDefaultSpecifier;return K(X.exported,J,"exported",G,1),J}function wy(G){const J={type:"RecordExpression",properties:G},X=C.RecordExpression;return K(X.properties,J,"properties",G,1),J}function Ny(G=[]){const J={type:"TupleExpression",elements:G},X=C.TupleExpression;return K(X.elements,J,"elements",G,1),J}function ky(G){const J={type:"DecimalLiteral",value:G},X=C.DecimalLiteral;return K(X.value,J,"value",G),J}function Ey(G){const J={type:"ModuleExpression",body:G},X=C.ModuleExpression;return K(X.body,J,"body",G,1),J}function Oy(){return{type:"TopicReference"}}function vy(G){const J={type:"PipelineTopicExpression",expression:G},X=C.PipelineTopicExpression;return K(X.expression,J,"expression",G,1),J}function _y(G){const J={type:"PipelineBareFunction",callee:G},X=C.PipelineBareFunction;return K(X.callee,J,"callee",G,1),J}function gy(){return{type:"PipelinePrimaryTopicReference"}}function by(G){const J={type:"TSParameterProperty",parameter:G},X=C.TSParameterProperty;return K(X.parameter,J,"parameter",G,1),J}function hy(G=null,J=null,X,H=null){const Z={type:"TSDeclareFunction",id:G,typeParameters:J,params:X,returnType:H},V=C.TSDeclareFunction;return K(V.id,Z,"id",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.params,Z,"params",X,1),K(V.returnType,Z,"returnType",H,1),Z}function yy(G=null,J,X=null,H,Z=null){const V={type:"TSDeclareMethod",decorators:G,key:J,typeParameters:X,params:H,returnType:Z},Q=C.TSDeclareMethod;return K(Q.decorators,V,"decorators",G,1),K(Q.key,V,"key",J,1),K(Q.typeParameters,V,"typeParameters",X,1),K(Q.params,V,"params",H,1),K(Q.returnType,V,"returnType",Z,1),V}function my(G,J){const X={type:"TSQualifiedName",left:G,right:J},H=C.TSQualifiedName;return K(H.left,X,"left",G,1),K(H.right,X,"right",J,1),X}function xy(G=null,J,X=null){const H={type:"TSCallSignatureDeclaration",typeParameters:G,parameters:J,typeAnnotation:X},Z=C.TSCallSignatureDeclaration;return K(Z.typeParameters,H,"typeParameters",G,1),K(Z.parameters,H,"parameters",J,1),K(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function ly(G=null,J,X=null){const H={type:"TSConstructSignatureDeclaration",typeParameters:G,parameters:J,typeAnnotation:X},Z=C.TSConstructSignatureDeclaration;return K(Z.typeParameters,H,"typeParameters",G,1),K(Z.parameters,H,"parameters",J,1),K(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function cy(G,J=null){const X={type:"TSPropertySignature",key:G,typeAnnotation:J,kind:null},H=C.TSPropertySignature;return K(H.key,X,"key",G,1),K(H.typeAnnotation,X,"typeAnnotation",J,1),X}function ay(G,J=null,X,H=null){const Z={type:"TSMethodSignature",key:G,typeParameters:J,parameters:X,typeAnnotation:H,kind:null},V=C.TSMethodSignature;return K(V.key,Z,"key",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.parameters,Z,"parameters",X,1),K(V.typeAnnotation,Z,"typeAnnotation",H,1),Z}function ry(G,J=null){const X={type:"TSIndexSignature",parameters:G,typeAnnotation:J},H=C.TSIndexSignature;return K(H.parameters,X,"parameters",G,1),K(H.typeAnnotation,X,"typeAnnotation",J,1),X}function iy(){return{type:"TSAnyKeyword"}}function uy(){return{type:"TSBooleanKeyword"}}function dy(){return{type:"TSBigIntKeyword"}}function sy(){return{type:"TSIntrinsicKeyword"}}function py(){return{type:"TSNeverKeyword"}}function ny(){return{type:"TSNullKeyword"}}function oy(){return{type:"TSNumberKeyword"}}function ey(){return{type:"TSObjectKeyword"}}function ty(){return{type:"TSStringKeyword"}}function Gm(){return{type:"TSSymbolKeyword"}}function Jm(){return{type:"TSUndefinedKeyword"}}function Xm(){return{type:"TSUnknownKeyword"}}function Hm(){return{type:"TSVoidKeyword"}}function Zm(){return{type:"TSThisType"}}function Vm(G=null,J,X=null){const H={type:"TSFunctionType",typeParameters:G,parameters:J,typeAnnotation:X},Z=C.TSFunctionType;return K(Z.typeParameters,H,"typeParameters",G,1),K(Z.parameters,H,"parameters",J,1),K(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function Qm(G=null,J,X=null){const H={type:"TSConstructorType",typeParameters:G,parameters:J,typeAnnotation:X},Z=C.TSConstructorType;return K(Z.typeParameters,H,"typeParameters",G,1),K(Z.parameters,H,"parameters",J,1),K(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function Ym(G,J=null){const X={type:"TSTypeReference",typeName:G,typeParameters:J},H=C.TSTypeReference;return K(H.typeName,X,"typeName",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function Wm(G,J=null,X=null){const H={type:"TSTypePredicate",parameterName:G,typeAnnotation:J,asserts:X},Z=C.TSTypePredicate;return K(Z.parameterName,H,"parameterName",G,1),K(Z.typeAnnotation,H,"typeAnnotation",J,1),K(Z.asserts,H,"asserts",X),H}function zm(G,J=null){const X={type:"TSTypeQuery",exprName:G,typeParameters:J},H=C.TSTypeQuery;return K(H.exprName,X,"exprName",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function Um(G){const J={type:"TSTypeLiteral",members:G},X=C.TSTypeLiteral;return K(X.members,J,"members",G,1),J}function Km(G){const J={type:"TSArrayType",elementType:G},X=C.TSArrayType;return K(X.elementType,J,"elementType",G,1),J}function Bm(G){const J={type:"TSTupleType",elementTypes:G},X=C.TSTupleType;return K(X.elementTypes,J,"elementTypes",G,1),J}function $m(G){const J={type:"TSOptionalType",typeAnnotation:G},X=C.TSOptionalType;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function Rm(G){const J={type:"TSRestType",typeAnnotation:G},X=C.TSRestType;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function Mm(G,J,X=!1){const H={type:"TSNamedTupleMember",label:G,elementType:J,optional:X},Z=C.TSNamedTupleMember;return K(Z.label,H,"label",G,1),K(Z.elementType,H,"elementType",J,1),K(Z.optional,H,"optional",X),H}function qm(G){const J={type:"TSUnionType",types:G},X=C.TSUnionType;return K(X.types,J,"types",G,1),J}function Fm(G){const J={type:"TSIntersectionType",types:G},X=C.TSIntersectionType;return K(X.types,J,"types",G,1),J}function jm(G,J,X,H){const Z={type:"TSConditionalType",checkType:G,extendsType:J,trueType:X,falseType:H},V=C.TSConditionalType;return K(V.checkType,Z,"checkType",G,1),K(V.extendsType,Z,"extendsType",J,1),K(V.trueType,Z,"trueType",X,1),K(V.falseType,Z,"falseType",H,1),Z}function Dm(G){const J={type:"TSInferType",typeParameter:G},X=C.TSInferType;return K(X.typeParameter,J,"typeParameter",G,1),J}function Im(G){const J={type:"TSParenthesizedType",typeAnnotation:G},X=C.TSParenthesizedType;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function Am(G){const J={type:"TSTypeOperator",typeAnnotation:G,operator:null},X=C.TSTypeOperator;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function Cm(G,J){const X={type:"TSIndexedAccessType",objectType:G,indexType:J},H=C.TSIndexedAccessType;return K(H.objectType,X,"objectType",G,1),K(H.indexType,X,"indexType",J,1),X}function fm(G,J=null,X=null){const H={type:"TSMappedType",typeParameter:G,typeAnnotation:J,nameType:X},Z=C.TSMappedType;return K(Z.typeParameter,H,"typeParameter",G,1),K(Z.typeAnnotation,H,"typeAnnotation",J,1),K(Z.nameType,H,"nameType",X,1),H}function Sm(G){const J={type:"TSLiteralType",literal:G},X=C.TSLiteralType;return K(X.literal,J,"literal",G,1),J}function Pm(G,J=null){const X={type:"TSExpressionWithTypeArguments",expression:G,typeParameters:J},H=C.TSExpressionWithTypeArguments;return K(H.expression,X,"expression",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function Lm(G,J=null,X=null,H){const Z={type:"TSInterfaceDeclaration",id:G,typeParameters:J,extends:X,body:H},V=C.TSInterfaceDeclaration;return K(V.id,Z,"id",G,1),K(V.typeParameters,Z,"typeParameters",J,1),K(V.extends,Z,"extends",X,1),K(V.body,Z,"body",H,1),Z}function Tm(G){const J={type:"TSInterfaceBody",body:G},X=C.TSInterfaceBody;return K(X.body,J,"body",G,1),J}function wm(G,J=null,X){const H={type:"TSTypeAliasDeclaration",id:G,typeParameters:J,typeAnnotation:X},Z=C.TSTypeAliasDeclaration;return K(Z.id,H,"id",G,1),K(Z.typeParameters,H,"typeParameters",J,1),K(Z.typeAnnotation,H,"typeAnnotation",X,1),H}function Nm(G,J=null){const X={type:"TSInstantiationExpression",expression:G,typeParameters:J},H=C.TSInstantiationExpression;return K(H.expression,X,"expression",G,1),K(H.typeParameters,X,"typeParameters",J,1),X}function km(G,J){const X={type:"TSAsExpression",expression:G,typeAnnotation:J},H=C.TSAsExpression;return K(H.expression,X,"expression",G,1),K(H.typeAnnotation,X,"typeAnnotation",J,1),X}function Em(G,J){const X={type:"TSSatisfiesExpression",expression:G,typeAnnotation:J},H=C.TSSatisfiesExpression;return K(H.expression,X,"expression",G,1),K(H.typeAnnotation,X,"typeAnnotation",J,1),X}function Om(G,J){const X={type:"TSTypeAssertion",typeAnnotation:G,expression:J},H=C.TSTypeAssertion;return K(H.typeAnnotation,X,"typeAnnotation",G,1),K(H.expression,X,"expression",J,1),X}function vm(G,J){const X={type:"TSEnumDeclaration",id:G,members:J},H=C.TSEnumDeclaration;return K(H.id,X,"id",G,1),K(H.members,X,"members",J,1),X}function _m(G,J=null){const X={type:"TSEnumMember",id:G,initializer:J},H=C.TSEnumMember;return K(H.id,X,"id",G,1),K(H.initializer,X,"initializer",J,1),X}function gm(G,J){const X={type:"TSModuleDeclaration",id:G,body:J},H=C.TSModuleDeclaration;return K(H.id,X,"id",G,1),K(H.body,X,"body",J,1),X}function bm(G){const J={type:"TSModuleBlock",body:G},X=C.TSModuleBlock;return K(X.body,J,"body",G,1),J}function hm(G,J=null,X=null){const H={type:"TSImportType",argument:G,qualifier:J,typeParameters:X},Z=C.TSImportType;return K(Z.argument,H,"argument",G,1),K(Z.qualifier,H,"qualifier",J,1),K(Z.typeParameters,H,"typeParameters",X,1),H}function ym(G,J){const X={type:"TSImportEqualsDeclaration",id:G,moduleReference:J,isExport:null},H=C.TSImportEqualsDeclaration;return K(H.id,X,"id",G,1),K(H.moduleReference,X,"moduleReference",J,1),X}function mm(G){const J={type:"TSExternalModuleReference",expression:G},X=C.TSExternalModuleReference;return K(X.expression,J,"expression",G,1),J}function xm(G){const J={type:"TSNonNullExpression",expression:G},X=C.TSNonNullExpression;return K(X.expression,J,"expression",G,1),J}function lm(G){const J={type:"TSExportAssignment",expression:G},X=C.TSExportAssignment;return K(X.expression,J,"expression",G,1),J}function cm(G){const J={type:"TSNamespaceExportDeclaration",id:G},X=C.TSNamespaceExportDeclaration;return K(X.id,J,"id",G,1),J}function am(G){const J={type:"TSTypeAnnotation",typeAnnotation:G},X=C.TSTypeAnnotation;return K(X.typeAnnotation,J,"typeAnnotation",G,1),J}function rm(G){const J={type:"TSTypeParameterInstantiation",params:G},X=C.TSTypeParameterInstantiation;return K(X.params,J,"params",G,1),J}function im(G){const J={type:"TSTypeParameterDeclaration",params:G},X=C.TSTypeParameterDeclaration;return K(X.params,J,"params",G,1),J}function um(G=null,J=null,X){const H={type:"TSTypeParameter",constraint:G,default:J,name:X},Z=C.TSTypeParameter;return K(Z.constraint,H,"constraint",G,1),K(Z.default,H,"default",J,1),K(Z.name,H,"name",X),H}function dm(G){return DG.default("NumberLiteral","NumericLiteral","The node type "),QY(G)}function sm(G,J=""){return DG.default("RegexLiteral","RegExpLiteral","The node type "),YY(G,J)}function pm(G){return DG.default("RestProperty","RestElement","The node type "),WY(G)}function nm(G){return DG.default("SpreadProperty","SpreadElement","The node type "),zY(G)}Object.defineProperty(UY,"__esModule",{value:!0});UY.anyTypeAnnotation=db;UY.argumentPlaceholder=Cy;UY.arrayExpression=Fg;UY.arrayPattern=Bb;UY.arrayTypeAnnotation=sb;UY.arrowFunctionExpression=$b;UY.assignmentExpression=jg;UY.assignmentPattern=Kb;UY.awaitExpression=gb;UY.bigIntLiteral=hb;UY.binaryExpression=Dg;UY.bindExpression=fy;UY.blockStatement=fg;UY.booleanLiteral=ag;UY.booleanLiteralTypeAnnotation=nb;UY.booleanTypeAnnotation=pb;UY.breakStatement=Sg;UY.callExpression=Pg;UY.catchClause=Lg;UY.classAccessorProperty=cb;UY.classBody=Rb;UY.classDeclaration=qb;UY.classExpression=Mb;UY.classImplements=eb;UY.classMethod=wb;UY.classPrivateMethod=rb;UY.classPrivateProperty=ab;UY.classProperty=lb;UY.conditionalExpression=Tg;UY.continueStatement=wg;UY.debuggerStatement=Ng;UY.decimalLiteral=ky;UY.declareClass=tb;UY.declareExportAllDeclaration=Wh;UY.declareExportDeclaration=Yh;UY.declareFunction=Gh;UY.declareInterface=Jh;UY.declareModule=Xh;UY.declareModuleExports=Hh;UY.declareOpaqueType=Vh;UY.declareTypeAlias=Zh;UY.declareVariable=Qh;UY.declaredPredicate=zh;UY.decorator=Py;UY.directive=Ag;UY.directiveLiteral=Cg;UY.doExpression=Ly;UY.doWhileStatement=kg;UY.emptyStatement=Eg;UY.emptyTypeAnnotation=Ih;UY.enumBooleanBody=sh;UY.enumBooleanMember=eh;UY.enumDeclaration=dh;UY.enumDefaultedMember=Jy;UY.enumNumberBody=ph;UY.enumNumberMember=th;UY.enumStringBody=nh;UY.enumStringMember=Gy;UY.enumSymbolBody=oh;UY.existsTypeAnnotation=Uh;UY.exportAllDeclaration=Fb;UY.exportDefaultDeclaration=jb;UY.exportDefaultSpecifier=Ty;UY.exportNamedDeclaration=Db;UY.exportNamespaceSpecifier=yb;UY.exportSpecifier=Ib;UY.expressionStatement=Og;UY.file=vg;UY.forInStatement=_g;UY.forOfStatement=Ab;UY.forStatement=gg;UY.functionDeclaration=bg;UY.functionExpression=hg;UY.functionTypeAnnotation=Kh;UY.functionTypeParam=Bh;UY.genericTypeAnnotation=$h;UY.identifier=yg;UY.ifStatement=mg;UY.import=bb;UY.importAttribute=Sy;UY.importDeclaration=Cb;UY.importDefaultSpecifier=fb;UY.importExpression=Lb;UY.importNamespaceSpecifier=Sb;UY.importSpecifier=Pb;UY.indexedAccessType=Xy;UY.inferredPredicate=Rh;UY.interfaceDeclaration=qh;UY.interfaceExtends=Mh;UY.interfaceTypeAnnotation=Fh;UY.interpreterDirective=Ig;UY.intersectionTypeAnnotation=jh;UY.jSXAttribute=UY.jsxAttribute=Zy;UY.jSXClosingElement=UY.jsxClosingElement=Vy;UY.jSXClosingFragment=UY.jsxClosingFragment=jy;UY.jSXElement=UY.jsxElement=Qy;UY.jSXEmptyExpression=UY.jsxEmptyExpression=Yy;UY.jSXExpressionContainer=UY.jsxExpressionContainer=Wy;UY.jSXFragment=UY.jsxFragment=qy;UY.jSXIdentifier=UY.jsxIdentifier=Uy;UY.jSXMemberExpression=UY.jsxMemberExpression=Ky;UY.jSXNamespacedName=UY.jsxNamespacedName=By;UY.jSXOpeningElement=UY.jsxOpeningElement=$y;UY.jSXOpeningFragment=UY.jsxOpeningFragment=Fy;UY.jSXSpreadAttribute=UY.jsxSpreadAttribute=Ry;UY.jSXSpreadChild=UY.jsxSpreadChild=zy;UY.jSXText=UY.jsxText=My;UY.labeledStatement=xg;UY.logicalExpression=rg;UY.memberExpression=ig;UY.metaProperty=Tb;UY.mixedTypeAnnotation=Dh;UY.moduleExpression=Ey;UY.newExpression=ug;UY.noop=Dy;UY.nullLiteral=cg;UY.nullLiteralTypeAnnotation=ob;UY.nullableTypeAnnotation=Ah;UY.numberLiteral=dm;UY.numberLiteralTypeAnnotation=Ch;UY.numberTypeAnnotation=fh;UY.numericLiteral=QY;UY.objectExpression=sg;UY.objectMethod=pg;UY.objectPattern=Nb;UY.objectProperty=ng;UY.objectTypeAnnotation=Sh;UY.objectTypeCallProperty=Lh;UY.objectTypeIndexer=Th;UY.objectTypeInternalSlot=Ph;UY.objectTypeProperty=wh;UY.objectTypeSpreadProperty=Nh;UY.opaqueType=kh;UY.optionalCallExpression=xb;UY.optionalIndexedAccessType=Hy;UY.optionalMemberExpression=mb;UY.parenthesizedExpression=tg;UY.pipelineBareFunction=_y;UY.pipelinePrimaryTopicReference=gy;UY.pipelineTopicExpression=vy;UY.placeholder=Iy;UY.privateName=ib;UY.program=dg;UY.qualifiedTypeIdentifier=Eh;UY.recordExpression=wy;UY.regExpLiteral=YY;UY.regexLiteral=sm;UY.restElement=WY;UY.restProperty=pm;UY.returnStatement=og;UY.sequenceExpression=eg;UY.spreadElement=zY;UY.spreadProperty=nm;UY.staticBlock=ub;UY.stringLiteral=lg;UY.stringLiteralTypeAnnotation=Oh;UY.stringTypeAnnotation=vh;UY.super=kb;UY.switchCase=Gb;UY.switchStatement=Jb;UY.symbolTypeAnnotation=_h;UY.taggedTemplateExpression=Eb;UY.templateElement=Ob;UY.templateLiteral=vb;UY.thisExpression=Xb;UY.thisTypeAnnotation=gh;UY.throwStatement=Hb;UY.topicReference=Oy;UY.tryStatement=Zb;UY.tSAnyKeyword=UY.tsAnyKeyword=iy;UY.tSArrayType=UY.tsArrayType=Km;UY.tSAsExpression=UY.tsAsExpression=km;UY.tSBigIntKeyword=UY.tsBigIntKeyword=dy;UY.tSBooleanKeyword=UY.tsBooleanKeyword=uy;UY.tSCallSignatureDeclaration=UY.tsCallSignatureDeclaration=xy;UY.tSConditionalType=UY.tsConditionalType=jm;UY.tSConstructSignatureDeclaration=UY.tsConstructSignatureDeclaration=ly;UY.tSConstructorType=UY.tsConstructorType=Qm;UY.tSDeclareFunction=UY.tsDeclareFunction=hy;UY.tSDeclareMethod=UY.tsDeclareMethod=yy;UY.tSEnumDeclaration=UY.tsEnumDeclaration=vm;UY.tSEnumMember=UY.tsEnumMember=_m;UY.tSExportAssignment=UY.tsExportAssignment=lm;UY.tSExpressionWithTypeArguments=UY.tsExpressionWithTypeArguments=Pm;UY.tSExternalModuleReference=UY.tsExternalModuleReference=mm;UY.tSFunctionType=UY.tsFunctionType=Vm;UY.tSImportEqualsDeclaration=UY.tsImportEqualsDeclaration=ym;UY.tSImportType=UY.tsImportType=hm;UY.tSIndexSignature=UY.tsIndexSignature=ry;UY.tSIndexedAccessType=UY.tsIndexedAccessType=Cm;UY.tSInferType=UY.tsInferType=Dm;UY.tSInstantiationExpression=UY.tsInstantiationExpression=Nm;UY.tSInterfaceBody=UY.tsInterfaceBody=Tm;UY.tSInterfaceDeclaration=UY.tsInterfaceDeclaration=Lm;UY.tSIntersectionType=UY.tsIntersectionType=Fm;UY.tSIntrinsicKeyword=UY.tsIntrinsicKeyword=sy;UY.tSLiteralType=UY.tsLiteralType=Sm;UY.tSMappedType=UY.tsMappedType=fm;UY.tSMethodSignature=UY.tsMethodSignature=ay;UY.tSModuleBlock=UY.tsModuleBlock=bm;UY.tSModuleDeclaration=UY.tsModuleDeclaration=gm;UY.tSNamedTupleMember=UY.tsNamedTupleMember=Mm;UY.tSNamespaceExportDeclaration=UY.tsNamespaceExportDeclaration=cm;UY.tSNeverKeyword=UY.tsNeverKeyword=py;UY.tSNonNullExpression=UY.tsNonNullExpression=xm;UY.tSNullKeyword=UY.tsNullKeyword=ny;UY.tSNumberKeyword=UY.tsNumberKeyword=oy;UY.tSObjectKeyword=UY.tsObjectKeyword=ey;UY.tSOptionalType=UY.tsOptionalType=$m;UY.tSParameterProperty=UY.tsParameterProperty=by;UY.tSParenthesizedType=UY.tsParenthesizedType=Im;UY.tSPropertySignature=UY.tsPropertySignature=cy;UY.tSQualifiedName=UY.tsQualifiedName=my;UY.tSRestType=UY.tsRestType=Rm;UY.tSSatisfiesExpression=UY.tsSatisfiesExpression=Em;UY.tSStringKeyword=UY.tsStringKeyword=ty;UY.tSSymbolKeyword=UY.tsSymbolKeyword=Gm;UY.tSThisType=UY.tsThisType=Zm;UY.tSTupleType=UY.tsTupleType=Bm;UY.tSTypeAliasDeclaration=UY.tsTypeAliasDeclaration=wm;UY.tSTypeAnnotation=UY.tsTypeAnnotation=am;UY.tSTypeAssertion=UY.tsTypeAssertion=Om;UY.tSTypeLiteral=UY.tsTypeLiteral=Um;UY.tSTypeOperator=UY.tsTypeOperator=Am;UY.tSTypeParameter=UY.tsTypeParameter=um;UY.tSTypeParameterDeclaration=UY.tsTypeParameterDeclaration=im;UY.tSTypeParameterInstantiation=UY.tsTypeParameterInstantiation=rm;UY.tSTypePredicate=UY.tsTypePredicate=Wm;UY.tSTypeQuery=UY.tsTypeQuery=zm;UY.tSTypeReference=UY.tsTypeReference=Ym;UY.tSUndefinedKeyword=UY.tsUndefinedKeyword=Jm;UY.tSUnionType=UY.tsUnionType=qm;UY.tSUnknownKeyword=UY.tsUnknownKeyword=Xm;UY.tSVoidKeyword=UY.tsVoidKeyword=Hm;UY.tupleExpression=Ny;UY.tupleTypeAnnotation=bh;UY.typeAlias=yh;UY.typeAnnotation=mh;UY.typeCastExpression=xh;UY.typeParameter=lh;UY.typeParameterDeclaration=ch;UY.typeParameterInstantiation=ah;UY.typeofTypeAnnotation=hh;UY.unaryExpression=Vb;UY.unionTypeAnnotation=rh;UY.updateExpression=Qb;UY.v8IntrinsicIdentifier=Ay;UY.variableDeclaration=Yb;UY.variableDeclarator=Wb;UY.variance=ih;UY.voidTypeAnnotation=uh;UY.whileStatement=zb;UY.withStatement=Ub;UY.yieldExpression=_b;var Mg=MG(),DG=K9(),qg=p2(),{validateInternal:K}=Mg,{NODE_FIELDS:C}=qg});var BY=S((KY)=>{function hr(G,J){const X=G.value.split(/\r\n|\n|\r/);let H=0;for(let V=0;V<X.length;V++)if(/[^ \t]/.exec(X[V]))H=V;let Z="";for(let V=0;V<X.length;V++){const Q=X[V],Y=V===0,W=V===X.length-1,z=V===H;let B=Q.replace(/\t/g," ");if(!Y)B=B.replace(/^ +/,"");if(!W)B=B.replace(/ +$/,"");if(B){if(!z)B+=" ";Z+=B}}if(Z)J.push(br.inherits(gr.stringLiteral(Z),G))}Object.defineProperty(KY,"__esModule",{value:!0});KY.default=hr;var gr=z2(),br=F1()});var RY=S(($Y)=>{function xr(G){const J=[];for(let X=0;X<G.children.length;X++){let H=G.children[X];if(TX.isJSXText(H)){mr.default(H,J);continue}if(TX.isJSXExpressionContainer(H))H=H.expression;if(TX.isJSXEmptyExpression(H))continue;J.push(H)}return J}Object.defineProperty($Y,"__esModule",{value:!0});$Y.default=xr;var TX=r1(),mr=BY()});var wX=S((MY)=>{function ar(G){return!!(G&&cr.VISITOR_KEYS[G.type])}Object.defineProperty(MY,"__esModule",{value:!0});MY.default=ar;var cr=w2()});var FY=S((qY)=>{function ur(G){if(!ir.default(G)){var J;const X=(J=G==null?void 0:G.type)!=null?J:JSON.stringify(G);throw new TypeError(`Not a valid node of type "${X}"`)}}Object.defineProperty(qY,"__esModule",{value:!0});qY.default=ur;var ir=wX()});var DY=S((jY)=>{function $(G,J,X){if(!sr.default(G,J,X))throw new Error(`Expected type "${G}" with option ${JSON.stringify(X)}, but instead got "${J.type}".`)}function pr(G,J){$("ArrayExpression",G,J)}function nr(G,J){$("AssignmentExpression",G,J)}function or(G,J){$("BinaryExpression",G,J)}function er(G,J){$("InterpreterDirective",G,J)}function tr(G,J){$("Directive",G,J)}function Gi(G,J){$("DirectiveLiteral",G,J)}function Ji(G,J){$("BlockStatement",G,J)}function Xi(G,J){$("BreakStatement",G,J)}function Hi(G,J){$("CallExpression",G,J)}function Zi(G,J){$("CatchClause",G,J)}function Vi(G,J){$("ConditionalExpression",G,J)}function Qi(G,J){$("ContinueStatement",G,J)}function Yi(G,J){$("DebuggerStatement",G,J)}function Wi(G,J){$("DoWhileStatement",G,J)}function zi(G,J){$("EmptyStatement",G,J)}function Ui(G,J){$("ExpressionStatement",G,J)}function Ki(G,J){$("File",G,J)}function Bi(G,J){$("ForInStatement",G,J)}function $i(G,J){$("ForStatement",G,J)}function Ri(G,J){$("FunctionDeclaration",G,J)}function Mi(G,J){$("FunctionExpression",G,J)}function qi(G,J){$("Identifier",G,J)}function Fi(G,J){$("IfStatement",G,J)}function ji(G,J){$("LabeledStatement",G,J)}function Di(G,J){$("StringLiteral",G,J)}function Ii(G,J){$("NumericLiteral",G,J)}function Ai(G,J){$("NullLiteral",G,J)}function Ci(G,J){$("BooleanLiteral",G,J)}function fi(G,J){$("RegExpLiteral",G,J)}function Si(G,J){$("LogicalExpression",G,J)}function Pi(G,J){$("MemberExpression",G,J)}function Li(G,J){$("NewExpression",G,J)}function Ti(G,J){$("Program",G,J)}function wi(G,J){$("ObjectExpression",G,J)}function Ni(G,J){$("ObjectMethod",G,J)}function ki(G,J){$("ObjectProperty",G,J)}function Ei(G,J){$("RestElement",G,J)}function Oi(G,J){$("ReturnStatement",G,J)}function vi(G,J){$("SequenceExpression",G,J)}function _i(G,J){$("ParenthesizedExpression",G,J)}function gi(G,J){$("SwitchCase",G,J)}function bi(G,J){$("SwitchStatement",G,J)}function hi(G,J){$("ThisExpression",G,J)}function yi(G,J){$("ThrowStatement",G,J)}function mi(G,J){$("TryStatement",G,J)}function xi(G,J){$("UnaryExpression",G,J)}function li(G,J){$("UpdateExpression",G,J)}function ci(G,J){$("VariableDeclaration",G,J)}function ai(G,J){$("VariableDeclarator",G,J)}function ri(G,J){$("WhileStatement",G,J)}function ii(G,J){$("WithStatement",G,J)}function ui(G,J){$("AssignmentPattern",G,J)}function di(G,J){$("ArrayPattern",G,J)}function si(G,J){$("ArrowFunctionExpression",G,J)}function pi(G,J){$("ClassBody",G,J)}function ni(G,J){$("ClassExpression",G,J)}function oi(G,J){$("ClassDeclaration",G,J)}function ei(G,J){$("ExportAllDeclaration",G,J)}function ti(G,J){$("ExportDefaultDeclaration",G,J)}function Gu(G,J){$("ExportNamedDeclaration",G,J)}function Ju(G,J){$("ExportSpecifier",G,J)}function Xu(G,J){$("ForOfStatement",G,J)}function Hu(G,J){$("ImportDeclaration",G,J)}function Zu(G,J){$("ImportDefaultSpecifier",G,J)}function Vu(G,J){$("ImportNamespaceSpecifier",G,J)}function Qu(G,J){$("ImportSpecifier",G,J)}function Yu(G,J){$("ImportExpression",G,J)}function Wu(G,J){$("MetaProperty",G,J)}function zu(G,J){$("ClassMethod",G,J)}function Uu(G,J){$("ObjectPattern",G,J)}function Ku(G,J){$("SpreadElement",G,J)}function Bu(G,J){$("Super",G,J)}function $u(G,J){$("TaggedTemplateExpression",G,J)}function Ru(G,J){$("TemplateElement",G,J)}function Mu(G,J){$("TemplateLiteral",G,J)}function qu(G,J){$("YieldExpression",G,J)}function Fu(G,J){$("AwaitExpression",G,J)}function ju(G,J){$("Import",G,J)}function Du(G,J){$("BigIntLiteral",G,J)}function Iu(G,J){$("ExportNamespaceSpecifier",G,J)}function Au(G,J){$("OptionalMemberExpression",G,J)}function Cu(G,J){$("OptionalCallExpression",G,J)}function fu(G,J){$("ClassProperty",G,J)}function Su(G,J){$("ClassAccessorProperty",G,J)}function Pu(G,J){$("ClassPrivateProperty",G,J)}function Lu(G,J){$("ClassPrivateMethod",G,J)}function Tu(G,J){$("PrivateName",G,J)}function wu(G,J){$("StaticBlock",G,J)}function Nu(G,J){$("AnyTypeAnnotation",G,J)}function ku(G,J){$("ArrayTypeAnnotation",G,J)}function Eu(G,J){$("BooleanTypeAnnotation",G,J)}function Ou(G,J){$("BooleanLiteralTypeAnnotation",G,J)}function vu(G,J){$("NullLiteralTypeAnnotation",G,J)}function _u(G,J){$("ClassImplements",G,J)}function gu(G,J){$("DeclareClass",G,J)}function bu(G,J){$("DeclareFunction",G,J)}function hu(G,J){$("DeclareInterface",G,J)}function yu(G,J){$("DeclareModule",G,J)}function mu(G,J){$("DeclareModuleExports",G,J)}function xu(G,J){$("DeclareTypeAlias",G,J)}function lu(G,J){$("DeclareOpaqueType",G,J)}function cu(G,J){$("DeclareVariable",G,J)}function au(G,J){$("DeclareExportDeclaration",G,J)}function ru(G,J){$("DeclareExportAllDeclaration",G,J)}function iu(G,J){$("DeclaredPredicate",G,J)}function uu(G,J){$("ExistsTypeAnnotation",G,J)}function du(G,J){$("FunctionTypeAnnotation",G,J)}function su(G,J){$("FunctionTypeParam",G,J)}function pu(G,J){$("GenericTypeAnnotation",G,J)}function nu(G,J){$("InferredPredicate",G,J)}function ou(G,J){$("InterfaceExtends",G,J)}function eu(G,J){$("InterfaceDeclaration",G,J)}function tu(G,J){$("InterfaceTypeAnnotation",G,J)}function Gd(G,J){$("IntersectionTypeAnnotation",G,J)}function Jd(G,J){$("MixedTypeAnnotation",G,J)}function Xd(G,J){$("EmptyTypeAnnotation",G,J)}function Hd(G,J){$("NullableTypeAnnotation",G,J)}function Zd(G,J){$("NumberLiteralTypeAnnotation",G,J)}function Vd(G,J){$("NumberTypeAnnotation",G,J)}function Qd(G,J){$("ObjectTypeAnnotation",G,J)}function Yd(G,J){$("ObjectTypeInternalSlot",G,J)}function Wd(G,J){$("ObjectTypeCallProperty",G,J)}function zd(G,J){$("ObjectTypeIndexer",G,J)}function Ud(G,J){$("ObjectTypeProperty",G,J)}function Kd(G,J){$("ObjectTypeSpreadProperty",G,J)}function Bd(G,J){$("OpaqueType",G,J)}function $d(G,J){$("QualifiedTypeIdentifier",G,J)}function Rd(G,J){$("StringLiteralTypeAnnotation",G,J)}function Md(G,J){$("StringTypeAnnotation",G,J)}function qd(G,J){$("SymbolTypeAnnotation",G,J)}function Fd(G,J){$("ThisTypeAnnotation",G,J)}function jd(G,J){$("TupleTypeAnnotation",G,J)}function Dd(G,J){$("TypeofTypeAnnotation",G,J)}function Id(G,J){$("TypeAlias",G,J)}function Ad(G,J){$("TypeAnnotation",G,J)}function Cd(G,J){$("TypeCastExpression",G,J)}function fd(G,J){$("TypeParameter",G,J)}function Sd(G,J){$("TypeParameterDeclaration",G,J)}function Pd(G,J){$("TypeParameterInstantiation",G,J)}function Ld(G,J){$("UnionTypeAnnotation",G,J)}function Td(G,J){$("Variance",G,J)}function wd(G,J){$("VoidTypeAnnotation",G,J)}function Nd(G,J){$("EnumDeclaration",G,J)}function kd(G,J){$("EnumBooleanBody",G,J)}function Ed(G,J){$("EnumNumberBody",G,J)}function Od(G,J){$("EnumStringBody",G,J)}function vd(G,J){$("EnumSymbolBody",G,J)}function _d(G,J){$("EnumBooleanMember",G,J)}function gd(G,J){$("EnumNumberMember",G,J)}function bd(G,J){$("EnumStringMember",G,J)}function hd(G,J){$("EnumDefaultedMember",G,J)}function yd(G,J){$("IndexedAccessType",G,J)}function md(G,J){$("OptionalIndexedAccessType",G,J)}function xd(G,J){$("JSXAttribute",G,J)}function ld(G,J){$("JSXClosingElement",G,J)}function cd(G,J){$("JSXElement",G,J)}function ad(G,J){$("JSXEmptyExpression",G,J)}function rd(G,J){$("JSXExpressionContainer",G,J)}function id(G,J){$("JSXSpreadChild",G,J)}function ud(G,J){$("JSXIdentifier",G,J)}function dd(G,J){$("JSXMemberExpression",G,J)}function sd(G,J){$("JSXNamespacedName",G,J)}function pd(G,J){$("JSXOpeningElement",G,J)}function nd(G,J){$("JSXSpreadAttribute",G,J)}function od(G,J){$("JSXText",G,J)}function ed(G,J){$("JSXFragment",G,J)}function td(G,J){$("JSXOpeningFragment",G,J)}function Gs(G,J){$("JSXClosingFragment",G,J)}function Js(G,J){$("Noop",G,J)}function Xs(G,J){$("Placeholder",G,J)}function Hs(G,J){$("V8IntrinsicIdentifier",G,J)}function Zs(G,J){$("ArgumentPlaceholder",G,J)}function Vs(G,J){$("BindExpression",G,J)}function Qs(G,J){$("ImportAttribute",G,J)}function Ys(G,J){$("Decorator",G,J)}function Ws(G,J){$("DoExpression",G,J)}function zs(G,J){$("ExportDefaultSpecifier",G,J)}function Us(G,J){$("RecordExpression",G,J)}function Ks(G,J){$("TupleExpression",G,J)}function Bs(G,J){$("DecimalLiteral",G,J)}function $s(G,J){$("ModuleExpression",G,J)}function Rs(G,J){$("TopicReference",G,J)}function Ms(G,J){$("PipelineTopicExpression",G,J)}function qs(G,J){$("PipelineBareFunction",G,J)}function Fs(G,J){$("PipelinePrimaryTopicReference",G,J)}function js(G,J){$("TSParameterProperty",G,J)}function Ds(G,J){$("TSDeclareFunction",G,J)}function Is(G,J){$("TSDeclareMethod",G,J)}function As(G,J){$("TSQualifiedName",G,J)}function Cs(G,J){$("TSCallSignatureDeclaration",G,J)}function fs(G,J){$("TSConstructSignatureDeclaration",G,J)}function Ss(G,J){$("TSPropertySignature",G,J)}function Ps(G,J){$("TSMethodSignature",G,J)}function Ls(G,J){$("TSIndexSignature",G,J)}function Ts(G,J){$("TSAnyKeyword",G,J)}function ws(G,J){$("TSBooleanKeyword",G,J)}function Ns(G,J){$("TSBigIntKeyword",G,J)}function ks(G,J){$("TSIntrinsicKeyword",G,J)}function Es(G,J){$("TSNeverKeyword",G,J)}function Os(G,J){$("TSNullKeyword",G,J)}function vs(G,J){$("TSNumberKeyword",G,J)}function _s(G,J){$("TSObjectKeyword",G,J)}function gs(G,J){$("TSStringKeyword",G,J)}function bs(G,J){$("TSSymbolKeyword",G,J)}function hs(G,J){$("TSUndefinedKeyword",G,J)}function ys(G,J){$("TSUnknownKeyword",G,J)}function ms(G,J){$("TSVoidKeyword",G,J)}function xs(G,J){$("TSThisType",G,J)}function ls(G,J){$("TSFunctionType",G,J)}function cs(G,J){$("TSConstructorType",G,J)}function as(G,J){$("TSTypeReference",G,J)}function rs(G,J){$("TSTypePredicate",G,J)}function is(G,J){$("TSTypeQuery",G,J)}function us(G,J){$("TSTypeLiteral",G,J)}function ds(G,J){$("TSArrayType",G,J)}function ss(G,J){$("TSTupleType",G,J)}function ps(G,J){$("TSOptionalType",G,J)}function ns(G,J){$("TSRestType",G,J)}function os(G,J){$("TSNamedTupleMember",G,J)}function es(G,J){$("TSUnionType",G,J)}function ts(G,J){$("TSIntersectionType",G,J)}function Gp(G,J){$("TSConditionalType",G,J)}function Jp(G,J){$("TSInferType",G,J)}function Xp(G,J){$("TSParenthesizedType",G,J)}function Hp(G,J){$("TSTypeOperator",G,J)}function Zp(G,J){$("TSIndexedAccessType",G,J)}function Vp(G,J){$("TSMappedType",G,J)}function Qp(G,J){$("TSLiteralType",G,J)}function Yp(G,J){$("TSExpressionWithTypeArguments",G,J)}function Wp(G,J){$("TSInterfaceDeclaration",G,J)}function zp(G,J){$("TSInterfaceBody",G,J)}function Up(G,J){$("TSTypeAliasDeclaration",G,J)}function Kp(G,J){$("TSInstantiationExpression",G,J)}function Bp(G,J){$("TSAsExpression",G,J)}function $p(G,J){$("TSSatisfiesExpression",G,J)}function Rp(G,J){$("TSTypeAssertion",G,J)}function Mp(G,J){$("TSEnumDeclaration",G,J)}function qp(G,J){$("TSEnumMember",G,J)}function Fp(G,J){$("TSModuleDeclaration",G,J)}function jp(G,J){$("TSModuleBlock",G,J)}function Dp(G,J){$("TSImportType",G,J)}function Ip(G,J){$("TSImportEqualsDeclaration",G,J)}function Ap(G,J){$("TSExternalModuleReference",G,J)}function Cp(G,J){$("TSNonNullExpression",G,J)}function fp(G,J){$("TSExportAssignment",G,J)}function Sp(G,J){$("TSNamespaceExportDeclaration",G,J)}function Pp(G,J){$("TSTypeAnnotation",G,J)}function Lp(G,J){$("TSTypeParameterInstantiation",G,J)}function Tp(G,J){$("TSTypeParameterDeclaration",G,J)}function wp(G,J){$("TSTypeParameter",G,J)}function Np(G,J){$("Standardized",G,J)}function kp(G,J){$("Expression",G,J)}function Ep(G,J){$("Binary",G,J)}function Op(G,J){$("Scopable",G,J)}function vp(G,J){$("BlockParent",G,J)}function _p(G,J){$("Block",G,J)}function gp(G,J){$("Statement",G,J)}function bp(G,J){$("Terminatorless",G,J)}function hp(G,J){$("CompletionStatement",G,J)}function yp(G,J){$("Conditional",G,J)}function mp(G,J){$("Loop",G,J)}function xp(G,J){$("While",G,J)}function lp(G,J){$("ExpressionWrapper",G,J)}function cp(G,J){$("For",G,J)}function ap(G,J){$("ForXStatement",G,J)}function rp(G,J){$("Function",G,J)}function ip(G,J){$("FunctionParent",G,J)}function up(G,J){$("Pureish",G,J)}function dp(G,J){$("Declaration",G,J)}function sp(G,J){$("PatternLike",G,J)}function pp(G,J){$("LVal",G,J)}function np(G,J){$("TSEntityName",G,J)}function op(G,J){$("Literal",G,J)}function ep(G,J){$("Immutable",G,J)}function tp(G,J){$("UserWhitespacable",G,J)}function Gn(G,J){$("Method",G,J)}function Jn(G,J){$("ObjectMember",G,J)}function Xn(G,J){$("Property",G,J)}function Hn(G,J){$("UnaryLike",G,J)}function Zn(G,J){$("Pattern",G,J)}function Vn(G,J){$("Class",G,J)}function Qn(G,J){$("ImportOrExportDeclaration",G,J)}function Yn(G,J){$("ExportDeclaration",G,J)}function Wn(G,J){$("ModuleSpecifier",G,J)}function zn(G,J){$("Accessor",G,J)}function Un(G,J){$("Private",G,J)}function Kn(G,J){$("Flow",G,J)}function Bn(G,J){$("FlowType",G,J)}function $n(G,J){$("FlowBaseAnnotation",G,J)}function Rn(G,J){$("FlowDeclaration",G,J)}function Mn(G,J){$("FlowPredicate",G,J)}function qn(G,J){$("EnumBody",G,J)}function Fn(G,J){$("EnumMember",G,J)}function jn(G,J){$("JSX",G,J)}function Dn(G,J){$("Miscellaneous",G,J)}function In(G,J){$("TypeScript",G,J)}function An(G,J){$("TSTypeElement",G,J)}function Cn(G,J){$("TSType",G,J)}function fn(G,J){$("TSBaseType",G,J)}function Sn(G,J){A9.default("assertNumberLiteral","assertNumericLiteral"),$("NumberLiteral",G,J)}function Pn(G,J){A9.default("assertRegexLiteral","assertRegExpLiteral"),$("RegexLiteral",G,J)}function Ln(G,J){A9.default("assertRestProperty","assertRestElement"),$("RestProperty",G,J)}function Tn(G,J){A9.default("assertSpreadProperty","assertSpreadElement"),$("SpreadProperty",G,J)}function wn(G,J){A9.default("assertModuleDeclaration","assertImportOrExportDeclaration"),$("ModuleDeclaration",G,J)}Object.defineProperty(jY,"__esModule",{value:!0});jY.assertAccessor=zn;jY.assertAnyTypeAnnotation=Nu;jY.assertArgumentPlaceholder=Zs;jY.assertArrayExpression=pr;jY.assertArrayPattern=di;jY.assertArrayTypeAnnotation=ku;jY.assertArrowFunctionExpression=si;jY.assertAssignmentExpression=nr;jY.assertAssignmentPattern=ui;jY.assertAwaitExpression=Fu;jY.assertBigIntLiteral=Du;jY.assertBinary=Ep;jY.assertBinaryExpression=or;jY.assertBindExpression=Vs;jY.assertBlock=_p;jY.assertBlockParent=vp;jY.assertBlockStatement=Ji;jY.assertBooleanLiteral=Ci;jY.assertBooleanLiteralTypeAnnotation=Ou;jY.assertBooleanTypeAnnotation=Eu;jY.assertBreakStatement=Xi;jY.assertCallExpression=Hi;jY.assertCatchClause=Zi;jY.assertClass=Vn;jY.assertClassAccessorProperty=Su;jY.assertClassBody=pi;jY.assertClassDeclaration=oi;jY.assertClassExpression=ni;jY.assertClassImplements=_u;jY.assertClassMethod=zu;jY.assertClassPrivateMethod=Lu;jY.assertClassPrivateProperty=Pu;jY.assertClassProperty=fu;jY.assertCompletionStatement=hp;jY.assertConditional=yp;jY.assertConditionalExpression=Vi;jY.assertContinueStatement=Qi;jY.assertDebuggerStatement=Yi;jY.assertDecimalLiteral=Bs;jY.assertDeclaration=dp;jY.assertDeclareClass=gu;jY.assertDeclareExportAllDeclaration=ru;jY.assertDeclareExportDeclaration=au;jY.assertDeclareFunction=bu;jY.assertDeclareInterface=hu;jY.assertDeclareModule=yu;jY.assertDeclareModuleExports=mu;jY.assertDeclareOpaqueType=lu;jY.assertDeclareTypeAlias=xu;jY.assertDeclareVariable=cu;jY.assertDeclaredPredicate=iu;jY.assertDecorator=Ys;jY.assertDirective=tr;jY.assertDirectiveLiteral=Gi;jY.assertDoExpression=Ws;jY.assertDoWhileStatement=Wi;jY.assertEmptyStatement=zi;jY.assertEmptyTypeAnnotation=Xd;jY.assertEnumBody=qn;jY.assertEnumBooleanBody=kd;jY.assertEnumBooleanMember=_d;jY.assertEnumDeclaration=Nd;jY.assertEnumDefaultedMember=hd;jY.assertEnumMember=Fn;jY.assertEnumNumberBody=Ed;jY.assertEnumNumberMember=gd;jY.assertEnumStringBody=Od;jY.assertEnumStringMember=bd;jY.assertEnumSymbolBody=vd;jY.assertExistsTypeAnnotation=uu;jY.assertExportAllDeclaration=ei;jY.assertExportDeclaration=Yn;jY.assertExportDefaultDeclaration=ti;jY.assertExportDefaultSpecifier=zs;jY.assertExportNamedDeclaration=Gu;jY.assertExportNamespaceSpecifier=Iu;jY.assertExportSpecifier=Ju;jY.assertExpression=kp;jY.assertExpressionStatement=Ui;jY.assertExpressionWrapper=lp;jY.assertFile=Ki;jY.assertFlow=Kn;jY.assertFlowBaseAnnotation=$n;jY.assertFlowDeclaration=Rn;jY.assertFlowPredicate=Mn;jY.assertFlowType=Bn;jY.assertFor=cp;jY.assertForInStatement=Bi;jY.assertForOfStatement=Xu;jY.assertForStatement=$i;jY.assertForXStatement=ap;jY.assertFunction=rp;jY.assertFunctionDeclaration=Ri;jY.assertFunctionExpression=Mi;jY.assertFunctionParent=ip;jY.assertFunctionTypeAnnotation=du;jY.assertFunctionTypeParam=su;jY.assertGenericTypeAnnotation=pu;jY.assertIdentifier=qi;jY.assertIfStatement=Fi;jY.assertImmutable=ep;jY.assertImport=ju;jY.assertImportAttribute=Qs;jY.assertImportDeclaration=Hu;jY.assertImportDefaultSpecifier=Zu;jY.assertImportExpression=Yu;jY.assertImportNamespaceSpecifier=Vu;jY.assertImportOrExportDeclaration=Qn;jY.assertImportSpecifier=Qu;jY.assertIndexedAccessType=yd;jY.assertInferredPredicate=nu;jY.assertInterfaceDeclaration=eu;jY.assertInterfaceExtends=ou;jY.assertInterfaceTypeAnnotation=tu;jY.assertInterpreterDirective=er;jY.assertIntersectionTypeAnnotation=Gd;jY.assertJSX=jn;jY.assertJSXAttribute=xd;jY.assertJSXClosingElement=ld;jY.assertJSXClosingFragment=Gs;jY.assertJSXElement=cd;jY.assertJSXEmptyExpression=ad;jY.assertJSXExpressionContainer=rd;jY.assertJSXFragment=ed;jY.assertJSXIdentifier=ud;jY.assertJSXMemberExpression=dd;jY.assertJSXNamespacedName=sd;jY.assertJSXOpeningElement=pd;jY.assertJSXOpeningFragment=td;jY.assertJSXSpreadAttribute=nd;jY.assertJSXSpreadChild=id;jY.assertJSXText=od;jY.assertLVal=pp;jY.assertLabeledStatement=ji;jY.assertLiteral=op;jY.assertLogicalExpression=Si;jY.assertLoop=mp;jY.assertMemberExpression=Pi;jY.assertMetaProperty=Wu;jY.assertMethod=Gn;jY.assertMiscellaneous=Dn;jY.assertMixedTypeAnnotation=Jd;jY.assertModuleDeclaration=wn;jY.assertModuleExpression=$s;jY.assertModuleSpecifier=Wn;jY.assertNewExpression=Li;jY.assertNoop=Js;jY.assertNullLiteral=Ai;jY.assertNullLiteralTypeAnnotation=vu;jY.assertNullableTypeAnnotation=Hd;jY.assertNumberLiteral=Sn;jY.assertNumberLiteralTypeAnnotation=Zd;jY.assertNumberTypeAnnotation=Vd;jY.assertNumericLiteral=Ii;jY.assertObjectExpression=wi;jY.assertObjectMember=Jn;jY.assertObjectMethod=Ni;jY.assertObjectPattern=Uu;jY.assertObjectProperty=ki;jY.assertObjectTypeAnnotation=Qd;jY.assertObjectTypeCallProperty=Wd;jY.assertObjectTypeIndexer=zd;jY.assertObjectTypeInternalSlot=Yd;jY.assertObjectTypeProperty=Ud;jY.assertObjectTypeSpreadProperty=Kd;jY.assertOpaqueType=Bd;jY.assertOptionalCallExpression=Cu;jY.assertOptionalIndexedAccessType=md;jY.assertOptionalMemberExpression=Au;jY.assertParenthesizedExpression=_i;jY.assertPattern=Zn;jY.assertPatternLike=sp;jY.assertPipelineBareFunction=qs;jY.assertPipelinePrimaryTopicReference=Fs;jY.assertPipelineTopicExpression=Ms;jY.assertPlaceholder=Xs;jY.assertPrivate=Un;jY.assertPrivateName=Tu;jY.assertProgram=Ti;jY.assertProperty=Xn;jY.assertPureish=up;jY.assertQualifiedTypeIdentifier=$d;jY.assertRecordExpression=Us;jY.assertRegExpLiteral=fi;jY.assertRegexLiteral=Pn;jY.assertRestElement=Ei;jY.assertRestProperty=Ln;jY.assertReturnStatement=Oi;jY.assertScopable=Op;jY.assertSequenceExpression=vi;jY.assertSpreadElement=Ku;jY.assertSpreadProperty=Tn;jY.assertStandardized=Np;jY.assertStatement=gp;jY.assertStaticBlock=wu;jY.assertStringLiteral=Di;jY.assertStringLiteralTypeAnnotation=Rd;jY.assertStringTypeAnnotation=Md;jY.assertSuper=Bu;jY.assertSwitchCase=gi;jY.assertSwitchStatement=bi;jY.assertSymbolTypeAnnotation=qd;jY.assertTSAnyKeyword=Ts;jY.assertTSArrayType=ds;jY.assertTSAsExpression=Bp;jY.assertTSBaseType=fn;jY.assertTSBigIntKeyword=Ns;jY.assertTSBooleanKeyword=ws;jY.assertTSCallSignatureDeclaration=Cs;jY.assertTSConditionalType=Gp;jY.assertTSConstructSignatureDeclaration=fs;jY.assertTSConstructorType=cs;jY.assertTSDeclareFunction=Ds;jY.assertTSDeclareMethod=Is;jY.assertTSEntityName=np;jY.assertTSEnumDeclaration=Mp;jY.assertTSEnumMember=qp;jY.assertTSExportAssignment=fp;jY.assertTSExpressionWithTypeArguments=Yp;jY.assertTSExternalModuleReference=Ap;jY.assertTSFunctionType=ls;jY.assertTSImportEqualsDeclaration=Ip;jY.assertTSImportType=Dp;jY.assertTSIndexSignature=Ls;jY.assertTSIndexedAccessType=Zp;jY.assertTSInferType=Jp;jY.assertTSInstantiationExpression=Kp;jY.assertTSInterfaceBody=zp;jY.assertTSInterfaceDeclaration=Wp;jY.assertTSIntersectionType=ts;jY.assertTSIntrinsicKeyword=ks;jY.assertTSLiteralType=Qp;jY.assertTSMappedType=Vp;jY.assertTSMethodSignature=Ps;jY.assertTSModuleBlock=jp;jY.assertTSModuleDeclaration=Fp;jY.assertTSNamedTupleMember=os;jY.assertTSNamespaceExportDeclaration=Sp;jY.assertTSNeverKeyword=Es;jY.assertTSNonNullExpression=Cp;jY.assertTSNullKeyword=Os;jY.assertTSNumberKeyword=vs;jY.assertTSObjectKeyword=_s;jY.assertTSOptionalType=ps;jY.assertTSParameterProperty=js;jY.assertTSParenthesizedType=Xp;jY.assertTSPropertySignature=Ss;jY.assertTSQualifiedName=As;jY.assertTSRestType=ns;jY.assertTSSatisfiesExpression=$p;jY.assertTSStringKeyword=gs;jY.assertTSSymbolKeyword=bs;jY.assertTSThisType=xs;jY.assertTSTupleType=ss;jY.assertTSType=Cn;jY.assertTSTypeAliasDeclaration=Up;jY.assertTSTypeAnnotation=Pp;jY.assertTSTypeAssertion=Rp;jY.assertTSTypeElement=An;jY.assertTSTypeLiteral=us;jY.assertTSTypeOperator=Hp;jY.assertTSTypeParameter=wp;jY.assertTSTypeParameterDeclaration=Tp;jY.assertTSTypeParameterInstantiation=Lp;jY.assertTSTypePredicate=rs;jY.assertTSTypeQuery=is;jY.assertTSTypeReference=as;jY.assertTSUndefinedKeyword=hs;jY.assertTSUnionType=es;jY.assertTSUnknownKeyword=ys;jY.assertTSVoidKeyword=ms;jY.assertTaggedTemplateExpression=$u;jY.assertTemplateElement=Ru;jY.assertTemplateLiteral=Mu;jY.assertTerminatorless=bp;jY.assertThisExpression=hi;jY.assertThisTypeAnnotation=Fd;jY.assertThrowStatement=yi;jY.assertTopicReference=Rs;jY.assertTryStatement=mi;jY.assertTupleExpression=Ks;jY.assertTupleTypeAnnotation=jd;jY.assertTypeAlias=Id;jY.assertTypeAnnotation=Ad;jY.assertTypeCastExpression=Cd;jY.assertTypeParameter=fd;jY.assertTypeParameterDeclaration=Sd;jY.assertTypeParameterInstantiation=Pd;jY.assertTypeScript=In;jY.assertTypeofTypeAnnotation=Dd;jY.assertUnaryExpression=xi;jY.assertUnaryLike=Hn;jY.assertUnionTypeAnnotation=Ld;jY.assertUpdateExpression=li;jY.assertUserWhitespacable=tp;jY.assertV8IntrinsicIdentifier=Hs;jY.assertVariableDeclaration=ci;jY.assertVariableDeclarator=ai;jY.assertVariance=Td;jY.assertVoidTypeAnnotation=wd;jY.assertWhile=xp;jY.assertWhileStatement=ri;jY.assertWithStatement=ii;jY.assertYieldExpression=qu;var sr=N5(),A9=K9()});var CY=S((IY)=>{function K01(G){switch(G){case"string":return m2.stringTypeAnnotation();case"number":return m2.numberTypeAnnotation();case"undefined":return m2.voidTypeAnnotation();case"boolean":return m2.booleanTypeAnnotation();case"function":return m2.genericTypeAnnotation(m2.identifier("Function"));case"object":return m2.genericTypeAnnotation(m2.identifier("Object"));case"symbol":return m2.genericTypeAnnotation(m2.identifier("Symbol"));case"bigint":return m2.anyTypeAnnotation()}throw new Error("Invalid typeof value: "+G)}Object.defineProperty(IY,"__esModule",{value:!0});IY.default=void 0;var m2=z2(),vE1=IY.default=K01});var NX=S((PY)=>{function fY(G){return C9.isIdentifier(G)?G.name:`${G.id.name}.${fY(G.qualification)}`}function SY(G){const J=Array.from(G),X=new Map,H=new Map,Z=new Set,V=[];for(let Q=0;Q<J.length;Q++){const Y=J[Q];if(!Y)continue;if(V.includes(Y))continue;if(C9.isAnyTypeAnnotation(Y))return[Y];if(C9.isFlowBaseAnnotation(Y)){H.set(Y.type,Y);continue}if(C9.isUnionTypeAnnotation(Y)){if(!Z.has(Y.types))J.push(...Y.types),Z.add(Y.types);continue}if(C9.isGenericTypeAnnotation(Y)){const W=fY(Y.id);if(X.has(W)){let z=X.get(W);if(z.typeParameters){if(Y.typeParameters)z.typeParameters.params.push(...Y.typeParameters.params),z.typeParameters.params=SY(z.typeParameters.params)}else z=Y.typeParameters}else X.set(W,Y);continue}V.push(Y)}for(let[,Q]of H)V.push(Q);for(let[,Q]of X)V.push(Q);return V}Object.defineProperty(PY,"__esModule",{value:!0});PY.default=SY;var C9=r1()});var TY=S((LY)=>{function M01(G){const J=R01.default(G);if(J.length===1)return J[0];else return $01.unionTypeAnnotation(J)}Object.defineProperty(LY,"__esModule",{value:!0});LY.default=M01;var $01=z2(),R01=NX()});var EY=S((kY)=>{function wY(G){return f9.isIdentifier(G)?G.name:`${G.right.name}.${wY(G.left)}`}function NY(G){const J=Array.from(G),X=new Map,H=new Map,Z=new Set,V=[];for(let Q=0;Q<J.length;Q++){const Y=J[Q];if(!Y)continue;if(V.includes(Y))continue;if(f9.isTSAnyKeyword(Y))return[Y];if(f9.isTSBaseType(Y)){H.set(Y.type,Y);continue}if(f9.isTSUnionType(Y)){if(!Z.has(Y.types))J.push(...Y.types),Z.add(Y.types);continue}if(f9.isTSTypeReference(Y)&&Y.typeParameters){const W=wY(Y.typeName);if(X.has(W)){let z=X.get(W);if(z.typeParameters){if(Y.typeParameters)z.typeParameters.params.push(...Y.typeParameters.params),z.typeParameters.params=NY(z.typeParameters.params)}else z=Y.typeParameters}else X.set(W,Y);continue}V.push(Y)}for(let[,Q]of H)V.push(Q);for(let[,Q]of X)V.push(Q);return V}Object.defineProperty(kY,"__esModule",{value:!0});kY.default=NY;var f9=r1()});var vY=S((OY)=>{function A01(G){const J=G.map((H)=>{return I01.isTSTypeAnnotation(H)?H.typeAnnotation:H}),X=D01.default(J);if(X.length===1)return X[0];else return j01.tsUnionType(X)}Object.defineProperty(OY,"__esModule",{value:!0});OY.default=A01;var j01=z2(),D01=EY(),I01=r1()});var _Y=S((D)=>{Object.defineProperty(D,"__esModule",{value:!0});Object.defineProperty(D,"AnyTypeAnnotation",{enumerable:!0,get:function(){return I.anyTypeAnnotation}});Object.defineProperty(D,"ArgumentPlaceholder",{enumerable:!0,get:function(){return I.argumentPlaceholder}});Object.defineProperty(D,"ArrayExpression",{enumerable:!0,get:function(){return I.arrayExpression}});Object.defineProperty(D,"ArrayPattern",{enumerable:!0,get:function(){return I.arrayPattern}});Object.defineProperty(D,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return I.arrayTypeAnnotation}});Object.defineProperty(D,"ArrowFunctionExpression",{enumerable:!0,get:function(){return I.arrowFunctionExpression}});Object.defineProperty(D,"AssignmentExpression",{enumerable:!0,get:function(){return I.assignmentExpression}});Object.defineProperty(D,"AssignmentPattern",{enumerable:!0,get:function(){return I.assignmentPattern}});Object.defineProperty(D,"AwaitExpression",{enumerable:!0,get:function(){return I.awaitExpression}});Object.defineProperty(D,"BigIntLiteral",{enumerable:!0,get:function(){return I.bigIntLiteral}});Object.defineProperty(D,"BinaryExpression",{enumerable:!0,get:function(){return I.binaryExpression}});Object.defineProperty(D,"BindExpression",{enumerable:!0,get:function(){return I.bindExpression}});Object.defineProperty(D,"BlockStatement",{enumerable:!0,get:function(){return I.blockStatement}});Object.defineProperty(D,"BooleanLiteral",{enumerable:!0,get:function(){return I.booleanLiteral}});Object.defineProperty(D,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.booleanLiteralTypeAnnotation}});Object.defineProperty(D,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return I.booleanTypeAnnotation}});Object.defineProperty(D,"BreakStatement",{enumerable:!0,get:function(){return I.breakStatement}});Object.defineProperty(D,"CallExpression",{enumerable:!0,get:function(){return I.callExpression}});Object.defineProperty(D,"CatchClause",{enumerable:!0,get:function(){return I.catchClause}});Object.defineProperty(D,"ClassAccessorProperty",{enumerable:!0,get:function(){return I.classAccessorProperty}});Object.defineProperty(D,"ClassBody",{enumerable:!0,get:function(){return I.classBody}});Object.defineProperty(D,"ClassDeclaration",{enumerable:!0,get:function(){return I.classDeclaration}});Object.defineProperty(D,"ClassExpression",{enumerable:!0,get:function(){return I.classExpression}});Object.defineProperty(D,"ClassImplements",{enumerable:!0,get:function(){return I.classImplements}});Object.defineProperty(D,"ClassMethod",{enumerable:!0,get:function(){return I.classMethod}});Object.defineProperty(D,"ClassPrivateMethod",{enumerable:!0,get:function(){return I.classPrivateMethod}});Object.defineProperty(D,"ClassPrivateProperty",{enumerable:!0,get:function(){return I.classPrivateProperty}});Object.defineProperty(D,"ClassProperty",{enumerable:!0,get:function(){return I.classProperty}});Object.defineProperty(D,"ConditionalExpression",{enumerable:!0,get:function(){return I.conditionalExpression}});Object.defineProperty(D,"ContinueStatement",{enumerable:!0,get:function(){return I.continueStatement}});Object.defineProperty(D,"DebuggerStatement",{enumerable:!0,get:function(){return I.debuggerStatement}});Object.defineProperty(D,"DecimalLiteral",{enumerable:!0,get:function(){return I.decimalLiteral}});Object.defineProperty(D,"DeclareClass",{enumerable:!0,get:function(){return I.declareClass}});Object.defineProperty(D,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return I.declareExportAllDeclaration}});Object.defineProperty(D,"DeclareExportDeclaration",{enumerable:!0,get:function(){return I.declareExportDeclaration}});Object.defineProperty(D,"DeclareFunction",{enumerable:!0,get:function(){return I.declareFunction}});Object.defineProperty(D,"DeclareInterface",{enumerable:!0,get:function(){return I.declareInterface}});Object.defineProperty(D,"DeclareModule",{enumerable:!0,get:function(){return I.declareModule}});Object.defineProperty(D,"DeclareModuleExports",{enumerable:!0,get:function(){return I.declareModuleExports}});Object.defineProperty(D,"DeclareOpaqueType",{enumerable:!0,get:function(){return I.declareOpaqueType}});Object.defineProperty(D,"DeclareTypeAlias",{enumerable:!0,get:function(){return I.declareTypeAlias}});Object.defineProperty(D,"DeclareVariable",{enumerable:!0,get:function(){return I.declareVariable}});Object.defineProperty(D,"DeclaredPredicate",{enumerable:!0,get:function(){return I.declaredPredicate}});Object.defineProperty(D,"Decorator",{enumerable:!0,get:function(){return I.decorator}});Object.defineProperty(D,"Directive",{enumerable:!0,get:function(){return I.directive}});Object.defineProperty(D,"DirectiveLiteral",{enumerable:!0,get:function(){return I.directiveLiteral}});Object.defineProperty(D,"DoExpression",{enumerable:!0,get:function(){return I.doExpression}});Object.defineProperty(D,"DoWhileStatement",{enumerable:!0,get:function(){return I.doWhileStatement}});Object.defineProperty(D,"EmptyStatement",{enumerable:!0,get:function(){return I.emptyStatement}});Object.defineProperty(D,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return I.emptyTypeAnnotation}});Object.defineProperty(D,"EnumBooleanBody",{enumerable:!0,get:function(){return I.enumBooleanBody}});Object.defineProperty(D,"EnumBooleanMember",{enumerable:!0,get:function(){return I.enumBooleanMember}});Object.defineProperty(D,"EnumDeclaration",{enumerable:!0,get:function(){return I.enumDeclaration}});Object.defineProperty(D,"EnumDefaultedMember",{enumerable:!0,get:function(){return I.enumDefaultedMember}});Object.defineProperty(D,"EnumNumberBody",{enumerable:!0,get:function(){return I.enumNumberBody}});Object.defineProperty(D,"EnumNumberMember",{enumerable:!0,get:function(){return I.enumNumberMember}});Object.defineProperty(D,"EnumStringBody",{enumerable:!0,get:function(){return I.enumStringBody}});Object.defineProperty(D,"EnumStringMember",{enumerable:!0,get:function(){return I.enumStringMember}});Object.defineProperty(D,"EnumSymbolBody",{enumerable:!0,get:function(){return I.enumSymbolBody}});Object.defineProperty(D,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return I.existsTypeAnnotation}});Object.defineProperty(D,"ExportAllDeclaration",{enumerable:!0,get:function(){return I.exportAllDeclaration}});Object.defineProperty(D,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return I.exportDefaultDeclaration}});Object.defineProperty(D,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return I.exportDefaultSpecifier}});Object.defineProperty(D,"ExportNamedDeclaration",{enumerable:!0,get:function(){return I.exportNamedDeclaration}});Object.defineProperty(D,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return I.exportNamespaceSpecifier}});Object.defineProperty(D,"ExportSpecifier",{enumerable:!0,get:function(){return I.exportSpecifier}});Object.defineProperty(D,"ExpressionStatement",{enumerable:!0,get:function(){return I.expressionStatement}});Object.defineProperty(D,"File",{enumerable:!0,get:function(){return I.file}});Object.defineProperty(D,"ForInStatement",{enumerable:!0,get:function(){return I.forInStatement}});Object.defineProperty(D,"ForOfStatement",{enumerable:!0,get:function(){return I.forOfStatement}});Object.defineProperty(D,"ForStatement",{enumerable:!0,get:function(){return I.forStatement}});Object.defineProperty(D,"FunctionDeclaration",{enumerable:!0,get:function(){return I.functionDeclaration}});Object.defineProperty(D,"FunctionExpression",{enumerable:!0,get:function(){return I.functionExpression}});Object.defineProperty(D,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return I.functionTypeAnnotation}});Object.defineProperty(D,"FunctionTypeParam",{enumerable:!0,get:function(){return I.functionTypeParam}});Object.defineProperty(D,"GenericTypeAnnotation",{enumerable:!0,get:function(){return I.genericTypeAnnotation}});Object.defineProperty(D,"Identifier",{enumerable:!0,get:function(){return I.identifier}});Object.defineProperty(D,"IfStatement",{enumerable:!0,get:function(){return I.ifStatement}});Object.defineProperty(D,"Import",{enumerable:!0,get:function(){return I.import}});Object.defineProperty(D,"ImportAttribute",{enumerable:!0,get:function(){return I.importAttribute}});Object.defineProperty(D,"ImportDeclaration",{enumerable:!0,get:function(){return I.importDeclaration}});Object.defineProperty(D,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return I.importDefaultSpecifier}});Object.defineProperty(D,"ImportExpression",{enumerable:!0,get:function(){return I.importExpression}});Object.defineProperty(D,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return I.importNamespaceSpecifier}});Object.defineProperty(D,"ImportSpecifier",{enumerable:!0,get:function(){return I.importSpecifier}});Object.defineProperty(D,"IndexedAccessType",{enumerable:!0,get:function(){return I.indexedAccessType}});Object.defineProperty(D,"InferredPredicate",{enumerable:!0,get:function(){return I.inferredPredicate}});Object.defineProperty(D,"InterfaceDeclaration",{enumerable:!0,get:function(){return I.interfaceDeclaration}});Object.defineProperty(D,"InterfaceExtends",{enumerable:!0,get:function(){return I.interfaceExtends}});Object.defineProperty(D,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return I.interfaceTypeAnnotation}});Object.defineProperty(D,"InterpreterDirective",{enumerable:!0,get:function(){return I.interpreterDirective}});Object.defineProperty(D,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return I.intersectionTypeAnnotation}});Object.defineProperty(D,"JSXAttribute",{enumerable:!0,get:function(){return I.jsxAttribute}});Object.defineProperty(D,"JSXClosingElement",{enumerable:!0,get:function(){return I.jsxClosingElement}});Object.defineProperty(D,"JSXClosingFragment",{enumerable:!0,get:function(){return I.jsxClosingFragment}});Object.defineProperty(D,"JSXElement",{enumerable:!0,get:function(){return I.jsxElement}});Object.defineProperty(D,"JSXEmptyExpression",{enumerable:!0,get:function(){return I.jsxEmptyExpression}});Object.defineProperty(D,"JSXExpressionContainer",{enumerable:!0,get:function(){return I.jsxExpressionContainer}});Object.defineProperty(D,"JSXFragment",{enumerable:!0,get:function(){return I.jsxFragment}});Object.defineProperty(D,"JSXIdentifier",{enumerable:!0,get:function(){return I.jsxIdentifier}});Object.defineProperty(D,"JSXMemberExpression",{enumerable:!0,get:function(){return I.jsxMemberExpression}});Object.defineProperty(D,"JSXNamespacedName",{enumerable:!0,get:function(){return I.jsxNamespacedName}});Object.defineProperty(D,"JSXOpeningElement",{enumerable:!0,get:function(){return I.jsxOpeningElement}});Object.defineProperty(D,"JSXOpeningFragment",{enumerable:!0,get:function(){return I.jsxOpeningFragment}});Object.defineProperty(D,"JSXSpreadAttribute",{enumerable:!0,get:function(){return I.jsxSpreadAttribute}});Object.defineProperty(D,"JSXSpreadChild",{enumerable:!0,get:function(){return I.jsxSpreadChild}});Object.defineProperty(D,"JSXText",{enumerable:!0,get:function(){return I.jsxText}});Object.defineProperty(D,"LabeledStatement",{enumerable:!0,get:function(){return I.labeledStatement}});Object.defineProperty(D,"LogicalExpression",{enumerable:!0,get:function(){return I.logicalExpression}});Object.defineProperty(D,"MemberExpression",{enumerable:!0,get:function(){return I.memberExpression}});Object.defineProperty(D,"MetaProperty",{enumerable:!0,get:function(){return I.metaProperty}});Object.defineProperty(D,"MixedTypeAnnotation",{enumerable:!0,get:function(){return I.mixedTypeAnnotation}});Object.defineProperty(D,"ModuleExpression",{enumerable:!0,get:function(){return I.moduleExpression}});Object.defineProperty(D,"NewExpression",{enumerable:!0,get:function(){return I.newExpression}});Object.defineProperty(D,"Noop",{enumerable:!0,get:function(){return I.noop}});Object.defineProperty(D,"NullLiteral",{enumerable:!0,get:function(){return I.nullLiteral}});Object.defineProperty(D,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.nullLiteralTypeAnnotation}});Object.defineProperty(D,"NullableTypeAnnotation",{enumerable:!0,get:function(){return I.nullableTypeAnnotation}});Object.defineProperty(D,"NumberLiteral",{enumerable:!0,get:function(){return I.numberLiteral}});Object.defineProperty(D,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.numberLiteralTypeAnnotation}});Object.defineProperty(D,"NumberTypeAnnotation",{enumerable:!0,get:function(){return I.numberTypeAnnotation}});Object.defineProperty(D,"NumericLiteral",{enumerable:!0,get:function(){return I.numericLiteral}});Object.defineProperty(D,"ObjectExpression",{enumerable:!0,get:function(){return I.objectExpression}});Object.defineProperty(D,"ObjectMethod",{enumerable:!0,get:function(){return I.objectMethod}});Object.defineProperty(D,"ObjectPattern",{enumerable:!0,get:function(){return I.objectPattern}});Object.defineProperty(D,"ObjectProperty",{enumerable:!0,get:function(){return I.objectProperty}});Object.defineProperty(D,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return I.objectTypeAnnotation}});Object.defineProperty(D,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return I.objectTypeCallProperty}});Object.defineProperty(D,"ObjectTypeIndexer",{enumerable:!0,get:function(){return I.objectTypeIndexer}});Object.defineProperty(D,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return I.objectTypeInternalSlot}});Object.defineProperty(D,"ObjectTypeProperty",{enumerable:!0,get:function(){return I.objectTypeProperty}});Object.defineProperty(D,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return I.objectTypeSpreadProperty}});Object.defineProperty(D,"OpaqueType",{enumerable:!0,get:function(){return I.opaqueType}});Object.defineProperty(D,"OptionalCallExpression",{enumerable:!0,get:function(){return I.optionalCallExpression}});Object.defineProperty(D,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return I.optionalIndexedAccessType}});Object.defineProperty(D,"OptionalMemberExpression",{enumerable:!0,get:function(){return I.optionalMemberExpression}});Object.defineProperty(D,"ParenthesizedExpression",{enumerable:!0,get:function(){return I.parenthesizedExpression}});Object.defineProperty(D,"PipelineBareFunction",{enumerable:!0,get:function(){return I.pipelineBareFunction}});Object.defineProperty(D,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return I.pipelinePrimaryTopicReference}});Object.defineProperty(D,"PipelineTopicExpression",{enumerable:!0,get:function(){return I.pipelineTopicExpression}});Object.defineProperty(D,"Placeholder",{enumerable:!0,get:function(){return I.placeholder}});Object.defineProperty(D,"PrivateName",{enumerable:!0,get:function(){return I.privateName}});Object.defineProperty(D,"Program",{enumerable:!0,get:function(){return I.program}});Object.defineProperty(D,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return I.qualifiedTypeIdentifier}});Object.defineProperty(D,"RecordExpression",{enumerable:!0,get:function(){return I.recordExpression}});Object.defineProperty(D,"RegExpLiteral",{enumerable:!0,get:function(){return I.regExpLiteral}});Object.defineProperty(D,"RegexLiteral",{enumerable:!0,get:function(){return I.regexLiteral}});Object.defineProperty(D,"RestElement",{enumerable:!0,get:function(){return I.restElement}});Object.defineProperty(D,"RestProperty",{enumerable:!0,get:function(){return I.restProperty}});Object.defineProperty(D,"ReturnStatement",{enumerable:!0,get:function(){return I.returnStatement}});Object.defineProperty(D,"SequenceExpression",{enumerable:!0,get:function(){return I.sequenceExpression}});Object.defineProperty(D,"SpreadElement",{enumerable:!0,get:function(){return I.spreadElement}});Object.defineProperty(D,"SpreadProperty",{enumerable:!0,get:function(){return I.spreadProperty}});Object.defineProperty(D,"StaticBlock",{enumerable:!0,get:function(){return I.staticBlock}});Object.defineProperty(D,"StringLiteral",{enumerable:!0,get:function(){return I.stringLiteral}});Object.defineProperty(D,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.stringLiteralTypeAnnotation}});Object.defineProperty(D,"StringTypeAnnotation",{enumerable:!0,get:function(){return I.stringTypeAnnotation}});Object.defineProperty(D,"Super",{enumerable:!0,get:function(){return I.super}});Object.defineProperty(D,"SwitchCase",{enumerable:!0,get:function(){return I.switchCase}});Object.defineProperty(D,"SwitchStatement",{enumerable:!0,get:function(){return I.switchStatement}});Object.defineProperty(D,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return I.symbolTypeAnnotation}});Object.defineProperty(D,"TSAnyKeyword",{enumerable:!0,get:function(){return I.tsAnyKeyword}});Object.defineProperty(D,"TSArrayType",{enumerable:!0,get:function(){return I.tsArrayType}});Object.defineProperty(D,"TSAsExpression",{enumerable:!0,get:function(){return I.tsAsExpression}});Object.defineProperty(D,"TSBigIntKeyword",{enumerable:!0,get:function(){return I.tsBigIntKeyword}});Object.defineProperty(D,"TSBooleanKeyword",{enumerable:!0,get:function(){return I.tsBooleanKeyword}});Object.defineProperty(D,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return I.tsCallSignatureDeclaration}});Object.defineProperty(D,"TSConditionalType",{enumerable:!0,get:function(){return I.tsConditionalType}});Object.defineProperty(D,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return I.tsConstructSignatureDeclaration}});Object.defineProperty(D,"TSConstructorType",{enumerable:!0,get:function(){return I.tsConstructorType}});Object.defineProperty(D,"TSDeclareFunction",{enumerable:!0,get:function(){return I.tsDeclareFunction}});Object.defineProperty(D,"TSDeclareMethod",{enumerable:!0,get:function(){return I.tsDeclareMethod}});Object.defineProperty(D,"TSEnumDeclaration",{enumerable:!0,get:function(){return I.tsEnumDeclaration}});Object.defineProperty(D,"TSEnumMember",{enumerable:!0,get:function(){return I.tsEnumMember}});Object.defineProperty(D,"TSExportAssignment",{enumerable:!0,get:function(){return I.tsExportAssignment}});Object.defineProperty(D,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return I.tsExpressionWithTypeArguments}});Object.defineProperty(D,"TSExternalModuleReference",{enumerable:!0,get:function(){return I.tsExternalModuleReference}});Object.defineProperty(D,"TSFunctionType",{enumerable:!0,get:function(){return I.tsFunctionType}});Object.defineProperty(D,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return I.tsImportEqualsDeclaration}});Object.defineProperty(D,"TSImportType",{enumerable:!0,get:function(){return I.tsImportType}});Object.defineProperty(D,"TSIndexSignature",{enumerable:!0,get:function(){return I.tsIndexSignature}});Object.defineProperty(D,"TSIndexedAccessType",{enumerable:!0,get:function(){return I.tsIndexedAccessType}});Object.defineProperty(D,"TSInferType",{enumerable:!0,get:function(){return I.tsInferType}});Object.defineProperty(D,"TSInstantiationExpression",{enumerable:!0,get:function(){return I.tsInstantiationExpression}});Object.defineProperty(D,"TSInterfaceBody",{enumerable:!0,get:function(){return I.tsInterfaceBody}});Object.defineProperty(D,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return I.tsInterfaceDeclaration}});Object.defineProperty(D,"TSIntersectionType",{enumerable:!0,get:function(){return I.tsIntersectionType}});Object.defineProperty(D,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return I.tsIntrinsicKeyword}});Object.defineProperty(D,"TSLiteralType",{enumerable:!0,get:function(){return I.tsLiteralType}});Object.defineProperty(D,"TSMappedType",{enumerable:!0,get:function(){return I.tsMappedType}});Object.defineProperty(D,"TSMethodSignature",{enumerable:!0,get:function(){return I.tsMethodSignature}});Object.defineProperty(D,"TSModuleBlock",{enumerable:!0,get:function(){return I.tsModuleBlock}});Object.defineProperty(D,"TSModuleDeclaration",{enumerable:!0,get:function(){return I.tsModuleDeclaration}});Object.defineProperty(D,"TSNamedTupleMember",{enumerable:!0,get:function(){return I.tsNamedTupleMember}});Object.defineProperty(D,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return I.tsNamespaceExportDeclaration}});Object.defineProperty(D,"TSNeverKeyword",{enumerable:!0,get:function(){return I.tsNeverKeyword}});Object.defineProperty(D,"TSNonNullExpression",{enumerable:!0,get:function(){return I.tsNonNullExpression}});Object.defineProperty(D,"TSNullKeyword",{enumerable:!0,get:function(){return I.tsNullKeyword}});Object.defineProperty(D,"TSNumberKeyword",{enumerable:!0,get:function(){return I.tsNumberKeyword}});Object.defineProperty(D,"TSObjectKeyword",{enumerable:!0,get:function(){return I.tsObjectKeyword}});Object.defineProperty(D,"TSOptionalType",{enumerable:!0,get:function(){return I.tsOptionalType}});Object.defineProperty(D,"TSParameterProperty",{enumerable:!0,get:function(){return I.tsParameterProperty}});Object.defineProperty(D,"TSParenthesizedType",{enumerable:!0,get:function(){return I.tsParenthesizedType}});Object.defineProperty(D,"TSPropertySignature",{enumerable:!0,get:function(){return I.tsPropertySignature}});Object.defineProperty(D,"TSQualifiedName",{enumerable:!0,get:function(){return I.tsQualifiedName}});Object.defineProperty(D,"TSRestType",{enumerable:!0,get:function(){return I.tsRestType}});Object.defineProperty(D,"TSSatisfiesExpression",{enumerable:!0,get:function(){return I.tsSatisfiesExpression}});Object.defineProperty(D,"TSStringKeyword",{enumerable:!0,get:function(){return I.tsStringKeyword}});Object.defineProperty(D,"TSSymbolKeyword",{enumerable:!0,get:function(){return I.tsSymbolKeyword}});Object.defineProperty(D,"TSThisType",{enumerable:!0,get:function(){return I.tsThisType}});Object.defineProperty(D,"TSTupleType",{enumerable:!0,get:function(){return I.tsTupleType}});Object.defineProperty(D,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return I.tsTypeAliasDeclaration}});Object.defineProperty(D,"TSTypeAnnotation",{enumerable:!0,get:function(){return I.tsTypeAnnotation}});Object.defineProperty(D,"TSTypeAssertion",{enumerable:!0,get:function(){return I.tsTypeAssertion}});Object.defineProperty(D,"TSTypeLiteral",{enumerable:!0,get:function(){return I.tsTypeLiteral}});Object.defineProperty(D,"TSTypeOperator",{enumerable:!0,get:function(){return I.tsTypeOperator}});Object.defineProperty(D,"TSTypeParameter",{enumerable:!0,get:function(){return I.tsTypeParameter}});Object.defineProperty(D,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return I.tsTypeParameterDeclaration}});Object.defineProperty(D,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return I.tsTypeParameterInstantiation}});Object.defineProperty(D,"TSTypePredicate",{enumerable:!0,get:function(){return I.tsTypePredicate}});Object.defineProperty(D,"TSTypeQuery",{enumerable:!0,get:function(){return I.tsTypeQuery}});Object.defineProperty(D,"TSTypeReference",{enumerable:!0,get:function(){return I.tsTypeReference}});Object.defineProperty(D,"TSUndefinedKeyword",{enumerable:!0,get:function(){return I.tsUndefinedKeyword}});Object.defineProperty(D,"TSUnionType",{enumerable:!0,get:function(){return I.tsUnionType}});Object.defineProperty(D,"TSUnknownKeyword",{enumerable:!0,get:function(){return I.tsUnknownKeyword}});Object.defineProperty(D,"TSVoidKeyword",{enumerable:!0,get:function(){return I.tsVoidKeyword}});Object.defineProperty(D,"TaggedTemplateExpression",{enumerable:!0,get:function(){return I.taggedTemplateExpression}});Object.defineProperty(D,"TemplateElement",{enumerable:!0,get:function(){return I.templateElement}});Object.defineProperty(D,"TemplateLiteral",{enumerable:!0,get:function(){return I.templateLiteral}});Object.defineProperty(D,"ThisExpression",{enumerable:!0,get:function(){return I.thisExpression}});Object.defineProperty(D,"ThisTypeAnnotation",{enumerable:!0,get:function(){return I.thisTypeAnnotation}});Object.defineProperty(D,"ThrowStatement",{enumerable:!0,get:function(){return I.throwStatement}});Object.defineProperty(D,"TopicReference",{enumerable:!0,get:function(){return I.topicReference}});Object.defineProperty(D,"TryStatement",{enumerable:!0,get:function(){return I.tryStatement}});Object.defineProperty(D,"TupleExpression",{enumerable:!0,get:function(){return I.tupleExpression}});Object.defineProperty(D,"TupleTypeAnnotation",{enumerable:!0,get:function(){return I.tupleTypeAnnotation}});Object.defineProperty(D,"TypeAlias",{enumerable:!0,get:function(){return I.typeAlias}});Object.defineProperty(D,"TypeAnnotation",{enumerable:!0,get:function(){return I.typeAnnotation}});Object.defineProperty(D,"TypeCastExpression",{enumerable:!0,get:function(){return I.typeCastExpression}});Object.defineProperty(D,"TypeParameter",{enumerable:!0,get:function(){return I.typeParameter}});Object.defineProperty(D,"TypeParameterDeclaration",{enumerable:!0,get:function(){return I.typeParameterDeclaration}});Object.defineProperty(D,"TypeParameterInstantiation",{enumerable:!0,get:function(){return I.typeParameterInstantiation}});Object.defineProperty(D,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return I.typeofTypeAnnotation}});Object.defineProperty(D,"UnaryExpression",{enumerable:!0,get:function(){return I.unaryExpression}});Object.defineProperty(D,"UnionTypeAnnotation",{enumerable:!0,get:function(){return I.unionTypeAnnotation}});Object.defineProperty(D,"UpdateExpression",{enumerable:!0,get:function(){return I.updateExpression}});Object.defineProperty(D,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return I.v8IntrinsicIdentifier}});Object.defineProperty(D,"VariableDeclaration",{enumerable:!0,get:function(){return I.variableDeclaration}});Object.defineProperty(D,"VariableDeclarator",{enumerable:!0,get:function(){return I.variableDeclarator}});Object.defineProperty(D,"Variance",{enumerable:!0,get:function(){return I.variance}});Object.defineProperty(D,"VoidTypeAnnotation",{enumerable:!0,get:function(){return I.voidTypeAnnotation}});Object.defineProperty(D,"WhileStatement",{enumerable:!0,get:function(){return I.whileStatement}});Object.defineProperty(D,"WithStatement",{enumerable:!0,get:function(){return I.withStatement}});Object.defineProperty(D,"YieldExpression",{enumerable:!0,get:function(){return I.yieldExpression}});var I=z2()});var kX=S((bY)=>{function f01(){return gY.unaryExpression("void",gY.numericLiteral(0),!0)}Object.defineProperty(bY,"__esModule",{value:!0});bY.buildUndefinedNode=f01;var gY=z2()});var T0=S((lY)=>{function mY(G,J,X,H){if(G&&typeof G.type==="string")return xY(G,J,X,H);return G}function EX(G,J,X,H){if(Array.isArray(G))return G.map((Z)=>mY(Z,J,X,H));return mY(G,J,X,H)}function P01(G,J=!0,X=!1){return xY(G,J,X,new Map)}function xY(G,J=!0,X=!1,H){if(!G)return G;const{type:Z}=G,V={type:G.type};if(yY.isIdentifier(G)){if(V.name=G.name,n2(G,"optional")&&typeof G.optional==="boolean")V.optional=G.optional;if(n2(G,"typeAnnotation"))V.typeAnnotation=J?EX(G.typeAnnotation,!0,X,H):G.typeAnnotation;if(n2(G,"decorators"))V.decorators=J?EX(G.decorators,!0,X,H):G.decorators}else if(!n2(hY.NODE_FIELDS,Z))throw new Error(`Unknown node type: "${Z}"`);else for(let Q of Object.keys(hY.NODE_FIELDS[Z]))if(n2(G,Q))if(J)V[Q]=yY.isFile(G)&&Q==="comments"?IG(G.comments,J,X,H):EX(G[Q],!0,X,H);else V[Q]=G[Q];if(n2(G,"loc"))if(X)V.loc=null;else V.loc=G.loc;if(n2(G,"leadingComments"))V.leadingComments=IG(G.leadingComments,J,X,H);if(n2(G,"innerComments"))V.innerComments=IG(G.innerComments,J,X,H);if(n2(G,"trailingComments"))V.trailingComments=IG(G.trailingComments,J,X,H);if(n2(G,"extra"))V.extra=Object.assign({},G.extra);return V}function IG(G,J,X,H){if(!G||!J)return G;return G.map((Z)=>{const V=H.get(Z);if(V)return V;const{type:Q,value:Y,loc:W}=Z,z={type:Q,value:Y,loc:W};if(X)z.loc=null;return H.set(Z,z),z})}Object.defineProperty(lY,"__esModule",{value:!0});lY.default=P01;var hY=w2(),yY=r1(),{hasOwn:n2}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)}});var aY=S((cY)=>{function w01(G){return T01.default(G,!1)}Object.defineProperty(cY,"__esModule",{value:!0});cY.default=w01;var T01=T0()});var iY=S((rY)=>{function E01(G){return k01.default(G)}Object.defineProperty(rY,"__esModule",{value:!0});rY.default=E01;var k01=T0()});var dY=S((uY)=>{function _01(G){return v01.default(G,!0,!0)}Object.defineProperty(uY,"__esModule",{value:!0});uY.default=_01;var v01=T0()});var pY=S((sY)=>{function h01(G){return b01.default(G,!1,!0)}Object.defineProperty(sY,"__esModule",{value:!0});sY.default=h01;var b01=T0()});var OX=S((nY)=>{function m01(G,J,X){if(!X||!G)return G;const H=`${J}Comments`;if(G[H])if(J==="leading")G[H]=X.concat(G[H]);else G[H].push(...X);else G[H]=X;return G}Object.defineProperty(nY,"__esModule",{value:!0});nY.default=m01});var eY=S((oY)=>{function c01(G,J,X,H){return l01.default(G,J,[{type:H?"CommentLine":"CommentBlock",value:X}])}Object.defineProperty(oY,"__esModule",{value:!0});oY.default=c01;var l01=OX()});var AG=S((tY)=>{function r01(G,J,X){if(J&&X)J[G]=Array.from(new Set([].concat(J[G],X[G]).filter(Boolean)))}Object.defineProperty(tY,"__esModule",{value:!0});tY.default=r01});var vX=S((GW)=>{function d01(G,J){u01.default("innerComments",G,J)}Object.defineProperty(GW,"__esModule",{value:!0});GW.default=d01;var u01=AG()});var _X=S((JW)=>{function n01(G,J){p01.default("leadingComments",G,J)}Object.defineProperty(JW,"__esModule",{value:!0});JW.default=n01;var p01=AG()});var gX=S((XW)=>{function t01(G,J){e01.default("trailingComments",G,J)}Object.defineProperty(XW,"__esModule",{value:!0});XW.default=t01;var e01=AG()});var bX=S((HW)=>{function Z51(G,J){return J51.default(G,J),X51.default(G,J),H51.default(G,J),G}Object.defineProperty(HW,"__esModule",{value:!0});HW.default=Z51;var J51=gX(),X51=_X(),H51=vX()});var VW=S((ZW)=>{function Y51(G){return Q51.COMMENT_KEYS.forEach((J)=>{G[J]=null}),G}Object.defineProperty(ZW,"__esModule",{value:!0});ZW.default=Y51;var Q51=P0()});var WW=S((QW)=>{Object.defineProperty(QW,"__esModule",{value:!0});QW.WHILE_TYPES=QW.USERWHITESPACABLE_TYPES=QW.UNARYLIKE_TYPES=QW.TYPESCRIPT_TYPES=QW.TSTYPE_TYPES=QW.TSTYPEELEMENT_TYPES=QW.TSENTITYNAME_TYPES=QW.TSBASETYPE_TYPES=QW.TERMINATORLESS_TYPES=QW.STATEMENT_TYPES=QW.STANDARDIZED_TYPES=QW.SCOPABLE_TYPES=QW.PUREISH_TYPES=QW.PROPERTY_TYPES=QW.PRIVATE_TYPES=QW.PATTERN_TYPES=QW.PATTERNLIKE_TYPES=QW.OBJECTMEMBER_TYPES=QW.MODULESPECIFIER_TYPES=QW.MODULEDECLARATION_TYPES=QW.MISCELLANEOUS_TYPES=QW.METHOD_TYPES=QW.LVAL_TYPES=QW.LOOP_TYPES=QW.LITERAL_TYPES=QW.JSX_TYPES=QW.IMPORTOREXPORTDECLARATION_TYPES=QW.IMMUTABLE_TYPES=QW.FUNCTION_TYPES=QW.FUNCTIONPARENT_TYPES=QW.FOR_TYPES=QW.FORXSTATEMENT_TYPES=QW.FLOW_TYPES=QW.FLOWTYPE_TYPES=QW.FLOWPREDICATE_TYPES=QW.FLOWDECLARATION_TYPES=QW.FLOWBASEANNOTATION_TYPES=QW.EXPRESSION_TYPES=QW.EXPRESSIONWRAPPER_TYPES=QW.EXPORTDECLARATION_TYPES=QW.ENUMMEMBER_TYPES=QW.ENUMBODY_TYPES=QW.DECLARATION_TYPES=QW.CONDITIONAL_TYPES=QW.COMPLETIONSTATEMENT_TYPES=QW.CLASS_TYPES=QW.BLOCK_TYPES=QW.BLOCKPARENT_TYPES=QW.BINARY_TYPES=QW.ACCESSOR_TYPES=void 0;var U1=w2(),GO1=QW.STANDARDIZED_TYPES=U1.FLIPPED_ALIAS_KEYS.Standardized,JO1=QW.EXPRESSION_TYPES=U1.FLIPPED_ALIAS_KEYS.Expression,XO1=QW.BINARY_TYPES=U1.FLIPPED_ALIAS_KEYS.Binary,HO1=QW.SCOPABLE_TYPES=U1.FLIPPED_ALIAS_KEYS.Scopable,ZO1=QW.BLOCKPARENT_TYPES=U1.FLIPPED_ALIAS_KEYS.BlockParent,VO1=QW.BLOCK_TYPES=U1.FLIPPED_ALIAS_KEYS.Block,QO1=QW.STATEMENT_TYPES=U1.FLIPPED_ALIAS_KEYS.Statement,YO1=QW.TERMINATORLESS_TYPES=U1.FLIPPED_ALIAS_KEYS.Terminatorless,WO1=QW.COMPLETIONSTATEMENT_TYPES=U1.FLIPPED_ALIAS_KEYS.CompletionStatement,zO1=QW.CONDITIONAL_TYPES=U1.FLIPPED_ALIAS_KEYS.Conditional,UO1=QW.LOOP_TYPES=U1.FLIPPED_ALIAS_KEYS.Loop,KO1=QW.WHILE_TYPES=U1.FLIPPED_ALIAS_KEYS.While,BO1=QW.EXPRESSIONWRAPPER_TYPES=U1.FLIPPED_ALIAS_KEYS.ExpressionWrapper,$O1=QW.FOR_TYPES=U1.FLIPPED_ALIAS_KEYS.For,RO1=QW.FORXSTATEMENT_TYPES=U1.FLIPPED_ALIAS_KEYS.ForXStatement,MO1=QW.FUNCTION_TYPES=U1.FLIPPED_ALIAS_KEYS.Function,qO1=QW.FUNCTIONPARENT_TYPES=U1.FLIPPED_ALIAS_KEYS.FunctionParent,FO1=QW.PUREISH_TYPES=U1.FLIPPED_ALIAS_KEYS.Pureish,jO1=QW.DECLARATION_TYPES=U1.FLIPPED_ALIAS_KEYS.Declaration,DO1=QW.PATTERNLIKE_TYPES=U1.FLIPPED_ALIAS_KEYS.PatternLike,IO1=QW.LVAL_TYPES=U1.FLIPPED_ALIAS_KEYS.LVal,AO1=QW.TSENTITYNAME_TYPES=U1.FLIPPED_ALIAS_KEYS.TSEntityName,CO1=QW.LITERAL_TYPES=U1.FLIPPED_ALIAS_KEYS.Literal,fO1=QW.IMMUTABLE_TYPES=U1.FLIPPED_ALIAS_KEYS.Immutable,SO1=QW.USERWHITESPACABLE_TYPES=U1.FLIPPED_ALIAS_KEYS.UserWhitespacable,PO1=QW.METHOD_TYPES=U1.FLIPPED_ALIAS_KEYS.Method,LO1=QW.OBJECTMEMBER_TYPES=U1.FLIPPED_ALIAS_KEYS.ObjectMember,TO1=QW.PROPERTY_TYPES=U1.FLIPPED_ALIAS_KEYS.Property,wO1=QW.UNARYLIKE_TYPES=U1.FLIPPED_ALIAS_KEYS.UnaryLike,NO1=QW.PATTERN_TYPES=U1.FLIPPED_ALIAS_KEYS.Pattern,kO1=QW.CLASS_TYPES=U1.FLIPPED_ALIAS_KEYS.Class,z51=QW.IMPORTOREXPORTDECLARATION_TYPES=U1.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,EO1=QW.EXPORTDECLARATION_TYPES=U1.FLIPPED_ALIAS_KEYS.ExportDeclaration,OO1=QW.MODULESPECIFIER_TYPES=U1.FLIPPED_ALIAS_KEYS.ModuleSpecifier,vO1=QW.ACCESSOR_TYPES=U1.FLIPPED_ALIAS_KEYS.Accessor,_O1=QW.PRIVATE_TYPES=U1.FLIPPED_ALIAS_KEYS.Private,gO1=QW.FLOW_TYPES=U1.FLIPPED_ALIAS_KEYS.Flow,bO1=QW.FLOWTYPE_TYPES=U1.FLIPPED_ALIAS_KEYS.FlowType,hO1=QW.FLOWBASEANNOTATION_TYPES=U1.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,yO1=QW.FLOWDECLARATION_TYPES=U1.FLIPPED_ALIAS_KEYS.FlowDeclaration,mO1=QW.FLOWPREDICATE_TYPES=U1.FLIPPED_ALIAS_KEYS.FlowPredicate,xO1=QW.ENUMBODY_TYPES=U1.FLIPPED_ALIAS_KEYS.EnumBody,lO1=QW.ENUMMEMBER_TYPES=U1.FLIPPED_ALIAS_KEYS.EnumMember,cO1=QW.JSX_TYPES=U1.FLIPPED_ALIAS_KEYS.JSX,aO1=QW.MISCELLANEOUS_TYPES=U1.FLIPPED_ALIAS_KEYS.Miscellaneous,rO1=QW.TYPESCRIPT_TYPES=U1.FLIPPED_ALIAS_KEYS.TypeScript,iO1=QW.TSTYPEELEMENT_TYPES=U1.FLIPPED_ALIAS_KEYS.TSTypeElement,uO1=QW.TSTYPE_TYPES=U1.FLIPPED_ALIAS_KEYS.TSType,dO1=QW.TSBASETYPE_TYPES=U1.FLIPPED_ALIAS_KEYS.TSBaseType,sO1=QW.MODULEDECLARATION_TYPES=z51});var yX=S((zW)=>{function V91(G,J){if(CG.isBlockStatement(G))return G;let X=[];if(CG.isEmptyStatement(G))X=[];else{if(!CG.isStatement(G))if(CG.isFunction(J))G=hX.returnStatement(G);else G=hX.expressionStatement(G);X=[G]}return hX.blockStatement(X)}Object.defineProperty(zW,"__esModule",{value:!0});zW.default=V91;var CG=r1(),hX=z2()});var KW=S((UW)=>{function W91(G,J="body"){const X=Y91.default(G[J],G);return G[J]=X,X}Object.defineProperty(UW,"__esModule",{value:!0});UW.default=W91;var Y91=yX()});var mX=S((BW)=>{function B91(G){G=G+"";let J="";for(let X of G)J+=K91.isIdentifierChar(X.codePointAt(0))?X:"-";if(J=J.replace(/^[-0-9]+/,""),J=J.replace(/[-\s]+(.)?/g,function(X,H){return H?H.toUpperCase():""}),!U91.default(J))J=`_${J}`;return J||"_"}Object.defineProperty(BW,"__esModule",{value:!0});BW.default=B91;var U91=k5(),K91=F9()});var RW=S(($W)=>{function M91(G){if(G=R91.default(G),G==="eval"||G==="arguments")G="_"+G;return G}Object.defineProperty($W,"__esModule",{value:!0});$W.default=M91;var R91=mX()});var qW=S((MW)=>{function D91(G,J=G.key||G.property){if(!G.computed&&F91.isIdentifier(J))J=j91.stringLiteral(J.name);return J}Object.defineProperty(MW,"__esModule",{value:!0});MW.default=D91;var F91=r1(),j91=z2()});var DW=S((FW)=>{function A91(G){if(S9.isExpressionStatement(G))G=G.expression;if(S9.isExpression(G))return G;if(S9.isClass(G))G.type="ClassExpression";else if(S9.isFunction(G))G.type="FunctionExpression";if(!S9.isExpression(G))throw new Error(`cannot turn ${G.type} to an expression`);return G}Object.defineProperty(FW,"__esModule",{value:!0});FW.default=void 0;var S9=r1(),Jv1=FW.default=A91});var lX=S((IW)=>{function xX(G,J,X){if(!G)return;const H=C91.VISITOR_KEYS[G.type];if(!H)return;X=X||{},J(G,X);for(let Z of H){const V=G[Z];if(Array.isArray(V))for(let Q of V)xX(Q,J,X);else xX(V,J,X)}}Object.defineProperty(IW,"__esModule",{value:!0});IW.default=xX;var C91=w2()});var cX=S((CW)=>{function L91(G,J={}){const X=J.preserveComments?AW:P91;for(let Z of X)if(G[Z]!=null)G[Z]=void 0;for(let Z of Object.keys(G))if(Z[0]==="_"&&G[Z]!=null)G[Z]=void 0;const H=Object.getOwnPropertySymbols(G);for(let Z of H)G[Z]=null}Object.defineProperty(CW,"__esModule",{value:!0});CW.default=L91;var S91=P0(),AW=["tokens","start","end","loc","raw","rawValue"],P91=[...S91.COMMENT_KEYS,"comments",...AW]});var aX=S((fW)=>{function k91(G,J){return w91.default(G,N91.default,J),G}Object.defineProperty(fW,"__esModule",{value:!0});fW.default=k91;var w91=lX(),N91=cX()});var LW=S((PW)=>{function n0(G,J=G.key){let X;if(G.kind==="method")return n0.increment()+"";else if(SW.isIdentifier(J))X=J.name;else if(SW.isStringLiteral(J))X=JSON.stringify(J.value);else X=JSON.stringify(v91.default(O91.default(J)));if(G.computed)X=`[${X}]`;if(G.static)X=`static:${X}`;return X}Object.defineProperty(PW,"__esModule",{value:!0});PW.default=n0;var SW=r1(),O91=T0(),v91=aX();n0.uid=0;n0.increment=function(){if(n0.uid>=Number.MAX_SAFE_INTEGER)return n0.uid=0;else return n0.uid++}});var NW=S((TW)=>{function b91(G,J){if(fG.isStatement(G))return G;let X=!1,H;if(fG.isClass(G))X=!0,H="ClassDeclaration";else if(fG.isFunction(G))X=!0,H="FunctionDeclaration";else if(fG.isAssignmentExpression(G))return g91.expressionStatement(G);if(X&&!G.id)H=!1;if(!H)if(J)return!1;else throw new Error(`cannot turn ${G.type} to a statement`);return G.type=H,G}Object.defineProperty(TW,"__esModule",{value:!0});TW.default=void 0;var fG=r1(),g91=z2(),Yv1=TW.default=b91});var OW=S((kW)=>{function m91(G){return y91(G)==="[object RegExp]"}function x91(G){if(typeof G!=="object"||G===null||Object.prototype.toString.call(G)!=="[object Object]")return!1;const J=Object.getPrototypeOf(G);return J===null||Object.getPrototypeOf(J)===null}function rX(G){if(G===void 0)return Z2.identifier("undefined");if(G===!0||G===!1)return Z2.booleanLiteral(G);if(G===null)return Z2.nullLiteral();if(typeof G==="string")return Z2.stringLiteral(G);if(typeof G==="number"){let J;if(Number.isFinite(G))J=Z2.numericLiteral(Math.abs(G));else{let X;if(Number.isNaN(G))X=Z2.numericLiteral(0);else X=Z2.numericLiteral(1);J=Z2.binaryExpression("/",X,Z2.numericLiteral(0))}if(G<0||Object.is(G,-0))J=Z2.unaryExpression("-",J);return J}if(m91(G)){const J=G.source,X=/\/([a-z]*)$/.exec(G.toString())[1];return Z2.regExpLiteral(J,X)}if(Array.isArray(G))return Z2.arrayExpression(G.map(rX));if(x91(G)){const J=[];for(let X of Object.keys(G)){let H;if(h91.default(X))H=Z2.identifier(X);else H=Z2.stringLiteral(X);J.push(Z2.objectProperty(H,rX(G[X])))}return Z2.objectExpression(J)}throw new Error("don't know how to turn this value into a node")}Object.defineProperty(kW,"__esModule",{value:!0});kW.default=void 0;var h91=k5(),Z2=z2(),zv1=kW.default=rX,y91=Function.call.bind(Object.prototype.toString)});var _W=S((vW)=>{function c91(G,J,X=!1){return G.object=l91.memberExpression(G.object,G.property,G.computed),G.property=J,G.computed=!!X,G}Object.defineProperty(vW,"__esModule",{value:!0});vW.default=c91;var l91=z2()});var hW=S((bW)=>{function i91(G,J){if(!G||!J)return G;for(let X of gW.INHERIT_KEYS.optional)if(G[X]==null)G[X]=J[X];for(let X of Object.keys(J))if(X[0]==="_"&&X!=="__clone")G[X]=J[X];for(let X of gW.INHERIT_KEYS.force)G[X]=J[X];return r91.default(G,J),G}Object.defineProperty(bW,"__esModule",{value:!0});bW.default=i91;var gW=P0(),r91=bX()});var mW=S((yW)=>{function p91(G,J){if(s91.isSuper(G.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return G.object=d91.memberExpression(J,G.object),G}Object.defineProperty(yW,"__esModule",{value:!0});yW.default=p91;var d91=z2(),s91=F1()});var lW=S((xW)=>{function o91(G){const J=[].concat(G),X=Object.create(null);while(J.length){const H=J.pop();if(!H)continue;switch(H.type){case"ArrayPattern":J.push(...H.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":J.push(H.left);break;case"ObjectPattern":J.push(...H.properties);break;case"ObjectProperty":J.push(H.value);break;case"RestElement":case"UpdateExpression":J.push(H.argument);break;case"UnaryExpression":if(H.operator==="delete")J.push(H.argument);break;case"Identifier":X[H.name]=H;break;default:break}}return X}Object.defineProperty(xW,"__esModule",{value:!0});xW.default=o91});var P9=S((cW)=>{function iX(G,J,X,H){const Z=[].concat(G),V=Object.create(null);while(Z.length){const Q=Z.shift();if(!Q)continue;if(H&&(Y0.isAssignmentExpression(Q)||Y0.isUnaryExpression(Q)||Y0.isUpdateExpression(Q)))continue;if(Y0.isIdentifier(Q)){if(J)(V[Q.name]=V[Q.name]||[]).push(Q);else V[Q.name]=Q;continue}if(Y0.isExportDeclaration(Q)&&!Y0.isExportAllDeclaration(Q)){if(Y0.isDeclaration(Q.declaration))Z.push(Q.declaration);continue}if(X){if(Y0.isFunctionDeclaration(Q)){Z.push(Q.id);continue}if(Y0.isFunctionExpression(Q))continue}const Y=iX.keys[Q.type];if(Y)for(let W=0;W<Y.length;W++){const z=Y[W],B=Q[z];if(B)if(Array.isArray(B))Z.push(...B);else Z.push(B)}}return V}Object.defineProperty(cW,"__esModule",{value:!0});cW.default=iX;var Y0=r1(),t91={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"],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"]};iX.keys=t91});var iW=S((aW)=>{function X61(G,J){return J61.default(G,J,!0)}Object.defineProperty(aW,"__esModule",{value:!0});aW.default=void 0;var J61=P9(),qv1=aW.default=X61});var sW=S((dW)=>{function H61(G){if(N2.isNullLiteral(G))return"null";if(N2.isRegExpLiteral(G))return`/${G.pattern}/${G.flags}`;if(N2.isTemplateLiteral(G))return G.quasis.map((J)=>J.value.raw).join("");if(G.value!==void 0)return String(G.value);return null}function uW(G){if(!G.computed||N2.isLiteral(G.key))return G.key}function Z61(G,J){if("id"in G&&G.id)return{name:G.id.name,originalNode:G.id};let X="",H;if(N2.isObjectProperty(J,{value:G}))H=uW(J);else if(N2.isObjectMethod(G)||N2.isClassMethod(G)){if(H=uW(G),G.kind==="get")X="get ";else if(G.kind==="set")X="set "}else if(N2.isVariableDeclarator(J,{init:G}))H=J.id;else if(N2.isAssignmentExpression(J,{operator:"=",right:G}))H=J.left;if(!H)return null;const Z=N2.isLiteral(H)?H61(H):N2.isIdentifier(H)?H.name:N2.isPrivateName(H)?H.id.name:null;if(Z==null)return null;return{name:X+Z,originalNode:H}}Object.defineProperty(dW,"__esModule",{value:!0});dW.default=Z61;var N2=r1()});var nW=S((pW)=>{function Y61(G,J,X){if(typeof J==="function")J={enter:J};const{enter:H,exit:Z}=J;uX(G,H,Z,X,[])}function uX(G,J,X,H,Z){const V=Q61.VISITOR_KEYS[G.type];if(!V)return;if(J)J(G,Z,H);for(let Q of V){const Y=G[Q];if(Array.isArray(Y))for(let W=0;W<Y.length;W++){const z=Y[W];if(!z)continue;Z.push({node:G,key:Q,index:W}),uX(z,J,X,H,Z),Z.pop()}else if(Y)Z.push({node:G,key:Q}),uX(Y,J,X,H,Z),Z.pop()}if(X)X(G,Z,H)}Object.defineProperty(pW,"__esModule",{value:!0});pW.default=Y61;var Q61=w2()});var eW=S((oW)=>{function U61(G,J,X){if(X&&G.type==="Identifier"&&J.type==="ObjectProperty"&&X.type==="ObjectExpression")return!1;const H=z61.default.keys[J.type];if(H)for(let Z=0;Z<H.length;Z++){const V=H[Z],Q=J[V];if(Array.isArray(Q)){if(Q.includes(G))return!0}else if(Q===G)return!0}return!1}Object.defineProperty(oW,"__esModule",{value:!0});oW.default=U61;var z61=P9()});var dX=S((tW)=>{function R61(G){return B61.isVariableDeclaration(G)&&(G.kind!=="var"||G[$61.BLOCK_SCOPED_SYMBOL])}Object.defineProperty(tW,"__esModule",{value:!0});tW.default=R61;var B61=r1(),$61=P0()});var Xz=S((Jz)=>{function F61(G){return Gz.isFunctionDeclaration(G)||Gz.isClassDeclaration(G)||q61.default(G)}Object.defineProperty(Jz,"__esModule",{value:!0});Jz.default=F61;var Gz=r1(),q61=dX()});var Zz=S((Hz)=>{function A61(G){if(D61.default(G.type,"Immutable"))return!0;if(I61.isIdentifier(G))if(G.name==="undefined")return!0;else return!1;return!1}Object.defineProperty(Hz,"__esModule",{value:!0});Hz.default=A61;var D61=UG(),I61=r1()});var Yz=S((Qz)=>{function sX(G,J){if(typeof G!=="object"||typeof J!=="object"||G==null||J==null)return G===J;if(G.type!==J.type)return!1;const X=Object.keys(Vz.NODE_FIELDS[G.type]||G.type),H=Vz.VISITOR_KEYS[G.type];for(let Z of X){const V=G[Z],Q=J[Z];if(typeof V!==typeof Q)return!1;if(V==null&&Q==null)continue;else if(V==null||Q==null)return!1;if(Array.isArray(V)){if(!Array.isArray(Q))return!1;if(V.length!==Q.length)return!1;for(let Y=0;Y<V.length;Y++)if(!sX(V[Y],Q[Y]))return!1;continue}if(typeof V==="object"&&!(H!=null&&H.includes(Z))){for(let Y of Object.keys(V))if(V[Y]!==Q[Y])return!1;continue}if(!sX(V,Q))return!1}return!0}Object.defineProperty(Qz,"__esModule",{value:!0});Qz.default=sX;var Vz=w2()});var zz=S((Wz)=>{function S61(G,J,X){switch(J.type){case"MemberExpression":case"OptionalMemberExpression":if(J.property===G)return!!J.computed;return J.object===G;case"JSXMemberExpression":return J.object===G;case"VariableDeclarator":return J.init===G;case"ArrowFunctionExpression":return J.body===G;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(J.key===G)return!!J.computed;return!1;case"ObjectProperty":if(J.key===G)return!!J.computed;return!X||X.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":if(J.key===G)return!!J.computed;return!0;case"ClassPrivateProperty":return J.key!==G;case"ClassDeclaration":case"ClassExpression":return J.superClass===G;case"AssignmentExpression":return J.right===G;case"AssignmentPattern":return J.right===G;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":if(X!=null&&X.source)return!1;return J.local===G;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 J.key!==G;case"TSEnumMember":return J.id!==G;case"TSPropertySignature":if(J.key===G)return!!J.computed;return!0}return!0}Object.defineProperty(Wz,"__esModule",{value:!0});Wz.default=S61});var Kz=S((Uz)=>{function L61(G,J){if(o0.isBlockStatement(G)&&(o0.isFunction(J)||o0.isCatchClause(J)))return!1;if(o0.isPattern(G)&&(o0.isFunction(J)||o0.isCatchClause(J)))return!0;return o0.isScopable(G)}Object.defineProperty(Uz,"__esModule",{value:!0});Uz.default=L61;var o0=r1()});var Rz=S(($z)=>{function w61(G){return Bz.isImportDefaultSpecifier(G)||Bz.isIdentifier(G.imported||G.exported,{name:"default"})}Object.defineProperty($z,"__esModule",{value:!0});$z.default=w61;var Bz=r1()});var qz=S((Mz)=>{function O61(G){return k61.default(G)&&!E61.has(G)}Object.defineProperty(Mz,"__esModule",{value:!0});Mz.default=O61;var k61=k5(),E61=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"])});var jz=S((Fz)=>{function b61(G){return _61.isVariableDeclaration(G,{kind:"var"})&&!G[g61.BLOCK_SCOPED_SYMBOL]}Object.defineProperty(Fz,"__esModule",{value:!0});Fz.default=b61;var _61=r1(),g61=P0()});var Iz=S((Dz)=>{function SG(G,J){const X=[];let H=!0;for(let Z of G){if(!e0.isEmptyStatement(Z))H=!1;if(e0.isExpression(Z))X.push(Z);else if(e0.isExpressionStatement(Z))X.push(Z.expression);else if(e0.isVariableDeclaration(Z)){if(Z.kind!=="var")return;for(let V of Z.declarations){const Q=y61.default(V);for(let Y of Object.keys(Q))J.push({kind:Z.kind,id:m61.default(Q[Y])});if(V.init)X.push(pX.assignmentExpression("=",V.id,V.init))}H=!0}else if(e0.isIfStatement(Z)){const V=Z.consequent?SG([Z.consequent],J):nX.buildUndefinedNode(),Q=Z.alternate?SG([Z.alternate],J):nX.buildUndefinedNode();if(!V||!Q)return;X.push(pX.conditionalExpression(Z.test,V,Q))}else if(e0.isBlockStatement(Z)){const V=SG(Z.body,J);if(!V)return;X.push(V)}else if(e0.isEmptyStatement(Z)){if(G.indexOf(Z)===0)H=!0}else return}if(H)X.push(nX.buildUndefinedNode());if(X.length===1)return X[0];else return pX.sequenceExpression(X)}Object.defineProperty(Dz,"__esModule",{value:!0});Dz.default=SG;var y61=P9(),e0=r1(),pX=z2(),nX=kX(),m61=T0()});var Cz=S((Az)=>{function c61(G,J){if(!(G!=null&&G.length))return;const X=[],H=l61.default(G,X);if(!H)return;for(let Z of X)J.push(Z);return H}Object.defineProperty(Az,"__esModule",{value:!0});Az.default=c61;var l61=Iz()});var F1=S((a)=>{Object.defineProperty(a,"__esModule",{value:!0});var W0={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(a,"__internal__deprecationWarning",{enumerable:!0,get:function(){return d81.default}});Object.defineProperty(a,"addComment",{enumerable:!0,get:function(){return J81.default}});Object.defineProperty(a,"addComments",{enumerable:!0,get:function(){return X81.default}});Object.defineProperty(a,"appendToMemberExpression",{enumerable:!0,get:function(){return F81.default}});Object.defineProperty(a,"assertNode",{enumerable:!0,get:function(){return d61.default}});Object.defineProperty(a,"buildMatchMemberExpression",{enumerable:!0,get:function(){return u81.default}});Object.defineProperty(a,"clone",{enumerable:!0,get:function(){return o61.default}});Object.defineProperty(a,"cloneDeep",{enumerable:!0,get:function(){return e61.default}});Object.defineProperty(a,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return t61.default}});Object.defineProperty(a,"cloneNode",{enumerable:!0,get:function(){return n61.default}});Object.defineProperty(a,"cloneWithoutLoc",{enumerable:!0,get:function(){return G81.default}});Object.defineProperty(a,"createFlowUnionType",{enumerable:!0,get:function(){return fz.default}});Object.defineProperty(a,"createTSUnionType",{enumerable:!0,get:function(){return p61.default}});Object.defineProperty(a,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return s61.default}});Object.defineProperty(a,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return fz.default}});Object.defineProperty(a,"ensureBlock",{enumerable:!0,get:function(){return W81.default}});Object.defineProperty(a,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return f81.default}});Object.defineProperty(a,"getBindingIdentifiers",{enumerable:!0,get:function(){return S81.default}});Object.defineProperty(a,"getFunctionName",{enumerable:!0,get:function(){return L81.default}});Object.defineProperty(a,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return P81.default}});Object.defineProperty(a,"inheritInnerComments",{enumerable:!0,get:function(){return H81.default}});Object.defineProperty(a,"inheritLeadingComments",{enumerable:!0,get:function(){return Z81.default}});Object.defineProperty(a,"inheritTrailingComments",{enumerable:!0,get:function(){return Q81.default}});Object.defineProperty(a,"inherits",{enumerable:!0,get:function(){return j81.default}});Object.defineProperty(a,"inheritsComments",{enumerable:!0,get:function(){return V81.default}});Object.defineProperty(a,"is",{enumerable:!0,get:function(){return N81.default}});Object.defineProperty(a,"isBinding",{enumerable:!0,get:function(){return k81.default}});Object.defineProperty(a,"isBlockScoped",{enumerable:!0,get:function(){return E81.default}});Object.defineProperty(a,"isImmutable",{enumerable:!0,get:function(){return O81.default}});Object.defineProperty(a,"isLet",{enumerable:!0,get:function(){return v81.default}});Object.defineProperty(a,"isNode",{enumerable:!0,get:function(){return _81.default}});Object.defineProperty(a,"isNodesEquivalent",{enumerable:!0,get:function(){return g81.default}});Object.defineProperty(a,"isPlaceholderType",{enumerable:!0,get:function(){return b81.default}});Object.defineProperty(a,"isReferenced",{enumerable:!0,get:function(){return h81.default}});Object.defineProperty(a,"isScope",{enumerable:!0,get:function(){return y81.default}});Object.defineProperty(a,"isSpecifierDefault",{enumerable:!0,get:function(){return m81.default}});Object.defineProperty(a,"isType",{enumerable:!0,get:function(){return x81.default}});Object.defineProperty(a,"isValidES3Identifier",{enumerable:!0,get:function(){return l81.default}});Object.defineProperty(a,"isValidIdentifier",{enumerable:!0,get:function(){return c81.default}});Object.defineProperty(a,"isVar",{enumerable:!0,get:function(){return a81.default}});Object.defineProperty(a,"matchesPattern",{enumerable:!0,get:function(){return r81.default}});Object.defineProperty(a,"prependToMemberExpression",{enumerable:!0,get:function(){return D81.default}});a.react=void 0;Object.defineProperty(a,"removeComments",{enumerable:!0,get:function(){return Y81.default}});Object.defineProperty(a,"removeProperties",{enumerable:!0,get:function(){return I81.default}});Object.defineProperty(a,"removePropertiesDeep",{enumerable:!0,get:function(){return A81.default}});Object.defineProperty(a,"removeTypeDuplicates",{enumerable:!0,get:function(){return C81.default}});Object.defineProperty(a,"shallowEqual",{enumerable:!0,get:function(){return w81.default}});Object.defineProperty(a,"toBindingIdentifierName",{enumerable:!0,get:function(){return z81.default}});Object.defineProperty(a,"toBlock",{enumerable:!0,get:function(){return U81.default}});Object.defineProperty(a,"toComputedKey",{enumerable:!0,get:function(){return K81.default}});Object.defineProperty(a,"toExpression",{enumerable:!0,get:function(){return B81.default}});Object.defineProperty(a,"toIdentifier",{enumerable:!0,get:function(){return $81.default}});Object.defineProperty(a,"toKeyAlias",{enumerable:!0,get:function(){return R81.default}});Object.defineProperty(a,"toStatement",{enumerable:!0,get:function(){return M81.default}});Object.defineProperty(a,"traverse",{enumerable:!0,get:function(){return PG.default}});Object.defineProperty(a,"traverseFast",{enumerable:!0,get:function(){return T81.default}});Object.defineProperty(a,"validate",{enumerable:!0,get:function(){return i81.default}});Object.defineProperty(a,"valueToNode",{enumerable:!0,get:function(){return q81.default}});var r61=eV(),i61=GQ(),u61=RY(),d61=FY(),oX=DY();Object.keys(oX).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in a&&a[G]===oX[G])return;Object.defineProperty(a,G,{enumerable:!0,get:function(){return oX[G]}})});var s61=CY(),fz=TY(),p61=vY(),eX=z2();Object.keys(eX).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in a&&a[G]===eX[G])return;Object.defineProperty(a,G,{enumerable:!0,get:function(){return eX[G]}})});var tX=_Y();Object.keys(tX).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in a&&a[G]===tX[G])return;Object.defineProperty(a,G,{enumerable:!0,get:function(){return tX[G]}})});var G7=kX();Object.keys(G7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in a&&a[G]===G7[G])return;Object.defineProperty(a,G,{enumerable:!0,get:function(){return G7[G]}})});var n61=T0(),o61=aY(),e61=iY(),t61=dY(),G81=pY(),J81=eY(),X81=OX(),H81=vX(),Z81=_X(),V81=bX(),Q81=gX(),Y81=VW(),J7=WW();Object.keys(J7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in a&&a[G]===J7[G])return;Object.defineProperty(a,G,{enumerable:!0,get:function(){return J7[G]}})});var X7=P0();Object.keys(X7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in a&&a[G]===X7[G])return;Object.defineProperty(a,G,{enumerable:!0,get:function(){return X7[G]}})});var W81=KW(),z81=RW(),U81=yX(),K81=qW(),B81=DW(),$81=mX(),R81=LW(),M81=NW(),q81=OW(),H7=w2();Object.keys(H7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in a&&a[G]===H7[G])return;Object.defineProperty(a,G,{enumerable:!0,get:function(){return H7[G]}})});var F81=_W(),j81=hW(),D81=mW(),I81=cX(),A81=aX(),C81=NX(),f81=lW(),S81=P9(),P81=iW(),L81=sW(),PG=nW();Object.keys(PG).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in a&&a[G]===PG[G])return;Object.defineProperty(a,G,{enumerable:!0,get:function(){return PG[G]}})});var T81=lX(),w81=zG(),N81=N5(),k81=eW(),E81=Xz(),O81=Zz(),v81=dX(),_81=wX(),g81=Yz(),b81=WX(),h81=zz(),y81=Kz(),m81=Rz(),x81=UG(),l81=qz(),c81=k5(),a81=jz(),r81=QX(),i81=MG(),u81=YX(),Z7=r1();Object.keys(Z7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(Object.prototype.hasOwnProperty.call(W0,G))return;if(G in a&&a[G]===Z7[G])return;Object.defineProperty(a,G,{enumerable:!0,get:function(){return Z7[G]}})});var d81=K9(),Ov1=a.react={isReactComponent:r61.default,isCompatTag:i61.default,buildChildren:u61.default};a.toSequenceExpression=Cz().default;if(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 Ez=S((Nz)=>{function v5(G,J){if(!G)return J;if(V7(G)||J41(G)){if(v5(G.object,J),G.computed)v5(G.property,J)}else if(Tz(G)||Lz(G))v5(G.left,J),v5(G.right,J);else if(wz(G)||G41(G))J.hasCall=!0,v5(G.callee,J);else if(L9(G))J.hasFunction=!0;else if(LG(G))J.hasHelper=J.hasHelper||G.callee&&z0(G.callee);return J}function Pz(G){return v5(G,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function z0(G){if(!G)return!1;if(V7(G))return z0(G.object)||z0(G.property);else if(LG(G))return G.name==="require"||G.name.charCodeAt(0)===95;else if(wz(G))return z0(G.callee);else if(Tz(G)||Lz(G))return LG(G.left)&&z0(G.left)||z0(G.right);else return!1}function H41(G){return e81(G)||t81(G)||n81(G)||LG(G)||V7(G)}Object.defineProperty(Nz,"__esModule",{value:!0});Nz.nodes=void 0;var s81=F1(),{FLIPPED_ALIAS_KEYS:p81,isArrayExpression:n81,isAssignmentExpression:Lz,isBinary:Tz,isBlockStatement:o81,isCallExpression:wz,isFunction:L9,isIdentifier:LG,isLiteral:e81,isMemberExpression:V7,isObjectExpression:t81,isOptionalCallExpression:G41,isOptionalMemberExpression:J41,isStringLiteral:X41}=s81,t0=Nz.nodes={AssignmentExpression(G){const J=Pz(G.right);if(J.hasCall&&J.hasHelper||J.hasFunction)return J.hasFunction?3:2},SwitchCase(G,J){return(!!G.consequent.length||J.cases[0]===G?1:0)|(!G.consequent.length&&J.cases[J.cases.length-1]===G?2:0)},LogicalExpression(G){if(L9(G.left)||L9(G.right))return 2},Literal(G){if(X41(G)&&G.value==="use strict")return 2},CallExpression(G){if(L9(G.callee)||z0(G))return 3},OptionalCallExpression(G){if(L9(G.callee))return 3},VariableDeclaration(G){for(let J=0;J<G.declarations.length;J++){const X=G.declarations[J];let H=z0(X.id)&&!H41(X.init);if(!H&&X.init){const Z=Pz(X.init);H=z0(X.init)&&Z.hasCall||Z.hasFunction}if(H)return 3}},IfStatement(G){if(o81(G.consequent))return 3}};t0.ObjectProperty=t0.ObjectTypeProperty=t0.ObjectMethod=function(G,J){if(J.properties[0]===G)return 1};t0.ObjectTypeCallProperty=function(G,J){var X;if(J.callProperties[0]===G&&!((X=J.properties)!=null&&X.length))return 1};t0.ObjectTypeIndexer=function(G,J){var X,H;if(J.indexers[0]===G&&!((X=J.properties)!=null&&X.length)&&!((H=J.callProperties)!=null&&H.length))return 1};t0.ObjectTypeInternalSlot=function(G,J){var X,H,Z;if(J.internalSlots[0]===G&&!((X=J.properties)!=null&&X.length)&&!((H=J.callProperties)!=null&&H.length)&&!((Z=J.indexers)!=null&&Z.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([G,J]){[G].concat(p81[G]||[]).forEach(function(X){const H=J?3:0;t0[X]=()=>H})})});var xz=S((mz)=>{function vz(G,J){if(J==="BinaryExpression"||J==="LogicalExpression")return Oz.get(G.operator);if(J==="TSAsExpression"||J==="TSSatisfiesExpression")return Oz.get("in")}function Q7(G){return G==="TSAsExpression"||G==="TSSatisfiesExpression"||G==="TSTypeAssertion"}function R41(G,J){return V41(J)}function M41(G,J,X){const H=J.type;return H==="UnionTypeAnnotation"||H==="IntersectionTypeAnnotation"||H==="ArrayTypeAnnotation"||Boolean(X&k2.TokenContext.arrowFlowReturnType)}function q41(G,J){return wG(G,J)||TG(G,J)}function gz(G){return Boolean(G&(k2.TokenContext.expressionStatement|k2.TokenContext.arrowBody))}function F41(G,J,X){return gz(X)}function j41(G,J,X){return!G.async&&Boolean(X&k2.TokenContext.expressionStatement)}function bz(G,J){const X=J.type;if(G.type==="BinaryExpression"&&G.operator==="**"&&X==="BinaryExpression"&&J.operator==="**")return J.left===G;if(TG(G,J))return!0;if(wG(G,J)||X==="UnaryExpression"||X==="SpreadElement"||X==="AwaitExpression")return!0;const H=vz(J,X);if(H!=null){const Z=vz(G,G.type);if(H===Z&&X==="BinaryExpression"&&J.right===G||H>Z)return!0}return}function D41(G,J){const X=J.type;return X==="ArrayTypeAnnotation"||X==="NullableTypeAnnotation"||X==="IntersectionTypeAnnotation"||X==="UnionTypeAnnotation"}function I41(G,J){return z41(J)&&J.objectType===G}function A41(G,J){if((J.type==="AssignmentExpression"||J.type==="AssignmentPattern")&&J.left===G)return!0;if(J.type==="BinaryExpression"&&(J.operator==="|"||J.operator==="&")&&G===J.left)return!0;return bz(G,J)}function C41(G,J){const X=J.type;return X==="TSArrayType"||X==="TSOptionalType"||X==="TSIntersectionType"||X==="TSRestType"}function f41(G,J){const X=J.type;return X==="TSArrayType"||X==="TSOptionalType"}function S41(G,J){const X=J.type;return(X==="CallExpression"||X==="OptionalCallExpression"||X==="NewExpression"||X==="TSInstantiationExpression")&&!!J.typeParameters}function P41(G,J,X,H){return G.operator==="in"&&H}function L41(G,J){const X=J.type;if(X==="SequenceExpression"||X==="ParenthesizedExpression"||X==="MemberExpression"&&J.property===G||X==="OptionalMemberExpression"&&J.property===G||X==="TemplateLiteral")return!1;if(X==="ClassDeclaration")return!0;if(X==="ForOfStatement")return J.right===G;if(X==="ExportDefaultDeclaration")return!0;return!$41(J)}function T41(G,J){const X=J.type;return X==="BinaryExpression"||X==="LogicalExpression"||X==="UnaryExpression"||X==="SpreadElement"||wG(G,J)||X==="AwaitExpression"&&B41(G)||X==="ConditionalExpression"&&G===J.test||TG(G,J)||Q7(X)}function w41(G,J,X){return Boolean(X&(k2.TokenContext.expressionStatement|k2.TokenContext.exportDefault))}function hz(G,J){return wG(G,J)||Q41(J)&&J.operator==="**"&&J.left===G||TG(G,J)}function N41(G,J,X){return Boolean(X&(k2.TokenContext.expressionStatement|k2.TokenContext.exportDefault))}function yz(G,J){const X=J.type;if(X==="UnaryExpression"||X==="SpreadElement"||X==="BinaryExpression"||X==="LogicalExpression"||X==="ConditionalExpression"&&J.test===G||X==="AwaitExpression"||Q7(X))return!0;return hz(G,J)}function k41(G,J){return Y41(J)&&J.callee===G||_z(J)&&J.object===G}function E41(G,J,X){if(gz(X)&&U41(G.left))return!0;else return yz(G,J)}function O41(G,J){const X=J.type;if(Q7(X))return!0;if(X!=="LogicalExpression")return!1;switch(G.operator){case"||":return J.operator==="??"||J.operator==="&&";case"&&":return J.operator==="??";case"??":return J.operator!=="??"}}function v41(G,J,X){var H;const Z=J.type;if((H=G.extra)!=null&&H.parenthesized&&Z==="AssignmentExpression"&&J.left===G){const V=J.right.type;if((V==="FunctionExpression"||V==="ClassExpression")&&J.right.id==null)return!0}if(G.name==="let"){if((_z(J,{object:G,computed:!0})||K41(J,{object:G,computed:!0,optional:!1}))&&X&(k2.TokenContext.expressionStatement|k2.TokenContext.forHead|k2.TokenContext.forInHead))return!0;return Boolean(X&k2.TokenContext.forOfHead)}return G.name==="async"&&W41(J,{left:G,await:!1})}Object.defineProperty(mz,"__esModule",{value:!0});mz.AssignmentExpression=E41;mz.Binary=bz;mz.BinaryExpression=P41;mz.ClassExpression=w41;mz.ArrowFunctionExpression=mz.ConditionalExpression=yz;mz.DoExpression=j41;mz.FunctionExpression=N41;mz.FunctionTypeAnnotation=M41;mz.Identifier=v41;mz.LogicalExpression=O41;mz.NullableTypeAnnotation=R41;mz.ObjectExpression=F41;mz.OptionalIndexedAccessType=I41;mz.OptionalCallExpression=mz.OptionalMemberExpression=k41;mz.SequenceExpression=L41;mz.TSSatisfiesExpression=mz.TSAsExpression=A41;mz.TSInferType=f41;mz.TSInstantiationExpression=S41;mz.UnaryLike=mz.TSTypeAssertion=hz;mz.TSIntersectionType=mz.TSUnionType=C41;mz.IntersectionTypeAnnotation=mz.UnionTypeAnnotation=D41;mz.UpdateExpression=q41;mz.AwaitExpression=mz.YieldExpression=T41;var Z41=F1(),k2=w0(),{isArrayTypeAnnotation:V41,isBinaryExpression:Q41,isCallExpression:Y41,isForOfStatement:W41,isIndexedAccessType:z41,isMemberExpression:_z,isObjectPattern:U41,isOptionalMemberExpression:K41,isYieldExpression:B41,isStatement:$41}=Z41,Oz=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]]),TG=(G,J)=>{const X=J.type;return(X==="ClassDeclaration"||X==="ClassExpression")&&J.superClass===G},wG=(G,J)=>{const X=J.type;return(X==="MemberExpression"||X==="OptionalMemberExpression")&&J.object===G||(X==="CallExpression"||X==="OptionalCallExpression"||X==="NewExpression")&&J.callee===G||X==="TaggedTemplateExpression"&&J.tag===G||X==="TSNonNullExpression"}});var w0=S((rz)=>{function cz(G){const J=new Map;function X(H,Z){const V=J.get(H);J.set(H,V?function(Q,Y,W,z){var B;return(B=V(Q,Y,W,z))!=null?B:Z(Q,Y,W,z)}:Z)}for(let H of Object.keys(G)){const Z=QG1[H];if(Z)for(let V of Z)X(V,G[H]);else X(H,G[H])}return J}function az(G){if(lz(G))return!0;return UG1(G)&&az(G.object)}function W7(G,J,X){var H;if(!G)return!1;if(zG1(G))G=G.expression;const Z=(H=RG1.get(G.type))==null?void 0:H(G,J);if(typeof Z==="number")return(Z&X)!==0;return!1}function MG1(G,J){return W7(G,J,1)}function qG1(G,J){return W7(G,J,2)}function FG1(G,J,X,H){var Z;if(!J)return!1;if(KG1(J)&&J.callee===G){if(az(G))return!0}if(WG1(J))return!Y7(G)&&!(lz(G)&&Y7(G.callee))&&!BG1(G);return(Z=$G1.get(G.type))==null?void 0:Z(G,J,X,H)}function Y7(G){switch(G.type){case"Identifier":return!0;case"MemberExpression":return!G.computed&&G.property.type==="Identifier"&&Y7(G.object);default:return!1}}function jG1(G,J){const X=YG1[G.type];for(let H=X.length-1;H>=0;H--){const Z=G[X[H]];if(Z===J)return!0;else if(Array.isArray(Z)){let V=Z.length-1;while(V>=0&&Z[V]===null)V--;return V>=0&&Z[V]===J}else if(Z)return!1}return!1}Object.defineProperty(rz,"__esModule",{value:!0});rz.TokenContext=void 0;rz.isLastChild=jG1;rz.needsParens=FG1;rz.needsWhitespace=W7;rz.needsWhitespaceAfter=qG1;rz.needsWhitespaceBefore=MG1;var HG1=Ez(),ZG1=xz(),VG1=F1(),{FLIPPED_ALIAS_KEYS:QG1,VISITOR_KEYS:YG1,isCallExpression:lz,isDecorator:WG1,isExpressionStatement:zG1,isMemberExpression:UG1,isNewExpression:KG1,isParenthesizedExpression:BG1}=VG1,rv1=rz.TokenContext={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64},$G1=cz(ZG1),RG1=cz(HG1.nodes)});var dz=S((uz)=>{function SG1(G){this.print(G.tag),this.print(G.typeParameters),this.print(G.quasi)}function PG1(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function LG1(G){const J=G.quasis;let X="`";for(let H=0;H<J.length;H++)if(X+=J[H].value.raw,H+1<J.length)this.token(X+"${",!0),this.print(G.expressions[H]),X="}";this.token(X+"`",!0)}Object.defineProperty(uz,"__esModule",{value:!0});uz.TaggedTemplateExpression=SG1;uz.TemplateElement=PG1;uz.TemplateLiteral=LG1});var nz=S((pz)=>{function gG1(G){const{operator:J}=G;if(J==="void"||J==="delete"||J==="typeof"||J==="throw")this.word(J),this.space();else this.token(J);this.print(G.argument)}function bG1(G){if(G.async)this.word("async",!0),this.space();this.word("do"),this.space(),this.print(G.body)}function hG1(G){this.tokenChar(40);const J=this.enterDelimited();this.print(G.expression),J(),this.rightParens(G)}function yG1(G){if(G.prefix)this.token(G.operator),this.print(G.argument);else this.print(G.argument,!0),this.token(G.operator)}function mG1(G){this.print(G.test),this.space(),this.tokenChar(63),this.space(),this.print(G.consequent),this.space(),this.tokenChar(58),this.space(),this.print(G.alternate)}function xG1(G,J){if(this.word("new"),this.space(),this.print(G.callee),this.format.minified&&G.arguments.length===0&&!G.optional&&!OG1(J,{callee:G})&&!z7(J)&&!vG1(J))return;if(this.print(G.typeArguments),this.print(G.typeParameters),G.optional)this.token("?.");this.tokenChar(40);const X=this.enterDelimited();this.printList(G.arguments),X(),this.rightParens(G)}function lG1(G){this.printList(G.expressions)}function cG1(){this.word("this")}function aG1(){this.word("super")}function rG1(G){if(typeof this.format.decoratorsBeforeExport==="boolean")return this.format.decoratorsBeforeExport;return typeof G.start==="number"&&G.start===G.declaration.start}function iG1(G){this.tokenChar(64),this.print(G.expression),this.newline()}function uG1(G){let{computed:J}=G;const{optional:X,property:H}=G;if(this.print(G.object),!J&&z7(H))throw new TypeError("Got a MemberExpression for MemberExpression property");if(sz(H)&&typeof H.value==="number")J=!0;if(X)this.token("?.");if(J)this.tokenChar(91),this.print(H),this.tokenChar(93);else{if(!X)this.tokenChar(46);this.print(H)}}function dG1(G){if(this.print(G.callee),this.print(G.typeParameters),G.optional)this.token("?.");this.print(G.typeArguments),this.tokenChar(40);const J=this.enterDelimited();this.printList(G.arguments),J(),this.rightParens(G)}function sG1(G){this.print(G.callee),this.print(G.typeArguments),this.print(G.typeParameters),this.tokenChar(40);const J=this.enterDelimited();this.printList(G.arguments),J(),this.rightParens(G)}function pG1(){this.word("import")}function nG1(G){if(this.word("await"),G.argument)this.space(),this.printTerminatorless(G.argument)}function oG1(G){if(this.word("yield",!0),G.delegate){if(this.tokenChar(42),G.argument)this.space(),this.print(G.argument)}else if(G.argument)this.space(),this.printTerminatorless(G.argument)}function eG1(){this.semicolon(!0)}function tG1(G){this.tokenContext|=EG1.TokenContext.expressionStatement,this.print(G.expression),this.semicolon()}function GJ1(G){if(this.print(G.left),G.left.type==="Identifier"||_G1(G.left)){if(G.left.optional)this.tokenChar(63);this.print(G.left.typeAnnotation)}this.space(),this.tokenChar(61),this.space(),this.print(G.right)}function JJ1(G){if(this.print(G.left),this.space(),G.operator==="in"||G.operator==="instanceof")this.word(G.operator);else this.token(G.operator),this._endsWithDiv=G.operator==="/";this.space(),this.print(G.right)}function XJ1(G){this.print(G.object),this.token("::"),this.print(G.callee)}function HJ1(G){if(this.print(G.object),!G.computed&&z7(G.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let J=G.computed;if(sz(G.property)&&typeof G.property.value==="number")J=!0;if(J){const X=this.enterDelimited();this.tokenChar(91),this.print(G.property),this.tokenChar(93),X()}else this.tokenChar(46),this.print(G.property)}function ZJ1(G){this.print(G.meta),this.tokenChar(46),this.print(G.property)}function VJ1(G){this.tokenChar(35),this.print(G.id)}function QJ1(G){this.tokenChar(37),this.word(G.name)}function YJ1(G){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:J}=G;if(J.body.length||J.directives.length)this.newline();this.print(J),this.dedent(),this.rightBrace(G)}Object.defineProperty(pz,"__esModule",{value:!0});pz.LogicalExpression=pz.BinaryExpression=pz.AssignmentExpression=JJ1;pz.AssignmentPattern=GJ1;pz.AwaitExpression=nG1;pz.BindExpression=XJ1;pz.CallExpression=sG1;pz.ConditionalExpression=mG1;pz.Decorator=iG1;pz.DoExpression=bG1;pz.EmptyStatement=eG1;pz.ExpressionStatement=tG1;pz.Import=pG1;pz.MemberExpression=HJ1;pz.MetaProperty=ZJ1;pz.ModuleExpression=YJ1;pz.NewExpression=xG1;pz.OptionalCallExpression=dG1;pz.OptionalMemberExpression=uG1;pz.ParenthesizedExpression=hG1;pz.PrivateName=VJ1;pz.SequenceExpression=lG1;pz.Super=aG1;pz.ThisExpression=cG1;pz.UnaryExpression=gG1;pz.UpdateExpression=yG1;pz.V8IntrinsicIdentifier=QJ1;pz.YieldExpression=oG1;pz._shouldPrintDecoratorsBeforeExport=rG1;var kG1=F1(),EG1=w0(),{isCallExpression:OG1,isLiteral:sz,isMemberExpression:z7,isNewExpression:vG1,isPattern:_G1}=kG1});var XU=S((GU)=>{function mJ1(G){this.word("with"),this.space(),this.tokenChar(40),this.print(G.object),this.tokenChar(41),this.printBlock(G)}function xJ1(G){this.word("if"),this.space(),this.tokenChar(40),this.print(G.test),this.tokenChar(41),this.space();const J=G.alternate&&hJ1(ez(G.consequent));if(J)this.tokenChar(123),this.newline(),this.indent();if(this.printAndIndentOnComments(G.consequent),J)this.dedent(),this.newline(),this.tokenChar(125);if(G.alternate){if(this.endsWith(125))this.space();this.word("else"),this.space(),this.printAndIndentOnComments(G.alternate)}}function ez(G){const{body:J}=G;if(yJ1(J)===!1)return G;return ez(J)}function lJ1(G){this.word("for"),this.space(),this.tokenChar(40);{const J=this.enterForStatementInit();this.tokenContext|=U7.TokenContext.forHead,this.print(G.init),J()}if(this.tokenChar(59),G.test)this.space(),this.print(G.test);if(this.tokenChar(59),G.update)this.space(),this.print(G.update);this.tokenChar(41),this.printBlock(G)}function cJ1(G){this.word("while"),this.space(),this.tokenChar(40),this.print(G.test),this.tokenChar(41),this.printBlock(G)}function tz(G){this.word("for"),this.space();const J=G.type==="ForOfStatement";if(J&&G.await)this.word("await"),this.space();this.noIndentInnerCommentsHere(),this.tokenChar(40);{const X=J?null:this.enterForStatementInit();this.tokenContext|=J?U7.TokenContext.forOfHead:U7.TokenContext.forInHead,this.print(G.left),X==null||X()}this.space(),this.word(J?"of":"in"),this.space(),this.print(G.right),this.tokenChar(41),this.printBlock(G)}function aJ1(G){this.word("do"),this.space(),this.print(G.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(G.test),this.tokenChar(41),this.semicolon()}function NG(G,J){if(J)G.space(),G.printTerminatorless(J);G.semicolon()}function rJ1(G){this.word("break"),NG(this,G.label)}function iJ1(G){this.word("continue"),NG(this,G.label)}function uJ1(G){this.word("return"),NG(this,G.argument)}function dJ1(G){this.word("throw"),NG(this,G.argument)}function sJ1(G){this.print(G.label),this.tokenChar(58),this.space(),this.print(G.body)}function pJ1(G){if(this.word("try"),this.space(),this.print(G.block),this.space(),G.handlers)this.print(G.handlers[0]);else this.print(G.handler);if(G.finalizer)this.space(),this.word("finally"),this.space(),this.print(G.finalizer)}function nJ1(G){if(this.word("catch"),this.space(),G.param)this.tokenChar(40),this.print(G.param),this.print(G.param.typeAnnotation),this.tokenChar(41),this.space();this.print(G.body)}function oJ1(G){this.word("switch"),this.space(),this.tokenChar(40),this.print(G.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(G.cases,{indent:!0,addNewlines(J,X){if(!J&&G.cases[G.cases.length-1]===X)return-1}}),this.rightBrace(G)}function eJ1(G){if(G.test)this.word("case"),this.space(),this.print(G.test),this.tokenChar(58);else this.word("default"),this.tokenChar(58);if(G.consequent.length)this.newline(),this.printSequence(G.consequent,{indent:!0})}function tJ1(){this.word("debugger"),this.semicolon()}function GX1(G,J){if(G.declare)this.word("declare"),this.space();const{kind:X}=G;if(X==="await using")this.word("await"),this.space(),this.word("using",!0);else this.word(X,X==="using");this.space();let H=!1;if(!oz(J)){for(let Z of G.declarations)if(Z.init)H=!0}if(this.printList(G.declarations,{separator:H?function(){this.tokenChar(44),this.newline()}:void 0,indent:G.declarations.length>1?!0:!1}),oz(J)){if(bJ1(J)){if(J.init===G)return}else if(J.left===G)return}this.semicolon()}function JX1(G){if(this.print(G.id),G.definite)this.tokenChar(33);if(this.print(G.id.typeAnnotation),G.init)this.space(),this.tokenChar(61),this.space(),this.print(G.init)}Object.defineProperty(GU,"__esModule",{value:!0});GU.BreakStatement=rJ1;GU.CatchClause=nJ1;GU.ContinueStatement=iJ1;GU.DebuggerStatement=tJ1;GU.DoWhileStatement=aJ1;GU.ForOfStatement=GU.ForInStatement=void 0;GU.ForStatement=lJ1;GU.IfStatement=xJ1;GU.LabeledStatement=sJ1;GU.ReturnStatement=uJ1;GU.SwitchCase=eJ1;GU.SwitchStatement=oJ1;GU.ThrowStatement=dJ1;GU.TryStatement=pJ1;GU.VariableDeclaration=GX1;GU.VariableDeclarator=JX1;GU.WhileStatement=cJ1;GU.WithStatement=mJ1;var gJ1=F1(),U7=w0(),{isFor:oz,isForStatement:bJ1,isIfStatement:hJ1,isStatement:yJ1}=gJ1,nv1=GU.ForInStatement=tz,ov1=GU.ForOfStatement=tz});var ZU=S((HU)=>{function fX1(G,J){if(!(AX1(J)||CX1(J))||!this._shouldPrintDecoratorsBeforeExport(J))this.printJoin(G.decorators);if(G.declare)this.word("declare"),this.space();if(G.abstract)this.word("abstract"),this.space();if(this.word("class"),G.id)this.space(),this.print(G.id);if(this.print(G.typeParameters),G.superClass)this.space(),this.word("extends"),this.space(),this.print(G.superClass),this.print(G.superTypeParameters);if(G.implements)this.space(),this.word("implements"),this.space(),this.printList(G.implements);this.space(),this.print(G.body)}function SX1(G){if(this.tokenChar(123),G.body.length===0)this.tokenChar(125);else{this.newline();const J=this.enterDelimited();if(this.printSequence(G.body,{indent:!0}),J(),!this.endsWith(10))this.newline();this.rightBrace(G)}}function PX1(G){var J;this.printJoin(G.decorators);const X=(J=G.key.loc)==null||(J=J.end)==null?void 0:J.line;if(X)this.catchUp(X);if(this.tsPrintClassMemberModifiers(G),G.computed)this.tokenChar(91),this.print(G.key),this.tokenChar(93);else this._variance(G),this.print(G.key);if(G.optional)this.tokenChar(63);if(G.definite)this.tokenChar(33);if(this.print(G.typeAnnotation),G.value)this.space(),this.tokenChar(61),this.space(),this.print(G.value);this.semicolon()}function LX1(G){var J;this.printJoin(G.decorators);const X=(J=G.key.loc)==null||(J=J.end)==null?void 0:J.line;if(X)this.catchUp(X);if(this.tsPrintClassMemberModifiers(G),this.word("accessor",!0),this.space(),G.computed)this.tokenChar(91),this.print(G.key),this.tokenChar(93);else this._variance(G),this.print(G.key);if(G.optional)this.tokenChar(63);if(G.definite)this.tokenChar(33);if(this.print(G.typeAnnotation),G.value)this.space(),this.tokenChar(61),this.space(),this.print(G.value);this.semicolon()}function TX1(G){if(this.printJoin(G.decorators),G.static)this.word("static"),this.space();if(this.print(G.key),this.print(G.typeAnnotation),G.value)this.space(),this.tokenChar(61),this.space(),this.print(G.value);this.semicolon()}function wX1(G){this._classMethodHead(G),this.space(),this.print(G.body)}function NX1(G){this._classMethodHead(G),this.space(),this.print(G.body)}function kX1(G){var J;this.printJoin(G.decorators);const X=(J=G.key.loc)==null||(J=J.end)==null?void 0:J.line;if(X)this.catchUp(X);this.tsPrintClassMemberModifiers(G),this._methodHead(G)}function EX1(G){if(this.word("static"),this.space(),this.tokenChar(123),G.body.length===0)this.tokenChar(125);else this.newline(),this.printSequence(G.body,{indent:!0}),this.rightBrace(G)}Object.defineProperty(HU,"__esModule",{value:!0});HU.ClassAccessorProperty=LX1;HU.ClassBody=SX1;HU.ClassExpression=HU.ClassDeclaration=fX1;HU.ClassMethod=wX1;HU.ClassPrivateMethod=NX1;HU.ClassPrivateProperty=TX1;HU.ClassProperty=PX1;HU.StaticBlock=EX1;HU._classMethodHead=kX1;var IX1=F1(),{isExportDefaultDeclaration:AX1,isExportNamedDeclaration:CX1}=IX1});var QU=S((VU)=>{function rX1(G,J,X){this.print(G.typeParameters);const H=tX1.call(this,J,X);if(H)this.sourceIdentifierName(H.name,H.pos);this.tokenChar(40),this._parameters(G.params),this.tokenChar(41);const Z=G.type==="ArrowFunctionExpression";this.print(G.returnType,Z),this._noLineTerminator=Z}function iX1(G){const J=this.enterDelimited(),X=G.length;for(let H=0;H<X;H++)if(this._param(G[H]),H<G.length-1)this.tokenChar(44),this.space();J()}function uX1(G){if(this.printJoin(G.decorators),this.print(G),G.optional)this.tokenChar(63);this.print(G.typeAnnotation)}function dX1(G){const{kind:J,key:X}=G;if(J==="get"||J==="set")this.word(J),this.space();if(G.async)this.word("async",!0),this.space();if(J==="method"||J==="init"){if(G.generator)this.tokenChar(42)}if(G.computed)this.tokenChar(91),this.print(X),this.tokenChar(93);else this.print(X);if(G.optional)this.tokenChar(63);this._params(G,G.computed&&G.key.type!=="StringLiteral"?void 0:G.key,void 0)}function sX1(G,J){if(G.predicate){if(!G.returnType)this.tokenChar(58);this.space(),this.print(G.predicate,J)}}function pX1(G,J){if(G.async)this.word("async"),this._endsWithInnerRaw=!1,this.space();if(this.word("function"),G.generator)this._endsWithInnerRaw=!1,this.tokenChar(42);if(this.space(),G.id)this.print(G.id);if(this._params(G,G.id,J),G.type!=="TSDeclareFunction")this._predicate(G)}function nX1(G,J){this._functionHead(G,J),this.space(),this.print(G.body)}function oX1(G,J){if(G.async)this.word("async",!0),this.space();let X;if(!this.format.retainLines&&G.params.length===1&&aX1(X=G.params[0])&&!eX1(G,X))this.print(X,!0);else this._params(G,void 0,J);this._predicate(G,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=cX1.TokenContext.arrowBody,this.print(G.body)}function eX1(G,J){var X,H;return!!(G.typeParameters||G.returnType||G.predicate||J.typeAnnotation||J.optional||(X=J.leadingComments)!=null&&X.length||(H=J.trailingComments)!=null&&H.length)}function tX1(G,J){let X=G;if(!X&&J){const W=J.type;if(W==="VariableDeclarator")X=J.id;else if(W==="AssignmentExpression"||W==="AssignmentPattern")X=J.left;else if(W==="ObjectProperty"||W==="ClassProperty"){if(!J.computed||J.key.type==="StringLiteral")X=J.key}else if(W==="ClassPrivateProperty"||W==="ClassAccessorProperty")X=J.key}if(!X)return;let H;if(X.type==="Identifier"){var Z,V;H={pos:(Z=X.loc)==null?void 0:Z.start,name:((V=X.loc)==null?void 0:V.identifierName)||X.name}}else if(X.type==="PrivateName"){var Q;H={pos:(Q=X.loc)==null?void 0:Q.start,name:"#"+X.id.name}}else if(X.type==="StringLiteral"){var Y;H={pos:(Y=X.loc)==null?void 0:Y.start,name:X.value}}return H}Object.defineProperty(VU,"__esModule",{value:!0});VU.ArrowFunctionExpression=oX1;VU.FunctionDeclaration=VU.FunctionExpression=nX1;VU._functionHead=pX1;VU._methodHead=dX1;VU._param=uX1;VU._parameters=iX1;VU._params=rX1;VU._predicate=sX1;var lX1=F1(),cX1=w0(),{isIdentifier:aX1}=lX1});var K7=S((UU)=>{function M71(G){if(G.importKind==="type"||G.importKind==="typeof")this.word(G.importKind),this.space();if(this.print(G.imported),G.local&&G.local.name!==G.imported.name)this.space(),this.word("as"),this.space(),this.print(G.local)}function q71(G){this.print(G.local)}function F71(G){this.print(G.exported)}function j71(G){if(G.exportKind==="type")this.word("type"),this.space();if(this.print(G.local),G.exported&&G.local.name!==G.exported.name)this.space(),this.word("as"),this.space(),this.print(G.exported)}function D71(G){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(G.exported)}function I71(G){const{importAttributesKeyword:J}=this.format,{attributes:X,assertions:H}=G;if(X&&!J&&!YU)YU=!0,console.warn(`You are using import attributes, without specifying the desired output syntax.
2
+ Please specify the "importAttributesKeyword" generator option, whose value can be one of:
3
+ - "with" : \`import { a } from "b" with { type: "json" };\`
4
+ - "assert" : \`import { a } from "b" assert { type: "json" };\`
5
+ - "with-legacy" : \`import { a } from "b" with type: "json";\`
6
+ `);const Z=J==="assert"||!J&&H;if(this.word(Z?"assert":"with"),this.space(),!Z&&J!=="with"){this.printList(X||H);return}this.tokenChar(123),this.space(),this.printList(X||H),this.space(),this.tokenChar(125)}function A71(G){var J,X;if(this.word("export"),this.space(),G.exportKind==="type")this.word("type"),this.space();if(this.tokenChar(42),this.space(),this.word("from"),this.space(),(J=G.attributes)!=null&&J.length||(X=G.assertions)!=null&&X.length)this.print(G.source,!0),this.space(),this._printAttributes(G);else this.print(G.source);this.semicolon()}function zU(G,J){if(U71(J.declaration)&&G._shouldPrintDecoratorsBeforeExport(J))G.printJoin(J.declaration.decorators)}function C71(G){if(zU(this,G),this.word("export"),this.space(),G.declaration){const H=G.declaration;if(this.print(H),!WU(H))this.semicolon()}else{if(G.exportKind==="type")this.word("type"),this.space();const H=G.specifiers.slice(0);let Z=!1;for(;;){const V=H[0];if(K71(V)||B71(V)){if(Z=!0,this.print(H.shift()),H.length)this.tokenChar(44),this.space()}else break}if(H.length||!H.length&&!Z){if(this.tokenChar(123),H.length)this.space(),this.printList(H),this.space();this.tokenChar(125)}if(G.source){var J,X;if(this.space(),this.word("from"),this.space(),(J=G.attributes)!=null&&J.length||(X=G.assertions)!=null&&X.length)this.print(G.source,!0),this.space(),this._printAttributes(G);else this.print(G.source)}this.semicolon()}}function f71(G){zU(this,G),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=z71.TokenContext.exportDefault;const J=G.declaration;if(this.print(J),!WU(J))this.semicolon()}function S71(G){var J,X;this.word("import"),this.space();const H=G.importKind==="type"||G.importKind==="typeof";if(H)this.noIndentInnerCommentsHere(),this.word(G.importKind),this.space();else if(G.module)this.noIndentInnerCommentsHere(),this.word("module"),this.space();else if(G.phase)this.noIndentInnerCommentsHere(),this.word(G.phase),this.space();const Z=G.specifiers.slice(0),V=!!Z.length;while(V){const Q=Z[0];if($71(Q)||R71(Q)){if(this.print(Z.shift()),Z.length)this.tokenChar(44),this.space()}else break}if(Z.length)this.tokenChar(123),this.space(),this.printList(Z),this.space(),this.tokenChar(125);else if(H&&!V)this.tokenChar(123),this.tokenChar(125);if(V||H)this.space(),this.word("from"),this.space();if((J=G.attributes)!=null&&J.length||(X=G.assertions)!=null&&X.length)this.print(G.source,!0),this.space(),this._printAttributes(G);else this.print(G.source);this.semicolon()}function P71(G){this.print(G.key),this.tokenChar(58),this.space(),this.print(G.value)}function L71(G){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(G.local)}function T71(G){if(this.word("import"),G.phase)this.tokenChar(46),this.word(G.phase);if(this.tokenChar(40),this.print(G.source),G.options!=null)this.tokenChar(44),this.space(),this.print(G.options);this.tokenChar(41)}Object.defineProperty(UU,"__esModule",{value:!0});UU.ExportAllDeclaration=A71;UU.ExportDefaultDeclaration=f71;UU.ExportDefaultSpecifier=F71;UU.ExportNamedDeclaration=C71;UU.ExportNamespaceSpecifier=D71;UU.ExportSpecifier=j71;UU.ImportAttribute=P71;UU.ImportDeclaration=S71;UU.ImportDefaultSpecifier=q71;UU.ImportExpression=T71;UU.ImportNamespaceSpecifier=L71;UU.ImportSpecifier=M71;UU._printAttributes=I71;var W71=F1(),z71=w0(),{isClassDeclaration:U71,isExportDefaultSpecifier:K71,isExportNamespaceSpecifier:B71,isImportDefaultSpecifier:$71,isImportNamespaceSpecifier:R71,isStatement:WU}=W71,YU=!1});var RU=S((Z_1,$U)=>{var KU={},l71=KU.hasOwnProperty,BU=(G,J)=>{for(let X in G)if(l71.call(G,X))J(X,G[X])},c71=(G,J)=>{if(!J)return G;return BU(J,(X,H)=>{G[X]=H}),G},a71=(G,J)=>{const X=G.length;let H=-1;while(++H<X)J(G[H])},kG=(G)=>{return"\\u"+("0000"+G).slice(-4)},T9=(G,J)=>{let X=G.toString(16);if(J)return X;return X.toUpperCase()},w9=KU.toString,r71=Array.isArray,i71=(G)=>{return typeof Buffer==="function"&&Buffer.isBuffer(G)},u71=(G)=>{return w9.call(G)=="[object Object]"},d71=(G)=>{return typeof G=="string"||w9.call(G)=="[object String]"},s71=(G)=>{return typeof G=="number"||w9.call(G)=="[object Number]"},p71=(G)=>{return typeof G=="function"},n71=(G)=>{return w9.call(G)=="[object Map]"},o71=(G)=>{return w9.call(G)=="[object Set]"},e71={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},t71=/[\\\b\f\n\r\t]/,G31=/[0-9]/,J31=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,X31=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,H31=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,N0=(G,J)=>{const X=()=>{z=W,++J.indentLevel,W=J.indent.repeat(J.indentLevel)},H={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},Z=J&&J.json;if(Z)H.quotes="double",H.wrap=!0;if(J=c71(H,J),J.quotes!="single"&&J.quotes!="double"&&J.quotes!="backtick")J.quotes="single";const V=J.quotes=="double"?'"':J.quotes=="backtick"?"`":"\'",Q=J.compact,Y=J.lowercaseHex;let W=J.indent.repeat(J.indentLevel),z="";const{__inline1__:B,__inline2__:q}=J,F=Q?"":"\n";let j,f=!0;const y=J.numbers=="binary",w=J.numbers=="octal",v=J.numbers=="decimal",h=J.numbers=="hexadecimal";if(Z&&G&&p71(G.toJSON))G=G.toJSON();if(!d71(G)){if(n71(G)){if(G.size==0)return"new Map()";if(!Q)J.__inline1__=!0,J.__inline2__=!1;return"new Map("+N0(Array.from(G),J)+")"}if(o71(G)){if(G.size==0)return"new Set()";return"new Set("+N0(Array.from(G),J)+")"}if(i71(G)){if(G.length==0)return"Buffer.from([])";return"Buffer.from("+N0(Array.from(G),J)+")"}if(r71(G)){if(j=[],J.wrap=!0,B)J.__inline1__=!1,J.__inline2__=!0;if(!q)X();if(a71(G,(e)=>{if(f=!1,q)J.__inline2__=!1;j.push((Q||q?"":W)+N0(e,J))}),f)return"[]";if(q)return"["+j.join(", ")+"]";return"["+F+j.join(","+F)+F+(Q?"":z)+"]"}else if(s71(G)){if(Z)return JSON.stringify(G);if(v)return String(G);if(h){let e=G.toString(16);if(!Y)e=e.toUpperCase();return"0x"+e}if(y)return"0b"+G.toString(2);if(w)return"0o"+G.toString(8)}else if(!u71(G)){if(Z)return JSON.stringify(G)||"null";return String(G)}else{if(j=[],J.wrap=!0,X(),BU(G,(e,$1)=>{f=!1,j.push((Q?"":W)+N0(e,J)+":"+(Q?"":" ")+N0($1,J))}),f)return"{}";return"{"+F+j.join(","+F)+F+(Q?"":z)+"}"}}const K1=J.escapeEverything?X31:H31;if(j=G.replace(K1,(e,$1,Q1,L1,E1,i)=>{if($1){if(J.minimal)return $1;const _=$1.charCodeAt(0),b=$1.charCodeAt(1);if(J.es6){const Y1=(_-55296)*1024+b-56320+65536;return"\\u{"+T9(Y1,Y)+"}"}return kG(T9(_,Y))+kG(T9(b,Y))}if(Q1)return kG(T9(Q1.charCodeAt(0),Y));if(e=="\0"&&!Z&&!G31.test(i.charAt(E1+1)))return"\\0";if(L1){if(L1==V||J.escapeEverything)return"\\"+L1;return L1}if(t71.test(e))return e71[e];if(J.minimal&&!J31.test(e))return e;const u=T9(e.charCodeAt(0),Y);if(Z||u.length>2)return kG(u);return"\\x"+("00"+u).slice(-2)}),V=="`")j=j.replace(/\$\{/g,"\\${");if(J.isScriptContext)j=j.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,Z?"\\u003C!--":"\\x3C!--");if(J.wrap)j=V+j+V;return j};N0.version="3.0.2";$U.exports=N0});var $7=S((FU)=>{function Q31(G){var J;this.sourceIdentifierName(((J=G.loc)==null?void 0:J.identifierName)||G.name),this.word(G.name)}function Y31(){this.tokenChar(63)}function W31(G){this.token("..."),this.print(G.argument)}function z31(G){const J=G.properties;if(this.tokenChar(123),J.length){const X=this.enterDelimited();this.space(),this.printList(J,{indent:!0,statement:!0}),this.space(),X()}this.sourceWithOffset("end",G.loc,-1),this.tokenChar(125)}function U31(G){this.printJoin(G.decorators),this._methodHead(G),this.space(),this.print(G.body)}function K31(G){if(this.printJoin(G.decorators),G.computed)this.tokenChar(91),this.print(G.key),this.tokenChar(93);else{if(V31(G.value)&&B7(G.key)&&G.key.name===G.value.left.name){this.print(G.value);return}if(this.print(G.key),G.shorthand&&B7(G.key)&&B7(G.value)&&G.key.name===G.value.name)return}this.tokenChar(58),this.space(),this.print(G.value)}function B31(G){const J=G.elements,X=J.length;this.tokenChar(91);const H=this.enterDelimited();for(let Z=0;Z<J.length;Z++){const V=J[Z];if(V){if(Z>0)this.space();if(this.print(V),Z<X-1)this.tokenChar(44)}else this.tokenChar(44)}H(),this.tokenChar(93)}function $31(G){const J=G.properties;let X,H;if(this.format.recordAndTupleSyntaxType==="bar")X="{|",H="|}";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).`);else X="#{",H="}";if(this.token(X),J.length)this.space(),this.printList(J,{indent:!0,statement:!0}),this.space();this.token(H)}function R31(G){const J=G.elements,X=J.length;let H,Z;if(this.format.recordAndTupleSyntaxType==="bar")H="[|",Z="|]";else if(this.format.recordAndTupleSyntaxType==="hash")H="#[",Z="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(H);for(let V=0;V<J.length;V++){const Q=J[V];if(Q){if(V>0)this.space();if(this.print(Q),V<X-1)this.tokenChar(44)}}this.token(Z)}function M31(G){this.word(`/${G.pattern}/${G.flags}`)}function q31(G){this.word(G.value?"true":"false")}function F31(){this.word("null")}function j31(G){const J=this.getPossibleRaw(G),X=this.format.jsescOption,H=G.value,Z=H+"";if(X.numbers)this.number(qU(H,X),H);else if(J==null)this.number(Z,H);else if(this.format.minified)this.number(J.length<Z.length?J:Z,H);else this.number(J,H)}function D31(G){const J=this.getPossibleRaw(G);if(!this.format.minified&&J!==void 0){this.token(J);return}const X=qU(G.value,this.format.jsescOption);this.token(X)}function I31(G){const J=this.getPossibleRaw(G);if(!this.format.minified&&J!==void 0){this.word(J);return}this.word(G.value+"n")}function A31(G){const J=this.getPossibleRaw(G);if(!this.format.minified&&J!==void 0){this.word(J);return}this.word(G.value+"m")}function C31(){const{topicToken:G}=this.format;if(MU.has(G))this.token(G);else{const J=JSON.stringify(G),X=Array.from(MU,(H)=>JSON.stringify(H));throw new Error(`The "topicToken" generator option must be one of ${X.join(", ")} (${J} received instead).`)}}function f31(G){this.print(G.expression)}function S31(G){this.print(G.callee)}function P31(){this.tokenChar(35)}Object.defineProperty(FU,"__esModule",{value:!0});FU.ArgumentPlaceholder=Y31;FU.ArrayPattern=FU.ArrayExpression=B31;FU.BigIntLiteral=I31;FU.BooleanLiteral=q31;FU.DecimalLiteral=A31;FU.Identifier=Q31;FU.NullLiteral=F31;FU.NumericLiteral=j31;FU.ObjectPattern=FU.ObjectExpression=z31;FU.ObjectMethod=U31;FU.ObjectProperty=K31;FU.PipelineBareFunction=S31;FU.PipelinePrimaryTopicReference=P31;FU.PipelineTopicExpression=f31;FU.RecordExpression=$31;FU.RegExpLiteral=M31;FU.SpreadElement=FU.RestElement=W31;FU.StringLiteral=D31;FU.TopicReference=C31;FU.TupleExpression=R31;var Z31=F1(),qU=RU(),{isAssignmentPattern:V31,isIdentifier:B7}=Z31,MU=new Set(["^^","@@","^","%","#"])});var DU=S((_G)=>{function n31(){this.word("any")}function o31(G){this.print(G.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function e31(){this.word("boolean")}function t31(G){this.word(G.value?"true":"false")}function GH1(){this.word("null")}function JH1(G,J){if(!EG(J))this.word("declare"),this.space();this.word("class"),this.space(),this._interfaceish(G)}function XH1(G,J){if(!EG(J))this.word("declare"),this.space();if(this.word("function"),this.space(),this.print(G.id),this.print(G.id.typeAnnotation.typeAnnotation),G.predicate)this.space(),this.print(G.predicate);this.semicolon()}function HH1(){this.tokenChar(37),this.word("checks")}function ZH1(G){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(G.value),this.tokenChar(41)}function VH1(G){this.word("declare"),this.space(),this.InterfaceDeclaration(G)}function QH1(G){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(G.id),this.space(),this.print(G.body)}function YH1(G){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(G.typeAnnotation)}function WH1(G){this.word("declare"),this.space(),this.TypeAlias(G)}function zH1(G,J){if(!EG(J))this.word("declare"),this.space();this.OpaqueType(G)}function UH1(G,J){if(!EG(J))this.word("declare"),this.space();this.word("var"),this.space(),this.print(G.id),this.print(G.id.typeAnnotation),this.semicolon()}function KH1(G){if(this.word("declare"),this.space(),this.word("export"),this.space(),G.default)this.word("default"),this.space();CH1.call(this,G)}function BH1(G){this.word("declare"),this.space(),d31.ExportAllDeclaration.call(this,G)}function $H1(G){const{id:J,body:X}=G;this.word("enum"),this.space(),this.print(J),this.print(X)}function OG(G,J,X){if(X)G.space(),G.word("of"),G.space(),G.word(J);G.space()}function vG(G,J){const{members:X}=J;G.token("{"),G.indent(),G.newline();for(let H of X)G.print(H),G.newline();if(J.hasUnknownMembers)G.token("..."),G.newline();G.dedent(),G.token("}")}function RH1(G){const{explicitType:J}=G;OG(this,"boolean",J),vG(this,G)}function MH1(G){const{explicitType:J}=G;OG(this,"number",J),vG(this,G)}function qH1(G){const{explicitType:J}=G;OG(this,"string",J),vG(this,G)}function FH1(G){OG(this,"symbol",!0),vG(this,G)}function jH1(G){const{id:J}=G;this.print(J),this.tokenChar(44)}function R7(G,J){G.print(J.id),G.space(),G.token("="),G.space(),G.print(J.init),G.token(",")}function DH1(G){R7(this,G)}function IH1(G){R7(this,G)}function AH1(G){R7(this,G)}function CH1(G){if(G.declaration){const J=G.declaration;if(this.print(J),!p31(J))this.semicolon()}else{if(this.tokenChar(123),G.specifiers.length)this.space(),this.printList(G.specifiers),this.space();if(this.tokenChar(125),G.source)this.space(),this.word("from"),this.space(),this.print(G.source);this.semicolon()}}function fH1(){this.tokenChar(42)}function SH1(G,J){if(this.print(G.typeParameters),this.tokenChar(40),G.this){if(this.word("this"),this.tokenChar(58),this.space(),this.print(G.this.typeAnnotation),G.params.length||G.rest)this.tokenChar(44),this.space()}if(this.printList(G.params),G.rest){if(G.params.length)this.tokenChar(44),this.space();this.token("..."),this.print(G.rest)}this.tokenChar(41);const X=J==null?void 0:J.type;if(X!=null&&(X==="ObjectTypeCallProperty"||X==="ObjectTypeInternalSlot"||X==="DeclareFunction"||X==="ObjectTypeProperty"&&J.method))this.tokenChar(58);else this.space(),this.token("=>");this.space(),this.print(G.returnType)}function PH1(G){if(this.print(G.name),G.optional)this.tokenChar(63);if(G.name)this.tokenChar(58),this.space();this.print(G.typeAnnotation)}function LH1(G){this.print(G.id),this.print(G.typeParameters,!0)}function TH1(G){var J;if(this.print(G.id),this.print(G.typeParameters),(J=G.extends)!=null&&J.length)this.space(),this.word("extends"),this.space(),this.printList(G.extends);if(G.type==="DeclareClass"){var X,H;if((X=G.mixins)!=null&&X.length)this.space(),this.word("mixins"),this.space(),this.printList(G.mixins);if((H=G.implements)!=null&&H.length)this.space(),this.word("implements"),this.space(),this.printList(G.implements)}this.space(),this.print(G.body)}function wH1(G){var J;const X=(J=G.variance)==null?void 0:J.kind;if(X!=null){if(X==="plus")this.tokenChar(43);else if(X==="minus")this.tokenChar(45)}}function NH1(G){this.word("interface"),this.space(),this._interfaceish(G)}function kH1(){this.space(),this.tokenChar(38),this.space()}function EH1(G){var J;if(this.word("interface"),(J=G.extends)!=null&&J.length)this.space(),this.word("extends"),this.space(),this.printList(G.extends);this.space(),this.print(G.body)}function OH1(G){this.printJoin(G.types,{separator:kH1})}function vH1(){this.word("mixed")}function _H1(){this.word("empty")}function gH1(G){this.tokenChar(63),this.print(G.typeAnnotation)}function bH1(){this.word("number")}function hH1(){this.word("string")}function yH1(){this.word("this")}function mH1(G){this.tokenChar(91),this.printList(G.types),this.tokenChar(93)}function xH1(G){this.word("typeof"),this.space(),this.print(G.argument)}function lH1(G){this.word("type"),this.space(),this.print(G.id),this.print(G.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(G.right),this.semicolon()}function cH1(G,J){if(this.tokenChar(58),this.space(),J.type==="ArrowFunctionExpression")this.tokenContext|=s31.TokenContext.arrowFlowReturnType;else if(G.optional)this.tokenChar(63);this.print(G.typeAnnotation)}function aH1(G){this.tokenChar(60),this.printList(G.params,{}),this.tokenChar(62)}function rH1(G){if(this._variance(G),this.word(G.name),G.bound)this.print(G.bound);if(G.default)this.space(),this.tokenChar(61),this.space(),this.print(G.default)}function iH1(G){if(this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(G.id),this.print(G.typeParameters),G.supertype)this.tokenChar(58),this.space(),this.print(G.supertype);if(G.impltype)this.space(),this.tokenChar(61),this.space(),this.print(G.impltype);this.semicolon()}function uH1(G){if(G.exact)this.token("{|");else this.tokenChar(123);const J=[...G.properties,...G.callProperties||[],...G.indexers||[],...G.internalSlots||[]];if(J.length)this.newline(),this.space(),this.printJoin(J,{addNewlines(X){if(X&&!J[0])return 1},indent:!0,statement:!0,iterator:()=>{if(J.length!==1||G.inexact)this.tokenChar(44),this.space()}}),this.space();if(G.inexact){if(this.indent(),this.token("..."),J.length)this.newline();this.dedent()}if(G.exact)this.token("|}");else this.tokenChar(125)}function dH1(G){if(G.static)this.word("static"),this.space();if(this.tokenChar(91),this.tokenChar(91),this.print(G.id),this.tokenChar(93),this.tokenChar(93),G.optional)this.tokenChar(63);if(!G.method)this.tokenChar(58),this.space();this.print(G.value)}function sH1(G){if(G.static)this.word("static"),this.space();this.print(G.value)}function pH1(G){if(G.static)this.word("static"),this.space();if(this._variance(G),this.tokenChar(91),G.id)this.print(G.id),this.tokenChar(58),this.space();this.print(G.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(G.value)}function nH1(G){if(G.proto)this.word("proto"),this.space();if(G.static)this.word("static"),this.space();if(G.kind==="get"||G.kind==="set")this.word(G.kind),this.space();if(this._variance(G),this.print(G.key),G.optional)this.tokenChar(63);if(!G.method)this.tokenChar(58),this.space();this.print(G.value)}function oH1(G){this.token("..."),this.print(G.argument)}function eH1(G){this.print(G.qualification),this.tokenChar(46),this.print(G.id)}function tH1(){this.word("symbol")}function GZ1(){this.space(),this.tokenChar(124),this.space()}function JZ1(G){this.printJoin(G.types,{separator:GZ1})}function XZ1(G){this.tokenChar(40),this.print(G.expression),this.print(G.typeAnnotation),this.tokenChar(41)}function HZ1(G){if(G.kind==="plus")this.tokenChar(43);else this.tokenChar(45)}function ZZ1(){this.word("void")}function VZ1(G){this.print(G.objectType,!0),this.tokenChar(91),this.print(G.indexType),this.tokenChar(93)}function QZ1(G){if(this.print(G.objectType),G.optional)this.token("?.");this.tokenChar(91),this.print(G.indexType),this.tokenChar(93)}Object.defineProperty(_G,"__esModule",{value:!0});_G.AnyTypeAnnotation=n31;_G.ArrayTypeAnnotation=o31;_G.BooleanLiteralTypeAnnotation=t31;_G.BooleanTypeAnnotation=e31;_G.DeclareClass=JH1;_G.DeclareExportAllDeclaration=BH1;_G.DeclareExportDeclaration=KH1;_G.DeclareFunction=XH1;_G.DeclareInterface=VH1;_G.DeclareModule=QH1;_G.DeclareModuleExports=YH1;_G.DeclareOpaqueType=zH1;_G.DeclareTypeAlias=WH1;_G.DeclareVariable=UH1;_G.DeclaredPredicate=ZH1;_G.EmptyTypeAnnotation=_H1;_G.EnumBooleanBody=RH1;_G.EnumBooleanMember=DH1;_G.EnumDeclaration=$H1;_G.EnumDefaultedMember=jH1;_G.EnumNumberBody=MH1;_G.EnumNumberMember=IH1;_G.EnumStringBody=qH1;_G.EnumStringMember=AH1;_G.EnumSymbolBody=FH1;_G.ExistsTypeAnnotation=fH1;_G.FunctionTypeAnnotation=SH1;_G.FunctionTypeParam=PH1;_G.IndexedAccessType=VZ1;_G.InferredPredicate=HH1;_G.InterfaceDeclaration=NH1;_G.GenericTypeAnnotation=_G.ClassImplements=_G.InterfaceExtends=LH1;_G.InterfaceTypeAnnotation=EH1;_G.IntersectionTypeAnnotation=OH1;_G.MixedTypeAnnotation=vH1;_G.NullLiteralTypeAnnotation=GH1;_G.NullableTypeAnnotation=gH1;Object.defineProperty(_G,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return jU.NumericLiteral}});_G.NumberTypeAnnotation=bH1;_G.ObjectTypeAnnotation=uH1;_G.ObjectTypeCallProperty=sH1;_G.ObjectTypeIndexer=pH1;_G.ObjectTypeInternalSlot=dH1;_G.ObjectTypeProperty=nH1;_G.ObjectTypeSpreadProperty=oH1;_G.OpaqueType=iH1;_G.OptionalIndexedAccessType=QZ1;_G.QualifiedTypeIdentifier=eH1;Object.defineProperty(_G,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return jU.StringLiteral}});_G.StringTypeAnnotation=hH1;_G.SymbolTypeAnnotation=tH1;_G.ThisTypeAnnotation=yH1;_G.TupleTypeAnnotation=mH1;_G.TypeAlias=lH1;_G.TypeAnnotation=cH1;_G.TypeCastExpression=XZ1;_G.TypeParameter=rH1;_G.TypeParameterDeclaration=_G.TypeParameterInstantiation=aH1;_G.TypeofTypeAnnotation=xH1;_G.UnionTypeAnnotation=JZ1;_G.Variance=HZ1;_G.VoidTypeAnnotation=ZZ1;_G._interfaceish=TH1;_G._variance=wH1;var u31=F1(),d31=K7(),s31=w0(),jU=$7(),{isDeclareExportDeclaration:EG,isStatement:p31}=u31});var AU=S((IU)=>{function MV1(G){if(G.program)this.print(G.program.interpreter);this.print(G.program)}function qV1(G){var J;this.noIndentInnerCommentsHere(),this.printInnerComments();const X=(J=G.directives)==null?void 0:J.length;if(X){var H;const Z=G.body.length?2:1;if(this.printSequence(G.directives,{trailingCommentsLineOffset:Z}),!((H=G.directives[X-1].trailingComments)!=null&&H.length))this.newline(Z)}this.printSequence(G.body)}function FV1(G){var J;this.tokenChar(123);const X=this.enterDelimited(),H=(J=G.directives)==null?void 0:J.length;if(H){var Z;const V=G.body.length?2:1;if(this.printSequence(G.directives,{indent:!0,trailingCommentsLineOffset:V}),!((Z=G.directives[H-1].trailingComments)!=null&&Z.length))this.newline(V)}this.printSequence(G.body,{indent:!0}),X(),this.rightBrace(G)}function jV1(G){this.print(G.value),this.semicolon()}function AV1(G){const J=this.getPossibleRaw(G);if(!this.format.minified&&J!==void 0){this.token(J);return}const{value:X}=G;if(!IV1.test(X))this.token(`"${X}"`);else if(!DV1.test(X))this.token(`'${X}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function CV1(G){this.token(`#!${G.value}`),this.newline(1,!0)}function fV1(G){if(this.token("%%"),this.print(G.name),this.token("%%"),G.expectedNode==="Statement")this.semicolon()}Object.defineProperty(IU,"__esModule",{value:!0});IU.BlockStatement=FV1;IU.Directive=jV1;IU.DirectiveLiteral=AV1;IU.File=MV1;IU.InterpreterDirective=CV1;IU.Placeholder=fV1;IU.Program=qV1;var DV1=/(?:^|[^\\])(?:\\\\)*'/,IV1=/(?:^|[^\\])(?:\\\\)*"/});var fU=S((CU)=>{function EV1(G){if(this.print(G.name),G.value)this.tokenChar(61),this.print(G.value)}function OV1(G){this.word(G.name)}function vV1(G){this.print(G.namespace),this.tokenChar(58),this.print(G.name)}function _V1(G){this.print(G.object),this.tokenChar(46),this.print(G.property)}function gV1(G){this.tokenChar(123),this.token("..."),this.print(G.argument),this.rightBrace(G)}function bV1(G){this.tokenChar(123),this.print(G.expression),this.rightBrace(G)}function hV1(G){this.tokenChar(123),this.token("..."),this.print(G.expression),this.rightBrace(G)}function yV1(G){const J=this.getPossibleRaw(G);if(J!==void 0)this.token(J,!0);else this.token(G.value,!0)}function mV1(G){const J=G.openingElement;if(this.print(J),J.selfClosing)return;this.indent();for(let X of G.children)this.print(X);this.dedent(),this.print(G.closingElement)}function xV1(){this.space()}function lV1(G){if(this.tokenChar(60),this.print(G.name),this.print(G.typeParameters),G.attributes.length>0)this.space(),this.printJoin(G.attributes,{separator:xV1});if(G.selfClosing)this.space(),this.token("/>");else this.tokenChar(62)}function cV1(G){this.token("</"),this.print(G.name),this.tokenChar(62)}function aV1(){this.printInnerComments()}function rV1(G){this.print(G.openingFragment),this.indent();for(let J of G.children)this.print(J);this.dedent(),this.print(G.closingFragment)}function iV1(){this.tokenChar(60),this.tokenChar(62)}function uV1(){this.token("</"),this.tokenChar(62)}Object.defineProperty(CU,"__esModule",{value:!0});CU.JSXAttribute=EV1;CU.JSXClosingElement=cV1;CU.JSXClosingFragment=uV1;CU.JSXElement=mV1;CU.JSXEmptyExpression=aV1;CU.JSXExpressionContainer=bV1;CU.JSXFragment=rV1;CU.JSXIdentifier=OV1;CU.JSXMemberExpression=_V1;CU.JSXNamespacedName=vV1;CU.JSXOpeningElement=lV1;CU.JSXOpeningFragment=iV1;CU.JSXSpreadAttribute=gV1;CU.JSXSpreadChild=hV1;CU.JSXText=yV1});var TU=S((LU)=>{function WQ1(G){if(this.tokenChar(58),this.space(),G.optional)this.tokenChar(63);this.print(G.typeAnnotation)}function zQ1(G,J){if(this.tokenChar(60),this.printList(G.params,{}),J.type==="ArrowFunctionExpression"&&G.params.length===1)this.tokenChar(44);this.tokenChar(62)}function UQ1(G){if(G.in)this.word("in"),this.space();if(G.out)this.word("out"),this.space();if(this.word(G.name),G.constraint)this.space(),this.word("extends"),this.space(),this.print(G.constraint);if(G.default)this.space(),this.tokenChar(61),this.space(),this.print(G.default)}function KQ1(G){if(G.accessibility)this.word(G.accessibility),this.space();if(G.readonly)this.word("readonly"),this.space();this._param(G.parameter)}function BQ1(G,J){if(G.declare)this.word("declare"),this.space();this._functionHead(G,J),this.semicolon()}function $Q1(G){this._classMethodHead(G),this.semicolon()}function RQ1(G){this.print(G.left),this.tokenChar(46),this.print(G.right)}function MQ1(G){this.tsPrintSignatureDeclarationBase(G),this.semicolon()}function qQ1(G){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(G),this.semicolon()}function FQ1(G){const{readonly:J}=G;if(J)this.word("readonly"),this.space();this.tsPrintPropertyOrMethodName(G),this.print(G.typeAnnotation),this.semicolon()}function jQ1(G){if(G.computed)this.tokenChar(91);if(this.print(G.key),G.computed)this.tokenChar(93);if(G.optional)this.tokenChar(63)}function DQ1(G){const{kind:J}=G;if(J==="set"||J==="get")this.word(J),this.space();this.tsPrintPropertyOrMethodName(G),this.tsPrintSignatureDeclarationBase(G),this.semicolon()}function IQ1(G){const{readonly:J,static:X}=G;if(X)this.word("static"),this.space();if(J)this.word("readonly"),this.space();this.tokenChar(91),this._parameters(G.parameters),this.tokenChar(93),this.print(G.typeAnnotation),this.semicolon()}function AQ1(){this.word("any")}function CQ1(){this.word("bigint")}function fQ1(){this.word("unknown")}function SQ1(){this.word("number")}function PQ1(){this.word("object")}function LQ1(){this.word("boolean")}function TQ1(){this.word("string")}function wQ1(){this.word("symbol")}function NQ1(){this.word("void")}function kQ1(){this.word("undefined")}function EQ1(){this.word("null")}function OQ1(){this.word("never")}function vQ1(){this.word("intrinsic")}function _Q1(){this.word("this")}function gQ1(G){this.tsPrintFunctionOrConstructorType(G)}function bQ1(G){if(G.abstract)this.word("abstract"),this.space();this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(G)}function hQ1(G){const{typeParameters:J}=G,X=G.parameters;this.print(J),this.tokenChar(40),this._parameters(X),this.tokenChar(41),this.space(),this.token("=>"),this.space();const H=G.typeAnnotation;this.print(H.typeAnnotation)}function yQ1(G){this.print(G.typeName,!0),this.print(G.typeParameters,!0)}function mQ1(G){if(G.asserts)this.word("asserts"),this.space();if(this.print(G.parameterName),G.typeAnnotation)this.space(),this.word("is"),this.space(),this.print(G.typeAnnotation.typeAnnotation)}function xQ1(G){if(this.word("typeof"),this.space(),this.print(G.exprName),G.typeParameters)this.print(G.typeParameters)}function lQ1(G){this.tsPrintTypeLiteralOrInterfaceBody(G.members,G)}function cQ1(G,J){M7(this,G,J)}function M7(G,J,X){if(G.token("{"),J.length){G.indent(),G.newline();for(let H of J)G.print(H),G.newline();G.dedent()}G.rightBrace(X)}function aQ1(G){this.print(G.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function rQ1(G){this.tokenChar(91),this.printList(G.elementTypes),this.tokenChar(93)}function iQ1(G){this.print(G.typeAnnotation),this.tokenChar(63)}function uQ1(G){this.token("..."),this.print(G.typeAnnotation)}function dQ1(G){if(this.print(G.label),G.optional)this.tokenChar(63);this.tokenChar(58),this.space(),this.print(G.elementType)}function sQ1(G){PU(this,G,"|")}function pQ1(G){PU(this,G,"&")}function PU(G,J,X){G.printJoin(J.types,{separator(){this.space(),this.token(X),this.space()}})}function nQ1(G){this.print(G.checkType),this.space(),this.word("extends"),this.space(),this.print(G.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(G.trueType),this.space(),this.tokenChar(58),this.space(),this.print(G.falseType)}function oQ1(G){this.word("infer"),this.print(G.typeParameter)}function eQ1(G){this.tokenChar(40),this.print(G.typeAnnotation),this.tokenChar(41)}function tQ1(G){this.word(G.operator),this.space(),this.print(G.typeAnnotation)}function GY1(G){this.print(G.objectType,!0),this.tokenChar(91),this.print(G.indexType),this.tokenChar(93)}function JY1(G){const{nameType:J,optional:X,readonly:H,typeAnnotation:Z}=G;if(this.tokenChar(123),this.space(),H)SU(this,H),this.word("readonly"),this.space();if(this.tokenChar(91),this.word(G.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(G.typeParameter.constraint),J)this.space(),this.word("as"),this.space(),this.print(J);if(this.tokenChar(93),X)SU(this,X),this.tokenChar(63);if(Z)this.tokenChar(58),this.space(),this.print(Z);this.space(),this.tokenChar(125)}function SU(G,J){if(J!==!0)G.token(J)}function XY1(G){this.print(G.literal)}function HY1(G){this.print(G.expression),this.print(G.typeParameters)}function ZY1(G){const{declare:J,id:X,typeParameters:H,extends:Z,body:V}=G;if(J)this.word("declare"),this.space();if(this.word("interface"),this.space(),this.print(X),this.print(H),Z!=null&&Z.length)this.space(),this.word("extends"),this.space(),this.printList(Z);this.space(),this.print(V)}function VY1(G){this.tsPrintTypeLiteralOrInterfaceBody(G.body,G)}function QY1(G){const{declare:J,id:X,typeParameters:H,typeAnnotation:Z}=G;if(J)this.word("declare"),this.space();this.word("type"),this.space(),this.print(X),this.print(H),this.space(),this.tokenChar(61),this.space(),this.print(Z),this.semicolon()}function YY1(G){const{type:J,expression:X,typeAnnotation:H}=G;this.print(X,!0),this.space(),this.word(J==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(H)}function WY1(G){const{typeAnnotation:J,expression:X}=G;this.tokenChar(60),this.print(J),this.tokenChar(62),this.space(),this.print(X)}function zY1(G){this.print(G.expression),this.print(G.typeParameters)}function UY1(G){const{declare:J,const:X,id:H,members:Z}=G;if(J)this.word("declare"),this.space();if(X)this.word("const"),this.space();this.word("enum"),this.space(),this.print(H),this.space(),M7(this,Z,G)}function KY1(G){const{id:J,initializer:X}=G;if(this.print(J),X)this.space(),this.tokenChar(61),this.space(),this.print(X);this.tokenChar(44)}function BY1(G){const{declare:J,id:X}=G;if(J)this.word("declare"),this.space();if(!G.global)this.word(X.type==="Identifier"?"namespace":"module"),this.space();if(this.print(X),!G.body){this.semicolon();return}let H=G.body;while(H.type==="TSModuleDeclaration")this.tokenChar(46),this.print(H.id),H=H.body;this.space(),this.print(H)}function $Y1(G){M7(this,G.body,G)}function RY1(G){const{argument:J,qualifier:X,typeParameters:H}=G;if(this.word("import"),this.tokenChar(40),this.print(J),this.tokenChar(41),X)this.tokenChar(46),this.print(X);if(H)this.print(H)}function MY1(G){const{isExport:J,id:X,moduleReference:H}=G;if(J)this.word("export"),this.space();this.word("import"),this.space(),this.print(X),this.space(),this.tokenChar(61),this.space(),this.print(H),this.semicolon()}function qY1(G){this.token("require("),this.print(G.expression),this.tokenChar(41)}function FY1(G){this.print(G.expression),this.tokenChar(33)}function jY1(G){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(G.expression),this.semicolon()}function DY1(G){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(G.id),this.semicolon()}function IY1(G){const{typeParameters:J}=G,X=G.parameters;this.print(J),this.tokenChar(40),this._parameters(X),this.tokenChar(41);const H=G.typeAnnotation;this.print(H)}function AY1(G){const J=G.type==="ClassAccessorProperty"||G.type==="ClassProperty";if(J&&G.declare)this.word("declare"),this.space();if(G.accessibility)this.word(G.accessibility),this.space();if(G.static)this.word("static"),this.space();if(G.override)this.word("override"),this.space();if(G.abstract)this.word("abstract"),this.space();if(J&&G.readonly)this.word("readonly"),this.space()}Object.defineProperty(LU,"__esModule",{value:!0});LU.TSAnyKeyword=AQ1;LU.TSArrayType=aQ1;LU.TSSatisfiesExpression=LU.TSAsExpression=YY1;LU.TSBigIntKeyword=CQ1;LU.TSBooleanKeyword=LQ1;LU.TSCallSignatureDeclaration=MQ1;LU.TSInterfaceHeritage=LU.TSExpressionWithTypeArguments=LU.TSClassImplements=HY1;LU.TSConditionalType=nQ1;LU.TSConstructSignatureDeclaration=qQ1;LU.TSConstructorType=bQ1;LU.TSDeclareFunction=BQ1;LU.TSDeclareMethod=$Q1;LU.TSEnumDeclaration=UY1;LU.TSEnumMember=KY1;LU.TSExportAssignment=jY1;LU.TSExternalModuleReference=qY1;LU.TSFunctionType=gQ1;LU.TSImportEqualsDeclaration=MY1;LU.TSImportType=RY1;LU.TSIndexSignature=IQ1;LU.TSIndexedAccessType=GY1;LU.TSInferType=oQ1;LU.TSInstantiationExpression=zY1;LU.TSInterfaceBody=VY1;LU.TSInterfaceDeclaration=ZY1;LU.TSIntersectionType=pQ1;LU.TSIntrinsicKeyword=vQ1;LU.TSLiteralType=XY1;LU.TSMappedType=JY1;LU.TSMethodSignature=DQ1;LU.TSModuleBlock=$Y1;LU.TSModuleDeclaration=BY1;LU.TSNamedTupleMember=dQ1;LU.TSNamespaceExportDeclaration=DY1;LU.TSNeverKeyword=OQ1;LU.TSNonNullExpression=FY1;LU.TSNullKeyword=EQ1;LU.TSNumberKeyword=SQ1;LU.TSObjectKeyword=PQ1;LU.TSOptionalType=iQ1;LU.TSParameterProperty=KQ1;LU.TSParenthesizedType=eQ1;LU.TSPropertySignature=FQ1;LU.TSQualifiedName=RQ1;LU.TSRestType=uQ1;LU.TSStringKeyword=TQ1;LU.TSSymbolKeyword=wQ1;LU.TSThisType=_Q1;LU.TSTupleType=rQ1;LU.TSTypeAliasDeclaration=QY1;LU.TSTypeAnnotation=WQ1;LU.TSTypeAssertion=WY1;LU.TSTypeLiteral=lQ1;LU.TSTypeOperator=tQ1;LU.TSTypeParameter=UQ1;LU.TSTypeParameterDeclaration=LU.TSTypeParameterInstantiation=zQ1;LU.TSTypePredicate=mQ1;LU.TSTypeQuery=xQ1;LU.TSTypeReference=yQ1;LU.TSUndefinedKeyword=kQ1;LU.TSUnionType=sQ1;LU.TSUnknownKeyword=fQ1;LU.TSVoidKeyword=NQ1;LU.tsPrintClassMemberModifiers=AY1;LU.tsPrintFunctionOrConstructorType=hQ1;LU.tsPrintPropertyOrMethodName=jQ1;LU.tsPrintSignatureDeclarationBase=IY1;LU.tsPrintTypeLiteralOrInterfaceBody=cQ1});var wU=S((f1)=>{Object.defineProperty(f1,"__esModule",{value:!0});var q7=dz();Object.keys(q7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in f1&&f1[G]===q7[G])return;Object.defineProperty(f1,G,{enumerable:!0,get:function(){return q7[G]}})});var F7=nz();Object.keys(F7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in f1&&f1[G]===F7[G])return;Object.defineProperty(f1,G,{enumerable:!0,get:function(){return F7[G]}})});var j7=XU();Object.keys(j7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in f1&&f1[G]===j7[G])return;Object.defineProperty(f1,G,{enumerable:!0,get:function(){return j7[G]}})});var D7=ZU();Object.keys(D7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in f1&&f1[G]===D7[G])return;Object.defineProperty(f1,G,{enumerable:!0,get:function(){return D7[G]}})});var I7=QU();Object.keys(I7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in f1&&f1[G]===I7[G])return;Object.defineProperty(f1,G,{enumerable:!0,get:function(){return I7[G]}})});var A7=K7();Object.keys(A7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in f1&&f1[G]===A7[G])return;Object.defineProperty(f1,G,{enumerable:!0,get:function(){return A7[G]}})});var C7=$7();Object.keys(C7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in f1&&f1[G]===C7[G])return;Object.defineProperty(f1,G,{enumerable:!0,get:function(){return C7[G]}})});var f7=DU();Object.keys(f7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in f1&&f1[G]===f7[G])return;Object.defineProperty(f1,G,{enumerable:!0,get:function(){return f7[G]}})});var S7=AU();Object.keys(S7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in f1&&f1[G]===S7[G])return;Object.defineProperty(f1,G,{enumerable:!0,get:function(){return S7[G]}})});var P7=fU();Object.keys(P7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in f1&&f1[G]===P7[G])return;Object.defineProperty(f1,G,{enumerable:!0,get:function(){return P7[G]}})});var L7=TU();Object.keys(L7).forEach(function(G){if(G==="default"||G==="__esModule")return;if(G in f1&&f1[G]===L7[G])return;Object.defineProperty(f1,G,{enumerable:!0,get:function(){return L7[G]}})})});var _U=S((OU)=>{function NU(G){return G.type==="CommentLine"||EU.test(G.value)}function pW1(){this.tokenChar(44),this.space()}Object.defineProperty(OU,"__esModule",{value:!0});OU.default=void 0;var bW1=cV(),kU=w0(),hW1=F1(),yW1=wU(),{isExpression:mW1,isFunction:xW1,isStatement:lW1,isClassBody:cW1,isTSInterfaceBody:aW1,isTSEnumDeclaration:rW1}=hW1,iW1=/e/i,uW1=/\.0+$/,EU=/[\n\r\u2028\u2029]/,dW1=/[\n\r\u2028\u2029]|\*\//,{needsParens:sW1}=kU;class gG{constructor(G,J){this.inForStatementInit=!1,this.tokenContext=0,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.format=G,this._indentRepeat=G.indent.style.length,this._inputMap=J==null?void 0:J._inputMap,this._buf=new bW1.default(J,G.indent.style[0])}enterForStatementInit(){if(this.inForStatementInit)return()=>{};return this.inForStatementInit=!0,()=>{this.inForStatementInit=!1}}enterDelimited(){const G=this.inForStatementInit,J=this._noLineTerminatorAfterNode;if(G===!1&&J===null)return()=>{};return this.inForStatementInit=!1,this._noLineTerminatorAfterNode=null,()=>{this.inForStatementInit=G,this._noLineTerminatorAfterNode=J}}generate(G){return this.print(G),this._maybeAddAuxComment(),this._buf.get()}indent(){if(this.format.compact||this.format.concise)return;this._indent++}dedent(){if(this.format.compact||this.format.concise)return;this._indent--}semicolon(G=!1){if(this._maybeAddAuxComment(),G)this._appendChar(59);else this._queue(59);this._noLineTerminator=!1}rightBrace(G){if(this.format.minified)this._buf.removeLastSemicolon();this.sourceWithOffset("end",G.loc,-1),this.tokenChar(125)}rightParens(G){this.sourceWithOffset("end",G.loc,-1),this.tokenChar(41)}space(G=!1){if(this.format.compact)return;if(G)this._space();else if(this._buf.hasContent()){const J=this.getLastChar();if(J!==32&&J!==10)this._space()}}word(G,J=!1){if(this.tokenContext=0,this._maybePrintInnerComments(),this._endsWithWord||this._endsWithDiv&&G.charCodeAt(0)===47)this._space();this._maybeAddAuxComment(),this._append(G,!1),this._endsWithWord=!0,this._noLineTerminator=J}number(G,J){function X(H){if(H.length>2&&H.charCodeAt(0)===48){const Z=H.charCodeAt(1);return Z===98||Z===111||Z===120}return!1}this.word(G),this._endsWithInteger=Number.isInteger(J)&&!X(G)&&!iW1.test(G)&&!uW1.test(G)&&G.charCodeAt(G.length-1)!==46}token(G,J=!1){this.tokenContext=0,this._maybePrintInnerComments();const X=this.getLastChar(),H=G.charCodeAt(0);if(X===33&&(G==="--"||H===61)||H===43&&X===43||H===45&&X===45||H===46&&this._endsWithInteger)this._space();this._maybeAddAuxComment(),this._append(G,J),this._noLineTerminator=!1}tokenChar(G){this.tokenContext=0,this._maybePrintInnerComments();const J=this.getLastChar();if(G===43&&J===43||G===45&&J===45||G===46&&this._endsWithInteger)this._space();this._maybeAddAuxComment(),this._appendChar(G),this._noLineTerminator=!1}newline(G=1,J){if(G<=0)return;if(!J){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}if(G>2)G=2;G-=this._buf.getNewlineCount();for(let X=0;X<G;X++)this._newline();return}endsWith(G){return this.getLastChar()===G}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(G,J){if(!G){J();return}this._catchUp("start",G),this._buf.exactSource(G,J)}source(G,J){if(!J)return;this._catchUp(G,J),this._buf.source(G,J)}sourceWithOffset(G,J,X){if(!J)return;this._catchUp(G,J),this._buf.sourceWithOffset(G,J,X)}sourceIdentifierName(G,J){if(!this._buf._canMarkIdName)return;const X=this._buf._sourcePosition;X.identifierNamePos=J,X.identifierName=G}_space(){this._queue(32)}_newline(){this._queue(10)}_append(G,J){this._maybeIndent(G.charCodeAt(0)),this._buf.append(G,J),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(G){this._maybeIndent(G),this._buf.appendChar(G),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(G){this._maybeIndent(G),this._buf.queue(G),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(G){if(this._indent&&G!==10&&this.endsWith(10))this._buf.queueIndentation(this._getIndent())}_shouldIndent(G){if(this._indent&&G!==10&&this.endsWith(10))return!0}catchUp(G){if(!this.format.retainLines)return;const J=G-this._buf.getCurrentLine();for(let X=0;X<J;X++)this._newline()}_catchUp(G,J){var X;if(!this.format.retainLines)return;const H=J==null||(X=J[G])==null?void 0:X.line;if(H!=null){const Z=H-this._buf.getCurrentLine();for(let V=0;V<Z;V++)this._newline()}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(G){this._noLineTerminator=!0,this.print(G)}print(G,J,X){var H,Z,V;if(!G)return;this._endsWithInnerRaw=!1;const Q=G.type,Y=this.format,W=Y.concise;if(G._compact)Y.concise=!0;const z=this[Q];if(z===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(Q)} with constructor ${JSON.stringify(G.constructor.name)}`);const B=this._currentNode;this._currentNode=G;const q=this._insideAux;this._insideAux=G.loc==null,this._maybeAddAuxComment(this._insideAux&&!q);const F=(H=G.extra)==null?void 0:H.parenthesized;let j=F&&Y.retainFunctionParens&&Q==="FunctionExpression"||sW1(G,B,this.tokenContext,this.inForStatementInit);if(!j&&F&&(Z=G.leadingComments)!=null&&Z.length&&G.leadingComments[0].type==="CommentBlock")switch(B==null?void 0:B.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(B.callee!==G)break;default:j=!0}let f=!1;if(!j&&this._noLineTerminator&&((V=G.leadingComments)!=null&&V.some(NU)||this.format.retainLines&&G.loc&&G.loc.start.line>this._buf.getCurrentLine()))j=!0,f=!0;let y,w;if(!j){if(J||(J=B&&this._noLineTerminatorAfterNode===B&&kU.isLastChild(B,G)),J){var v;if((v=G.trailingComments)!=null&&v.some(NU)){if(mW1(G))j=!0}else y=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=G}}if(j){if(this.tokenChar(40),f)this.indent();if(this._endsWithInnerRaw=!1,this.inForStatementInit)w=!0,this.inForStatementInit=!1;y=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null}this._lastCommentLine=0,this._printLeadingComments(G,B);const h=Q==="Program"||Q==="File"?null:G.loc;if(this.exactSource(h,z.bind(this,G,B)),j){if(this._printTrailingComments(G,B),f)this.dedent(),this.newline();if(this.tokenChar(41),this._noLineTerminator=J,w)this.inForStatementInit=!0}else if(J&&!this._noLineTerminator)this._noLineTerminator=!0,this._printTrailingComments(G,B);else this._printTrailingComments(G,B,X);if(this._currentNode=B,Y.concise=W,this._insideAux=q,y!==void 0)this._noLineTerminatorAfterNode=y;this._endsWithInnerRaw=!1}_maybeAddAuxComment(G){if(G)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const G=this.format.auxiliaryCommentBefore;if(G)this._printComment({type:"CommentBlock",value:G},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const G=this.format.auxiliaryCommentAfter;if(G)this._printComment({type:"CommentBlock",value:G},0)}getPossibleRaw(G){const J=G.extra;if((J==null?void 0:J.raw)!=null&&J.rawValue!=null&&G.value===J.rawValue)return J.raw}printJoin(G,J={}){if(!(G!=null&&G.length))return;let{indent:X}=J;if(X==null&&this.format.retainLines){var H;const z=(H=G[0].loc)==null?void 0:H.start.line;if(z!=null&&z!==this._buf.getCurrentLine())X=!0}if(X)this.indent();const Z={addNewlines:J.addNewlines,nextNodeStartLine:0},V=J.separator?J.separator.bind(this):null,Q=G.length;for(let z=0;z<Q;z++){const B=G[z];if(!B)continue;if(J.statement)this._printNewline(z===0,Z);if(this.print(B,void 0,J.trailingCommentsLineOffset||0),J.iterator==null||J.iterator(B,z),z<Q-1)V==null||V();if(J.statement){var Y;if(!((Y=B.trailingComments)!=null&&Y.length))this._lastCommentLine=0;if(z+1===Q)this.newline(1);else{var W;const q=G[z+1];Z.nextNodeStartLine=((W=q.loc)==null?void 0:W.start.line)||0,this._printNewline(!0,Z)}}}if(X)this.dedent()}printAndIndentOnComments(G){const J=G.leadingComments&&G.leadingComments.length>0;if(J)this.indent();if(this.print(G),J)this.dedent()}printBlock(G){const J=G.body;if(J.type!=="EmptyStatement")this.space();this.print(J)}_printTrailingComments(G,J,X){const{innerComments:H,trailingComments:Z}=G;if(H!=null&&H.length)this._printComments(2,H,G,J,X);if(Z!=null&&Z.length)this._printComments(2,Z,G,J,X)}_printLeadingComments(G,J){const X=G.leadingComments;if(!(X!=null&&X.length))return;this._printComments(0,X,G,J)}_maybePrintInnerComments(){if(this._endsWithInnerRaw)this.printInnerComments();this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(){const G=this._currentNode,J=G.innerComments;if(!(J!=null&&J.length))return;const X=this.endsWith(32),H=this._indentInnerComments,Z=this._printedComments.size;if(H)this.indent();if(this._printComments(1,J,G),X&&Z!==this._printedComments.size)this.space();if(H)this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(G,J={}){var X;J.statement=!0,(X=J.indent)!=null||(J.indent=!1),this.printJoin(G,J)}printList(G,J={}){if(J.separator==null)J.separator=pW1;this.printJoin(G,J)}_printNewline(G,J){const X=this.format;if(X.retainLines||X.compact)return;if(X.concise){this.space();return}if(!G)return;const H=J.nextNodeStartLine,Z=this._lastCommentLine;if(H>0&&Z>0){const V=H-Z;if(V>=0){this.newline(V||1);return}}if(this._buf.hasContent())this.newline(1)}_shouldPrintComment(G){if(G.ignore)return 0;if(this._printedComments.has(G))return 0;if(this._noLineTerminator&&dW1.test(G.value))return 2;if(this._printedComments.add(G),!this.format.shouldPrintComment(G.value))return 0;return 1}_printComment(G,J){const X=this._noLineTerminator,H=G.type==="CommentBlock",Z=H&&J!==1&&!this._noLineTerminator;if(Z&&this._buf.hasContent()&&J!==2)this.newline(1);const V=this.getLastChar();if(V!==91&&V!==123&&V!==40)this.space();let Q;if(H){if(Q=`/*${G.value}*/`,this.format.indent.adjustMultilineComment){var Y;const W=(Y=G.loc)==null?void 0:Y.start.column;if(W){const z=new RegExp("\\n\\s{1,"+W+"}","g");Q=Q.replace(z,"\n")}if(this.format.concise)Q=Q.replace(/\n(?!$)/g,"\n");else{let z=this.format.retainLines?0:this._buf.getCurrentColumn();if(this._shouldIndent(47)||this.format.retainLines)z+=this._getIndent();Q=Q.replace(/\n(?!$)/g,`\n${" ".repeat(z)}`)}}}else if(!X)Q=`//${G.value}`;else Q=`/*${G.value}*/`;if(this._endsWithDiv)this._space();if(this.source("start",G.loc),this._append(Q,H),!H&&!X)this.newline(1,!0);if(Z&&J!==3)this.newline(1)}_printComments(G,J,X,H,Z=0){const V=X.loc,Q=J.length;let Y=!!V;const W=Y?V.start.line:0,z=Y?V.end.line:0;let B=0,q=0;const F=this._noLineTerminator?function(){}:this.newline.bind(this);for(let j=0;j<Q;j++){const f=J[j],y=this._shouldPrintComment(f);if(y===2){Y=!1;break}if(Y&&f.loc&&y===1){const w=f.loc.start.line,v=f.loc.end.line;if(G===0){let h=0;if(j===0){if(this._buf.hasContent()&&(f.type==="CommentLine"||w!==v))h=q=1}else h=w-B;if(B=v,F(h),this._printComment(f,1),j+1===Q)F(Math.max(W-B,q)),B=W}else if(G===1){const h=w-(j===0?W:B);if(B=v,F(h),this._printComment(f,1),j+1===Q)F(Math.min(1,z-B)),B=z}else{const h=w-(j===0?z-Z:B);B=v,F(h),this._printComment(f,1)}}else{if(Y=!1,y!==1)continue;if(Q===1){const w=f.loc?f.loc.start.line===f.loc.end.line:!EU.test(f.value),v=w&&!lW1(X)&&!cW1(H)&&!aW1(H)&&!rW1(H);if(G===0)this._printComment(f,v&&X.type!=="ObjectExpression"||w&&xW1(H,{body:X})?1:0);else if(v&&G===2)this._printComment(f,1);else this._printComment(f,0)}else if(G===1&&!(X.type==="ObjectExpression"&&X.properties.length>1)&&X.type!=="ClassBody"&&X.type!=="TSInterfaceBody")this._printComment(f,j===0?2:j===Q-1?3:0);else this._printComment(f,0)}}if(G===2&&Y&&B)this._lastCommentLine=B}}Object.assign(gG.prototype,yW1);gG.prototype.Noop=function G(){};var A_1=OU.default=gG});var T7=S((yU)=>{function hU(G,J){const X={auxiliaryCommentBefore:J.auxiliaryCommentBefore,auxiliaryCommentAfter:J.auxiliaryCommentAfter,shouldPrintComment:J.shouldPrintComment,retainLines:J.retainLines,retainFunctionParens:J.retainFunctionParens,comments:J.comments==null||J.comments,compact:J.compact,minified:J.minified,concise:J.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},J.jsescOption),topicToken:J.topicToken,importAttributesKeyword:J.importAttributesKeyword};{var H;X.decoratorsBeforeExport=J.decoratorsBeforeExport,X.jsescOption.json=J.jsonCompatibleStrings,X.recordAndTupleSyntaxType=(H=J.recordAndTupleSyntaxType)!=null?H:"hash"}if(X.minified)X.compact=!0,X.shouldPrintComment=X.shouldPrintComment||(()=>X.comments);else X.shouldPrintComment=X.shouldPrintComment||((Y)=>X.comments||Y.includes("@license")||Y.includes("@preserve"));if(X.compact==="auto"){if(X.compact=typeof G==="string"&&G.length>500000,X.compact)console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${J.filename} as it exceeds the max of 500KB.`)}if(X.compact)X.indent.adjustMultilineComment=!1;const{auxiliaryCommentBefore:Z,auxiliaryCommentAfter:V,shouldPrintComment:Q}=X;if(Z&&!Q(Z))X.auxiliaryCommentBefore=void 0;if(V&&!Q(V))X.auxiliaryCommentAfter=void 0;return X}function nW1(G,J={},X){const H=hU(X,J),Z=J.sourceMaps?new gU.default(J,X):null;return new bU.default(H,Z).generate(G)}Object.defineProperty(yU,"__esModule",{value:!0});yU.default=nW1;var gU=yV(),bU=_U();yU.CodeGenerator=class G{constructor(J,X={},H){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=J,this._format=hU(H,X),this._map=X.sourceMaps?new gU.default(X,H):null}generate(){return new bU.default(this._format,this._map).generate(this._ast)}}});var rG=S((EK)=>{function eW1(G,J){if(G==null)return{};var X={};for(var H in G)if({}.hasOwnProperty.call(G,H)){if(J.includes(H))continue;X[H]=G[H]}return X}function K2(G,J){const{line:X,column:H,index:Z}=G;return new M0(X,H+J,Z+J)}function lU(G,J,X){Object.defineProperty(G,J,{enumerable:!1,configurable:!0,value:X})}function Vz1({toMessage:G,code:J,reasonCode:X,syntaxPlugin:H}){const Z=X==="MissingPlugin"||X==="MissingOneOfPlugins";{const V={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(V[X])X=V[X]}return function V(Q,Y){const W=new SyntaxError;if(W.code=J,W.reasonCode=X,W.loc=Q,W.pos=Q.index,W.syntaxPlugin=H,Z)W.missingPlugin=Y.missingPlugin;return lU(W,"clone",function z(B={}){var q;const{line:F,column:j,index:f}=(q=B.loc)!=null?q:Q;return V(new M0(F,j,f),Object.assign({},Y,B.details))}),lU(W,"details",Y),Object.defineProperty(W,"message",{configurable:!0,get(){const z=`${G(Y)} (${Q.line}:${Q.column})`;return this.message=z,z},set(z){Object.defineProperty(this,"message",{value:z,writable:!0})}}),W}}function R0(G,J){if(Array.isArray(G))return(H)=>R0(H,G[0]);const X={};for(let H of Object.keys(G)){const Z=G[H],V=typeof Z==="string"?{message:()=>Z}:typeof Z==="function"?{message:Z}:Z,{message:Q}=V,Y=eW1(V,Zz1),W=typeof Q==="string"?()=>Q:Q;X[H]=Vz1(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:H,toMessage:W},J?{syntaxPlugin:J}:{},Y))}return X}function N9(G){return cU(G.loc.start,"index"),cU(G.loc.end,"index"),G}function S1(G,J={}){J.keyword=G;const X=Z1(G,J);return y7.set(G,X),X}function U2(G,J){return Z1(G,{beforeExpr:D1,binop:J})}function Z1(G,J={}){var X,H,Z,V;return++_9,m7.push(G),x7.push((X=J.binop)!=null?X:-1),l7.push((H=J.beforeExpr)!=null?H:!1),c7.push((Z=J.startsExpr)!=null?Z:!1),a7.push((V=J.prefix)!=null?V:!1),B0.push(new h7(G,J)),_9}function j1(G,J={}){var X,H,Z,V;return++_9,y7.set(G,_9),m7.push(G),x7.push((X=J.binop)!=null?X:-1),l7.push((H=J.beforeExpr)!=null?H:!1),c7.push((Z=J.startsExpr)!=null?Z:!1),a7.push((V=J.prefix)!=null?V:!1),B0.push(new h7("name",J)),_9}function N1(G){return G>=93&&G<=132}function Uz1(G){return G<=92}function x2(G){return G>=58&&G<=132}function GK(G){return G>=58&&G<=136}function Kz1(G){return l7[G]}function _7(G){return c7[G]}function Bz1(G){return G>=29&&G<=33}function aU(G){return G>=129&&G<=131}function $z1(G){return G>=90&&G<=92}function r7(G){return G>=58&&G<=92}function Rz1(G){return G>=39&&G<=59}function Mz1(G){return G===34}function qz1(G){return a7[G]}function Fz1(G){return G>=121&&G<=123}function jz1(G){return G>=124&&G<=130}function O0(G){return m7[G]}function mG(G){return x7[G]}function Dz1(G){return G===57}function lG(G){return G>=24&&G<=25}function U0(G){return B0[G]}function g7(G,J){let X=65536;for(let H=0,Z=J.length;H<Z;H+=2){if(X+=J[H],X>G)return!1;if(X+=J[H+1],X>=G)return!0}return!1}function $0(G){if(G<65)return G===36;if(G<=90)return!0;if(G<97)return G===95;if(G<=122)return!0;if(G<=65535)return G>=170&&Iz1.test(String.fromCharCode(G));return g7(G,XK)}function b5(G){if(G<48)return G===36;if(G<58)return!0;if(G<65)return!1;if(G<=90)return!0;if(G<97)return G===95;if(G<=122)return!0;if(G<=65535)return G>=170&&Az1.test(String.fromCharCode(G));return g7(G,XK)||g7(G,Cz1)}function HK(G,J){return J&&G==="await"||G==="enum"}function ZK(G,J){return HK(G,J)||Sz1.has(G)}function VK(G){return Pz1.has(G)}function QK(G,J){return ZK(G,J)||VK(G)}function Lz1(G){return fz1.has(G)}function Tz1(G,J,X){return G===64&&J===64&&$0(X)}function Nz1(G){return wz1.has(G)}function UK(G,J){if(G.trailingComments===void 0)G.trailingComments=J;else G.trailingComments.unshift(...J)}function kz1(G,J){if(G.leadingComments===void 0)G.leadingComments=J;else G.leadingComments.unshift(...J)}function h9(G,J){if(G.innerComments===void 0)G.innerComments=J;else G.innerComments.unshift(...J)}function E9(G,J,X){let H=null,Z=J.length;while(H===null&&Z>0)H=J[--Z];if(H===null||H.start>X.start)h9(G,X.comments);else UK(H,X.comments)}function h5(G){switch(G){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function rU(G,J,X){for(let H=J;H<X;H++)if(h5(G.charCodeAt(H)))return!0;return!1}function Oz1(G){switch(G){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}}function uU(G,J,X,H,Z,V){const Q=X,Y=H,W=Z;let z="",B=null,q=X;const{length:F}=J;for(;;){if(X>=F){V.unterminated(Q,Y,W),z+=J.slice(q,X);break}const j=J.charCodeAt(X);if(_z1(G,j,J,X)){z+=J.slice(q,X);break}if(j===92){z+=J.slice(q,X);const f=gz1(J,X,H,Z,G==="template",V);if(f.ch===null&&!B)B={pos:X,lineStart:H,curLine:Z};else z+=f.ch;({pos:X,lineStart:H,curLine:Z}=f),q=X}else if(j===8232||j===8233)++X,++Z,H=X;else if(j===10||j===13)if(G==="template"){if(z+=J.slice(q,X)+"\n",++X,j===13&&J.charCodeAt(X)===10)++X;++Z,q=H=X}else V.unterminated(Q,Y,W);else++X}return{pos:X,str:z,firstInvalidLoc:B,lineStart:H,curLine:Z,containsInvalid:!!B}}function _z1(G,J,X,H){if(G==="template")return J===96||J===36&&X.charCodeAt(H+1)===123;return J===(G==="double"?34:39)}function gz1(G,J,X,H,Z,V){const Q=!Z;J++;const Y=(z)=>({pos:J,ch:z,lineStart:X,curLine:H}),W=G.charCodeAt(J++);switch(W){case 110:return Y("\n");case 114:return Y("\r");case 120:{let z;return{code:z,pos:J}=b7(G,J,X,H,2,!1,Q,V),Y(z===null?null:String.fromCharCode(z))}case 117:{let z;return{code:z,pos:J}=$K(G,J,X,H,Q,V),Y(z===null?null:String.fromCodePoint(z))}case 116:return Y("\t");case 98:return Y("\b");case 118:return Y("\v");case 102:return Y("\f");case 13:if(G.charCodeAt(J)===10)++J;case 10:X=J,++H;case 8232:case 8233:return Y("");case 56:case 57:if(Z)return Y(null);else V.strictNumericEscape(J-1,X,H);default:if(W>=48&&W<=55){const z=J-1;let q=/^[0-7]+/.exec(G.slice(z,J+2))[0],F=parseInt(q,8);if(F>255)q=q.slice(0,-1),F=parseInt(q,8);J+=q.length-1;const j=G.charCodeAt(J);if(q!=="0"||j===56||j===57)if(Z)return Y(null);else V.strictNumericEscape(z,X,H);return Y(String.fromCharCode(F))}return Y(String.fromCharCode(W))}}function b7(G,J,X,H,Z,V,Q,Y){const W=J;let z;if({n:z,pos:J}=BK(G,J,X,H,16,Z,V,!1,Y,!Q),z===null)if(Q)Y.invalidEscapeSequence(W,X,H);else J=W-1;return{code:z,pos:J}}function BK(G,J,X,H,Z,V,Q,Y,W,z){const B=J,q=Z===16?iU.hex:iU.decBinOct,F=Z===16?hG.hex:Z===10?hG.dec:Z===8?hG.oct:hG.bin;let j=!1,f=0;for(let y=0,w=V==null?1/0:V;y<w;++y){const v=G.charCodeAt(J);let h;if(v===95&&Y!=="bail"){const K1=G.charCodeAt(J-1),e=G.charCodeAt(J+1);if(!Y){if(z)return{n:null,pos:J};W.numericSeparatorInEscapeSequence(J,X,H)}else if(Number.isNaN(e)||!F(e)||q.has(K1)||q.has(e)){if(z)return{n:null,pos:J};W.unexpectedNumericSeparator(J,X,H)}++J;continue}if(v>=97)h=v-97+10;else if(v>=65)h=v-65+10;else if(vz1(v))h=v-48;else h=1/0;if(h>=Z)if(h<=9&&z)return{n:null,pos:J};else if(h<=9&&W.invalidDigit(J,X,H,Z))h=0;else if(Q)h=0,j=!0;else break;++J,f=f*Z+h}if(J===B||V!=null&&J-B!==V||j)return{n:null,pos:J};return{n:f,pos:J}}function $K(G,J,X,H,Z,V){const Q=G.charCodeAt(J);let Y;if(Q===123){if(++J,{code:Y,pos:J}=b7(G,J,X,H,G.indexOf("}",J)-J,!0,Z,V),++J,Y!==null&&Y>1114111)if(Z)V.invalidCodePoint(J,X,H);else return{code:null,pos:J}}else({code:Y,pos:J}=b7(G,J,X,H,4,!1,Z,V));return{code:Y,pos:J}}function O9(G,J,X){return new M0(X,G-J,G)}function hz1(){return new m9(3)}function yz1(){return new s7(1)}function mz1(){return new s7(2)}function jK(){return new m9}function xG(G,J){return(G?2:0)|(J?1:0)}function xz1(G){return q0(G)}function q0(G){const{type:J,start:X,end:H,loc:Z,range:V,extra:Q,name:Y}=G,W=Object.create(p7);if(W.type=J,W.start=X,W.end=H,W.loc=Z,W.range=V,W.extra=Q,W.name=Y,J==="Placeholder")W.expectedNode=G.expectedNode;return W}function lz1(G){const{type:J,start:X,end:H,loc:Z,range:V,extra:Q}=G;if(J==="Placeholder")return xz1(G);const Y=Object.create(p7);if(Y.type=J,Y.start=X,Y.end=H,Y.loc=Z,Y.range=V,G.raw!==void 0)Y.raw=G.raw;else Y.extra=Q;return Y.value=G.value,Y}function az1(G){return G.type==="DeclareExportAllDeclaration"||G.type==="DeclareExportDeclaration"&&(!G.declaration||G.declaration.type!=="TypeAlias"&&G.declaration.type!=="InterfaceDeclaration")}function dU(G){return G.importKind==="type"||G.importKind==="typeof"}function iz1(G,J){const X=[],H=[];for(let Z=0;Z<G.length;Z++)(J(G[Z],Z,G)?X:H).push(G[Z]);return[X,H]}function E0(G){return G?G.type==="JSXOpeningFragment"||G.type==="JSXClosingFragment":!1}function g5(G){if(G.type==="JSXIdentifier")return G.name;if(G.type==="JSXNamespacedName")return G.namespace.name+":"+G.name.name;if(G.type==="JSXMemberExpression")return g5(G.object)+"."+g5(G.property);throw new Error("Node had unexpected type: "+G.type)}function nz1(G){if(G==null)throw new Error(`Unexpected ${G} value.`);return G}function sU(G){if(!G)throw new Error("Assert fail")}function oz1(G){switch(G){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 pU(G){return G==="private"||G==="public"||G==="protected"}function ez1(G){return G==="in"||G==="out"}function GU1(G){if(G.type!=="MemberExpression")return!1;const{computed:J,property:X}=G;if(J&&X.type!=="StringLiteral"&&(X.type!=="TemplateLiteral"||X.expressions.length>0))return!1;return TK(G.object)}function JU1(G,J){var X;const{type:H}=G;if((X=G.extra)!=null&&X.parenthesized)return!1;if(J){if(H==="Literal"){const{value:Z}=G;if(typeof Z==="string"||typeof Z==="boolean")return!0}}else if(H==="StringLiteral"||H==="BooleanLiteral")return!0;if(LK(G,J)||XU1(G,J))return!0;if(H==="TemplateLiteral"&&G.expressions.length===0)return!0;if(GU1(G))return!0;return!1}function LK(G,J){if(J)return G.type==="Literal"&&(typeof G.value==="number"||("bigint"in G));return G.type==="NumericLiteral"||G.type==="BigIntLiteral"}function XU1(G,J){if(G.type==="UnaryExpression"){const{operator:X,argument:H}=G;if(X==="-"&&LK(H,J))return!0}return!1}function TK(G){if(G.type==="Identifier")return!0;if(G.type!=="MemberExpression"||G.computed)return!1;return TK(G.object)}function VU1(G){if(G.has("decorators")){if(G.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const X=G.get("decorators").decoratorsBeforeExport;if(X!=null&&typeof X!=="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const H=G.get("decorators").allowCallParenthesized;if(H!=null&&typeof H!=="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(G.has("flow")&&G.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(G.has("placeholders")&&G.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(G.has("pipelineOperator")){var J;const X=G.get("pipelineOperator").proposal;if(!oU.includes(X)){const Z=oU.map((V)=>`"${V}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${Z}.`)}const H=((J=G.get("recordAndTuple"))==null?void 0:J.syntaxType)==="hash";if(X==="hack"){if(G.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(G.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const Z=G.get("pipelineOperator").topicToken;if(!eU.includes(Z)){const V=eU.map((Q)=>`"${Q}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${V}.`)}if(Z==="#"&&H)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",G.get("recordAndTuple")])}\`.`)}else if(X==="smart"&&H)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",G.get("recordAndTuple")])}\`.`)}if(G.has("moduleAttributes")){if(G.has("importAttributes")||G.has("importAssertions"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(G.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(G.has("importAssertions")){if(G.has("importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.")}if(G.has("recordAndTuple")){const X=G.get("recordAndTuple").syntaxType;if(X!=null){const H=["hash","bar"];if(!H.includes(X))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+H.map((Z)=>`'${Z}'`).join(", "))}}if(G.has("asyncDoExpressions")&&!G.has("doExpressions")){const X=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw X.missingPlugins="doExpressions",X}if(G.has("optionalChainingAssign")&&G.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'.")}function YU1(G){if(G==null)return Object.assign({},E7);if(G.annexB!=null&&G.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");const J={};for(let H of Object.keys(E7)){var X;J[H]=(X=G[H])!=null?X:E7[H]}return J}function UU1(G,J){for(let X=0;X<G.length;X++){const H=G[X],{type:Z}=H;if(typeof Z==="number"){{if(Z===138){const{loc:V,start:Q,value:Y,end:W}=H,z=Q+1,B=K2(V.start,1);G.splice(X,1,new K0({type:U0(27),value:"#",start:Q,end:z,startLoc:V.start,endLoc:B}),new K0({type:U0(132),value:Y,start:z,end:W,startLoc:B,endLoc:V.end})),X++;continue}if(lG(Z)){const{loc:V,start:Q,value:Y,end:W}=H,z=Q+1,B=K2(V.start,1);let q;if(J.charCodeAt(Q)===96)q=new K0({type:U0(22),value:"`",start:Q,end:z,startLoc:V.start,endLoc:B});else q=new K0({type:U0(8),value:"}",start:Q,end:z,startLoc:V.start,endLoc:B});let F,j,f,y;if(Z===24)j=W-1,f=K2(V.end,-1),F=Y===null?null:Y.slice(1,-1),y=new K0({type:U0(22),value:"`",start:j,end:W,startLoc:f,endLoc:V.end});else j=W-2,f=K2(V.end,-2),F=Y===null?null:Y.slice(1,-2),y=new K0({type:U0(23),value:"${",start:j,end:W,startLoc:f,endLoc:V.end});G.splice(X,1,q,new K0({type:U0(20),value:F,start:z,end:j,startLoc:B,endLoc:f}),y),X+=2;continue}}H.type=U0(Z)}}return G}function KU1(G,J){var X;if(((X=J)==null?void 0:X.sourceType)==="unambiguous"){J=Object.assign({},J);try{J.sourceType="module";const H=v9(J,G),Z=H.parse();if(H.sawUnambiguousESM)return Z;if(H.ambiguousScriptDifferentAst)try{return J.sourceType="script",v9(J,G).parse()}catch(V){}else Z.program.sourceType="script";return Z}catch(H){try{return J.sourceType="script",v9(J,G).parse()}catch(Z){}throw H}}else return v9(J,G).parse()}function BU1(G,J){const X=v9(J,G);if(X.options.strictMode)X.state.strict=!0;return X.getExpression()}function $U1(G){const J={};for(let X of Object.keys(G))J[X]=U0(G[X]);return J}function v9(G,J){let X=n7;const H=new Map;if(G!=null&&G.plugins){for(let Z of G.plugins){let V,Q;if(typeof Z==="string")V=Z;else[V,Q]=Z;if(!H.has(V))H.set(V,Q||{})}VU1(H),X=MU1(H)}return new X(G,J,H)}function MU1(G){const J=[];for(let Z of QU1)if(G.has(Z))J.push(Z);const X=J.join("|");let H=tU.get(X);if(!H){H=n7;for(let Z of J)H=wK[Z](H);tU.set(X,H)}return H}Object.defineProperty(EK,"__esModule",{value:!0});class M0{constructor(G,J,X){this.line=void 0,this.column=void 0,this.index=void 0,this.line=G,this.column=J,this.index=X}}class b9{constructor(G,J){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=G,this.end=J}}var mU="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",tW1={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:mU},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:mU}},xU={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"},yG=(G)=>G.type==="UpdateExpression"?xU.UpdateExpression[`${G.prefix}`]:xU[G.type],Gz1={AccessorIsGenerator:({kind:G})=>`A ${G}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.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",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:G})=>`Missing initializer in ${G} 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:G})=>`\`${G}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:G})=>`'import.${G}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:G,exportName:J})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${G}' as '${J}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:G})=>`'${G==="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:G})=>`Unsyntactic ${G==="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 `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:G})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${G}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:G})=>`\`import()\` requires exactly ${G===1?"one argument":"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.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:G})=>`Expected number in radix ${G}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:G})=>`Escape sequence in keyword ${G}.`,InvalidIdentifier:({identifierName:G})=>`Invalid identifier ${G}.`,InvalidLhs:({ancestor:G})=>`Invalid left-hand side in ${yG(G)}.`,InvalidLhsBinding:({ancestor:G})=>`Binding invalid left-hand side in ${yG(G)}.`,InvalidLhsOptionalChaining:({ancestor:G})=>`Invalid optional chaining in the left-hand side of ${yG(G)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:G})=>`Unexpected character '${G}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:G})=>`Private name #${G} 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:G})=>`Label '${G}' 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:G})=>`This experimental syntax requires enabling the parser plugin: ${G.map((J)=>JSON.stringify(J)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:G})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${G.map((J)=>JSON.stringify(J)).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:G})=>`Duplicate key "${G}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:G})=>`An export name cannot include a lone surrogate, found '\\u${G.toString(16)}'.`,ModuleExportUndefined:({localName:G})=>`Export '${G}' 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:G})=>`Private names are only allowed in property accesses (\`obj.#${G}\`) or in \`in\` expressions (\`#${G} in obj\`).`,PrivateNameRedeclaration:({identifierName:G})=>`Duplicate private name #${G}.`,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:G})=>`Unexpected keyword '${G}'.`,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:G})=>`Unexpected reserved word '${G}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:G,unexpected:J})=>`Unexpected token${J?` '${J}'.`:""}${G?`, expected "${G}"`:""}`,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`.",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:G,onlyValidPropertyName:J})=>`The only valid meta property for ${G} is ${G}.${J}.`,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:G})=>`Identifier '${G}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Jz1={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:G})=>`Assigning to '${G}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:G})=>`Binding '${G}' 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."},Xz1=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Hz1={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:G})=>`Invalid topic token ${G}. In order to use ${G} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${G}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:G})=>`Hack-style pipe body cannot be an unparenthesized ${yG({type:G})}; 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.'},Zz1=["message"],A=Object.assign({},R0(tW1),R0(Gz1),R0(Jz1),R0`pipelineOperator`(Hz1)),{defineProperty:Qz1}=Object,cU=(G,J)=>{if(G)Qz1(G,J,{enumerable:!1,value:G[J]})},Yz1=(G)=>class J extends G{parse(){const X=N9(super.parse());if(this.options.tokens)X.tokens=X.tokens.map(N9);return X}parseRegExpLiteral({pattern:X,flags:H}){let Z=null;try{Z=new RegExp(X,H)}catch(Q){}const V=this.estreeParseLiteral(Z);return V.regex={pattern:X,flags:H},V}parseBigIntLiteral(X){let H;try{H=BigInt(X)}catch(V){H=null}const Z=this.estreeParseLiteral(H);return Z.bigint=String(Z.value||X),Z}parseDecimalLiteral(X){const Z=this.estreeParseLiteral(null);return Z.decimal=String(Z.value||X),Z}estreeParseLiteral(X){return this.parseLiteral(X,"Literal")}parseStringLiteral(X){return this.estreeParseLiteral(X)}parseNumericLiteral(X){return this.estreeParseLiteral(X)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(X){return this.estreeParseLiteral(X)}directiveToStmt(X){const H=X.value;delete X.value,H.type="Literal",H.raw=H.extra.raw,H.value=H.extra.expressionValue;const Z=X;return Z.type="ExpressionStatement",Z.expression=H,Z.directive=H.extra.rawValue,delete H.extra,Z}initFunction(X,H){super.initFunction(X,H),X.expression=!1}checkDeclaration(X){if(X!=null&&this.isObjectProperty(X))this.checkDeclaration(X.value);else super.checkDeclaration(X)}getObjectOrClassMethodParams(X){return X.value.params}isValidDirective(X){var H;return X.type==="ExpressionStatement"&&X.expression.type==="Literal"&&typeof X.expression.value==="string"&&!((H=X.expression.extra)!=null&&H.parenthesized)}parseBlockBody(X,H,Z,V,Q){super.parseBlockBody(X,H,Z,V,Q);const Y=X.directives.map((W)=>this.directiveToStmt(W));X.body=Y.concat(X.body),delete X.directives}pushClassMethod(X,H,Z,V,Q,Y){if(this.parseMethod(H,Z,V,Q,Y,"ClassMethod",!0),H.typeParameters)H.value.typeParameters=H.typeParameters,delete H.typeParameters;X.body.push(H)}parsePrivateName(){const X=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures"))return X;return this.convertPrivateNameToPrivateIdentifier(X)}convertPrivateNameToPrivateIdentifier(X){const H=super.getPrivateNameSV(X);return X=X,delete X.id,X.name=H,X.type="PrivateIdentifier",X}isPrivateName(X){if(!this.getPluginOption("estree","classFeatures"))return super.isPrivateName(X);return X.type==="PrivateIdentifier"}getPrivateNameSV(X){if(!this.getPluginOption("estree","classFeatures"))return super.getPrivateNameSV(X);return X.name}parseLiteral(X,H){const Z=super.parseLiteral(X,H);return Z.raw=Z.extra.raw,delete Z.extra,Z}parseFunctionBody(X,H,Z=!1){super.parseFunctionBody(X,H,Z),X.expression=X.body.type!=="BlockStatement"}parseMethod(X,H,Z,V,Q,Y,W=!1){let z=this.startNode();if(z.kind=X.kind,z=super.parseMethod(z,H,Z,V,Q,Y,W),z.type="FunctionExpression",delete z.kind,X.value=z,Y==="ClassPrivateMethod")X.computed=!1;return this.finishNode(X,"MethodDefinition")}nameIsConstructor(X){if(X.type==="Literal")return X.value==="constructor";return super.nameIsConstructor(X)}parseClassProperty(...X){const H=super.parseClassProperty(...X);if(!this.getPluginOption("estree","classFeatures"))return H;return H.type="PropertyDefinition",H}parseClassPrivateProperty(...X){const H=super.parseClassPrivateProperty(...X);if(!this.getPluginOption("estree","classFeatures"))return H;return H.type="PropertyDefinition",H.computed=!1,H}parseObjectMethod(X,H,Z,V,Q){const Y=super.parseObjectMethod(X,H,Z,V,Q);if(Y){if(Y.type="Property",Y.kind==="method")Y.kind="init";Y.shorthand=!1}return Y}parseObjectProperty(X,H,Z,V){const Q=super.parseObjectProperty(X,H,Z,V);if(Q)Q.kind="init",Q.type="Property";return Q}isValidLVal(X,H,Z){return X==="Property"?"value":super.isValidLVal(X,H,Z)}isAssignable(X,H){if(X!=null&&this.isObjectProperty(X))return this.isAssignable(X.value,H);return super.isAssignable(X,H)}toAssignable(X,H=!1){if(X!=null&&this.isObjectProperty(X)){const{key:Z,value:V}=X;if(this.isPrivateName(Z))this.classScope.usePrivateName(this.getPrivateNameSV(Z),Z.loc.start);this.toAssignable(V,H)}else super.toAssignable(X,H)}toAssignableObjectExpressionProp(X,H,Z){if(X.type==="Property"&&(X.kind==="get"||X.kind==="set"))this.raise(A.PatternHasAccessor,X.key);else if(X.type==="Property"&&X.method)this.raise(A.PatternHasMethod,X.key);else super.toAssignableObjectExpressionProp(X,H,Z)}finishCallExpression(X,H){const Z=super.finishCallExpression(X,H);if(Z.callee.type==="Import"){if(Z.type="ImportExpression",Z.source=Z.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var V,Q;Z.options=(V=Z.arguments[1])!=null?V:null,Z.attributes=(Q=Z.arguments[1])!=null?Q:null}delete Z.arguments,delete Z.callee}return Z}toReferencedArguments(X){if(X.type==="ImportExpression")return;super.toReferencedArguments(X)}parseExport(X,H){const Z=this.state.lastTokStartLoc,V=super.parseExport(X,H);switch(V.type){case"ExportAllDeclaration":V.exported=null;break;case"ExportNamedDeclaration":if(V.specifiers.length===1&&V.specifiers[0].type==="ExportNamespaceSpecifier")V.type="ExportAllDeclaration",V.exported=V.specifiers[0].exported,delete V.specifiers;case"ExportDefaultDeclaration":{var Q;const{declaration:Y}=V;if((Y==null?void 0:Y.type)==="ClassDeclaration"&&((Q=Y.decorators)==null?void 0:Q.length)>0&&Y.start===V.start)this.resetStartLocation(V,Z)}break}return V}parseSubscript(X,H,Z,V){const Q=super.parseSubscript(X,H,Z,V);if(V.optionalChainMember){if(Q.type==="OptionalMemberExpression"||Q.type==="OptionalCallExpression")Q.type=Q.type.substring(8);if(V.stop){const Y=this.startNodeAtNode(Q);return Y.expression=Q,this.finishNode(Y,"ChainExpression")}}else if(Q.type==="MemberExpression"||Q.type==="CallExpression")Q.optional=!1;return Q}isOptionalMemberExpression(X){if(X.type==="ChainExpression")return X.expression.type==="MemberExpression";return super.isOptionalMemberExpression(X)}hasPropertyAsPrivateName(X){if(X.type==="ChainExpression")X=X.expression;return super.hasPropertyAsPrivateName(X)}isObjectProperty(X){return X.type==="Property"&&X.kind==="init"&&!X.method}isObjectMethod(X){return X.type==="Property"&&(X.method||X.kind==="get"||X.kind==="set")}finishNodeAt(X,H,Z){return N9(super.finishNodeAt(X,H,Z))}resetStartLocation(X,H){super.resetStartLocation(X,H),N9(X)}resetEndLocation(X,H=this.state.lastTokEndLoc){super.resetEndLocation(X,H),N9(X)}};class _5{constructor(G,J){this.token=void 0,this.preserveSpace=void 0,this.token=G,this.preserveSpace=!!J}}var v1={brace:new _5("{"),j_oTag:new _5("<tag"),j_cTag:new _5("</tag"),j_expr:new _5("<tag>...</tag>",!0)};v1.template=new _5("`",!0);var D1=!0,d=!0,w7=!0,k9=!0,k0=!0,Wz1=!0;class h7{constructor(G,J={}){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=G,this.keyword=J.keyword,this.beforeExpr=!!J.beforeExpr,this.startsExpr=!!J.startsExpr,this.rightAssociative=!!J.rightAssociative,this.isLoop=!!J.isLoop,this.isAssign=!!J.isAssign,this.prefix=!!J.prefix,this.postfix=!!J.postfix,this.binop=J.binop!=null?J.binop:null,this.updateContext=null}}var y7=new Map,_9=-1,B0=[],m7=[],x7=[],l7=[],c7=[],a7=[],zz1={bracketL:Z1("[",{beforeExpr:D1,startsExpr:d}),bracketHashL:Z1("#[",{beforeExpr:D1,startsExpr:d}),bracketBarL:Z1("[|",{beforeExpr:D1,startsExpr:d}),bracketR:Z1("]"),bracketBarR:Z1("|]"),braceL:Z1("{",{beforeExpr:D1,startsExpr:d}),braceBarL:Z1("{|",{beforeExpr:D1,startsExpr:d}),braceHashL:Z1("#{",{beforeExpr:D1,startsExpr:d}),braceR:Z1("}"),braceBarR:Z1("|}"),parenL:Z1("(",{beforeExpr:D1,startsExpr:d}),parenR:Z1(")"),comma:Z1(",",{beforeExpr:D1}),semi:Z1(";",{beforeExpr:D1}),colon:Z1(":",{beforeExpr:D1}),doubleColon:Z1("::",{beforeExpr:D1}),dot:Z1("."),question:Z1("?",{beforeExpr:D1}),questionDot:Z1("?."),arrow:Z1("=>",{beforeExpr:D1}),template:Z1("template"),ellipsis:Z1("...",{beforeExpr:D1}),backQuote:Z1("`",{startsExpr:d}),dollarBraceL:Z1("${",{beforeExpr:D1,startsExpr:d}),templateTail:Z1("...`",{startsExpr:d}),templateNonTail:Z1("...${",{beforeExpr:D1,startsExpr:d}),at:Z1("@"),hash:Z1("#",{startsExpr:d}),interpreterDirective:Z1("#!..."),eq:Z1("=",{beforeExpr:D1,isAssign:k9}),assign:Z1("_=",{beforeExpr:D1,isAssign:k9}),slashAssign:Z1("_=",{beforeExpr:D1,isAssign:k9}),xorAssign:Z1("_=",{beforeExpr:D1,isAssign:k9}),moduloAssign:Z1("_=",{beforeExpr:D1,isAssign:k9}),incDec:Z1("++/--",{prefix:k0,postfix:Wz1,startsExpr:d}),bang:Z1("!",{beforeExpr:D1,prefix:k0,startsExpr:d}),tilde:Z1("~",{beforeExpr:D1,prefix:k0,startsExpr:d}),doubleCaret:Z1("^^",{startsExpr:d}),doubleAt:Z1("@@",{startsExpr:d}),pipeline:U2("|>",0),nullishCoalescing:U2("??",1),logicalOR:U2("||",1),logicalAND:U2("&&",2),bitwiseOR:U2("|",3),bitwiseXOR:U2("^",4),bitwiseAND:U2("&",5),equality:U2("==/!=/===/!==",6),lt:U2("</>/<=/>=",7),gt:U2("</>/<=/>=",7),relational:U2("</>/<=/>=",7),bitShift:U2("<</>>/>>>",8),bitShiftL:U2("<</>>/>>>",8),bitShiftR:U2("<</>>/>>>",8),plusMin:Z1("+/-",{beforeExpr:D1,binop:9,prefix:k0,startsExpr:d}),modulo:Z1("%",{binop:10,startsExpr:d}),star:Z1("*",{binop:10}),slash:U2("/",10),exponent:Z1("**",{beforeExpr:D1,binop:11,rightAssociative:!0}),_in:S1("in",{beforeExpr:D1,binop:7}),_instanceof:S1("instanceof",{beforeExpr:D1,binop:7}),_break:S1("break"),_case:S1("case",{beforeExpr:D1}),_catch:S1("catch"),_continue:S1("continue"),_debugger:S1("debugger"),_default:S1("default",{beforeExpr:D1}),_else:S1("else",{beforeExpr:D1}),_finally:S1("finally"),_function:S1("function",{startsExpr:d}),_if:S1("if"),_return:S1("return",{beforeExpr:D1}),_switch:S1("switch"),_throw:S1("throw",{beforeExpr:D1,prefix:k0,startsExpr:d}),_try:S1("try"),_var:S1("var"),_const:S1("const"),_with:S1("with"),_new:S1("new",{beforeExpr:D1,startsExpr:d}),_this:S1("this",{startsExpr:d}),_super:S1("super",{startsExpr:d}),_class:S1("class",{startsExpr:d}),_extends:S1("extends",{beforeExpr:D1}),_export:S1("export"),_import:S1("import",{startsExpr:d}),_null:S1("null",{startsExpr:d}),_true:S1("true",{startsExpr:d}),_false:S1("false",{startsExpr:d}),_typeof:S1("typeof",{beforeExpr:D1,prefix:k0,startsExpr:d}),_void:S1("void",{beforeExpr:D1,prefix:k0,startsExpr:d}),_delete:S1("delete",{beforeExpr:D1,prefix:k0,startsExpr:d}),_do:S1("do",{isLoop:w7,beforeExpr:D1}),_for:S1("for",{isLoop:w7}),_while:S1("while",{isLoop:w7}),_as:j1("as",{startsExpr:d}),_assert:j1("assert",{startsExpr:d}),_async:j1("async",{startsExpr:d}),_await:j1("await",{startsExpr:d}),_defer:j1("defer",{startsExpr:d}),_from:j1("from",{startsExpr:d}),_get:j1("get",{startsExpr:d}),_let:j1("let",{startsExpr:d}),_meta:j1("meta",{startsExpr:d}),_of:j1("of",{startsExpr:d}),_sent:j1("sent",{startsExpr:d}),_set:j1("set",{startsExpr:d}),_source:j1("source",{startsExpr:d}),_static:j1("static",{startsExpr:d}),_using:j1("using",{startsExpr:d}),_yield:j1("yield",{startsExpr:d}),_asserts:j1("asserts",{startsExpr:d}),_checks:j1("checks",{startsExpr:d}),_exports:j1("exports",{startsExpr:d}),_global:j1("global",{startsExpr:d}),_implements:j1("implements",{startsExpr:d}),_intrinsic:j1("intrinsic",{startsExpr:d}),_infer:j1("infer",{startsExpr:d}),_is:j1("is",{startsExpr:d}),_mixins:j1("mixins",{startsExpr:d}),_proto:j1("proto",{startsExpr:d}),_require:j1("require",{startsExpr:d}),_satisfies:j1("satisfies",{startsExpr:d}),_keyof:j1("keyof",{startsExpr:d}),_readonly:j1("readonly",{startsExpr:d}),_unique:j1("unique",{startsExpr:d}),_abstract:j1("abstract",{startsExpr:d}),_declare:j1("declare",{startsExpr:d}),_enum:j1("enum",{startsExpr:d}),_module:j1("module",{startsExpr:d}),_namespace:j1("namespace",{startsExpr:d}),_interface:j1("interface",{startsExpr:d}),_type:j1("type",{startsExpr:d}),_opaque:j1("opaque",{startsExpr:d}),name:Z1("name",{startsExpr:d}),string:Z1("string",{startsExpr:d}),num:Z1("num",{startsExpr:d}),bigint:Z1("bigint",{startsExpr:d}),decimal:Z1("decimal",{startsExpr:d}),regexp:Z1("regexp",{startsExpr:d}),privateName:Z1("#name",{startsExpr:d}),eof:Z1("eof"),jsxName:Z1("jsxName"),jsxText:Z1("jsxText",{beforeExpr:!0}),jsxTagStart:Z1("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Z1("jsxTagEnd"),placeholder:Z1("%%",{startsExpr:!0})};B0[8].updateContext=(G)=>{G.pop()},B0[5].updateContext=B0[7].updateContext=B0[23].updateContext=(G)=>{G.push(v1.brace)},B0[22].updateContext=(G)=>{if(G[G.length-1]===v1.template)G.pop();else G.push(v1.template)},B0[142].updateContext=(G)=>{G.push(v1.j_expr,v1.j_oTag)};var i7="\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",JK="\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",Iz1=new RegExp("["+i7+"]"),Az1=new RegExp("["+i7+JK+"]");i7=JK=null;var XK=[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],Cz1=[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],u7={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"]},fz1=new Set(u7.keyword),Sz1=new Set(u7.strict),Pz1=new Set(u7.strictBind),wz1=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class cG{constructor(G){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=G}}class aG{constructor(G,J){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=G,this.inModule=J}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 inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){const G=this.currentThisScopeFlags();return(G&64)>0&&(G&2)===0}get inStaticBlock(){for(let G=this.scopeStack.length-1;;G--){const{flags:J}=this.scopeStack[G];if(J&128)return!0;if(J&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(G){return new cG(G)}enter(G){this.scopeStack.push(this.createScope(G))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(G){return!!(G.flags&130||!this.parser.inModule&&G.flags&1)}declareName(G,J,X){let H=this.currentScope();if(J&8||J&16){this.checkRedeclarationInScope(H,G,J,X);let Z=H.names.get(G)||0;if(J&16)Z=Z|4;else{if(!H.firstLexicalName)H.firstLexicalName=G;Z=Z|2}if(H.names.set(G,Z),J&8)this.maybeExportDefined(H,G)}else if(J&4){for(let Z=this.scopeStack.length-1;Z>=0;--Z)if(H=this.scopeStack[Z],this.checkRedeclarationInScope(H,G,J,X),H.names.set(G,(H.names.get(G)||0)|1),this.maybeExportDefined(H,G),H.flags&387)break}if(this.parser.inModule&&H.flags&1)this.undefinedExports.delete(G)}maybeExportDefined(G,J){if(this.parser.inModule&&G.flags&1)this.undefinedExports.delete(J)}checkRedeclarationInScope(G,J,X,H){if(this.isRedeclaredInScope(G,J,X))this.parser.raise(A.VarRedeclaration,H,{identifierName:J})}isRedeclaredInScope(G,J,X){if(!(X&1))return!1;if(X&8)return G.names.has(J);const H=G.names.get(J);if(X&16)return(H&2)>0||!this.treatFunctionsAsVarInScope(G)&&(H&1)>0;return(H&2)>0&&!(G.flags&8&&G.firstLexicalName===J)||!this.treatFunctionsAsVarInScope(G)&&(H&4)>0}checkLocalExport(G){const{name:J}=G;if(!this.scopeStack[0].names.has(J))this.undefinedExports.set(J,G.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let G=this.scopeStack.length-1;;G--){const{flags:J}=this.scopeStack[G];if(J&387)return J}}currentThisScopeFlags(){for(let G=this.scopeStack.length-1;;G--){const{flags:J}=this.scopeStack[G];if(J&451&&!(J&4))return J}}}class YK extends cG{constructor(...G){super(...G);this.declareFunctions=new Set}}class WK extends aG{createScope(G){return new YK(G)}declareName(G,J,X){const H=this.currentScope();if(J&2048){this.checkRedeclarationInScope(H,G,J,X),this.maybeExportDefined(H,G),H.declareFunctions.add(G);return}super.declareName(G,J,X)}isRedeclaredInScope(G,J,X){if(super.isRedeclaredInScope(G,J,X))return!0;if(X&2048&&!G.declareFunctions.has(J)){const H=G.names.get(J);return(H&4)>0||(H&2)>0}return!1}checkLocalExport(G){if(!this.scopeStack[0].declareFunctions.has(G.name))super.checkLocalExport(G)}}class zK{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(G){if(typeof G==="string")return this.plugins.has(G);else{const[J,X]=G;if(!this.hasPlugin(J))return!1;const H=this.plugins.get(J);for(let Z of Object.keys(X))if((H==null?void 0:H[Z])!==X[Z])return!1;return!0}}getPluginOption(G,J){var X;return(X=this.plugins.get(G))==null?void 0:X[J]}}class KK extends zK{addComment(G){if(this.filename)G.loc.filename=this.filename;const{commentsLen:J}=this.state;if(this.comments.length!==J)this.comments.length=J;this.comments.push(G),this.state.commentsLen++}processComment(G){const{commentStack:J}=this.state,X=J.length;if(X===0)return;let H=X-1;const Z=J[H];if(Z.start===G.end)Z.leadingNode=G,H--;const{start:V}=G;for(;H>=0;H--){const Q=J[H],Y=Q.end;if(Y>V)Q.containingNode=G,this.finalizeComment(Q),J.splice(H,1);else{if(Y===V)Q.trailingNode=G;break}}}finalizeComment(G){const{comments:J}=G;if(G.leadingNode!==null||G.trailingNode!==null){if(G.leadingNode!==null)UK(G.leadingNode,J);if(G.trailingNode!==null)kz1(G.trailingNode,J)}else{const{containingNode:X,start:H}=G;if(this.input.charCodeAt(H-1)===44)switch(X.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":E9(X,X.properties,G);break;case"CallExpression":case"OptionalCallExpression":E9(X,X.arguments,G);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":E9(X,X.params,G);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":E9(X,X.elements,G);break;case"ExportNamedDeclaration":case"ImportDeclaration":E9(X,X.specifiers,G);break;default:h9(X,J)}else h9(X,J)}}finalizeRemainingComments(){const{commentStack:G}=this.state;for(let J=G.length-1;J>=0;J--)this.finalizeComment(G[J]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(G){const{commentStack:J}=this.state,{length:X}=J;if(X===0)return;const H=J[X-1];if(H.leadingNode===G)H.leadingNode=null}resetPreviousIdentifierLeadingComments(G){const{commentStack:J}=this.state,{length:X}=J;if(X===0)return;if(J[X-1].trailingNode===G)J[X-1].trailingNode=null;else if(X>=2&&J[X-2].trailingNode===G)J[X-2].trailingNode=null}takeSurroundingComments(G,J,X){const{commentStack:H}=this.state,Z=H.length;if(Z===0)return;let V=Z-1;for(;V>=0;V--){const Q=H[V],Y=Q.end;if(Q.start===X)Q.leadingNode=G;else if(Y===J)Q.trailingNode=G;else if(Y<J)break}}}var Ez1=/\r\n|[\r\n\u2028\u2029]/,bG=new RegExp(Ez1.source,"g"),N7=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,k7=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;class d7{constructor(){this.flags=1024,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=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[v1.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(G){if(G)this.flags|=1;else this.flags&=-2}init({strictMode:G,sourceType:J,startLine:X,startColumn:H}){this.strict=G===!1?!1:G===!0?!0:J==="module",this.curLine=X,this.lineStart=-H,this.startLoc=this.endLoc=new M0(X,H,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(G){if(G)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(G){if(G)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(G){if(G)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(G){if(G)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(G){if(G)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(G){if(G)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(G){if(G)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(G){if(G)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(G){if(G)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(G){if(G)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(G){if(G)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(G){if(G)this.flags|=4096;else this.flags&=-4097}curPosition(){return new M0(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const G=new d7;return G.flags=this.flags,G.curLine=this.curLine,G.lineStart=this.lineStart,G.startLoc=this.startLoc,G.endLoc=this.endLoc,G.errors=this.errors.slice(),G.potentialArrowAt=this.potentialArrowAt,G.noArrowAt=this.noArrowAt.slice(),G.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),G.topicContext=this.topicContext,G.labels=this.labels.slice(),G.commentsLen=this.commentsLen,G.commentStack=this.commentStack.slice(),G.pos=this.pos,G.type=this.type,G.value=this.value,G.start=this.start,G.end=this.end,G.lastTokEndLoc=this.lastTokEndLoc,G.lastTokStartLoc=this.lastTokStartLoc,G.context=this.context.slice(),G.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,G.strictErrors=this.strictErrors,G.tokensLength=this.tokensLength,G}}var vz1=function G(J){return J>=48&&J<=57},iU={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},hG={bin:(G)=>G===48||G===49,oct:(G)=>G>=48&&G<=55,dec:(G)=>G>=48&&G<=57,hex:(G)=>G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102},bz1=new Set([103,109,115,105,121,117,100,118]);class K0{constructor(G){this.type=G.type,this.value=G.value,this.start=G.start,this.end=G.end,this.loc=new b9(G.startLoc,G.endLoc)}}class RK extends KK{constructor(G,J){super();this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(X,H,Z,V)=>{if(!this.options.errorRecovery)return!1;return this.raise(A.InvalidDigit,O9(X,H,Z),{radix:V}),!0},numericSeparatorInEscapeSequence:this.errorBuilder(A.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(A.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(A.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(A.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(X,H,Z)=>{this.recordStrictModeErrors(A.StrictNumericEscape,O9(X,H,Z))},unterminated:(X,H,Z)=>{throw this.raise(A.UnterminatedString,O9(X-1,H,Z))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(A.StrictNumericEscape),unterminated:(X,H,Z)=>{throw this.raise(A.UnterminatedTemplate,O9(X,H,Z))}}),this.state=new d7,this.state.init(G),this.input=J,this.length=J.length,this.comments=[],this.isLookahead=!1}pushToken(G){this.tokens.length=this.state.tokensLength,this.tokens.push(G),++this.state.tokensLength}next(){if(this.checkKeywordEscapes(),this.options.tokens)this.pushToken(new K0(this.state));this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(G){if(this.match(G))return this.next(),!0;else return!1}match(G){return this.state.type===G}createLookaheadState(G){return{pos:G.pos,value:null,type:G.type,start:G.start,end:G.end,context:[this.curContext()],inType:G.inType,startLoc:G.startLoc,lastTokEndLoc:G.lastTokEndLoc,curLine:G.curLine,lineStart:G.lineStart,curPosition:G.curPosition}}lookahead(){const G=this.state;this.state=this.createLookaheadState(G),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const J=this.state;return this.state=G,J}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(G){return N7.lastIndex=G,N7.test(this.input)?N7.lastIndex:G}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(G){return k7.lastIndex=G,k7.test(this.input)?k7.lastIndex:G}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(G){let J=this.input.charCodeAt(G);if((J&64512)===55296&&++G<this.input.length){const X=this.input.charCodeAt(G);if((X&64512)===56320)J=65536+((J&1023)<<10)+(X&1023)}return J}setStrict(G){if(this.state.strict=G,G)this.state.strictErrors.forEach(([J,X])=>this.raise(J,X)),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();if(this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(G){let J;if(!this.isLookahead)J=this.state.curPosition();const X=this.state.pos,H=this.input.indexOf(G,X+2);if(H===-1)throw this.raise(A.UnterminatedComment,this.state.curPosition());this.state.pos=H+G.length,bG.lastIndex=X+2;while(bG.test(this.input)&&bG.lastIndex<=H)++this.state.curLine,this.state.lineStart=bG.lastIndex;if(this.isLookahead)return;const Z={type:"CommentBlock",value:this.input.slice(X+2,H),start:X,end:H+G.length,loc:new b9(J,this.state.curPosition())};if(this.options.tokens)this.pushToken(Z);return Z}skipLineComment(G){const J=this.state.pos;let X;if(!this.isLookahead)X=this.state.curPosition();let H=this.input.charCodeAt(this.state.pos+=G);if(this.state.pos<this.length)while(!h5(H)&&++this.state.pos<this.length)H=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const Z=this.state.pos,Q={type:"CommentLine",value:this.input.slice(J+G,Z),start:J,end:Z,loc:new b9(X,this.state.curPosition())};if(this.options.tokens)this.pushToken(Q);return Q}skipSpace(){const G=this.state.pos,J=[];G:while(this.state.pos<this.length){const X=this.input.charCodeAt(this.state.pos);switch(X){case 32:case 160:case 9:++this.state.pos;break;case 13:if(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:{const H=this.skipBlockComment("*/");if(H!==void 0){if(this.addComment(H),this.options.attachComment)J.push(H)}break}case 47:{const H=this.skipLineComment(2);if(H!==void 0){if(this.addComment(H),this.options.attachComment)J.push(H)}break}default:break G}break;default:if(Oz1(X))++this.state.pos;else if(X===45&&!this.inModule&&this.options.annexB){const H=this.state.pos;if(this.input.charCodeAt(H+1)===45&&this.input.charCodeAt(H+2)===62&&(G===0||this.state.lineStart>G)){const Z=this.skipLineComment(3);if(Z!==void 0){if(this.addComment(Z),this.options.attachComment)J.push(Z)}}else break G}else if(X===60&&!this.inModule&&this.options.annexB){const H=this.state.pos;if(this.input.charCodeAt(H+1)===33&&this.input.charCodeAt(H+2)===45&&this.input.charCodeAt(H+3)===45){const Z=this.skipLineComment(4);if(Z!==void 0){if(this.addComment(Z),this.options.attachComment)J.push(Z)}}else break G}else break G}}if(J.length>0){const X=this.state.pos,H={start:G,end:X,comments:J,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(H)}}finishToken(G,J){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const X=this.state.type;if(this.state.type=G,this.state.value=J,!this.isLookahead)this.updateContext(X)}replaceToken(G){this.state.type=G,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;const G=this.state.pos+1,J=this.codePointAtPos(G);if(J>=48&&J<=57)throw this.raise(A.UnexpectedDigitAfterHash,this.state.curPosition());if(J===123||J===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(J===123?A.RecordExpressionHashIncorrectStartSyntaxType:A.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());if(this.state.pos+=2,J===123)this.finishToken(7);else this.finishToken(1)}else if($0(J))++this.state.pos,this.finishToken(138,this.readWord1(J));else if(J===92)++this.state.pos,this.finishToken(138,this.readWord1());else this.finishOp(27,1)}readToken_dot(){const G=this.input.charCodeAt(this.state.pos+1);if(G>=48&&G<=57){this.readNumber(!0);return}if(G===46&&this.input.charCodeAt(this.state.pos+2)===46)this.state.pos+=3,this.finishToken(21);else++this.state.pos,this.finishToken(16)}readToken_slash(){if(this.input.charCodeAt(this.state.pos+1)===61)this.finishOp(31,2);else this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let G=this.input.charCodeAt(this.state.pos+1);if(G!==33)return!1;const J=this.state.pos;this.state.pos+=1;while(!h5(G)&&++this.state.pos<this.length)G=this.input.charCodeAt(this.state.pos);const X=this.input.slice(J+2,this.state.pos);return this.finishToken(28,X),!0}readToken_mult_modulo(G){let J=G===42?55:54,X=1,H=this.input.charCodeAt(this.state.pos+1);if(G===42&&H===42)X++,H=this.input.charCodeAt(this.state.pos+2),J=57;if(H===61&&!this.state.inType)X++,J=G===37?33:30;this.finishOp(J,X)}readToken_pipe_amp(G){const J=this.input.charCodeAt(this.state.pos+1);if(J===G){if(this.input.charCodeAt(this.state.pos+2)===61)this.finishOp(30,3);else this.finishOp(G===124?41:42,2);return}if(G===124){if(J===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&J===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(A.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&J===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(A.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(J===61){this.finishOp(30,2);return}this.finishOp(G===124?43:45,1)}readToken_caret(){const G=this.input.charCodeAt(this.state.pos+1);if(G===61&&!this.state.inType)this.finishOp(32,2);else if(G===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){if(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94)this.unexpected()}else this.finishOp(44,1)}readToken_atSign(){if(this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}]))this.finishOp(38,2);else this.finishOp(26,1)}readToken_plus_min(G){const J=this.input.charCodeAt(this.state.pos+1);if(J===G){this.finishOp(34,2);return}if(J===61)this.finishOp(30,2);else this.finishOp(53,1)}readToken_lt(){const{pos:G}=this.state,J=this.input.charCodeAt(G+1);if(J===60){if(this.input.charCodeAt(G+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(J===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){const{pos:G}=this.state,J=this.input.charCodeAt(G+1);if(J===62){const X=this.input.charCodeAt(G+2)===62?3:2;if(this.input.charCodeAt(G+X)===61){this.finishOp(30,X+1);return}this.finishOp(52,X);return}if(J===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(G){const J=this.input.charCodeAt(this.state.pos+1);if(J===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(G===61&&J===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(G===61?29:35,1)}readToken_question(){const G=this.input.charCodeAt(this.state.pos+1),J=this.input.charCodeAt(this.state.pos+2);if(G===63)if(J===61)this.finishOp(30,3);else this.finishOp(40,2);else if(G===46&&!(J>=48&&J<=57))this.state.pos+=2,this.finishToken(18);else++this.state.pos,this.finishToken(17)}getTokenFromCode(G){switch(G){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(A.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(A.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:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58)this.finishOp(15,2);else++this.state.pos,this.finishToken(14);return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{const J=this.input.charCodeAt(this.state.pos+1);if(J===120||J===88){this.readRadixNumber(16);return}if(J===111||J===79){this.readRadixNumber(8);return}if(J===98||J===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(G);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(G);return;case 124:case 38:this.readToken_pipe_amp(G);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(G);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(G);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($0(G)){this.readWord(G);return}}throw this.raise(A.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(G)})}finishOp(G,J){const X=this.input.slice(this.state.pos,this.state.pos+J);this.state.pos+=J,this.finishToken(G,X)}readRegexp(){const G=this.state.startLoc,J=this.state.start+1;let X,H,{pos:Z}=this.state;for(;;++Z){if(Z>=this.length)throw this.raise(A.UnterminatedRegExp,K2(G,1));const W=this.input.charCodeAt(Z);if(h5(W))throw this.raise(A.UnterminatedRegExp,K2(G,1));if(X)X=!1;else{if(W===91)H=!0;else if(W===93&&H)H=!1;else if(W===47&&!H)break;X=W===92}}const V=this.input.slice(J,Z);++Z;let Q="";const Y=()=>K2(G,Z+2-J);while(Z<this.length){const W=this.codePointAtPos(Z),z=String.fromCharCode(W);if(bz1.has(W)){if(W===118){if(Q.includes("u"))this.raise(A.IncompatibleRegExpUVFlags,Y())}else if(W===117){if(Q.includes("v"))this.raise(A.IncompatibleRegExpUVFlags,Y())}if(Q.includes(z))this.raise(A.DuplicateRegExpFlags,Y())}else if(b5(W)||W===92)this.raise(A.MalformedRegExpFlags,Y());else break;++Z,Q+=z}this.state.pos=Z,this.finishToken(137,{pattern:V,flags:Q})}readInt(G,J,X=!1,H=!0){const{n:Z,pos:V}=BK(this.input,this.state.pos,this.state.lineStart,this.state.curLine,G,J,X,H,this.errorHandlers_readInt,!1);return this.state.pos=V,Z}readRadixNumber(G){const J=this.state.curPosition();let X=!1;this.state.pos+=2;const H=this.readInt(G);if(H==null)this.raise(A.InvalidDigit,K2(J,2),{radix:G});const Z=this.input.charCodeAt(this.state.pos);if(Z===110)++this.state.pos,X=!0;else if(Z===109)throw this.raise(A.InvalidDecimal,J);if($0(this.codePointAtPos(this.state.pos)))throw this.raise(A.NumberIdentifier,this.state.curPosition());if(X){const V=this.input.slice(J.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,V);return}this.finishToken(134,H)}readNumber(G){const J=this.state.pos,X=this.state.curPosition();let H=!1,Z=!1,V=!1,Q=!1;if(!G&&this.readInt(10)===null)this.raise(A.InvalidNumber,this.state.curPosition());const Y=this.state.pos-J>=2&&this.input.charCodeAt(J)===48;if(Y){const F=this.input.slice(J,this.state.pos);if(this.recordStrictModeErrors(A.StrictOctalLiteral,X),!this.state.strict){const j=F.indexOf("_");if(j>0)this.raise(A.ZeroDigitNumericSeparator,K2(X,j))}Q=Y&&!/[89]/.test(F)}let W=this.input.charCodeAt(this.state.pos);if(W===46&&!Q)++this.state.pos,this.readInt(10),H=!0,W=this.input.charCodeAt(this.state.pos);if((W===69||W===101)&&!Q){if(W=this.input.charCodeAt(++this.state.pos),W===43||W===45)++this.state.pos;if(this.readInt(10)===null)this.raise(A.InvalidOrMissingExponent,X);H=!0,V=!0,W=this.input.charCodeAt(this.state.pos)}if(W===110){if(H||Y)this.raise(A.InvalidBigIntLiteral,X);++this.state.pos,Z=!0}if(W===109){if(this.expectPlugin("decimal",this.state.curPosition()),V||Y)this.raise(A.InvalidDecimal,X);++this.state.pos;var z=!0}if($0(this.codePointAtPos(this.state.pos)))throw this.raise(A.NumberIdentifier,this.state.curPosition());const B=this.input.slice(J,this.state.pos).replace(/[_mn]/g,"");if(Z){this.finishToken(135,B);return}if(z){this.finishToken(136,B);return}const q=Q?parseInt(B,8):parseFloat(B);this.finishToken(134,q)}readCodePoint(G){const{code:J,pos:X}=$K(this.input,this.state.pos,this.state.lineStart,this.state.curLine,G,this.errorHandlers_readCodePoint);return this.state.pos=X,J}readString(G){const{str:J,pos:X,curLine:H,lineStart:Z}=uU(G===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=X+1,this.state.lineStart=Z,this.state.curLine=H,this.finishToken(133,J)}readTemplateContinuation(){if(!this.match(8))this.unexpected(null,8);this.state.pos--,this.readTemplateToken()}readTemplateToken(){const G=this.input[this.state.pos],{str:J,firstInvalidLoc:X,pos:H,curLine:Z,lineStart:V}=uU("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);if(this.state.pos=H+1,this.state.lineStart=V,this.state.curLine=Z,X)this.state.firstInvalidTemplateEscapePos=new M0(X.curLine,X.pos-X.lineStart,X.pos);if(this.input.codePointAt(H)===96)this.finishToken(24,X?null:G+J+"`");else this.state.pos++,this.finishToken(25,X?null:G+J+"${")}recordStrictModeErrors(G,J){const X=J.index;if(this.state.strict&&!this.state.strictErrors.has(X))this.raise(G,J);else this.state.strictErrors.set(X,[G,J])}readWord1(G){this.state.containsEsc=!1;let J="";const X=this.state.pos;let H=this.state.pos;if(G!==void 0)this.state.pos+=G<=65535?1:2;while(this.state.pos<this.length){const Z=this.codePointAtPos(this.state.pos);if(b5(Z))this.state.pos+=Z<=65535?1:2;else if(Z===92){this.state.containsEsc=!0,J+=this.input.slice(H,this.state.pos);const V=this.state.curPosition(),Q=this.state.pos===X?$0:b5;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(A.MissingUnicodeEscape,this.state.curPosition()),H=this.state.pos-1;continue}++this.state.pos;const Y=this.readCodePoint(!0);if(Y!==null){if(!Q(Y))this.raise(A.EscapedCharNotAnIdentifier,V);J+=String.fromCodePoint(Y)}H=this.state.pos}else break}return J+this.input.slice(H,this.state.pos)}readWord(G){const J=this.readWord1(G),X=y7.get(J);if(X!==void 0)this.finishToken(X,O0(X));else this.finishToken(132,J)}checkKeywordEscapes(){const{type:G}=this.state;if(r7(G)&&this.state.containsEsc)this.raise(A.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:O0(G)})}raise(G,J,X={}){const H=J instanceof M0?J:J.loc.start,Z=G(H,X);if(!this.options.errorRecovery)throw Z;if(!this.isLookahead)this.state.errors.push(Z);return Z}raiseOverwrite(G,J,X={}){const H=J instanceof M0?J:J.loc.start,Z=H.index,V=this.state.errors;for(let Q=V.length-1;Q>=0;Q--){const Y=V[Q];if(Y.loc.index===Z)return V[Q]=G(H,X);if(Y.loc.index<Z)break}return this.raise(G,J,X)}updateContext(G){}unexpected(G,J){throw this.raise(A.UnexpectedToken,G!=null?G:this.state.startLoc,{expected:J?O0(J):null})}expectPlugin(G,J){if(this.hasPlugin(G))return!0;throw this.raise(A.MissingPlugin,J!=null?J:this.state.startLoc,{missingPlugin:[G]})}expectOnePlugin(G){if(!G.some((J)=>this.hasPlugin(J)))throw this.raise(A.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:G})}errorBuilder(G){return(J,X,H)=>{this.raise(G,O9(J,X,H))}}}class MK{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class qK{constructor(G){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=G}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new MK)}exit(){const G=this.stack.pop(),J=this.current();for(let[X,H]of Array.from(G.undefinedPrivateNames))if(J){if(!J.undefinedPrivateNames.has(X))J.undefinedPrivateNames.set(X,H)}else this.parser.raise(A.InvalidPrivateFieldResolution,H,{identifierName:X})}declarePrivateName(G,J,X){const{privateNames:H,loneAccessors:Z,undefinedPrivateNames:V}=this.current();let Q=H.has(G);if(J&3){const Y=Q&&Z.get(G);if(Y){const W=Y&4,z=J&4,B=Y&3,q=J&3;if(Q=B===q||W!==z,!Q)Z.delete(G)}else if(!Q)Z.set(G,J)}if(Q)this.parser.raise(A.PrivateNameRedeclaration,X,{identifierName:G});H.add(G),V.delete(G)}usePrivateName(G,J){let X;for(X of this.stack)if(X.privateNames.has(G))return;if(X)X.undefinedPrivateNames.set(G,J);else this.parser.raise(A.InvalidPrivateFieldResolution,J,{identifierName:G})}}class m9{constructor(G=0){this.type=G}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class s7 extends m9{constructor(G){super(G);this.declarationErrors=new Map}recordDeclarationError(G,J){const X=J.index;this.declarationErrors.set(X,[G,J])}clearDeclarationError(G){this.declarationErrors.delete(G)}iterateErrors(G){this.declarationErrors.forEach(G)}}class FK{constructor(G){this.parser=void 0,this.stack=[new m9],this.parser=G}enter(G){this.stack.push(G)}exit(){this.stack.pop()}recordParameterInitializerError(G,J){const X=J.loc.start,{stack:H}=this;let Z=H.length-1,V=H[Z];while(!V.isCertainlyParameterDeclaration()){if(V.canBeArrowParameterDeclaration())V.recordDeclarationError(G,X);else return;V=H[--Z]}this.parser.raise(G,X)}recordArrowParameterBindingError(G,J){const{stack:X}=this,H=X[X.length-1],Z=J.loc.start;if(H.isCertainlyParameterDeclaration())this.parser.raise(G,Z);else if(H.canBeArrowParameterDeclaration())H.recordDeclarationError(G,Z);else return}recordAsyncArrowParametersError(G){const{stack:J}=this;let X=J.length-1,H=J[X];while(H.canBeArrowParameterDeclaration()){if(H.type===2)H.recordDeclarationError(A.AwaitBindingIdentifier,G);H=J[--X]}}validateAsPattern(){const{stack:G}=this,J=G[G.length-1];if(!J.canBeArrowParameterDeclaration())return;J.iterateErrors(([X,H])=>{this.parser.raise(X,H);let Z=G.length-2,V=G[Z];while(V.canBeArrowParameterDeclaration())V.clearDeclarationError(H.index),V=G[--Z]})}}class DK{constructor(){this.stacks=[]}enter(G){this.stacks.push(G)}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}}class IK extends RK{addExtra(G,J,X,H=!0){if(!G)return;let{extra:Z}=G;if(Z==null)Z={},G.extra=Z;if(H)Z[J]=X;else Object.defineProperty(Z,J,{enumerable:H,value:X})}isContextual(G){return this.state.type===G&&!this.state.containsEsc}isUnparsedContextual(G,J){const X=G+J.length;if(this.input.slice(G,X)===J){const H=this.input.charCodeAt(X);return!(b5(H)||(H&64512)===55296)}return!1}isLookaheadContextual(G){const J=this.nextTokenStart();return this.isUnparsedContextual(J,G)}eatContextual(G){if(this.isContextual(G))return this.next(),!0;return!1}expectContextual(G,J){if(!this.eatContextual(G)){if(J!=null)throw this.raise(J,this.state.startLoc);this.unexpected(null,G)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return rU(this.input,this.state.lastTokEndLoc.index,this.state.start)}hasFollowingLineBreak(){return rU(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(G=!0){if(G?this.isLineTerminator():this.eat(13))return;this.raise(A.MissingSemicolon,this.state.lastTokEndLoc)}expect(G,J){if(!this.eat(G))this.unexpected(J,G)}tryParse(G,J=this.state.clone()){const X={node:null};try{const H=G((Z=null)=>{throw X.node=Z,X});if(this.state.errors.length>J.errors.length){const Z=this.state;return this.state=J,this.state.tokensLength=Z.tokensLength,{node:H,error:Z.errors[J.errors.length],thrown:!1,aborted:!1,failState:Z}}return{node:H,error:null,thrown:!1,aborted:!1,failState:null}}catch(H){const Z=this.state;if(this.state=J,H instanceof SyntaxError)return{node:null,error:H,thrown:!0,aborted:!1,failState:Z};if(H===X)return{node:X.node,error:null,thrown:!1,aborted:!0,failState:Z};throw H}}checkExpressionErrors(G,J){if(!G)return!1;const{shorthandAssignLoc:X,doubleProtoLoc:H,privateKeyLoc:Z,optionalParametersLoc:V}=G,Q=!!X||!!H||!!V||!!Z;if(!J)return Q;if(X!=null)this.raise(A.InvalidCoverInitializedName,X);if(H!=null)this.raise(A.DuplicateProto,H);if(Z!=null)this.raise(A.UnexpectedPrivateField,Z);if(V!=null)this.unexpected(V)}isLiteralPropertyName(){return GK(this.state.type)}isPrivateName(G){return G.type==="PrivateName"}getPrivateNameSV(G){return G.id.name}hasPropertyAsPrivateName(G){return(G.type==="MemberExpression"||G.type==="OptionalMemberExpression")&&this.isPrivateName(G.property)}isObjectProperty(G){return G.type==="ObjectProperty"}isObjectMethod(G){return G.type==="ObjectMethod"}initializeScopes(G=this.options.sourceType==="module"){const J=this.state.labels;this.state.labels=[];const X=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const H=this.inModule;this.inModule=G;const Z=this.scope,V=this.getScopeHandler();this.scope=new V(this,G);const Q=this.prodParam;this.prodParam=new DK;const Y=this.classScope;this.classScope=new qK(this);const W=this.expressionScope;return this.expressionScope=new FK(this),()=>{this.state.labels=J,this.exportedIdentifiers=X,this.inModule=H,this.scope=Z,this.prodParam=Q,this.classScope=Y,this.expressionScope=W}}enterInitialScopes(){let G=0;if(this.inModule)G|=2;this.scope.enter(1),this.prodParam.enter(G)}checkDestructuringPrivate(G){const{privateKeyLoc:J}=G;if(J!==null)this.expectPlugin("destructuringPrivate",J)}}class g9{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class y9{constructor(G,J,X){if(this.type="",this.start=J,this.end=0,this.loc=new b9(X),G!=null&&G.options.ranges)this.range=[J,0];if(G!=null&&G.filename)this.loc.filename=G.filename}}var p7=y9.prototype;p7.__clone=function(){const G=new y9(void 0,this.start,this.loc.start),J=Object.keys(this);for(let X=0,H=J.length;X<H;X++){const Z=J[X];if(Z!=="leadingComments"&&Z!=="trailingComments"&&Z!=="innerComments")G[Z]=this[Z]}return G};class AK extends IK{startNode(){const G=this.state.startLoc;return new y9(this,G.index,G)}startNodeAt(G){return new y9(this,G.index,G)}startNodeAtNode(G){return this.startNodeAt(G.loc.start)}finishNode(G,J){return this.finishNodeAt(G,J,this.state.lastTokEndLoc)}finishNodeAt(G,J,X){if(G.type=J,G.end=X.index,G.loc.end=X,this.options.ranges)G.range[1]=X.index;if(this.options.attachComment)this.processComment(G);return G}resetStartLocation(G,J){if(G.start=J.index,G.loc.start=J,this.options.ranges)G.range[0]=J.index}resetEndLocation(G,J=this.state.lastTokEndLoc){if(G.end=J.index,G.loc.end=J,this.options.ranges)G.range[1]=J.index}resetStartLocationFromNode(G,J){this.resetStartLocation(G,J.loc.start)}}var cz1=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),W1=R0`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:G})=>`Cannot overwrite reserved type ${G}.`,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:G,enumName:J})=>`Boolean enum members need to be initialized. Use either \`${G} = true,\` or \`${G} = false,\` in enum \`${J}\`.`,EnumDuplicateMemberName:({memberName:G,enumName:J})=>`Enum member names need to be unique, but the name \`${G}\` has already been used before in enum \`${J}\`.`,EnumInconsistentMemberValues:({enumName:G})=>`Enum \`${G}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:G,enumName:J})=>`Enum type \`${G}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${J}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:G})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${G}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:G,memberName:J,explicitType:X})=>`Enum \`${G}\` has type \`${X}\`, so the initializer of \`${J}\` needs to be a ${X} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:G,memberName:J})=>`Symbol enum members cannot be initialized. Use \`${J},\` in enum \`${G}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:G,memberName:J})=>`The enum member initializer for \`${J}\` needs to be a literal (either a boolean, number, or string) in enum \`${G}\`.`,EnumInvalidMemberName:({enumName:G,memberName:J,suggestion:X})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${J}\`, consider using \`${X}\`, in enum \`${G}\`.`,EnumNumberMemberNotInitialized:({enumName:G,memberName:J})=>`Number enum members need to be initialized, e.g. \`${J} = 1\` in enum \`${G}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:G})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${G}\`.`,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:G})=>`Unexpected reserved type ${G}.`,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:G,suggestion:J})=>`\`declare export ${G}\` is not supported. Use \`${J}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."}),rz1={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},uz1=/\*?\s*@((?:no)?flow)\b/,dz1=(G)=>class J extends G{constructor(...X){super(...X);this.flowPragma=void 0}getScopeHandler(){return WK}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(X,H){if(X!==133&&X!==13&&X!==28){if(this.flowPragma===void 0)this.flowPragma=null}super.finishToken(X,H)}addComment(X){if(this.flowPragma===void 0){const H=uz1.exec(X.value);if(!H);else if(H[1]==="flow")this.flowPragma="flow";else if(H[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(X)}flowParseTypeInitialiser(X){const H=this.state.inType;this.state.inType=!0,this.expect(X||14);const Z=this.flowParseType();return this.state.inType=H,Z}flowParsePredicate(){const X=this.startNode(),H=this.state.startLoc;if(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>H.index+1)this.raise(W1.UnexpectedSpaceBetweenModuloChecks,H);if(this.eat(10))return X.value=super.parseExpression(),this.expect(11),this.finishNode(X,"DeclaredPredicate");else return this.finishNode(X,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const X=this.state.inType;this.state.inType=!0,this.expect(14);let H=null,Z=null;if(this.match(54))this.state.inType=X,Z=this.flowParsePredicate();else if(H=this.flowParseType(),this.state.inType=X,this.match(54))Z=this.flowParsePredicate();return[H,Z]}flowParseDeclareClass(X){return this.next(),this.flowParseInterfaceish(X,!0),this.finishNode(X,"DeclareClass")}flowParseDeclareFunction(X){this.next();const H=X.id=this.parseIdentifier(),Z=this.startNode(),V=this.startNode();if(this.match(47))Z.typeParameters=this.flowParseTypeParameterDeclaration();else Z.typeParameters=null;this.expect(10);const Q=this.flowParseFunctionTypeParams();return Z.params=Q.params,Z.rest=Q.rest,Z.this=Q._this,this.expect(11),[Z.returnType,X.predicate]=this.flowParseTypeAndPredicateInitialiser(),V.typeAnnotation=this.finishNode(Z,"FunctionTypeAnnotation"),H.typeAnnotation=this.finishNode(V,"TypeAnnotation"),this.resetEndLocation(H),this.semicolon(),this.scope.declareName(X.id.name,2048,X.id.loc.start),this.finishNode(X,"DeclareFunction")}flowParseDeclare(X,H){if(this.match(80))return this.flowParseDeclareClass(X);else if(this.match(68))return this.flowParseDeclareFunction(X);else if(this.match(74))return this.flowParseDeclareVariable(X);else if(this.eatContextual(127))if(this.match(16))return this.flowParseDeclareModuleExports(X);else{if(H)this.raise(W1.NestedDeclareModule,this.state.lastTokStartLoc);return this.flowParseDeclareModule(X)}else if(this.isContextual(130))return this.flowParseDeclareTypeAlias(X);else if(this.isContextual(131))return this.flowParseDeclareOpaqueType(X);else if(this.isContextual(129))return this.flowParseDeclareInterface(X);else if(this.match(82))return this.flowParseDeclareExportDeclaration(X,H);else this.unexpected()}flowParseDeclareVariable(X){return this.next(),X.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(X.id.name,5,X.id.loc.start),this.semicolon(),this.finishNode(X,"DeclareVariable")}flowParseDeclareModule(X){if(this.scope.enter(0),this.match(133))X.id=super.parseExprAtom();else X.id=this.parseIdentifier();const H=X.body=this.startNode(),Z=H.body=[];this.expect(5);while(!this.match(8)){let Y=this.startNode();if(this.match(83)){if(this.next(),!this.isContextual(130)&&!this.match(87))this.raise(W1.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc);super.parseImport(Y)}else this.expectContextual(125,W1.UnsupportedStatementInDeclareModule),Y=this.flowParseDeclare(Y,!0);Z.push(Y)}this.scope.exit(),this.expect(8),this.finishNode(H,"BlockStatement");let V=null,Q=!1;return Z.forEach((Y)=>{if(az1(Y)){if(V==="CommonJS")this.raise(W1.AmbiguousDeclareModuleKind,Y);V="ES"}else if(Y.type==="DeclareModuleExports"){if(Q)this.raise(W1.DuplicateDeclareModuleExports,Y);if(V==="ES")this.raise(W1.AmbiguousDeclareModuleKind,Y);V="CommonJS",Q=!0}}),X.kind=V||"CommonJS",this.finishNode(X,"DeclareModule")}flowParseDeclareExportDeclaration(X,H){if(this.expect(82),this.eat(65)){if(this.match(68)||this.match(80))X.declaration=this.flowParseDeclare(this.startNode());else X.declaration=this.flowParseType(),this.semicolon();return X.default=!0,this.finishNode(X,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!H){const Z=this.state.value;throw this.raise(W1.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:Z,suggestion:rz1[Z]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return X.declaration=this.flowParseDeclare(this.startNode()),X.default=!1,this.finishNode(X,"DeclareExportDeclaration");else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)){if(X=this.parseExport(X,null),X.type==="ExportNamedDeclaration")X.type="ExportDeclaration",X.default=!1,delete X.exportKind;return X.type="Declare"+X.type,X}}this.unexpected()}flowParseDeclareModuleExports(X){return this.next(),this.expectContextual(111),X.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(X,"DeclareModuleExports")}flowParseDeclareTypeAlias(X){this.next();const H=this.flowParseTypeAlias(X);return H.type="DeclareTypeAlias",H}flowParseDeclareOpaqueType(X){this.next();const H=this.flowParseOpaqueType(X,!0);return H.type="DeclareOpaqueType",H}flowParseDeclareInterface(X){return this.next(),this.flowParseInterfaceish(X,!1),this.finishNode(X,"DeclareInterface")}flowParseInterfaceish(X,H){if(X.id=this.flowParseRestrictedIdentifier(!H,!0),this.scope.declareName(X.id.name,H?17:8201,X.id.loc.start),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();else X.typeParameters=null;if(X.extends=[],this.eat(81))do X.extends.push(this.flowParseInterfaceExtends());while(!H&&this.eat(12));if(H){if(X.implements=[],X.mixins=[],this.eatContextual(117))do X.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do X.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}X.body=this.flowParseObjectType({allowStatic:H,allowExact:!1,allowSpread:!1,allowProto:H,allowInexact:!1})}flowParseInterfaceExtends(){const X=this.startNode();if(X.id=this.flowParseQualifiedTypeIdentifier(),this.match(47))X.typeParameters=this.flowParseTypeParameterInstantiation();else X.typeParameters=null;return this.finishNode(X,"InterfaceExtends")}flowParseInterface(X){return this.flowParseInterfaceish(X,!1),this.finishNode(X,"InterfaceDeclaration")}checkNotUnderscore(X){if(X==="_")this.raise(W1.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(X,H,Z){if(!cz1.has(X))return;this.raise(Z?W1.AssignReservedType:W1.UnexpectedReservedType,H,{reservedType:X})}flowParseRestrictedIdentifier(X,H){return this.checkReservedType(this.state.value,this.state.startLoc,H),this.parseIdentifier(X)}flowParseTypeAlias(X){if(X.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(X.id.name,8201,X.id.loc.start),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();else X.typeParameters=null;return X.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(X,"TypeAlias")}flowParseOpaqueType(X,H){if(this.expectContextual(130),X.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(X.id.name,8201,X.id.loc.start),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();else X.typeParameters=null;if(X.supertype=null,this.match(14))X.supertype=this.flowParseTypeInitialiser(14);if(X.impltype=null,!H)X.impltype=this.flowParseTypeInitialiser(29);return this.semicolon(),this.finishNode(X,"OpaqueType")}flowParseTypeParameter(X=!1){const H=this.state.startLoc,Z=this.startNode(),V=this.flowParseVariance(),Q=this.flowParseTypeAnnotatableIdentifier();if(Z.name=Q.name,Z.variance=V,Z.bound=Q.typeAnnotation,this.match(29))this.eat(29),Z.default=this.flowParseType();else if(X)this.raise(W1.MissingTypeParamDefault,H);return this.finishNode(Z,"TypeParameter")}flowParseTypeParameterDeclaration(){const X=this.state.inType,H=this.startNode();if(H.params=[],this.state.inType=!0,this.match(47)||this.match(142))this.next();else this.unexpected();let Z=!1;do{const V=this.flowParseTypeParameter(Z);if(H.params.push(V),V.default)Z=!0;if(!this.match(48))this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=X,this.finishNode(H,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const X=this.startNode(),H=this.state.inType;X.params=[],this.state.inType=!0,this.expect(47);const Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!1;while(!this.match(48))if(X.params.push(this.flowParseType()),!this.match(48))this.expect(12);return this.state.noAnonFunctionType=Z,this.expect(48),this.state.inType=H,this.finishNode(X,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const X=this.startNode(),H=this.state.inType;X.params=[],this.state.inType=!0,this.expect(47);while(!this.match(48))if(X.params.push(this.flowParseTypeOrImplicitInstantiation()),!this.match(48))this.expect(12);return this.expect(48),this.state.inType=H,this.finishNode(X,"TypeParameterInstantiation")}flowParseInterfaceType(){const X=this.startNode();if(this.expectContextual(129),X.extends=[],this.eat(81))do X.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return X.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(X,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(X,H,Z){if(X.static=H,this.lookahead().type===14)X.id=this.flowParseObjectPropertyKey(),X.key=this.flowParseTypeInitialiser();else X.id=null,X.key=this.flowParseType();return this.expect(3),X.value=this.flowParseTypeInitialiser(),X.variance=Z,this.finishNode(X,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(X,H){if(X.static=H,X.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10))X.method=!0,X.optional=!1,X.value=this.flowParseObjectTypeMethodish(this.startNodeAt(X.loc.start));else{if(X.method=!1,this.eat(17))X.optional=!0;X.value=this.flowParseTypeInitialiser()}return this.finishNode(X,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(X){if(X.params=[],X.rest=null,X.typeParameters=null,X.this=null,this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();if(this.expect(10),this.match(78)){if(X.this=this.flowParseFunctionTypeParam(!0),X.this.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(X.params.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))X.rest=this.flowParseFunctionTypeParam(!1);return this.expect(11),X.returnType=this.flowParseTypeInitialiser(),this.finishNode(X,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(X,H){const Z=this.startNode();return X.static=H,X.value=this.flowParseObjectTypeMethodish(Z),this.finishNode(X,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:X,allowExact:H,allowSpread:Z,allowProto:V,allowInexact:Q}){const Y=this.state.inType;this.state.inType=!0;const W=this.startNode();W.callProperties=[],W.properties=[],W.indexers=[],W.internalSlots=[];let z,B,q=!1;if(H&&this.match(6))this.expect(6),z=9,B=!0;else this.expect(5),z=8,B=!1;W.exact=B;while(!this.match(z)){let j=!1,f=null,y=null;const w=this.startNode();if(V&&this.isContextual(118)){const h=this.lookahead();if(h.type!==14&&h.type!==17)this.next(),f=this.state.startLoc,X=!1}if(X&&this.isContextual(106)){const h=this.lookahead();if(h.type!==14&&h.type!==17)this.next(),j=!0}const v=this.flowParseVariance();if(this.eat(0)){if(f!=null)this.unexpected(f);if(this.eat(0)){if(v)this.unexpected(v.loc.start);W.internalSlots.push(this.flowParseObjectTypeInternalSlot(w,j))}else W.indexers.push(this.flowParseObjectTypeIndexer(w,j,v))}else if(this.match(10)||this.match(47)){if(f!=null)this.unexpected(f);if(v)this.unexpected(v.loc.start);W.callProperties.push(this.flowParseObjectTypeCallProperty(w,j))}else{let h="init";if(this.isContextual(99)||this.isContextual(104)){const e=this.lookahead();if(GK(e.type))h=this.state.value,this.next()}const K1=this.flowParseObjectTypeProperty(w,j,f,v,h,Z,Q!=null?Q:!B);if(K1===null)q=!0,y=this.state.lastTokStartLoc;else W.properties.push(K1)}if(this.flowObjectTypeSemicolon(),y&&!this.match(8)&&!this.match(9))this.raise(W1.UnexpectedExplicitInexactInObject,y)}if(this.expect(z),Z)W.inexact=q;const F=this.finishNode(W,"ObjectTypeAnnotation");return this.state.inType=Y,F}flowParseObjectTypeProperty(X,H,Z,V,Q,Y,W){if(this.eat(21)){if(this.match(12)||this.match(13)||this.match(8)||this.match(9)){if(!Y)this.raise(W1.InexactInsideNonObject,this.state.lastTokStartLoc);else if(!W)this.raise(W1.InexactInsideExact,this.state.lastTokStartLoc);if(V)this.raise(W1.InexactVariance,V);return null}if(!Y)this.raise(W1.UnexpectedSpreadType,this.state.lastTokStartLoc);if(Z!=null)this.unexpected(Z);if(V)this.raise(W1.SpreadVariance,V);return X.argument=this.flowParseType(),this.finishNode(X,"ObjectTypeSpreadProperty")}else{X.key=this.flowParseObjectPropertyKey(),X.static=H,X.proto=Z!=null,X.kind=Q;let z=!1;if(this.match(47)||this.match(10)){if(X.method=!0,Z!=null)this.unexpected(Z);if(V)this.unexpected(V.loc.start);if(X.value=this.flowParseObjectTypeMethodish(this.startNodeAt(X.loc.start)),Q==="get"||Q==="set")this.flowCheckGetterSetterParams(X);if(!Y&&X.key.name==="constructor"&&X.value.this)this.raise(W1.ThisParamBannedInConstructor,X.value.this)}else{if(Q!=="init")this.unexpected();if(X.method=!1,this.eat(17))z=!0;X.value=this.flowParseTypeInitialiser(),X.variance=V}return X.optional=z,this.finishNode(X,"ObjectTypeProperty")}}flowCheckGetterSetterParams(X){const H=X.kind==="get"?0:1,Z=X.value.params.length+(X.value.rest?1:0);if(X.value.this)this.raise(X.kind==="get"?W1.GetterMayNotHaveThisParam:W1.SetterMayNotHaveThisParam,X.value.this);if(Z!==H)this.raise(X.kind==="get"?A.BadGetterArity:A.BadSetterArity,X);if(X.kind==="set"&&X.value.rest)this.raise(A.BadSetterRestParameter,X)}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9))this.unexpected()}flowParseQualifiedTypeIdentifier(X,H){var Z;(Z=X)!=null||(X=this.state.startLoc);let V=H||this.flowParseRestrictedIdentifier(!0);while(this.eat(16)){const Q=this.startNodeAt(X);Q.qualification=V,Q.id=this.flowParseRestrictedIdentifier(!0),V=this.finishNode(Q,"QualifiedTypeIdentifier")}return V}flowParseGenericType(X,H){const Z=this.startNodeAt(X);if(Z.typeParameters=null,Z.id=this.flowParseQualifiedTypeIdentifier(X,H),this.match(47))Z.typeParameters=this.flowParseTypeParameterInstantiation();return this.finishNode(Z,"GenericTypeAnnotation")}flowParseTypeofType(){const X=this.startNode();return this.expect(87),X.argument=this.flowParsePrimaryType(),this.finishNode(X,"TypeofTypeAnnotation")}flowParseTupleType(){const X=this.startNode();X.types=[],this.expect(0);while(this.state.pos<this.length&&!this.match(3)){if(X.types.push(this.flowParseType()),this.match(3))break;this.expect(12)}return this.expect(3),this.finishNode(X,"TupleTypeAnnotation")}flowParseFunctionTypeParam(X){let H=null,Z=!1,V=null;const Q=this.startNode(),Y=this.lookahead(),W=this.state.type===78;if(Y.type===14||Y.type===17){if(W&&!X)this.raise(W1.ThisParamMustBeFirst,Q);if(H=this.parseIdentifier(W),this.eat(17)){if(Z=!0,W)this.raise(W1.ThisParamMayNotBeOptional,Q)}V=this.flowParseTypeInitialiser()}else V=this.flowParseType();return Q.name=H,Q.optional=Z,Q.typeAnnotation=V,this.finishNode(Q,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(X){const H=this.startNodeAt(X.loc.start);return H.name=null,H.optional=!1,H.typeAnnotation=X,this.finishNode(H,"FunctionTypeParam")}flowParseFunctionTypeParams(X=[]){let H=null,Z=null;if(this.match(78)){if(Z=this.flowParseFunctionTypeParam(!0),Z.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(X.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))H=this.flowParseFunctionTypeParam(!1);return{params:X,rest:H,_this:Z}}flowIdentToTypeAnnotation(X,H,Z){switch(Z.name){case"any":return this.finishNode(H,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(H,"BooleanTypeAnnotation");case"mixed":return this.finishNode(H,"MixedTypeAnnotation");case"empty":return this.finishNode(H,"EmptyTypeAnnotation");case"number":return this.finishNode(H,"NumberTypeAnnotation");case"string":return this.finishNode(H,"StringTypeAnnotation");case"symbol":return this.finishNode(H,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(Z.name),this.flowParseGenericType(X,Z)}}flowParsePrimaryType(){const X=this.state.startLoc,H=this.startNode();let Z,V,Q=!1;const Y=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,V=this.flowParseTupleType(),this.state.noAnonFunctionType=Y,V;case 47:{const W=this.startNode();return W.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),Z=this.flowParseFunctionTypeParams(),W.params=Z.params,W.rest=Z.rest,W.this=Z._this,this.expect(11),this.expect(19),W.returnType=this.flowParseType(),this.finishNode(W,"FunctionTypeAnnotation")}case 10:{const W=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(N1(this.state.type)||this.match(78)){const z=this.lookahead().type;Q=z!==17&&z!==14}else Q=!0;if(Q)if(this.state.noAnonFunctionType=!1,V=this.flowParseType(),this.state.noAnonFunctionType=Y,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),V;else this.eat(12);if(V)Z=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(V)]);else Z=this.flowParseFunctionTypeParams();return W.params=Z.params,W.rest=Z.rest,W.this=Z._this,this.expect(11),this.expect(19),W.returnType=this.flowParseType(),W.typeParameters=null,this.finishNode(W,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return H.value=this.match(85),this.next(),this.finishNode(H,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",H);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",H);throw this.raise(W1.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(H,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(H,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(H,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(H,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(r7(this.state.type)){const W=O0(this.state.type);return this.next(),super.createIdentifier(H,W)}else if(N1(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(X,H,this.parseIdentifier())}}this.unexpected()}flowParsePostfixType(){const X=this.state.startLoc;let H=this.flowParsePrimaryType(),Z=!1;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){const V=this.startNodeAt(X),Q=this.eat(18);if(Z=Z||Q,this.expect(0),!Q&&this.match(3))V.elementType=H,this.next(),H=this.finishNode(V,"ArrayTypeAnnotation");else if(V.objectType=H,V.indexType=this.flowParseType(),this.expect(3),Z)V.optional=Q,H=this.finishNode(V,"OptionalIndexedAccessType");else H=this.finishNode(V,"IndexedAccessType")}return H}flowParsePrefixType(){const X=this.startNode();if(this.eat(17))return X.typeAnnotation=this.flowParsePrefixType(),this.finishNode(X,"NullableTypeAnnotation");else return this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const X=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const H=this.startNodeAt(X.loc.start);return H.params=[this.reinterpretTypeAsFunctionTypeParam(X)],H.rest=null,H.this=null,H.returnType=this.flowParseType(),H.typeParameters=null,this.finishNode(H,"FunctionTypeAnnotation")}return X}flowParseIntersectionType(){const X=this.startNode();this.eat(45);const H=this.flowParseAnonFunctionWithoutParens();X.types=[H];while(this.eat(45))X.types.push(this.flowParseAnonFunctionWithoutParens());return X.types.length===1?H:this.finishNode(X,"IntersectionTypeAnnotation")}flowParseUnionType(){const X=this.startNode();this.eat(43);const H=this.flowParseIntersectionType();X.types=[H];while(this.eat(43))X.types.push(this.flowParseIntersectionType());return X.types.length===1?H:this.finishNode(X,"UnionTypeAnnotation")}flowParseType(){const X=this.state.inType;this.state.inType=!0;const H=this.flowParseUnionType();return this.state.inType=X,H}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const X=this.state.startLoc,H=this.parseIdentifier();return this.flowParseGenericType(X,H)}else return this.flowParseType()}flowParseTypeAnnotation(){const X=this.startNode();return X.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(X,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(X){const H=X?this.parseIdentifier():this.flowParseRestrictedIdentifier();if(this.match(14))H.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(H);return H}typeCastToParameter(X){return X.expression.typeAnnotation=X.typeAnnotation,this.resetEndLocation(X.expression,X.typeAnnotation.loc.end),X.expression}flowParseVariance(){let X=null;if(this.match(53)){if(X=this.startNode(),this.state.value==="+")X.kind="plus";else X.kind="minus";return this.next(),this.finishNode(X,"Variance")}return X}parseFunctionBody(X,H,Z=!1){if(H){this.forwardNoArrowParamsConversionAt(X,()=>super.parseFunctionBody(X,!0,Z));return}super.parseFunctionBody(X,!1,Z)}parseFunctionBodyAndFinish(X,H,Z=!1){if(this.match(14)){const V=this.startNode();[V.typeAnnotation,X.predicate]=this.flowParseTypeAndPredicateInitialiser(),X.returnType=V.typeAnnotation?this.finishNode(V,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(X,H,Z)}parseStatementLike(X){if(this.state.strict&&this.isContextual(129)){const Z=this.lookahead();if(x2(Z.type)){const V=this.startNode();return this.next(),this.flowParseInterface(V)}}else if(this.plugins.get("flow").enums&&this.isContextual(126)){const Z=this.startNode();return this.next(),this.flowParseEnumDeclaration(Z)}const H=super.parseStatementLike(X);if(this.flowPragma===void 0&&!this.isValidDirective(H))this.flowPragma=null;return H}parseExpressionStatement(X,H,Z){if(H.type==="Identifier"){if(H.name==="declare"){if(this.match(80)||N1(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(X)}else if(N1(this.state.type)){if(H.name==="interface")return this.flowParseInterface(X);else if(H.name==="type")return this.flowParseTypeAlias(X);else if(H.name==="opaque")return this.flowParseOpaqueType(X,!1)}}return super.parseExpressionStatement(X,H,Z)}shouldParseExportDeclaration(){const{type:X}=this.state;if(aU(X)||this.plugins.get("flow").enums&&X===126)return!this.state.containsEsc;return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:X}=this.state;if(aU(X)||this.plugins.get("flow").enums&&X===126)return this.state.containsEsc;return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.plugins.get("flow").enums&&this.isContextual(126)){const X=this.startNode();return this.next(),this.flowParseEnumDeclaration(X)}return super.parseExportDefaultExpression()}parseConditional(X,H,Z){if(!this.match(17))return X;if(this.state.maybeInArrowParameters){const F=this.lookaheadCharCode();if(F===44||F===61||F===58||F===41)return this.setOptionalParametersError(Z),X}this.expect(17);const V=this.state.clone(),Q=this.state.noArrowAt,Y=this.startNodeAt(H);let{consequent:W,failed:z}=this.tryParseConditionalConsequent(),[B,q]=this.getArrowLikeExpressions(W);if(z||q.length>0){const F=[...Q];if(q.length>0){this.state=V,this.state.noArrowAt=F;for(let j=0;j<q.length;j++)F.push(q[j].start);({consequent:W,failed:z}=this.tryParseConditionalConsequent()),[B,q]=this.getArrowLikeExpressions(W)}if(z&&B.length>1)this.raise(W1.AmbiguousConditionalArrow,V.startLoc);if(z&&B.length===1)this.state=V,F.push(B[0].start),this.state.noArrowAt=F,{consequent:W,failed:z}=this.tryParseConditionalConsequent()}return this.getArrowLikeExpressions(W,!0),this.state.noArrowAt=Q,this.expect(14),Y.test=X,Y.consequent=W,Y.alternate=this.forwardNoArrowParamsConversionAt(Y,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(Y,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const X=this.parseMaybeAssignAllowIn(),H=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:X,failed:H}}getArrowLikeExpressions(X,H){const Z=[X],V=[];while(Z.length!==0){const Q=Z.pop();if(Q.type==="ArrowFunctionExpression"&&Q.body.type!=="BlockStatement"){if(Q.typeParameters||!Q.returnType)this.finishArrowValidation(Q);else V.push(Q);Z.push(Q.body)}else if(Q.type==="ConditionalExpression")Z.push(Q.consequent),Z.push(Q.alternate)}if(H)return V.forEach((Q)=>this.finishArrowValidation(Q)),[V,[]];return iz1(V,(Q)=>Q.params.every((Y)=>this.isAssignable(Y,!0)))}finishArrowValidation(X){var H;this.toAssignableList(X.params,(H=X.extra)==null?void 0:H.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(X,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(X,H){let Z;if(this.state.noArrowParamsConversionAt.includes(X.start))this.state.noArrowParamsConversionAt.push(this.state.start),Z=H(),this.state.noArrowParamsConversionAt.pop();else Z=H();return Z}parseParenItem(X,H){const Z=super.parseParenItem(X,H);if(this.eat(17))Z.optional=!0,this.resetEndLocation(X);if(this.match(14)){const V=this.startNodeAt(H);return V.expression=Z,V.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(V,"TypeCastExpression")}return Z}assertModuleNodeAllowed(X){if(X.type==="ImportDeclaration"&&(X.importKind==="type"||X.importKind==="typeof")||X.type==="ExportNamedDeclaration"&&X.exportKind==="type"||X.type==="ExportAllDeclaration"&&X.exportKind==="type")return;super.assertModuleNodeAllowed(X)}parseExportDeclaration(X){if(this.isContextual(130)){X.exportKind="type";const H=this.startNode();if(this.next(),this.match(5))return X.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(X),null;else return this.flowParseTypeAlias(H)}else if(this.isContextual(131)){X.exportKind="type";const H=this.startNode();return this.next(),this.flowParseOpaqueType(H,!1)}else if(this.isContextual(129)){X.exportKind="type";const H=this.startNode();return this.next(),this.flowParseInterface(H)}else if(this.plugins.get("flow").enums&&this.isContextual(126)){X.exportKind="value";const H=this.startNode();return this.next(),this.flowParseEnumDeclaration(H)}else return super.parseExportDeclaration(X)}eatExportStar(X){if(super.eatExportStar(X))return!0;if(this.isContextual(130)&&this.lookahead().type===55)return X.exportKind="type",this.next(),this.next(),!0;return!1}maybeParseExportNamespaceSpecifier(X){const{startLoc:H}=this.state,Z=super.maybeParseExportNamespaceSpecifier(X);if(Z&&X.exportKind==="type")this.unexpected(H);return Z}parseClassId(X,H,Z){if(super.parseClassId(X,H,Z),this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration()}parseClassMember(X,H,Z){const{startLoc:V}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(X,H))return;H.declare=!0}if(super.parseClassMember(X,H,Z),H.declare){if(H.type!=="ClassProperty"&&H.type!=="ClassPrivateProperty"&&H.type!=="PropertyDefinition")this.raise(W1.DeclareClassElement,V);else if(H.value)this.raise(W1.DeclareClassFieldInitializer,H.value)}}isIterator(X){return X==="iterator"||X==="asyncIterator"}readIterator(){const X=super.readWord1(),H="@@"+X;if(!this.isIterator(X)||!this.state.inType)this.raise(A.InvalidIdentifier,this.state.curPosition(),{identifierName:H});this.finishToken(132,H)}getTokenFromCode(X){const H=this.input.charCodeAt(this.state.pos+1);if(X===123&&H===124)this.finishOp(6,2);else if(this.state.inType&&(X===62||X===60))this.finishOp(X===62?48:47,1);else if(this.state.inType&&X===63)if(H===46)this.finishOp(18,2);else this.finishOp(17,1);else if(Tz1(X,H,this.input.charCodeAt(this.state.pos+2)))this.state.pos+=2,this.readIterator();else super.getTokenFromCode(X)}isAssignable(X,H){if(X.type==="TypeCastExpression")return this.isAssignable(X.expression,H);else return super.isAssignable(X,H)}toAssignable(X,H=!1){if(!H&&X.type==="AssignmentExpression"&&X.left.type==="TypeCastExpression")X.left=this.typeCastToParameter(X.left);super.toAssignable(X,H)}toAssignableList(X,H,Z){for(let V=0;V<X.length;V++){const Q=X[V];if((Q==null?void 0:Q.type)==="TypeCastExpression")X[V]=this.typeCastToParameter(Q)}super.toAssignableList(X,H,Z)}toReferencedList(X,H){for(let V=0;V<X.length;V++){var Z;const Q=X[V];if(Q&&Q.type==="TypeCastExpression"&&!((Z=Q.extra)!=null&&Z.parenthesized)&&(X.length>1||!H))this.raise(W1.TypeCastInPattern,Q.typeAnnotation)}return X}parseArrayLike(X,H,Z,V){const Q=super.parseArrayLike(X,H,Z,V);if(H&&!this.state.maybeInArrowParameters)this.toReferencedList(Q.elements);return Q}isValidLVal(X,H,Z){return X==="TypeCastExpression"||super.isValidLVal(X,H,Z)}parseClassProperty(X){if(this.match(14))X.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassProperty(X)}parseClassPrivateProperty(X){if(this.match(14))X.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassPrivateProperty(X)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(X){return!this.match(14)&&super.isNonstaticConstructor(X)}pushClassMethod(X,H,Z,V,Q,Y){if(H.variance)this.unexpected(H.variance.loc.start);if(delete H.variance,this.match(47))H.typeParameters=this.flowParseTypeParameterDeclaration();if(super.pushClassMethod(X,H,Z,V,Q,Y),H.params&&Q){const W=H.params;if(W.length>0&&this.isThisParam(W[0]))this.raise(W1.ThisParamBannedInConstructor,H)}else if(H.type==="MethodDefinition"&&Q&&H.value.params){const W=H.value.params;if(W.length>0&&this.isThisParam(W[0]))this.raise(W1.ThisParamBannedInConstructor,H)}}pushClassPrivateMethod(X,H,Z,V){if(H.variance)this.unexpected(H.variance.loc.start);if(delete H.variance,this.match(47))H.typeParameters=this.flowParseTypeParameterDeclaration();super.pushClassPrivateMethod(X,H,Z,V)}parseClassSuper(X){if(super.parseClassSuper(X),X.superClass&&this.match(47))X.superTypeParameters=this.flowParseTypeParameterInstantiation();if(this.isContextual(113)){this.next();const H=X.implements=[];do{const Z=this.startNode();if(Z.id=this.flowParseRestrictedIdentifier(!0),this.match(47))Z.typeParameters=this.flowParseTypeParameterInstantiation();else Z.typeParameters=null;H.push(this.finishNode(Z,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(X){super.checkGetterSetterParams(X);const H=this.getObjectOrClassMethodParams(X);if(H.length>0){const Z=H[0];if(this.isThisParam(Z)&&X.kind==="get")this.raise(W1.GetterMayNotHaveThisParam,Z);else if(this.isThisParam(Z))this.raise(W1.SetterMayNotHaveThisParam,Z)}}parsePropertyNamePrefixOperator(X){X.variance=this.flowParseVariance()}parseObjPropValue(X,H,Z,V,Q,Y,W){if(X.variance)this.unexpected(X.variance.loc.start);delete X.variance;let z;if(this.match(47)&&!Y){if(z=this.flowParseTypeParameterDeclaration(),!this.match(10))this.unexpected()}const B=super.parseObjPropValue(X,H,Z,V,Q,Y,W);if(z)(B.value||B).typeParameters=z;return B}parseFunctionParamType(X){if(this.eat(17)){if(X.type!=="Identifier")this.raise(W1.PatternIsOptional,X);if(this.isThisParam(X))this.raise(W1.ThisParamMayNotBeOptional,X);X.optional=!0}if(this.match(14))X.typeAnnotation=this.flowParseTypeAnnotation();else if(this.isThisParam(X))this.raise(W1.ThisParamAnnotationRequired,X);if(this.match(29)&&this.isThisParam(X))this.raise(W1.ThisParamNoDefault,X);return this.resetEndLocation(X),X}parseMaybeDefault(X,H){const Z=super.parseMaybeDefault(X,H);if(Z.type==="AssignmentPattern"&&Z.typeAnnotation&&Z.right.start<Z.typeAnnotation.start)this.raise(W1.TypeBeforeInitializer,Z.typeAnnotation);return Z}checkImportReflection(X){if(super.checkImportReflection(X),X.module&&X.importKind!=="value")this.raise(W1.ImportReflectionHasImportType,X.specifiers[0].loc.start)}parseImportSpecifierLocal(X,H,Z){H.local=dU(X)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),X.specifiers.push(this.finishImportSpecifier(H,Z))}isPotentialImportPhase(X){if(super.isPotentialImportPhase(X))return!0;if(this.isContextual(130)){if(!X)return!0;const H=this.lookaheadCharCode();return H===123||H===42}return!X&&this.isContextual(87)}applyImportPhase(X,H,Z,V){if(super.applyImportPhase(X,H,Z,V),H){if(!Z&&this.match(65))return;X.exportKind=Z==="type"?Z:"value"}else{if(Z==="type"&&this.match(55))this.unexpected();X.importKind=Z==="type"||Z==="typeof"?Z:"value"}}parseImportSpecifier(X,H,Z,V,Q){const Y=X.imported;let W=null;if(Y.type==="Identifier"){if(Y.name==="type")W="type";else if(Y.name==="typeof")W="typeof"}let z=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const q=this.parseIdentifier(!0);if(W!==null&&!x2(this.state.type))X.imported=q,X.importKind=W,X.local=q0(q);else X.imported=Y,X.importKind=null,X.local=this.parseIdentifier()}else{if(W!==null&&x2(this.state.type))X.imported=this.parseIdentifier(!0),X.importKind=W;else{if(H)throw this.raise(A.ImportBindingIsString,X,{importName:Y.value});X.imported=Y,X.importKind=null}if(this.eatContextual(93))X.local=this.parseIdentifier();else z=!0,X.local=q0(X.imported)}const B=dU(X);if(Z&&B)this.raise(W1.ImportTypeShorthandOnlyInPureImport,X);if(Z||B)this.checkReservedType(X.local.name,X.local.loc.start,!0);if(z&&!Z&&!B)this.checkReservedWord(X.local.name,X.loc.start,!0,!0);return this.finishImportSpecifier(X,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(X,H){const Z=X.kind;if(Z!=="get"&&Z!=="set"&&this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();super.parseFunctionParams(X,H)}parseVarId(X,H){if(super.parseVarId(X,H),this.match(14))X.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(X.id)}parseAsyncArrowFromCallExpression(X,H){if(this.match(14)){const Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,X.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=Z}return super.parseAsyncArrowFromCallExpression(X,H)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(X,H){var Z;let V=null,Q;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(V=this.state.clone(),Q=this.tryParse(()=>super.parseMaybeAssign(X,H),V),!Q.error)return Q.node;const{context:z}=this.state,B=z[z.length-1];if(B===v1.j_oTag||B===v1.j_expr)z.pop()}if((Z=Q)!=null&&Z.error||this.match(47)){var Y,W;V=V||this.state.clone();let z;const B=this.tryParse((F)=>{var j;z=this.flowParseTypeParameterDeclaration();const f=this.forwardNoArrowParamsConversionAt(z,()=>{const w=super.parseMaybeAssign(X,H);return this.resetStartLocationFromNode(w,z),w});if((j=f.extra)!=null&&j.parenthesized)F();const y=this.maybeUnwrapTypeCastExpression(f);if(y.type!=="ArrowFunctionExpression")F();return y.typeParameters=z,this.resetStartLocationFromNode(y,z),f},V);let q=null;if(B.node&&this.maybeUnwrapTypeCastExpression(B.node).type==="ArrowFunctionExpression"){if(!B.error&&!B.aborted){if(B.node.async)this.raise(W1.UnexpectedTypeParameterBeforeAsyncArrowFunction,z);return B.node}q=B.node}if((Y=Q)!=null&&Y.node)return this.state=Q.failState,Q.node;if(q)return this.state=B.failState,q;if((W=Q)!=null&&W.thrown)throw Q.error;if(B.thrown)throw B.error;throw this.raise(W1.UnexpectedTokenAfterTypeParameter,z)}return super.parseMaybeAssign(X,H)}parseArrow(X){if(this.match(14)){const H=this.tryParse(()=>{const Z=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const V=this.startNode();if([V.typeAnnotation,X.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=Z,this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return V});if(H.thrown)return null;if(H.error)this.state=H.failState;X.returnType=H.node.typeAnnotation?this.finishNode(H.node,"TypeAnnotation"):null}return super.parseArrow(X)}shouldParseArrow(X){return this.match(14)||super.shouldParseArrow(X)}setArrowFunctionParameters(X,H){if(this.state.noArrowParamsConversionAt.includes(X.start))X.params=H;else super.setArrowFunctionParameters(X,H)}checkParams(X,H,Z,V=!0){if(Z&&this.state.noArrowParamsConversionAt.includes(X.start))return;for(let Q=0;Q<X.params.length;Q++)if(this.isThisParam(X.params[Q])&&Q>0)this.raise(W1.ThisParamMustBeFirst,X.params[Q]);super.checkParams(X,H,Z,V)}parseParenAndDistinguishExpression(X){return super.parseParenAndDistinguishExpression(X&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(X,H,Z){if(X.type==="Identifier"&&X.name==="async"&&this.state.noArrowAt.includes(H.index)){this.next();const V=this.startNodeAt(H);V.callee=X,V.arguments=super.parseCallExpressionArguments(11,!1),X=this.finishNode(V,"CallExpression")}else if(X.type==="Identifier"&&X.name==="async"&&this.match(47)){const V=this.state.clone(),Q=this.tryParse((W)=>this.parseAsyncArrowWithTypeParameters(H)||W(),V);if(!Q.error&&!Q.aborted)return Q.node;const Y=this.tryParse(()=>super.parseSubscripts(X,H,Z),V);if(Y.node&&!Y.error)return Y.node;if(Q.node)return this.state=Q.failState,Q.node;if(Y.node)return this.state=Y.failState,Y.node;throw Q.error||Y.error}return super.parseSubscripts(X,H,Z)}parseSubscript(X,H,Z,V){if(this.match(18)&&this.isLookaheadToken_lt()){if(V.optionalChainMember=!0,Z)return V.stop=!0,X;this.next();const Q=this.startNodeAt(H);return Q.callee=X,Q.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),Q.arguments=this.parseCallExpressionArguments(11,!1),Q.optional=!0,this.finishCallExpression(Q,!0)}else if(!Z&&this.shouldParseTypes()&&this.match(47)){const Q=this.startNodeAt(H);Q.callee=X;const Y=this.tryParse(()=>{if(Q.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),Q.arguments=super.parseCallExpressionArguments(11,!1),V.optionalChainMember)Q.optional=!1;return this.finishCallExpression(Q,V.optionalChainMember)});if(Y.node){if(Y.error)this.state=Y.failState;return Y.node}}return super.parseSubscript(X,H,Z,V)}parseNewCallee(X){super.parseNewCallee(X);let H=null;if(this.shouldParseTypes()&&this.match(47))H=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node;X.typeArguments=H}parseAsyncArrowWithTypeParameters(X){const H=this.startNodeAt(X);if(this.parseFunctionParams(H,!1),!this.parseArrow(H))return;return super.parseArrowExpression(H,void 0,!0)}readToken_mult_modulo(X){const H=this.input.charCodeAt(this.state.pos+1);if(X===42&&H===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(X)}readToken_pipe_amp(X){const H=this.input.charCodeAt(this.state.pos+1);if(X===124&&H===125){this.finishOp(9,2);return}super.readToken_pipe_amp(X)}parseTopLevel(X,H){const Z=super.parseTopLevel(X,H);if(this.state.hasFlowComment)this.raise(W1.UnterminatedFlowComment,this.state.curPosition());return Z}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(W1.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const X=this.skipFlowComment();if(X)this.state.pos+=X,this.state.hasFlowComment=!0;return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:X}=this.state;let H=2;while([32,9].includes(this.input.charCodeAt(X+H)))H++;const Z=this.input.charCodeAt(H+X),V=this.input.charCodeAt(H+X+1);if(Z===58&&V===58)return H+2;if(this.input.slice(H+X,H+X+12)==="flow-include")return H+12;if(Z===58&&V!==58)return H;return!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(A.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(X,{enumName:H,memberName:Z}){this.raise(W1.EnumBooleanMemberNotInitialized,X,{memberName:Z,enumName:H})}flowEnumErrorInvalidMemberInitializer(X,H){return this.raise(!H.explicitType?W1.EnumInvalidMemberInitializerUnknownType:H.explicitType==="symbol"?W1.EnumInvalidMemberInitializerSymbolType:W1.EnumInvalidMemberInitializerPrimaryType,X,H)}flowEnumErrorNumberMemberNotInitialized(X,H){this.raise(W1.EnumNumberMemberNotInitialized,X,H)}flowEnumErrorStringMemberInconsistentlyInitialized(X,H){this.raise(W1.EnumStringMemberInconsistentlyInitialized,X,H)}flowEnumMemberInit(){const X=this.state.startLoc,H=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const Z=this.parseNumericLiteral(this.state.value);if(H())return{type:"number",loc:Z.loc.start,value:Z};return{type:"invalid",loc:X}}case 133:{const Z=this.parseStringLiteral(this.state.value);if(H())return{type:"string",loc:Z.loc.start,value:Z};return{type:"invalid",loc:X}}case 85:case 86:{const Z=this.parseBooleanLiteral(this.match(85));if(H())return{type:"boolean",loc:Z.loc.start,value:Z};return{type:"invalid",loc:X}}default:return{type:"invalid",loc:X}}}flowEnumMemberRaw(){const X=this.state.startLoc,H=this.parseIdentifier(!0),Z=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:X};return{id:H,init:Z}}flowEnumCheckExplicitTypeMismatch(X,H,Z){const{explicitType:V}=H;if(V===null)return;if(V!==Z)this.flowEnumErrorInvalidMemberInitializer(X,H)}flowEnumMembers({enumName:X,explicitType:H}){const Z=new Set,V={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let Q=!1;while(!this.match(8)){if(this.eat(21)){Q=!0;break}const Y=this.startNode(),{id:W,init:z}=this.flowEnumMemberRaw(),B=W.name;if(B==="")continue;if(/^[a-z]/.test(B))this.raise(W1.EnumInvalidMemberName,W,{memberName:B,suggestion:B[0].toUpperCase()+B.slice(1),enumName:X});if(Z.has(B))this.raise(W1.EnumDuplicateMemberName,W,{memberName:B,enumName:X});Z.add(B);const q={enumName:X,explicitType:H,memberName:B};switch(Y.id=W,z.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(z.loc,q,"boolean"),Y.init=z.value,V.booleanMembers.push(this.finishNode(Y,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(z.loc,q,"number"),Y.init=z.value,V.numberMembers.push(this.finishNode(Y,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(z.loc,q,"string"),Y.init=z.value,V.stringMembers.push(this.finishNode(Y,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(z.loc,q);case"none":switch(H){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(z.loc,q);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(z.loc,q);break;default:V.defaultedMembers.push(this.finishNode(Y,"EnumDefaultedMember"))}}if(!this.match(8))this.expect(12)}return{members:V,hasUnknownMembers:Q}}flowEnumStringMembers(X,H,{enumName:Z}){if(X.length===0)return H;else if(H.length===0)return X;else if(H.length>X.length){for(let V of X)this.flowEnumErrorStringMemberInconsistentlyInitialized(V,{enumName:Z});return H}else{for(let V of H)this.flowEnumErrorStringMemberInconsistentlyInitialized(V,{enumName:Z});return X}}flowEnumParseExplicitType({enumName:X}){if(!this.eatContextual(102))return null;if(!N1(this.state.type))throw this.raise(W1.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:X});const{value:H}=this.state;if(this.next(),H!=="boolean"&&H!=="number"&&H!=="string"&&H!=="symbol")this.raise(W1.EnumInvalidExplicitType,this.state.startLoc,{enumName:X,invalidEnumType:H});return H}flowEnumBody(X,H){const Z=H.name,V=H.loc.start,Q=this.flowEnumParseExplicitType({enumName:Z});this.expect(5);const{members:Y,hasUnknownMembers:W}=this.flowEnumMembers({enumName:Z,explicitType:Q});switch(X.hasUnknownMembers=W,Q){case"boolean":return X.explicitType=!0,X.members=Y.booleanMembers,this.expect(8),this.finishNode(X,"EnumBooleanBody");case"number":return X.explicitType=!0,X.members=Y.numberMembers,this.expect(8),this.finishNode(X,"EnumNumberBody");case"string":return X.explicitType=!0,X.members=this.flowEnumStringMembers(Y.stringMembers,Y.defaultedMembers,{enumName:Z}),this.expect(8),this.finishNode(X,"EnumStringBody");case"symbol":return X.members=Y.defaultedMembers,this.expect(8),this.finishNode(X,"EnumSymbolBody");default:{const z=()=>{return X.members=[],this.expect(8),this.finishNode(X,"EnumStringBody")};X.explicitType=!1;const B=Y.booleanMembers.length,q=Y.numberMembers.length,F=Y.stringMembers.length,j=Y.defaultedMembers.length;if(!B&&!q&&!F&&!j)return z();else if(!B&&!q)return X.members=this.flowEnumStringMembers(Y.stringMembers,Y.defaultedMembers,{enumName:Z}),this.expect(8),this.finishNode(X,"EnumStringBody");else if(!q&&!F&&B>=j){for(let f of Y.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(f.loc.start,{enumName:Z,memberName:f.id.name});return X.members=Y.booleanMembers,this.expect(8),this.finishNode(X,"EnumBooleanBody")}else if(!B&&!F&&q>=j){for(let f of Y.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(f.loc.start,{enumName:Z,memberName:f.id.name});return X.members=Y.numberMembers,this.expect(8),this.finishNode(X,"EnumNumberBody")}else return this.raise(W1.EnumInconsistentMemberValues,V,{enumName:Z}),z()}}}flowParseEnumDeclaration(X){const H=this.parseIdentifier();return X.id=H,X.body=this.flowEnumBody(this.startNode(),H),this.finishNode(X,"EnumDeclaration")}isLookaheadToken_lt(){const X=this.nextTokenStart();if(this.input.charCodeAt(X)===60){const H=this.input.charCodeAt(X+1);return H!==60&&H!==61}return!1}maybeUnwrapTypeCastExpression(X){return X.type==="TypeCastExpression"?X.expression:X}},sz1={__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"},G5=R0`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:G})=>`Expected corresponding JSX closing tag for <${G}>.`,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:G,HTMLEntity:J})=>`Unexpected token \`${G}\`. Did you mean \`${J}\` or \`{'${G}'}\`?`,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 <>...</>?"}),pz1=(G)=>class J extends G{jsxReadToken(){let X="",H=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(G5.UnterminatedJsxContent,this.state.startLoc);const Z=this.input.charCodeAt(this.state.pos);switch(Z){case 60:case 123:if(this.state.pos===this.state.start){if(Z===60&&this.state.canStartJSXElement)++this.state.pos,this.finishToken(142);else super.getTokenFromCode(Z);return}X+=this.input.slice(H,this.state.pos),this.finishToken(141,X);return;case 38:X+=this.input.slice(H,this.state.pos),X+=this.jsxReadEntity(),H=this.state.pos;break;case 62:case 125:default:if(h5(Z))X+=this.input.slice(H,this.state.pos),X+=this.jsxReadNewLine(!0),H=this.state.pos;else++this.state.pos}}}jsxReadNewLine(X){const H=this.input.charCodeAt(this.state.pos);let Z;if(++this.state.pos,H===13&&this.input.charCodeAt(this.state.pos)===10)++this.state.pos,Z=X?"\n":"\r\n";else Z=String.fromCharCode(H);return++this.state.curLine,this.state.lineStart=this.state.pos,Z}jsxReadString(X){let H="",Z=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(A.UnterminatedString,this.state.startLoc);const V=this.input.charCodeAt(this.state.pos);if(V===X)break;if(V===38)H+=this.input.slice(Z,this.state.pos),H+=this.jsxReadEntity(),Z=this.state.pos;else if(h5(V))H+=this.input.slice(Z,this.state.pos),H+=this.jsxReadNewLine(!1),Z=this.state.pos;else++this.state.pos}H+=this.input.slice(Z,this.state.pos++),this.finishToken(133,H)}jsxReadEntity(){const X=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let H=10;if(this.codePointAtPos(this.state.pos)===120)H=16,++this.state.pos;const Z=this.readInt(H,void 0,!1,"bail");if(Z!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(Z)}else{let H=0,Z=!1;while(H++<10&&this.state.pos<this.length&&!(Z=this.codePointAtPos(this.state.pos)===59))++this.state.pos;if(Z){const V=this.input.slice(X,this.state.pos),Q=sz1[V];if(++this.state.pos,Q)return Q}}return this.state.pos=X,"&"}jsxReadWord(){let X;const H=this.state.pos;do X=this.input.charCodeAt(++this.state.pos);while(b5(X)||X===45);this.finishToken(140,this.input.slice(H,this.state.pos))}jsxParseIdentifier(){const X=this.startNode();if(this.match(140))X.name=this.state.value;else if(r7(this.state.type))X.name=O0(this.state.type);else this.unexpected();return this.next(),this.finishNode(X,"JSXIdentifier")}jsxParseNamespacedName(){const X=this.state.startLoc,H=this.jsxParseIdentifier();if(!this.eat(14))return H;const Z=this.startNodeAt(X);return Z.namespace=H,Z.name=this.jsxParseIdentifier(),this.finishNode(Z,"JSXNamespacedName")}jsxParseElementName(){const X=this.state.startLoc;let H=this.jsxParseNamespacedName();if(H.type==="JSXNamespacedName")return H;while(this.eat(16)){const Z=this.startNodeAt(X);Z.object=H,Z.property=this.jsxParseIdentifier(),H=this.finishNode(Z,"JSXMemberExpression")}return H}jsxParseAttributeValue(){let X;switch(this.state.type){case 5:if(X=this.startNode(),this.setContext(v1.brace),this.next(),X=this.jsxParseExpressionContainer(X,v1.j_oTag),X.expression.type==="JSXEmptyExpression")this.raise(G5.AttributeIsEmpty,X);return X;case 142:case 133:return this.parseExprAtom();default:throw this.raise(G5.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const X=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(X,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(X){return this.next(),X.expression=this.parseExpression(),this.setContext(v1.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(X,"JSXSpreadChild")}jsxParseExpressionContainer(X,H){if(this.match(8))X.expression=this.jsxParseEmptyExpression();else{const Z=this.parseExpression();X.expression=Z}return this.setContext(H),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(X,"JSXExpressionContainer")}jsxParseAttribute(){const X=this.startNode();if(this.match(5))return this.setContext(v1.brace),this.next(),this.expect(21),X.argument=this.parseMaybeAssignAllowIn(),this.setContext(v1.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(X,"JSXSpreadAttribute");return X.name=this.jsxParseNamespacedName(),X.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(X,"JSXAttribute")}jsxParseOpeningElementAt(X){const H=this.startNodeAt(X);if(this.eat(143))return this.finishNode(H,"JSXOpeningFragment");return H.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(H)}jsxParseOpeningElementAfterName(X){const H=[];while(!this.match(56)&&!this.match(143))H.push(this.jsxParseAttribute());return X.attributes=H,X.selfClosing=this.eat(56),this.expect(143),this.finishNode(X,"JSXOpeningElement")}jsxParseClosingElementAt(X){const H=this.startNodeAt(X);if(this.eat(143))return this.finishNode(H,"JSXClosingFragment");return H.name=this.jsxParseElementName(),this.expect(143),this.finishNode(H,"JSXClosingElement")}jsxParseElementAt(X){const H=this.startNodeAt(X),Z=[],V=this.jsxParseOpeningElementAt(X);let Q=null;if(!V.selfClosing){G:for(;;)switch(this.state.type){case 142:if(X=this.state.startLoc,this.next(),this.eat(56)){Q=this.jsxParseClosingElementAt(X);break G}Z.push(this.jsxParseElementAt(X));break;case 141:Z.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const Y=this.startNode();if(this.setContext(v1.brace),this.next(),this.match(21))Z.push(this.jsxParseSpreadChild(Y));else Z.push(this.jsxParseExpressionContainer(Y,v1.j_expr));break}default:this.unexpected()}if(E0(V)&&!E0(Q)&&Q!==null)this.raise(G5.MissingClosingTagFragment,Q);else if(!E0(V)&&E0(Q))this.raise(G5.MissingClosingTagElement,Q,{openingTagName:g5(V.name)});else if(!E0(V)&&!E0(Q)){if(g5(Q.name)!==g5(V.name))this.raise(G5.MissingClosingTagElement,Q,{openingTagName:g5(V.name)})}}if(E0(V))H.openingFragment=V,H.closingFragment=Q;else H.openingElement=V,H.closingElement=Q;if(H.children=Z,this.match(47))throw this.raise(G5.UnwrappedAdjacentJSXElements,this.state.startLoc);return E0(V)?this.finishNode(H,"JSXFragment"):this.finishNode(H,"JSXElement")}jsxParseElement(){const X=this.state.startLoc;return this.next(),this.jsxParseElementAt(X)}setContext(X){const{context:H}=this.state;H[H.length-1]=X}parseExprAtom(X){if(this.match(142))return this.jsxParseElement();else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33)return this.replaceToken(142),this.jsxParseElement();else return super.parseExprAtom(X)}skipSpace(){if(!this.curContext().preserveSpace)super.skipSpace()}getTokenFromCode(X){const H=this.curContext();if(H===v1.j_expr){this.jsxReadToken();return}if(H===v1.j_oTag||H===v1.j_cTag){if($0(X)){this.jsxReadWord();return}if(X===62){++this.state.pos,this.finishToken(143);return}if((X===34||X===39)&&H===v1.j_oTag){this.jsxReadString(X);return}}if(X===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(142);return}super.getTokenFromCode(X)}updateContext(X){const{context:H,type:Z}=this.state;if(Z===56&&X===142)H.splice(-2,2,v1.j_cTag),this.state.canStartJSXElement=!1;else if(Z===142)H.push(v1.j_oTag);else if(Z===143){const V=H[H.length-1];if(V===v1.j_oTag&&X===56||V===v1.j_cTag)H.pop(),this.state.canStartJSXElement=H[H.length-1]===v1.j_expr;else this.setContext(v1.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=Kz1(Z)}};class CK extends cG{constructor(...G){super(...G);this.tsNames=new Map}}class fK extends aG{constructor(...G){super(...G);this.importsStack=[]}createScope(G){return this.importsStack.push(new Set),new CK(G)}enter(G){if(G===256)this.importsStack.push(new Set);super.enter(G)}exit(){const G=super.exit();if(G===256)this.importsStack.pop();return G}hasImport(G,J){const X=this.importsStack.length;if(this.importsStack[X-1].has(G))return!0;if(!J&&X>1){for(let H=0;H<X-1;H++)if(this.importsStack[H].has(G))return!0}return!1}declareName(G,J,X){if(J&4096){if(this.hasImport(G,!0))this.parser.raise(A.VarRedeclaration,X,{identifierName:G});this.importsStack[this.importsStack.length-1].add(G);return}const H=this.currentScope();let Z=H.tsNames.get(G)||0;if(J&1024){this.maybeExportDefined(H,G),H.tsNames.set(G,Z|16);return}if(super.declareName(G,J,X),J&2){if(!(J&1))this.checkRedeclarationInScope(H,G,J,X),this.maybeExportDefined(H,G);Z=Z|1}if(J&256)Z=Z|2;if(J&512)Z=Z|4;if(J&128)Z=Z|8;if(Z)H.tsNames.set(G,Z)}isRedeclaredInScope(G,J,X){const H=G.tsNames.get(J);if((H&2)>0){if(X&256){const Z=!!(X&512),V=(H&4)>0;return Z!==V}return!0}if(X&128&&(H&8)>0)if(G.names.get(J)&2)return!!(X&1);else return!1;if(X&2&&(H&1)>0)return!0;return super.isRedeclaredInScope(G,J,X)}checkLocalExport(G){const{name:J}=G;if(this.hasImport(J))return;const X=this.scopeStack.length;for(let H=X-1;H>=0;H--){const V=this.scopeStack[H].tsNames.get(J);if((V&1)>0||(V&16)>0)return}super.checkLocalExport(G)}}var SK=(G)=>{return G.type==="ParenthesizedExpression"?SK(G.expression):G};class PK extends AK{toAssignable(G,J=!1){var X,H;let Z=void 0;if(G.type==="ParenthesizedExpression"||(X=G.extra)!=null&&X.parenthesized)if(Z=SK(G),J){if(Z.type==="Identifier")this.expressionScope.recordArrowParameterBindingError(A.InvalidParenthesizedAssignment,G);else if(Z.type!=="MemberExpression"&&!this.isOptionalMemberExpression(Z))this.raise(A.InvalidParenthesizedAssignment,G)}else this.raise(A.InvalidParenthesizedAssignment,G);switch(G.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":G.type="ObjectPattern";for(let Q=0,Y=G.properties.length,W=Y-1;Q<Y;Q++){var V;const z=G.properties[Q],B=Q===W;if(this.toAssignableObjectExpressionProp(z,B,J),B&&z.type==="RestElement"&&(V=G.extra)!=null&&V.trailingCommaLoc)this.raise(A.RestTrailingComma,G.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:Q,value:Y}=G;if(this.isPrivateName(Q))this.classScope.usePrivateName(this.getPrivateNameSV(Q),Q.loc.start);this.toAssignable(Y,J);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":G.type="ArrayPattern",this.toAssignableList(G.elements,(H=G.extra)==null?void 0:H.trailingCommaLoc,J);break;case"AssignmentExpression":if(G.operator!=="=")this.raise(A.MissingEqInAssignment,G.left.loc.end);G.type="AssignmentPattern",delete G.operator,this.toAssignable(G.left,J);break;case"ParenthesizedExpression":this.toAssignable(Z,J);break}}toAssignableObjectExpressionProp(G,J,X){if(G.type==="ObjectMethod")this.raise(G.kind==="get"||G.kind==="set"?A.PatternHasAccessor:A.PatternHasMethod,G.key);else if(G.type==="SpreadElement"){G.type="RestElement";const H=G.argument;if(this.checkToRestConversion(H,!1),this.toAssignable(H,X),!J)this.raise(A.RestTrailingComma,G)}else this.toAssignable(G,X)}toAssignableList(G,J,X){const H=G.length-1;for(let Z=0;Z<=H;Z++){const V=G[Z];if(!V)continue;if(V.type==="SpreadElement"){V.type="RestElement";const Q=V.argument;this.checkToRestConversion(Q,!0),this.toAssignable(Q,X)}else this.toAssignable(V,X);if(V.type==="RestElement"){if(Z<H)this.raise(A.RestTrailingComma,V);else if(J)this.raise(A.RestTrailingComma,J)}}}isAssignable(G,J){switch(G.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const X=G.properties.length-1;return G.properties.every((H,Z)=>{return H.type!=="ObjectMethod"&&(Z===X||H.type!=="SpreadElement")&&this.isAssignable(H)})}case"ObjectProperty":return this.isAssignable(G.value);case"SpreadElement":return this.isAssignable(G.argument);case"ArrayExpression":return G.elements.every((X)=>X===null||this.isAssignable(X));case"AssignmentExpression":return G.operator==="=";case"ParenthesizedExpression":return this.isAssignable(G.expression);case"MemberExpression":case"OptionalMemberExpression":return!J;default:return!1}}toReferencedList(G,J){return G}toReferencedListDeep(G,J){this.toReferencedList(G,J);for(let X of G)if((X==null?void 0:X.type)==="ArrayExpression")this.toReferencedListDeep(X.elements)}parseSpread(G){const J=this.startNode();return this.next(),J.argument=this.parseMaybeAssignAllowIn(G,void 0),this.finishNode(J,"SpreadElement")}parseRestBinding(){const G=this.startNode();return this.next(),G.argument=this.parseBindingAtom(),this.finishNode(G,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const G=this.startNode();return this.next(),G.elements=this.parseBindingList(3,93,1),this.finishNode(G,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(G,J,X){const H=X&1,Z=[];let V=!0;while(!this.eat(G)){if(V)V=!1;else this.expect(12);if(H&&this.match(12))Z.push(null);else if(this.eat(G))break;else if(this.match(21)){let Q=this.parseRestBinding();if(this.hasPlugin("flow")||X&2)Q=this.parseFunctionParamType(Q);if(Z.push(Q),!this.checkCommaAfterRest(J)){this.expect(G);break}}else{const Q=[];if(this.match(26)&&this.hasPlugin("decorators"))this.raise(A.UnsupportedParameterDecorator,this.state.startLoc);while(this.match(26))Q.push(this.parseDecorator());Z.push(this.parseAssignableListItem(X,Q))}}return Z}parseBindingRestProperty(G){return this.next(),G.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(G,"RestElement")}parseBindingProperty(){const{type:G,startLoc:J}=this.state;if(G===21)return this.parseBindingRestProperty(this.startNode());const X=this.startNode();if(G===138)this.expectPlugin("destructuringPrivate",J),this.classScope.usePrivateName(this.state.value,J),X.key=this.parsePrivateName();else this.parsePropertyName(X);return X.method=!1,this.parseObjPropValue(X,J,!1,!1,!0,!1)}parseAssignableListItem(G,J){const X=this.parseMaybeDefault();if(this.hasPlugin("flow")||G&2)this.parseFunctionParamType(X);const H=this.parseMaybeDefault(X.loc.start,X);if(J.length)X.decorators=J;return H}parseFunctionParamType(G){return G}parseMaybeDefault(G,J){var X,H;if((X=G)!=null||(G=this.state.startLoc),J=(H=J)!=null?H:this.parseBindingAtom(),!this.eat(29))return J;const Z=this.startNodeAt(G);return Z.left=J,Z.right=this.parseMaybeAssignAllowIn(),this.finishNode(Z,"AssignmentPattern")}isValidLVal(G,J,X){switch(G){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(G){return G.type==="OptionalMemberExpression"}checkLVal(G,J,X=64,H=!1,Z=!1,V=!1){var Q;const Y=G.type;if(this.isObjectMethod(G))return;const W=this.isOptionalMemberExpression(G);if(W||Y==="MemberExpression"){if(W){if(this.expectPlugin("optionalChainingAssign",G.loc.start),J.type!=="AssignmentExpression")this.raise(A.InvalidLhsOptionalChaining,G,{ancestor:J})}if(X!==64)this.raise(A.InvalidPropertyBindingPattern,G);return}if(Y==="Identifier"){this.checkIdentifier(G,X,Z);const{name:f}=G;if(H)if(H.has(f))this.raise(A.ParamDupe,G);else H.add(f);return}const z=this.isValidLVal(Y,!(V||(Q=G.extra)!=null&&Q.parenthesized)&&J.type==="AssignmentExpression",X);if(z===!0)return;if(z===!1){const f=X===64?A.InvalidLhs:A.InvalidLhsBinding;this.raise(f,G,{ancestor:J});return}let B,q;if(typeof z==="string")B=z,q=Y==="ParenthesizedExpression";else[B,q]=z;const F=Y==="ArrayPattern"||Y==="ObjectPattern"?{type:Y}:J,j=G[B];if(Array.isArray(j)){for(let f of j)if(f)this.checkLVal(f,F,X,H,Z,q)}else if(j)this.checkLVal(j,F,X,H,Z,q)}checkIdentifier(G,J,X=!1){if(this.state.strict&&(X?QK(G.name,this.inModule):VK(G.name)))if(J===64)this.raise(A.StrictEvalArguments,G,{referenceName:G.name});else this.raise(A.StrictEvalArgumentsBinding,G,{bindingName:G.name});if(J&8192&&G.name==="let")this.raise(A.LetInLexicalBinding,G);if(!(J&64))this.declareNameFromIdentifier(G,J)}declareNameFromIdentifier(G,J){this.scope.declareName(G.name,J,G.loc.start)}checkToRestConversion(G,J){switch(G.type){case"ParenthesizedExpression":this.checkToRestConversion(G.expression,J);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(J)break;default:this.raise(A.InvalidRestAssignmentPattern,G)}}checkCommaAfterRest(G){if(!this.match(12))return!1;return this.raise(this.lookaheadCharCode()===G?A.RestTrailingComma:A.ElementAfterRest,this.state.startLoc),!0}}var o=R0`typescript`({AbstractMethodHasImplementation:({methodName:G})=>`Method '${G}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:G})=>`Property '${G}' 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:G})=>`'declare' is not allowed in ${G}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:G})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:G})=>`Duplicate modifier: '${G}'.`,EmptyHeritageClauseType:({token:G})=>`'${G}' 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:G})=>`'${G[0]}' modifier cannot be used with '${G[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:G})=>`Index signatures cannot have an accessibility modifier ('${G}').`,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.",InvalidModifierOnTypeMember:({modifier:G})=>`'${G}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:G})=>`'${G}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:G})=>`'${G}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:G})=>`'${G[0]}' modifier must precede '${G[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.",NonClassMethodPropertyHasAbstractModifer:"'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:G})=>`Private elements cannot have an accessibility modifier ('${G}').`,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:G})=>`Single type parameter ${G} should have a trailing comma. Example usage: <${G},>.`,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:G})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${G}.`}),tz1=(G)=>class J extends G{constructor(...X){super(...X);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:o.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:o.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:o.InvalidModifierOnTypeParameter})}getScopeHandler(){return fK}tsIsIdentifier(){return N1(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){if(this.next(),this.hasPrecedingLineBreak())return!1;return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106))return this.next(),this.tsTokenCanFollowModifier();return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(X,H){if(!N1(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;const Z=this.state.value;if(X.includes(Z)){if(H&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return Z}return}tsParseModifiers({allowedModifiers:X,disallowedModifiers:H,stopOnStartOfClassStaticBlock:Z,errorTemplate:V=o.InvalidModifierOnTypeMember},Q){const Y=(z,B,q,F)=>{if(B===q&&Q[F])this.raise(o.InvalidModifiersOrder,z,{orderedModifiers:[q,F]})},W=(z,B,q,F)=>{if(Q[q]&&B===F||Q[F]&&B===q)this.raise(o.IncompatibleModifiers,z,{modifiers:[q,F]})};for(;;){const{startLoc:z}=this.state,B=this.tsParseModifier(X.concat(H!=null?H:[]),Z);if(!B)break;if(pU(B))if(Q.accessibility)this.raise(o.DuplicateAccessibilityModifier,z,{modifier:B});else Y(z,B,B,"override"),Y(z,B,B,"static"),Y(z,B,B,"readonly"),Q.accessibility=B;else if(ez1(B)){if(Q[B])this.raise(o.DuplicateModifier,z,{modifier:B});Q[B]=!0,Y(z,B,"in","out")}else{if(hasOwnProperty.call(Q,B))this.raise(o.DuplicateModifier,z,{modifier:B});else Y(z,B,"static","readonly"),Y(z,B,"static","override"),Y(z,B,"override","readonly"),Y(z,B,"abstract","override"),W(z,B,"declare","override"),W(z,B,"static","abstract");Q[B]=!0}if(H!=null&&H.includes(B))this.raise(V,z,{modifier:B})}}tsIsListTerminator(X){switch(X){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(X,H){const Z=[];while(!this.tsIsListTerminator(X))Z.push(H());return Z}tsParseDelimitedList(X,H,Z){return nz1(this.tsParseDelimitedListWorker(X,H,!0,Z))}tsParseDelimitedListWorker(X,H,Z,V){const Q=[];let Y=-1;for(;;){if(this.tsIsListTerminator(X))break;Y=-1;const W=H();if(W==null)return;if(Q.push(W),this.eat(12)){Y=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(X))break;if(Z)this.expect(12);return}if(V)V.value=Y;return Q}tsParseBracketedList(X,H,Z,V,Q){if(!V)if(Z)this.expect(0);else this.expect(47);const Y=this.tsParseDelimitedList(X,H,Q);if(Z)this.expect(3);else this.expect(48);return Y}tsParseImportType(){const X=this.startNode();if(this.expect(83),this.expect(10),!this.match(133))this.raise(o.UnsupportedImportTypeArgument,this.state.startLoc);if(X.argument=super.parseExprAtom(),this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))X.options=null;if(this.eat(12)){if(!this.hasPlugin("importAssertions"))this.expectPlugin("importAttributes");if(!this.match(11))X.options=super.parseMaybeAssignAllowIn(),this.eat(12)}if(this.expect(11),this.eat(16))X.qualifier=this.tsParseEntityName();if(this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSImportType")}tsParseEntityName(X=!0){let H=this.parseIdentifier(X);while(this.eat(16)){const Z=this.startNodeAtNode(H);Z.left=H,Z.right=this.parseIdentifier(X),H=this.finishNode(Z,"TSQualifiedName")}return H}tsParseTypeReference(){const X=this.startNode();if(X.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSTypeReference")}tsParseThisTypePredicate(X){this.next();const H=this.startNodeAtNode(X);return H.parameterName=X,H.typeAnnotation=this.tsParseTypeAnnotation(!1),H.asserts=!1,this.finishNode(H,"TSTypePredicate")}tsParseThisTypeNode(){const X=this.startNode();return this.next(),this.finishNode(X,"TSThisType")}tsParseTypeQuery(){const X=this.startNode();if(this.expect(87),this.match(83))X.exprName=this.tsParseImportType();else X.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSTypeQuery")}tsParseTypeParameter(X){const H=this.startNode();return X(H),H.name=this.tsParseTypeParameterName(),H.constraint=this.tsEatThenParseType(81),H.default=this.tsEatThenParseType(29),this.finishNode(H,"TSTypeParameter")}tsTryParseTypeParameters(X){if(this.match(47))return this.tsParseTypeParameters(X)}tsParseTypeParameters(X){const H=this.startNode();if(this.match(47)||this.match(142))this.next();else this.unexpected();const Z={value:-1};if(H.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,X),!1,!0,Z),H.params.length===0)this.raise(o.EmptyTypeParameters,H);if(Z.value!==-1)this.addExtra(H,"trailingComma",Z.value);return this.finishNode(H,"TSTypeParameterDeclaration")}tsFillSignature(X,H){const Z=X===19;if(H.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),H.parameters=this.tsParseBindingListForSignature(),Z)H.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(X);else if(this.match(X))H.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(X)}tsParseBindingListForSignature(){const X=super.parseBindingList(11,41,2);for(let H of X){const{type:Z}=H;if(Z==="AssignmentPattern"||Z==="TSParameterProperty")this.raise(o.UnsupportedSignatureParameterKind,H,{type:Z})}return X}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator())this.expect(13)}tsParseSignatureMember(X,H){return this.tsFillSignature(14,H),this.tsParseTypeMemberSemicolon(),this.finishNode(H,X)}tsIsUnambiguouslyIndexSignature(){if(this.next(),N1(this.state.type))return this.next(),this.match(14);return!1}tsTryParseIndexSignature(X){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);const H=this.parseIdentifier();H.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(H),this.expect(3),X.parameters=[H];const Z=this.tsTryParseTypeAnnotation();if(Z)X.typeAnnotation=Z;return this.tsParseTypeMemberSemicolon(),this.finishNode(X,"TSIndexSignature")}tsParsePropertyOrMethodSignature(X,H){if(this.eat(17))X.optional=!0;const Z=X;if(this.match(10)||this.match(47)){if(H)this.raise(o.ReadonlyForMethodSignature,X);const V=Z;if(V.kind&&this.match(47))this.raise(o.AccessorCannotHaveTypeParameters,this.state.curPosition());this.tsFillSignature(14,V),this.tsParseTypeMemberSemicolon();const Q="parameters",Y="typeAnnotation";if(V.kind==="get"){if(V[Q].length>0){if(this.raise(A.BadGetterArity,this.state.curPosition()),this.isThisParam(V[Q][0]))this.raise(o.AccessorCannotDeclareThisParameter,this.state.curPosition())}}else if(V.kind==="set"){if(V[Q].length!==1)this.raise(A.BadSetterArity,this.state.curPosition());else{const W=V[Q][0];if(this.isThisParam(W))this.raise(o.AccessorCannotDeclareThisParameter,this.state.curPosition());if(W.type==="Identifier"&&W.optional)this.raise(o.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(W.type==="RestElement")this.raise(o.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(V[Y])this.raise(o.SetAccessorCannotHaveReturnType,V[Y])}else V.kind="method";return this.finishNode(V,"TSMethodSignature")}else{const V=Z;if(H)V.readonly=!0;const Q=this.tsTryParseTypeAnnotation();if(Q)V.typeAnnotation=Q;return this.tsParseTypeMemberSemicolon(),this.finishNode(V,"TSPropertySignature")}}tsParseTypeMember(){const X=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",X);if(this.match(77)){const Z=this.startNode();if(this.next(),this.match(10)||this.match(47))return this.tsParseSignatureMember("TSConstructSignatureDeclaration",X);else return X.key=this.createIdentifier(Z,"new"),this.tsParsePropertyOrMethodSignature(X,!1)}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},X);const H=this.tsTryParseIndexSignature(X);if(H)return H;if(super.parsePropertyName(X),!X.computed&&X.key.type==="Identifier"&&(X.key.name==="get"||X.key.name==="set")&&this.tsTokenCanFollowModifier())X.kind=X.key.name,super.parsePropertyName(X);return this.tsParsePropertyOrMethodSignature(X,!!X.readonly)}tsParseTypeLiteral(){const X=this.startNode();return X.members=this.tsParseObjectTypeMembers(),this.finishNode(X,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const X=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),X}tsIsStartOfMappedType(){if(this.next(),this.eat(53))return this.isContextual(122);if(this.isContextual(122))this.next();if(!this.match(0))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(58)}tsParseMappedType(){const X=this.startNode();if(this.expect(5),this.match(53))X.readonly=this.state.value,this.next(),this.expectContextual(122);else if(this.eatContextual(122))X.readonly=!0;this.expect(0);{const H=this.startNode();H.name=this.tsParseTypeParameterName(),H.constraint=this.tsExpectThenParseType(58),X.typeParameter=this.finishNode(H,"TSTypeParameter")}if(X.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53))X.optional=this.state.value,this.next(),this.expect(17);else if(this.eat(17))X.optional=!0;return X.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(X,"TSMappedType")}tsParseTupleType(){const X=this.startNode();X.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let H=!1;return X.elementTypes.forEach((Z)=>{const{type:V}=Z;if(H&&V!=="TSRestType"&&V!=="TSOptionalType"&&!(V==="TSNamedTupleMember"&&Z.optional))this.raise(o.OptionalTypeBeforeRequired,Z);H||(H=V==="TSNamedTupleMember"&&Z.optional||V==="TSOptionalType")}),this.finishNode(X,"TSTupleType")}tsParseTupleElementType(){const{startLoc:X}=this.state,H=this.eat(21);let Z,V,Q,Y;const z=x2(this.state.type)?this.lookaheadCharCode():null;if(z===58)Z=!0,Q=!1,V=this.parseIdentifier(!0),this.expect(14),Y=this.tsParseType();else if(z===63){Q=!0;const B=this.state.startLoc,q=this.state.value,F=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58)Z=!0,V=this.createIdentifier(this.startNodeAt(B),q),this.expect(17),this.expect(14),Y=this.tsParseType();else Z=!1,Y=F,this.expect(17)}else Y=this.tsParseType(),Q=this.eat(17),Z=this.eat(14);if(Z){let B;if(V){if(B=this.startNodeAtNode(V),B.optional=Q,B.label=V,B.elementType=Y,this.eat(17))B.optional=!0,this.raise(o.TupleOptionalAfterType,this.state.lastTokStartLoc)}else B=this.startNodeAtNode(Y),B.optional=Q,this.raise(o.InvalidTupleMemberLabel,Y),B.label=Y,B.elementType=this.tsParseType();Y=this.finishNode(B,"TSNamedTupleMember")}else if(Q){const B=this.startNodeAtNode(Y);B.typeAnnotation=Y,Y=this.finishNode(B,"TSOptionalType")}if(H){const B=this.startNodeAt(X);B.typeAnnotation=Y,Y=this.finishNode(B,"TSRestType")}return Y}tsParseParenthesizedType(){const X=this.startNode();return this.expect(10),X.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(X,"TSParenthesizedType")}tsParseFunctionOrConstructorType(X,H){const Z=this.startNode();if(X==="TSConstructorType"){if(Z.abstract=!!H,H)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,Z)),this.finishNode(Z,X)}tsParseLiteralTypeNode(){const X=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:X.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(X,"TSLiteralType")}tsParseTemplateLiteralType(){const X=this.startNode();return X.literal=super.parseTemplate(!1),this.finishNode(X,"TSLiteralType")}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const X=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(X);else return X}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){const X=this.startNode(),H=this.lookahead();if(H.type!==134&&H.type!==135)this.unexpected();return X.literal=this.parseMaybeUnary(),this.finishNode(X,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:X}=this.state;if(N1(X)||X===88||X===84){const H=X===88?"TSVoidKeyword":X===84?"TSNullKeyword":oz1(this.state.value);if(H!==void 0&&this.lookaheadCharCode()!==46){const Z=this.startNode();return this.next(),this.finishNode(Z,H)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let X=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0))if(this.match(3)){const H=this.startNodeAtNode(X);H.elementType=X,this.expect(3),X=this.finishNode(H,"TSArrayType")}else{const H=this.startNodeAtNode(X);H.objectType=X,H.indexType=this.tsParseType(),this.expect(3),X=this.finishNode(H,"TSIndexedAccessType")}return X}tsParseTypeOperator(){const X=this.startNode(),H=this.state.value;if(this.next(),X.operator=H,X.typeAnnotation=this.tsParseTypeOperatorOrHigher(),H==="readonly")this.tsCheckTypeAnnotationForReadOnly(X);return this.finishNode(X,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(X){switch(X.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(o.UnexpectedReadonly,X)}}tsParseInferType(){const X=this.startNode();this.expectContextual(115);const H=this.startNode();return H.name=this.tsParseTypeParameterName(),H.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),X.typeParameter=this.finishNode(H,"TSTypeParameter"),this.finishNode(X,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const X=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return X}}tsParseTypeOperatorOrHigher(){return Fz1(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(X,H,Z){const V=this.startNode(),Q=this.eat(Z),Y=[];do Y.push(H());while(this.eat(Z));if(Y.length===1&&!Q)return Y[0];return V.types=Y,this.finishNode(V,X)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47))return!0;return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(N1(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:X}=this.state,H=X.length;try{return this.parseObjectLike(8,!0),X.length===H}catch(Z){return!1}}if(this.match(0)){this.next();const{errors:X}=this.state,H=X.length;try{return super.parseBindingList(3,93,1),X.length===H}catch(Z){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)){if(this.next(),this.match(19))return!0}}return!1}tsParseTypeOrTypePredicateAnnotation(X){return this.tsInType(()=>{const H=this.startNode();this.expect(X);const Z=this.startNode(),V=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(V&&this.match(78)){let W=this.tsParseThisTypeOrThisTypePredicate();if(W.type==="TSThisType")Z.parameterName=W,Z.asserts=!0,Z.typeAnnotation=null,W=this.finishNode(Z,"TSTypePredicate");else this.resetStartLocationFromNode(W,Z),W.asserts=!0;return H.typeAnnotation=W,this.finishNode(H,"TSTypeAnnotation")}const Q=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!Q){if(!V)return this.tsParseTypeAnnotation(!1,H);return Z.parameterName=this.parseIdentifier(),Z.asserts=V,Z.typeAnnotation=null,H.typeAnnotation=this.finishNode(Z,"TSTypePredicate"),this.finishNode(H,"TSTypeAnnotation")}const Y=this.tsParseTypeAnnotation(!1);return Z.parameterName=Q,Z.typeAnnotation=Y,Z.asserts=V,H.typeAnnotation=this.finishNode(Z,"TSTypePredicate"),this.finishNode(H,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const X=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),X}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;const X=this.state.containsEsc;if(this.next(),!N1(this.state.type)&&!this.match(78))return!1;if(X)this.raise(A.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"});return!0}tsParseTypeAnnotation(X=!0,H=this.startNode()){return this.tsInType(()=>{if(X)this.expect(14);H.typeAnnotation=this.tsParseType()}),this.finishNode(H,"TSTypeAnnotation")}tsParseType(){sU(this.state.inType);const X=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return X;const H=this.startNodeAtNode(X);return H.checkType=X,H.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),H.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),H.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(H,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(77))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(o.ReservedTypeAssertion,this.state.startLoc);const X=this.startNode();return X.typeAnnotation=this.tsInType(()=>{return this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()}),this.expect(48),X.expression=this.parseMaybeUnary(),this.finishNode(X,"TSTypeAssertion")}tsParseHeritageClause(X){const H=this.state.startLoc,Z=this.tsParseDelimitedList("HeritageClauseElement",()=>{const V=this.startNode();if(V.expression=this.tsParseEntityName(),this.match(47))V.typeParameters=this.tsParseTypeArguments();return this.finishNode(V,"TSExpressionWithTypeArguments")});if(!Z.length)this.raise(o.EmptyHeritageClauseType,H,{token:X});return Z}tsParseInterfaceDeclaration(X,H={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),H.declare)X.declare=!0;if(N1(this.state.type))X.id=this.parseIdentifier(),this.checkIdentifier(X.id,130);else X.id=null,this.raise(o.MissingInterfaceName,this.state.startLoc);if(X.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81))X.extends=this.tsParseHeritageClause("extends");const Z=this.startNode();return Z.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),X.body=this.finishNode(Z,"TSInterfaceBody"),this.finishNode(X,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(X){return X.id=this.parseIdentifier(),this.checkIdentifier(X.id,2),X.typeAnnotation=this.tsInType(()=>{if(X.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){const H=this.startNode();return this.next(),this.finishNode(H,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(X,"TSTypeAliasDeclaration")}tsInNoContext(X){const H=this.state.context;this.state.context=[H[0]];try{return X()}finally{this.state.context=H}}tsInType(X){const H=this.state.inType;this.state.inType=!0;try{return X()}finally{this.state.inType=H}}tsInDisallowConditionalTypesContext(X){const H=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return X()}finally{this.state.inDisallowConditionalTypesContext=H}}tsInAllowConditionalTypesContext(X){const H=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return X()}finally{this.state.inDisallowConditionalTypesContext=H}}tsEatThenParseType(X){if(this.match(X))return this.tsNextThenParseType()}tsExpectThenParseType(X){return this.tsInType(()=>{return this.expect(X),this.tsParseType()})}tsNextThenParseType(){return this.tsInType(()=>{return this.next(),this.tsParseType()})}tsParseEnumMember(){const X=this.startNode();if(X.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29))X.initializer=super.parseMaybeAssignAllowIn();return this.finishNode(X,"TSEnumMember")}tsParseEnumDeclaration(X,H={}){if(H.const)X.const=!0;if(H.declare)X.declare=!0;return this.expectContextual(126),X.id=this.parseIdentifier(),this.checkIdentifier(X.id,X.const?8971:8459),this.expect(5),X.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(X,"TSEnumDeclaration")}tsParseModuleBlock(){const X=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(X.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(X,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(X,H=!1){if(X.id=this.parseIdentifier(),!H)this.checkIdentifier(X.id,1024);if(this.eat(16)){const Z=this.startNode();this.tsParseModuleOrNamespaceDeclaration(Z,!0),X.body=Z}else this.scope.enter(256),this.prodParam.enter(0),X.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(X,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(X){if(this.isContextual(112))X.global=!0,X.id=this.parseIdentifier();else if(this.match(133))X.id=super.parseStringLiteral(this.state.value);else this.unexpected();if(this.match(5))this.scope.enter(256),this.prodParam.enter(0),X.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();else this.semicolon();return this.finishNode(X,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(X,H,Z){X.isExport=Z||!1,X.id=H||this.parseIdentifier(),this.checkIdentifier(X.id,4096),this.expect(29);const V=this.tsParseModuleReference();if(X.importKind==="type"&&V.type!=="TSExternalModuleReference")this.raise(o.ImportAliasHasImportType,V);return X.moduleReference=V,this.semicolon(),this.finishNode(X,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const X=this.startNode();if(this.expectContextual(119),this.expect(10),!this.match(133))this.unexpected();return X.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(X,"TSExternalModuleReference")}tsLookAhead(X){const H=this.state.clone(),Z=X();return this.state=H,Z}tsTryParseAndCatch(X){const H=this.tryParse((Z)=>X()||Z());if(H.aborted||!H.node)return;if(H.error)this.state=H.failState;return H.node}tsTryParse(X){const H=this.state.clone(),Z=X();if(Z!==void 0&&Z!==!1)return Z;this.state=H}tsTryParseDeclare(X){if(this.isLineTerminator())return;let H=this.state.type,Z;if(this.isContextual(100))H=74,Z="let";return this.tsInAmbientContext(()=>{switch(H){case 68:return X.declare=!0,super.parseFunctionStatement(X,!1,!1);case 80:return X.declare=!0,this.parseClass(X,!0,!1);case 126:return this.tsParseEnumDeclaration(X,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(X);case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return X.declare=!0,this.parseVarStatement(X,Z||this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(X,{const:!0,declare:!0});case 129:{const V=this.tsParseInterfaceDeclaration(X,{declare:!0});if(V)return V}default:if(N1(H))return this.tsParseDeclaration(X,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(X,H,Z){switch(H.name){case"declare":{const V=this.tsTryParseDeclare(X);if(V)V.declare=!0;return V}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const V=X;return V.global=!0,V.id=H,V.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(V,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(X,H.name,!1,Z)}}tsParseDeclaration(X,H,Z,V){switch(H){case"abstract":if(this.tsCheckLineTerminator(Z)&&(this.match(80)||N1(this.state.type)))return this.tsParseAbstractDeclaration(X,V);break;case"module":if(this.tsCheckLineTerminator(Z)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(X);else if(N1(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(X)}break;case"namespace":if(this.tsCheckLineTerminator(Z)&&N1(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(X);break;case"type":if(this.tsCheckLineTerminator(Z)&&N1(this.state.type))return this.tsParseTypeAliasDeclaration(X);break}}tsCheckLineTerminator(X){if(X){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(X){if(!this.match(47))return;const H=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const Z=this.tsTryParseAndCatch(()=>{const V=this.startNodeAt(X);return V.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(V),V.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),V});if(this.state.maybeInArrowParameters=H,!Z)return;return super.parseArrowExpression(Z,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){const X=this.startNode();if(X.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),X.params.length===0)this.raise(o.EmptyTypeArguments,X);else if(!this.state.inType&&this.curContext()===v1.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(X,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return jz1(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;return super.isExportDefaultSpecifier()}parseAssignableListItem(X,H){const Z=this.state.startLoc,V={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},V);const{accessibility:Q,override:Y,readonly:W}=V;if(!(X&4)&&(Q||W||Y))this.raise(o.UnexpectedParameterModifier,Z);const z=this.parseMaybeDefault();if(X&2)this.parseFunctionParamType(z);const B=this.parseMaybeDefault(z.loc.start,z);if(Q||W||Y){const q=this.startNodeAt(Z);if(H.length)q.decorators=H;if(Q)q.accessibility=Q;if(W)q.readonly=W;if(Y)q.override=Y;if(B.type!=="Identifier"&&B.type!=="AssignmentPattern")this.raise(o.UnsupportedParameterPropertyKind,q);return q.parameter=B,this.finishNode(q,"TSParameterProperty")}if(H.length)z.decorators=H;return B}isSimpleParameter(X){return X.type==="TSParameterProperty"&&super.isSimpleParameter(X.parameter)||super.isSimpleParameter(X)}tsDisallowOptionalPattern(X){for(let H of X.params)if(H.type!=="Identifier"&&H.optional&&!this.state.isAmbientContext)this.raise(o.PatternIsOptional,H)}setArrowFunctionParameters(X,H,Z){super.setArrowFunctionParameters(X,H,Z),this.tsDisallowOptionalPattern(X)}parseFunctionBodyAndFinish(X,H,Z=!1){if(this.match(14))X.returnType=this.tsParseTypeOrTypePredicateAnnotation(14);const V=H==="FunctionDeclaration"?"TSDeclareFunction":H==="ClassMethod"||H==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(V&&!this.match(5)&&this.isLineTerminator())return this.finishNode(X,V);if(V==="TSDeclareFunction"&&this.state.isAmbientContext){if(this.raise(o.DeclareFunctionHasImplementation,X),X.declare)return super.parseFunctionBodyAndFinish(X,V,Z)}return this.tsDisallowOptionalPattern(X),super.parseFunctionBodyAndFinish(X,H,Z)}registerFunctionStatementId(X){if(!X.body&&X.id)this.checkIdentifier(X.id,1024);else super.registerFunctionStatementId(X)}tsCheckForInvalidTypeCasts(X){X.forEach((H)=>{if((H==null?void 0:H.type)==="TSTypeCastExpression")this.raise(o.UnexpectedTypeAnnotation,H.typeAnnotation)})}toReferencedList(X,H){return this.tsCheckForInvalidTypeCasts(X),X}parseArrayLike(X,H,Z,V){const Q=super.parseArrayLike(X,H,Z,V);if(Q.type==="ArrayExpression")this.tsCheckForInvalidTypeCasts(Q.elements);return Q}parseSubscript(X,H,Z,V){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const Y=this.startNodeAt(H);return Y.expression=X,this.finishNode(Y,"TSNonNullExpression")}let Q=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(Z)return V.stop=!0,X;V.optionalChainMember=Q=!0,this.next()}if(this.match(47)||this.match(51)){let Y;const W=this.tsTryParseAndCatch(()=>{if(!Z&&this.atPossibleAsyncArrow(X)){const F=this.tsTryParseGenericAsyncArrowFunction(H);if(F)return F}const z=this.tsParseTypeArgumentsInExpression();if(!z)return;if(Q&&!this.match(10)){Y=this.state.curPosition();return}if(lG(this.state.type)){const F=super.parseTaggedTemplateExpression(X,H,V);return F.typeParameters=z,F}if(!Z&&this.eat(10)){const F=this.startNodeAt(H);if(F.callee=X,F.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(F.arguments),F.typeParameters=z,V.optionalChainMember)F.optional=Q;return this.finishCallExpression(F,V.optionalChainMember)}const B=this.state.type;if(B===48||B===52||B!==10&&_7(B)&&!this.hasPrecedingLineBreak())return;const q=this.startNodeAt(H);return q.expression=X,q.typeParameters=z,this.finishNode(q,"TSInstantiationExpression")});if(Y)this.unexpected(Y,10);if(W){if(W.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40))this.raise(o.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc);return W}}return super.parseSubscript(X,H,Z,V)}parseNewCallee(X){var H;super.parseNewCallee(X);const{callee:Z}=X;if(Z.type==="TSInstantiationExpression"&&!((H=Z.extra)!=null&&H.parenthesized))X.typeParameters=Z.typeParameters,X.callee=Z.expression}parseExprOp(X,H,Z){let V;if(mG(58)>Z&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(V=this.isContextual(120)))){const Q=this.startNodeAt(H);return Q.expression=X,Q.typeAnnotation=this.tsInType(()=>{if(this.next(),this.match(75)){if(V)this.raise(A.UnexpectedKeyword,this.state.startLoc,{keyword:"const"});return this.tsParseTypeReference()}return this.tsParseType()}),this.finishNode(Q,V?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(Q,H,Z)}return super.parseExprOp(X,H,Z)}checkReservedWord(X,H,Z,V){if(!this.state.isAmbientContext)super.checkReservedWord(X,H,Z,V)}checkImportReflection(X){if(super.checkImportReflection(X),X.module&&X.importKind!=="value")this.raise(o.ImportReflectionHasImportType,X.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(X){if(super.isPotentialImportPhase(X))return!0;if(this.isContextual(130)){const H=this.lookaheadCharCode();return X?H===123||H===42:H!==61}return!X&&this.isContextual(87)}applyImportPhase(X,H,Z,V){if(super.applyImportPhase(X,H,Z,V),H)X.exportKind=Z==="type"?"type":"value";else X.importKind=Z==="type"||Z==="typeof"?Z:"value"}parseImport(X){if(this.match(133))return X.importKind="value",super.parseImport(X);let H;if(N1(this.state.type)&&this.lookaheadCharCode()===61)return X.importKind="value",this.tsParseImportEqualsDeclaration(X);else if(this.isContextual(130)){const Z=this.parseMaybeImportPhase(X,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(X,Z);else H=super.parseImportSpecifiersAndAfter(X,Z)}else H=super.parseImport(X);if(H.importKind==="type"&&H.specifiers.length>1&&H.specifiers[0].type==="ImportDefaultSpecifier")this.raise(o.TypeImportCannotSpecifyDefaultAndNamed,H);return H}parseExport(X,H){if(this.match(83)){this.next();const Z=X;let V=null;if(this.isContextual(130)&&this.isPotentialImportPhase(!1))V=this.parseMaybeImportPhase(Z,!1);else Z.importKind="value";return this.tsParseImportEqualsDeclaration(Z,V,!0)}else if(this.eat(29)){const Z=X;return Z.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(Z,"TSExportAssignment")}else if(this.eatContextual(93)){const Z=X;return this.expectContextual(128),Z.id=this.parseIdentifier(),this.semicolon(),this.finishNode(Z,"TSNamespaceExportDeclaration")}else return super.parseExport(X,H)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){const X=this.startNode();return this.next(),X.abstract=!0,this.parseClass(X,!0,!0)}if(this.match(129)){const X=this.tsParseInterfaceDeclaration(this.startNode());if(X)return X}return super.parseExportDefaultExpression()}parseVarStatement(X,H,Z=!1){const{isAmbientContext:V}=this.state,Q=super.parseVarStatement(X,H,Z||V);if(!V)return Q;for(let{id:Y,init:W}of Q.declarations){if(!W)continue;if(H!=="const"||!!Y.typeAnnotation)this.raise(o.InitializerNotAllowedInAmbientContext,W);else if(!JU1(W,this.hasPlugin("estree")))this.raise(o.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,W)}return Q}parseStatementContent(X,H){if(this.match(75)&&this.isLookaheadContextual("enum")){const Z=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(Z,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const Z=this.tsParseInterfaceDeclaration(this.startNode());if(Z)return Z}return super.parseStatementContent(X,H)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(X,H){return H.some((Z)=>{if(pU(Z))return X.accessibility===Z;return!!X[Z]})}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(X,H,Z){const V=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:V,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:o.InvalidModifierOnTypeParameterPositions},H);const Q=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(H,V))this.raise(o.StaticBlockCannotHaveModifier,this.state.curPosition());super.parseClassStaticBlock(X,H)}else this.parseClassMemberWithIsStatic(X,H,Z,!!H.static)};if(H.declare)this.tsInAmbientContext(Q);else Q()}parseClassMemberWithIsStatic(X,H,Z,V){const Q=this.tsTryParseIndexSignature(H);if(Q){if(X.body.push(Q),H.abstract)this.raise(o.IndexSignatureHasAbstract,H);if(H.accessibility)this.raise(o.IndexSignatureHasAccessibility,H,{modifier:H.accessibility});if(H.declare)this.raise(o.IndexSignatureHasDeclare,H);if(H.override)this.raise(o.IndexSignatureHasOverride,H);return}if(!this.state.inAbstractClass&&H.abstract)this.raise(o.NonAbstractClassHasAbstractMethod,H);if(H.override){if(!Z.hadSuperClass)this.raise(o.OverrideNotInSubClass,H)}super.parseClassMemberWithIsStatic(X,H,Z,V)}parsePostMemberNameModifiers(X){if(this.eat(17))X.optional=!0;if(X.readonly&&this.match(10))this.raise(o.ClassMethodHasReadonly,X);if(X.declare&&this.match(10))this.raise(o.ClassMethodHasDeclare,X)}parseExpressionStatement(X,H,Z){return(H.type==="Identifier"?this.tsParseExpressionStatement(X,H,Z):void 0)||super.parseExpressionStatement(X,H,Z)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return!0;return super.shouldParseExportDeclaration()}parseConditional(X,H,Z){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(X,H,Z);const V=this.tryParse(()=>super.parseConditional(X,H));if(!V.node){if(V.error)super.setOptionalParametersError(Z,V.error);return X}if(V.error)this.state=V.failState;return V.node}parseParenItem(X,H){const Z=super.parseParenItem(X,H);if(this.eat(17))Z.optional=!0,this.resetEndLocation(X);if(this.match(14)){const V=this.startNodeAt(H);return V.expression=X,V.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(V,"TSTypeCastExpression")}return X}parseExportDeclaration(X){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(X));const H=this.state.startLoc,Z=this.eatContextual(125);if(Z&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(o.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const Q=N1(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(X);if(!Q)return null;if(Q.type==="TSInterfaceDeclaration"||Q.type==="TSTypeAliasDeclaration"||Z)X.exportKind="type";if(Z)this.resetStartLocation(Q,H),Q.declare=!0;return Q}parseClassId(X,H,Z,V){if((!H||Z)&&this.isContextual(113))return;super.parseClassId(X,H,Z,X.declare?1024:8331);const Q=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(Q)X.typeParameters=Q}parseClassPropertyAnnotation(X){if(!X.optional){if(this.eat(35))X.definite=!0;else if(this.eat(17))X.optional=!0}const H=this.tsTryParseTypeAnnotation();if(H)X.typeAnnotation=H}parseClassProperty(X){if(this.parseClassPropertyAnnotation(X),this.state.isAmbientContext&&!(X.readonly&&!X.typeAnnotation)&&this.match(29))this.raise(o.DeclareClassFieldHasInitializer,this.state.startLoc);if(X.abstract&&this.match(29)){const{key:H}=X;this.raise(o.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:H.type==="Identifier"&&!X.computed?H.name:`[${this.input.slice(H.start,H.end)}]`})}return super.parseClassProperty(X)}parseClassPrivateProperty(X){if(X.abstract)this.raise(o.PrivateElementHasAbstract,X);if(X.accessibility)this.raise(o.PrivateElementHasAccessibility,X,{modifier:X.accessibility});return this.parseClassPropertyAnnotation(X),super.parseClassPrivateProperty(X)}parseClassAccessorProperty(X){if(this.parseClassPropertyAnnotation(X),X.optional)this.raise(o.AccessorCannotBeOptional,X);return super.parseClassAccessorProperty(X)}pushClassMethod(X,H,Z,V,Q,Y){const W=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(W&&Q)this.raise(o.ConstructorHasTypeParameters,W);const{declare:z=!1,kind:B}=H;if(z&&(B==="get"||B==="set"))this.raise(o.DeclareAccessor,H,{kind:B});if(W)H.typeParameters=W;super.pushClassMethod(X,H,Z,V,Q,Y)}pushClassPrivateMethod(X,H,Z,V){const Q=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Q)H.typeParameters=Q;super.pushClassPrivateMethod(X,H,Z,V)}declareClassPrivateMethodInScope(X,H){if(X.type==="TSDeclareMethod")return;if(X.type==="MethodDefinition"&&!hasOwnProperty.call(X.value,"body"))return;super.declareClassPrivateMethodInScope(X,H)}parseClassSuper(X){if(super.parseClassSuper(X),X.superClass&&(this.match(47)||this.match(51)))X.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual(113))X.implements=this.tsParseHeritageClause("implements")}parseObjPropValue(X,H,Z,V,Q,Y,W){const z=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(z)X.typeParameters=z;return super.parseObjPropValue(X,H,Z,V,Q,Y,W)}parseFunctionParams(X,H){const Z=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Z)X.typeParameters=Z;super.parseFunctionParams(X,H)}parseVarId(X,H){if(super.parseVarId(X,H),X.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35))X.definite=!0;const Z=this.tsTryParseTypeAnnotation();if(Z)X.id.typeAnnotation=Z,this.resetEndLocation(X.id)}parseAsyncArrowFromCallExpression(X,H){if(this.match(14))X.returnType=this.tsParseTypeAnnotation();return super.parseAsyncArrowFromCallExpression(X,H)}parseMaybeAssign(X,H){var Z,V,Q,Y,W;let z,B,q;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(z=this.state.clone(),B=this.tryParse(()=>super.parseMaybeAssign(X,H),z),!B.error)return B.node;const{context:f}=this.state,y=f[f.length-1];if(y===v1.j_oTag||y===v1.j_expr)f.pop()}if(!((Z=B)!=null&&Z.error)&&!this.match(47))return super.parseMaybeAssign(X,H);if(!z||z===this.state)z=this.state.clone();let F;const j=this.tryParse((f)=>{var y,w;F=this.tsParseTypeParameters(this.tsParseConstModifier);const v=super.parseMaybeAssign(X,H);if(v.type!=="ArrowFunctionExpression"||(y=v.extra)!=null&&y.parenthesized)f();if(((w=F)==null?void 0:w.params.length)!==0)this.resetStartLocationFromNode(v,F);return v.typeParameters=F,v},z);if(!j.error&&!j.aborted){if(F)this.reportReservedArrowTypeParam(F);return j.node}if(!B){if(sU(!this.hasPlugin("jsx")),q=this.tryParse(()=>super.parseMaybeAssign(X,H),z),!q.error)return q.node}if((V=B)!=null&&V.node)return this.state=B.failState,B.node;if(j.node){if(this.state=j.failState,F)this.reportReservedArrowTypeParam(F);return j.node}if((Q=q)!=null&&Q.node)return this.state=q.failState,q.node;throw((Y=B)==null?void 0:Y.error)||j.error||((W=q)==null?void 0:W.error)}reportReservedArrowTypeParam(X){var H;if(X.params.length===1&&!X.params[0].constraint&&!((H=X.extra)!=null&&H.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(o.ReservedArrowTypeParam,X)}parseMaybeUnary(X,H){if(!this.hasPlugin("jsx")&&this.match(47))return this.tsParseTypeAssertion();return super.parseMaybeUnary(X,H)}parseArrow(X){if(this.match(14)){const H=this.tryParse((Z)=>{const V=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))Z();return V});if(H.aborted)return;if(!H.thrown){if(H.error)this.state=H.failState;X.returnType=H.node}}return super.parseArrow(X)}parseFunctionParamType(X){if(this.eat(17))X.optional=!0;const H=this.tsTryParseTypeAnnotation();if(H)X.typeAnnotation=H;return this.resetEndLocation(X),X}isAssignable(X,H){switch(X.type){case"TSTypeCastExpression":return this.isAssignable(X.expression,H);case"TSParameterProperty":return!0;default:return super.isAssignable(X,H)}}toAssignable(X,H=!1){switch(X.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(X,H);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(H)this.expressionScope.recordArrowParameterBindingError(o.UnexpectedTypeCastInParameter,X);else this.raise(o.UnexpectedTypeCastInParameter,X);this.toAssignable(X.expression,H);break;case"AssignmentExpression":if(!H&&X.left.type==="TSTypeCastExpression")X.left=this.typeCastToParameter(X.left);default:super.toAssignable(X,H)}}toAssignableParenthesizedExpression(X,H){switch(X.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(X.expression,H);break;default:super.toAssignable(X,H)}}checkToRestConversion(X,H){switch(X.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(X.expression,!1);break;default:super.checkToRestConversion(X,H)}}isValidLVal(X,H,Z){switch(X){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(Z!==64||!H)&&["expression",!0];default:return super.isValidLVal(X,H,Z)}}parseBindingAtom(){if(this.state.type===78)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(X){if(this.match(47)||this.match(51)){const H=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const Z=super.parseMaybeDecoratorArguments(X);return Z.typeParameters=H,Z}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(X)}checkCommaAfterRest(X){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===X)return this.next(),!1;return super.checkCommaAfterRest(X)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(X,H){const Z=super.parseMaybeDefault(X,H);if(Z.type==="AssignmentPattern"&&Z.typeAnnotation&&Z.right.start<Z.typeAnnotation.start)this.raise(o.TypeAnnotationAfterAssign,Z.typeAnnotation);return Z}getTokenFromCode(X){if(this.state.inType){if(X===62){this.finishOp(48,1);return}if(X===60){this.finishOp(47,1);return}}super.getTokenFromCode(X)}reScan_lt_gt(){const{type:X}=this.state;if(X===47)this.state.pos-=1,this.readToken_lt();else if(X===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){const{type:X}=this.state;if(X===51)return this.state.pos-=2,this.finishOp(47,1),47;return X}toAssignableList(X,H,Z){for(let V=0;V<X.length;V++){const Q=X[V];if((Q==null?void 0:Q.type)==="TSTypeCastExpression")X[V]=this.typeCastToParameter(Q)}super.toAssignableList(X,H,Z)}typeCastToParameter(X){return X.expression.typeAnnotation=X.typeAnnotation,this.resetEndLocation(X.expression,X.typeAnnotation.loc.end),X.expression}shouldParseArrow(X){if(this.match(14))return X.every((H)=>this.isAssignable(H,!0));return super.shouldParseArrow(X)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(X){if(this.match(47)||this.match(51)){const H=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(H)X.typeParameters=H}return super.jsxParseOpeningElementAfterName(X)}getGetterSetterExpectedParamCount(X){const H=super.getGetterSetterExpectedParamCount(X),V=this.getObjectOrClassMethodParams(X)[0];return V&&this.isThisParam(V)?H+1:H}parseCatchClauseParam(){const X=super.parseCatchClauseParam(),H=this.tsTryParseTypeAnnotation();if(H)X.typeAnnotation=H,this.resetEndLocation(X);return X}tsInAmbientContext(X){const{isAmbientContext:H,strict:Z}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return X()}finally{this.state.isAmbientContext=H,this.state.strict=Z}}parseClass(X,H,Z){const V=this.state.inAbstractClass;this.state.inAbstractClass=!!X.abstract;try{return super.parseClass(X,H,Z)}finally{this.state.inAbstractClass=V}}tsParseAbstractDeclaration(X,H){if(this.match(80))return X.abstract=!0,this.maybeTakeDecorators(H,this.parseClass(X,!0,!1));else if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return X.abstract=!0,this.raise(o.NonClassMethodPropertyHasAbstractModifer,X),this.tsParseInterfaceDeclaration(X)}else this.unexpected(null,80)}parseMethod(X,H,Z,V,Q,Y,W){const z=super.parseMethod(X,H,Z,V,Q,Y,W);if(z.abstract){if(this.hasPlugin("estree")?!!z.value.body:!!z.body){const{key:q}=z;this.raise(o.AbstractMethodHasImplementation,z,{methodName:q.type==="Identifier"&&!z.computed?q.name:`[${this.input.slice(q.start,q.end)}]`})}}return z}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.getExpression()}parseExportSpecifier(X,H,Z,V){if(!H&&V)return this.parseTypeOnlyImportExportSpecifier(X,!1,Z),this.finishNode(X,"ExportSpecifier");return X.exportKind="value",super.parseExportSpecifier(X,H,Z,V)}parseImportSpecifier(X,H,Z,V,Q){if(!H&&V)return this.parseTypeOnlyImportExportSpecifier(X,!0,Z),this.finishNode(X,"ImportSpecifier");return X.importKind="value",super.parseImportSpecifier(X,H,Z,V,Z?4098:4096)}parseTypeOnlyImportExportSpecifier(X,H,Z){const V=H?"imported":"local",Q=H?"local":"exported";let Y=X[V],W,z=!1,B=!0;const q=Y.loc.start;if(this.isContextual(93)){const j=this.parseIdentifier();if(this.isContextual(93)){const f=this.parseIdentifier();if(x2(this.state.type))z=!0,Y=j,W=H?this.parseIdentifier():this.parseModuleExportName(),B=!1;else W=f,B=!1}else if(x2(this.state.type))B=!1,W=H?this.parseIdentifier():this.parseModuleExportName();else z=!0,Y=j}else if(x2(this.state.type))if(z=!0,H){if(Y=this.parseIdentifier(!0),!this.isContextual(93))this.checkReservedWord(Y.name,Y.loc.start,!0,!0)}else Y=this.parseModuleExportName();if(z&&Z)this.raise(H?o.TypeModifierIsUsedInTypeImports:o.TypeModifierIsUsedInTypeExports,q);X[V]=Y,X[Q]=W;const F=H?"importKind":"exportKind";if(X[F]=z?"type":"value",B&&this.eatContextual(93))X[Q]=H?this.parseIdentifier():this.parseModuleExportName();if(!X[Q])X[Q]=q0(X[V]);if(H)this.checkIdentifier(X[Q],z?4098:4096)}},nU=R0`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),HU1=(G)=>class J extends G{parsePlaceholder(X){if(this.match(144)){const H=this.startNode();return this.next(),this.assertNoSpace(),H.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(H,X)}}finishPlaceholder(X,H){let Z=X;if(!Z.expectedNode||!Z.type)Z=this.finishNode(Z,"Placeholder");return Z.expectedNode=H,Z}getTokenFromCode(X){if(X===37&&this.input.charCodeAt(this.state.pos+1)===37)this.finishOp(144,2);else super.getTokenFromCode(X)}parseExprAtom(X){return this.parsePlaceholder("Expression")||super.parseExprAtom(X)}parseIdentifier(X){return this.parsePlaceholder("Identifier")||super.parseIdentifier(X)}checkReservedWord(X,H,Z,V){if(X!==void 0)super.checkReservedWord(X,H,Z,V)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(X,H,Z){return X==="Placeholder"||super.isValidLVal(X,H,Z)}toAssignable(X,H){if(X&&X.type==="Placeholder"&&X.expectedNode==="Expression")X.expectedNode="Pattern";else super.toAssignable(X,H)}chStartsBindingIdentifier(X,H){if(super.chStartsBindingIdentifier(X,H))return!0;if(this.lookahead().type===144)return!0;return!1}verifyBreakContinue(X,H){if(X.label&&X.label.type==="Placeholder")return;super.verifyBreakContinue(X,H)}parseExpressionStatement(X,H){var Z;if(H.type!=="Placeholder"||(Z=H.extra)!=null&&Z.parenthesized)return super.parseExpressionStatement(X,H);if(this.match(14)){const Q=X;return Q.label=this.finishPlaceholder(H,"Identifier"),this.next(),Q.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(Q,"LabeledStatement")}this.semicolon();const V=X;return V.name=H.name,this.finishPlaceholder(V,"Statement")}parseBlock(X,H,Z){return this.parsePlaceholder("BlockStatement")||super.parseBlock(X,H,Z)}parseFunctionId(X){return this.parsePlaceholder("Identifier")||super.parseFunctionId(X)}parseClass(X,H,Z){const V=H?"ClassDeclaration":"ClassExpression";this.next();const Q=this.state.strict,Y=this.parsePlaceholder("Identifier");if(Y)if(this.match(81)||this.match(144)||this.match(5))X.id=Y;else if(Z||!H)return X.id=null,X.body=this.finishPlaceholder(Y,"ClassBody"),this.finishNode(X,V);else throw this.raise(nU.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(X,H,Z);return super.parseClassSuper(X),X.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!X.superClass,Q),this.finishNode(X,V)}parseExport(X,H){const Z=this.parsePlaceholder("Identifier");if(!Z)return super.parseExport(X,H);const V=X;if(!this.isContextual(98)&&!this.match(12))return V.specifiers=[],V.source=null,V.declaration=this.finishPlaceholder(Z,"Declaration"),this.finishNode(V,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const Q=this.startNode();return Q.exported=Z,V.specifiers=[this.finishNode(Q,"ExportDefaultSpecifier")],super.parseExport(V,H)}isExportDefaultSpecifier(){if(this.match(65)){const X=this.nextTokenStart();if(this.isUnparsedContextual(X,"from")){if(this.input.startsWith(O0(144),this.nextTokenStartSince(X+4)))return!0}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(X,H){var Z;if((Z=X.specifiers)!=null&&Z.length)return!0;return super.maybeParseExportDefaultSpecifier(X,H)}checkExport(X){const{specifiers:H}=X;if(H!=null&&H.length)X.specifiers=H.filter((Z)=>Z.exported.type==="Placeholder");super.checkExport(X),X.specifiers=H}parseImport(X){const H=this.parsePlaceholder("Identifier");if(!H)return super.parseImport(X);if(X.specifiers=[],!this.isContextual(98)&&!this.match(12))return X.source=this.finishPlaceholder(H,"StringLiteral"),this.semicolon(),this.finishNode(X,"ImportDeclaration");const Z=this.startNodeAtNode(H);if(Z.local=H,X.specifiers.push(this.finishNode(Z,"ImportDefaultSpecifier")),this.eat(12)){if(!this.maybeParseStarImportSpecifier(X))this.parseNamedImportSpecifiers(X)}return this.expectContextual(98),X.source=this.parseImportSource(),this.semicolon(),this.finishNode(X,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.state.lastTokEndLoc.index)this.raise(nU.UnexpectedSpace,this.state.lastTokEndLoc)}},ZU1=(G)=>class J extends G{parseV8Intrinsic(){if(this.match(54)){const X=this.state.startLoc,H=this.startNode();if(this.next(),N1(this.state.type)){const Z=this.parseIdentifierName(),V=this.createIdentifier(H,Z);if(V.type="V8IntrinsicIdentifier",this.match(10))return V}this.unexpected(X)}}parseExprAtom(X){return this.parseV8Intrinsic()||super.parseExprAtom(X)}},oU=["minimal","fsharp","hack","smart"],eU=["^^","@@","^","%","#"],wK={estree:Yz1,jsx:pz1,flow:dz1,typescript:tz1,v8intrinsic:ZU1,placeholders:HU1},QU1=Object.keys(wK),E7={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};class NK extends PK{checkProto(G,J,X,H){if(G.type==="SpreadElement"||this.isObjectMethod(G)||G.computed||G.shorthand)return;const Z=G.key;if((Z.type==="Identifier"?Z.name:Z.value)==="__proto__"){if(J){this.raise(A.RecordNoProto,Z);return}if(X.used)if(H){if(H.doubleProtoLoc===null)H.doubleProtoLoc=Z.loc.start}else this.raise(A.DuplicateProto,Z);X.used=!0}}shouldExitDescending(G,J){return G.type==="ArrowFunctionExpression"&&G.start===J}getExpression(){this.enterInitialScopes(),this.nextToken();const G=this.parseExpression();if(!this.match(139))this.unexpected();if(this.finalizeRemainingComments(),G.comments=this.comments,G.errors=this.state.errors,this.options.tokens)G.tokens=this.tokens;return G}parseExpression(G,J){if(G)return this.disallowInAnd(()=>this.parseExpressionBase(J));return this.allowInAnd(()=>this.parseExpressionBase(J))}parseExpressionBase(G){const J=this.state.startLoc,X=this.parseMaybeAssign(G);if(this.match(12)){const H=this.startNodeAt(J);H.expressions=[X];while(this.eat(12))H.expressions.push(this.parseMaybeAssign(G));return this.toReferencedList(H.expressions),this.finishNode(H,"SequenceExpression")}return X}parseMaybeAssignDisallowIn(G,J){return this.disallowInAnd(()=>this.parseMaybeAssign(G,J))}parseMaybeAssignAllowIn(G,J){return this.allowInAnd(()=>this.parseMaybeAssign(G,J))}setOptionalParametersError(G,J){var X;G.optionalParametersLoc=(X=J==null?void 0:J.loc)!=null?X:this.state.startLoc}parseMaybeAssign(G,J){const X=this.state.startLoc;if(this.isContextual(108)){if(this.prodParam.hasYield){let Q=this.parseYield();if(J)Q=J.call(this,Q,X);return Q}}let H;if(G)H=!1;else G=new g9,H=!0;const{type:Z}=this.state;if(Z===10||N1(Z))this.state.potentialArrowAt=this.state.start;let V=this.parseMaybeConditional(G);if(J)V=J.call(this,V,X);if(Bz1(this.state.type)){const Q=this.startNodeAt(X),Y=this.state.value;if(Q.operator=Y,this.match(29)){this.toAssignable(V,!0),Q.left=V;const W=X.index;if(G.doubleProtoLoc!=null&&G.doubleProtoLoc.index>=W)G.doubleProtoLoc=null;if(G.shorthandAssignLoc!=null&&G.shorthandAssignLoc.index>=W)G.shorthandAssignLoc=null;if(G.privateKeyLoc!=null&&G.privateKeyLoc.index>=W)this.checkDestructuringPrivate(G),G.privateKeyLoc=null}else Q.left=V;return this.next(),Q.right=this.parseMaybeAssign(),this.checkLVal(V,this.finishNode(Q,"AssignmentExpression")),Q}else if(H)this.checkExpressionErrors(G,!0);return V}parseMaybeConditional(G){const J=this.state.startLoc,X=this.state.potentialArrowAt,H=this.parseExprOps(G);if(this.shouldExitDescending(H,X))return H;return this.parseConditional(H,J,G)}parseConditional(G,J,X){if(this.eat(17)){const H=this.startNodeAt(J);return H.test=G,H.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),H.alternate=this.parseMaybeAssign(),this.finishNode(H,"ConditionalExpression")}return G}parseMaybeUnaryOrPrivate(G){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(G)}parseExprOps(G){const J=this.state.startLoc,X=this.state.potentialArrowAt,H=this.parseMaybeUnaryOrPrivate(G);if(this.shouldExitDescending(H,X))return H;return this.parseExprOp(H,J,-1)}parseExprOp(G,J,X){if(this.isPrivateName(G)){const Z=this.getPrivateNameSV(G);if(X>=mG(58)||!this.prodParam.hasIn||!this.match(58))this.raise(A.PrivateInExpectedIn,G,{identifierName:Z});this.classScope.usePrivateName(Z,G.loc.start)}const H=this.state.type;if(Rz1(H)&&(this.prodParam.hasIn||!this.match(58))){let Z=mG(H);if(Z>X){if(H===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return G;this.checkPipelineAtInfixOperator(G,J)}const V=this.startNodeAt(J);V.left=G,V.operator=this.state.value;const Q=H===41||H===42,Y=H===40;if(Y)Z=mG(42);if(this.next(),H===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait)throw this.raise(A.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}V.right=this.parseExprOpRightExpr(H,Z);const W=this.finishNode(V,Q||Y?"LogicalExpression":"BinaryExpression"),z=this.state.type;if(Y&&(z===41||z===42)||Q&&z===40)throw this.raise(A.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(W,J,X)}}return G}parseExprOpRightExpr(G,J){const X=this.state.startLoc;switch(G){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>{return this.parseHackPipeBody()});case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(A.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(G,J),X)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>{return this.parseFSharpPipelineBody(J)})}default:return this.parseExprOpBaseRightExpr(G,J)}}parseExprOpBaseRightExpr(G,J){const X=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),X,Dz1(G)?J-1:J)}parseHackPipeBody(){var G;const{startLoc:J}=this.state,X=this.parseMaybeAssign();if(Xz1.has(X.type)&&!((G=X.extra)!=null&&G.parenthesized))this.raise(A.PipeUnparenthesizedBody,J,{type:X.type});if(!this.topicReferenceWasUsedInCurrentContext())this.raise(A.PipeTopicUnused,J);return X}checkExponentialAfterUnary(G){if(this.match(57))this.raise(A.UnexpectedTokenUnaryExponentiation,G.argument)}parseMaybeUnary(G,J){const X=this.state.startLoc,H=this.isContextual(96);if(H&&this.recordAwaitIfAllowed()){this.next();const Y=this.parseAwait(X);if(!J)this.checkExponentialAfterUnary(Y);return Y}const Z=this.match(34),V=this.startNode();if(qz1(this.state.type)){if(V.operator=this.state.value,V.prefix=!0,this.match(72))this.expectPlugin("throwExpressions");const Y=this.match(89);if(this.next(),V.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(G,!0),this.state.strict&&Y){const W=V.argument;if(W.type==="Identifier")this.raise(A.StrictDelete,V);else if(this.hasPropertyAsPrivateName(W))this.raise(A.DeletePrivateField,V)}if(!Z){if(!J)this.checkExponentialAfterUnary(V);return this.finishNode(V,"UnaryExpression")}}const Q=this.parseUpdate(V,Z,G);if(H){const{type:Y}=this.state;if((this.hasPlugin("v8intrinsic")?_7(Y):_7(Y)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(A.AwaitNotInAsyncContext,X),this.parseAwait(X)}return Q}parseUpdate(G,J,X){if(J){const V=G;return this.checkLVal(V.argument,this.finishNode(V,"UpdateExpression")),G}const H=this.state.startLoc;let Z=this.parseExprSubscripts(X);if(this.checkExpressionErrors(X,!1))return Z;while(Mz1(this.state.type)&&!this.canInsertSemicolon()){const V=this.startNodeAt(H);V.operator=this.state.value,V.prefix=!1,V.argument=Z,this.next(),this.checkLVal(Z,Z=this.finishNode(V,"UpdateExpression"))}return Z}parseExprSubscripts(G){const J=this.state.startLoc,X=this.state.potentialArrowAt,H=this.parseExprAtom(G);if(this.shouldExitDescending(H,X))return H;return this.parseSubscripts(H,J)}parseSubscripts(G,J,X){const H={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(G),stop:!1};do G=this.parseSubscript(G,J,X,H),H.maybeAsyncArrow=!1;while(!H.stop);return G}parseSubscript(G,J,X,H){const{type:Z}=this.state;if(!X&&Z===15)return this.parseBind(G,J,X,H);else if(lG(Z))return this.parseTaggedTemplateExpression(G,J,H);let V=!1;if(Z===18){if(X){if(this.raise(A.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40)return H.stop=!0,G}H.optionalChainMember=V=!0,this.next()}if(!X&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(G,J,H,V);else{const Q=this.eat(0);if(Q||V||this.eat(16))return this.parseMember(G,J,H,Q,V);else return H.stop=!0,G}}parseMember(G,J,X,H,Z){const V=this.startNodeAt(J);if(V.object=G,V.computed=H,H)V.property=this.parseExpression(),this.expect(3);else if(this.match(138)){if(G.type==="Super")this.raise(A.SuperPrivateField,J);this.classScope.usePrivateName(this.state.value,this.state.startLoc),V.property=this.parsePrivateName()}else V.property=this.parseIdentifier(!0);if(X.optionalChainMember)return V.optional=Z,this.finishNode(V,"OptionalMemberExpression");else return this.finishNode(V,"MemberExpression")}parseBind(G,J,X,H){const Z=this.startNodeAt(J);return Z.object=G,this.next(),Z.callee=this.parseNoCallExpr(),H.stop=!0,this.parseSubscripts(this.finishNode(Z,"BindExpression"),J,X)}parseCoverCallAndAsyncArrowHead(G,J,X,H){const Z=this.state.maybeInArrowParameters;let V=null;this.state.maybeInArrowParameters=!0,this.next();const Q=this.startNodeAt(J);Q.callee=G;const{maybeAsyncArrow:Y,optionalChainMember:W}=X;if(Y)this.expressionScope.enter(mz1()),V=new g9;if(W)Q.optional=H;if(H)Q.arguments=this.parseCallExpressionArguments(11);else Q.arguments=this.parseCallExpressionArguments(11,G.type==="Import",G.type!=="Super",Q,V);let z=this.finishCallExpression(Q,W);if(Y&&this.shouldParseAsyncArrow()&&!H)X.stop=!0,this.checkDestructuringPrivate(V),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),z=this.parseAsyncArrowFromCallExpression(this.startNodeAt(J),z);else{if(Y)this.checkExpressionErrors(V,!0),this.expressionScope.exit();this.toReferencedArguments(z)}return this.state.maybeInArrowParameters=Z,z}toReferencedArguments(G,J){this.toReferencedListDeep(G.arguments,J)}parseTaggedTemplateExpression(G,J,X){const H=this.startNodeAt(J);if(H.tag=G,H.quasi=this.parseTemplate(!0),X.optionalChainMember)this.raise(A.OptionalChainingNoTemplate,J);return this.finishNode(H,"TaggedTemplateExpression")}atPossibleAsyncArrow(G){return G.type==="Identifier"&&G.name==="async"&&this.state.lastTokEndLoc.index===G.end&&!this.canInsertSemicolon()&&G.end-G.start===5&&G.start===this.state.potentialArrowAt}finishCallExpression(G,J){if(G.callee.type==="Import"){if(G.arguments.length===2){if(!(this.hasPlugin("moduleAttributes")||this.hasPlugin("importAssertions")))this.expectPlugin("importAttributes")}if(G.arguments.length===0||G.arguments.length>2)this.raise(A.ImportCallArity,G,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let X of G.arguments)if(X.type==="SpreadElement")this.raise(A.ImportCallSpreadArgument,X)}return this.finishNode(G,J?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(G,J,X,H,Z){const V=[];let Q=!0;const Y=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;while(!this.eat(G)){if(Q)Q=!1;else if(this.expect(12),this.match(G)){if(J&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes"))this.raise(A.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc);if(H)this.addTrailingCommaExtraToNode(H);this.next();break}V.push(this.parseExprListItem(!1,Z,X))}return this.state.inFSharpPipelineDirectBody=Y,V}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(G,J){var X;if(this.resetPreviousNodeTrailingComments(J),this.expect(19),this.parseArrowExpression(G,J.arguments,!0,(X=J.extra)==null?void 0:X.trailingCommaLoc),J.innerComments)h9(G,J.innerComments);if(J.callee.trailingComments)h9(G,J.callee.trailingComments);return G}parseNoCallExpr(){const G=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),G,!0)}parseExprAtom(G){let J,X=null;const{type:H}=this.state;switch(H){case 79:return this.parseSuper();case 83:if(J=this.startNode(),this.next(),this.match(16))return this.parseImportMetaProperty(J);if(this.match(10))if(this.options.createImportExpressions)return this.parseImportCall(J);else return this.finishNode(J,"Import");else return this.raise(A.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(J,"Import");case 78:return J=this.startNode(),this.next(),this.finishNode(J,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const Z=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(Z)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,G);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,G);case 68:return this.parseFunctionOrFunctionSent();case 26:X=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(X,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{J=this.startNode(),this.next(),J.object=null;const Z=J.callee=this.parseNoCallExpr();if(Z.type==="MemberExpression")return this.finishNode(J,"BindExpression");else throw this.raise(A.UnsupportedBind,Z)}case 138:return this.raise(A.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const Z=this.getPluginOption("pipelineOperator","proposal");if(Z)return this.parseTopicReference(Z);this.unexpected();break}case 47:{const Z=this.input.codePointAt(this.nextTokenStart());if($0(Z)||Z===62)this.expectOnePlugin(["jsx","flow","typescript"]);else this.unexpected();break}default:if(H===136)return this.parseDecimalLiteral(this.state.value);if(N1(H)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();const Z=this.state.potentialArrowAt===this.state.start,V=this.state.containsEsc,Q=this.parseIdentifier();if(!V&&Q.name==="async"&&!this.canInsertSemicolon()){const{type:Y}=this.state;if(Y===68)return this.resetPreviousNodeTrailingComments(Q),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(Q));else if(N1(Y))if(this.lookaheadCharCode()===61)return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(Q));else return Q;else if(Y===90)return this.resetPreviousNodeTrailingComments(Q),this.parseDo(this.startNodeAtNode(Q),!0)}if(Z&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(Q),[Q],!1);return Q}else this.unexpected()}}parseTopicReferenceThenEqualsSign(G,J){const X=this.getPluginOption("pipelineOperator","proposal");if(X)return this.state.type=G,this.state.value=J,this.state.pos--,this.state.end--,this.state.endLoc=K2(this.state.endLoc,-1),this.parseTopicReference(X);else this.unexpected()}parseTopicReference(G){const J=this.startNode(),X=this.state.startLoc,H=this.state.type;return this.next(),this.finishTopicReference(J,X,G,H)}finishTopicReference(G,J,X,H){if(this.testTopicReferenceConfiguration(X,J,H)){const Z=X==="smart"?"PipelinePrimaryTopicReference":"TopicReference";if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(X==="smart"?A.PrimaryTopicNotAllowed:A.PipeTopicUnbound,J);return this.registerTopicReference(),this.finishNode(G,Z)}else throw this.raise(A.PipeTopicUnconfiguredToken,J,{token:O0(H)})}testTopicReferenceConfiguration(G,J,X){switch(G){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:O0(X)}]);case"smart":return X===27;default:throw this.raise(A.PipeTopicRequiresHackPipes,J)}}parseAsyncArrowUnaryFunction(G){this.prodParam.enter(xG(!0,this.prodParam.hasYield));const J=[this.parseIdentifier()];if(this.prodParam.exit(),this.hasPrecedingLineBreak())this.raise(A.LineTerminatorBeforeArrow,this.state.curPosition());return this.expect(19),this.parseArrowExpression(G,J,!0)}parseDo(G,J){if(this.expectPlugin("doExpressions"),J)this.expectPlugin("asyncDoExpressions");G.async=J,this.next();const X=this.state.labels;if(this.state.labels=[],J)this.prodParam.enter(2),G.body=this.parseBlock(),this.prodParam.exit();else G.body=this.parseBlock();return this.state.labels=X,this.finishNode(G,"DoExpression")}parseSuper(){const G=this.startNode();if(this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod)this.raise(A.SuperNotAllowed,G);else if(!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod)this.raise(A.UnexpectedSuper,G);if(!this.match(10)&&!this.match(0)&&!this.match(16))this.raise(A.UnsupportedSuper,G);return this.finishNode(G,"Super")}parsePrivateName(){const G=this.startNode(),J=this.startNodeAt(K2(this.state.startLoc,1)),X=this.state.value;return this.next(),G.id=this.createIdentifier(J,X),this.finishNode(G,"PrivateName")}parseFunctionOrFunctionSent(){const G=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const J=this.createIdentifier(this.startNodeAtNode(G),"function");if(this.next(),this.match(103))this.expectPlugin("functionSent");else if(!this.hasPlugin("functionSent"))this.unexpected();return this.parseMetaProperty(G,J,"sent")}return this.parseFunction(G)}parseMetaProperty(G,J,X){G.meta=J;const H=this.state.containsEsc;if(G.property=this.parseIdentifier(!0),G.property.name!==X||H)this.raise(A.UnsupportedMetaProperty,G.property,{target:J.name,onlyValidPropertyName:X});return this.finishNode(G,"MetaProperty")}parseImportMetaProperty(G){const J=this.createIdentifier(this.startNodeAtNode(G),"import");if(this.next(),this.isContextual(101)){if(!this.inModule)this.raise(A.ImportMetaOutsideModule,J);this.sawUnambiguousESM=!0}else if(this.isContextual(105)||this.isContextual(97)){const X=this.isContextual(105);if(!X)this.unexpected();if(this.expectPlugin(X?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(A.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),G.phase=X?"source":"defer",this.parseImportCall(G)}return this.parseMetaProperty(G,J,"meta")}parseLiteralAtNode(G,J,X){return this.addExtra(X,"rawValue",G),this.addExtra(X,"raw",this.input.slice(X.start,this.state.end)),X.value=G,this.next(),this.finishNode(X,J)}parseLiteral(G,J){const X=this.startNode();return this.parseLiteralAtNode(G,J,X)}parseStringLiteral(G){return this.parseLiteral(G,"StringLiteral")}parseNumericLiteral(G){return this.parseLiteral(G,"NumericLiteral")}parseBigIntLiteral(G){return this.parseLiteral(G,"BigIntLiteral")}parseDecimalLiteral(G){return this.parseLiteral(G,"DecimalLiteral")}parseRegExpLiteral(G){const J=this.startNode();return this.addExtra(J,"raw",this.input.slice(J.start,this.state.end)),J.pattern=G.pattern,J.flags=G.flags,this.next(),this.finishNode(J,"RegExpLiteral")}parseBooleanLiteral(G){const J=this.startNode();return J.value=G,this.next(),this.finishNode(J,"BooleanLiteral")}parseNullLiteral(){const G=this.startNode();return this.next(),this.finishNode(G,"NullLiteral")}parseParenAndDistinguishExpression(G){const J=this.state.startLoc;let X;this.next(),this.expressionScope.enter(yz1());const H=this.state.maybeInArrowParameters,Z=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const V=this.state.startLoc,Q=[],Y=new g9;let W=!0,z,B;while(!this.match(11)){if(W)W=!1;else if(this.expect(12,Y.optionalParametersLoc===null?null:Y.optionalParametersLoc),this.match(11)){B=this.state.startLoc;break}if(this.match(21)){const j=this.state.startLoc;if(z=this.state.startLoc,Q.push(this.parseParenItem(this.parseRestBinding(),j)),!this.checkCommaAfterRest(41))break}else Q.push(this.parseMaybeAssignAllowIn(Y,this.parseParenItem))}const q=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=H,this.state.inFSharpPipelineDirectBody=Z;let F=this.startNodeAt(J);if(G&&this.shouldParseArrow(Q)&&(F=this.parseArrow(F)))return this.checkDestructuringPrivate(Y),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(F,Q,!1),F;if(this.expressionScope.exit(),!Q.length)this.unexpected(this.state.lastTokStartLoc);if(B)this.unexpected(B);if(z)this.unexpected(z);if(this.checkExpressionErrors(Y,!0),this.toReferencedListDeep(Q,!0),Q.length>1)X=this.startNodeAt(V),X.expressions=Q,this.finishNode(X,"SequenceExpression"),this.resetEndLocation(X,q);else X=Q[0];return this.wrapParenthesis(J,X)}wrapParenthesis(G,J){if(!this.options.createParenthesizedExpressions)return this.addExtra(J,"parenthesized",!0),this.addExtra(J,"parenStart",G.index),this.takeSurroundingComments(J,G.index,this.state.lastTokEndLoc.index),J;const X=this.startNodeAt(G);return X.expression=J,this.finishNode(X,"ParenthesizedExpression")}shouldParseArrow(G){return!this.canInsertSemicolon()}parseArrow(G){if(this.eat(19))return G}parseParenItem(G,J){return G}parseNewOrNewTarget(){const G=this.startNode();if(this.next(),this.match(16)){const J=this.createIdentifier(this.startNodeAtNode(G),"new");this.next();const X=this.parseMetaProperty(G,J,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction)this.raise(A.UnexpectedNewTarget,X);return X}return this.parseNew(G)}parseNew(G){if(this.parseNewCallee(G),this.eat(10)){const J=this.parseExprList(11);this.toReferencedList(J),G.arguments=J}else G.arguments=[];return this.finishNode(G,"NewExpression")}parseNewCallee(G){const J=this.match(83),X=this.parseNoCallExpr();if(G.callee=X,J&&(X.type==="Import"||X.type==="ImportExpression"))this.raise(A.ImportCallNotNewExpression,X)}parseTemplateElement(G){const{start:J,startLoc:X,end:H,value:Z}=this.state,V=J+1,Q=this.startNodeAt(K2(X,1));if(Z===null){if(!G)this.raise(A.InvalidEscapeSequenceTemplate,K2(this.state.firstInvalidTemplateEscapePos,1))}const Y=this.match(24),W=Y?-1:-2,z=H+W;Q.value={raw:this.input.slice(V,z).replace(/\r\n?/g,"\n"),cooked:Z===null?null:Z.slice(1,W)},Q.tail=Y,this.next();const B=this.finishNode(Q,"TemplateElement");return this.resetEndLocation(B,K2(this.state.lastTokEndLoc,W)),B}parseTemplate(G){const J=this.startNode();let X=this.parseTemplateElement(G);const H=[X],Z=[];while(!X.tail)Z.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),H.push(X=this.parseTemplateElement(G));return J.expressions=Z,J.quasis=H,this.finishNode(J,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(G,J,X,H){if(X)this.expectPlugin("recordAndTuple");const Z=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const V=Object.create(null);let Q=!0;const Y=this.startNode();Y.properties=[],this.next();while(!this.match(G)){if(Q)Q=!1;else if(this.expect(12),this.match(G)){this.addTrailingCommaExtraToNode(Y);break}let z;if(J)z=this.parseBindingProperty();else z=this.parsePropertyDefinition(H),this.checkProto(z,X,V,H);if(X&&!this.isObjectProperty(z)&&z.type!=="SpreadElement")this.raise(A.InvalidRecordProperty,z);if(z.shorthand)this.addExtra(z,"shorthand",!0);Y.properties.push(z)}this.next(),this.state.inFSharpPipelineDirectBody=Z;let W="ObjectExpression";if(J)W="ObjectPattern";else if(X)W="RecordExpression";return this.finishNode(Y,W)}addTrailingCommaExtraToNode(G){this.addExtra(G,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(G,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(G){return!G.computed&&G.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(G){let J=[];if(this.match(26)){if(this.hasPlugin("decorators"))this.raise(A.UnsupportedPropertyDecorator,this.state.startLoc);while(this.match(26))J.push(this.parseDecorator())}const X=this.startNode();let H=!1,Z=!1,V;if(this.match(21)){if(J.length)this.unexpected();return this.parseSpread()}if(J.length)X.decorators=J,J=[];if(X.method=!1,G)V=this.state.startLoc;let Q=this.eat(55);this.parsePropertyNamePrefixOperator(X);const Y=this.state.containsEsc;if(this.parsePropertyName(X,G),!Q&&!Y&&this.maybeAsyncOrAccessorProp(X)){const{key:W}=X,z=W.name;if(z==="async"&&!this.hasPrecedingLineBreak())H=!0,this.resetPreviousNodeTrailingComments(W),Q=this.eat(55),this.parsePropertyName(X);if(z==="get"||z==="set"){if(Z=!0,this.resetPreviousNodeTrailingComments(W),X.kind=z,this.match(55))Q=!0,this.raise(A.AccessorIsGenerator,this.state.curPosition(),{kind:z}),this.next();this.parsePropertyName(X)}}return this.parseObjPropValue(X,V,Q,H,!1,Z,G)}getGetterSetterExpectedParamCount(G){return G.kind==="get"?0:1}getObjectOrClassMethodParams(G){return G.params}checkGetterSetterParams(G){var J;const X=this.getGetterSetterExpectedParamCount(G),H=this.getObjectOrClassMethodParams(G);if(H.length!==X)this.raise(G.kind==="get"?A.BadGetterArity:A.BadSetterArity,G);if(G.kind==="set"&&((J=H[H.length-1])==null?void 0:J.type)==="RestElement")this.raise(A.BadSetterRestParameter,G)}parseObjectMethod(G,J,X,H,Z){if(Z){const V=this.parseMethod(G,J,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(V),V}if(X||J||this.match(10)){if(H)this.unexpected();return G.kind="method",G.method=!0,this.parseMethod(G,J,X,!1,!1,"ObjectMethod")}}parseObjectProperty(G,J,X,H){if(G.shorthand=!1,this.eat(14))return G.value=X?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(H),this.finishNode(G,"ObjectProperty");if(!G.computed&&G.key.type==="Identifier"){if(this.checkReservedWord(G.key.name,G.key.loc.start,!0,!1),X)G.value=this.parseMaybeDefault(J,q0(G.key));else if(this.match(29)){const Z=this.state.startLoc;if(H!=null){if(H.shorthandAssignLoc===null)H.shorthandAssignLoc=Z}else this.raise(A.InvalidCoverInitializedName,Z);G.value=this.parseMaybeDefault(J,q0(G.key))}else G.value=q0(G.key);return G.shorthand=!0,this.finishNode(G,"ObjectProperty")}}parseObjPropValue(G,J,X,H,Z,V,Q){const Y=this.parseObjectMethod(G,X,H,Z,V)||this.parseObjectProperty(G,J,Z,Q);if(!Y)this.unexpected();return Y}parsePropertyName(G,J){if(this.eat(0))G.computed=!0,G.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:X,value:H}=this.state;let Z;if(x2(X))Z=this.parseIdentifier(!0);else switch(X){case 134:Z=this.parseNumericLiteral(H);break;case 133:Z=this.parseStringLiteral(H);break;case 135:Z=this.parseBigIntLiteral(H);break;case 138:{const V=this.state.startLoc;if(J!=null){if(J.privateKeyLoc===null)J.privateKeyLoc=V}else this.raise(A.UnexpectedPrivateField,V);Z=this.parsePrivateName();break}default:if(X===136){Z=this.parseDecimalLiteral(H);break}this.unexpected()}if(G.key=Z,X!==138)G.computed=!1}}initFunction(G,J){G.id=null,G.generator=!1,G.async=J}parseMethod(G,J,X,H,Z,V,Q=!1){this.initFunction(G,X),G.generator=J,this.scope.enter(18|(Q?64:0)|(Z?32:0)),this.prodParam.enter(xG(X,G.generator)),this.parseFunctionParams(G,H);const Y=this.parseFunctionBodyAndFinish(G,V,!0);return this.prodParam.exit(),this.scope.exit(),Y}parseArrayLike(G,J,X,H){if(X)this.expectPlugin("recordAndTuple");const Z=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const V=this.startNode();return this.next(),V.elements=this.parseExprList(G,!X,H,V),this.state.inFSharpPipelineDirectBody=Z,this.finishNode(V,X?"TupleExpression":"ArrayExpression")}parseArrowExpression(G,J,X,H){this.scope.enter(6);let Z=xG(X,!1);if(!this.match(5)&&this.prodParam.hasIn)Z|=8;this.prodParam.enter(Z),this.initFunction(G,X);const V=this.state.maybeInArrowParameters;if(J)this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(G,J,H);return this.state.maybeInArrowParameters=!1,this.parseFunctionBody(G,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=V,this.finishNode(G,"ArrowFunctionExpression")}setArrowFunctionParameters(G,J,X){this.toAssignableList(J,X,!1),G.params=J}parseFunctionBodyAndFinish(G,J,X=!1){return this.parseFunctionBody(G,!1,X),this.finishNode(G,J)}parseFunctionBody(G,J,X=!1){const H=J&&!this.match(5);if(this.expressionScope.enter(jK()),H)G.body=this.parseMaybeAssign(),this.checkParams(G,!1,J,!1);else{const Z=this.state.strict,V=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),G.body=this.parseBlock(!0,!1,(Q)=>{const Y=!this.isSimpleParamList(G.params);if(Q&&Y)this.raise(A.IllegalLanguageModeDirective,(G.kind==="method"||G.kind==="constructor")&&!!G.key?G.key.loc.end:G);const W=!Z&&this.state.strict;if(this.checkParams(G,!this.state.strict&&!J&&!X&&!Y,J,W),this.state.strict&&G.id)this.checkIdentifier(G.id,65,W)}),this.prodParam.exit(),this.state.labels=V}this.expressionScope.exit()}isSimpleParameter(G){return G.type==="Identifier"}isSimpleParamList(G){for(let J=0,X=G.length;J<X;J++)if(!this.isSimpleParameter(G[J]))return!1;return!0}checkParams(G,J,X,H=!0){const Z=!J&&new Set,V={type:"FormalParameters"};for(let Q of G.params)this.checkLVal(Q,V,5,Z,H)}parseExprList(G,J,X,H){const Z=[];let V=!0;while(!this.eat(G)){if(V)V=!1;else if(this.expect(12),this.match(G)){if(H)this.addTrailingCommaExtraToNode(H);this.next();break}Z.push(this.parseExprListItem(J,X))}return Z}parseExprListItem(G,J,X){let H;if(this.match(12)){if(!G)this.raise(A.UnexpectedToken,this.state.curPosition(),{unexpected:","});H=null}else if(this.match(21)){const Z=this.state.startLoc;H=this.parseParenItem(this.parseSpread(J),Z)}else if(this.match(17)){if(this.expectPlugin("partialApplication"),!X)this.raise(A.UnexpectedArgumentPlaceholder,this.state.startLoc);const Z=this.startNode();this.next(),H=this.finishNode(Z,"ArgumentPlaceholder")}else H=this.parseMaybeAssignAllowIn(J,this.parseParenItem);return H}parseIdentifier(G){const J=this.startNode(),X=this.parseIdentifierName(G);return this.createIdentifier(J,X)}createIdentifier(G,J){return G.name=J,G.loc.identifierName=J,this.finishNode(G,"Identifier")}parseIdentifierName(G){let J;const{startLoc:X,type:H}=this.state;if(x2(H))J=this.state.value;else this.unexpected();const Z=Uz1(H);if(G){if(Z)this.replaceToken(132)}else this.checkReservedWord(J,X,Z,!1);return this.next(),J}checkReservedWord(G,J,X,H){if(G.length>10)return;if(!Nz1(G))return;if(X&&Lz1(G)){this.raise(A.UnexpectedKeyword,J,{keyword:G});return}if((!this.state.strict?HK:H?QK:ZK)(G,this.inModule)){this.raise(A.UnexpectedReservedWord,J,{reservedWord:G});return}else if(G==="yield"){if(this.prodParam.hasYield){this.raise(A.YieldBindingIdentifier,J);return}}else if(G==="await"){if(this.prodParam.hasAwait){this.raise(A.AwaitBindingIdentifier,J);return}if(this.scope.inStaticBlock){this.raise(A.AwaitBindingIdentifierInStaticBlock,J);return}this.expressionScope.recordAsyncArrowParametersError(J)}else if(G==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(A.ArgumentsInClass,J);return}}}recordAwaitIfAllowed(){const G=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;if(G&&!this.scope.inFunction)this.state.hasTopLevelAwait=!0;return G}parseAwait(G){const J=this.startNodeAt(G);if(this.expressionScope.recordParameterInitializerError(A.AwaitExpressionFormalParameter,J),this.eat(55))this.raise(A.ObsoleteAwaitStar,J);if(!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction)if(this.isAmbiguousAwait())this.ambiguousScriptDifferentAst=!0;else this.sawUnambiguousESM=!0;if(!this.state.soloAwait)J.argument=this.parseMaybeUnary(null,!0);return this.finishNode(J,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:G}=this.state;return G===53||G===10||G===0||lG(G)||G===102&&!this.state.containsEsc||G===137||G===56||this.hasPlugin("v8intrinsic")&&G===54}parseYield(){const G=this.startNode();this.expressionScope.recordParameterInitializerError(A.YieldInParameter,G),this.next();let J=!1,X=null;if(!this.hasPrecedingLineBreak())switch(J=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!J)break;default:X=this.parseMaybeAssign()}return G.delegate=J,G.argument=X,this.finishNode(G,"YieldExpression")}parseImportCall(G){if(this.next(),G.source=this.parseMaybeAssignAllowIn(),this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))G.options=null;if(this.eat(12)){if(!(this.hasPlugin("moduleAttributes")||this.hasPlugin("importAssertions")))this.expectPlugin("importAttributes");if(!this.match(11))G.options=this.parseMaybeAssignAllowIn(),this.eat(12)}return this.expect(11),this.finishNode(G,"ImportExpression")}checkPipelineAtInfixOperator(G,J){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(G.type==="SequenceExpression")this.raise(A.PipelineHeadSequenceExpression,J)}}parseSmartPipelineBodyInStyle(G,J){if(this.isSimpleReference(G)){const X=this.startNodeAt(J);return X.callee=G,this.finishNode(X,"PipelineBareFunction")}else{const X=this.startNodeAt(J);return this.checkSmartPipeTopicBodyEarlyErrors(J),X.expression=G,this.finishNode(X,"PipelineTopicExpression")}}isSimpleReference(G){switch(G.type){case"MemberExpression":return!G.computed&&this.isSimpleReference(G.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(G){if(this.match(19))throw this.raise(A.PipelineBodyNoArrow,this.state.startLoc);if(!this.topicReferenceWasUsedInCurrentContext())this.raise(A.PipelineTopicUnused,G)}withTopicBindingContext(G){const J=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return G()}finally{this.state.topicContext=J}}withSmartMixTopicForbiddingContext(G){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){const J=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return G()}finally{this.state.topicContext=J}}else return G()}withSoloAwaitPermittingContext(G){const J=this.state.soloAwait;this.state.soloAwait=!0;try{return G()}finally{this.state.soloAwait=J}}allowInAnd(G){const J=this.prodParam.currentFlags();if(8&~J){this.prodParam.enter(J|8);try{return G()}finally{this.prodParam.exit()}}return G()}disallowInAnd(G){const J=this.prodParam.currentFlags();if(8&J){this.prodParam.enter(J&-9);try{return G()}finally{this.prodParam.exit()}}return G()}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(G){const J=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const X=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const H=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),J,G);return this.state.inFSharpPipelineDirectBody=X,H}parseModuleExpression(){this.expectPlugin("moduleBlocks");const G=this.startNode();if(this.next(),!this.match(5))this.unexpected(null,5);const J=this.startNodeAt(this.state.endLoc);this.next();const X=this.initializeScopes(!0);this.enterInitialScopes();try{G.body=this.parseProgram(J,8,"module")}finally{X()}return this.finishNode(G,"ModuleExpression")}parsePropertyNamePrefixOperator(G){}}var O7={kind:1},WU1={kind:2},zU1=/[\uD800-\uDFFF]/u,v7=/in(?:stanceof)?/y;class kK extends NK{parseTopLevel(G,J){if(G.program=this.parseProgram(J),G.comments=this.comments,this.options.tokens)G.tokens=UU1(this.tokens,this.input);return this.finishNode(G,"File")}parseProgram(G,J=139,X=this.options.sourceType){if(G.sourceType=X,G.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(G,!0,!0,J),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[Z,V]of Array.from(this.scope.undefinedExports))this.raise(A.ModuleExportUndefined,V,{localName:Z});this.addExtra(G,"topLevelAwait",this.state.hasTopLevelAwait)}let H;if(J===139)H=this.finishNode(G,"Program");else H=this.finishNodeAt(G,"Program",K2(this.state.startLoc,-1));return H}stmtToDirective(G){const J=G;J.type="Directive",J.value=J.expression,delete J.expression;const X=J.value,H=X.value,Z=this.input.slice(X.start,X.end),V=X.value=Z.slice(1,-1);return this.addExtra(X,"raw",Z),this.addExtra(X,"rawValue",V),this.addExtra(X,"expressionValue",H),X.type="DirectiveLiteral",J}parseInterpreterDirective(){if(!this.match(28))return null;const G=this.startNode();return G.value=this.state.value,this.next(),this.finishNode(G,"InterpreterDirective")}isLet(){if(!this.isContextual(100))return!1;return this.hasFollowingBindingAtom()}chStartsBindingIdentifier(G,J){if($0(G)){if(v7.lastIndex=J,v7.test(this.input)){const X=this.codePointAtPos(v7.lastIndex);if(!b5(X)&&X!==92)return!1}return!0}else if(G===92)return!0;else return!1}chStartsBindingPattern(G){return G===91||G===123}hasFollowingBindingAtom(){const G=this.nextTokenStart(),J=this.codePointAtPos(G);return this.chStartsBindingPattern(J)||this.chStartsBindingIdentifier(J,G)}hasInLineFollowingBindingIdentifierOrBrace(){const G=this.nextTokenInLineStart(),J=this.codePointAtPos(G);return J===123||this.chStartsBindingIdentifier(J,G)}startsUsingForOf(){const{type:G,containsEsc:J}=this.lookahead();if(G===102&&!J)return!1;else if(N1(G)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let G=this.nextTokenInLineStart();if(this.isUnparsedContextual(G,"using")){G=this.nextTokenInLineStartSince(G+5);const J=this.codePointAtPos(G);if(this.chStartsBindingIdentifier(J,G))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(G=!1){let J=0;if(this.options.annexB&&!this.state.strict){if(J|=4,G)J|=8}return this.parseStatementLike(J)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(G){let J=null;if(this.match(26))J=this.parseDecorators(!0);return this.parseStatementContent(G,J)}parseStatementContent(G,J){const X=this.state.type,H=this.startNode(),Z=!!(G&2),V=!!(G&4),Q=G&1;switch(X){case 60:return this.parseBreakContinueStatement(H,!0);case 63:return this.parseBreakContinueStatement(H,!1);case 64:return this.parseDebuggerStatement(H);case 90:return this.parseDoWhileStatement(H);case 91:return this.parseForStatement(H);case 68:if(this.lookaheadCharCode()===46)break;if(!V)this.raise(this.state.strict?A.StrictFunction:this.options.annexB?A.SloppyFunctionAnnexB:A.SloppyFunction,this.state.startLoc);return this.parseFunctionStatement(H,!1,!Z&&V);case 80:if(!Z)this.unexpected();return this.parseClass(this.maybeTakeDecorators(J,H),!0);case 69:return this.parseIfStatement(H);case 70:return this.parseReturnStatement(H);case 71:return this.parseSwitchStatement(H);case 72:return this.parseThrowStatement(H);case 73:return this.parseTryStatement(H);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing()){if(!this.recordAwaitIfAllowed())this.raise(A.AwaitUsingNotInAsyncContext,H);else if(!Z)this.raise(A.UnexpectedLexicalDeclaration,H);return this.next(),this.parseVarStatement(H,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;if(this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel)this.raise(A.UnexpectedUsingDeclaration,this.state.startLoc);else if(!Z)this.raise(A.UnexpectedLexicalDeclaration,this.state.startLoc);return this.parseVarStatement(H,"using");case 100:{if(this.state.containsEsc)break;const z=this.nextTokenStart(),B=this.codePointAtPos(z);if(B!==91){if(!Z&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(B,z)&&B!==123)break}}case 75:if(!Z)this.raise(A.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const z=this.state.value;return this.parseVarStatement(H,z)}case 92:return this.parseWhileStatement(H);case 76:return this.parseWithStatement(H);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(H);case 83:{const z=this.lookaheadCharCode();if(z===40||z===46)break}case 82:{if(!this.options.allowImportExportEverywhere&&!Q)this.raise(A.UnexpectedImportExport,this.state.startLoc);this.next();let z;if(X===83){if(z=this.parseImport(H),z.type==="ImportDeclaration"&&(!z.importKind||z.importKind==="value"))this.sawUnambiguousESM=!0}else if(z=this.parseExport(H,J),z.type==="ExportNamedDeclaration"&&(!z.exportKind||z.exportKind==="value")||z.type==="ExportAllDeclaration"&&(!z.exportKind||z.exportKind==="value")||z.type==="ExportDefaultDeclaration")this.sawUnambiguousESM=!0;return this.assertModuleNodeAllowed(z),z}default:if(this.isAsyncFunction()){if(!Z)this.raise(A.AsyncFunctionInSingleStatementContext,this.state.startLoc);return this.next(),this.parseFunctionStatement(H,!0,!Z&&V)}}const Y=this.state.value,W=this.parseExpression();if(N1(X)&&W.type==="Identifier"&&this.eat(14))return this.parseLabeledStatement(H,Y,W,G);else return this.parseExpressionStatement(H,W,J)}assertModuleNodeAllowed(G){if(!this.options.allowImportExportEverywhere&&!this.inModule)this.raise(A.ImportOutsideModule,G)}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return!0;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(G,J,X){if(G){if(J.decorators&&J.decorators.length>0){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean")this.raise(A.DecoratorsBeforeAfterExport,J.decorators[0]);J.decorators.unshift(...G)}else J.decorators=G;if(this.resetStartLocationFromNode(J,G[0]),X)this.resetStartLocationFromNode(X,J)}return J}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(G){const J=[];do J.push(this.parseDecorator());while(this.match(26));if(this.match(82)){if(!G)this.unexpected();if(!this.decoratorsEnabledBeforeExport())this.raise(A.DecoratorExportClass,this.state.startLoc)}else if(!this.canHaveLeadingDecorator())throw this.raise(A.UnexpectedLeadingDecorator,this.state.startLoc);return J}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const G=this.startNode();if(this.next(),this.hasPlugin("decorators")){const J=this.state.startLoc;let X;if(this.match(10)){const H=this.state.startLoc;this.next(),X=this.parseExpression(),this.expect(11),X=this.wrapParenthesis(H,X);const Z=this.state.startLoc;if(G.expression=this.parseMaybeDecoratorArguments(X),this.getPluginOption("decorators","allowCallParenthesized")===!1&&G.expression!==X)this.raise(A.DecoratorArgumentsOutsideParentheses,Z)}else{X=this.parseIdentifier(!1);while(this.eat(16)){const H=this.startNodeAt(J);if(H.object=X,this.match(138))this.classScope.usePrivateName(this.state.value,this.state.startLoc),H.property=this.parsePrivateName();else H.property=this.parseIdentifier(!0);H.computed=!1,X=this.finishNode(H,"MemberExpression")}G.expression=this.parseMaybeDecoratorArguments(X)}}else G.expression=this.parseExprSubscripts();return this.finishNode(G,"Decorator")}parseMaybeDecoratorArguments(G){if(this.eat(10)){const J=this.startNodeAtNode(G);return J.callee=G,J.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(J.arguments),this.finishNode(J,"CallExpression")}return G}parseBreakContinueStatement(G,J){if(this.next(),this.isLineTerminator())G.label=null;else G.label=this.parseIdentifier(),this.semicolon();return this.verifyBreakContinue(G,J),this.finishNode(G,J?"BreakStatement":"ContinueStatement")}verifyBreakContinue(G,J){let X;for(X=0;X<this.state.labels.length;++X){const H=this.state.labels[X];if(G.label==null||H.name===G.label.name){if(H.kind!=null&&(J||H.kind===1))break;if(G.label&&J)break}}if(X===this.state.labels.length){const H=J?"BreakStatement":"ContinueStatement";this.raise(A.IllegalBreakContinue,G,{type:H})}}parseDebuggerStatement(G){return this.next(),this.semicolon(),this.finishNode(G,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const G=this.parseExpression();return this.expect(11),G}parseDoWhileStatement(G){return this.next(),this.state.labels.push(O7),G.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),G.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(G,"DoWhileStatement")}parseForStatement(G){this.next(),this.state.labels.push(O7);let J=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed())J=this.state.startLoc,this.next();if(this.scope.enter(0),this.expect(10),this.match(13)){if(J!==null)this.unexpected(J);return this.parseFor(G,null)}const X=this.isContextual(100);{const Y=this.isContextual(96)&&this.startsAwaitUsing(),W=Y||this.isContextual(107)&&this.startsUsingForOf(),z=X&&this.hasFollowingBindingAtom()||W;if(this.match(74)||this.match(75)||z){const B=this.startNode();let q;if(Y){if(q="await using",!this.recordAwaitIfAllowed())this.raise(A.AwaitUsingNotInAsyncContext,this.state.startLoc);this.next()}else q=this.state.value;this.next(),this.parseVar(B,!0,q);const F=this.finishNode(B,"VariableDeclaration"),j=this.match(58);if(j&&W)this.raise(A.ForInUsing,F);if((j||this.isContextual(102))&&F.declarations.length===1)return this.parseForIn(G,F,J);if(J!==null)this.unexpected(J);return this.parseFor(G,F)}}const H=this.isContextual(95),Z=new g9,V=this.parseExpression(!0,Z),Q=this.isContextual(102);if(Q){if(X)this.raise(A.ForOfLet,V);if(J===null&&H&&V.type==="Identifier")this.raise(A.ForOfAsync,V)}if(Q||this.match(58)){this.checkDestructuringPrivate(Z),this.toAssignable(V,!0);const Y=Q?"ForOfStatement":"ForInStatement";return this.checkLVal(V,{type:Y}),this.parseForIn(G,V,J)}else this.checkExpressionErrors(Z,!0);if(J!==null)this.unexpected(J);return this.parseFor(G,V)}parseFunctionStatement(G,J,X){return this.next(),this.parseFunction(G,1|(X?2:0)|(J?8:0))}parseIfStatement(G){return this.next(),G.test=this.parseHeaderExpression(),G.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),G.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(G,"IfStatement")}parseReturnStatement(G){if(!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction)this.raise(A.IllegalReturn,this.state.startLoc);if(this.next(),this.isLineTerminator())G.argument=null;else G.argument=this.parseExpression(),this.semicolon();return this.finishNode(G,"ReturnStatement")}parseSwitchStatement(G){this.next(),G.discriminant=this.parseHeaderExpression();const J=G.cases=[];this.expect(5),this.state.labels.push(WU1),this.scope.enter(0);let X;for(let H;!this.match(8);)if(this.match(61)||this.match(65)){const Z=this.match(61);if(X)this.finishNode(X,"SwitchCase");if(J.push(X=this.startNode()),X.consequent=[],this.next(),Z)X.test=this.parseExpression();else{if(H)this.raise(A.MultipleDefaultsInSwitch,this.state.lastTokStartLoc);H=!0,X.test=null}this.expect(14)}else if(X)X.consequent.push(this.parseStatementListItem());else this.unexpected();if(this.scope.exit(),X)this.finishNode(X,"SwitchCase");return this.next(),this.state.labels.pop(),this.finishNode(G,"SwitchStatement")}parseThrowStatement(G){if(this.next(),this.hasPrecedingLineBreak())this.raise(A.NewlineAfterThrow,this.state.lastTokEndLoc);return G.argument=this.parseExpression(),this.semicolon(),this.finishNode(G,"ThrowStatement")}parseCatchClauseParam(){const G=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&G.type==="Identifier"?8:0),this.checkLVal(G,{type:"CatchClause"},9),G}parseTryStatement(G){if(this.next(),G.block=this.parseBlock(),G.handler=null,this.match(62)){const J=this.startNode();if(this.next(),this.match(10))this.expect(10),J.param=this.parseCatchClauseParam(),this.expect(11);else J.param=null,this.scope.enter(0);J.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),G.handler=this.finishNode(J,"CatchClause")}if(G.finalizer=this.eat(67)?this.parseBlock():null,!G.handler&&!G.finalizer)this.raise(A.NoCatchOrFinally,G);return this.finishNode(G,"TryStatement")}parseVarStatement(G,J,X=!1){return this.next(),this.parseVar(G,!1,J,X),this.semicolon(),this.finishNode(G,"VariableDeclaration")}parseWhileStatement(G){return this.next(),G.test=this.parseHeaderExpression(),this.state.labels.push(O7),G.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(G,"WhileStatement")}parseWithStatement(G){if(this.state.strict)this.raise(A.StrictWith,this.state.startLoc);return this.next(),G.object=this.parseHeaderExpression(),G.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(G,"WithStatement")}parseEmptyStatement(G){return this.next(),this.finishNode(G,"EmptyStatement")}parseLabeledStatement(G,J,X,H){for(let V of this.state.labels)if(V.name===J)this.raise(A.LabelRedeclaration,X,{labelName:J});const Z=$z1(this.state.type)?1:this.match(71)?2:null;for(let V=this.state.labels.length-1;V>=0;V--){const Q=this.state.labels[V];if(Q.statementStart===G.start)Q.statementStart=this.state.start,Q.kind=Z;else break}return this.state.labels.push({name:J,kind:Z,statementStart:this.state.start}),G.body=H&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),G.label=X,this.finishNode(G,"LabeledStatement")}parseExpressionStatement(G,J,X){return G.expression=J,this.semicolon(),this.finishNode(G,"ExpressionStatement")}parseBlock(G=!1,J=!0,X){const H=this.startNode();if(G)this.state.strictErrors.clear();if(this.expect(5),J)this.scope.enter(0);if(this.parseBlockBody(H,G,!1,8,X),J)this.scope.exit();return this.finishNode(H,"BlockStatement")}isValidDirective(G){return G.type==="ExpressionStatement"&&G.expression.type==="StringLiteral"&&!G.expression.extra.parenthesized}parseBlockBody(G,J,X,H,Z){const V=G.body=[],Q=G.directives=[];this.parseBlockOrModuleBlockBody(V,J?Q:void 0,X,H,Z)}parseBlockOrModuleBlockBody(G,J,X,H,Z){const V=this.state.strict;let Q=!1,Y=!1;while(!this.match(H)){const W=X?this.parseModuleItem():this.parseStatementListItem();if(J&&!Y){if(this.isValidDirective(W)){const z=this.stmtToDirective(W);if(J.push(z),!Q&&z.value.value==="use strict")Q=!0,this.setStrict(!0);continue}Y=!0,this.state.strictErrors.clear()}G.push(W)}if(Z==null||Z.call(this,Q),!V)this.setStrict(!1);this.next()}parseFor(G,J){return G.init=J,this.semicolon(!1),G.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),G.update=this.match(11)?null:this.parseExpression(),this.expect(11),G.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(G,"ForStatement")}parseForIn(G,J,X){const H=this.match(58);if(this.next(),H){if(X!==null)this.unexpected(X)}else G.await=X!==null;if(J.type==="VariableDeclaration"&&J.declarations[0].init!=null&&(!H||!this.options.annexB||this.state.strict||J.kind!=="var"||J.declarations[0].id.type!=="Identifier"))this.raise(A.ForInOfLoopInitializer,J,{type:H?"ForInStatement":"ForOfStatement"});if(J.type==="AssignmentPattern")this.raise(A.InvalidLhs,J,{ancestor:{type:"ForStatement"}});return G.left=J,G.right=H?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),G.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(G,H?"ForInStatement":"ForOfStatement")}parseVar(G,J,X,H=!1){const Z=G.declarations=[];G.kind=X;for(;;){const V=this.startNode();if(this.parseVarId(V,X),V.init=!this.eat(29)?null:J?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn(),V.init===null&&!H){if(V.id.type!=="Identifier"&&!(J&&(this.match(58)||this.isContextual(102))))this.raise(A.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"});else if((X==="const"||X==="using"||X==="await using")&&!(this.match(58)||this.isContextual(102)))this.raise(A.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:X})}if(Z.push(this.finishNode(V,"VariableDeclarator")),!this.eat(12))break}return G}parseVarId(G,J){const X=this.parseBindingAtom();if(J==="using"||J==="await using"){if(X.type==="ArrayPattern"||X.type==="ObjectPattern")this.raise(A.UsingDeclarationHasBindingPattern,X.loc.start)}this.checkLVal(X,{type:"VariableDeclarator"},J==="var"?5:8201),G.id=X}parseAsyncFunctionExpression(G){return this.parseFunction(G,8)}parseFunction(G,J=0){const X=J&2,H=!!(J&1),Z=H&&!(J&4),V=!!(J&8);if(this.initFunction(G,V),this.match(55)){if(X)this.raise(A.GeneratorInSingleStatementContext,this.state.startLoc);this.next(),G.generator=!0}if(H)G.id=this.parseFunctionId(Z);const Q=this.state.maybeInArrowParameters;if(this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(xG(V,G.generator)),!H)G.id=this.parseFunctionId();if(this.parseFunctionParams(G,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(G,H?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),H&&!X)this.registerFunctionStatementId(G);return this.state.maybeInArrowParameters=Q,G}parseFunctionId(G){return G||N1(this.state.type)?this.parseIdentifier():null}parseFunctionParams(G,J){this.expect(10),this.expressionScope.enter(hz1()),G.params=this.parseBindingList(11,41,2|(J?4:0)),this.expressionScope.exit()}registerFunctionStatementId(G){if(!G.id)return;this.scope.declareName(G.id.name,!this.options.annexB||this.state.strict||G.generator||G.async?this.scope.treatFunctionsAsVar?5:8201:17,G.id.loc.start)}parseClass(G,J,X){this.next();const H=this.state.strict;return this.state.strict=!0,this.parseClassId(G,J,X),this.parseClassSuper(G),G.body=this.parseClassBody(!!G.superClass,H),this.finishNode(G,J?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(G){return G.type==="Identifier"&&G.name==="constructor"||G.type==="StringLiteral"&&G.value==="constructor"}isNonstaticConstructor(G){return!G.computed&&!G.static&&this.nameIsConstructor(G.key)}parseClassBody(G,J){this.classScope.enter();const X={hadConstructor:!1,hadSuperClass:G};let H=[];const Z=this.startNode();if(Z.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(8)){if(this.eat(13)){if(H.length>0)throw this.raise(A.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){H.push(this.parseDecorator());continue}const V=this.startNode();if(H.length)V.decorators=H,this.resetStartLocationFromNode(V,H[0]),H=[];if(this.parseClassMember(Z,V,X),V.kind==="constructor"&&V.decorators&&V.decorators.length>0)this.raise(A.DecoratorConstructor,V)}}),this.state.strict=J,this.next(),H.length)throw this.raise(A.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(Z,"ClassBody")}parseClassMemberFromModifier(G,J){const X=this.parseIdentifier(!0);if(this.isClassMethod()){const H=J;return H.kind="method",H.computed=!1,H.key=X,H.static=!1,this.pushClassMethod(G,H,!1,!1,!1,!1),!0}else if(this.isClassProperty()){const H=J;return H.computed=!1,H.key=X,H.static=!1,G.body.push(this.parseClassProperty(H)),!0}return this.resetPreviousNodeTrailingComments(X),!1}parseClassMember(G,J,X){const H=this.isContextual(106);if(H){if(this.parseClassMemberFromModifier(G,J))return;if(this.eat(5)){this.parseClassStaticBlock(G,J);return}}this.parseClassMemberWithIsStatic(G,J,X,H)}parseClassMemberWithIsStatic(G,J,X,H){const Z=J,V=J,Q=J,Y=J,W=J,z=Z,B=Z;if(J.static=H,this.parsePropertyNamePrefixOperator(J),this.eat(55)){z.kind="method";const w=this.match(138);if(this.parseClassElementName(z),w){this.pushClassPrivateMethod(G,V,!0,!1);return}if(this.isNonstaticConstructor(Z))this.raise(A.ConstructorIsGenerator,Z.key);this.pushClassMethod(G,Z,!0,!1,!1,!1);return}const q=!this.state.containsEsc&&N1(this.state.type),F=this.parseClassElementName(J),j=q?F.name:null,f=this.isPrivateName(F),y=this.state.startLoc;if(this.parsePostMemberNameModifiers(B),this.isClassMethod()){if(z.kind="method",f){this.pushClassPrivateMethod(G,V,!1,!1);return}const w=this.isNonstaticConstructor(Z);let v=!1;if(w){if(Z.kind="constructor",X.hadConstructor&&!this.hasPlugin("typescript"))this.raise(A.DuplicateConstructor,F);if(w&&this.hasPlugin("typescript")&&J.override)this.raise(A.OverrideOnConstructor,F);X.hadConstructor=!0,v=X.hadSuperClass}this.pushClassMethod(G,Z,!1,!1,w,v)}else if(this.isClassProperty())if(f)this.pushClassPrivateProperty(G,Y);else this.pushClassProperty(G,Q);else if(j==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(F);const w=this.eat(55);if(B.optional)this.unexpected(y);z.kind="method";const v=this.match(138);if(this.parseClassElementName(z),this.parsePostMemberNameModifiers(B),v)this.pushClassPrivateMethod(G,V,w,!0);else{if(this.isNonstaticConstructor(Z))this.raise(A.ConstructorIsAsync,Z.key);this.pushClassMethod(G,Z,w,!0,!1,!1)}}else if((j==="get"||j==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(F),z.kind=j;const w=this.match(138);if(this.parseClassElementName(Z),w)this.pushClassPrivateMethod(G,V,!1,!1);else{if(this.isNonstaticConstructor(Z))this.raise(A.ConstructorIsAccessor,Z.key);this.pushClassMethod(G,Z,!1,!1,!1,!1)}this.checkGetterSetterParams(Z)}else if(j==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(F);const w=this.match(138);this.parseClassElementName(Q),this.pushClassAccessorProperty(G,W,w)}else if(this.isLineTerminator())if(f)this.pushClassPrivateProperty(G,Y);else this.pushClassProperty(G,Q);else this.unexpected()}parseClassElementName(G){const{type:J,value:X}=this.state;if((J===132||J===133)&&G.static&&X==="prototype")this.raise(A.StaticPrototype,this.state.startLoc);if(J===138){if(X==="constructor")this.raise(A.ConstructorClassPrivateField,this.state.startLoc);const H=this.parsePrivateName();return G.key=H,H}return this.parsePropertyName(G),G.key}parseClassStaticBlock(G,J){var X;this.scope.enter(208);const H=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const Z=J.body=[];if(this.parseBlockOrModuleBlockBody(Z,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=H,G.body.push(this.finishNode(J,"StaticBlock")),(X=J.decorators)!=null&&X.length)this.raise(A.DecoratorStaticBlock,J)}pushClassProperty(G,J){if(!J.computed&&this.nameIsConstructor(J.key))this.raise(A.ConstructorClassField,J.key);G.body.push(this.parseClassProperty(J))}pushClassPrivateProperty(G,J){const X=this.parseClassPrivateProperty(J);G.body.push(X),this.classScope.declarePrivateName(this.getPrivateNameSV(X.key),0,X.key.loc.start)}pushClassAccessorProperty(G,J,X){if(!X&&!J.computed&&this.nameIsConstructor(J.key))this.raise(A.ConstructorClassField,J.key);const H=this.parseClassAccessorProperty(J);if(G.body.push(H),X)this.classScope.declarePrivateName(this.getPrivateNameSV(H.key),0,H.key.loc.start)}pushClassMethod(G,J,X,H,Z,V){G.body.push(this.parseMethod(J,X,H,Z,V,"ClassMethod",!0))}pushClassPrivateMethod(G,J,X,H){const Z=this.parseMethod(J,X,H,!1,!1,"ClassPrivateMethod",!0);G.body.push(Z);const V=Z.kind==="get"?Z.static?6:2:Z.kind==="set"?Z.static?5:1:0;this.declareClassPrivateMethodInScope(Z,V)}declareClassPrivateMethodInScope(G,J){this.classScope.declarePrivateName(this.getPrivateNameSV(G.key),J,G.key.loc.start)}parsePostMemberNameModifiers(G){}parseClassPrivateProperty(G){return this.parseInitializer(G),this.semicolon(),this.finishNode(G,"ClassPrivateProperty")}parseClassProperty(G){return this.parseInitializer(G),this.semicolon(),this.finishNode(G,"ClassProperty")}parseClassAccessorProperty(G){return this.parseInitializer(G),this.semicolon(),this.finishNode(G,"ClassAccessorProperty")}parseInitializer(G){this.scope.enter(80),this.expressionScope.enter(jK()),this.prodParam.enter(0),G.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(G,J,X,H=8331){if(N1(this.state.type)){if(G.id=this.parseIdentifier(),J)this.declareNameFromIdentifier(G.id,H)}else if(X||!J)G.id=null;else throw this.raise(A.MissingClassName,this.state.startLoc)}parseClassSuper(G){G.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(G,J){const X=this.parseMaybeImportPhase(G,!0),H=this.maybeParseExportDefaultSpecifier(G,X),Z=!H||this.eat(12),V=Z&&this.eatExportStar(G),Q=V&&this.maybeParseExportNamespaceSpecifier(G),Y=Z&&(!Q||this.eat(12)),W=H||V;if(V&&!Q){if(H)this.unexpected();if(J)throw this.raise(A.UnsupportedDecoratorExport,G);return this.parseExportFrom(G,!0),this.finishNode(G,"ExportAllDeclaration")}const z=this.maybeParseExportNamedSpecifiers(G);if(H&&Z&&!V&&!z)this.unexpected(null,5);if(Q&&Y)this.unexpected(null,98);let B;if(W||z){if(B=!1,J)throw this.raise(A.UnsupportedDecoratorExport,G);this.parseExportFrom(G,W)}else B=this.maybeParseExportDeclaration(G);if(W||z||B){var q;const F=G;if(this.checkExport(F,!0,!1,!!F.source),((q=F.declaration)==null?void 0:q.type)==="ClassDeclaration")this.maybeTakeDecorators(J,F.declaration,F);else if(J)throw this.raise(A.UnsupportedDecoratorExport,G);return this.finishNode(F,"ExportNamedDeclaration")}if(this.eat(65)){const F=G,j=this.parseExportDefaultExpression();if(F.declaration=j,j.type==="ClassDeclaration")this.maybeTakeDecorators(J,j,F);else if(J)throw this.raise(A.UnsupportedDecoratorExport,G);return this.checkExport(F,!0,!0),this.finishNode(F,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(G){return this.eat(55)}maybeParseExportDefaultSpecifier(G,J){if(J||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",J==null?void 0:J.loc.start);const X=J||this.parseIdentifier(!0),H=this.startNodeAtNode(X);return H.exported=X,G.specifiers=[this.finishNode(H,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(G){if(this.isContextual(93)){var J,X;(X=(J=G).specifiers)!=null||(J.specifiers=[]);const H=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),H.exported=this.parseModuleExportName(),G.specifiers.push(this.finishNode(H,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(G){if(this.match(5)){const J=G;if(!J.specifiers)J.specifiers=[];const X=J.exportKind==="type";if(J.specifiers.push(...this.parseExportSpecifiers(X)),J.source=null,J.declaration=null,this.hasPlugin("importAssertions"))J.assertions=[];return!0}return!1}maybeParseExportDeclaration(G){if(this.shouldParseExportDeclaration()){if(G.specifiers=[],G.source=null,this.hasPlugin("importAssertions"))G.assertions=[];return G.declaration=this.parseExportDeclaration(G),!0}return!1}isAsyncFunction(){if(!this.isContextual(95))return!1;const G=this.nextTokenInLineStart();return this.isUnparsedContextual(G,"function")}parseExportDefaultExpression(){const G=this.startNode();if(this.match(68))return this.next(),this.parseFunction(G,5);else if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(G,13);if(this.match(80))return this.parseClass(G,!0,!0);if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(A.DecoratorBeforeExport,this.state.startLoc);return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0)}if(this.match(75)||this.match(74)||this.isLet())throw this.raise(A.UnsupportedDefaultExport,this.state.startLoc);const J=this.parseMaybeAssignAllowIn();return this.semicolon(),J}parseExportDeclaration(G){if(this.match(80))return this.parseClass(this.startNode(),!0,!1);return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:G}=this.state;if(N1(G)){if(G===95&&!this.state.containsEsc||G===100)return!1;if((G===130||G===129)&&!this.state.containsEsc){const{type:H}=this.lookahead();if(N1(H)&&H!==98||H===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const J=this.nextTokenStart(),X=this.isUnparsedContextual(J,"from");if(this.input.charCodeAt(J)===44||N1(this.state.type)&&X)return!0;if(this.match(65)&&X){const H=this.input.charCodeAt(this.nextTokenStartSince(J+4));return H===34||H===39}return!1}parseExportFrom(G,J){if(this.eatContextual(98))G.source=this.parseImportSource(),this.checkExport(G),this.maybeParseImportAttributes(G),this.checkJSONModuleImport(G);else if(J)this.unexpected();this.semicolon()}shouldParseExportDeclaration(){const{type:G}=this.state;if(G===26){if(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(A.DecoratorBeforeExport,this.state.startLoc);return!0}}if(this.isContextual(107))return this.raise(A.UsingDeclarationExport,this.state.startLoc),!0;if(this.isContextual(96)&&this.startsAwaitUsing())return this.raise(A.UsingDeclarationExport,this.state.startLoc),!0;return G===74||G===75||G===68||G===80||this.isLet()||this.isAsyncFunction()}checkExport(G,J,X,H){if(J){var Z;if(X){if(this.checkDuplicateExports(G,"default"),this.hasPlugin("exportDefaultFrom")){var V;const Q=G.declaration;if(Q.type==="Identifier"&&Q.name==="from"&&Q.end-Q.start===4&&!((V=Q.extra)!=null&&V.parenthesized))this.raise(A.ExportDefaultFromAsIdentifier,Q)}}else if((Z=G.specifiers)!=null&&Z.length)for(let Q of G.specifiers){const{exported:Y}=Q,W=Y.type==="Identifier"?Y.name:Y.value;if(this.checkDuplicateExports(Q,W),!H&&Q.local){const{local:z}=Q;if(z.type!=="Identifier")this.raise(A.ExportBindingIsString,Q,{localName:z.value,exportName:W});else this.checkReservedWord(z.name,z.loc.start,!0,!1),this.scope.checkLocalExport(z)}}else if(G.declaration){const Q=G.declaration;if(Q.type==="FunctionDeclaration"||Q.type==="ClassDeclaration"){const{id:Y}=Q;if(!Y)throw new Error("Assertion failure");this.checkDuplicateExports(G,Y.name)}else if(Q.type==="VariableDeclaration")for(let Y of Q.declarations)this.checkDeclaration(Y.id)}}}checkDeclaration(G){if(G.type==="Identifier")this.checkDuplicateExports(G,G.name);else if(G.type==="ObjectPattern")for(let J of G.properties)this.checkDeclaration(J);else if(G.type==="ArrayPattern"){for(let J of G.elements)if(J)this.checkDeclaration(J)}else if(G.type==="ObjectProperty")this.checkDeclaration(G.value);else if(G.type==="RestElement")this.checkDeclaration(G.argument);else if(G.type==="AssignmentPattern")this.checkDeclaration(G.left)}checkDuplicateExports(G,J){if(this.exportedIdentifiers.has(J))if(J==="default")this.raise(A.DuplicateDefaultExport,G);else this.raise(A.DuplicateExport,G,{exportName:J});this.exportedIdentifiers.add(J)}parseExportSpecifiers(G){const J=[];let X=!0;this.expect(5);while(!this.eat(8)){if(X)X=!1;else if(this.expect(12),this.eat(8))break;const H=this.isContextual(130),Z=this.match(133),V=this.startNode();V.local=this.parseModuleExportName(),J.push(this.parseExportSpecifier(V,Z,G,H))}return J}parseExportSpecifier(G,J,X,H){if(this.eatContextual(93))G.exported=this.parseModuleExportName();else if(J)G.exported=lz1(G.local);else if(!G.exported)G.exported=q0(G.local);return this.finishNode(G,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const G=this.parseStringLiteral(this.state.value),J=zU1.exec(G.value);if(J)this.raise(A.ModuleExportNameHasLoneSurrogate,G,{surrogateCharCode:J[0].charCodeAt(0)});return G}return this.parseIdentifier(!0)}isJSONModuleImport(G){if(G.assertions!=null)return G.assertions.some(({key:J,value:X})=>{return X.value==="json"&&(J.type==="Identifier"?J.name==="type":J.value==="type")});return!1}checkImportReflection(G){const{specifiers:J}=G,X=J.length===1?J[0].type:null;if(G.phase==="source"){if(X!=="ImportDefaultSpecifier")this.raise(A.SourcePhaseImportRequiresDefault,J[0].loc.start)}else if(G.phase==="defer"){if(X!=="ImportNamespaceSpecifier")this.raise(A.DeferImportRequiresNamespace,J[0].loc.start)}else if(G.module){var H;if(X!=="ImportDefaultSpecifier")this.raise(A.ImportReflectionNotBinding,J[0].loc.start);if(((H=G.assertions)==null?void 0:H.length)>0)this.raise(A.ImportReflectionHasAssertion,J[0].loc.start)}}checkJSONModuleImport(G){if(this.isJSONModuleImport(G)&&G.type!=="ExportAllDeclaration"){const{specifiers:J}=G;if(J!=null){const X=J.find((H)=>{let Z;if(H.type==="ExportSpecifier")Z=H.local;else if(H.type==="ImportSpecifier")Z=H.imported;if(Z!==void 0)return Z.type==="Identifier"?Z.name!=="default":Z.value!=="default"});if(X!==void 0)this.raise(A.ImportJSONBindingNotDefault,X.loc.start)}}}isPotentialImportPhase(G){if(G)return!1;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(G,J,X,H){if(J)return;if(X==="module")this.expectPlugin("importReflection",H),G.module=!0;else if(this.hasPlugin("importReflection"))G.module=!1;if(X==="source")this.expectPlugin("sourcePhaseImports",H),G.phase="source";else if(X==="defer")this.expectPlugin("deferredImportEvaluation",H),G.phase="defer";else if(this.hasPlugin("sourcePhaseImports"))G.phase=null}parseMaybeImportPhase(G,J){if(!this.isPotentialImportPhase(J))return this.applyImportPhase(G,J,null),null;const X=this.parseIdentifier(!0),{type:H}=this.state;if(x2(H)?H!==98||this.lookaheadCharCode()===102:H!==12)return this.resetPreviousIdentifierLeadingComments(X),this.applyImportPhase(G,J,X.name,X.loc.start),null;else return this.applyImportPhase(G,J,null),X}isPrecedingIdImportPhase(G){const{type:J}=this.state;return N1(J)?J!==98||this.lookaheadCharCode()===102:J!==12}parseImport(G){if(this.match(133))return this.parseImportSourceAndAttributes(G);return this.parseImportSpecifiersAndAfter(G,this.parseMaybeImportPhase(G,!1))}parseImportSpecifiersAndAfter(G,J){G.specifiers=[];const H=!this.maybeParseDefaultImportSpecifier(G,J)||this.eat(12),Z=H&&this.maybeParseStarImportSpecifier(G);if(H&&!Z)this.parseNamedImportSpecifiers(G);return this.expectContextual(98),this.parseImportSourceAndAttributes(G)}parseImportSourceAndAttributes(G){var J;return(J=G.specifiers)!=null||(G.specifiers=[]),G.source=this.parseImportSource(),this.maybeParseImportAttributes(G),this.checkImportReflection(G),this.checkJSONModuleImport(G),this.semicolon(),this.finishNode(G,"ImportDeclaration")}parseImportSource(){if(!this.match(133))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(G,J,X){J.local=this.parseIdentifier(),G.specifiers.push(this.finishImportSpecifier(J,X))}finishImportSpecifier(G,J,X=8201){return this.checkLVal(G.local,{type:J},X),this.finishNode(G,J)}parseImportAttributes(){this.expect(5);const G=[],J=new Set;do{if(this.match(8))break;const X=this.startNode(),H=this.state.value;if(J.has(H))this.raise(A.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:H});if(J.add(H),this.match(133))X.key=this.parseStringLiteral(H);else X.key=this.parseIdentifier(!0);if(this.expect(14),!this.match(133))throw this.raise(A.ModuleAttributeInvalidValue,this.state.startLoc);X.value=this.parseStringLiteral(this.state.value),G.push(this.finishNode(X,"ImportAttribute"))}while(this.eat(12));return this.expect(8),G}parseModuleAttributes(){const G=[],J=new Set;do{const X=this.startNode();if(X.key=this.parseIdentifier(!0),X.key.name!=="type")this.raise(A.ModuleAttributeDifferentFromType,X.key);if(J.has(X.key.name))this.raise(A.ModuleAttributesWithDuplicateKeys,X.key,{key:X.key.name});if(J.add(X.key.name),this.expect(14),!this.match(133))throw this.raise(A.ModuleAttributeInvalidValue,this.state.startLoc);X.value=this.parseStringLiteral(this.state.value),G.push(this.finishNode(X,"ImportAttribute"))}while(this.eat(12));return G}maybeParseImportAttributes(G){let J;var X=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;if(this.next(),this.hasPlugin("moduleAttributes"))J=this.parseModuleAttributes();else{if(!this.hasPlugin("importAssertions"))this.expectPlugin("importAttributes");J=this.parseImportAttributes()}X=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(this.hasPlugin("importAttributes")){if(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0)this.raise(A.ImportAttributesUseAssert,this.state.startLoc);this.addExtra(G,"deprecatedAssertSyntax",!0)}else this.expectOnePlugin(["importAttributes","importAssertions"]);this.next(),J=this.parseImportAttributes()}else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))J=[];else if(this.hasPlugin("moduleAttributes"))J=[];else return;if(!X&&this.hasPlugin("importAssertions"))G.assertions=J;else G.attributes=J}maybeParseDefaultImportSpecifier(G,J){if(J){const X=this.startNodeAtNode(J);return X.local=J,G.specifiers.push(this.finishImportSpecifier(X,"ImportDefaultSpecifier")),!0}else if(x2(this.state.type))return this.parseImportSpecifierLocal(G,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(G){if(this.match(55)){const J=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(G,J,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(G){let J=!0;this.expect(5);while(!this.eat(8)){if(J)J=!1;else{if(this.eat(14))throw this.raise(A.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const X=this.startNode(),H=this.match(133),Z=this.isContextual(130);X.imported=this.parseModuleExportName();const V=this.parseImportSpecifier(X,H,G.importKind==="type"||G.importKind==="typeof",Z,void 0);G.specifiers.push(V)}}parseImportSpecifier(G,J,X,H,Z){if(this.eatContextual(93))G.local=this.parseIdentifier();else{const{imported:V}=G;if(J)throw this.raise(A.ImportBindingIsString,G,{importName:V.value});if(this.checkReservedWord(V.name,G.loc.start,!0,!0),!G.local)G.local=q0(V)}return this.finishImportSpecifier(G,"ImportSpecifier",Z)}isThisParam(G){return G.type==="Identifier"&&G.name==="this"}}class n7 extends kK{constructor(G,J,X){G=YU1(G);super(G,J);this.options=G,this.initializeScopes(),this.plugins=X,this.filename=G.sourceFilename}getScopeHandler(){return aG}parse(){this.enterInitialScopes();const G=this.startNode(),J=this.startNode();return this.nextToken(),G.errors=null,this.parseTopLevel(G,J),G.errors=this.state.errors,G.comments.length=this.state.commentsLen,G}}var RU1=$U1(zz1),tU=new Map;EK.parse=KU1;EK.parseExpression=BU1;EK.tokTypes=RU1});var o7=S((OK)=>{Object.defineProperty(OK,"__esModule",{value:!0});OK.Var=OK.User=OK.Statement=OK.SpreadProperty=OK.Scope=OK.RestProperty=OK.ReferencedMemberExpression=OK.ReferencedIdentifier=OK.Referenced=OK.Pure=OK.NumericLiteralTypeAnnotation=OK.Generated=OK.ForAwaitStatement=OK.Flow=OK.Expression=OK.ExistentialTypeParam=OK.BlockScoped=OK.BindingIdentifier=void 0;var L_1=OK.ReferencedIdentifier=["Identifier","JSXIdentifier"],T_1=OK.ReferencedMemberExpression=["MemberExpression"],w_1=OK.BindingIdentifier=["Identifier"],N_1=OK.Statement=["Statement"],k_1=OK.Expression=["Expression"],E_1=OK.Scope=["Scopable","Pattern"],O_1=OK.Referenced=null,v_1=OK.BlockScoped=null,__1=OK.Var=["VariableDeclaration"],g_1=OK.User=null,b_1=OK.Generated=null,h_1=OK.Pure=null,y_1=OK.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],m_1=OK.RestProperty=["RestElement"],x_1=OK.SpreadProperty=["RestElement"],l_1=OK.ExistentialTypeParam=["ExistsTypeAnnotation"],c_1=OK.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],a_1=OK.ForAwaitStatement=["ForOfStatement"]});var gK=S((i_1,_K)=>{function yU1(G){if(G=String(G),G.length>100)return;var J=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(G);if(!J)return;var X=parseFloat(J[1]),H=(J[2]||"ms").toLowerCase();switch(H){case"years":case"year":case"yrs":case"yr":case"y":return X*hU1;case"weeks":case"week":case"w":return X*bU1;case"days":case"day":case"d":return X*J5;case"hours":case"hour":case"hrs":case"hr":case"h":return X*x5;case"minutes":case"minute":case"mins":case"min":case"m":return X*m5;case"seconds":case"second":case"secs":case"sec":case"s":return X*y5;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return X;default:return}}function mU1(G){var J=Math.abs(G);if(J>=J5)return Math.round(G/J5)+"d";if(J>=x5)return Math.round(G/x5)+"h";if(J>=m5)return Math.round(G/m5)+"m";if(J>=y5)return Math.round(G/y5)+"s";return G+"ms"}function xU1(G){var J=Math.abs(G);if(J>=J5)return iG(G,J,J5,"day");if(J>=x5)return iG(G,J,x5,"hour");if(J>=m5)return iG(G,J,m5,"minute");if(J>=y5)return iG(G,J,y5,"second");return G+" ms"}function iG(G,J,X,H){var Z=J>=X*1.5;return Math.round(G/X)+" "+H+(Z?"s":"")}var y5=1000,m5=y5*60,x5=m5*60,J5=x5*24,bU1=J5*7,hU1=J5*365.25;_K.exports=function(G,J){J=J||{};var X=typeof G;if(X==="string"&&G.length>0)return yU1(G);else if(X==="number"&&isFinite(G))return J.long?xU1(G):mU1(G);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(G))}});var e7=S((u_1,bK)=>{function lU1(G){X.debug=X,X.default=X,X.coerce=W,X.disable=V,X.enable=Z,X.enabled=Q,X.humanize=gK(),X.destroy=z,Object.keys(G).forEach((B)=>{X[B]=G[B]}),X.names=[],X.skips=[],X.formatters={};function J(B){let q=0;for(let F=0;F<B.length;F++)q=(q<<5)-q+B.charCodeAt(F),q|=0;return X.colors[Math.abs(q)%X.colors.length]}X.selectColor=J;function X(B){let q,F=null,j,f;function y(...w){if(!y.enabled)return;const v=y,h=Number(new Date),K1=h-(q||h);if(v.diff=K1,v.prev=q,v.curr=h,q=h,w[0]=X.coerce(w[0]),typeof w[0]!=="string")w.unshift("%O");let e=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(Q1,L1)=>{if(Q1==="%%")return"%";e++;const E1=X.formatters[L1];if(typeof E1==="function"){const i=w[e];Q1=E1.call(v,i),w.splice(e,1),e--}return Q1}),X.formatArgs.call(v,w),(v.log||X.log).apply(v,w)}if(y.namespace=B,y.useColors=X.useColors(),y.color=X.selectColor(B),y.extend=H,y.destroy=X.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(F!==null)return F;if(j!==X.namespaces)j=X.namespaces,f=X.enabled(B);return f},set:(w)=>{F=w}}),typeof X.init==="function")X.init(y);return y}function H(B,q){const F=X(this.namespace+(typeof q==="undefined"?":":q)+B);return F.log=this.log,F}function Z(B){X.save(B),X.namespaces=B,X.names=[],X.skips=[];let q;const F=(typeof B==="string"?B:"").split(/[\s,]+/),j=F.length;for(q=0;q<j;q++){if(!F[q])continue;if(B=F[q].replace(/\*/g,".*?"),B[0]==="-")X.skips.push(new RegExp("^"+B.slice(1)+"$"));else X.names.push(new RegExp("^"+B+"$"))}}function V(){const B=[...X.names.map(Y),...X.skips.map(Y).map((q)=>"-"+q)].join(",");return X.enable(""),B}function Q(B){if(B[B.length-1]==="*")return!0;let q,F;for(q=0,F=X.skips.length;q<F;q++)if(X.skips[q].test(B))return!1;for(q=0,F=X.names.length;q<F;q++)if(X.names[q].test(B))return!0;return!1}function Y(B){return B.toString().substring(2,B.toString().length-2).replace(/\.\*\?$/,"*")}function W(B){if(B instanceof Error)return B.stack||B.message;return B}function z(){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 X.enable(X.load()),X}bK.exports=lU1});var yK=S((hK,dG)=>{function cU1(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let G;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(G=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(G[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function aU1(G){if(G[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+G[0]+(this.useColors?"%c ":" ")+"+"+dG.exports.humanize(this.diff),!this.useColors)return;const J="color: "+this.color;G.splice(1,0,J,"color: inherit");let X=0,H=0;G[0].replace(/%[a-zA-Z%]/g,(Z)=>{if(Z==="%%")return;if(X++,Z==="%c")H=X}),G.splice(H,0,J)}function rU1(G){try{if(G)hK.storage.setItem("debug",G);else hK.storage.removeItem("debug")}catch(J){}}function iU1(){let G;try{G=hK.storage.getItem("debug")}catch(J){}if(!G&&typeof process!=="undefined"&&"env"in process)G=process.env.DEBUG;return G}function uU1(){try{return localStorage}catch(G){}}hK.formatArgs=aU1;hK.save=rU1;hK.load=iU1;hK.useColors=cU1;hK.storage=uU1();hK.destroy=(()=>{let G=!1;return()=>{if(!G)G=!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`.")}})();hK.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"];hK.log=console.debug||console.log||(()=>{});dG.exports=e7()(hK);var{formatters:dU1}=dG.exports;dU1.j=function(G){try{return JSON.stringify(G)}catch(J){return"[UnexpectedJSONParseError]: "+J.message}}});var xK={};JK1(xK,{default:()=>WK1,createSupportsColor:()=>t7});import G3 from"process";import HK1 from"os";import mK from"tty";function E2(G,J=globalThis.Deno?globalThis.Deno.args:G3.argv){const X=G.startsWith("-")?"":G.length===1?"-":"--",H=J.indexOf(X+G),Z=J.indexOf("--");return H!==-1&&(Z===-1||H<Z)}function ZK1(){if("FORCE_COLOR"in a1){if(a1.FORCE_COLOR==="true")return 1;if(a1.FORCE_COLOR==="false")return 0;return a1.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(a1.FORCE_COLOR,10),3)}}function VK1(G){if(G===0)return!1;return{level:G,hasBasic:!0,has256:G>=2,has16m:G>=3}}function QK1(G,{streamIsTTY:J,sniffFlags:X=!0}={}){const H=ZK1();if(H!==void 0)sG=H;const Z=X?sG:H;if(Z===0)return 0;if(X){if(E2("color=16m")||E2("color=full")||E2("color=truecolor"))return 3;if(E2("color=256"))return 2}if("TF_BUILD"in a1&&"AGENT_NAME"in a1)return 1;if(G&&!J&&Z===void 0)return 0;const V=Z||0;if(a1.TERM==="dumb")return V;if(G3.platform==="win32"){const Q=HK1.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in a1){if("GITHUB_ACTIONS"in a1||"GITEA_ACTIONS"in a1)return 3;if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Q)=>(Q in a1))||a1.CI_NAME==="codeship")return 1;return V}if("TEAMCITY_VERSION"in a1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a1.TEAMCITY_VERSION)?1:0;if(a1.COLORTERM==="truecolor")return 3;if(a1.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in a1){const Q=Number.parseInt((a1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a1.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(a1.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a1.TERM))return 1;if("COLORTERM"in a1)return 1;return V}function t7(G,J={}){const X=QK1(G,{streamIsTTY:G&&G.isTTY,...J});return VK1(X)}var a1,sG,YK1,WK1;var lK=XK1(()=>{({env:a1}=G3);if(E2("no-color")||E2("no-colors")||E2("color=false")||E2("color=never"))sG=0;else if(E2("color")||E2("colors")||E2("color=true")||E2("color=always"))sG=1;YK1={stdout:t7({isTTY:mK.isatty(1)}),stderr:t7({isTTY:mK.isatty(2)})},WK1=YK1});var iK=S((aK,nG)=>{function KK1(){return"colors"in aK.inspectOpts?Boolean(aK.inspectOpts.colors):UK1.isatty(process.stderr.fd)}function BK1(G){const{namespace:J,useColors:X}=this;if(X){const H=this.color,Z="\x1B[3"+(H<8?H:"8;5;"+H),V=` ${Z};1m${J} \x1B[0m`;G[0]=V+G[0].split("\n").join("\n"+V),G.push(Z+"m+"+nG.exports.humanize(this.diff)+"\x1B[0m")}else G[0]=$K1()+J+" "+G[0]}function $K1(){if(aK.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function RK1(...G){return process.stderr.write(pG.formatWithOptions(aK.inspectOpts,...G)+"\n")}function MK1(G){if(G)process.env.DEBUG=G;else delete process.env.DEBUG}function qK1(){return process.env.DEBUG}function FK1(G){G.inspectOpts={};const J=Object.keys(aK.inspectOpts);for(let X=0;X<J.length;X++)G.inspectOpts[J[X]]=aK.inspectOpts[J[X]]}var UK1=import.meta.require("tty"),pG=import.meta.require("util");aK.init=FK1;aK.log=RK1;aK.formatArgs=BK1;aK.save=MK1;aK.load=qK1;aK.useColors=KK1;aK.destroy=pG.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");aK.colors=[6,2,3,4,5,1];try{const G=(lK(),zK1(xK));if(G&&(G.stderr||G).level>=2)aK.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(G){}aK.inspectOpts=Object.keys(process.env).filter((G)=>{return/^debug_/i.test(G)}).reduce((G,J)=>{const X=J.substring(6).toLowerCase().replace(/_([a-z])/g,(Z,V)=>{return V.toUpperCase()});let H=process.env[J];if(/^(yes|on|true|enabled)$/i.test(H))H=!0;else if(/^(no|off|false|disabled)$/i.test(H))H=!1;else if(H==="null")H=null;else H=Number(H);return G[X]=H,G},{});nG.exports=e7()(aK);var{formatters:cK}=nG.exports;cK.o=function(G){return this.inspectOpts.colors=this.useColors,pG.inspect(G,this.inspectOpts).split("\n").map((J)=>J.trim()).join(" ")};cK.O=function(G){return this.inspectOpts.colors=this.useColors,pG.inspect(G,this.inspectOpts)}});var uK=S((e_1,J3)=>{if(typeof process==="undefined"||process.type==="renderer"||!1||process.__nwjs)J3.exports=yK();else J3.exports=iK()});var H3=S((pK)=>{function iK1(G){const{node:J,parent:X}=this;if(!dK(J,G)&&!bK1(X,G))if(gK1(J,G)){if(rK1(J.name))return!1}else return!1;return X3(J,X,this.parentPath.parent)}function uK1(){const{node:G,parent:J}=this;return hK1(G)&&X3(G,J)}function dK1(){const{node:G,parent:J}=this,X=this.parentPath.parent;return dK(G)&&LK1(G,J,X)}function sK1(){const{node:G,parent:J}=this;if(mK1(G)){if(lK1(G)){if(OK1(J,{left:G}))return!1;if(EK1(J,{init:G}))return!1}return!0}else return!1}function pK1(){if(this.isIdentifier())return this.isReferencedIdentifier();else return NK1(this.node)}function nK1(){return yK1(this.node,this.parent)}function oK1(){return X3(this.node,this.parent)}function eK1(){return TK1(this.node)}function tK1(){return xK1(this.node)}function GB1(){return this.node&&!!this.node.loc}function JB1(){return!this.isUser()}function XB1(G){return this.scope.isPure(this.node,G)}function HB1(){const{node:G}=this;if(kK1(G))return!0;else if(vK1(G))return G.importKind==="type"||G.importKind==="typeof";else if(wK1(G))return G.exportKind==="type";else if(_K1(G))return G.importKind==="type"||G.importKind==="typeof";else return!1}function ZB1(){var G;return sK(this.node)&&((G=this.parentPath)==null?void 0:G.isObjectPattern())}function VB1(){var G;return sK(this.node)&&((G=this.parentPath)==null?void 0:G.isObjectExpression())}function QB1(){return aK1(this.node,{await:!0})}Object.defineProperty(pK,"__esModule",{value:!0});pK.isBindingIdentifier=dK1;pK.isBlockScoped=eK1;pK.isExpression=pK1;pK.isFlow=HB1;pK.isForAwaitStatement=QB1;pK.isGenerated=JB1;pK.isPure=XB1;pK.isReferenced=oK1;pK.isReferencedIdentifier=iK1;pK.isReferencedMemberExpression=uK1;pK.isRestProperty=ZB1;pK.isScope=nK1;pK.isSpreadProperty=VB1;pK.isStatement=sK1;pK.isUser=GB1;pK.isVar=tK1;var PK1=F1(),{isBinding:LK1,isBlockScoped:TK1,isExportDeclaration:wK1,isExpression:NK1,isFlow:kK1,isForStatement:EK1,isForXStatement:OK1,isIdentifier:dK,isImportDeclaration:vK1,isImportSpecifier:_K1,isJSXIdentifier:gK1,isJSXMemberExpression:bK1,isMemberExpression:hK1,isRestElement:sK,isReferenced:X3,isScope:yK1,isStatement:mK1,isVar:xK1,isVariableDeclaration:lK1,react:cK1,isForOfStatement:aK1}=PK1,{isCompatTag:rK1}=cK1;pK.isExistentialTypeParam=function G(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},pK.isNumericLiteralTypeAnnotation=function G(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var l9=S((zB)=>{function LB1(G){return G in ZB}function VB(G){return G==null?void 0:G._exploded}function QB(G){if(VB(G))return G;G._exploded=!0;for(let J of Object.keys(G)){if(H5(J))continue;const X=J.split("|");if(X.length===1)continue;const H=G[J];delete G[J];for(let Z of X)G[Z]=H}YB(G),delete G.__esModule,TB1(G),HB(G);for(let J of Object.keys(G)){if(H5(J))continue;if(!LB1(J))continue;const X=G[J];for(let Z of Object.keys(X))X[Z]=wB1(J,X[Z]);delete G[J];const H=ZB[J];if(H!==null)for(let Z of H)if(G[Z])x9(G[Z],X);else G[Z]=X;else x9(G,X)}for(let J of Object.keys(G)){if(H5(J))continue;let X=tK[J];if(J in oK){const Z=oK[J];GB(J,Z,"Visitor "),X=[Z]}else if(J in eK){const Z=eK[J];GB(J,Z,"Visitor "),X=tK[Z]}if(!X)continue;const H=G[J];delete G[J];for(let Z of X){const V=G[Z];if(V)x9(V,H);else G[Z]=Object.assign({},H)}}for(let J of Object.keys(G)){if(H5(J))continue;HB(G[J])}return G}function YB(G){if(G._verified)return;if(typeof G==="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 J of Object.keys(G)){if(J==="enter"||J==="exit")JB(J,G[J]);if(H5(J))continue;if(!PB1.includes(J))throw new Error(`You gave us a visitor for the node type ${J} but it's not a valid type in @babel/traverse 7.25.7`);const X=G[J];if(typeof X==="object")for(let H of Object.keys(X))if(H==="enter"||H==="exit")JB(`${J}.${H}`,X[H]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${J} that has the invalid property ${H}`)}G._verified=!0}function JB(G,J){const X=[].concat(J);for(let H of X)if(typeof H!=="function")throw new TypeError(`Non-function found defined in ${G} with type ${typeof H}`)}function WB(G,J=[],X){const H={_verified:!0,_exploded:!0};Object.defineProperty(H,"_exploded",{enumerable:!1}),Object.defineProperty(H,"_verified",{enumerable:!1});for(let Z=0;Z<G.length;Z++){const V=QB(G[Z]),Q=J[Z];let Y=V;if(Q||X)Y=XB(Y,Q,X);x9(H,Y);for(let W of Object.keys(V)){if(H5(W))continue;let z=V[W];if(Q||X)z=XB(z,Q,X);const B=H[W]||(H[W]={});x9(B,z)}}return H}function XB(G,J,X){const H={};for(let Z of["enter","exit"]){let V=G[Z];if(!Array.isArray(V))continue;V=V.map(function(Q){let Y=Q;if(J)Y=function(W){Q.call(J,W,J)};if(X)Y=X(J==null?void 0:J.key,Z,Y);if(Y!==Q)Y.toString=()=>Q.toString();return Y}),H[Z]=V}return H}function TB1(G){for(let J of Object.keys(G)){if(H5(J))continue;const X=G[J];if(typeof X==="function")G[J]={enter:X}}}function HB(G){if(G.enter&&!Array.isArray(G.enter))G.enter=[G.enter];if(G.exit&&!Array.isArray(G.exit))G.exit=[G.exit]}function wB1(G,J){const X=`is${G}`,H=fB1[X],Z=function(V){if(H.call(V))return J.apply(this,arguments)};return Z.toString=()=>J.toString(),Z}function H5(G){if(G[0]==="_")return!0;if(G==="enter"||G==="exit"||G==="shouldSkip")return!0;if(G==="denylist"||G==="noScope"||G==="skipKeys")return!0;if(G==="blacklist")return!0;return!1}function x9(G,J){for(let X of["enter","exit"]){if(!J[X])continue;G[X]=[].concat(G[X]||[],J[X])}}function kB1(G){return WB([NB1,G])}Object.defineProperty(zB,"__esModule",{value:!0});zB.environmentVisitor=kB1;zB.explode=QB;zB.isExplodedVisitor=VB;zB.merge=WB;zB.verify=YB;var ZB=o7(),fB1=H3(),SB1=F1(),nK=o2(),{DEPRECATED_KEYS:oK,DEPRECATED_ALIASES:eK,FLIPPED_ALIAS_KEYS:tK,TYPES:PB1,__internal__deprecationWarning:GB}=SB1,NB1={FunctionParent(G){if(G.isArrowFunctionExpression())return;if(G.skip(),G.isMethod())if(!G.requeueComputedKeyAndDecorators)nK.requeueComputedKeyAndDecorators.call(G);else G.requeueComputedKeyAndDecorators()},Property(G){if(G.isObjectProperty())return;if(G.skip(),!G.requeueComputedKeyAndDecorators)nK.requeueComputedKeyAndDecorators.call(G);else G.requeueComputedKeyAndDecorators()}}});var $B=S((KB)=>{Object.defineProperty(KB,"__esModule",{value:!0});KB.default=void 0;var oG=F1(),bB1=oG,hB1=eG(),yB1=l9(),mB1=o2(),{getAssignmentIdentifiers:xB1}=bB1,lB1={ReferencedIdentifier({node:G},J){if(G.name===J.oldName)G.name=J.newName},Scope(G,J){if(!G.scope.bindingIdentifierEquals(J.oldName,J.binding.identifier)){if(G.skip(),G.isMethod())if(!G.requeueComputedKeyAndDecorators)mB1.requeueComputedKeyAndDecorators.call(G);else G.requeueComputedKeyAndDecorators()}},ObjectProperty({node:G,scope:J},X){const{name:H}=G.key;if(G.shorthand&&(H===X.oldName||H===X.newName)&&J.getBindingIdentifier(H)===X.binding.identifier){G.shorthand=!1;{var Z;if((Z=G.extra)!=null&&Z.shorthand)G.extra.shorthand=!1}}},"AssignmentExpression|Declaration|VariableDeclarator"(G,J){if(G.isVariableDeclaration())return;const X=G.isAssignmentExpression()?xB1(G.node):G.getOuterBindingIdentifiers();for(let H in X)if(H===J.oldName)X[H].name=J.newName}};class UB{constructor(G,J,X){this.newName=X,this.oldName=J,this.binding=G}maybeConvertFromExportDeclaration(G){const J=G.parentPath;if(!J.isExportDeclaration())return;if(J.isExportDefaultDeclaration()){const{declaration:X}=J.node;if(oG.isDeclaration(X)&&!X.id)return}if(J.isExportAllDeclaration())return;J.splitExportDeclaration()}maybeConvertFromClassFunctionDeclaration(G){return G}maybeConvertFromClassFunctionExpression(G){return G}rename(){const{binding:G,oldName:J,newName:X}=this,{scope:H,path:Z}=G,V=Z.find((W)=>W.isDeclaration()||W.isFunctionExpression()||W.isClassExpression());if(V){if(V.getOuterBindingIdentifiers()[J]===G.identifier)this.maybeConvertFromExportDeclaration(V)}const Q=arguments[0]||H.block,Y={discriminant:!0};if(oG.isMethod(Q)){if(Q.computed)Y.key=!0;if(!oG.isObjectMethod(Q))Y.decorators=!0}if(hB1.traverseNode(Q,yB1.explode(lB1),H,this,H.path,Y),!arguments[0])H.removeOwnBinding(J),H.bindings[X]=G,this.binding.identifier.name=X;if(V)this.maybeConvertFromClassFunctionDeclaration(Z),this.maybeConvertFromClassFunctionExpression(Z)}}KB.default=UB});var FB=S((MB)=>{function cB1(G){for(let{parentPath:J,key:X}=G;J;{parentPath:J,key:X}=J){if(J.isFunctionParent())return!1;if(J.isWhile()||J.isForXStatement()||J.isForStatement()&&X==="body")return!0}return!1}Object.defineProperty(MB,"__esModule",{value:!0});MB.default=void 0;class RB{constructor({identifier:G,scope:J,path:X,kind:H}){if(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=G,this.scope=J,this.path=X,this.kind=H,(H==="var"||H==="hoisted")&&cB1(X))this.reassign(X);this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(G){if(this.hasDeoptedValue)return;this.hasValue=!0,this.value=G}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(G){if(this.constant=!1,this.constantViolations.includes(G))return;this.constantViolations.push(G)}reference(G){if(this.referencePaths.includes(G))return;this.referenced=!0,this.references++,this.referencePaths.push(G)}dereference(){this.references--,this.referenced=!!this.references}}MB.default=RB});var jB=S((Vg1,aB1)=>{aB1.exports={builtin:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,"AudioWorkletGlobalScope ":!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,global:!1,Intl:!1,module:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{_:!1,$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1,URL:!1,URLSearchParams:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}}});var Z5=S((AB)=>{function iB1(){DB(),IB()}function DB(){AB.path=tG=new WeakMap}function IB(){AB.scope=rB1=new WeakMap}function uB1(G,J){var X,H;return G=null,(X=tG.get((H=G)!=null?H:Z3))==null?void 0:X.get(J)}function dB1(G,J){var X,H;G=null;let Z=tG.get((X=G)!=null?X:Z3);if(!Z)tG.set((H=G)!=null?H:Z3,Z=new WeakMap);let V=Z.get(J);if(!V)Z.set(J,V=new Map);return V}Object.defineProperty(AB,"__esModule",{value:!0});AB.clear=iB1;AB.clearPath=DB;AB.clearScope=IB;AB.getCachedPaths=uB1;AB.getOrCreateCachedPaths=dB1;AB.scope=AB.path=void 0;var tG=AB.path=new WeakMap,rB1=AB.scope=new WeakMap,Z3=Object.freeze({})});var z3=S((bB)=>{function x1(G,J){switch(G==null?void 0:G.type){default:if(Y3(G)||g$1(G)){var X;if((_B(G)||Q3(G)||Y3(G))&&G.source)x1(G.source,J);else if((Q3(G)||Y3(G))&&(X=G.specifiers)!=null&&X.length)for(let H of G.specifiers)x1(H,J);else if((U$1(G)||Q3(G))&&G.declaration)x1(G.declaration,J)}else if(M$1(G))x1(G.local,J);else if(B$1(G)&&!q$1(G)&&!I$1(G)&&!gB(G))J.push(G.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":x1(G.object,J),x1(G.property,J);break;case"Identifier":case"JSXIdentifier":J.push(G.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":x1(G.callee,J);break;case"ObjectExpression":case"ObjectPattern":for(let H of G.properties)x1(H,J);break;case"SpreadElement":case"RestElement":x1(G.argument,J);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":x1(G.key,J);break;case"ThisExpression":J.push("this");break;case"Super":J.push("super");break;case"Import":J.push("import");break;case"DoExpression":J.push("do");break;case"YieldExpression":J.push("yield"),x1(G.argument,J);break;case"AwaitExpression":J.push("await"),x1(G.argument,J);break;case"AssignmentExpression":x1(G.left,J);break;case"VariableDeclarator":x1(G.id,J);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":x1(G.id,J);break;case"PrivateName":x1(G.id,J);break;case"ParenthesizedExpression":x1(G.expression,J);break;case"UnaryExpression":case"UpdateExpression":x1(G.argument,J);break;case"MetaProperty":x1(G.meta,J),x1(G.property,J);break;case"JSXElement":x1(G.openingElement,J);break;case"JSXOpeningElement":x1(G.name,J);break;case"JSXFragment":x1(G.openingFragment,J);break;case"JSXOpeningFragment":J.push("Fragment");break;case"JSXNamespacedName":x1(G.namespace,J),x1(G.name,J);break}}Object.defineProperty(bB,"__esModule",{value:!0});bB.default=void 0;var tB1=$B(),G$1=c9(),J$1=FB(),X$1=jB(),EB=F1(),H$1=EB,fB=Z5(),Z$1=l9(),{NOT_LOCAL_BINDING:SB,assignmentExpression:V$1,callExpression:PB,cloneNode:LB,getBindingIdentifiers:OB,identifier:Q5,isArrayExpression:vB,isBinary:Q$1,isCallExpression:TB,isClass:Y$1,isClassBody:W$1,isClassDeclaration:z$1,isExportAllDeclaration:_B,isExportDefaultDeclaration:U$1,isExportNamedDeclaration:Q3,isFunctionDeclaration:K$1,isIdentifier:V5,isImportDeclaration:Y3,isLiteral:B$1,isMemberExpression:$$1,isMethod:R$1,isModuleSpecifier:M$1,isNullLiteral:q$1,isObjectExpression:F$1,isProperty:j$1,isPureish:D$1,isRegExpLiteral:I$1,isSuper:A$1,isTaggedTemplateExpression:C$1,isTemplateLiteral:gB,isThisExpression:wB,isUnaryExpression:f$1,isVariableDeclaration:S$1,expressionStatement:P$1,matchesPattern:NB,memberExpression:W3,numericLiteral:L$1,toIdentifier:T$1,variableDeclaration:w$1,variableDeclarator:N$1,isRecordExpression:k$1,isTupleExpression:E$1,isObjectProperty:O$1,isTopicReference:kB,isMetaProperty:v$1,isPrivateName:_$1,isExportDeclaration:g$1,buildUndefinedNode:b$1,sequenceExpression:h$1}=EB,GJ={ForStatement(G){const J=G.get("init");if(J.isVar()){const{scope:X}=G;(X.getFunctionParent()||X.getProgramParent()).registerBinding("var",J)}},Declaration(G){if(G.isBlockScoped())return;if(G.isImportDeclaration())return;if(G.isExportDeclaration())return;(G.scope.getFunctionParent()||G.scope.getProgramParent()).registerDeclaration(G)},ImportDeclaration(G){G.scope.getBlockParent().registerDeclaration(G)},ReferencedIdentifier(G,J){J.references.push(G)},ForXStatement(G,J){const X=G.get("left");if(X.isPattern()||X.isIdentifier())J.constantViolations.push(G);else if(X.isVar()){const{scope:H}=G;(H.getFunctionParent()||H.getProgramParent()).registerBinding("var",X)}},ExportDeclaration:{exit(G){const{node:J,scope:X}=G;if(_B(J))return;const H=J.declaration;if(z$1(H)||K$1(H)){const Z=H.id;if(!Z)return;const V=X.getBinding(Z.name);V==null||V.reference(G)}else if(S$1(H))for(let Z of H.declarations)for(let V of Object.keys(OB(Z))){const Q=X.getBinding(V);Q==null||Q.reference(G)}}},LabeledStatement(G){G.scope.getBlockParent().registerDeclaration(G)},AssignmentExpression(G,J){J.assignments.push(G)},UpdateExpression(G,J){J.constantViolations.push(G)},UnaryExpression(G,J){if(G.node.operator==="delete")J.constantViolations.push(G)},BlockScoped(G){let J=G.scope;if(J.path===G)J=J.parent;if(J.getBlockParent().registerDeclaration(G),G.isClassDeclaration()&&G.node.id){const Z=G.node.id.name;G.scope.bindings[Z]=G.scope.parent.getBinding(Z)}},CatchClause(G){G.scope.registerBinding("let",G)},Function(G){const J=G.get("params");for(let X of J)G.scope.registerBinding("param",X);if(G.isFunctionExpression()&&G.node.id&&!G.node.id[SB])G.scope.registerBinding("local",G.get("id"),G)},ClassExpression(G){if(G.node.id&&!G.node.id[SB])G.scope.registerBinding("local",G.get("id"),G)},TSTypeAnnotation(G){G.skip()}},y$1=0;class O2{constructor(G){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.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;const{node:J}=G,X=fB.scope.get(J);if((X==null?void 0:X.path)===G)return X;fB.scope.set(J,this),this.uid=y$1++,this.block=J,this.path=G,this.labels=new Map,this.inited=!1}get parent(){var G;let J,X=this.path;do{var H;const Z=X.key==="key"||X.listKey==="decorators";if(X=X.parentPath,Z&&X.isMethod())X=X.parentPath;if((H=X)!=null&&H.isScope())J=X}while(X&&!J);return(G=J)==null?void 0:G.scope}generateDeclaredUidIdentifier(G){const J=this.generateUidIdentifier(G);return this.push({id:J}),LB(J)}generateUidIdentifier(G){return Q5(this.generateUid(G))}generateUid(G="temp"){G=T$1(G).replace(/^_+/,"").replace(/\d+$/g,"");let J,X=1;do{if(J=`_${G}`,X>1)J+=X;X++}while(this.hasLabel(J)||this.hasBinding(J)||this.hasGlobal(J)||this.hasReference(J));const H=this.getProgramParent();return H.references[J]=!0,H.uids[J]=!0,J}generateUidBasedOnNode(G,J){const X=[];x1(G,X);let H=X.join("$");return H=H.replace(/^_/,"")||J||"ref",this.generateUid(H.slice(0,20))}generateUidIdentifierBasedOnNode(G,J){return Q5(this.generateUidBasedOnNode(G,J))}isStatic(G){if(wB(G)||A$1(G)||kB(G))return!0;if(V5(G)){const J=this.getBinding(G.name);if(J)return J.constant;else return this.hasBinding(G.name)}return!1}maybeGenerateMemoised(G,J){if(this.isStatic(G))return null;else{const X=this.generateUidIdentifierBasedOnNode(G);if(!J)return this.push({id:X}),LB(X);return X}}checkBlockScopedCollisions(G,J,X,H){if(J==="param")return;if(G.kind==="local")return;if(J==="let"||G.kind==="let"||G.kind==="const"||G.kind==="module"||G.kind==="param"&&J==="const")throw this.path.hub.buildError(H,`Duplicate declaration "${X}"`,TypeError)}rename(G,J){const X=this.getBinding(G);if(X)J||(J=this.generateUidIdentifier(G).name),new tB1.default(X,G,J).rename(arguments[2])}dump(){const G="-".repeat(60);console.log(G);let J=this;do{console.log("#",J.block.type);for(let X of Object.keys(J.bindings)){const H=J.bindings[X];console.log(" -",X,{constant:H.constant,references:H.references,violations:H.constantViolations.length,kind:H.kind})}}while(J=J.parent);console.log(G)}hasLabel(G){return!!this.getLabel(G)}getLabel(G){return this.labels.get(G)}registerLabel(G){this.labels.set(G.node.label.name,G)}registerDeclaration(G){if(G.isLabeledStatement())this.registerLabel(G);else if(G.isFunctionDeclaration())this.registerBinding("hoisted",G.get("id"),G);else if(G.isVariableDeclaration()){const J=G.get("declarations"),{kind:X}=G.node;for(let H of J)this.registerBinding(X==="using"||X==="await using"?"const":X,H)}else if(G.isClassDeclaration()){if(G.node.declare)return;this.registerBinding("let",G)}else if(G.isImportDeclaration()){const J=G.node.importKind==="type"||G.node.importKind==="typeof",X=G.get("specifiers");for(let H of X){const Z=J||H.isImportSpecifier()&&(H.node.importKind==="type"||H.node.importKind==="typeof");this.registerBinding(Z?"unknown":"module",H)}}else if(G.isExportDeclaration()){const J=G.get("declaration");if(J.isClassDeclaration()||J.isFunctionDeclaration()||J.isVariableDeclaration())this.registerDeclaration(J)}else this.registerBinding("unknown",G)}buildUndefinedNode(){return b$1()}registerConstantViolation(G){const J=G.getAssignmentIdentifiers();for(let H of Object.keys(J)){var X;(X=this.getBinding(H))==null||X.reassign(G)}}registerBinding(G,J,X=J){if(!G)throw new ReferenceError("no `kind`");if(J.isVariableDeclaration()){const V=J.get("declarations");for(let Q of V)this.registerBinding(G,Q);return}const H=this.getProgramParent(),Z=J.getOuterBindingIdentifiers(!0);for(let V of Object.keys(Z)){H.references[V]=!0;for(let Q of Z[V]){const Y=this.getOwnBinding(V);if(Y){if(Y.identifier===Q)continue;this.checkBlockScopedCollisions(Y,G,V,Q)}if(Y)Y.reassign(X);else this.bindings[V]=new J$1.default({identifier:Q,scope:this,path:X,kind:G})}}}addGlobal(G){this.globals[G.name]=G}hasUid(G){let J=this;do if(J.uids[G])return!0;while(J=J.parent);return!1}hasGlobal(G){let J=this;do if(J.globals[G])return!0;while(J=J.parent);return!1}hasReference(G){return!!this.getProgramParent().references[G]}isPure(G,J){if(V5(G)){const V=this.getBinding(G.name);if(!V)return!1;if(J)return V.constant;return!0}else if(wB(G)||v$1(G)||kB(G)||_$1(G))return!0;else if(Y$1(G)){var X;if(G.superClass&&!this.isPure(G.superClass,J))return!1;if(((X=G.decorators)==null?void 0:X.length)>0)return!1;return this.isPure(G.body,J)}else if(W$1(G)){for(let V of G.body)if(!this.isPure(V,J))return!1;return!0}else if(Q$1(G))return this.isPure(G.left,J)&&this.isPure(G.right,J);else if(vB(G)||E$1(G)){for(let V of G.elements)if(V!==null&&!this.isPure(V,J))return!1;return!0}else if(F$1(G)||k$1(G)){for(let V of G.properties)if(!this.isPure(V,J))return!1;return!0}else if(R$1(G)){var H;if(G.computed&&!this.isPure(G.key,J))return!1;if(((H=G.decorators)==null?void 0:H.length)>0)return!1;return!0}else if(j$1(G)){var Z;if(G.computed&&!this.isPure(G.key,J))return!1;if(((Z=G.decorators)==null?void 0:Z.length)>0)return!1;if(O$1(G)||G.static){if(G.value!==null&&!this.isPure(G.value,J))return!1}return!0}else if(f$1(G))return this.isPure(G.argument,J);else if(gB(G)){for(let V of G.expressions)if(!this.isPure(V,J))return!1;return!0}else if(C$1(G))return NB(G.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(G.quasi,J);else if($$1(G))return!G.computed&&V5(G.object)&&G.object.name==="Symbol"&&V5(G.property)&&G.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0});else if(TB(G))return NB(G.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&G.arguments.length===1&&H$1.isStringLiteral(G.arguments[0]);else return D$1(G)}setData(G,J){return this.data[G]=J}getData(G){let J=this;do{const X=J.data[G];if(X!=null)return X}while(J=J.parent)}removeData(G){let J=this;do if(J.data[G]!=null)J.data[G]=null;while(J=J.parent)}init(){if(!this.inited)this.inited=!0,this.crawl()}crawl(){const G=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);const J=this.getProgramParent();if(J.crawling)return;const X={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,G.type!=="Program"&&Z$1.isExplodedVisitor(GJ)){for(let Z of GJ.enter)Z.call(X,G,X);const H=GJ[G.type];if(H)for(let Z of H.enter)Z.call(X,G,X)}G.traverse(GJ,X),this.crawling=!1;for(let H of X.assignments){const Z=H.getAssignmentIdentifiers();for(let V of Object.keys(Z)){if(H.scope.getBinding(V))continue;J.addGlobal(Z[V])}H.scope.registerConstantViolation(H)}for(let H of X.references){const Z=H.scope.getBinding(H.node.name);if(Z)Z.reference(H);else J.addGlobal(H.node)}for(let H of X.constantViolations)H.scope.registerConstantViolation(H)}push(G){let J=this.path;if(J.isPattern())J=this.getPatternParent().path;else if(!J.isBlockStatement()&&!J.isProgram())J=this.getBlockParent().path;if(J.isSwitchStatement())J=(this.getFunctionParent()||this.getProgramParent()).path;const{init:X,unique:H,kind:Z="var",id:V}=G;if(!X&&!H&&(Z==="var"||Z==="let")&&J.isFunction()&&!J.node.name&&TB(J.parent,{callee:J.node})&&J.parent.arguments.length<=J.node.params.length&&V5(V)){J.pushContainer("params",V),J.scope.registerBinding("param",J.get("params")[J.node.params.length-1]);return}if(J.isLoop()||J.isCatchClause()||J.isFunction())J.ensureBlock(),J=J.get("body");const Q=G._blockHoist==null?2:G._blockHoist,Y=`declaration:${Z}:${Q}`;let W=!H&&J.getData(Y);if(!W){const q=w$1(Z,[]);if(q._blockHoist=Q,[W]=J.unshiftContainer("body",[q]),!H)J.setData(Y,W)}const z=N$1(V,X),B=W.node.declarations.push(z);J.scope.registerBinding(Z,W.get("declarations")[B-1])}getProgramParent(){let G=this;do if(G.path.isProgram())return G;while(G=G.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let G=this;do if(G.path.isFunctionParent())return G;while(G=G.parent);return null}getBlockParent(){let G=this;do if(G.path.isBlockParent())return G;while(G=G.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let G=this;do if(!G.path.isPattern())return G.getBlockParent();while(G=G.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const G=Object.create(null);let J=this;do{for(let X of Object.keys(J.bindings))if(X in G===!1)G[X]=J.bindings[X];J=J.parent}while(J);return G}bindingIdentifierEquals(G,J){return this.getBindingIdentifier(G)===J}getBinding(G){let J=this,X;do{const Z=J.getOwnBinding(G);if(Z){var H;if((H=X)!=null&&H.isPattern()&&Z.kind!=="param"&&Z.kind!=="local");else return Z}else if(!Z&&G==="arguments"&&J.path.isFunction()&&!J.path.isArrowFunctionExpression())break;X=J.path}while(J=J.parent)}getOwnBinding(G){return this.bindings[G]}getBindingIdentifier(G){var J;return(J=this.getBinding(G))==null?void 0:J.identifier}getOwnBindingIdentifier(G){const J=this.bindings[G];return J==null?void 0:J.identifier}hasOwnBinding(G){return!!this.getOwnBinding(G)}hasBinding(G,J){if(!G)return!1;let X=this;do if(X.hasOwnBinding(G))return!0;while(X=X.parent);let H,Z;if(typeof J==="object")H=J.noGlobals,Z=J.noUids;else if(typeof J==="boolean")H=J;if(!Z&&this.hasUid(G))return!0;if(!H&&O2.globals.includes(G))return!0;if(!H&&O2.contextVariables.includes(G))return!0;return!1}parentHasBinding(G,J){var X;return(X=this.parent)==null?void 0:X.hasBinding(G,J)}moveBindingTo(G,J){const X=this.getBinding(G);if(X)X.scope.removeOwnBinding(G),X.scope=J,J.bindings[G]=X}removeOwnBinding(G){delete this.bindings[G]}removeBinding(G){var J;(J=this.getBinding(G))==null||J.scope.removeOwnBinding(G);let X=this;do if(X.uids[G])X.uids[G]=!1;while(X=X.parent)}hoistVariables(G=(J)=>this.push({id:J})){this.crawl();const J=new Set;for(let H of Object.keys(this.bindings)){const Z=this.bindings[H];if(!Z)continue;const{path:V}=Z;if(!V.isVariableDeclarator())continue;const{parent:Q,parentPath:Y}=V;if(Q.kind!=="var"||J.has(Q))continue;J.add(V.parent);let W;const z=[];for(let B of Q.declarations){var X;if((X=W)!=null||(W=B.id),B.init)z.push(V$1("=",B.id,B.init));const q=Object.keys(OB(B,!1,!0,!0));for(let F of q)G(Q5(F),B.init!=null)}if(Y.parentPath.isFor({left:Q}))Y.replaceWith(W);else if(z.length===0)Y.remove();else{const B=z.length===1?z[0]:h$1(z);if(Y.parentPath.isForStatement({init:Q}))Y.replaceWith(B);else Y.replaceWith(P$1(B))}}}}bB.default=O2;O2.globals=Object.keys(X$1.builtin);O2.contextVariables=["arguments","undefined","Infinity","NaN"];O2.prototype._renameFromMap=function G(J,X,H,Z){if(J[X])J[H]=Z,J[X]=null},O2.prototype.traverse=function(G,J,X){G$1.default(G,J,this,X,this.path)},O2.prototype._generateUid=function G(J,X){let H=J;if(X>1)H+=X;return`_${H}`},O2.prototype.toArray=function G(J,X,H){if(V5(J)){const Q=this.getBinding(J.name);if(Q!=null&&Q.constant&&Q.path.isGenericType("Array"))return J}if(vB(J))return J;if(V5(J,{name:"arguments"}))return PB(W3(W3(W3(Q5("Array"),Q5("prototype")),Q5("slice")),Q5("call")),[J]);let Z;const V=[J];if(X===!0)Z="toConsumableArray";else if(typeof X==="number")V.push(L$1(X)),Z="slicedToArray";else Z="toArray";if(H)V.unshift(this.path.hub.addHelper(Z)),Z="maybeArrayLike";return PB(this.path.hub.addHelper(Z),V)},O2.prototype.getAllBindingsOfKind=function G(...J){const X=Object.create(null);for(let H of J){let Z=this;do{for(let V of Object.keys(Z.bindings)){const Q=Z.bindings[V];if(Q.kind===H)X[V]=Q}Z=Z.parent}while(Z)}return X},Object.defineProperties(O2.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var mB=S((yB)=>{function l$1(G){let J=this;while(J=J.parentPath)if(G(J))return J;return null}function c$1(G){let J=this;do if(G(J))return J;while(J=J.parentPath);return null}function a$1(){return this.findParent((G)=>G.isFunction())}function r$1(){let G=this;do if(!G.parentPath||Array.isArray(G.container)&&G.isStatement())break;else G=G.parentPath;while(G);if(G&&(G.isProgram()||G.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return G}function i$1(G){return this.getDeepestCommonAncestorFrom(G,function(J,X,H){let Z;const V=x$1[J.type];for(let Q of H){const Y=Q[X+1];if(!Z){Z=Y;continue}if(Y.listKey&&Z.listKey===Y.listKey){if(Y.key<Z.key){Z=Y;continue}}const W=V.indexOf(Z.parentKey),z=V.indexOf(Y.parentKey);if(W>z)Z=Y}return Z})}function u$1(G,J){if(!G.length)return this;if(G.length===1)return G[0];let X=1/0,H,Z;const V=G.map((Y)=>{const W=[];do W.unshift(Y);while((Y=Y.parentPath)&&Y!==this);if(W.length<X)X=W.length;return W}),Q=V[0];G:for(let Y=0;Y<X;Y++){const W=Q[Y];for(let z of V)if(z[Y]!==W)break G;H=Y,Z=W}if(Z)if(J)return J(Z,H,V);else return Z;else throw new Error("Couldn't find intersection")}function d$1(){let G=this;const J=[];do J.push(G);while(G=G.parentPath);return J}function s$1(G){return G.isDescendant(this)}function p$1(G){return!!this.findParent((J)=>J===G)}function n$1(...G){let J=this;while(J){for(let X of G)if(J.node.type===X)return!0;J=J.parentPath}return!1}Object.defineProperty(yB,"__esModule",{value:!0});yB.find=c$1;yB.findParent=l$1;yB.getAncestry=d$1;yB.getDeepestCommonAncestorFrom=u$1;yB.getEarliestCommonAncestorFrom=i$1;yB.getFunctionParent=a$1;yB.getStatementParent=r$1;yB.inType=n$1;yB.isAncestor=s$1;yB.isDescendant=p$1;var m$1=F1(),{VISITOR_KEYS:x$1}=m$1});var U3=S((cB)=>{function KR1(G){if(G.every((J)=>zR1(J))){if(xB)return xB(G);return WR1(G)}else if(G.every((J)=>UR1(J))){if(lB)return lB(G)}}Object.defineProperty(cB,"__esModule",{value:!0});cB.createUnionType=KR1;var YR1=F1(),{createFlowUnionType:xB,createTSUnionType:lB,createUnionTypeAnnotation:WR1,isFlowType:zR1,isTSType:UR1}=YR1});var sB=S((dB)=>{function FR1(G){if(!this.isReferenced())return;const J=this.scope.getBinding(G.name);if(J)if(J.identifier.typeAnnotation)return J.identifier.typeAnnotation;else return jR1(J,this,G.name);if(G.name==="undefined")return qR1();else if(G.name==="NaN"||G.name==="Infinity")return iB();else if(G.name==="arguments");}function jR1(G,J,X){const H=[],Z=[];let V=aB(G,J,Z);const Q=uB(G,J,X);if(Q){const Y=aB(G,Q.ifStatement);V=V.filter((W)=>!Y.includes(W)),H.push(Q.typeAnnotation)}if(V.length){V.push(...Z);for(let Y of V)H.push(Y.getTypeAnnotation())}if(!H.length)return;return rB.createUnionType(H)}function aB(G,J,X){const H=G.constantViolations.slice();return H.unshift(G.path),H.filter((Z)=>{Z=Z.resolve();const V=Z._guessExecutionStatusRelativeTo(J);if(X&&V==="unknown")X.push(Z);return V==="before"})}function DR1(G,J){const X=J.node.operator,H=J.get("right").resolve(),Z=J.get("left").resolve();let V;if(Z.isIdentifier({name:G}))V=H;else if(H.isIdentifier({name:G}))V=Z;if(V){if(X==="===")return V.getTypeAnnotation();if(RR1.includes(X))return iB();return}if(X!=="==="&&X!=="==")return;let Q,Y;if(Z.isUnaryExpression({operator:"typeof"}))Q=Z,Y=H;else if(H.isUnaryExpression({operator:"typeof"}))Q=H,Y=Z;if(!Q)return;if(!Q.get("argument").isIdentifier({name:G}))return;if(Y=Y.resolve(),!Y.isLiteral())return;const W=Y.node.value;if(typeof W!=="string")return;return MR1(W)}function IR1(G,J,X){let H;while(H=J.parentPath){if(H.isIfStatement()||H.isConditionalExpression()){if(J.key==="test")return;return H}if(H.isFunction()){if(H.parentPath.scope.getBinding(X)!==G)return}J=H}}function uB(G,J,X){const H=IR1(G,J,X);if(!H)return;const V=[H.get("test")],Q=[];for(let Y=0;Y<V.length;Y++){const W=V[Y];if(W.isLogicalExpression()){if(W.node.operator==="&&")V.push(W.get("left")),V.push(W.get("right"))}else if(W.isBinaryExpression()){const z=DR1(X,W);if(z)Q.push(z)}}if(Q.length)return{typeAnnotation:rB.createUnionType(Q),ifStatement:H};return uB(G,H,X)}Object.defineProperty(dB,"__esModule",{value:!0});dB.default=FR1;var $R1=F1(),rB=U3(),{BOOLEAN_NUMBER_BINARY_OPERATORS:RR1,createTypeAnnotationBasedOnTypeof:MR1,numberTypeAnnotation:iB,voidTypeAnnotation:qR1}=$R1});var X$=S(($3)=>{function _R1(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()}function oB(G){return G.typeAnnotation}function eB(G){return G.typeAnnotation}function gR1(){return this.get("expression").getTypeAnnotation()}function bR1(G){if(G.callee.type==="Identifier")return v0(G.callee)}function hR1(){return W5()}function yR1(G){const J=G.operator;if(J==="void")return OR1();else if(TR1.includes(J))return l5();else if(wR1.includes(J))return W5();else if(PR1.includes(J))return B3()}function mR1(G){const J=G.operator;if(LR1.includes(J))return l5();else if(SR1.includes(J))return B3();else if(J==="+"){const X=this.get("right"),H=this.get("left");if(H.isBaseType("number")&&X.isBaseType("number"))return l5();else if(H.isBaseType("string")||X.isBaseType("string"))return W5();return ER1([W5(),l5()])}}function xR1(){const G=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return nB.createUnionType(G)}function lR1(){const G=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return nB.createUnionType(G)}function cR1(){return this.get("expressions").pop().getTypeAnnotation()}function aR1(){return this.get("expression").getTypeAnnotation()}function rR1(){return this.get("right").getTypeAnnotation()}function iR1(G){const J=G.operator;if(J==="++"||J==="--")return l5()}function uR1(){return W5()}function dR1(){return l5()}function sR1(){return B3()}function pR1(){return NR1()}function nR1(){return v0(Y5("RegExp"))}function oR1(){return v0(Y5("Object"))}function tB(){return v0(Y5("Array"))}function G$(){return tB()}function eR1(){return v0(Y5("Function"))}function HM1(){const{callee:G}=this.node;if(GM1(G))return K3(W5());else if(tR1(G)||JM1(G)||vR1(G,{name:"Array"}))return K3(pB());else if(XM1(G))return K3(kR1([W5(),pB()]));return J$(this.get("callee"))}function ZM1(){return J$(this.get("tag"))}function J$(G){if(G=G.resolve(),G.isFunction()){const{node:J}=G;if(J.async)if(J.generator)return v0(Y5("AsyncIterator"));else return v0(Y5("Promise"));else if(J.generator)return v0(Y5("Iterator"));else if(G.node.returnType)return G.node.returnType}}Object.defineProperty($3,"__esModule",{value:!0});$3.ArrayExpression=tB;$3.AssignmentExpression=rR1;$3.BinaryExpression=mR1;$3.BooleanLiteral=sR1;$3.CallExpression=HM1;$3.ConditionalExpression=lR1;$3.ClassDeclaration=$3.ClassExpression=$3.FunctionDeclaration=$3.ArrowFunctionExpression=$3.FunctionExpression=eR1;Object.defineProperty($3,"Identifier",{enumerable:!0,get:function(){return fR1.default}});$3.LogicalExpression=xR1;$3.NewExpression=bR1;$3.NullLiteral=pR1;$3.NumericLiteral=dR1;$3.ObjectExpression=oR1;$3.ParenthesizedExpression=aR1;$3.RegExpLiteral=nR1;$3.RestElement=G$;$3.SequenceExpression=cR1;$3.StringLiteral=uR1;$3.TSAsExpression=eB;$3.TSNonNullExpression=gR1;$3.TaggedTemplateExpression=ZM1;$3.TemplateLiteral=hR1;$3.TypeCastExpression=oB;$3.UnaryExpression=yR1;$3.UpdateExpression=iR1;$3.VariableDeclarator=_R1;var CR1=F1(),fR1=sB(),nB=U3(),{BOOLEAN_BINARY_OPERATORS:SR1,BOOLEAN_UNARY_OPERATORS:PR1,NUMBER_BINARY_OPERATORS:LR1,NUMBER_UNARY_OPERATORS:TR1,STRING_UNARY_OPERATORS:wR1,anyTypeAnnotation:pB,arrayTypeAnnotation:K3,booleanTypeAnnotation:B3,buildMatchMemberExpression:JJ,genericTypeAnnotation:v0,identifier:Y5,nullLiteralTypeAnnotation:NR1,numberTypeAnnotation:l5,stringTypeAnnotation:W5,tupleTypeAnnotation:kR1,unionTypeAnnotation:ER1,voidTypeAnnotation:OR1,isIdentifier:vR1}=CR1;oB.validParent=!0;eB.validParent=!0;G$.validParent=!0;var tR1=JJ("Array.from"),GM1=JJ("Object.keys"),JM1=JJ("Object.values"),XM1=JJ("Object.entries")});var W$=S((Y$)=>{function sM1(){let G=this.getData("typeAnnotation");if(G!=null)return G;if(G=Q$.call(this)||V$(),aM1(G)||xM1(G))G=G.typeAnnotation;return this.setData("typeAnnotation",G),G}function Q$(){const G=this.node;if(!G)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){const X=this.parentPath.parentPath,H=X.parentPath;if(X.key==="left"&&H.isForInStatement())return uM1();if(X.key==="left"&&H.isForOfStatement())return V$();return dM1()}else return;if(G.typeAnnotation)return G.typeAnnotation;if(R3.has(G))return;R3.add(G);try{var J;let X=H$[G.type];if(X)return X.call(this,G);if(X=H$[this.parentPath.type],(J=X)!=null&&J.validParent)return this.parentPath.getTypeAnnotation()}finally{R3.delete(G)}}function pM1(G,J){return M3(G,this.getTypeAnnotation(),J)}function M3(G,J,X){if(G==="string")return yM1(J);else if(G==="number")return hM1(J);else if(G==="boolean")return OM1(J);else if(G==="any")return XJ(J);else if(G==="mixed")return bM1(J);else if(G==="empty")return vM1(J);else if(G==="void")return iM1(J);else if(X)return!1;else throw new Error(`Unknown base type ${G}`)}function nM1(G){const J=this.getTypeAnnotation();if(XJ(J))return!0;if(rM1(J)){for(let X of J.types)if(XJ(X)||M3(G,X,!0))return!0;return!1}else return M3(G,J,!0)}function oM1(G){const J=this.getTypeAnnotation(),X=G.getTypeAnnotation();if(!XJ(J)&&_M1(J))return X.type===J.type;return!1}function eM1(G){const J=this.getTypeAnnotation();if(G==="Array"){if(mM1(J)||EM1(J)||cM1(J))return!0}return gM1(J)&&Z$(J.id,{name:G})||lM1(J)&&Z$(J.typeName,{name:G})}Object.defineProperty(Y$,"__esModule",{value:!0});Y$._getTypeAnnotation=Q$;Y$.baseTypeStrictlyMatches=oM1;Y$.couldBeBaseType=nM1;Y$.getTypeAnnotation=sM1;Y$.isBaseType=pM1;Y$.isGenericType=eM1;var H$=X$(),kM1=F1(),{anyTypeAnnotation:V$,isAnyTypeAnnotation:XJ,isArrayTypeAnnotation:EM1,isBooleanTypeAnnotation:OM1,isEmptyTypeAnnotation:vM1,isFlowBaseAnnotation:_M1,isGenericTypeAnnotation:gM1,isIdentifier:Z$,isMixedTypeAnnotation:bM1,isNumberTypeAnnotation:hM1,isStringTypeAnnotation:yM1,isTSArrayType:mM1,isTSTypeAnnotation:xM1,isTSTypeReference:lM1,isTupleTypeAnnotation:cM1,isTypeAnnotation:aM1,isUnionTypeAnnotation:rM1,isVoidTypeAnnotation:iM1,stringTypeAnnotation:uM1,voidTypeAnnotation:dM1}=kM1,R3=new WeakSet});var U$=S((z$)=>{Object.defineProperty(z$,"__esModule",{value:!0});z$.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;z$.matchToToken=function(G){var J={type:"invalid",value:G[0],closed:void 0};if(G[1])J.type="string",J.closed=!!(G[3]||G[4]);else if(G[5])J.type="comment";else if(G[6])J.type="comment",J.closed=!!G[7];else if(G[8])J.type="regex";else if(G[9])J.type="number";else if(G[10])J.type="name";else if(G[11])J.type="punctuator";else if(G[12])J.type="whitespace";return J}});var F3=S((jg1,q3)=>{var K$=process.argv||[],HJ=process.env,Yq1=!(("NO_COLOR"in HJ)||K$.includes("--no-color"))&&(("FORCE_COLOR"in HJ)||K$.includes("--color")||process.platform==="win32"||import.meta.require!=null&&import.meta.require("tty").isatty(1)&&HJ.TERM!=="dumb"||("CI"in HJ)),Wq1=(G,J,X=G)=>(H)=>{let Z=""+H,V=Z.indexOf(J,G.length);return~V?G+zq1(Z,J,X,V)+J:G+Z+J},zq1=(G,J,X,H)=>{let Z="",V=0;do Z+=G.substring(V,H)+X,V=H+J.length,H=G.indexOf(J,V);while(~H);return Z+G.substring(V)},B$=(G=Yq1)=>{let J=G?Wq1:()=>String;return{isColorSupported:G,reset:J("\x1B[0m","\x1B[0m"),bold:J("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:J("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:J("\x1B[3m","\x1B[23m"),underline:J("\x1B[4m","\x1B[24m"),inverse:J("\x1B[7m","\x1B[27m"),hidden:J("\x1B[8m","\x1B[28m"),strikethrough:J("\x1B[9m","\x1B[29m"),black:J("\x1B[30m","\x1B[39m"),red:J("\x1B[31m","\x1B[39m"),green:J("\x1B[32m","\x1B[39m"),yellow:J("\x1B[33m","\x1B[39m"),blue:J("\x1B[34m","\x1B[39m"),magenta:J("\x1B[35m","\x1B[39m"),cyan:J("\x1B[36m","\x1B[39m"),white:J("\x1B[37m","\x1B[39m"),gray:J("\x1B[90m","\x1B[39m"),bgBlack:J("\x1B[40m","\x1B[49m"),bgRed:J("\x1B[41m","\x1B[49m"),bgGreen:J("\x1B[42m","\x1B[49m"),bgYellow:J("\x1B[43m","\x1B[49m"),bgBlue:J("\x1B[44m","\x1B[49m"),bgMagenta:J("\x1B[45m","\x1B[49m"),bgCyan:J("\x1B[46m","\x1B[49m"),bgWhite:J("\x1B[47m","\x1B[49m"),blackBright:J("\x1B[90m","\x1B[39m"),redBright:J("\x1B[91m","\x1B[39m"),greenBright:J("\x1B[92m","\x1B[39m"),yellowBright:J("\x1B[93m","\x1B[39m"),blueBright:J("\x1B[94m","\x1B[39m"),magentaBright:J("\x1B[95m","\x1B[39m"),cyanBright:J("\x1B[96m","\x1B[39m"),whiteBright:J("\x1B[97m","\x1B[39m"),bgBlackBright:J("\x1B[100m","\x1B[49m"),bgRedBright:J("\x1B[101m","\x1B[49m"),bgGreenBright:J("\x1B[102m","\x1B[49m"),bgYellowBright:J("\x1B[103m","\x1B[49m"),bgBlueBright:J("\x1B[104m","\x1B[49m"),bgMagentaBright:J("\x1B[105m","\x1B[49m"),bgCyanBright:J("\x1B[106m","\x1B[49m"),bgWhiteBright:J("\x1B[107m","\x1B[49m")}};q3.exports=B$();q3.exports.createColors=B$});var R$=S((Dg1,$$)=>{var Uq1=/[|\\{}()[\]^$+*?.]/g;$$.exports=function(G){if(typeof G!=="string")throw new TypeError("Expected a string");return G.replace(Uq1,"\\$&")}});var q$=S((Ig1,M$)=>{M$.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var j3=S((Ag1,I$)=>{function Kq1(G,J){return Math.pow(G[0]-J[0],2)+Math.pow(G[1]-J[1],2)+Math.pow(G[2]-J[2],2)}var z5=q$(),D$={};for(ZJ in z5)if(z5.hasOwnProperty(ZJ))D$[z5[ZJ]]=ZJ;var ZJ,G1=I$.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(B2 in G1)if(G1.hasOwnProperty(B2)){if(!("channels"in G1[B2]))throw new Error("missing channels property: "+B2);if(!("labels"in G1[B2]))throw new Error("missing channel labels property: "+B2);if(G1[B2].labels.length!==G1[B2].channels)throw new Error("channel and label counts mismatch: "+B2);F$=G1[B2].channels,j$=G1[B2].labels,delete G1[B2].channels,delete G1[B2].labels,Object.defineProperty(G1[B2],"channels",{value:F$}),Object.defineProperty(G1[B2],"labels",{value:j$})}var F$,j$,B2;G1.rgb.hsl=function(G){var J=G[0]/255,X=G[1]/255,H=G[2]/255,Z=Math.min(J,X,H),V=Math.max(J,X,H),Q=V-Z,Y,W,z;if(V===Z)Y=0;else if(J===V)Y=(X-H)/Q;else if(X===V)Y=2+(H-J)/Q;else if(H===V)Y=4+(J-X)/Q;if(Y=Math.min(Y*60,360),Y<0)Y+=360;if(z=(Z+V)/2,V===Z)W=0;else if(z<=0.5)W=Q/(V+Z);else W=Q/(2-V-Z);return[Y,W*100,z*100]};G1.rgb.hsv=function(G){var J,X,H,Z,V,Q=G[0]/255,Y=G[1]/255,W=G[2]/255,z=Math.max(Q,Y,W),B=z-Math.min(Q,Y,W),q=function(F){return(z-F)/6/B+0.5};if(B===0)Z=V=0;else{if(V=B/z,J=q(Q),X=q(Y),H=q(W),Q===z)Z=H-X;else if(Y===z)Z=0.3333333333333333+J-H;else if(W===z)Z=0.6666666666666666+X-J;if(Z<0)Z+=1;else if(Z>1)Z-=1}return[Z*360,V*100,z*100]};G1.rgb.hwb=function(G){var J=G[0],X=G[1],H=G[2],Z=G1.rgb.hsl(G)[0],V=0.00392156862745098*Math.min(J,Math.min(X,H));return H=1-0.00392156862745098*Math.max(J,Math.max(X,H)),[Z,V*100,H*100]};G1.rgb.cmyk=function(G){var J=G[0]/255,X=G[1]/255,H=G[2]/255,Z,V,Q,Y;return Y=Math.min(1-J,1-X,1-H),Z=(1-J-Y)/(1-Y)||0,V=(1-X-Y)/(1-Y)||0,Q=(1-H-Y)/(1-Y)||0,[Z*100,V*100,Q*100,Y*100]};G1.rgb.keyword=function(G){var J=D$[G];if(J)return J;var X=1/0,H;for(var Z in z5)if(z5.hasOwnProperty(Z)){var V=z5[Z],Q=Kq1(G,V);if(Q<X)X=Q,H=Z}return H};G1.keyword.rgb=function(G){return z5[G]};G1.rgb.xyz=function(G){var J=G[0]/255,X=G[1]/255,H=G[2]/255;J=J>0.04045?Math.pow((J+0.055)/1.055,2.4):J/12.92,X=X>0.04045?Math.pow((X+0.055)/1.055,2.4):X/12.92,H=H>0.04045?Math.pow((H+0.055)/1.055,2.4):H/12.92;var Z=J*0.4124+X*0.3576+H*0.1805,V=J*0.2126+X*0.7152+H*0.0722,Q=J*0.0193+X*0.1192+H*0.9505;return[Z*100,V*100,Q*100]};G1.rgb.lab=function(G){var J=G1.rgb.xyz(G),X=J[0],H=J[1],Z=J[2],V,Q,Y;return X/=95.047,H/=100,Z/=108.883,X=X>0.008856?Math.pow(X,0.3333333333333333):7.787*X+0.13793103448275862,H=H>0.008856?Math.pow(H,0.3333333333333333):7.787*H+0.13793103448275862,Z=Z>0.008856?Math.pow(Z,0.3333333333333333):7.787*Z+0.13793103448275862,V=116*H-16,Q=500*(X-H),Y=200*(H-Z),[V,Q,Y]};G1.hsl.rgb=function(G){var J=G[0]/360,X=G[1]/100,H=G[2]/100,Z,V,Q,Y,W;if(X===0)return W=H*255,[W,W,W];if(H<0.5)V=H*(1+X);else V=H+X-H*X;Z=2*H-V,Y=[0,0,0];for(var z=0;z<3;z++){if(Q=J+0.3333333333333333*-(z-1),Q<0)Q++;if(Q>1)Q--;if(6*Q<1)W=Z+(V-Z)*6*Q;else if(2*Q<1)W=V;else if(3*Q<2)W=Z+(V-Z)*(0.6666666666666666-Q)*6;else W=Z;Y[z]=W*255}return Y};G1.hsl.hsv=function(G){var J=G[0],X=G[1]/100,H=G[2]/100,Z=X,V=Math.max(H,0.01),Q,Y;return H*=2,X*=H<=1?H:2-H,Z*=V<=1?V:2-V,Y=(H+X)/2,Q=H===0?2*Z/(V+Z):2*X/(H+X),[J,Q*100,Y*100]};G1.hsv.rgb=function(G){var J=G[0]/60,X=G[1]/100,H=G[2]/100,Z=Math.floor(J)%6,V=J-Math.floor(J),Q=255*H*(1-X),Y=255*H*(1-X*V),W=255*H*(1-X*(1-V));switch(H*=255,Z){case 0:return[H,W,Q];case 1:return[Y,H,Q];case 2:return[Q,H,W];case 3:return[Q,Y,H];case 4:return[W,Q,H];case 5:return[H,Q,Y]}};G1.hsv.hsl=function(G){var J=G[0],X=G[1]/100,H=G[2]/100,Z=Math.max(H,0.01),V,Q,Y;return Y=(2-X)*H,V=(2-X)*Z,Q=X*Z,Q/=V<=1?V:2-V,Q=Q||0,Y/=2,[J,Q*100,Y*100]};G1.hwb.rgb=function(G){var J=G[0]/360,X=G[1]/100,H=G[2]/100,Z=X+H,V,Q,Y,W;if(Z>1)X/=Z,H/=Z;if(V=Math.floor(6*J),Q=1-H,Y=6*J-V,(V&1)!==0)Y=1-Y;W=X+Y*(Q-X);var z,B,q;switch(V){default:case 6:case 0:z=Q,B=W,q=X;break;case 1:z=W,B=Q,q=X;break;case 2:z=X,B=Q,q=W;break;case 3:z=X,B=W,q=Q;break;case 4:z=W,B=X,q=Q;break;case 5:z=Q,B=X,q=W;break}return[z*255,B*255,q*255]};G1.cmyk.rgb=function(G){var J=G[0]/100,X=G[1]/100,H=G[2]/100,Z=G[3]/100,V,Q,Y;return V=1-Math.min(1,J*(1-Z)+Z),Q=1-Math.min(1,X*(1-Z)+Z),Y=1-Math.min(1,H*(1-Z)+Z),[V*255,Q*255,Y*255]};G1.xyz.rgb=function(G){var J=G[0]/100,X=G[1]/100,H=G[2]/100,Z,V,Q;return Z=J*3.2406+X*-1.5372+H*-0.4986,V=J*-0.9689+X*1.8758+H*0.0415,Q=J*0.0557+X*-0.204+H*1.057,Z=Z>0.0031308?1.055*Math.pow(Z,0.4166666666666667)-0.055:Z*12.92,V=V>0.0031308?1.055*Math.pow(V,0.4166666666666667)-0.055:V*12.92,Q=Q>0.0031308?1.055*Math.pow(Q,0.4166666666666667)-0.055:Q*12.92,Z=Math.min(Math.max(0,Z),1),V=Math.min(Math.max(0,V),1),Q=Math.min(Math.max(0,Q),1),[Z*255,V*255,Q*255]};G1.xyz.lab=function(G){var J=G[0],X=G[1],H=G[2],Z,V,Q;return J/=95.047,X/=100,H/=108.883,J=J>0.008856?Math.pow(J,0.3333333333333333):7.787*J+0.13793103448275862,X=X>0.008856?Math.pow(X,0.3333333333333333):7.787*X+0.13793103448275862,H=H>0.008856?Math.pow(H,0.3333333333333333):7.787*H+0.13793103448275862,Z=116*X-16,V=500*(J-X),Q=200*(X-H),[Z,V,Q]};G1.lab.xyz=function(G){var J=G[0],X=G[1],H=G[2],Z,V,Q;V=(J+16)/116,Z=X/500+V,Q=V-H/200;var Y=Math.pow(V,3),W=Math.pow(Z,3),z=Math.pow(Q,3);return V=Y>0.008856?Y:(V-0.13793103448275862)/7.787,Z=W>0.008856?W:(Z-0.13793103448275862)/7.787,Q=z>0.008856?z:(Q-0.13793103448275862)/7.787,Z*=95.047,V*=100,Q*=108.883,[Z,V,Q]};G1.lab.lch=function(G){var J=G[0],X=G[1],H=G[2],Z,V,Q;if(Z=Math.atan2(H,X),V=Z*360/2/Math.PI,V<0)V+=360;return Q=Math.sqrt(X*X+H*H),[J,Q,V]};G1.lch.lab=function(G){var J=G[0],X=G[1],H=G[2],Z,V,Q;return Q=H/360*2*Math.PI,Z=X*Math.cos(Q),V=X*Math.sin(Q),[J,Z,V]};G1.rgb.ansi16=function(G){var J=G[0],X=G[1],H=G[2],Z=1 in arguments?arguments[1]:G1.rgb.hsv(G)[2];if(Z=Math.round(Z/50),Z===0)return 30;var V=30+(Math.round(H/255)<<2|Math.round(X/255)<<1|Math.round(J/255));if(Z===2)V+=60;return V};G1.hsv.ansi16=function(G){return G1.rgb.ansi16(G1.hsv.rgb(G),G[2])};G1.rgb.ansi256=function(G){var J=G[0],X=G[1],H=G[2];if(J===X&&X===H){if(J<8)return 16;if(J>248)return 231;return Math.round((J-8)/247*24)+232}var Z=16+36*Math.round(J/255*5)+6*Math.round(X/255*5)+Math.round(H/255*5);return Z};G1.ansi16.rgb=function(G){var J=G%10;if(J===0||J===7){if(G>50)J+=3.5;return J=J/10.5*255,[J,J,J]}var X=(~~(G>50)+1)*0.5,H=(J&1)*X*255,Z=(J>>1&1)*X*255,V=(J>>2&1)*X*255;return[H,Z,V]};G1.ansi256.rgb=function(G){if(G>=232){var J=(G-232)*10+8;return[J,J,J]}G-=16;var X,H=Math.floor(G/36)/5*255,Z=Math.floor((X=G%36)/6)/5*255,V=X%6/5*255;return[H,Z,V]};G1.rgb.hex=function(G){var J=((Math.round(G[0])&255)<<16)+((Math.round(G[1])&255)<<8)+(Math.round(G[2])&255),X=J.toString(16).toUpperCase();return"000000".substring(X.length)+X};G1.hex.rgb=function(G){var J=G.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!J)return[0,0,0];var X=J[0];if(J[0].length===3)X=X.split("").map(function(Y){return Y+Y}).join("");var H=parseInt(X,16),Z=H>>16&255,V=H>>8&255,Q=H&255;return[Z,V,Q]};G1.rgb.hcg=function(G){var J=G[0]/255,X=G[1]/255,H=G[2]/255,Z=Math.max(Math.max(J,X),H),V=Math.min(Math.min(J,X),H),Q=Z-V,Y,W;if(Q<1)Y=V/(1-Q);else Y=0;if(Q<=0)W=0;else if(Z===J)W=(X-H)/Q%6;else if(Z===X)W=2+(H-J)/Q;else W=4+(J-X)/Q+4;return W/=6,W%=1,[W*360,Q*100,Y*100]};G1.hsl.hcg=function(G){var J=G[1]/100,X=G[2]/100,H=1,Z=0;if(X<0.5)H=2*J*X;else H=2*J*(1-X);if(H<1)Z=(X-0.5*H)/(1-H);return[G[0],H*100,Z*100]};G1.hsv.hcg=function(G){var J=G[1]/100,X=G[2]/100,H=J*X,Z=0;if(H<1)Z=(X-H)/(1-H);return[G[0],H*100,Z*100]};G1.hcg.rgb=function(G){var J=G[0]/360,X=G[1]/100,H=G[2]/100;if(X===0)return[H*255,H*255,H*255];var Z=[0,0,0],V=J%1*6,Q=V%1,Y=1-Q,W=0;switch(Math.floor(V)){case 0:Z[0]=1,Z[1]=Q,Z[2]=0;break;case 1:Z[0]=Y,Z[1]=1,Z[2]=0;break;case 2:Z[0]=0,Z[1]=1,Z[2]=Q;break;case 3:Z[0]=0,Z[1]=Y,Z[2]=1;break;case 4:Z[0]=Q,Z[1]=0,Z[2]=1;break;default:Z[0]=1,Z[1]=0,Z[2]=Y}return W=(1-X)*H,[(X*Z[0]+W)*255,(X*Z[1]+W)*255,(X*Z[2]+W)*255]};G1.hcg.hsv=function(G){var J=G[1]/100,X=G[2]/100,H=J+X*(1-J),Z=0;if(H>0)Z=J/H;return[G[0],Z*100,H*100]};G1.hcg.hsl=function(G){var J=G[1]/100,X=G[2]/100,H=X*(1-J)+0.5*J,Z=0;if(H>0&&H<0.5)Z=J/(2*H);else if(H>=0.5&&H<1)Z=J/(2*(1-H));return[G[0],Z*100,H*100]};G1.hcg.hwb=function(G){var J=G[1]/100,X=G[2]/100,H=J+X*(1-J);return[G[0],(H-J)*100,(1-H)*100]};G1.hwb.hcg=function(G){var J=G[1]/100,X=G[2]/100,H=1-X,Z=H-J,V=0;if(Z<1)V=(H-Z)/(1-Z);return[G[0],Z*100,V*100]};G1.apple.rgb=function(G){return[G[0]/65535*255,G[1]/65535*255,G[2]/65535*255]};G1.rgb.apple=function(G){return[G[0]/255*65535,G[1]/255*65535,G[2]/255*65535]};G1.gray.rgb=function(G){return[G[0]/100*255,G[0]/100*255,G[0]/100*255]};G1.gray.hsl=G1.gray.hsv=function(G){return[0,0,G[0]]};G1.gray.hwb=function(G){return[0,100,G[0]]};G1.gray.cmyk=function(G){return[0,0,0,G[0]]};G1.gray.lab=function(G){return[G[0],0,0]};G1.gray.hex=function(G){var J=Math.round(G[0]/100*255)&255,X=(J<<16)+(J<<8)+J,H=X.toString(16).toUpperCase();return"000000".substring(H.length)+H};G1.rgb.gray=function(G){var J=(G[0]+G[1]+G[2])/3;return[J/255*100]}});var C$=S((Cg1,A$)=>{function Bq1(){var G={},J=Object.keys(VJ);for(var X=J.length,H=0;H<X;H++)G[J[H]]={distance:-1,parent:null};return G}function $q1(G){var J=Bq1(),X=[G];J[G].distance=0;while(X.length){var H=X.pop(),Z=Object.keys(VJ[H]);for(var V=Z.length,Q=0;Q<V;Q++){var Y=Z[Q],W=J[Y];if(W.distance===-1)W.distance=J[H].distance+1,W.parent=H,X.unshift(Y)}}return J}function Rq1(G,J){return function(X){return J(G(X))}}function Mq1(G,J){var X=[J[G].parent,G],H=VJ[J[G].parent][G],Z=J[G].parent;while(J[Z].parent)X.unshift(J[Z].parent),H=Rq1(VJ[J[Z].parent][Z],H),Z=J[Z].parent;return H.conversion=X,H}var VJ=j3();A$.exports=function(G){var J=$q1(G),X={},H=Object.keys(J);for(var Z=H.length,V=0;V<Z;V++){var Q=H[V],Y=J[Q];if(Y.parent===null)continue;X[Q]=Mq1(Q,J)}return X}});var S$=S((fg1,f$)=>{function jq1(G){var J=function(X){if(X===void 0||X===null)return X;if(arguments.length>1)X=Array.prototype.slice.call(arguments);return G(X)};if("conversion"in G)J.conversion=G.conversion;return J}function Dq1(G){var J=function(X){if(X===void 0||X===null)return X;if(arguments.length>1)X=Array.prototype.slice.call(arguments);var H=G(X);if(typeof H==="object")for(var Z=H.length,V=0;V<Z;V++)H[V]=Math.round(H[V]);return H};if("conversion"in G)J.conversion=G.conversion;return J}var D3=j3(),qq1=C$(),c5={},Fq1=Object.keys(D3);Fq1.forEach(function(G){c5[G]={},Object.defineProperty(c5[G],"channels",{value:D3[G].channels}),Object.defineProperty(c5[G],"labels",{value:D3[G].labels});var J=qq1(G),X=Object.keys(J);X.forEach(function(H){var Z=J[H];c5[G][H]=Dq1(Z),c5[G][H].raw=jq1(Z)})});f$.exports=c5});var L$=S((Sg1,P$)=>{function Iq1(){const G=new Map,J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};J.color.grey=J.color.gray;for(let Z of Object.keys(J)){const V=J[Z];for(let Q of Object.keys(V)){const Y=V[Q];J[Q]={open:`\x1B[${Y[0]}m`,close:`\x1B[${Y[1]}m`},V[Q]=J[Q],G.set(Y[0],Y[1])}Object.defineProperty(J,Z,{value:V,enumerable:!1}),Object.defineProperty(J,"codes",{value:G,enumerable:!1})}const X=(Z)=>Z,H=(Z,V,Q)=>[Z,V,Q];J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi={ansi:QJ(X,0)},J.color.ansi256={ansi256:YJ(X,0)},J.color.ansi16m={rgb:WJ(H,0)},J.bgColor.ansi={ansi:QJ(X,10)},J.bgColor.ansi256={ansi256:YJ(X,10)},J.bgColor.ansi16m={rgb:WJ(H,10)};for(let Z of Object.keys(a5)){if(typeof a5[Z]!=="object")continue;const V=a5[Z];if(Z==="ansi16")Z="ansi";if("ansi16"in V)J.color.ansi[Z]=QJ(V.ansi16,0),J.bgColor.ansi[Z]=QJ(V.ansi16,10);if("ansi256"in V)J.color.ansi256[Z]=YJ(V.ansi256,0),J.bgColor.ansi256[Z]=YJ(V.ansi256,10);if("rgb"in V)J.color.ansi16m[Z]=WJ(V.rgb,0),J.bgColor.ansi16m[Z]=WJ(V.rgb,10)}return J}var a5=S$(),QJ=(G,J)=>function(){return`\x1B[${G.apply(a5,arguments)+J}m`},YJ=(G,J)=>function(){const X=G.apply(a5,arguments);return`\x1B[${38+J};5;${X}m`},WJ=(G,J)=>function(){const X=G.apply(a5,arguments);return`\x1B[${38+J};2;${X[0]};${X[1]};${X[2]}m`};Object.defineProperty(P$,"exports",{enumerable:!0,get:Iq1})});var w$=S((Pg1,T$)=>{T$.exports=(G,J)=>{J=J||process.argv;const X=G.startsWith("-")?"":G.length===1?"-":"--",H=J.indexOf(X+G),Z=J.indexOf("--");return H!==-1&&(Z===-1?!0:H<Z)}});var k$=S((Lg1,N$)=>{function Cq1(G){if(G===0)return!1;return{level:G,hasBasic:!0,has256:G>=2,has16m:G>=3}}function fq1(G){if(r5===!1)return 0;if(l2("color=16m")||l2("color=full")||l2("color=truecolor"))return 3;if(l2("color=256"))return 2;if(G&&!G.isTTY&&r5!==!0)return 0;const J=r5?1:0;if(process.platform==="win32"){const X=Aq1.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(X[0])>=10&&Number(X[2])>=10586)return Number(X[2])>=14931?3:2;return 1}if("CI"in V2){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((X)=>(X in V2))||V2.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in V2)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(V2.TEAMCITY_VERSION)?1:0;if(V2.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in V2){const X=parseInt((V2.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(V2.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(V2.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(V2.TERM))return 1;if("COLORTERM"in V2)return 1;if(V2.TERM==="dumb")return J;return J}function I3(G){const J=fq1(G);return Cq1(J)}var Aq1=import.meta.require("os"),l2=w$(),V2=process.env,r5;if(l2("no-color")||l2("no-colors")||l2("color=false"))r5=!1;else if(l2("color")||l2("colors")||l2("color=true")||l2("color=always"))r5=!0;if("FORCE_COLOR"in V2)r5=V2.FORCE_COLOR.length===0||parseInt(V2.FORCE_COLOR,10)!==0;N$.exports={supportsColor:I3,stdout:I3(process.stdout),stderr:I3(process.stderr)}});var g$=S((Tg1,_$)=>{function v$(G){if(G[0]==="u"&&G.length===5||G[0]==="x"&&G.length===3)return String.fromCharCode(parseInt(G.slice(1),16));return Tq1.get(G)||G}function wq1(G,J){const X=[],H=J.trim().split(/\s*,\s*/g);let Z;for(let V of H)if(!isNaN(V))X.push(Number(V));else if(Z=V.match(Pq1))X.push(Z[2].replace(Lq1,(Q,Y,W)=>Y?v$(Y):W));else throw new Error(`Invalid Chalk template style argument: ${V} (in style '${G}')`);return X}function Nq1(G){E$.lastIndex=0;const J=[];let X;while((X=E$.exec(G))!==null){const H=X[1];if(X[2]){const Z=wq1(H,X[2]);J.push([H].concat(Z))}else J.push([H])}return J}function O$(G,J){const X={};for(let Z of J)for(let V of Z.styles)X[V[0]]=Z.inverse?null:V.slice(1);let H=G;for(let Z of Object.keys(X))if(Array.isArray(X[Z])){if(!(Z in H))throw new Error(`Unknown Chalk style: ${Z}`);if(X[Z].length>0)H=H[Z].apply(H,X[Z]);else H=H[Z]}return H}var Sq1=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,E$=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Pq1=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Lq1=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Tq1=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);_$.exports=(G,J)=>{const X=[],H=[];let Z=[];if(J.replace(Sq1,(V,Q,Y,W,z,B)=>{if(Q)Z.push(v$(Q));else if(W){const q=Z.join("");Z=[],H.push(X.length===0?q:O$(G,X)(q)),X.push({inverse:Y,styles:Nq1(W)})}else if(z){if(X.length===0)throw new Error("Found extraneous } in Chalk template literal");H.push(O$(G,X)(Z.join(""))),Z=[],X.pop()}else Z.push(B)}),H.push(Z.join("")),X.length>0){const V=`Chalk template literal is missing ${X.length} closing bracket${X.length===1?"":"s"} (\`}\`)`;throw new Error(V)}return H.join("")}});var x$=S((wg1,r9)=>{function b$(G,J){J=J||{};const X=A3?A3.level:0;G.level=J.level===void 0?X:J.level,G.enabled="enabled"in J?J.enabled:G.level>0}function a9(G){if(!this||!(this instanceof a9)||this.template){const J={};return b$(J,G),J.template=function(){const X=[].slice.call(arguments);return vq1.apply(null,[J.template].concat(X))},Object.setPrototypeOf(J,a9.prototype),Object.setPrototypeOf(J.template,J),J.template.constructor=a9,J.template}b$(this,G)}function zJ(G,J,X){const H=function(){return Oq1.apply(H,arguments)};H._styles=G,H._empty=J;const Z=this;return Object.defineProperty(H,"level",{enumerable:!0,get(){return Z.level},set(V){Z.level=V}}),Object.defineProperty(H,"enabled",{enumerable:!0,get(){return Z.enabled},set(V){Z.enabled=V}}),H.hasGrey=this.hasGrey||X==="gray"||X==="grey",H.__proto__=Eq1,H}function Oq1(){const G=arguments,J=G.length;let X=String(arguments[0]);if(J===0)return"";if(J>1)for(let Z=1;Z<J;Z++)X+=" "+G[Z];if(!this.enabled||this.level<=0||!X)return this._empty?"":X;const H=s1.dim.open;if(h$&&this.hasGrey)s1.dim.open="";for(let Z of this._styles.slice().reverse())X=Z.open+X.replace(Z.closeRe,Z.open)+Z.close,X=X.replace(/\r?\n/g,`${Z.close}\$&${Z.open}`);return s1.dim.open=H,X}function vq1(G,J){if(!Array.isArray(J))return[].slice.call(arguments,1).join(" ");const X=[].slice.call(arguments,2),H=[J.raw[0]];for(let Z=1;Z<J.length;Z++)H.push(String(X[Z-1]).replace(/[{}\\]/g,"\\$&")),H.push(String(J.raw[Z]));return kq1(G,H.join(""))}var C3=R$(),s1=L$(),A3=k$().stdout,kq1=g$(),h$=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),y$=["ansi","ansi","ansi256","ansi16m"],m$=new Set(["gray"]),i5=Object.create(null);if(h$)s1.blue.open="\x1B[94m";for(let G of Object.keys(s1))s1[G].closeRe=new RegExp(C3(s1[G].close),"g"),i5[G]={get(){const J=s1[G];return zJ.call(this,this._styles?this._styles.concat(J):[J],this._empty,G)}};i5.visible={get(){return zJ.call(this,this._styles||[],!0,"visible")}};s1.color.closeRe=new RegExp(C3(s1.color.close),"g");for(let G of Object.keys(s1.color.ansi)){if(m$.has(G))continue;i5[G]={get(){const J=this.level;return function(){const H={open:s1.color[y$[J]][G].apply(null,arguments),close:s1.color.close,closeRe:s1.color.closeRe};return zJ.call(this,this._styles?this._styles.concat(H):[H],this._empty,G)}}}}s1.bgColor.closeRe=new RegExp(C3(s1.bgColor.close),"g");for(let G of Object.keys(s1.bgColor.ansi)){if(m$.has(G))continue;const J="bg"+G[0].toUpperCase()+G.slice(1);i5[J]={get(){const X=this.level;return function(){const Z={open:s1.bgColor[y$[X]][G].apply(null,arguments),close:s1.bgColor.close,closeRe:s1.bgColor.closeRe};return zJ.call(this,this._styles?this._styles.concat(Z):[Z],this._empty,G)}}}}var Eq1=Object.defineProperties(()=>{},i5);Object.defineProperties(a9.prototype,i5);r9.exports=a9();r9.exports.supportsColor=A3;r9.exports.default=r9.exports});var p$=S((s$)=>{function r$(G){if(typeof WeakMap!="function")return null;var J=new WeakMap,X=new WeakMap;return(r$=function(H){return H?X:J})(G)}function _q1(G,J){if(!J&&G&&G.__esModule)return G;if(G===null||typeof G!="object"&&typeof G!="function")return{default:G};var X=r$(J);if(X&&X.has(G))return X.get(G);var H={__proto__:null},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in G)if(V!=="default"&&{}.hasOwnProperty.call(G,V)){var Q=Z?Object.getOwnPropertyDescriptor(G,V):null;Q&&(Q.get||Q.set)?Object.defineProperty(H,V,Q):H[V]=G[V]}return H.default=G,X&&X.set(G,H),H}function bq1(G){return{keyword:G.cyan,capitalized:G.yellow,jsxIdentifier:G.yellow,punctuator:G.yellow,number:G.magenta,string:G.green,regex:G.magenta,comment:G.gray,invalid:a$(a$(G.white,G.bgRed),G.bold)}}function mq1(G,J){let X="";for(let{type:H,value:Z}of u$(J)){const V=G[H];if(V)X+=Z.split(hq1).map((Q)=>V(Q)).join("\n");else X+=Z}return X}function d$(G){return i$.isColorSupported||G.forceColor}function xq1(G){if(G){var J;return(J=f3)!=null||(f3=S3.createColors(!0)),f3}return i$}function lq1(G,J={}){if(G!==""&&d$(J)){const X=bq1(xq1(J.forceColor));return mq1(X,G)}else return G}Object.defineProperty(s$,"__esModule",{value:!0});s$.default=lq1;s$.shouldHighlight=d$;var l$=U$(),c$=F9(),S3=_q1(F3(),!0),i$=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?S3.createColors(!1):S3.default,a$=(G,J)=>(X)=>G(J(X)),gq1=new Set(["as","async","from","get","of","set"]),hq1=/\r\n|[\n\r\u2028\u2029]/,yq1=/^[()[\]{}]$/,u$;{const G=/^[a-z][\w-]*$/i,J=function(X,H,Z){if(X.type==="name"){if(c$.isKeyword(X.value)||c$.isStrictReservedWord(X.value,!0)||gq1.has(X.value))return"keyword";if(G.test(X.value)&&(Z[H-1]==="<"||Z.slice(H-2,H)==="</"))return"jsxIdentifier";if(X.value[0]!==X.value[0].toLowerCase())return"capitalized"}if(X.type==="punctuator"&&yq1.test(X.value))return"bracket";if(X.type==="invalid"&&(X.value==="@"||X.value==="#"))return"punctuator";return X.type};u$=function*(X){let H;while(H=l$.default.exec(X)){const Z=l$.matchToToken(H);yield{type:J(Z,H.index,X),value:Z.value}}}}var f3=void 0;{let G,J;s$.getChalk=({forceColor:X})=>{var H;if((H=G)!=null||(G=x$()),X){var Z;return(Z=J)!=null||(J=new G.constructor({enabled:!0,level:1})),J}return G}}});var T3=S((XR)=>{function GR(G){if(typeof WeakMap!="function")return null;var J=new WeakMap,X=new WeakMap;return(GR=function(H){return H?X:J})(G)}function rq1(G,J){if(!J&&G&&G.__esModule)return G;if(G===null||typeof G!="object"&&typeof G!="function")return{default:G};var X=GR(J);if(X&&X.has(G))return X.get(G);var H={__proto__:null},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in G)if(V!=="default"&&{}.hasOwnProperty.call(G,V)){var Q=Z?Object.getOwnPropertyDescriptor(G,V):null;Q&&(Q.get||Q.set)?Object.defineProperty(H,V,Q):H[V]=G[V]}return H.default=G,X&&X.set(G,H),H}function uq1(G){if(G){var J;return(J=P3)!=null||(P3=L3.createColors(!0)),P3}return iq1}function dq1(G){return{gutter:G.gray,marker:o$(G.red,G.bold),message:o$(G.red,G.bold)}}function sq1(G,J,X){const H=Object.assign({column:0,line:-1},G.start),Z=Object.assign({},H,G.end),{linesAbove:V=2,linesBelow:Q=3}=X||{},Y=H.line,W=H.column,z=Z.line,B=Z.column;let q=Math.max(Y-(V+1),0),F=Math.min(J.length,z+Q);if(Y===-1)q=0;if(z===-1)F=J.length;const j=z-Y,f={};if(j)for(let y=0;y<=j;y++){const w=y+Y;if(!W)f[w]=!0;else if(y===0){const v=J[w-1].length;f[w]=[W,v-W+1]}else if(y===j)f[w]=[0,B];else{const v=J[w-y].length;f[w]=[0,v]}}else if(W===B)if(W)f[Y]=[W,0];else f[Y]=!0;else f[Y]=[W,B-W];return{start:q,end:F,markerLines:f}}function JR(G,J,X={}){const H=(X.highlightCode||X.forceColor)&&n$.shouldHighlight(X),Z=uq1(X.forceColor),V=dq1(Z),Q=(y,w)=>{return H?y(w):w},Y=G.split(t$),{start:W,end:z,markerLines:B}=sq1(J,Y,X),q=J.start&&typeof J.start.column==="number",F=String(z).length;let f=(H?n$.default(G,X):G).split(t$,z).slice(W,z).map((y,w)=>{const v=W+1+w,K1=` ${` ${v}`.slice(-F)} |`,e=B[v],$1=!B[v+1];if(e){let Q1="";if(Array.isArray(e)){const L1=y.slice(0,Math.max(e[0]-1,0)).replace(/[^\t]/g," "),E1=e[1]||1;if(Q1=["\n ",Q(V.gutter,K1.replace(/\d/g," "))," ",L1,Q(V.marker,"^").repeat(E1)].join(""),$1&&X.message)Q1+=" "+Q(V.message,X.message)}return[Q(V.marker,">"),Q(V.gutter,K1),y.length>0?` ${y}`:"",Q1].join("")}else return` ${Q(V.gutter,K1)}${y.length>0?` ${y}`:""}`}).join("\n");if(X.message&&!q)f=`${" ".repeat(F+1)}${X.message}\n${f}`;if(H)return Z.reset(f);else return f}function pq1(G,J,X,H={}){if(!e$){e$=!0;const V="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(V,"DeprecationWarning");else{const Q=new Error(V);Q.name="DeprecationWarning",console.warn(new Error(V))}}return X=Math.max(X,0),JR(G,{start:{column:X,line:J}},H)}Object.defineProperty(XR,"__esModule",{value:!0});XR.codeFrameColumns=JR;XR.default=pq1;var n$=p$(),L3=rq1(F3(),!0),iq1=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?L3.createColors(!1):L3.default,o$=(G,J)=>(X)=>G(J(X)),P3=void 0,e$=!1,t$=/\r\n|[\n\r\u2028\u2029]/});var YR=S((VR)=>{Object.defineProperty(VR,"__esModule",{value:!0});VR.default=void 0;var HR=F1(),eq1=HR,{react:tq1}=HR,{cloneNode:GF1,jsxExpressionContainer:JF1,variableDeclaration:XF1,variableDeclarator:HF1}=eq1,ZF1={ReferencedIdentifier(G,J){if(G.isJSXIdentifier()&&tq1.isCompatTag(G.node.name)&&!G.parentPath.isJSXMemberExpression())return;if(G.node.name==="this"){let H=G.scope;do if(H.path.isFunction()&&!H.path.isArrowFunctionExpression())break;while(H=H.parent);if(H)J.breakOnScopePaths.push(H.path)}const X=G.scope.getBinding(G.node.name);if(!X)return;for(let H of X.constantViolations)if(H.scope!==X.path.scope){J.mutableBinding=!0,G.stop();return}if(X!==J.scope.getBinding(G.node.name))return;J.bindings[G.node.name]=X}};class ZR{constructor(G,J){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=J,this.path=G,this.attachAfter=!1}isCompatibleScope(G){for(let J of Object.keys(this.bindings)){const X=this.bindings[J];if(!G.bindingIdentifierEquals(J,X.identifier))return!1}return!0}getCompatibleScopes(){let G=this.path.scope;do{if(this.isCompatibleScope(G))this.scopes.push(G);else break;if(this.breakOnScopePaths.includes(G.path))break}while(G=G.parent)}getAttachmentPath(){let G=this._getAttachmentPath();if(!G)return;let J=G.scope;if(J.path===G)J=G.scope.parent;if(J.path.isProgram()||J.path.isFunction())for(let X of Object.keys(this.bindings)){if(!J.hasOwnBinding(X))continue;const H=this.bindings[X];if(H.kind==="param"||H.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(H.path).key>=G.key){this.attachAfter=!0,G=H.path;for(let V of H.constantViolations)if(this.getAttachmentParentForPath(V).key>G.key)G=V}}return G}_getAttachmentPath(){const J=this.scopes.pop();if(!J)return;if(J.path.isFunction())if(this.hasOwnParamBindings(J)){if(this.scope===J)return;const X=J.path.get("body").get("body");for(let H=0;H<X.length;H++){if(X[H].node._blockHoist)continue;return X[H]}}else return this.getNextScopeAttachmentParent();else if(J.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){const G=this.scopes.pop();if(G)return this.getAttachmentParentForPath(G.path)}getAttachmentParentForPath(G){do if(!G.parentPath||Array.isArray(G.container)&&G.isStatement())return G;while(G=G.parentPath)}hasOwnParamBindings(G){for(let J of Object.keys(this.bindings)){if(!G.hasOwnBinding(J))continue;const X=this.bindings[J];if(X.kind==="param"&&X.constant)return!0}return!1}run(){if(this.path.traverse(ZF1,this),this.mutableBinding)return;this.getCompatibleScopes();const G=this.getAttachmentPath();if(!G)return;if(G.getFunctionParent()===this.path.getFunctionParent())return;let J=G.scope.generateUidIdentifier("ref");const X=HF1(J,this.path.node),H=this.attachAfter?"insertAfter":"insertBefore",[Z]=G[H]([G.isVariableDeclarator()?X:XF1("var",[X])]),V=this.path.parentPath;if(V.isJSXElement()&&this.path.container===V.node.children)J=JF1(J);return this.path.replaceWith(GF1(J)),G.isVariableDeclarator()?Z.get("init"):Z.get("declarations.0.init")}}VR.default=ZR});var UR=S((WR)=>{Object.defineProperty(WR,"__esModule",{value:!0});WR.hooks=void 0;var vg1=WR.hooks=[function(G,J){if(G.key==="test"&&(J.isWhile()||J.isSwitchCase())||G.key==="declaration"&&J.isExportDeclaration()||G.key==="body"&&J.isLabeledStatement()||G.listKey==="declarations"&&J.isVariableDeclaration()&&J.node.declarations.length===1||G.key==="expression"&&J.isExpressionStatement())return J.remove(),!0},function(G,J){if(J.isSequenceExpression()&&J.node.expressions.length===1)return J.replaceWith(J.node.expressions[0]),!0},function(G,J){if(J.isBinary()){if(G.key==="left")J.replaceWith(J.node.right);else J.replaceWith(J.node.left);return!0}},function(G,J){if(J.isIfStatement()&&G.key==="consequent"||G.key==="body"&&(J.isLoop()||J.isArrowFunctionExpression()))return G.replaceWith({type:"BlockStatement",body:[]}),!0}]});var UJ=S((qR)=>{function BF1(){var G;if(MR.call(this),UF1.resync.call(this),$R.call(this)){w3.call(this);return}if(!((G=this.opts)!=null&&G.noScope))BR.call(this);this.shareCommentsWithSiblings(),RR.call(this),w3.call(this)}function BR(){const G=KF1(this.node,!1,!1,!0);Object.keys(G).forEach((J)=>this.scope.removeBinding(J))}function $R(){if(this.parentPath){for(let G of VF1.hooks)if(G(this,this.parentPath))return!0}}function RR(){if(Array.isArray(this.container))this.container.splice(this.key,1),zF1.updateSiblingKeys.call(this,this.key,-1);else YF1._replaceWith.call(this,null)}function w3(){if(this._traverseFlags|=KR.SHOULD_SKIP|KR.REMOVED,this.parent)QF1.getCachedPaths(this.hub,this.parent).delete(this.node);this.node=null}function MR(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}Object.defineProperty(qR,"__esModule",{value:!0});qR._assertUnremoved=MR;qR._callRemovalHooks=$R;qR._markRemoved=w3;qR._remove=RR;qR._removeFromScope=BR;qR.remove=BF1;var VF1=UR(),QF1=Z5(),YF1=N3(),KR=_0(),WF1=F1(),zF1=KJ(),UF1=o2(),{getBindingIdentifiers:KF1}=WF1});var KJ=S((fR)=>{function vF1(G){BJ._assertUnremoved.call(this);const J=i9.call(this,G),{parentPath:X,parent:H}=this;if(X.isExpressionStatement()||X.isLabeledStatement()||jR(H)||X.isExportDefaultDeclaration()&&this.isDeclaration())return X.insertBefore(J);else if(this.isNodeType("Expression")&&!this.isJSXElement()||X.isForStatement()&&this.key==="init"){if(this.node)J.push(this.node);return this.replaceExpressionWithStatements(J)}else if(Array.isArray(this.container))return g3.call(this,J);else if(this.isStatementOrBlock()){const Z=this.node,V=Z&&(!this.isExpressionStatement()||Z.expression!=null);return this.replaceWith(FR(V?[Z]:[])),this.unshiftContainer("body",J)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function _3(G,J){CR.call(this,G,J.length);const X=[];this.container.splice(G,0,...J);for(let V=0;V<J.length;V++){var H;const Q=G+V,Y=this.getSibling(Q);if(X.push(Y),(H=this.context)!=null&&H.queue)k3.pushContext.call(Y,this.context)}const Z=k3._getQueueContexts.call(this);for(let V of X){k3.setScope.call(V),V.debug("Inserted.");for(let Q of Z)Q.maybeQueue(V,!0)}return X}function g3(G){return _3.call(this,this.key,G)}function DR(G){return _3.call(this,this.key+1,G)}function AR(G){return kF1(G.parent)&&(IR(G.parent.expressions)!==G.node||AR(G.parentPath))}function _F1(G,J){if(!LF1(G)||!NF1(G.left))return!1;const X=J.getBlockParent();return X.hasOwnBinding(G.left.name)&&X.getOwnBinding(G.left.name).constantViolations.length<=1}function gF1(G){if(BJ._assertUnremoved.call(this),this.isSequenceExpression())return IR(this.get("expressions")).insertAfter(G);const J=i9.call(this,G),{parentPath:X,parent:H}=this;if(X.isExpressionStatement()||X.isLabeledStatement()||jR(H)||X.isExportDefaultDeclaration()&&this.isDeclaration())return X.insertAfter(J.map((Z)=>{return wF1(Z)?O3(Z):Z}));else if(this.isNodeType("Expression")&&!this.isJSXElement()&&!X.isJSXElement()||X.isForStatement()&&this.key==="init"){const Z=this;if(Z.node){const V=Z.node;let{scope:Q}=this;if(Q.path.isPattern())return fF1(V),Z.replaceWith(PF1(CF1([],V),[])),Z.get("callee.body").insertAfter(J),[Z];if(AR(Z))J.unshift(V);else if(TF1(V)&&EF1(V.callee))J.unshift(V),J.push(OF1());else if(_F1(V,Q))J.unshift(V),J.push(E3(V.left));else if(Q.isPure(V,!0))J.push(V);else{if(X.isMethod({computed:!0,key:V}))Q=Q.parent;const Y=Q.generateDeclaredUidIdentifier();J.unshift(O3(SF1("=",E3(Y),V))),J.push(O3(E3(Y)))}}return this.replaceExpressionWithStatements(J)}else if(Array.isArray(this.container))return DR.call(this,J);else if(this.isStatementOrBlock()){const Z=this.node,V=Z&&(!this.isExpressionStatement()||Z.expression!=null);return this.replaceWith(FR(V?[Z]:[])),this.pushContainer("body",J)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function CR(G,J){if(!this.parent)return;const X=DF1.getCachedPaths(this.hub,this.parent)||[];for(let[,H]of X)if(typeof H.key==="number"&&H.container===this.container&&H.key>=G)H.key+=J}function i9(G){if(!G)return[];if(!Array.isArray(G))G=[G];for(let J=0;J<G.length;J++){const X=G[J];let H;if(!X)H="has falsy node";else if(typeof X!=="object")H="contains a non-object node";else if(!X.type)H="without a type";else if(X instanceof v3.default)H="has a NodePath when it expected a raw object";if(H){const Z=Array.isArray(X)?"array":typeof X;throw new Error(`Node list ${H} with the index of ${J} and type of ${Z}`)}}return G}function bF1(G,J){BJ._assertUnremoved.call(this),J=i9.call(this,J);const X=v3.default.get({parentPath:this,parent:this.node,container:this.node[G],listKey:G,key:0}).setContext(this.context);return g3.call(X,J)}function hF1(G,J){BJ._assertUnremoved.call(this);const X=i9.call(this,J),H=this.node[G];return v3.default.get({parentPath:this,parent:this.node,container:H,listKey:G,key:H.length}).setContext(this.context).replaceWithMultiple(X)}Object.defineProperty(fR,"__esModule",{value:!0});fR._containerInsert=_3;fR._containerInsertAfter=DR;fR._containerInsertBefore=g3;fR._verifyNodeList=i9;fR.insertAfter=gF1;fR.insertBefore=vF1;fR.pushContainer=hF1;fR.unshiftContainer=bF1;fR.updateSiblingKeys=CR;var DF1=Z5(),IF1=YR(),v3=_0(),k3=o2(),BJ=UJ(),AF1=F1(),{arrowFunctionExpression:CF1,assertExpression:fF1,assignmentExpression:SF1,blockStatement:FR,callExpression:PF1,cloneNode:E3,expressionStatement:O3,isAssignmentExpression:LF1,isCallExpression:TF1,isExportNamedDeclaration:jR,isExpression:wF1,isIdentifier:NF1,isSequenceExpression:kF1,isSuper:EF1,thisExpression:OF1}=AF1,IR=(G)=>G[G.length-1];fR.hoist=function G(J=this.scope){return new IF1.default(this,J).run()}});var N3=S((OR)=>{function Fj1(G){var J;u5.resync.call(this),G=y3._verifyNodeList.call(this,G),Vj1(G[0],this.node),Qj1(G[G.length-1],this.node),(J=wR.getCachedPaths(this.hub,this.parent))==null||J.delete(this.node),this.node=this.container[this.key]=null;const X=this.insertAfter(G);if(this.node)this.requeue();else this.remove();return X}function jj1(G){u5.resync.call(this);let J;try{G=`(${G})`,J=pF1.parse(G)}catch(H){const Z=H.loc;if(Z)H.message+=" - make sure this is an expression.\n"+dF1.codeFrameColumns(G,{start:{line:Z.line,column:Z.column+1}}),H.code="BABEL_REPLACE_SOURCE_ERROR";throw H}const X=J.program.body[0].expression;return h3.default.removeProperties(X),this.replaceWith(X)}function Dj1(G){if(u5.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let J=G instanceof sF1.default?G.node:G;if(!J)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===J)return[this];if(this.isProgram()&&!Kj1(J))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(J))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof J==="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let X="";if(this.isNodeType("Statement")&&kR(J)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(J)&&!this.parentPath.isExportDefaultDeclaration())J=Xj1(J),X="expression"}if(this.isNodeType("Expression")&&Bj1(J)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(J))return this.replaceExpressionWithStatements([J])}const H=this.node;if(H)Yj1(J,H),Rj1(H);return ER.call(this,J),this.type=J.type,u5.setScope.call(this),this.requeue(),[X?this.get(X):this]}function ER(G){var J;if(!this.container)throw new ReferenceError("Container is falsy");if(this.inList)TR(this.parent,this.key,[G]);else TR(this.parent,this.key,G);this.debug(`Replace with ${G==null?void 0:G.type}`),(J=wR.getCachedPaths(this.hub,this.parent))==null||J.set(G,this).delete(this.node),this.node=this.container[this.key]=G}function Ij1(G){u5.resync.call(this);const J=[],X=$J(G,J);if(X){for(let F of J)this.scope.push({id:F});return this.replaceWith(X)[0].get("expressions")}const H=this.getFunctionParent(),Z=H==null?void 0:H.node.async,V=H==null?void 0:H.node.generator,Q=oF1([],tF1(G));this.replaceWith(Gj1(Q,[]));const Y=this.get("callee");Y.get("body").scope.hoistVariables((F)=>this.scope.push({id:F}));const W=Y.getCompletionRecords();for(let F of W){if(!F.isExpressionStatement())continue;const j=F.findParent((f)=>f.isLoop());if(j){let f=j.getData("expressionReplacementReturnUid");if(!f)f=Y.scope.generateDeclaredUidIdentifier("ret"),Y.get("body").pushContainer("body",LR(m3(f))),j.setData("expressionReplacementReturnUid",f);else f=Zj1(f.name);F.get("expression").replaceWith(NR("=",m3(f),F.node.expression))}else F.replaceWith(LR(F.node.expression))}Y.arrowFunctionToExpression();const z=Y,B=Z&&h3.default.hasType(this.get("callee.body").node,"AwaitExpression",SR),q=V&&h3.default.hasType(this.get("callee.body").node,"YieldExpression",SR);if(B){if(z.set("async",!0),!q)this.replaceWith(eF1(this.node))}if(q)z.set("generator",!0),this.replaceWith(qj1(this.node,!0));return z.get("body.body")}function $J(G,J){const X=[];let H=!0;for(let Z of G){if(!PR(Z))H=!1;if(kR(Z))X.push(Z);else if(zj1(Z))X.push(Z.expression);else if($j1(Z)){if(Z.kind!=="var")return;for(let V of Z.declarations){const Q=Hj1(V);for(let Y of Object.keys(Q))J.push(m3(Q[Y]));if(V.init)X.push(NR("=",V.id,V.init))}H=!0}else if(Uj1(Z)){const V=Z.consequent?$J([Z.consequent],J):b3(),Q=Z.alternate?$J([Z.alternate],J):b3();if(!V||!Q)return;X.push(Jj1(Z.test,V,Q))}else if(Wj1(Z)){const V=$J(Z.body,J);if(!V)return;X.push(V)}else if(PR(Z)){if(G.indexOf(Z)===0)H=!0}else return}if(H)X.push(b3());if(X.length===1)return X[0];else return Mj1(X)}function Aj1(G){if(u5.resync.call(this),Array.isArray(G))if(Array.isArray(this.container)){G=y3._verifyNodeList.call(this,G);const J=y3._containerInsertAfter.call(this,G);return this.remove(),J}else return this.replaceWithMultiple(G);else return this.replaceWith(G)}Object.defineProperty(OR,"__esModule",{value:!0});OR._replaceWith=ER;OR.replaceExpressionWithStatements=Ij1;OR.replaceInline=Aj1;OR.replaceWith=Dj1;OR.replaceWithMultiple=Fj1;OR.replaceWithSourceString=jj1;var dF1=T3(),h3=c9(),sF1=_0(),wR=Z5(),y3=KJ(),pF1=rG(),nF1=F1(),u5=o2(),{FUNCTION_TYPES:SR,arrowFunctionExpression:oF1,assignmentExpression:NR,awaitExpression:eF1,blockStatement:tF1,buildUndefinedNode:b3,callExpression:Gj1,cloneNode:m3,conditionalExpression:Jj1,expressionStatement:Xj1,getBindingIdentifiers:Hj1,identifier:Zj1,inheritLeadingComments:Vj1,inheritTrailingComments:Qj1,inheritsComments:Yj1,isBlockStatement:Wj1,isEmptyStatement:PR,isExpression:kR,isExpressionStatement:zj1,isIfStatement:Uj1,isProgram:Kj1,isStatement:Bj1,isVariableDeclaration:$j1,removeComments:Rj1,returnStatement:LR,sequenceExpression:Mj1,validate:TR,yieldExpression:qj1}=nF1});var hR=S((bR)=>{function vR(G){return wj1.includes(G)}function Ej1(G){return Nj1.includes(G)}function Oj1(G){return kj1.includes(G)}function vj1(){const G=this.evaluate();if(G.confident)return!!G.value}function F0(G,J){if(!J.confident)return;J.deoptPath=G,J.confident=!1}function $2(G,J){const{node:X}=G,{seen:H}=J;if(H.has(X)){const Z=H.get(X);if(Z.resolved)return Z.value;else{F0(G,J);return}}else{const Z={resolved:!1};H.set(X,Z);const V=_j1(G,J);if(J.confident)Z.resolved=!0,Z.value=V;return V}}function _j1(G,J){if(!J.confident)return;if(G.isSequenceExpression()){const X=G.get("expressions");return $2(X[X.length-1],J)}if(G.isStringLiteral()||G.isNumericLiteral()||G.isBooleanLiteral())return G.node.value;if(G.isNullLiteral())return null;if(G.isTemplateLiteral())return gR(G,G.node.quasis,J);if(G.isTaggedTemplateExpression()&&G.get("tag").isMemberExpression()){const X=G.get("tag.object"),{node:{name:H}}=X,Z=G.get("tag.property");if(X.isIdentifier()&&H==="String"&&!G.scope.getBinding(H)&&Z.isIdentifier()&&Z.node.name==="raw")return gR(G,G.node.quasi.quasis,J,!0)}if(G.isConditionalExpression()){const X=$2(G.get("test"),J);if(!J.confident)return;if(X)return $2(G.get("consequent"),J);else return $2(G.get("alternate"),J)}if(G.isExpressionWrapper())return $2(G.get("expression"),J);if(G.isMemberExpression()&&!G.parentPath.isCallExpression({callee:G.node})){const X=G.get("property"),H=G.get("object");if(H.isLiteral()){const Z=H.node.value,V=typeof Z;let Q=null;if(G.node.computed){if(Q=$2(X,J),!J.confident)return}else if(X.isIdentifier())Q=X.node.name;if((V==="number"||V==="string")&&Q!=null&&(typeof Q==="number"||typeof Q==="string"))return Z[Q]}}if(G.isReferencedIdentifier()){const X=G.scope.getBinding(G.node.name);if(X){if(X.constantViolations.length>0||G.node.start<X.path.node.end){F0(X.path,J);return}if(X.hasValue)return X.value}const H=G.node.name;if(_R.has(H)){if(!X)return _R.get(H);F0(X.path,J);return}const Z=G.resolve();if(Z===G){F0(G,J);return}else return $2(Z,J)}if(G.isUnaryExpression({prefix:!0})){if(G.node.operator==="void")return;const X=G.get("argument");if(G.node.operator==="typeof"&&(X.isFunction()||X.isClass()))return"function";const H=$2(X,J);if(!J.confident)return;switch(G.node.operator){case"!":return!H;case"+":return+H;case"-":return-H;case"~":return~H;case"typeof":return typeof H}}if(G.isArrayExpression()){const X=[],H=G.get("elements");for(let Z of H){const V=Z.evaluate();if(V.confident)X.push(V.value);else{F0(V.deopt,J);return}}return X}if(G.isObjectExpression()){const X={},H=G.get("properties");for(let Z of H){if(Z.isObjectMethod()||Z.isSpreadElement()){F0(Z,J);return}const V=Z.get("key");let Q;if(Z.node.computed){if(Q=V.evaluate(),!Q.confident){F0(Q.deopt,J);return}Q=Q.value}else if(V.isIdentifier())Q=V.node.name;else Q=V.node.value;let W=Z.get("value").evaluate();if(!W.confident){F0(W.deopt,J);return}W=W.value,X[Q]=W}return X}if(G.isLogicalExpression()){const X=J.confident,H=$2(G.get("left"),J),Z=J.confident;J.confident=X;const V=$2(G.get("right"),J),Q=J.confident;switch(G.node.operator){case"||":if(J.confident=Z&&(!!H||Q),!J.confident)return;return H||V;case"&&":if(J.confident=Z&&(!H||Q),!J.confident)return;return H&&V;case"??":if(J.confident=Z&&(H!=null||Q),!J.confident)return;return H!=null?H:V}}if(G.isBinaryExpression()){const X=$2(G.get("left"),J);if(!J.confident)return;const H=$2(G.get("right"),J);if(!J.confident)return;switch(G.node.operator){case"-":return X-H;case"+":return X+H;case"/":return X/H;case"*":return X*H;case"%":return X%H;case"**":return Math.pow(X,H);case"<":return X<H;case">":return X>H;case"<=":return X<=H;case">=":return X>=H;case"==":return X==H;case"!=":return X!=H;case"===":return X===H;case"!==":return X!==H;case"|":return X|H;case"&":return X&H;case"^":return X^H;case"<<":return X<<H;case">>":return X>>H;case">>>":return X>>>H}}if(G.isCallExpression()){const X=G.get("callee");let H,Z;if(X.isIdentifier()&&!G.scope.getBinding(X.node.name)&&(vR(X.node.name)||Ej1(X.node.name)))Z=global[X.node.name];if(X.isMemberExpression()){const V=X.get("object"),Q=X.get("property");if(V.isIdentifier()&&Q.isIdentifier()&&vR(V.node.name)&&!Oj1(Q.node.name)){H=global[V.node.name];const Y=Q.node.name;if(hasOwnProperty.call(H,Y))Z=H[Y]}if(V.isLiteral()&&Q.isIdentifier()){const Y=typeof V.node.value;if(Y==="string"||Y==="number")H=V.node.value,Z=H[Q.node.name]}}if(Z){const V=G.get("arguments").map((Q)=>$2(Q,J));if(!J.confident)return;return Z.apply(H,V)}}F0(G,J)}function gR(G,J,X,H=!1){let Z="",V=0;const Q=G.isTemplateLiteral()?G.get("expressions"):G.get("quasi.expressions");for(let Y of J){if(!X.confident)break;Z+=H?Y.value.raw:Y.value.cooked;const W=Q[V++];if(W)Z+=String($2(W,X))}if(!X.confident)return;return Z}function gj1(){const G={confident:!0,deoptPath:null,seen:new Map};let J=$2(this,G);if(!G.confident)J=void 0;return{confident:G.confident,deopt:G.deoptPath,value:J}}Object.defineProperty(bR,"__esModule",{value:!0});bR.evaluate=gj1;bR.evaluateTruthy=vj1;var wj1=["Number","String","Math"],Nj1=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],kj1=["random"],_R=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]])});var xR=S((yR)=>{function x3(G){return{code:(J)=>`/* @babel/template */;\n${J}`,validate:()=>{},unwrap:(J)=>{return G(J.program.body.slice(1))}}}Object.defineProperty(yR,"__esModule",{value:!0});yR.statements=yR.statement=yR.smart=yR.program=yR.expression=void 0;var yj1=F1(),{assertExpressionStatement:mj1}=yj1,xg1=yR.smart=x3((G)=>{if(G.length>1)return G;else return G[0]}),lg1=yR.statements=x3((G)=>G),cg1=yR.statement=x3((G)=>{if(G.length===0)throw new Error("Found nothing to return.");if(G.length>1)throw new Error("Found multiple statements but wanted one");return G[0]}),xj1=yR.expression={code:(G)=>`(\n${G}\n)`,validate:(G)=>{if(G.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(xj1.unwrap(G).start===0)throw new Error("Parse result included parens.")},unwrap:({program:G})=>{const[J]=G.body;return mj1(J),J.expression}},ag1=yR.program={code:(G)=>G,validate:()=>{},unwrap:(G)=>G.program}});var RJ=S((lR)=>{function uj1(G,J){if(G==null)return{};var X={};for(var H in G)if({}.hasOwnProperty.call(G,H)){if(J.includes(H))continue;X[H]=G[H]}return X}function dj1(G,J){const{placeholderWhitelist:X=G.placeholderWhitelist,placeholderPattern:H=G.placeholderPattern,preserveComments:Z=G.preserveComments,syntacticPlaceholders:V=G.syntacticPlaceholders}=J;return{parser:Object.assign({},G.parser,J.parser),placeholderWhitelist:X,placeholderPattern:H,preserveComments:Z,syntacticPlaceholders:V}}function sj1(G){if(G!=null&&typeof G!=="object")throw new Error("Unknown template options.");const J=G||{},{placeholderWhitelist:X,placeholderPattern:H,preserveComments:Z,syntacticPlaceholders:V}=J,Q=uj1(J,ij1);if(X!=null&&!(X instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(H!=null&&!(H instanceof RegExp)&&H!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(Z!=null&&typeof Z!=="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(V!=null&&typeof V!=="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(V===!0&&(X!=null||H!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:Q,placeholderWhitelist:X||void 0,placeholderPattern:H==null?void 0:H,preserveComments:Z==null?void 0:Z,syntacticPlaceholders:V==null?void 0:V}}function pj1(G){if(Array.isArray(G))return G.reduce((J,X,H)=>{return J["$"+H]=X,J},{});else if(typeof G==="object"||G==null)return G||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}Object.defineProperty(lR,"__esModule",{value:!0});lR.merge=dj1;lR.normalizeReplacements=pj1;lR.validate=sj1;var ij1=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]});var l3=S((aR)=>{function BD1(G,J,X){const{placeholderWhitelist:H,placeholderPattern:Z,preserveComments:V,syntacticPlaceholders:Q}=X,Y=MD1(J,X.parser,Q);zD1(Y,{preserveComments:V}),G.validate(Y);const W={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:H,placeholderPattern:Z,syntacticPlaceholders:Q};return UD1(Y,$D1,W),Object.assign({ast:Y},W.syntactic.placeholders.length?W.syntactic:W.legacy)}function $D1(G,J,X){var H;let Z,V=X.syntactic.placeholders.length>0;if(MJ(G)){if(X.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");Z=G.name.name,V=!0}else if(V||X.syntacticPlaceholders)return;else if(VD1(G)||QD1(G))Z=G.name;else if(cR(G))Z=G.value;else return;if(V&&(X.placeholderPattern!=null||X.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!V&&(X.placeholderPattern===!1||!(X.placeholderPattern||KD1).test(Z))&&!((H=X.placeholderWhitelist)!=null&&H.has(Z)))return;J=J.slice();const{node:Q,key:Y}=J[J.length-1];let W;if(cR(G)||MJ(G,{expectedNode:"StringLiteral"}))W="string";else if(YD1(Q)&&Y==="arguments"||XD1(Q)&&Y==="arguments"||ZD1(Q)&&Y==="params")W="param";else if(HD1(Q)&&!MJ(G))W="statement",J=J.slice(0,-1);else if(WD1(G)&&MJ(G))W="statement";else W="other";const{placeholders:z,placeholderNames:B}=!V?X.legacy:X.syntactic;z.push({name:Z,type:W,resolve:(q)=>RD1(q,J),isDuplicate:B.has(Z)}),B.add(Z)}function RD1(G,J){let X=G;for(let V=0;V<J.length-1;V++){const{key:Q,index:Y}=J[V];if(Y===void 0)X=X[Q];else X=X[Q][Y]}const{key:H,index:Z}=J[J.length-1];return{parent:X,key:H,index:Z}}function MD1(G,J,X){const H=(J.plugins||[]).slice();if(X!==!1)H.push("placeholders");J=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},J,{plugins:H});try{return GD1.parse(G,J)}catch(Z){const V=Z.loc;if(V)Z.message+="\n"+JD1.codeFrameColumns(G,{start:V}),Z.code="BABEL_TEMPLATE_PARSE_ERROR";throw Z}}Object.defineProperty(aR,"__esModule",{value:!0});aR.default=BD1;var tj1=F1(),GD1=rG(),JD1=T3(),{isCallExpression:XD1,isExpressionStatement:HD1,isFunction:ZD1,isIdentifier:VD1,isJSXIdentifier:QD1,isNewExpression:YD1,isPlaceholder:MJ,isStatement:WD1,isStringLiteral:cR,removePropertiesDeep:zD1,traverse:UD1}=tj1,KD1=/^[_$A-Z0-9]+$/});var r3=S((uR)=>{function CD1(G,J){const X=a3(G.ast);if(J)G.placeholders.forEach((H)=>{if(!hasOwnProperty.call(J,H.name)){const Z=H.name;throw new Error(`Error: No substitution given for "${Z}". If this is not meant to be a
7
+ placeholder you may want to consider passing one of the following options to @babel/template:
8
+ - { placeholderPattern: false, placeholderWhitelist: new Set(['${Z}'])}
9
+ - { placeholderPattern: /^${Z}\$/ }`)}}),Object.keys(J).forEach((H)=>{if(!G.placeholderNames.has(H))throw new Error(`Unknown substitution "${H}" given`)});return G.placeholders.slice().reverse().forEach((H)=>{try{fD1(H,X,J&&J[H.name]||null)}catch(Z){throw Z.message=`@babel/template placeholder "${H.name}": ${Z.message}`,Z}}),X}function fD1(G,J,X){if(G.isDuplicate){if(Array.isArray(X))X=X.map((Y)=>a3(Y));else if(typeof X==="object")X=a3(X)}const{parent:H,key:Z,index:V}=G.resolve(J);if(G.type==="string"){if(typeof X==="string")X=AD1(X);if(!X||!ID1(X))throw new Error("Expected string substitution")}else if(G.type==="statement"){if(V===void 0){if(!X)X=DD1();else if(Array.isArray(X))X=jD1(X);else if(typeof X==="string")X=c3(qJ(X));else if(!rR(X))X=c3(X)}else if(X&&!Array.isArray(X)){if(typeof X==="string")X=qJ(X);if(!rR(X))X=c3(X)}}else if(G.type==="param"){if(typeof X==="string")X=qJ(X);if(V===void 0)throw new Error("Assertion failure.")}else{if(typeof X==="string")X=qJ(X);if(Array.isArray(X))throw new Error("Cannot replace single expression with an array.")}function Q(Y,W,z){const B=Y[W];if(Y[W]=z,B.type==="Identifier"){if(B.typeAnnotation)z.typeAnnotation=B.typeAnnotation;if(B.optional)z.optional=B.optional;if(B.decorators)z.decorators=B.decorators}}if(V===void 0)iR(H,Z,X),Q(H,Z,X);else{const Y=H[Z].slice();if(G.type==="statement"||G.type==="param")if(X==null)Y.splice(V,1);else if(Array.isArray(X))Y.splice(V,1,...X);else Q(Y,V,X);else Q(Y,V,X);iR(H,Z,Y),H[Z]=Y}}Object.defineProperty(uR,"__esModule",{value:!0});uR.default=CD1;var FD1=F1(),{blockStatement:jD1,cloneNode:a3,emptyStatement:DD1,expressionStatement:c3,identifier:qJ,isStatement:rR,isStringLiteral:ID1,stringLiteral:AD1,validate:iR}=FD1});var sR=S((dR)=>{function wD1(G,J,X){J=G.code(J);let H;return(Z)=>{const V=PD1.normalizeReplacements(Z);if(!H)H=LD1.default(G,J,X);return G.unwrap(TD1.default(H,V))}}Object.defineProperty(dR,"__esModule",{value:!0});dR.default=wD1;var PD1=RJ(),LD1=l3(),TD1=r3()});var nR=S((pR)=>{function vD1(G,J,X){const{metadata:H,names:Z}=_D1(G,J,X);return(V)=>{const Q={};return V.forEach((Y,W)=>{Q[Z[W]]=Y}),(Y)=>{const W=kD1.normalizeReplacements(Y);if(W)Object.keys(W).forEach((z)=>{if(hasOwnProperty.call(Q,z))throw new Error("Unexpected replacement overlap.")});return G.unwrap(OD1.default(H,W?Object.assign(W,Q):Q))}}}function _D1(G,J,X){let H="BABEL_TPL$";const Z=J.join("");do H="$$"+H;while(Z.includes(H));const{names:V,code:Q}=gD1(J,H);return{metadata:ED1.default(G,G.code(Q),{parser:X.parser,placeholderWhitelist:new Set(V.concat(X.placeholderWhitelist?Array.from(X.placeholderWhitelist):[])),placeholderPattern:X.placeholderPattern,preserveComments:X.preserveComments,syntacticPlaceholders:X.syntacticPlaceholders}),names:V}}function gD1(G,J){const X=[];let H=G[0];for(let Z=1;Z<G.length;Z++){const V=`${J}${Z-1}`;X.push(V),H+=V+G[Z]}return{names:X,code:H}}Object.defineProperty(pR,"__esModule",{value:!0});pR.default=vD1;var kD1=RJ(),ED1=l3(),OD1=r3()});var HM=S((XM)=>{function JM(G,J){const X=new WeakMap,H=new WeakMap,Z=J||e2.validate(null);return Object.assign((V,...Q)=>{if(typeof V==="string"){if(Q.length>1)throw new Error("Unexpected extra params.");return GM(oR.default(G,V,e2.merge(Z,e2.validate(Q[0]))))}else if(Array.isArray(V)){let Y=X.get(V);if(!Y)Y=eR.default(G,V,Z),X.set(V,Y);return GM(Y(Q))}else if(typeof V==="object"&&V){if(Q.length>0)throw new Error("Unexpected extra params.");return JM(G,e2.merge(Z,e2.validate(V)))}throw new Error(`Unexpected template param ${typeof V}`)},{ast:(V,...Q)=>{if(typeof V==="string"){if(Q.length>1)throw new Error("Unexpected extra params.");return oR.default(G,V,e2.merge(e2.merge(Z,e2.validate(Q[0])),tR))()}else if(Array.isArray(V)){let Y=H.get(V);if(!Y)Y=eR.default(G,V,e2.merge(Z,tR)),H.set(V,Y);return Y(Q)()}throw new Error(`Unexpected template param ${typeof V}`)}})}function GM(G){let J="";try{throw new Error}catch(X){if(X.stack)J=X.stack.split("\n").slice(3).join("\n")}return(X)=>{try{return G(X)}catch(H){throw H.stack+=`\n =============\n${J}`,H}}}Object.defineProperty(XM,"__esModule",{value:!0});XM.default=JM;var e2=RJ(),oR=sR(),eR=nR(),tR=e2.validate({placeholderPattern:!1})});var QM=S((ZM)=>{Object.defineProperty(ZM,"__esModule",{value:!0});ZM.statements=ZM.statement=ZM.smart=ZM.program=ZM.expression=ZM.default=void 0;var u9=xR(),d9=HM(),i3=ZM.smart=d9.default(u9.smart),yD1=ZM.statement=d9.default(u9.statement),mD1=ZM.statements=d9.default(u9.statements),xD1=ZM.expression=d9.default(u9.expression),lD1=ZM.program=d9.default(u9.program),og1=ZM.default=Object.assign(i3.bind(void 0),{smart:i3,statement:yD1,statements:mD1,expression:xD1,program:lD1,ast:i3.ast})});var MM=S((RM)=>{function jI1(){let G;if(this.isMemberExpression())G=this.node.property;else if(this.isProperty()||this.isMethod())G=this.node.key;else throw new ReferenceError("todo");if(!this.node.computed){if(eD1(G))G=UM(G.name)}return G}function DI1(){const G=this.get("body"),J=G.node;if(Array.isArray(G))throw new Error("Can't convert array path to a block statement");if(!J)throw new Error("Can't convert node without a body");if(G.isBlockStatement())return J;const X=[];let H="body",Z,V;if(G.isStatement())V="body",Z=0,X.push(G.node);else if(H+=".body.0",this.isFunction())Z="argument",X.push(QI1(G.node));else Z="expression",X.push(zM(G.node));this.node.body=nD1(X);const Q=this.get(H);return pD1.setup.call(G,Q,V?Q.node[V]:Q.node,V,Z),this.node}function II1(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");BM(this)}function AI1(G,J){G.node.type=J}function CI1({allowInsertArrow:G=!0,allowInsertArrowWithRest:J=G,noNewArrows:X=!((H)=>(H=arguments[0])==null?void 0:H.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let H=this;if(!X){var Z;H=(Z=H.ensureFunctionName(!1))!=null?Z:H}const{thisBinding:V,fnPath:Q}=BM(H,X,G,J);if(Q.ensureBlock(),AI1(Q,"FunctionExpression"),!X){const Y=V?null:Q.scope.generateUidIdentifier("arrowCheckId");if(Y)Q.parentPath.scope.push({id:Y,init:ZI1([])});return Q.get("body").unshiftContainer("body",zM(d5(this.hub.addHelper("newArrowCheck"),[s9(),Y?_1(Y.name):_1(V)]))),Q.replaceWith(d5(c2(Q.node,_1("bind")),[Y?_1(Y.name):s9()])),Q.get("callee.object")}return Q}function BM(G,J=!0,X=!0,H=!0){let Z,V=G.findParent((j)=>{if(j.isArrowFunctionExpression()){var f;return(f=Z)!=null||(Z=j),!1}return j.isFunction()||j.isProgram()||j.isClassProperty({static:!1})||j.isClassPrivateProperty({static:!1})});const Q=V.isClassMethod({kind:"constructor"});if(V.isClassProperty()||V.isClassPrivateProperty())if(Z)V=Z;else if(X)G.replaceWith(d5(p3([],KM(G.node)),[])),V=G.get("callee"),G=V.get("body");else throw G.buildCodeFrameError("Unable to transform arrow inside class property");const{thisPaths:Y,argumentsPaths:W,newTargetPaths:z,superProps:B,superCalls:q}=EI1(G);if(Q&&q.length>0){if(!X)throw q[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!H)throw q[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");const j=[];V.traverse(fI1,{allSuperCalls:j});const f=wI1(V);j.forEach((y)=>{const w=_1(f);w.loc=y.node.callee.loc,y.get("callee").replaceWith(w)})}if(W.length>0){const j=p9(V,"arguments",()=>{const f=()=>_1("arguments");if(V.scope.path.isProgram())return oD1(u3("===",zI1("typeof",f()),UM("undefined")),V.scope.buildUndefinedNode(),f());else return f()});W.forEach((f)=>{const y=_1(j);y.loc=f.node.loc,f.replaceWith(y)})}if(z.length>0){const j=p9(V,"newtarget",()=>XI1(_1("new"),_1("target")));z.forEach((f)=>{const y=_1(j);y.loc=f.node.loc,f.replaceWith(y)})}if(B.length>0){if(!X)throw B[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");B.reduce((f,y)=>f.concat(PI1(y)),[]).forEach((f)=>{const y=f.node.computed?"":f.get("property").node.name,w=f.parentPath,v=w.isAssignmentExpression({left:f.node}),h=w.isCallExpression({callee:f.node}),K1=w.isTaggedTemplateExpression({tag:f.node}),e=NI1(V,v,y),$1=[];if(f.node.computed)$1.push(f.get("property").node);if(v){const L1=w.node.right;$1.push(L1)}const Q1=d5(_1(e),$1);if(h)w.unshiftContainer("arguments",s9()),f.replaceWith(c2(Q1,_1("call"))),Y.push(w.get("arguments.0"));else if(v)w.replaceWith(Q1);else if(K1)f.replaceWith(d5(c2(Q1,_1("bind"),!1),[s9()])),Y.push(f.get("arguments.0"));else f.replaceWith(Q1)})}let F;if(Y.length>0||!J){if(F=TI1(V,Q),J||Q&&$M(V)){if(Y.forEach((j)=>{const f=j.isJSX()?tD1(F):_1(F);f.loc=j.node.loc,j.replaceWith(f)}),!J)F=null}}return{thisBinding:F,fnPath:G}}function SI1(G){return JI1.includes(G)}function PI1(G){if(G.parentPath.isAssignmentExpression()&&G.parentPath.node.operator!=="="){const X=G.parentPath,H=X.node.operator.slice(0,-1),Z=X.node.right,V=SI1(H);if(G.node.computed){const Q=G.scope.generateDeclaredUidIdentifier("tmp"),Y=G.node.object,W=G.node.property;X.get("left").replaceWith(c2(Y,U5("=",Q,W),!0)),X.get("right").replaceWith(J(V?"=":H,c2(Y,_1(Q.name),!0),Z))}else{const Q=G.node.object,Y=G.node.property;X.get("left").replaceWith(c2(Q,Y)),X.get("right").replaceWith(J(V?"=":H,c2(Q,_1(Y.name)),Z))}if(V)X.replaceWith(GI1(H,X.node.left,X.node.right));else X.node.operator="=";return[X.get("left"),X.get("right").get("left")]}else if(G.parentPath.isUpdateExpression()){const X=G.parentPath,H=G.scope.generateDeclaredUidIdentifier("tmp"),Z=G.node.computed?G.scope.generateDeclaredUidIdentifier("prop"):null,V=[U5("=",H,c2(G.node.object,Z?U5("=",Z,G.node.property):G.node.property,G.node.computed)),U5("=",c2(G.node.object,Z?_1(Z.name):G.node.property,G.node.computed),u3(G.parentPath.node.operator[0],_1(H.name),HI1(1)))];if(!G.parentPath.node.prefix)V.push(_1(H.name));X.replaceWith(YI1(V));const Q=X.get("expressions.0.right"),Y=X.get("expressions.1.left");return[Q,Y]}return[G];function J(X,H,Z){if(X==="=")return U5("=",H,Z);else return u3(X,H,Z)}}function $M(G){return G.isClassMethod()&&!!G.parentPath.parentPath.node.superClass}function TI1(G,J){return p9(G,"this",(X)=>{if(!J||!$M(G))return s9();G.traverse(LI1,{supers:new WeakSet,thisBinding:X})})}function wI1(G){return p9(G,"supercall",()=>{const J=G.scope.generateUidIdentifier("args");return p3([VI1(J)],d5(d3(),[WI1(_1(J.name))]))})}function NI1(G,J,X){return p9(G,`superprop_${J?"set":"get"}:${X||""}`,()=>{const Z=[];let V;if(X)V=c2(d3(),_1(X));else{const Q=G.scope.generateUidIdentifier("prop");Z.unshift(Q),V=c2(d3(),_1(Q.name),!0)}if(J){const Q=G.scope.generateUidIdentifier("value");Z.push(Q),V=U5("=",V,_1(Q.name))}return p3(Z,V)})}function p9(G,J,X){const H="binding:"+J;let Z=G.getData(H);if(!Z){const V=G.scope.generateUidIdentifier(J);Z=V.name,G.setData(H,Z),G.scope.push({id:V,init:X(Z)})}return Z}function EI1(G){const J=[],X=[],H=[],Z=[],V=[];return G.traverse(kI1,{thisPaths:J,argumentsPaths:X,newTargetPaths:H,superProps:Z,superCalls:V}),{thisPaths:J,argumentsPaths:X,newTargetPaths:H,superProps:Z,superCalls:V}}function OI1(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const G=this.get("declaration");if(this.isExportDefaultDeclaration()){const Z=G.isFunctionDeclaration()||G.isClassDeclaration(),V=G.isFunctionExpression()||G.isClassExpression(),Q=G.isScope()?G.scope.parent:G.scope;let Y=G.node.id,W=!1;if(!Y){if(W=!0,Y=Q.generateUidIdentifier("default"),Z||V)G.node.id=K5(Y)}else if(V&&Q.hasBinding(Y.name))W=!0,Y=Q.generateUidIdentifier(Y.name);const z=Z?G.node:MI1("var",[qI1(K5(Y),G.node)]),B=YM(null,[WM(K5(Y),_1("default"))]);if(this.insertAfter(B),this.replaceWith(z),W)Q.registerDeclaration(this);return this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const J=G.getOuterBindingIdentifiers(),X=Object.keys(J).map((Z)=>{return WM(_1(Z),_1(Z))}),H=YM(null,X);return this.insertAfter(H),this.replaceWith(G.node),this}function _I1(G){if(this.node.id)return this;const J=RI1(this.node,this.parent);if(J==null)return this;let{name:X}=J;if(!G&&/[\uD800-\uDFFF]/.test(X))return null;if(X.startsWith("get ")||X.startsWith("set "))return null;X=UI1(X.replace(/[/ ]/g,"_"));const H=_1(X);FI1(H,J.originalNode);const Z={needsRename:!1,name:X},{scope:V}=this,Q=V.getOwnBinding(X);if(Q){if(Q.kind==="param")Z.needsRename=!0}else if(V.parent.hasBinding(X)||V.hasGlobal(X))this.traverse(vI1,Z);if(!Z.needsRename)return this.node.id=H,V.getProgramParent().references[H.name]=!0,this;if(V.hasBinding(H.name)&&!V.hasGlobal(H.name))return V.rename(H.name),this.node.id=H,V.getProgramParent().references[H.name]=!0,this;if(!KI1(this.node))return null;const Y=V.generateUidIdentifier(H.name),W=[];for(let B=0,q=gI1(this.node);B<q;B++)W.push(V.generateUidIdentifier("x"));const z=sD1.default.expression.ast`
10
+ (function (${Y}) {
11
+ function ${H}(${W}) {
12
+ return ${K5(Y)}.apply(this, arguments);
13
+ }
14
+
15
+ ${K5(H)}.toString = function () {
16
+ return ${K5(Y)}.toString();
17
+ }
18
+
19
+ return ${K5(H)};
20
+ })(${KM(this.node)})
21
+ `;return this.replaceWith(z)[0].get("arguments.0")}function gI1(G){const J=G.params.findIndex((X)=>BI1(X)||$I1(X));return J===-1?G.params.length:J}Object.defineProperty(RM,"__esModule",{value:!0});RM.arrowFunctionToExpression=CI1;RM.ensureBlock=DI1;RM.ensureFunctionName=_I1;RM.splitExportDeclaration=OI1;RM.toComputedKey=jI1;RM.unwrapFunctionEnvironment=II1;var dD1=F1(),sD1=QM(),s3=l9(),pD1=o2(),{arrowFunctionExpression:p3,assignmentExpression:U5,binaryExpression:u3,blockStatement:nD1,callExpression:d5,conditionalExpression:oD1,expressionStatement:zM,identifier:_1,isIdentifier:eD1,jsxIdentifier:tD1,logicalExpression:GI1,LOGICAL_OPERATORS:JI1,memberExpression:c2,metaProperty:XI1,numericLiteral:HI1,objectExpression:ZI1,restElement:VI1,returnStatement:QI1,sequenceExpression:YI1,spreadElement:WI1,stringLiteral:UM,super:d3,thisExpression:s9,toExpression:KM,unaryExpression:zI1,toBindingIdentifierName:UI1,isFunction:KI1,isAssignmentPattern:BI1,isRestElement:$I1,getFunctionName:RI1,cloneNode:K5,variableDeclaration:MI1,variableDeclarator:qI1,exportNamedDeclaration:YM,exportSpecifier:WM,inherits:FI1}=dD1;RM.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()};var fI1=s3.environmentVisitor({CallExpression(G,{allSuperCalls:J}){if(!G.get("callee").isSuper())return;J.push(G)}}),LI1=s3.environmentVisitor({CallExpression(G,{supers:J,thisBinding:X}){if(!G.get("callee").isSuper())return;if(J.has(G.node))return;J.add(G.node),G.replaceWithMultiple([G.node,U5("=",_1(X),_1("this"))])}}),kI1=s3.environmentVisitor({ThisExpression(G,{thisPaths:J}){J.push(G)},JSXIdentifier(G,{thisPaths:J}){if(G.node.name!=="this")return;if(!G.parentPath.isJSXMemberExpression({object:G.node})&&!G.parentPath.isJSXOpeningElement({name:G.node}))return;J.push(G)},CallExpression(G,{superCalls:J}){if(G.get("callee").isSuper())J.push(G)},MemberExpression(G,{superProps:J}){if(G.get("object").isSuper())J.push(G)},Identifier(G,{argumentsPaths:J}){if(!G.isReferencedIdentifier({name:"arguments"}))return;let X=G.scope;do{if(X.hasOwnBinding("arguments")){X.rename("arguments");return}if(X.path.isFunction()&&!X.path.isArrowFunctionExpression())break}while(X=X.parent);J.push(G)},MetaProperty(G,{newTargetPaths:J}){if(!G.get("meta").isIdentifier({name:"new"}))return;if(!G.get("property").isIdentifier({name:"target"}))return;J.push(G)}}),vI1={"ReferencedIdentifier|BindingIdentifier"(G,J){if(G.node.name!==J.name)return;J.needsRename=!0,G.stop()},Scope(G,J){if(G.scope.hasOwnBinding(J.name))G.skip()}}});var CM=S((AM)=>{function oI1(G,J){return nI1(this.node,G,J)}function eI1(){return this.scope.isStatic(this.node)}function tI1(G){return pI1(this.type,G)}function GA1(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function JA1(G){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return DM(G);else if(this.isBlockStatement())return iI1(G);return!1}function XA1(G){let J=this,X=!0;do{const{type:H,container:Z}=J;if(!X&&(J.isFunction()||H==="StaticBlock"))return!!G;if(X=!1,Array.isArray(Z)&&J.key!==Z.length-1)return!1}while((J=J.parentPath)&&!J.isProgram()&&!J.isDoExpression());return!0}function HA1(){if(this.parentPath.isLabeledStatement()||DM(this.container))return!1;else return aI1.includes(this.key)}function ZA1(G,J){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===J||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?sI1(this.node.property,{value:J}):this.node.property.name===J)){const V=this.get("object");return V.isReferencedIdentifier()&&V.referencesImport(G,"*")}return!1}const X=this.scope.getBinding(this.node.name);if(!X||X.kind!=="module")return!1;const H=X.path,Z=H.parentPath;if(!Z.isImportDeclaration())return!1;if(Z.node.source.value===G){if(!J)return!0}else return!1;if(H.isImportDefaultSpecifier()&&J==="default")return!0;if(H.isImportNamespaceSpecifier()&&J==="*")return!0;if(H.isImportSpecifier()&&uI1(H.node.imported,{name:J}))return!0;return!1}function VA1(){const G=this.node;if(G.end){const J=this.hub.getCode();if(J)return J.slice(G.start,G.end)}return""}function QA1(G){return this._guessExecutionStatusRelativeTo(G)!=="after"}function qM(G){return G.isProgram()?G:(G.parentPath.scope.getFunctionParent()||G.parentPath.scope.getProgramParent()).path}function YA1(G,J){switch(G){case"LogicalExpression":return J==="right";case"ConditionalExpression":case"IfStatement":return J==="consequent"||J==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return J==="body";case"ForStatement":return J==="body"||J==="update";case"SwitchStatement":return J==="cases";case"TryStatement":return J==="handler";case"AssignmentPattern":return J==="right";case"OptionalMemberExpression":return J==="property";case"OptionalCallExpression":return J==="arguments";default:return!1}}function FM(G,J){for(let X=0;X<J;X++){const H=G[X];if(YA1(H.parent.type,H.parentKey))return!0}return!1}function WA1(G){return n3(this,G,new Map)}function n3(G,J,X){const H={this:qM(G),target:qM(J)};if(H.target.node!==H.this.node)return UA1(G,H.target,X);const Z={target:J.getAncestry(),this:G.getAncestry()};if(Z.target.includes(G))return"after";if(Z.this.includes(J))return"before";let V;const Q={target:0,this:0};while(!V&&Q.this<Z.this.length){const B=Z.this[Q.this];if(Q.target=Z.target.indexOf(B),Q.target>=0)V=B;else Q.this++}if(!V)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(FM(Z.this,Q.this-1)||FM(Z.target,Q.target-1))return"unknown";const Y={this:Z.this[Q.this-1],target:Z.target[Q.target-1]};if(Y.target.listKey&&Y.this.listKey&&Y.target.container===Y.this.container)return Y.target.key>Y.this.key?"before":"after";const W=rI1[V.type],z={this:W.indexOf(Y.this.parentKey),target:W.indexOf(Y.target.parentKey)};return z.target>z.this?"before":"after"}function zA1(G,J,X){if(!J.isFunctionDeclaration()){if(n3(G,J,X)==="before")return"before";return"unknown"}else if(J.parentPath.isExportDeclaration())return"unknown";const H=J.scope.getBinding(J.node.id.name);if(!H.references)return"before";const Z=H.referencePaths;let V;for(let Q of Z){if(!!Q.find((z)=>z.node===J.node))continue;if(Q.key!=="callee"||!Q.parentPath.isCallExpression())return"unknown";const W=n3(G,Q,X);if(V&&V!==W)return"unknown";else V=W}return V}function UA1(G,J,X){let H=X.get(G.node),Z;if(!H)X.set(G.node,H=new Map);else if(Z=H.get(J.node)){if(Z===jM)return"unknown";return Z}H.set(J.node,jM);const V=zA1(G,J,X);return H.set(J.node,V),V}function KA1(G,J){return IM.call(this,G,J)||this}function IM(G,J){var X;if((X=J)!=null&&X.includes(this))return;if(J=J||[],J.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(G,J)}else if(this.isReferencedIdentifier()){const H=this.scope.getBinding(this.node.name);if(!H)return;if(!H.constant)return;if(H.kind==="module")return;if(H.path!==this){const Z=H.path.resolve(G,J);if(this.find((V)=>V.node===Z.node))return;return Z}}else if(this.isTypeCastExpression())return this.get("expression").resolve(G,J);else if(G&&this.isMemberExpression()){const H=this.toComputedKey();if(!dI1(H))return;const Z=H.value,V=this.get("object").resolve(G,J);if(V.isObjectExpression()){const Q=V.get("properties");for(let Y of Q){if(!Y.isProperty())continue;const W=Y.get("key");let z=Y.isnt("computed")&&W.isIdentifier({name:Z});if(z=z||W.isLiteral({value:Z}),z)return Y.get("value").resolve(G,J)}}else if(V.isArrayExpression()&&!isNaN(+Z)){const Y=V.get("elements")[Z];if(Y)return Y.resolve(G,J)}}}function BA1(){if(this.isIdentifier()){const G=this.scope.getBinding(this.node.name);if(!G)return!1;return G.constant}if(this.isLiteral()){if(this.isRegExpLiteral())return!1;if(this.isTemplateLiteral())return this.get("expressions").every((G)=>G.isConstantExpression());return!0}if(this.isUnaryExpression()){if(this.node.operator!=="void")return!1;return this.get("argument").isConstantExpression()}if(this.isBinaryExpression()){const{operator:G}=this.node;return G!=="in"&&G!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression())return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0});if(this.isCallExpression())return this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral();return!1}function $A1(){return!!(this.isProgram()?this:this.parentPath).find((X)=>{if(X.isProgram({sourceType:"module"}))return!0;if(X.isClass())return!0;if(X.isArrowFunctionExpression()&&!X.get("body").isBlockStatement())return!1;let H;if(X.isFunction())H=X.node.body;else if(X.isProgram())H=X.node;else return!1;for(let Z of H.directives)if(Z.value.value==="use strict")return!0})}Object.defineProperty(AM,"__esModule",{value:!0});AM._guessExecutionStatusRelativeTo=WA1;AM._resolve=IM;AM.canHaveVariableDeclarationOrExpression=GA1;AM.canSwapBetweenExpressionAndStatement=JA1;AM.getSource=VA1;AM.isCompletionRecord=XA1;AM.isConstantExpression=BA1;AM.isInStrictMode=$A1;AM.isNodeType=tI1;AM.isStatementOrBlock=HA1;AM.isStatic=eI1;AM.matchesPattern=oI1;AM.referencesImport=ZA1;AM.resolve=KA1;AM.willIMaybeExecuteBefore=QA1;var cI1=F1(),{STATEMENT_OR_BLOCK_KEYS:aI1,VISITOR_KEYS:rI1,isBlockStatement:DM,isExpression:iI1,isIdentifier:uI1,isLiteral:dI1,isStringLiteral:sI1,isType:pI1,matchesPattern:nI1}=cI1;AM.has=function G(J){var X;const H=(X=this.node)==null?void 0:X[J];if(H&&Array.isArray(H))return!!H.length;else return!!H};AM.is=AM.has,AM.isnt=function G(J){return!this.has(J)},AM.equals=function G(J,X){return this.node[J]===X};var jM=Symbol()});var wM=S((TM)=>{function gA1(G){return{type:t3,path:G}}function bA1(G){return{type:n9,path:G}}function hA1(){if(this.key==="left")return this.getSibling("right");else if(this.key==="right")return this.getSibling("left");return null}function s5(G,J,X){if(G)J.push(...p5(G,X));return J}function yA1(G,J,X){let H=[];for(let Z=0;Z<G.length;Z++){const V=G[Z],Q=p5(V,X),Y=[],W=[];for(let z of Q){if(z.type===t3)Y.push(z);if(z.type===n9)W.push(z)}if(Y.length)H=Y;J.push(...W)}return J.push(...H),J}function mA1(G){G.forEach((J)=>{J.type=n9})}function o3(G,J){G.forEach((X)=>{if(X.path.isBreakStatement({label:null}))if(J)X.path.replaceWith(_A1("void",vA1(0)));else X.path.remove()})}function fM(G,J){const X=[];if(J.canHaveBreak){let H=[];for(let Z=0;Z<G.length;Z++){const V=G[Z],Q=Object.assign({},J,{inCaseClause:!1});if(V.isBlockStatement()&&(J.inCaseClause||J.shouldPopulateBreak))Q.shouldPopulateBreak=!0;else Q.shouldPopulateBreak=!1;const Y=p5(V,Q);if(Y.length>0&&Y.every((W)=>W.type===n9)){if(H.length>0&&Y.every((W)=>W.path.isBreakStatement({label:null}))){if(mA1(H),X.push(...H),H.some((W)=>W.path.isDeclaration()))X.push(...Y),o3(Y,!0);o3(Y,!1)}else if(X.push(...Y),!J.shouldPopulateBreak)o3(Y,!0);break}if(Z===G.length-1)X.push(...Y);else{H=[];for(let W=0;W<Y.length;W++){const z=Y[W];if(z.type===n9)X.push(z);if(z.type===t3)H.push(z)}}}}else if(G.length)for(let H=G.length-1;H>=0;H--){const Z=p5(G[H],J);if(Z.length>1||Z.length===1&&!Z[0].path.isVariableDeclaration()){X.push(...Z);break}}return X}function p5(G,J){let X=[];if(G.isIfStatement())X=s5(G.get("consequent"),X,J),X=s5(G.get("alternate"),X,J);else if(G.isDoExpression()||G.isFor()||G.isWhile()||G.isLabeledStatement())return s5(G.get("body"),X,J);else if(G.isProgram()||G.isBlockStatement())return fM(G.get("body"),J);else if(G.isFunction())return p5(G.get("body"),J);else if(G.isTryStatement())X=s5(G.get("block"),X,J),X=s5(G.get("handler"),X,J);else if(G.isCatchClause())return s5(G.get("body"),X,J);else if(G.isSwitchStatement())return yA1(G.get("cases"),X,J);else if(G.isSwitchCase())return fM(G.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});else if(G.isBreakStatement())X.push(bA1(G));else X.push(gA1(G));return X}function xA1(){return p5(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map((J)=>J.path)}function lA1(G){return e3.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:G}).setContext(this.context)}function cA1(){return this.getSibling(this.key-1)}function aA1(){return this.getSibling(this.key+1)}function rA1(){let G=this.key,J=this.getSibling(++G);const X=[];while(J.node)X.push(J),J=this.getSibling(++G);return X}function iA1(){let G=this.key,J=this.getSibling(--G);const X=[];while(J.node)X.push(J),J=this.getSibling(--G);return X}function uA1(G,J=!0){if(J===!0)J=this.context;const X=G.split(".");if(X.length===1)return PM.call(this,G,J);else return LM.call(this,X,J)}function PM(G,J){const X=this.node,H=X[G];if(Array.isArray(H))return H.map((Z,V)=>{return e3.default.get({listKey:G,parentPath:this,parent:X,container:H,key:V}).setContext(J)});else return e3.default.get({parentPath:this,parent:X,container:X,key:G}).setContext(J)}function LM(G,J){let X=this;for(let H of G)if(H===".")X=X.parentPath;else if(Array.isArray(X))X=X[H];else X=X.get(H,J);return X}function dA1(){return EA1(this.node)}function sA1(G){return SM(this.node,G)}function pA1(G){return OA1(this.node,G)}function nA1(G=!1,J=!1){const H=[this],Z=Object.create(null);while(H.length){const V=H.shift();if(!V)continue;if(!V.node)continue;const Q=SM.keys[V.node.type];if(V.isIdentifier()){if(G)(Z[V.node.name]=Z[V.node.name]||[]).push(V);else Z[V.node.name]=V;continue}if(V.isExportDeclaration()){const Y=V.get("declaration");if(Y.isDeclaration())H.push(Y);continue}if(J){if(V.isFunctionDeclaration()){H.push(V.get("id"));continue}if(V.isFunctionExpression())continue}if(Q)for(let Y=0;Y<Q.length;Y++){const W=Q[Y],z=V.get(W);if(Array.isArray(z))H.push(...z);else if(z.node)H.push(z)}}return Z}function oA1(G=!1){return this.getBindingIdentifierPaths(G,!0)}Object.defineProperty(TM,"__esModule",{value:!0});TM._getKey=PM;TM._getPattern=LM;TM.get=uA1;TM.getAllNextSiblings=rA1;TM.getAllPrevSiblings=iA1;TM.getAssignmentIdentifiers=dA1;TM.getBindingIdentifierPaths=nA1;TM.getBindingIdentifiers=sA1;TM.getCompletionRecords=xA1;TM.getNextSibling=aA1;TM.getOpposite=hA1;TM.getOuterBindingIdentifierPaths=oA1;TM.getOuterBindingIdentifiers=pA1;TM.getPrevSibling=cA1;TM.getSibling=lA1;var e3=_0(),kA1=F1(),{getAssignmentIdentifiers:EA1,getBindingIdentifiers:SM,getOuterBindingIdentifiers:OA1,numericLiteral:vA1,unaryExpression:_A1}=kA1,t3=0,n9=1});var EM=S((kM)=>{function qC1(){if(typeof this.key==="string")return;const G=this.node;if(!G)return;const{trailingComments:J,leadingComments:X}=G;if(!J&&!X)return;const H=this.getSibling(this.key-1),Z=this.getSibling(this.key+1),V=Boolean(H.node),Q=Boolean(Z.node);if(V){if(X)H.addComments("trailing",NM(X,H.node.trailingComments));if(J&&!Q)H.addComments("trailing",J)}if(Q){if(J)Z.addComments("leading",NM(J,Z.node.leadingComments));if(X&&!V)Z.addComments("leading",X)}}function NM(G,J){if(!(J!=null&&J.length))return G;const X=new Set(J);return G.filter((H)=>{return!X.has(H)})}function FC1(G,J,X){RC1(this.node,G,J,X)}function jC1(G,J){MC1(this.node,G,J)}Object.defineProperty(kM,"__esModule",{value:!0});kM.addComment=FC1;kM.addComments=jC1;kM.shareCommentsWithSiblings=qC1;var $C1=F1(),{addComment:RC1,addComments:MC1}=$C1});var _0=S((bM)=>{Object.defineProperty(bM,"__esModule",{value:!0});bM.default=bM.SHOULD_STOP=bM.SHOULD_SKIP=bM.REMOVED=void 0;var CC1=o7(),fC1=uK(),SC1=c9(),PC1=z3(),_M=F1(),FJ=_M,LC1=Z5(),TC1=T7(),t2=mB(),n5=W$(),o5=N3(),OM=hR(),B5=MM(),u1=CM(),gM=o2(),i1=gM,e5=UJ(),G0=KJ(),R2=wM(),GH=EM(),wC1=H3(),{validate:NC1}=_M,vM=fC1("babel"),Yb1=bM.REMOVED=1,Wb1=bM.SHOULD_STOP=2,zb1=bM.SHOULD_SKIP=4,j0=bM.default=class G{constructor(J,X){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.parent=X,this.hub=J,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(J){if(J)this._traverseFlags|=1;else this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(J){if(J)this._traverseFlags|=2;else this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(J){if(J)this._traverseFlags|=4;else this._traverseFlags&=-5}static get({hub:J,parentPath:X,parent:H,container:Z,listKey:V,key:Q}){if(!J&&X)J=X.hub;if(!H)throw new Error("To get a node path the parent needs to exist");const Y=Z[Q],W=LC1.getOrCreateCachedPaths(J,H);let z=W.get(Y);if(!z){if(z=new G(J,H),Y)W.set(Y,z)}return gM.setup.call(z,X,Z,V,Q),z}getScope(J){return this.isScope()?new PC1.default(this):J}setData(J,X){if(this.data==null)this.data=Object.create(null);return this.data[J]=X}getData(J,X){if(this.data==null)this.data=Object.create(null);let H=this.data[J];if(H===void 0&&X!==void 0)H=this.data[J]=X;return H}hasNode(){return this.node!=null}buildCodeFrameError(J,X=SyntaxError){return this.hub.buildError(this.node,J,X)}traverse(J,X){SC1.default(this.node,J,this.scope,X,this)}set(J,X){NC1(this.node,J,X),this.node[J]=X}getPathLocation(){const J=[];let X=this;do{let H=X.key;if(X.inList)H=`${X.listKey}[${H}]`;J.unshift(H)}while(X=X.parentPath);return J.join(".")}debug(J){if(!vM.enabled)return;vM(`${this.getPathLocation()} ${this.type}: ${J}`)}toString(){return TC1.default(this.node).code}get inList(){return!!this.listKey}set inList(J){if(!J)this.listKey=null}get parentKey(){return this.listKey||this.key}},kC1={findParent:t2.findParent,find:t2.find,getFunctionParent:t2.getFunctionParent,getStatementParent:t2.getStatementParent,getEarliestCommonAncestorFrom:t2.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:t2.getDeepestCommonAncestorFrom,getAncestry:t2.getAncestry,isAncestor:t2.isAncestor,isDescendant:t2.isDescendant,inType:t2.inType,getTypeAnnotation:n5.getTypeAnnotation,isBaseType:n5.isBaseType,couldBeBaseType:n5.couldBeBaseType,baseTypeStrictlyMatches:n5.baseTypeStrictlyMatches,isGenericType:n5.isGenericType,replaceWithMultiple:o5.replaceWithMultiple,replaceWithSourceString:o5.replaceWithSourceString,replaceWith:o5.replaceWith,replaceExpressionWithStatements:o5.replaceExpressionWithStatements,replaceInline:o5.replaceInline,evaluateTruthy:OM.evaluateTruthy,evaluate:OM.evaluate,toComputedKey:B5.toComputedKey,ensureBlock:B5.ensureBlock,unwrapFunctionEnvironment:B5.unwrapFunctionEnvironment,arrowFunctionToExpression:B5.arrowFunctionToExpression,splitExportDeclaration:B5.splitExportDeclaration,ensureFunctionName:B5.ensureFunctionName,matchesPattern:u1.matchesPattern,isStatic:u1.isStatic,isNodeType:u1.isNodeType,canHaveVariableDeclarationOrExpression:u1.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:u1.canSwapBetweenExpressionAndStatement,isCompletionRecord:u1.isCompletionRecord,isStatementOrBlock:u1.isStatementOrBlock,referencesImport:u1.referencesImport,getSource:u1.getSource,willIMaybeExecuteBefore:u1.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:u1._guessExecutionStatusRelativeTo,resolve:u1.resolve,isConstantExpression:u1.isConstantExpression,isInStrictMode:u1.isInStrictMode,isDenylisted:i1.isDenylisted,visit:i1.visit,skip:i1.skip,skipKey:i1.skipKey,stop:i1.stop,setContext:i1.setContext,requeue:i1.requeue,requeueComputedKeyAndDecorators:i1.requeueComputedKeyAndDecorators,remove:e5.remove,insertBefore:G0.insertBefore,insertAfter:G0.insertAfter,unshiftContainer:G0.unshiftContainer,pushContainer:G0.pushContainer,getOpposite:R2.getOpposite,getCompletionRecords:R2.getCompletionRecords,getSibling:R2.getSibling,getPrevSibling:R2.getPrevSibling,getNextSibling:R2.getNextSibling,getAllNextSiblings:R2.getAllNextSiblings,getAllPrevSiblings:R2.getAllPrevSiblings,get:R2.get,getAssignmentIdentifiers:R2.getAssignmentIdentifiers,getBindingIdentifiers:R2.getBindingIdentifiers,getOuterBindingIdentifiers:R2.getOuterBindingIdentifiers,getBindingIdentifierPaths:R2.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:R2.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:GH.shareCommentsWithSiblings,addComment:GH.addComment,addComments:GH.addComments};Object.assign(j0.prototype,kC1);j0.prototype.arrowFunctionToShadowed=B5[String("arrowFunctionToShadowed")],Object.assign(j0.prototype,{has:u1[String("has")],is:u1[String("is")],isnt:u1[String("isnt")],equals:u1[String("equals")],hoist:G0[String("hoist")],updateSiblingKeys:G0.updateSiblingKeys,call:i1.call,isBlacklisted:i1[String("isBlacklisted")],setScope:i1.setScope,resync:i1.resync,popContext:i1.popContext,pushContext:i1.pushContext,setup:i1.setup,setKey:i1.setKey});j0.prototype._guessExecutionStatusRelativeToDifferentFunctions=u1._guessExecutionStatusRelativeTo,j0.prototype._guessExecutionStatusRelativeToDifferentFunctions=u1._guessExecutionStatusRelativeTo,Object.assign(j0.prototype,{_getTypeAnnotation:n5._getTypeAnnotation,_replaceWith:o5._replaceWith,_resolve:u1._resolve,_call:i1._call,_resyncParent:i1._resyncParent,_resyncKey:i1._resyncKey,_resyncList:i1._resyncList,_resyncRemoved:i1._resyncRemoved,_getQueueContexts:i1._getQueueContexts,_removeFromScope:e5._removeFromScope,_callRemovalHooks:e5._callRemovalHooks,_remove:e5._remove,_markRemoved:e5._markRemoved,_assertUnremoved:e5._assertUnremoved,_containerInsert:G0._containerInsert,_containerInsertBefore:G0._containerInsertBefore,_containerInsertAfter:G0._containerInsertAfter,_verifyNodeList:G0._verifyNodeList,_getKey:R2._getKey,_getPattern:R2._getPattern});for(let G of FJ.TYPES){const J=`is${G}`,X=FJ[J];j0.prototype[J]=function(H){return X(this.node,H)},j0.prototype[`assert${G}`]=function(H){if(!X(this.node,H))throw new TypeError(`Expected node path of type ${G}`)}}Object.assign(j0.prototype,wC1);for(let G of Object.keys(CC1)){if(G[0]==="_")continue;if(!FJ.TYPES.includes(G))FJ.TYPES.push(G)}});var lM=S((mM)=>{Object.defineProperty(mM,"__esModule",{value:!0});mM.default=void 0;var _C1=_0(),gC1=F1(),JH=o2(),{VISITOR_KEYS:bC1}=gC1;class yM{constructor(G,J,X,H){this.queue=null,this.priorityQueue=null,this.parentPath=H,this.scope=G,this.state=X,this.opts=J}shouldVisit(G){const J=this.opts;if(J.enter||J.exit)return!0;if(J[G.type])return!0;const X=bC1[G.type];if(!(X!=null&&X.length))return!1;for(let H of X)if(G[H])return!0;return!1}create(G,J,X,H){return _C1.default.get({parentPath:this.parentPath,parent:G,container:J,key:X,listKey:H})}maybeQueue(G,J){if(this.queue)if(J)this.queue.push(G);else this.priorityQueue.push(G)}visitMultiple(G,J,X){if(G.length===0)return!1;const H=[];for(let Z=0;Z<G.length;Z++){const V=G[Z];if(V&&this.shouldVisit(V))H.push(this.create(J,G,Z,X))}return this.visitQueue(H)}visitSingle(G,J){if(this.shouldVisit(G[J]))return this.visitQueue([this.create(G,G,J)]);else return!1}visitQueue(G){this.queue=G,this.priorityQueue=[];const J=new WeakSet;let X=!1,H=0;for(;H<G.length;){const Z=G[H];if(H++,JH.resync.call(Z),Z.contexts.length===0||Z.contexts[Z.contexts.length-1]!==this)JH.pushContext.call(Z,this);if(Z.key===null)continue;const{node:V}=Z;if(J.has(V))continue;if(V)J.add(V);if(Z.visit()){X=!0;break}if(this.priorityQueue.length){if(X=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=G,X)break}}for(let Z=0;Z<H;Z++)JH.popContext.call(G[Z]);return this.queue=null,X}visit(G,J){const X=G[J];if(!X)return!1;if(Array.isArray(X))return this.visitMultiple(X,G,J);else return this.visitSingle(G,J)}}mM.default=yM});var eG=S((cM)=>{function xC1(G,J,X,H,Z,V,Q){const Y=mC1[G.type];if(!Y)return!1;const W=new hC1.default(X,J,H,Z);if(Q){if(V!=null&&V[Z.parentKey])return!1;return W.visitQueue([Z])}for(let z of Y){if(V!=null&&V[z])continue;if(W.visit(G,z))return!0}return!1}Object.defineProperty(cM,"__esModule",{value:!0});cM.traverseNode=xC1;var hC1=lM(),yC1=F1(),{VISITOR_KEYS:mC1}=yC1});var o2=S((nM)=>{function XH(G){const J=this.opts;if(this.debug(G),this.node){if(HH.call(this,J[G]))return!0}if(this.node){var X;return HH.call(this,(X=J[this.node.type])==null?void 0:X[G])}return!1}function HH(G){if(!G)return!1;for(let J of G){if(!J)continue;const X=this.node;if(!X)return!0;const H=J.call(this.state,this,this.state);if(H&&typeof H==="object"&&typeof H.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(H)throw new Error(`Unexpected return value from visitor method ${J}`);if(this.node!==X)return!0;if(this._traverseFlags>0)return!0}return!1}function iM(){var G;const J=(G=this.opts.denylist)!=null?G:this.opts.blacklist;return J==null?void 0:J.includes(this.node.type)}function rM(G,J){if(G.context!==J)G.context=J,G.state=J.state,G.opts=J.opts}function iC1(){var G,J;if(!this.node)return!1;if(this.isDenylisted())return!1;if((G=(J=this.opts).shouldSkip)!=null&&G.call(J,this))return!1;const X=this.context;if(this.shouldSkip||XH.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return rM(this,X),this.debug("Recursing into..."),this.shouldStop=cC1.traverseNode(this.node,this.opts,this.scope,this.state,this,this.skipKeys),rM(this,X),XH.call(this,"exit"),this.shouldStop}function uC1(){this.shouldSkip=!0}function dC1(G){if(this.skipKeys==null)this.skipKeys={};this.skipKeys[G]=!0}function sC1(){this._traverseFlags|=aM.SHOULD_SKIP|aM.SHOULD_STOP}function uM(){var G,J;if((G=this.opts)!=null&&G.noScope)return;let X=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&X.isMethod()||this.key==="discriminant"&&X.isSwitchStatement())X=X.parentPath;let H;while(X&&!H){var Z;if((Z=X.opts)!=null&&Z.noScope)return;H=X.scope,X=X.parentPath}this.scope=this.getScope(H),(J=this.scope)==null||J.init()}function pC1(G){if(this.skipKeys!=null)this.skipKeys={};if(this._traverseFlags=0,G)this.context=G,this.state=G.state,this.opts=G.opts;return uM.call(this),this}function nC1(){if(this.removed)return;dM.call(this),pM.call(this),sM.call(this)}function dM(){if(this.parentPath)this.parent=this.parentPath.node}function sM(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let G=0;G<this.container.length;G++)if(this.container[G]===this.node){jJ.call(this,G);return}}else for(let G of Object.keys(this.container))if(this.container[G]===this.node){jJ.call(this,G);return}this.key=null}function pM(){if(!this.parent||!this.inList)return;const G=this.parent[this.listKey];if(this.container===G)return;this.container=G||null}function oC1(){if(this.key==null||!this.container||this.container[this.key]!==this.node)aC1._markRemoved.call(this)}function eC1(){if(this.contexts.pop(),this.contexts.length>0)this.setContext(this.contexts[this.contexts.length-1]);else this.setContext(void 0)}function tC1(G){this.contexts.push(G),this.setContext(G)}function Gf1(G,J,X,H){this.listKey=X,this.container=J,this.parentPath=G||this.parentPath,jJ.call(this,H)}function jJ(G){var J;this.key=G,this.node=this.container[this.key],this.type=(J=this.node)==null?void 0:J.type}function Jf1(G=this){if(G.removed)return;const J=this.contexts;for(let X of J)X.maybeQueue(G)}function Xf1(){const{context:G,node:J}=this;if(!rC1.isPrivate(J)&&J.computed)G.maybeQueue(this.get("key"));if(J.decorators)for(let X of this.get("decorators"))G.maybeQueue(X)}function Hf1(){let G=this,J=this.contexts;while(!J.length){if(G=G.parentPath,!G)break;J=G.contexts}return J}Object.defineProperty(nM,"__esModule",{value:!0});nM._call=HH;nM._getQueueContexts=Hf1;nM._resyncKey=sM;nM._resyncList=pM;nM._resyncParent=dM;nM._resyncRemoved=oC1;nM.call=XH;nM.isDenylisted=iM;nM.popContext=eC1;nM.pushContext=tC1;nM.requeue=Jf1;nM.requeueComputedKeyAndDecorators=Xf1;nM.resync=nC1;nM.setContext=pC1;nM.setKey=jJ;nM.setScope=uM;nM.setup=Gf1;nM.skip=uC1;nM.skipKey=dC1;nM.stop=sC1;nM.visit=iC1;var cC1=eG(),aM=_0(),aC1=UJ(),rC1=F1();nM.isBlacklisted=iM});var Gq=S((eM)=>{Object.defineProperty(eM,"__esModule",{value:!0});eM.default=void 0;class oM{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(G,J,X=TypeError){return new X(J)}}eM.default=oM});var c9=S((e9)=>{function v2(G,J={},X,H,Z,V){if(!G)return;if(!J.noScope&&!X){if(G.type!=="Program"&&G.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 ${G.type} node without passing scope and parentPath.`)}if(!Z&&V)throw new Error("visitSelf can only be used when providing a NodePath.");if(!kf1[G.type])return;o9.explode(J),Jq.traverseNode(G,J,X,H,Z,null,V)}function Of1(G,J){if(G.node.type===J.type)J.has=!0,G.stop()}Object.defineProperty(e9,"__esModule",{value:!0});Object.defineProperty(e9,"Hub",{enumerable:!0,get:function(){return Nf1.default}});Object.defineProperty(e9,"NodePath",{enumerable:!0,get:function(){return Tf1.default}});Object.defineProperty(e9,"Scope",{enumerable:!0,get:function(){return wf1.default}});e9.visitors=e9.default=void 0;o2();var o9=l9();e9.visitors=o9;var Pf1=F1(),Lf1=Z5(),Jq=eG(),Tf1=_0(),wf1=z3(),Nf1=Gq(),{VISITOR_KEYS:kf1,removeProperties:Ef1,traverseFast:Xq}=Pf1,qb1=e9.default=v2;v2.visitors=o9;v2.verify=o9.verify;v2.explode=o9.explode;v2.cheap=function(G,J){Xq(G,J);return};v2.node=function(G,J,X,H,Z,V){Jq.traverseNode(G,J,X,H,Z,V)};v2.clearNode=function(G,J){Ef1(G,J)};v2.removeProperties=function(G,J){return Xq(G,v2.clearNode,J),G};v2.hasType=function(G,J,X){if(X!=null&&X.includes(G.type))return!1;if(G.type===J)return!0;const H={has:!1,type:J};return v2(G,{noScope:!0,denylist:X,enter:Of1},null,H),H.has};v2.cache=Lf1});var zq=S((YH,WH)=>{(function(G,J){if(typeof YH==="object"&&typeof WH==="object")WH.exports=J();else if(typeof define==="function"&&define.amd)define(function(){return J()});else G.pluralize=J()})(YH,function(){var G=[],J=[],X={},H={},Z={};function V(j){if(typeof j==="string")return new RegExp("^"+j+"$","i");return j}function Q(j,f){if(j===f)return f;if(j===j.toLowerCase())return f.toLowerCase();if(j===j.toUpperCase())return f.toUpperCase();if(j[0]===j[0].toUpperCase())return f.charAt(0).toUpperCase()+f.substr(1).toLowerCase();return f.toLowerCase()}function Y(j,f){return j.replace(/\$(\d{1,2})/g,function(y,w){return f[w]||""})}function W(j,f){return j.replace(f[0],function(y,w){var v=Y(f[1],arguments);if(y==="")return Q(j[w-1],v);return Q(y,v)})}function z(j,f,y){if(!j.length||X.hasOwnProperty(j))return f;var w=y.length;while(w--){var v=y[w];if(v[0].test(f))return W(f,v)}return f}function B(j,f,y){return function(w){var v=w.toLowerCase();if(f.hasOwnProperty(v))return Q(w,v);if(j.hasOwnProperty(v))return Q(w,j[v]);return z(v,w,y)}}function q(j,f,y,w){return function(v){var h=v.toLowerCase();if(f.hasOwnProperty(h))return!0;if(j.hasOwnProperty(h))return!1;return z(h,h,y)===h}}function F(j,f,y){var w=f===1?F.singular(j):F.plural(j);return(y?f+" ":"")+w}return F.plural=B(Z,H,G),F.isPlural=q(Z,H,G),F.singular=B(H,Z,J),F.isSingular=q(H,Z,J),F.addPluralRule=function(j,f){G.push([V(j),f])},F.addSingularRule=function(j,f){J.push([V(j),f])},F.addUncountableRule=function(j){if(typeof j==="string"){X[j.toLowerCase()]=!0;return}F.addPluralRule(j,"$0"),F.addSingularRule(j,"$0")},F.addIrregularRule=function(j,f){f=f.toLowerCase(),j=j.toLowerCase(),Z[j]=f,H[f]=j},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(j){return F.addIrregularRule(j[0],j[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(j){return F.addPluralRule(j[0],j[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(j){return F.addSingularRule(j[0],j[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[e\u00E9]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(F.addUncountableRule),F})});var Uq=S((zH,UH)=>{(function(G,J,X){if(typeof zH==="object")UH.exports=X(),UH.exports.default=X();else if(typeof define==="function"&&define.amd)define(X);else J[G]=X()})("slugify",zH,function(){var G=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),J=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function X(H,Z){if(typeof H!=="string")throw new Error("slugify: string argument expected");Z=typeof Z==="string"?{replacement:Z}:Z||{};var V=J[Z.locale]||{},Q=Z.replacement===void 0?"-":Z.replacement,Y=Z.trim===void 0?!0:Z.trim,W=H.normalize().split("").reduce(function(z,B){var q=V[B];if(q===void 0)q=G[B];if(q===void 0)q=B;if(q===Q)q=" ";return z+q.replace(Z.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");if(Z.strict)W=W.replace(/[^A-Za-z0-9\s]/g,"");if(Y)W=W.trim();if(W=W.replace(/\s+/g,Q),Z.lower)W=W.toLowerCase();return W}return X.extend=function(H){Object.assign(G,H)},X})});import c0 from"process";import{runAction as p1}from"@stacksjs/actions";import{intro as _J,log as A2,outro as Y6,prompts as oq}from"@stacksjs/cli";import{Action as n1}from"@stacksjs/enums";import{ExitCode as gJ}from"@stacksjs/types";function JL1(G){const J={build:"Build any of your libraries (packages) for production use",components:"Build your component library",vueComponents:"Build your Vue component library",webComponents:"Build your framework agnostic web component library",elements:"An alias to the -w flag",buddy:"Build the Buddy binary",functions:"Build your function library",desktop:"Build the Desktop Application",pages:"Build your frontend",docs:"Build your documentation",framework:"Build Stacks framework",cli:"Automagically build the CLI",server:"Build the Stacks cloud server (Docker image)",select:"What are you trying to build?",project:"Target a specific project",verbose:"Enable verbose output"};G.command("build [type]",J.build).option("-c, --components",J.components).option("-v, --vue-components",J.vueComponents).option("-w, --web-components",J.webComponents).option("-e, --elements",J.elements).option("-f, --functions",J.functions).option("-p, --views",J.pages).option("--pages",J.pages).option("-d, --docs",J.docs).option("-b, --buddy",J.buddy,{default:!1}).option("-s, --stacks",J.framework,{default:!1}).option("--project [project]",J.project,{default:!1}).option("--server",J.server,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{switch(A2.debug("Running `buddy build` ...",H),X){case"components":H.components=!0;break;case"vue":H.vueComponents=!0;break;case"web-components":H.webComponents=!0;break;case"functions":H.functions=!0;break;case"views":H.views=!0;break;case"docs":H.docs=!0;break;case"buddy":H.buddy=!0;break;case"cli":H.buddy=!0;break;case"stacks":H.stacks=!0;break;case"server":H.server=!0;break;default:break}if(console.log("server",X,H),eq(H)){console.log("has no");const Z=await oq({type:"multiselect",name:"build",message:J.select,choices:[{title:"Components",value:"components"},{title:"Web Components",value:"web-components"},{title:"Functions",value:"functions"},{title:"Views",value:"views"},{title:"Documentation",value:"docs"}]});if(console.log("answers",Z),Z!==null)c0.exit(gJ.InvalidArgument)}else console.log("has op");if(H.docs)await p1(n1.BuildDocs);if(H.components)await p1(n1.BuildComponentLibs);if(H.vueComponents)await p1(n1.BuildVueComponentLib);if(H.webComponents)await p1(n1.BuildWebComponentLib);if(H.functions)await p1(n1.BuildFunctionLib);if(H.views)await p1(n1.BuildViews);if(H.stacks)await p1(n1.BuildStacks);if(H.buddy)await p1(n1.BuildCli);if(H.server)await p1(n1.BuildServer);c0.exit(gJ.Success)}),G.command("build:components","Automagically build component libraries for production use & npm/CDN distribution").alias("prod:components").option("-c, --components",J.components,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:components` ...",X),await p1(n1.BuildComponentLibs,X)}),G.command("build:cli",J.cli).alias("prod:cli").option("-b, --buddy",J.buddy,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:cli` ...",X),await p1(n1.BuildCli,X)}),G.command("build:server",J.server).alias("prod:server").alias("build:docker").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:server` ...",X),await p1(n1.BuildServer,X)}),G.command("build:functions","Automagically build function library for npm/CDN distribution").option("-f, --functions",J.functions,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy `build:functions` ...",X),await p1(n1.BuildFunctionLib,X)}),G.command("build:vue-components","Automagically build Vue component library for npm/CDN distribution").alias("build:vue").alias("prod:vue-components").alias("prod:vue").option("-v, --vue-components",J.vueComponents,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).alias("build:vue").action(async(X)=>{A2.debug("Running `buddy build:vue-components` ...",X),await p1(n1.BuildVueComponentLib,X)}),G.command("build:web-components","Automagically build Web Component library for npm/CDN distribution").alias("build:wc").alias("prod:web-components").alias("prod:wc").option("-w, --web-components",J.webComponents,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:web-components` ...",X),await p1(n1.BuildWebComponentLib,X)}),G.command("build:docs","Automagically build your documentation site.").alias("prod:docs").alias("build:documentation").alias("prod:documentation").option("-d, --docs",J.docs,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:docs` ...",X),await p1(n1.BuildDocs,X)}),G.command("build:core","Automagically build the Stacks core.").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:core` ...",X);const H=await _J("buddy build:core"),Z=await p1(n1.BuildCore,X);if(Z.isErr())A2.error("Failed to build the Stacks core.",Z.error),c0.exit();await Y6("Core packages built successfully",{startTime:H,useSeconds:!0})}),G.command("build:desktop",J.desktop).alias("prod:desktop").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:desktop` ...",X);const H=await _J("buddy build:desktop"),Z=await p1(n1.BuildDesktop,X);if(Z.isErr())await Y6("While running the build:desktop command, there was an issue",{startTime:H,useSeconds:!0},Z.error),c0.exit();console.log(""),await Y6("Exited",{startTime:H,useSeconds:!0}),c0.exit(gJ.Success)}),G.command("build:stacks","Build the Stacks framework.").option("-s, --stacks",J.framework,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{A2.debug("Running `buddy build:stacks` ...",X);const H=await _J("buddy build:stacks"),Z=await p1(n1.BuildStacks,X);if(Z.isErr())A2.error("Failed to build Stacks.",Z.error),c0.exit();await Y6("Stacks built successfully",{startTime:H,useSeconds:!0})}),G.on("build:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),c0.exit(1)})}function eq(G){return!G.components&&!G.vueComponents&&!G.webComponents&&!G.elements&&!G.functions&&!G.views&&!G.docs&&!G.stacks&&!G.buddy}import OH from"process";import{runAction as tq}from"@stacksjs/actions";import{intro as GF,log as JF,outro as vH}from"@stacksjs/cli";import{Action as XF}from"@stacksjs/enums";function YL1(G){const J={changelog:"Create a CHANGELOG.md file",quiet:"Minimal output",dryRun:"Do not write the file, just output the changes",project:"Target a specific project",verbose:"Enable verbose output"};G.command("changelog",J.changelog).option("-q, --quiet",J.quiet,{default:!1}).option("-d, --dry-run",J.dryRun,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{JF.debug("Running `buddy changelog` ...",X);const H=await GF("buddy changelog"),Z=await tq(XF.Changelog,X);if(Z.isErr())await vH("While running the changelog command, there was an issue",{...X,startTime:H,useSeconds:!0},Z.error),OH.exit();await vH("Generated CHANGELOG.md",{...X,startTime:H,useSeconds:!0,type:"success"})}),G.on("changelog:*",()=>{console.log("Invalid command: %s",G.args.join(" ")),console.log("See --help for a list of available commands."),OH.exit(1)})}import bJ from"process";import{runAction as HF}from"@stacksjs/actions";import{intro as ZF,log as VF,outro as _H}from"@stacksjs/cli";import{Action as QF}from"@stacksjs/enums";import{ExitCode as gH}from"@stacksjs/types";function RL1(G){const J={clean:"Removes all node_modules & lock files",project:"Target a specific project",verbose:"Enable verbose output"};G.command("clean",J.clean).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{VF.debug("Running `buddy clean` ...",X);const H=await ZF("buddy clean"),Z=await HF(QF.Clean,X);if(Z.isErr())await _H("While running the clean command, there was an issue",{startTime:H,useSeconds:!0},Z.error),bJ.exit(gH.FatalError);await _H("Cleaned up",{startTime:H,useSeconds:!0,message:"Cleaned up"}),bJ.exit(gH.Success)}),G.on("clean:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),bJ.exit(1)})}import A1 from"process";var A5=H2(aZ(),1);var bH=H2(W6(),1),z6=H2(YF(),1);function WF(G){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cloudfront",region:G.region},propertiesExtractor:(J,X)=>({signingProperties:{config:J,context:X}})}}var hH=async(G,J,X)=>{return{operation:z6.getSmithyContext(J).operation,region:await z6.normalizeProvider(G.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},yH=(G)=>{const J=[];switch(G.operation){default:J.push(WF(G))}return J},mH=(G)=>{return{...bH.resolveAwsSdkSigV4Config(G)}};var xH=(G)=>{return{...G,useDualstackEndpoint:G.useDualstackEndpoint??!1,useFipsEndpoint:G.useFipsEndpoint??!1,defaultSigningName:"cloudfront"}},lH={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var cH={name:"@aws-sdk/client-cloudfront",description:"AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",version:"3.668.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-cloudfront","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cloudfront"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.668.0","@aws-sdk/client-sts":"3.668.0","@aws-sdk/core":"3.667.0","@aws-sdk/credential-provider-node":"3.668.0","@aws-sdk/middleware-host-header":"3.667.0","@aws-sdk/middleware-logger":"3.667.0","@aws-sdk/middleware-recursion-detection":"3.667.0","@aws-sdk/middleware-user-agent":"3.668.0","@aws-sdk/region-config-resolver":"3.667.0","@aws-sdk/types":"3.667.0","@aws-sdk/util-endpoints":"3.667.0","@aws-sdk/util-user-agent-browser":"3.667.0","@aws-sdk/util-user-agent-node":"3.668.0","@aws-sdk/xml-builder":"3.662.0","@smithy/config-resolver":"^3.0.9","@smithy/core":"^2.4.8","@smithy/fetch-http-handler":"^3.2.9","@smithy/hash-node":"^3.0.7","@smithy/invalid-dependency":"^3.0.7","@smithy/middleware-content-length":"^3.0.9","@smithy/middleware-endpoint":"^3.1.4","@smithy/middleware-retry":"^3.0.23","@smithy/middleware-serde":"^3.0.7","@smithy/middleware-stack":"^3.0.7","@smithy/node-config-provider":"^3.1.8","@smithy/node-http-handler":"^3.2.4","@smithy/protocol-http":"^4.1.4","@smithy/smithy-client":"^3.4.0","@smithy/types":"^3.5.0","@smithy/url-parser":"^3.0.7","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.23","@smithy/util-defaults-mode-node":"^3.0.23","@smithy/util-endpoints":"^2.1.3","@smithy/util-middleware":"^3.0.7","@smithy/util-retry":"^3.0.7","@smithy/util-stream":"^3.1.9","@smithy/util-utf8":"^3.0.0","@smithy/util-waiter":"^3.1.6",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudfront",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cloudfront"}};var TZ=H2(W6(),1);var wZ=H2(qF(),1);var WZ=H2(W6(),1);var zZ=H2($F(),1),U6=H2(MF(),1),K6=H2(RF(),1);var aH={["required"]:!1,type:"String"},rH={["required"]:!0,default:!1,type:"Boolean"},iH={["ref"]:"Endpoint"},yJ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},GZ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},C2={},uH={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},UF={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},dH={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},hJ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},sH={authSchemes:[{name:"sigv4",signingName:"cloudfront",signingRegion:"us-east-1"}]},pH={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},nH={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},oH=[yJ],eH=[GZ],tH=[{["ref"]:"Region"}],KF={version:"1.0",parameters:{Region:aH,UseDualStack:rH,UseFIPS:rH,Endpoint:aH},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[iH]}],rules:[{conditions:oH,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:eH,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:iH,properties:C2,headers:C2},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:tH}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:tH,assign:"PartitionResult"}],rules:[{conditions:[uH,dH,hJ],endpoint:{url:"https://cloudfront.amazonaws.com",properties:sH,headers:C2},type:"endpoint"},{conditions:[uH,yJ,hJ],endpoint:{url:"https://cloudfront-fips.amazonaws.com",properties:sH,headers:C2},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[UF,"aws-cn"]},dH,hJ],endpoint:{url:"https://cloudfront.cn-northwest-1.amazonaws.com.cn",properties:{authSchemes:[{name:"sigv4",signingName:"cloudfront",signingRegion:"cn-northwest-1"}]},headers:C2},type:"endpoint"},{conditions:[yJ,GZ],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,pH]},nH],rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:C2,headers:C2},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:oH,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[pH,!0]}],rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}",properties:C2,headers:C2},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:eH,rules:[{conditions:[nH],rules:[{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:C2,headers:C2},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dnsSuffix}",properties:C2,headers:C2},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},JZ=KF;var BF=new XZ({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),QZ=(G,J={})=>{return BF.get(G,()=>ZZ(JZ,{endpointParams:G,logger:J.logger}))};HZ.aws=VZ;var UZ=(G)=>{return{apiVersion:"2020-05-31",base64Decoder:G?.base64Decoder??U6.fromBase64,base64Encoder:G?.base64Encoder??U6.toBase64,disableHostPrefix:G?.disableHostPrefix??!1,endpointProvider:G?.endpointProvider??QZ,extensions:G?.extensions??[],httpAuthSchemeProvider:G?.httpAuthSchemeProvider??yH,httpAuthSchemes:G?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(J)=>J.getIdentityProvider("aws.auth#sigv4"),signer:new WZ.AwsSdkSigV4Signer}],logger:G?.logger??new YZ,serviceId:G?.serviceId??"CloudFront",urlParser:G?.urlParser??zZ.parseUrl,utf8Decoder:G?.utf8Decoder??K6.fromUtf8,utf8Encoder:G?.utf8Encoder??K6.toUtf8}};var NZ=(G)=>{IZ(process.version);const J=PZ(G),X=()=>J().then(DZ),H=UZ(G);return TZ.emitWarningIfUnsupportedVersion(process.version),{...H,...G,runtime:"node",defaultsMode:J,bodyLengthChecker:G?.bodyLengthChecker??SZ,credentialDefaultProvider:G?.credentialDefaultProvider??LZ,defaultUserAgentProvider:G?.defaultUserAgentProvider??AZ({serviceId:H.serviceId,clientVersion:cH.version}),maxAttempts:G?.maxAttempts??a0(MZ),region:G?.region??a0($Z,RZ),requestHandler:FZ.create(G?.requestHandler??X),retryMode:G?.retryMode??a0({...qZ,default:async()=>(await X()).retryMode||wZ.DEFAULT_RETRY_MODE}),sha256:G?.sha256??fZ.bind(null,"sha256"),streamCollector:G?.streamCollector??jZ,useDualstackEndpoint:G?.useDualstackEndpoint??a0(KZ),useFipsEndpoint:G?.useFipsEndpoint??a0(BZ),userAgentAppId:G?.userAgentAppId??a0(CZ)}};var kZ=(G)=>{const J=G.httpAuthSchemes;let{httpAuthSchemeProvider:X,credentials:H}=G;return{setHttpAuthScheme(Z){const V=J.findIndex((Q)=>Q.schemeId===Z.schemeId);if(V===-1)J.push(Z);else J.splice(V,1,Z)},httpAuthSchemes(){return J},setHttpAuthSchemeProvider(Z){X=Z},httpAuthSchemeProvider(){return X},setCredentials(Z){H=Z},credentials(){return H}}},EZ=(G)=>{return{httpAuthSchemes:G.httpAuthSchemes(),httpAuthSchemeProvider:G.httpAuthSchemeProvider(),credentials:G.credentials()}};var B6=(G)=>G,yZ=(G,J)=>{const X={...B6(bZ(G)),...B6(_Z(G)),...B6(OZ(G)),...B6(kZ(G))};return J.forEach((H)=>H.configure(X)),{...G,...hZ(X),...gZ(X),...vZ(X),...EZ(X)}};class mJ extends nZ{constructor(...[G]){const J=NZ(G||{}),X=xH(J),H=rZ(X),Z=pZ(H),V=uZ(Z),Q=mZ(V),Y=sZ(Q),W=mH(Y),z=yZ(W,G?.extensions||[]);super(z);this.config=z,this.middlewareStack.use(iZ(this.config)),this.middlewareStack.use(oZ(this.config)),this.middlewareStack.use(dZ(this.config)),this.middlewareStack.use(xZ(this.config)),this.middlewareStack.use(lZ(this.config)),this.middlewareStack.use(cZ(this.config)),this.middlewareStack.use(A5.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:hH,identityProviderConfigProvider:async(B)=>new A5.DefaultIdentityProviderConfig({"aws.auth#sigv4":B.credentials})})),this.middlewareStack.use(A5.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var P5=H2(W6(),1);function eZ(G){return G.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function tZ(G){return G.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}class xJ{constructor(G){this.value=G}toString(){return tZ(""+this.value)}}class u2{static of(G,J,X){const H=new u2(G);if(J!==void 0)H.addChildNode(new xJ(J));if(X!==void 0)H.withName(X);return H}constructor(G,J=[]){this.name=G,this.children=J,this.attributes={}}withName(G){return this.name=G,this}addAttribute(G,J){return this.attributes[G]=J,this}addChildNode(G){return this.children.push(G),this}removeAttribute(G){return delete this.attributes[G],this}n(G){return this.name=G,this}c(G){return this.children.push(G),this}a(G,J){if(J!=null)this.attributes[G]=J;return this}cc(G,J,X=J){if(G[J]!=null){const H=u2.of(J,G[J]).withName(X);this.c(H)}}l(G,J,X,H){if(G[J]!=null)H().map((V)=>{V.withName(X),this.c(V)})}lc(G,J,X,H){if(G[J]!=null){const Z=H(),V=new u2(X);Z.map((Q)=>{V.c(Q)}),this.c(V)}}toString(){const G=Boolean(this.children.length);let J=`<${this.name}`;const X=this.attributes;for(let H of Object.keys(X)){const Z=X[H];if(Z!=null)J+=` ${H}="${eZ(""+Z)}"`}return J+=!G?"/>":`>${this.children.map((H)=>H.toString()).join("")}</${this.name}>`}}var YV=H2(aZ(),1);class L extends GV{constructor(G){super(G);Object.setPrototypeOf(this,L.prototype)}}class $6 extends L{constructor(G){super({name:"AccessDenied",$fault:"client",...G});this.name="AccessDenied",this.$fault="client",Object.setPrototypeOf(this,$6.prototype),this.Message=G.Message}}class R6 extends L{constructor(G){super({name:"IllegalUpdate",$fault:"client",...G});this.name="IllegalUpdate",this.$fault="client",Object.setPrototypeOf(this,R6.prototype),this.Message=G.Message}}class M6 extends L{constructor(G){super({name:"InvalidArgument",$fault:"client",...G});this.name="InvalidArgument",this.$fault="client",Object.setPrototypeOf(this,M6.prototype),this.Message=G.Message}}class q6 extends L{constructor(G){super({name:"NoSuchDistribution",$fault:"client",...G});this.name="NoSuchDistribution",this.$fault="client",Object.setPrototypeOf(this,q6.prototype),this.Message=G.Message}}class F6 extends L{constructor(G){super({name:"TooManyDistributionCNAMEs",$fault:"client",...G});this.name="TooManyDistributionCNAMEs",this.$fault="client",Object.setPrototypeOf(this,F6.prototype),this.Message=G.Message}}class j6 extends L{constructor(G){super({name:"BatchTooLarge",$fault:"client",...G});this.name="BatchTooLarge",this.$fault="client",Object.setPrototypeOf(this,j6.prototype),this.Message=G.Message}}class D6 extends L{constructor(G){super({name:"CachePolicyAlreadyExists",$fault:"client",...G});this.name="CachePolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,D6.prototype),this.Message=G.Message}}class I6 extends L{constructor(G){super({name:"CachePolicyInUse",$fault:"client",...G});this.name="CachePolicyInUse",this.$fault="client",Object.setPrototypeOf(this,I6.prototype),this.Message=G.Message}}class A6 extends L{constructor(G){super({name:"CannotChangeImmutablePublicKeyFields",$fault:"client",...G});this.name="CannotChangeImmutablePublicKeyFields",this.$fault="client",Object.setPrototypeOf(this,A6.prototype),this.Message=G.Message}}class C6 extends L{constructor(G){super({name:"CannotDeleteEntityWhileInUse",$fault:"client",...G});this.name="CannotDeleteEntityWhileInUse",this.$fault="client",Object.setPrototypeOf(this,C6.prototype),this.Message=G.Message}}class f6 extends L{constructor(G){super({name:"CNAMEAlreadyExists",$fault:"client",...G});this.name="CNAMEAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,f6.prototype),this.Message=G.Message}}class S6 extends L{constructor(G){super({name:"DistributionAlreadyExists",$fault:"client",...G});this.name="DistributionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,S6.prototype),this.Message=G.Message}}class P6 extends L{constructor(G){super({name:"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior",$fault:"client",...G});this.name="IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior",this.$fault="client",Object.setPrototypeOf(this,P6.prototype),this.Message=G.Message}}class L6 extends L{constructor(G){super({name:"InconsistentQuantities",$fault:"client",...G});this.name="InconsistentQuantities",this.$fault="client",Object.setPrototypeOf(this,L6.prototype),this.Message=G.Message}}class T6 extends L{constructor(G){super({name:"InvalidDefaultRootObject",$fault:"client",...G});this.name="InvalidDefaultRootObject",this.$fault="client",Object.setPrototypeOf(this,T6.prototype),this.Message=G.Message}}class w6 extends L{constructor(G){super({name:"InvalidErrorCode",$fault:"client",...G});this.name="InvalidErrorCode",this.$fault="client",Object.setPrototypeOf(this,w6.prototype),this.Message=G.Message}}class N6 extends L{constructor(G){super({name:"InvalidForwardCookies",$fault:"client",...G});this.name="InvalidForwardCookies",this.$fault="client",Object.setPrototypeOf(this,N6.prototype),this.Message=G.Message}}class k6 extends L{constructor(G){super({name:"InvalidFunctionAssociation",$fault:"client",...G});this.name="InvalidFunctionAssociation",this.$fault="client",Object.setPrototypeOf(this,k6.prototype),this.Message=G.Message}}class E6 extends L{constructor(G){super({name:"InvalidGeoRestrictionParameter",$fault:"client",...G});this.name="InvalidGeoRestrictionParameter",this.$fault="client",Object.setPrototypeOf(this,E6.prototype),this.Message=G.Message}}class O6 extends L{constructor(G){super({name:"InvalidHeadersForS3Origin",$fault:"client",...G});this.name="InvalidHeadersForS3Origin",this.$fault="client",Object.setPrototypeOf(this,O6.prototype),this.Message=G.Message}}class v6 extends L{constructor(G){super({name:"InvalidIfMatchVersion",$fault:"client",...G});this.name="InvalidIfMatchVersion",this.$fault="client",Object.setPrototypeOf(this,v6.prototype),this.Message=G.Message}}class _6 extends L{constructor(G){super({name:"InvalidLambdaFunctionAssociation",$fault:"client",...G});this.name="InvalidLambdaFunctionAssociation",this.$fault="client",Object.setPrototypeOf(this,_6.prototype),this.Message=G.Message}}class g6 extends L{constructor(G){super({name:"InvalidLocationCode",$fault:"client",...G});this.name="InvalidLocationCode",this.$fault="client",Object.setPrototypeOf(this,g6.prototype),this.Message=G.Message}}class b6 extends L{constructor(G){super({name:"InvalidMinimumProtocolVersion",$fault:"client",...G});this.name="InvalidMinimumProtocolVersion",this.$fault="client",Object.setPrototypeOf(this,b6.prototype),this.Message=G.Message}}class h6 extends L{constructor(G){super({name:"InvalidOrigin",$fault:"client",...G});this.name="InvalidOrigin",this.$fault="client",Object.setPrototypeOf(this,h6.prototype),this.Message=G.Message}}class y6 extends L{constructor(G){super({name:"InvalidOriginAccessControl",$fault:"client",...G});this.name="InvalidOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,y6.prototype),this.Message=G.Message}}class m6 extends L{constructor(G){super({name:"InvalidOriginAccessIdentity",$fault:"client",...G});this.name="InvalidOriginAccessIdentity",this.$fault="client",Object.setPrototypeOf(this,m6.prototype),this.Message=G.Message}}class x6 extends L{constructor(G){super({name:"InvalidOriginKeepaliveTimeout",$fault:"client",...G});this.name="InvalidOriginKeepaliveTimeout",this.$fault="client",Object.setPrototypeOf(this,x6.prototype),this.Message=G.Message}}class l6 extends L{constructor(G){super({name:"InvalidOriginReadTimeout",$fault:"client",...G});this.name="InvalidOriginReadTimeout",this.$fault="client",Object.setPrototypeOf(this,l6.prototype),this.Message=G.Message}}class c6 extends L{constructor(G){super({name:"InvalidProtocolSettings",$fault:"client",...G});this.name="InvalidProtocolSettings",this.$fault="client",Object.setPrototypeOf(this,c6.prototype),this.Message=G.Message}}class a6 extends L{constructor(G){super({name:"InvalidQueryStringParameters",$fault:"client",...G});this.name="InvalidQueryStringParameters",this.$fault="client",Object.setPrototypeOf(this,a6.prototype),this.Message=G.Message}}class r6 extends L{constructor(G){super({name:"InvalidRelativePath",$fault:"client",...G});this.name="InvalidRelativePath",this.$fault="client",Object.setPrototypeOf(this,r6.prototype),this.Message=G.Message}}class i6 extends L{constructor(G){super({name:"InvalidRequiredProtocol",$fault:"client",...G});this.name="InvalidRequiredProtocol",this.$fault="client",Object.setPrototypeOf(this,i6.prototype),this.Message=G.Message}}class u6 extends L{constructor(G){super({name:"InvalidResponseCode",$fault:"client",...G});this.name="InvalidResponseCode",this.$fault="client",Object.setPrototypeOf(this,u6.prototype),this.Message=G.Message}}class d6 extends L{constructor(G){super({name:"InvalidTTLOrder",$fault:"client",...G});this.name="InvalidTTLOrder",this.$fault="client",Object.setPrototypeOf(this,d6.prototype),this.Message=G.Message}}class s6 extends L{constructor(G){super({name:"InvalidViewerCertificate",$fault:"client",...G});this.name="InvalidViewerCertificate",this.$fault="client",Object.setPrototypeOf(this,s6.prototype),this.Message=G.Message}}class p6 extends L{constructor(G){super({name:"InvalidWebACLId",$fault:"client",...G});this.name="InvalidWebACLId",this.$fault="client",Object.setPrototypeOf(this,p6.prototype),this.Message=G.Message}}class n6 extends L{constructor(G){super({name:"MissingBody",$fault:"client",...G});this.name="MissingBody",this.$fault="client",Object.setPrototypeOf(this,n6.prototype),this.Message=G.Message}}class o6 extends L{constructor(G){super({name:"NoSuchCachePolicy",$fault:"client",...G});this.name="NoSuchCachePolicy",this.$fault="client",Object.setPrototypeOf(this,o6.prototype),this.Message=G.Message}}class e6 extends L{constructor(G){super({name:"NoSuchFieldLevelEncryptionConfig",$fault:"client",...G});this.name="NoSuchFieldLevelEncryptionConfig",this.$fault="client",Object.setPrototypeOf(this,e6.prototype),this.Message=G.Message}}class t6 extends L{constructor(G){super({name:"NoSuchOrigin",$fault:"client",...G});this.name="NoSuchOrigin",this.$fault="client",Object.setPrototypeOf(this,t6.prototype),this.Message=G.Message}}class G8 extends L{constructor(G){super({name:"NoSuchOriginRequestPolicy",$fault:"client",...G});this.name="NoSuchOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,G8.prototype),this.Message=G.Message}}class J8 extends L{constructor(G){super({name:"NoSuchRealtimeLogConfig",$fault:"client",...G});this.name="NoSuchRealtimeLogConfig",this.$fault="client",Object.setPrototypeOf(this,J8.prototype),this.Message=G.Message}}class X8 extends L{constructor(G){super({name:"NoSuchResponseHeadersPolicy",$fault:"client",...G});this.name="NoSuchResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,X8.prototype),this.Message=G.Message}}class H8 extends L{constructor(G){super({name:"PreconditionFailed",$fault:"client",...G});this.name="PreconditionFailed",this.$fault="client",Object.setPrototypeOf(this,H8.prototype),this.Message=G.Message}}class Z8 extends L{constructor(G){super({name:"RealtimeLogConfigOwnerMismatch",$fault:"client",...G});this.name="RealtimeLogConfigOwnerMismatch",this.$fault="client",Object.setPrototypeOf(this,Z8.prototype),this.Message=G.Message}}class V8 extends L{constructor(G){super({name:"TooManyCacheBehaviors",$fault:"client",...G});this.name="TooManyCacheBehaviors",this.$fault="client",Object.setPrototypeOf(this,V8.prototype),this.Message=G.Message}}class Q8 extends L{constructor(G){super({name:"TooManyCertificates",$fault:"client",...G});this.name="TooManyCertificates",this.$fault="client",Object.setPrototypeOf(this,Q8.prototype),this.Message=G.Message}}class Y8 extends L{constructor(G){super({name:"TooManyCookieNamesInWhiteList",$fault:"client",...G});this.name="TooManyCookieNamesInWhiteList",this.$fault="client",Object.setPrototypeOf(this,Y8.prototype),this.Message=G.Message}}class W8 extends L{constructor(G){super({name:"TooManyDistributions",$fault:"client",...G});this.name="TooManyDistributions",this.$fault="client",Object.setPrototypeOf(this,W8.prototype),this.Message=G.Message}}class z8 extends L{constructor(G){super({name:"TooManyDistributionsAssociatedToCachePolicy",$fault:"client",...G});this.name="TooManyDistributionsAssociatedToCachePolicy",this.$fault="client",Object.setPrototypeOf(this,z8.prototype),this.Message=G.Message}}class U8 extends L{constructor(G){super({name:"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig",$fault:"client",...G});this.name="TooManyDistributionsAssociatedToFieldLevelEncryptionConfig",this.$fault="client",Object.setPrototypeOf(this,U8.prototype),this.Message=G.Message}}class K8 extends L{constructor(G){super({name:"TooManyDistributionsAssociatedToKeyGroup",$fault:"client",...G});this.name="TooManyDistributionsAssociatedToKeyGroup",this.$fault="client",Object.setPrototypeOf(this,K8.prototype),this.Message=G.Message}}class B8 extends L{constructor(G){super({name:"TooManyDistributionsAssociatedToOriginAccessControl",$fault:"client",...G});this.name="TooManyDistributionsAssociatedToOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,B8.prototype),this.Message=G.Message}}class $8 extends L{constructor(G){super({name:"TooManyDistributionsAssociatedToOriginRequestPolicy",$fault:"client",...G});this.name="TooManyDistributionsAssociatedToOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,$8.prototype),this.Message=G.Message}}class R8 extends L{constructor(G){super({name:"TooManyDistributionsAssociatedToResponseHeadersPolicy",$fault:"client",...G});this.name="TooManyDistributionsAssociatedToResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,R8.prototype),this.Message=G.Message}}class M8 extends L{constructor(G){super({name:"TooManyDistributionsWithFunctionAssociations",$fault:"client",...G});this.name="TooManyDistributionsWithFunctionAssociations",this.$fault="client",Object.setPrototypeOf(this,M8.prototype),this.Message=G.Message}}class q8 extends L{constructor(G){super({name:"TooManyDistributionsWithLambdaAssociations",$fault:"client",...G});this.name="TooManyDistributionsWithLambdaAssociations",this.$fault="client",Object.setPrototypeOf(this,q8.prototype),this.Message=G.Message}}class F8 extends L{constructor(G){super({name:"TooManyDistributionsWithSingleFunctionARN",$fault:"client",...G});this.name="TooManyDistributionsWithSingleFunctionARN",this.$fault="client",Object.setPrototypeOf(this,F8.prototype),this.Message=G.Message}}class j8 extends L{constructor(G){super({name:"TooManyFunctionAssociations",$fault:"client",...G});this.name="TooManyFunctionAssociations",this.$fault="client",Object.setPrototypeOf(this,j8.prototype),this.Message=G.Message}}class D8 extends L{constructor(G){super({name:"TooManyHeadersInForwardedValues",$fault:"client",...G});this.name="TooManyHeadersInForwardedValues",this.$fault="client",Object.setPrototypeOf(this,D8.prototype),this.Message=G.Message}}class I8 extends L{constructor(G){super({name:"TooManyKeyGroupsAssociatedToDistribution",$fault:"client",...G});this.name="TooManyKeyGroupsAssociatedToDistribution",this.$fault="client",Object.setPrototypeOf(this,I8.prototype),this.Message=G.Message}}class A8 extends L{constructor(G){super({name:"TooManyLambdaFunctionAssociations",$fault:"client",...G});this.name="TooManyLambdaFunctionAssociations",this.$fault="client",Object.setPrototypeOf(this,A8.prototype),this.Message=G.Message}}class C8 extends L{constructor(G){super({name:"TooManyOriginCustomHeaders",$fault:"client",...G});this.name="TooManyOriginCustomHeaders",this.$fault="client",Object.setPrototypeOf(this,C8.prototype),this.Message=G.Message}}class f8 extends L{constructor(G){super({name:"TooManyOriginGroupsPerDistribution",$fault:"client",...G});this.name="TooManyOriginGroupsPerDistribution",this.$fault="client",Object.setPrototypeOf(this,f8.prototype),this.Message=G.Message}}class S8 extends L{constructor(G){super({name:"TooManyOrigins",$fault:"client",...G});this.name="TooManyOrigins",this.$fault="client",Object.setPrototypeOf(this,S8.prototype),this.Message=G.Message}}class P8 extends L{constructor(G){super({name:"TooManyQueryStringParameters",$fault:"client",...G});this.name="TooManyQueryStringParameters",this.$fault="client",Object.setPrototypeOf(this,P8.prototype),this.Message=G.Message}}class L8 extends L{constructor(G){super({name:"TooManyTrustedSigners",$fault:"client",...G});this.name="TooManyTrustedSigners",this.$fault="client",Object.setPrototypeOf(this,L8.prototype),this.Message=G.Message}}class T8 extends L{constructor(G){super({name:"TrustedKeyGroupDoesNotExist",$fault:"client",...G});this.name="TrustedKeyGroupDoesNotExist",this.$fault="client",Object.setPrototypeOf(this,T8.prototype),this.Message=G.Message}}class w8 extends L{constructor(G){super({name:"TrustedSignerDoesNotExist",$fault:"client",...G});this.name="TrustedSignerDoesNotExist",this.$fault="client",Object.setPrototypeOf(this,w8.prototype),this.Message=G.Message}}class N8 extends L{constructor(G){super({name:"TooManyCachePolicies",$fault:"client",...G});this.name="TooManyCachePolicies",this.$fault="client",Object.setPrototypeOf(this,N8.prototype),this.Message=G.Message}}class k8 extends L{constructor(G){super({name:"TooManyCookiesInCachePolicy",$fault:"client",...G});this.name="TooManyCookiesInCachePolicy",this.$fault="client",Object.setPrototypeOf(this,k8.prototype),this.Message=G.Message}}class E8 extends L{constructor(G){super({name:"TooManyHeadersInCachePolicy",$fault:"client",...G});this.name="TooManyHeadersInCachePolicy",this.$fault="client",Object.setPrototypeOf(this,E8.prototype),this.Message=G.Message}}class O8 extends L{constructor(G){super({name:"TooManyQueryStringsInCachePolicy",$fault:"client",...G});this.name="TooManyQueryStringsInCachePolicy",this.$fault="client",Object.setPrototypeOf(this,O8.prototype),this.Message=G.Message}}class v8 extends L{constructor(G){super({name:"CloudFrontOriginAccessIdentityAlreadyExists",$fault:"client",...G});this.name="CloudFrontOriginAccessIdentityAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,v8.prototype),this.Message=G.Message}}class _8 extends L{constructor(G){super({name:"TooManyCloudFrontOriginAccessIdentities",$fault:"client",...G});this.name="TooManyCloudFrontOriginAccessIdentities",this.$fault="client",Object.setPrototypeOf(this,_8.prototype),this.Message=G.Message}}class g8 extends L{constructor(G){super({name:"ContinuousDeploymentPolicyAlreadyExists",$fault:"client",...G});this.name="ContinuousDeploymentPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,g8.prototype),this.Message=G.Message}}class b8 extends L{constructor(G){super({name:"StagingDistributionInUse",$fault:"client",...G});this.name="StagingDistributionInUse",this.$fault="client",Object.setPrototypeOf(this,b8.prototype),this.Message=G.Message}}class h8 extends L{constructor(G){super({name:"TooManyContinuousDeploymentPolicies",$fault:"client",...G});this.name="TooManyContinuousDeploymentPolicies",this.$fault="client",Object.setPrototypeOf(this,h8.prototype),this.Message=G.Message}}class y8 extends L{constructor(G){super({name:"ContinuousDeploymentPolicyInUse",$fault:"client",...G});this.name="ContinuousDeploymentPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,y8.prototype),this.Message=G.Message}}class m8 extends L{constructor(G){super({name:"IllegalOriginAccessConfiguration",$fault:"client",...G});this.name="IllegalOriginAccessConfiguration",this.$fault="client",Object.setPrototypeOf(this,m8.prototype),this.Message=G.Message}}class x8 extends L{constructor(G){super({name:"InvalidDomainNameForOriginAccessControl",$fault:"client",...G});this.name="InvalidDomainNameForOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,x8.prototype),this.Message=G.Message}}class l8 extends L{constructor(G){super({name:"NoSuchContinuousDeploymentPolicy",$fault:"client",...G});this.name="NoSuchContinuousDeploymentPolicy",this.$fault="client",Object.setPrototypeOf(this,l8.prototype),this.Message=G.Message}}class c8 extends L{constructor(G){super({name:"InvalidTagging",$fault:"client",...G});this.name="InvalidTagging",this.$fault="client",Object.setPrototypeOf(this,c8.prototype),this.Message=G.Message}}class a8 extends L{constructor(G){super({name:"FieldLevelEncryptionConfigAlreadyExists",$fault:"client",...G});this.name="FieldLevelEncryptionConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,a8.prototype),this.Message=G.Message}}class r8 extends L{constructor(G){super({name:"NoSuchFieldLevelEncryptionProfile",$fault:"client",...G});this.name="NoSuchFieldLevelEncryptionProfile",this.$fault="client",Object.setPrototypeOf(this,r8.prototype),this.Message=G.Message}}class i8 extends L{constructor(G){super({name:"QueryArgProfileEmpty",$fault:"client",...G});this.name="QueryArgProfileEmpty",this.$fault="client",Object.setPrototypeOf(this,i8.prototype),this.Message=G.Message}}class u8 extends L{constructor(G){super({name:"TooManyFieldLevelEncryptionConfigs",$fault:"client",...G});this.name="TooManyFieldLevelEncryptionConfigs",this.$fault="client",Object.setPrototypeOf(this,u8.prototype),this.Message=G.Message}}class d8 extends L{constructor(G){super({name:"TooManyFieldLevelEncryptionContentTypeProfiles",$fault:"client",...G});this.name="TooManyFieldLevelEncryptionContentTypeProfiles",this.$fault="client",Object.setPrototypeOf(this,d8.prototype),this.Message=G.Message}}class s8 extends L{constructor(G){super({name:"TooManyFieldLevelEncryptionQueryArgProfiles",$fault:"client",...G});this.name="TooManyFieldLevelEncryptionQueryArgProfiles",this.$fault="client",Object.setPrototypeOf(this,s8.prototype),this.Message=G.Message}}class p8 extends L{constructor(G){super({name:"FieldLevelEncryptionProfileAlreadyExists",$fault:"client",...G});this.name="FieldLevelEncryptionProfileAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,p8.prototype),this.Message=G.Message}}class n8 extends L{constructor(G){super({name:"FieldLevelEncryptionProfileSizeExceeded",$fault:"client",...G});this.name="FieldLevelEncryptionProfileSizeExceeded",this.$fault="client",Object.setPrototypeOf(this,n8.prototype),this.Message=G.Message}}class o8 extends L{constructor(G){super({name:"NoSuchPublicKey",$fault:"client",...G});this.name="NoSuchPublicKey",this.$fault="client",Object.setPrototypeOf(this,o8.prototype),this.Message=G.Message}}class e8 extends L{constructor(G){super({name:"TooManyFieldLevelEncryptionEncryptionEntities",$fault:"client",...G});this.name="TooManyFieldLevelEncryptionEncryptionEntities",this.$fault="client",Object.setPrototypeOf(this,e8.prototype),this.Message=G.Message}}class t8 extends L{constructor(G){super({name:"TooManyFieldLevelEncryptionFieldPatterns",$fault:"client",...G});this.name="TooManyFieldLevelEncryptionFieldPatterns",this.$fault="client",Object.setPrototypeOf(this,t8.prototype),this.Message=G.Message}}class G4 extends L{constructor(G){super({name:"TooManyFieldLevelEncryptionProfiles",$fault:"client",...G});this.name="TooManyFieldLevelEncryptionProfiles",this.$fault="client",Object.setPrototypeOf(this,G4.prototype),this.Message=G.Message}}class J4 extends L{constructor(G){super({name:"FunctionAlreadyExists",$fault:"client",...G});this.name="FunctionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,J4.prototype),this.Message=G.Message}}class X4 extends L{constructor(G){super({name:"FunctionSizeLimitExceeded",$fault:"client",...G});this.name="FunctionSizeLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,X4.prototype),this.Message=G.Message}}class H4 extends L{constructor(G){super({name:"TooManyFunctions",$fault:"client",...G});this.name="TooManyFunctions",this.$fault="client",Object.setPrototypeOf(this,H4.prototype),this.Message=G.Message}}class Z4 extends L{constructor(G){super({name:"UnsupportedOperation",$fault:"client",...G});this.name="UnsupportedOperation",this.$fault="client",Object.setPrototypeOf(this,Z4.prototype),this.Message=G.Message}}class V4 extends L{constructor(G){super({name:"TooManyInvalidationsInProgress",$fault:"client",...G});this.name="TooManyInvalidationsInProgress",this.$fault="client",Object.setPrototypeOf(this,V4.prototype),this.Message=G.Message}}class Q4 extends L{constructor(G){super({name:"KeyGroupAlreadyExists",$fault:"client",...G});this.name="KeyGroupAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,Q4.prototype),this.Message=G.Message}}class Y4 extends L{constructor(G){super({name:"TooManyKeyGroups",$fault:"client",...G});this.name="TooManyKeyGroups",this.$fault="client",Object.setPrototypeOf(this,Y4.prototype),this.Message=G.Message}}class W4 extends L{constructor(G){super({name:"TooManyPublicKeysInKeyGroup",$fault:"client",...G});this.name="TooManyPublicKeysInKeyGroup",this.$fault="client",Object.setPrototypeOf(this,W4.prototype),this.Message=G.Message}}class z4 extends L{constructor(G){super({name:"EntityAlreadyExists",$fault:"client",...G});this.name="EntityAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,z4.prototype),this.Message=G.Message}}class U4 extends L{constructor(G){super({name:"EntityLimitExceeded",$fault:"client",...G});this.name="EntityLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,U4.prototype),this.Message=G.Message}}class K4 extends L{constructor(G){super({name:"EntitySizeLimitExceeded",$fault:"client",...G});this.name="EntitySizeLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,K4.prototype),this.Message=G.Message}}class B4 extends L{constructor(G){super({name:"MonitoringSubscriptionAlreadyExists",$fault:"client",...G});this.name="MonitoringSubscriptionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,B4.prototype),this.Message=G.Message}}class $4 extends L{constructor(G){super({name:"OriginAccessControlAlreadyExists",$fault:"client",...G});this.name="OriginAccessControlAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,$4.prototype),this.Message=G.Message}}class R4 extends L{constructor(G){super({name:"TooManyOriginAccessControls",$fault:"client",...G});this.name="TooManyOriginAccessControls",this.$fault="client",Object.setPrototypeOf(this,R4.prototype),this.Message=G.Message}}class M4 extends L{constructor(G){super({name:"OriginRequestPolicyAlreadyExists",$fault:"client",...G});this.name="OriginRequestPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,M4.prototype),this.Message=G.Message}}class q4 extends L{constructor(G){super({name:"TooManyCookiesInOriginRequestPolicy",$fault:"client",...G});this.name="TooManyCookiesInOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,q4.prototype),this.Message=G.Message}}class F4 extends L{constructor(G){super({name:"TooManyHeadersInOriginRequestPolicy",$fault:"client",...G});this.name="TooManyHeadersInOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,F4.prototype),this.Message=G.Message}}class j4 extends L{constructor(G){super({name:"TooManyOriginRequestPolicies",$fault:"client",...G});this.name="TooManyOriginRequestPolicies",this.$fault="client",Object.setPrototypeOf(this,j4.prototype),this.Message=G.Message}}class D4 extends L{constructor(G){super({name:"TooManyQueryStringsInOriginRequestPolicy",$fault:"client",...G});this.name="TooManyQueryStringsInOriginRequestPolicy",this.$fault="client",Object.setPrototypeOf(this,D4.prototype),this.Message=G.Message}}class I4 extends L{constructor(G){super({name:"PublicKeyAlreadyExists",$fault:"client",...G});this.name="PublicKeyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,I4.prototype),this.Message=G.Message}}class A4 extends L{constructor(G){super({name:"TooManyPublicKeys",$fault:"client",...G});this.name="TooManyPublicKeys",this.$fault="client",Object.setPrototypeOf(this,A4.prototype),this.Message=G.Message}}class C4 extends L{constructor(G){super({name:"RealtimeLogConfigAlreadyExists",$fault:"client",...G});this.name="RealtimeLogConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,C4.prototype),this.Message=G.Message}}class f4 extends L{constructor(G){super({name:"TooManyRealtimeLogConfigs",$fault:"client",...G});this.name="TooManyRealtimeLogConfigs",this.$fault="client",Object.setPrototypeOf(this,f4.prototype),this.Message=G.Message}}class S4 extends L{constructor(G){super({name:"ResponseHeadersPolicyAlreadyExists",$fault:"client",...G});this.name="ResponseHeadersPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,S4.prototype),this.Message=G.Message}}class P4 extends L{constructor(G){super({name:"TooLongCSPInResponseHeadersPolicy",$fault:"client",...G});this.name="TooLongCSPInResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,P4.prototype),this.Message=G.Message}}class L4 extends L{constructor(G){super({name:"TooManyCustomHeadersInResponseHeadersPolicy",$fault:"client",...G});this.name="TooManyCustomHeadersInResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,L4.prototype),this.Message=G.Message}}class T4 extends L{constructor(G){super({name:"TooManyRemoveHeadersInResponseHeadersPolicy",$fault:"client",...G});this.name="TooManyRemoveHeadersInResponseHeadersPolicy",this.$fault="client",Object.setPrototypeOf(this,T4.prototype),this.Message=G.Message}}class w4 extends L{constructor(G){super({name:"TooManyResponseHeadersPolicies",$fault:"client",...G});this.name="TooManyResponseHeadersPolicies",this.$fault="client",Object.setPrototypeOf(this,w4.prototype),this.Message=G.Message}}class N4 extends L{constructor(G){super({name:"StreamingDistributionAlreadyExists",$fault:"client",...G});this.name="StreamingDistributionAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,N4.prototype),this.Message=G.Message}}class k4 extends L{constructor(G){super({name:"TooManyStreamingDistributionCNAMEs",$fault:"client",...G});this.name="TooManyStreamingDistributionCNAMEs",this.$fault="client",Object.setPrototypeOf(this,k4.prototype),this.Message=G.Message}}class E4 extends L{constructor(G){super({name:"TooManyStreamingDistributions",$fault:"client",...G});this.name="TooManyStreamingDistributions",this.$fault="client",Object.setPrototypeOf(this,E4.prototype),this.Message=G.Message}}class O4 extends L{constructor(G){super({name:"IllegalDelete",$fault:"client",...G});this.name="IllegalDelete",this.$fault="client",Object.setPrototypeOf(this,O4.prototype),this.Message=G.Message}}class v4 extends L{constructor(G){super({name:"CloudFrontOriginAccessIdentityInUse",$fault:"client",...G});this.name="CloudFrontOriginAccessIdentityInUse",this.$fault="client",Object.setPrototypeOf(this,v4.prototype),this.Message=G.Message}}class _4 extends L{constructor(G){super({name:"NoSuchCloudFrontOriginAccessIdentity",$fault:"client",...G});this.name="NoSuchCloudFrontOriginAccessIdentity",this.$fault="client",Object.setPrototypeOf(this,_4.prototype),this.Message=G.Message}}class g4 extends L{constructor(G){super({name:"DistributionNotDisabled",$fault:"client",...G});this.name="DistributionNotDisabled",this.$fault="client",Object.setPrototypeOf(this,g4.prototype),this.Message=G.Message}}class b4 extends L{constructor(G){super({name:"FieldLevelEncryptionConfigInUse",$fault:"client",...G});this.name="FieldLevelEncryptionConfigInUse",this.$fault="client",Object.setPrototypeOf(this,b4.prototype),this.Message=G.Message}}class h4 extends L{constructor(G){super({name:"FieldLevelEncryptionProfileInUse",$fault:"client",...G});this.name="FieldLevelEncryptionProfileInUse",this.$fault="client",Object.setPrototypeOf(this,h4.prototype),this.Message=G.Message}}class y4 extends L{constructor(G){super({name:"FunctionInUse",$fault:"client",...G});this.name="FunctionInUse",this.$fault="client",Object.setPrototypeOf(this,y4.prototype),this.Message=G.Message}}class m4 extends L{constructor(G){super({name:"NoSuchFunctionExists",$fault:"client",...G});this.name="NoSuchFunctionExists",this.$fault="client",Object.setPrototypeOf(this,m4.prototype),this.Message=G.Message}}class x4 extends L{constructor(G){super({name:"NoSuchResource",$fault:"client",...G});this.name="NoSuchResource",this.$fault="client",Object.setPrototypeOf(this,x4.prototype),this.Message=G.Message}}class l4 extends L{constructor(G){super({name:"ResourceInUse",$fault:"client",...G});this.name="ResourceInUse",this.$fault="client",Object.setPrototypeOf(this,l4.prototype),this.Message=G.Message}}class c4 extends L{constructor(G){super({name:"EntityNotFound",$fault:"client",...G});this.name="EntityNotFound",this.$fault="client",Object.setPrototypeOf(this,c4.prototype),this.Message=G.Message}}class a4 extends L{constructor(G){super({name:"NoSuchMonitoringSubscription",$fault:"client",...G});this.name="NoSuchMonitoringSubscription",this.$fault="client",Object.setPrototypeOf(this,a4.prototype),this.Message=G.Message}}class r4 extends L{constructor(G){super({name:"NoSuchOriginAccessControl",$fault:"client",...G});this.name="NoSuchOriginAccessControl",this.$fault="client",Object.setPrototypeOf(this,r4.prototype),this.Message=G.Message}}class i4 extends L{constructor(G){super({name:"OriginAccessControlInUse",$fault:"client",...G});this.name="OriginAccessControlInUse",this.$fault="client",Object.setPrototypeOf(this,i4.prototype),this.Message=G.Message}}class u4 extends L{constructor(G){super({name:"OriginRequestPolicyInUse",$fault:"client",...G});this.name="OriginRequestPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,u4.prototype),this.Message=G.Message}}class d4 extends L{constructor(G){super({name:"PublicKeyInUse",$fault:"client",...G});this.name="PublicKeyInUse",this.$fault="client",Object.setPrototypeOf(this,d4.prototype),this.Message=G.Message}}class s4 extends L{constructor(G){super({name:"RealtimeLogConfigInUse",$fault:"client",...G});this.name="RealtimeLogConfigInUse",this.$fault="client",Object.setPrototypeOf(this,s4.prototype),this.Message=G.Message}}class p4 extends L{constructor(G){super({name:"ResponseHeadersPolicyInUse",$fault:"client",...G});this.name="ResponseHeadersPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,p4.prototype),this.Message=G.Message}}class n4 extends L{constructor(G){super({name:"NoSuchStreamingDistribution",$fault:"client",...G});this.name="NoSuchStreamingDistribution",this.$fault="client",Object.setPrototypeOf(this,n4.prototype),this.Message=G.Message}}class o4 extends L{constructor(G){super({name:"StreamingDistributionNotDisabled",$fault:"client",...G});this.name="StreamingDistributionNotDisabled",this.$fault="client",Object.setPrototypeOf(this,o4.prototype),this.Message=G.Message}}class e4 extends L{constructor(G){super({name:"NoSuchInvalidation",$fault:"client",...G});this.name="NoSuchInvalidation",this.$fault="client",Object.setPrototypeOf(this,e4.prototype),this.Message=G.Message}}class t4 extends L{constructor(G){super({name:"TestFunctionFailed",$fault:"server",...G});this.name="TestFunctionFailed",this.$fault="server",Object.setPrototypeOf(this,t4.prototype),this.Message=G.Message}}var WV=async(G,J)=>{const X=YV.requestBuilder(G,J),H={"content-type":"application/xml"};X.bp("/2020-05-31/distribution/{DistributionId}/invalidation"),X.p("DistributionId",()=>G.DistributionId,"{DistributionId}",!1);let Z,V;if(G.InvalidationBatch!==void 0)V=YI(G.InvalidationBatch,J),Z=FI,V.a("xmlns","http://cloudfront.amazonaws.com/doc/2020-05-31/"),Z+=V.toString();return X.m("POST").h(H).b(Z),X.build()};var zV=async(G,J)=>{if(G.statusCode!==201&&G.statusCode>=300)return jF(G,J);const X=N({$metadata:E(G),[RI]:[,G.headers[qI]]}),H=XV(await P5.parseXmlBody(G.body,J));return X.Invalidation=UI(H,J),X};var jF=async(G,J)=>{const X={...G,body:await P5.parseXmlErrorBody(G.body,J)},H=P5.loadRestXmlErrorCode(G,X.body);switch(H){case"AccessDenied":case"com.amazonaws.cloudfront#AccessDenied":throw await IF(X,J);case"IllegalUpdate":case"com.amazonaws.cloudfront#IllegalUpdate":throw await sF(X,J);case"InvalidArgument":case"com.amazonaws.cloudfront#InvalidArgument":throw await nF(X,J);case"NoSuchDistribution":case"com.amazonaws.cloudfront#NoSuchDistribution":throw await wj(X,J);case"TooManyDistributionCNAMEs":case"com.amazonaws.cloudfront#TooManyDistributionCNAMEs":throw await qD(X,J);case"CNAMEAlreadyExists":case"com.amazonaws.cloudfront#CNAMEAlreadyExists":throw await wF(X,J);case"DistributionAlreadyExists":case"com.amazonaws.cloudfront#DistributionAlreadyExists":throw await EF(X,J);case"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":case"com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":throw await uF(X,J);case"InconsistentQuantities":case"com.amazonaws.cloudfront#InconsistentQuantities":throw await pF(X,J);case"InvalidDefaultRootObject":case"com.amazonaws.cloudfront#InvalidDefaultRootObject":throw await oF(X,J);case"InvalidErrorCode":case"com.amazonaws.cloudfront#InvalidErrorCode":throw await tF(X,J);case"InvalidForwardCookies":case"com.amazonaws.cloudfront#InvalidForwardCookies":throw await Gj(X,J);case"InvalidFunctionAssociation":case"com.amazonaws.cloudfront#InvalidFunctionAssociation":throw await Jj(X,J);case"InvalidGeoRestrictionParameter":case"com.amazonaws.cloudfront#InvalidGeoRestrictionParameter":throw await Xj(X,J);case"InvalidHeadersForS3Origin":case"com.amazonaws.cloudfront#InvalidHeadersForS3Origin":throw await Hj(X,J);case"InvalidIfMatchVersion":case"com.amazonaws.cloudfront#InvalidIfMatchVersion":throw await Zj(X,J);case"InvalidLambdaFunctionAssociation":case"com.amazonaws.cloudfront#InvalidLambdaFunctionAssociation":throw await Vj(X,J);case"InvalidLocationCode":case"com.amazonaws.cloudfront#InvalidLocationCode":throw await Qj(X,J);case"InvalidMinimumProtocolVersion":case"com.amazonaws.cloudfront#InvalidMinimumProtocolVersion":throw await Yj(X,J);case"InvalidOrigin":case"com.amazonaws.cloudfront#InvalidOrigin":throw await Wj(X,J);case"InvalidOriginAccessControl":case"com.amazonaws.cloudfront#InvalidOriginAccessControl":throw await zj(X,J);case"InvalidOriginAccessIdentity":case"com.amazonaws.cloudfront#InvalidOriginAccessIdentity":throw await Uj(X,J);case"InvalidOriginKeepaliveTimeout":case"com.amazonaws.cloudfront#InvalidOriginKeepaliveTimeout":throw await Kj(X,J);case"InvalidOriginReadTimeout":case"com.amazonaws.cloudfront#InvalidOriginReadTimeout":throw await Bj(X,J);case"InvalidProtocolSettings":case"com.amazonaws.cloudfront#InvalidProtocolSettings":throw await $j(X,J);case"InvalidQueryStringParameters":case"com.amazonaws.cloudfront#InvalidQueryStringParameters":throw await Rj(X,J);case"InvalidRelativePath":case"com.amazonaws.cloudfront#InvalidRelativePath":throw await Mj(X,J);case"InvalidRequiredProtocol":case"com.amazonaws.cloudfront#InvalidRequiredProtocol":throw await qj(X,J);case"InvalidResponseCode":case"com.amazonaws.cloudfront#InvalidResponseCode":throw await Fj(X,J);case"InvalidTTLOrder":case"com.amazonaws.cloudfront#InvalidTTLOrder":throw await Dj(X,J);case"InvalidViewerCertificate":case"com.amazonaws.cloudfront#InvalidViewerCertificate":throw await Ij(X,J);case"InvalidWebACLId":case"com.amazonaws.cloudfront#InvalidWebACLId":throw await Aj(X,J);case"MissingBody":case"com.amazonaws.cloudfront#MissingBody":throw await fj(X,J);case"NoSuchCachePolicy":case"com.amazonaws.cloudfront#NoSuchCachePolicy":throw await Pj(X,J);case"NoSuchFieldLevelEncryptionConfig":case"com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig":throw await Nj(X,J);case"NoSuchOrigin":case"com.amazonaws.cloudfront#NoSuchOrigin":throw await _j(X,J);case"NoSuchOriginRequestPolicy":case"com.amazonaws.cloudfront#NoSuchOriginRequestPolicy":throw await bj(X,J);case"NoSuchRealtimeLogConfig":case"com.amazonaws.cloudfront#NoSuchRealtimeLogConfig":throw await yj(X,J);case"NoSuchResponseHeadersPolicy":case"com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":throw await xj(X,J);case"PreconditionFailed":case"com.amazonaws.cloudfront#PreconditionFailed":throw await uj(X,J);case"RealtimeLogConfigOwnerMismatch":case"com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":throw await ej(X,J);case"TooManyCacheBehaviors":case"com.amazonaws.cloudfront#TooManyCacheBehaviors":throw await YD(X,J);case"TooManyCertificates":case"com.amazonaws.cloudfront#TooManyCertificates":throw await zD(X,J);case"TooManyCookieNamesInWhiteList":case"com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList":throw await BD(X,J);case"TooManyDistributions":case"com.amazonaws.cloudfront#TooManyDistributions":throw await FD(X,J);case"TooManyDistributionsAssociatedToCachePolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy":throw await jD(X,J);case"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":throw await DD(X,J);case"TooManyDistributionsAssociatedToKeyGroup":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":throw await ID(X,J);case"TooManyDistributionsAssociatedToOriginAccessControl":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":throw await AD(X,J);case"TooManyDistributionsAssociatedToOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":throw await CD(X,J);case"TooManyDistributionsAssociatedToResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy":throw await fD(X,J);case"TooManyDistributionsWithFunctionAssociations":case"com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations":throw await SD(X,J);case"TooManyDistributionsWithLambdaAssociations":case"com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations":throw await PD(X,J);case"TooManyDistributionsWithSingleFunctionARN":case"com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN":throw await LD(X,J);case"TooManyFunctionAssociations":case"com.amazonaws.cloudfront#TooManyFunctionAssociations":throw await vD(X,J);case"TooManyHeadersInForwardedValues":case"com.amazonaws.cloudfront#TooManyHeadersInForwardedValues":throw await bD(X,J);case"TooManyKeyGroupsAssociatedToDistribution":case"com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution":throw await xD(X,J);case"TooManyLambdaFunctionAssociations":case"com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations":throw await lD(X,J);case"TooManyOriginCustomHeaders":case"com.amazonaws.cloudfront#TooManyOriginCustomHeaders":throw await aD(X,J);case"TooManyOriginGroupsPerDistribution":case"com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution":throw await rD(X,J);case"TooManyOrigins":case"com.amazonaws.cloudfront#TooManyOrigins":throw await uD(X,J);case"TooManyQueryStringParameters":case"com.amazonaws.cloudfront#TooManyQueryStringParameters":throw await pD(X,J);case"TooManyTrustedSigners":case"com.amazonaws.cloudfront#TooManyTrustedSigners":throw await HI(X,J);case"TrustedKeyGroupDoesNotExist":case"com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist":throw await ZI(X,J);case"TrustedSignerDoesNotExist":case"com.amazonaws.cloudfront#TrustedSignerDoesNotExist":throw await VI(X,J);case"CachePolicyAlreadyExists":case"com.amazonaws.cloudfront#CachePolicyAlreadyExists":throw await CF(X,J);case"TooManyCachePolicies":case"com.amazonaws.cloudfront#TooManyCachePolicies":throw await WD(X,J);case"TooManyCookiesInCachePolicy":case"com.amazonaws.cloudfront#TooManyCookiesInCachePolicy":throw await $D(X,J);case"TooManyHeadersInCachePolicy":case"com.amazonaws.cloudfront#TooManyHeadersInCachePolicy":throw await gD(X,J);case"TooManyQueryStringsInCachePolicy":case"com.amazonaws.cloudfront#TooManyQueryStringsInCachePolicy":throw await nD(X,J);case"CloudFrontOriginAccessIdentityAlreadyExists":case"com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityAlreadyExists":throw await LF(X,J);case"TooManyCloudFrontOriginAccessIdentities":case"com.amazonaws.cloudfront#TooManyCloudFrontOriginAccessIdentities":throw await UD(X,J);case"ContinuousDeploymentPolicyAlreadyExists":case"com.amazonaws.cloudfront#ContinuousDeploymentPolicyAlreadyExists":throw await NF(X,J);case"StagingDistributionInUse":case"com.amazonaws.cloudfront#StagingDistributionInUse":throw await XD(X,J);case"TooManyContinuousDeploymentPolicies":case"com.amazonaws.cloudfront#TooManyContinuousDeploymentPolicies":throw await KD(X,J);case"ContinuousDeploymentPolicyInUse":case"com.amazonaws.cloudfront#ContinuousDeploymentPolicyInUse":throw await kF(X,J);case"IllegalOriginAccessConfiguration":case"com.amazonaws.cloudfront#IllegalOriginAccessConfiguration":throw await dF(X,J);case"InvalidDomainNameForOriginAccessControl":case"com.amazonaws.cloudfront#InvalidDomainNameForOriginAccessControl":throw await eF(X,J);case"NoSuchContinuousDeploymentPolicy":case"com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":throw await Tj(X,J);case"InvalidTagging":case"com.amazonaws.cloudfront#InvalidTagging":throw await jj(X,J);case"FieldLevelEncryptionConfigAlreadyExists":case"com.amazonaws.cloudfront#FieldLevelEncryptionConfigAlreadyExists":throw await hF(X,J);case"NoSuchFieldLevelEncryptionProfile":case"com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionProfile":throw await kj(X,J);case"QueryArgProfileEmpty":case"com.amazonaws.cloudfront#QueryArgProfileEmpty":throw await pj(X,J);case"TooManyFieldLevelEncryptionConfigs":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionConfigs":throw await TD(X,J);case"TooManyFieldLevelEncryptionContentTypeProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionContentTypeProfiles":throw await wD(X,J);case"TooManyFieldLevelEncryptionQueryArgProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionQueryArgProfiles":throw await OD(X,J);case"FieldLevelEncryptionProfileAlreadyExists":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileAlreadyExists":throw await mF(X,J);case"FieldLevelEncryptionProfileSizeExceeded":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileSizeExceeded":throw await lF(X,J);case"NoSuchPublicKey":case"com.amazonaws.cloudfront#NoSuchPublicKey":throw await hj(X,J);case"TooManyFieldLevelEncryptionEncryptionEntities":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionEncryptionEntities":throw await ND(X,J);case"TooManyFieldLevelEncryptionFieldPatterns":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionFieldPatterns":throw await kD(X,J);case"TooManyFieldLevelEncryptionProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionProfiles":throw await ED(X,J);case"FunctionAlreadyExists":case"com.amazonaws.cloudfront#FunctionAlreadyExists":throw await cF(X,J);case"FunctionSizeLimitExceeded":case"com.amazonaws.cloudfront#FunctionSizeLimitExceeded":throw await rF(X,J);case"TooManyFunctions":case"com.amazonaws.cloudfront#TooManyFunctions":throw await _D(X,J);case"UnsupportedOperation":case"com.amazonaws.cloudfront#UnsupportedOperation":throw await QI(X,J);case"BatchTooLarge":case"com.amazonaws.cloudfront#BatchTooLarge":throw await AF(X,J);case"TooManyInvalidationsInProgress":case"com.amazonaws.cloudfront#TooManyInvalidationsInProgress":throw await yD(X,J);case"KeyGroupAlreadyExists":case"com.amazonaws.cloudfront#KeyGroupAlreadyExists":throw await Cj(X,J);case"TooManyKeyGroups":case"com.amazonaws.cloudfront#TooManyKeyGroups":throw await mD(X,J);case"TooManyPublicKeysInKeyGroup":case"com.amazonaws.cloudfront#TooManyPublicKeysInKeyGroup":throw await sD(X,J);case"EntityAlreadyExists":case"com.amazonaws.cloudfront#EntityAlreadyExists":throw await vF(X,J);case"EntityLimitExceeded":case"com.amazonaws.cloudfront#EntityLimitExceeded":throw await _F(X,J);case"EntitySizeLimitExceeded":case"com.amazonaws.cloudfront#EntitySizeLimitExceeded":throw await bF(X,J);case"MonitoringSubscriptionAlreadyExists":case"com.amazonaws.cloudfront#MonitoringSubscriptionAlreadyExists":throw await Sj(X,J);case"OriginAccessControlAlreadyExists":case"com.amazonaws.cloudfront#OriginAccessControlAlreadyExists":throw await cj(X,J);case"TooManyOriginAccessControls":case"com.amazonaws.cloudfront#TooManyOriginAccessControls":throw await cD(X,J);case"OriginRequestPolicyAlreadyExists":case"com.amazonaws.cloudfront#OriginRequestPolicyAlreadyExists":throw await rj(X,J);case"TooManyCookiesInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyCookiesInOriginRequestPolicy":throw await RD(X,J);case"TooManyHeadersInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyHeadersInOriginRequestPolicy":throw await hD(X,J);case"TooManyOriginRequestPolicies":case"com.amazonaws.cloudfront#TooManyOriginRequestPolicies":throw await iD(X,J);case"TooManyQueryStringsInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyQueryStringsInOriginRequestPolicy":throw await oD(X,J);case"PublicKeyAlreadyExists":case"com.amazonaws.cloudfront#PublicKeyAlreadyExists":throw await dj(X,J);case"TooManyPublicKeys":case"com.amazonaws.cloudfront#TooManyPublicKeys":throw await dD(X,J);case"RealtimeLogConfigAlreadyExists":case"com.amazonaws.cloudfront#RealtimeLogConfigAlreadyExists":throw await nj(X,J);case"TooManyRealtimeLogConfigs":case"com.amazonaws.cloudfront#TooManyRealtimeLogConfigs":throw await eD(X,J);case"ResponseHeadersPolicyAlreadyExists":case"com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists":throw await GD(X,J);case"TooLongCSPInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy":throw await QD(X,J);case"TooManyCustomHeadersInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy":throw await MD(X,J);case"TooManyRemoveHeadersInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyRemoveHeadersInResponseHeadersPolicy":throw await tD(X,J);case"TooManyResponseHeadersPolicies":case"com.amazonaws.cloudfront#TooManyResponseHeadersPolicies":throw await GI(X,J);case"StreamingDistributionAlreadyExists":case"com.amazonaws.cloudfront#StreamingDistributionAlreadyExists":throw await HD(X,J);case"TooManyStreamingDistributionCNAMEs":case"com.amazonaws.cloudfront#TooManyStreamingDistributionCNAMEs":throw await JI(X,J);case"TooManyStreamingDistributions":case"com.amazonaws.cloudfront#TooManyStreamingDistributions":throw await XI(X,J);case"CachePolicyInUse":case"com.amazonaws.cloudfront#CachePolicyInUse":throw await fF(X,J);case"IllegalDelete":case"com.amazonaws.cloudfront#IllegalDelete":throw await iF(X,J);case"CloudFrontOriginAccessIdentityInUse":case"com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityInUse":throw await TF(X,J);case"NoSuchCloudFrontOriginAccessIdentity":case"com.amazonaws.cloudfront#NoSuchCloudFrontOriginAccessIdentity":throw await Lj(X,J);case"DistributionNotDisabled":case"com.amazonaws.cloudfront#DistributionNotDisabled":throw await OF(X,J);case"FieldLevelEncryptionConfigInUse":case"com.amazonaws.cloudfront#FieldLevelEncryptionConfigInUse":throw await yF(X,J);case"FieldLevelEncryptionProfileInUse":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileInUse":throw await xF(X,J);case"FunctionInUse":case"com.amazonaws.cloudfront#FunctionInUse":throw await aF(X,J);case"NoSuchFunctionExists":case"com.amazonaws.cloudfront#NoSuchFunctionExists":throw await Ej(X,J);case"NoSuchResource":case"com.amazonaws.cloudfront#NoSuchResource":throw await mj(X,J);case"ResourceInUse":case"com.amazonaws.cloudfront#ResourceInUse":throw await tj(X,J);case"CannotDeleteEntityWhileInUse":case"com.amazonaws.cloudfront#CannotDeleteEntityWhileInUse":throw await PF(X,J);case"EntityNotFound":case"com.amazonaws.cloudfront#EntityNotFound":throw await gF(X,J);case"NoSuchMonitoringSubscription":case"com.amazonaws.cloudfront#NoSuchMonitoringSubscription":throw await vj(X,J);case"NoSuchOriginAccessControl":case"com.amazonaws.cloudfront#NoSuchOriginAccessControl":throw await gj(X,J);case"OriginAccessControlInUse":case"com.amazonaws.cloudfront#OriginAccessControlInUse":throw await aj(X,J);case"OriginRequestPolicyInUse":case"com.amazonaws.cloudfront#OriginRequestPolicyInUse":throw await ij(X,J);case"PublicKeyInUse":case"com.amazonaws.cloudfront#PublicKeyInUse":throw await sj(X,J);case"RealtimeLogConfigInUse":case"com.amazonaws.cloudfront#RealtimeLogConfigInUse":throw await oj(X,J);case"ResponseHeadersPolicyInUse":case"com.amazonaws.cloudfront#ResponseHeadersPolicyInUse":throw await JD(X,J);case"NoSuchStreamingDistribution":case"com.amazonaws.cloudfront#NoSuchStreamingDistribution":throw await lj(X,J);case"StreamingDistributionNotDisabled":case"com.amazonaws.cloudfront#StreamingDistributionNotDisabled":throw await ZD(X,J);case"NoSuchInvalidation":case"com.amazonaws.cloudfront#NoSuchInvalidation":throw await Oj(X,J);case"TestFunctionFailed":case"com.amazonaws.cloudfront#TestFunctionFailed":throw await VD(X,J);case"CannotChangeImmutablePublicKeyFields":case"com.amazonaws.cloudfront#CannotChangeImmutablePublicKeyFields":throw await SF(X,J);default:const Z=X.body;return DF({output:G,parsedBody:Z.Error,errorCode:H})}},DF=VV(L),IF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new $6({$metadata:E(G),...X});return k(Z,G.body.Error)},AF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new j6({$metadata:E(G),...X});return k(Z,G.body.Error)},CF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new D6({$metadata:E(G),...X});return k(Z,G.body.Error)},fF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new I6({$metadata:E(G),...X});return k(Z,G.body.Error)},SF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new A6({$metadata:E(G),...X});return k(Z,G.body.Error)},PF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new C6({$metadata:E(G),...X});return k(Z,G.body.Error)},LF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new v8({$metadata:E(G),...X});return k(Z,G.body.Error)},TF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new v4({$metadata:E(G),...X});return k(Z,G.body.Error)},wF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new f6({$metadata:E(G),...X});return k(Z,G.body.Error)},NF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new g8({$metadata:E(G),...X});return k(Z,G.body.Error)},kF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new y8({$metadata:E(G),...X});return k(Z,G.body.Error)},EF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new S6({$metadata:E(G),...X});return k(Z,G.body.Error)},OF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new g4({$metadata:E(G),...X});return k(Z,G.body.Error)},vF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new z4({$metadata:E(G),...X});return k(Z,G.body.Error)},_F=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new U4({$metadata:E(G),...X});return k(Z,G.body.Error)},gF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new c4({$metadata:E(G),...X});return k(Z,G.body.Error)},bF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new K4({$metadata:E(G),...X});return k(Z,G.body.Error)},hF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new a8({$metadata:E(G),...X});return k(Z,G.body.Error)},yF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new b4({$metadata:E(G),...X});return k(Z,G.body.Error)},mF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new p8({$metadata:E(G),...X});return k(Z,G.body.Error)},xF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new h4({$metadata:E(G),...X});return k(Z,G.body.Error)},lF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new n8({$metadata:E(G),...X});return k(Z,G.body.Error)},cF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new J4({$metadata:E(G),...X});return k(Z,G.body.Error)},aF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new y4({$metadata:E(G),...X});return k(Z,G.body.Error)},rF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new X4({$metadata:E(G),...X});return k(Z,G.body.Error)},iF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new O4({$metadata:E(G),...X});return k(Z,G.body.Error)},uF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new P6({$metadata:E(G),...X});return k(Z,G.body.Error)},dF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new m8({$metadata:E(G),...X});return k(Z,G.body.Error)},sF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new R6({$metadata:E(G),...X});return k(Z,G.body.Error)},pF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new L6({$metadata:E(G),...X});return k(Z,G.body.Error)},nF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new M6({$metadata:E(G),...X});return k(Z,G.body.Error)},oF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new T6({$metadata:E(G),...X});return k(Z,G.body.Error)},eF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new x8({$metadata:E(G),...X});return k(Z,G.body.Error)},tF=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new w6({$metadata:E(G),...X});return k(Z,G.body.Error)},Gj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new N6({$metadata:E(G),...X});return k(Z,G.body.Error)},Jj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new k6({$metadata:E(G),...X});return k(Z,G.body.Error)},Xj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new E6({$metadata:E(G),...X});return k(Z,G.body.Error)},Hj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new O6({$metadata:E(G),...X});return k(Z,G.body.Error)},Zj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new v6({$metadata:E(G),...X});return k(Z,G.body.Error)},Vj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new _6({$metadata:E(G),...X});return k(Z,G.body.Error)},Qj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new g6({$metadata:E(G),...X});return k(Z,G.body.Error)},Yj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new b6({$metadata:E(G),...X});return k(Z,G.body.Error)},Wj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new h6({$metadata:E(G),...X});return k(Z,G.body.Error)},zj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new y6({$metadata:E(G),...X});return k(Z,G.body.Error)},Uj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new m6({$metadata:E(G),...X});return k(Z,G.body.Error)},Kj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new x6({$metadata:E(G),...X});return k(Z,G.body.Error)},Bj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new l6({$metadata:E(G),...X});return k(Z,G.body.Error)},$j=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new c6({$metadata:E(G),...X});return k(Z,G.body.Error)},Rj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new a6({$metadata:E(G),...X});return k(Z,G.body.Error)},Mj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new r6({$metadata:E(G),...X});return k(Z,G.body.Error)},qj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new i6({$metadata:E(G),...X});return k(Z,G.body.Error)},Fj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new u6({$metadata:E(G),...X});return k(Z,G.body.Error)},jj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new c8({$metadata:E(G),...X});return k(Z,G.body.Error)},Dj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new d6({$metadata:E(G),...X});return k(Z,G.body.Error)},Ij=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new s6({$metadata:E(G),...X});return k(Z,G.body.Error)},Aj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new p6({$metadata:E(G),...X});return k(Z,G.body.Error)},Cj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new Q4({$metadata:E(G),...X});return k(Z,G.body.Error)},fj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new n6({$metadata:E(G),...X});return k(Z,G.body.Error)},Sj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new B4({$metadata:E(G),...X});return k(Z,G.body.Error)},Pj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new o6({$metadata:E(G),...X});return k(Z,G.body.Error)},Lj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new _4({$metadata:E(G),...X});return k(Z,G.body.Error)},Tj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new l8({$metadata:E(G),...X});return k(Z,G.body.Error)},wj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new q6({$metadata:E(G),...X});return k(Z,G.body.Error)},Nj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new e6({$metadata:E(G),...X});return k(Z,G.body.Error)},kj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new r8({$metadata:E(G),...X});return k(Z,G.body.Error)},Ej=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new m4({$metadata:E(G),...X});return k(Z,G.body.Error)},Oj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new e4({$metadata:E(G),...X});return k(Z,G.body.Error)},vj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new a4({$metadata:E(G),...X});return k(Z,G.body.Error)},_j=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new t6({$metadata:E(G),...X});return k(Z,G.body.Error)},gj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new r4({$metadata:E(G),...X});return k(Z,G.body.Error)},bj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new G8({$metadata:E(G),...X});return k(Z,G.body.Error)},hj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new o8({$metadata:E(G),...X});return k(Z,G.body.Error)},yj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new J8({$metadata:E(G),...X});return k(Z,G.body.Error)},mj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new x4({$metadata:E(G),...X});return k(Z,G.body.Error)},xj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new X8({$metadata:E(G),...X});return k(Z,G.body.Error)},lj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new n4({$metadata:E(G),...X});return k(Z,G.body.Error)},cj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new $4({$metadata:E(G),...X});return k(Z,G.body.Error)},aj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new i4({$metadata:E(G),...X});return k(Z,G.body.Error)},rj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new M4({$metadata:E(G),...X});return k(Z,G.body.Error)},ij=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new u4({$metadata:E(G),...X});return k(Z,G.body.Error)},uj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new H8({$metadata:E(G),...X});return k(Z,G.body.Error)},dj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new I4({$metadata:E(G),...X});return k(Z,G.body.Error)},sj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new d4({$metadata:E(G),...X});return k(Z,G.body.Error)},pj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new i8({$metadata:E(G),...X});return k(Z,G.body.Error)},nj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new C4({$metadata:E(G),...X});return k(Z,G.body.Error)},oj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new s4({$metadata:E(G),...X});return k(Z,G.body.Error)},ej=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new Z8({$metadata:E(G),...X});return k(Z,G.body.Error)},tj=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new l4({$metadata:E(G),...X});return k(Z,G.body.Error)},GD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new S4({$metadata:E(G),...X});return k(Z,G.body.Error)},JD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new p4({$metadata:E(G),...X});return k(Z,G.body.Error)},XD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new b8({$metadata:E(G),...X});return k(Z,G.body.Error)},HD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new N4({$metadata:E(G),...X});return k(Z,G.body.Error)},ZD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new o4({$metadata:E(G),...X});return k(Z,G.body.Error)},VD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new t4({$metadata:E(G),...X});return k(Z,G.body.Error)},QD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new P4({$metadata:E(G),...X});return k(Z,G.body.Error)},YD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new V8({$metadata:E(G),...X});return k(Z,G.body.Error)},WD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new N8({$metadata:E(G),...X});return k(Z,G.body.Error)},zD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new Q8({$metadata:E(G),...X});return k(Z,G.body.Error)},UD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new _8({$metadata:E(G),...X});return k(Z,G.body.Error)},KD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new h8({$metadata:E(G),...X});return k(Z,G.body.Error)},BD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new Y8({$metadata:E(G),...X});return k(Z,G.body.Error)},$D=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new k8({$metadata:E(G),...X});return k(Z,G.body.Error)},RD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new q4({$metadata:E(G),...X});return k(Z,G.body.Error)},MD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new L4({$metadata:E(G),...X});return k(Z,G.body.Error)},qD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new F6({$metadata:E(G),...X});return k(Z,G.body.Error)},FD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new W8({$metadata:E(G),...X});return k(Z,G.body.Error)},jD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new z8({$metadata:E(G),...X});return k(Z,G.body.Error)},DD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new U8({$metadata:E(G),...X});return k(Z,G.body.Error)},ID=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new K8({$metadata:E(G),...X});return k(Z,G.body.Error)},AD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new B8({$metadata:E(G),...X});return k(Z,G.body.Error)},CD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new $8({$metadata:E(G),...X});return k(Z,G.body.Error)},fD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new R8({$metadata:E(G),...X});return k(Z,G.body.Error)},SD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new M8({$metadata:E(G),...X});return k(Z,G.body.Error)},PD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new q8({$metadata:E(G),...X});return k(Z,G.body.Error)},LD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new F8({$metadata:E(G),...X});return k(Z,G.body.Error)},TD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new u8({$metadata:E(G),...X});return k(Z,G.body.Error)},wD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new d8({$metadata:E(G),...X});return k(Z,G.body.Error)},ND=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new e8({$metadata:E(G),...X});return k(Z,G.body.Error)},kD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new t8({$metadata:E(G),...X});return k(Z,G.body.Error)},ED=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new G4({$metadata:E(G),...X});return k(Z,G.body.Error)},OD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new s8({$metadata:E(G),...X});return k(Z,G.body.Error)},vD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new j8({$metadata:E(G),...X});return k(Z,G.body.Error)},_D=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new H4({$metadata:E(G),...X});return k(Z,G.body.Error)},gD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new E8({$metadata:E(G),...X});return k(Z,G.body.Error)},bD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new D8({$metadata:E(G),...X});return k(Z,G.body.Error)},hD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new F4({$metadata:E(G),...X});return k(Z,G.body.Error)},yD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new V4({$metadata:E(G),...X});return k(Z,G.body.Error)},mD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new Y4({$metadata:E(G),...X});return k(Z,G.body.Error)},xD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new I8({$metadata:E(G),...X});return k(Z,G.body.Error)},lD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new A8({$metadata:E(G),...X});return k(Z,G.body.Error)},cD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new R4({$metadata:E(G),...X});return k(Z,G.body.Error)},aD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new C8({$metadata:E(G),...X});return k(Z,G.body.Error)},rD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new f8({$metadata:E(G),...X});return k(Z,G.body.Error)},iD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new j4({$metadata:E(G),...X});return k(Z,G.body.Error)},uD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new S8({$metadata:E(G),...X});return k(Z,G.body.Error)},dD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new A4({$metadata:E(G),...X});return k(Z,G.body.Error)},sD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new W4({$metadata:E(G),...X});return k(Z,G.body.Error)},pD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new P8({$metadata:E(G),...X});return k(Z,G.body.Error)},nD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new O8({$metadata:E(G),...X});return k(Z,G.body.Error)},oD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new D4({$metadata:E(G),...X});return k(Z,G.body.Error)},eD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new f4({$metadata:E(G),...X});return k(Z,G.body.Error)},tD=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new T4({$metadata:E(G),...X});return k(Z,G.body.Error)},GI=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new w4({$metadata:E(G),...X});return k(Z,G.body.Error)},JI=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new k4({$metadata:E(G),...X});return k(Z,G.body.Error)},XI=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new E4({$metadata:E(G),...X});return k(Z,G.body.Error)},HI=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new L8({$metadata:E(G),...X});return k(Z,G.body.Error)},ZI=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new T8({$metadata:E(G),...X});return k(Z,G.body.Error)},VI=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new w8({$metadata:E(G),...X});return k(Z,G.body.Error)},QI=async(G,J)=>{const X=N({}),H=G.body.Error;if(H[U]!=null)X[U]=T(H[U]);const Z=new Z4({$metadata:E(G),...X});return k(Z,G.body.Error)};var YI=(G,J)=>{const X=new u2(GG);if(G[r0]!=null)X.c(zI(G[r0],J).n(r0));if(G[f5]!=null)X.c(u2.of(UV,G[f5]).n(f5));return X};var WI=(G,J)=>{return G.filter((X)=>X!=null).map((X)=>{return u2.of(UV,X).n(rJ)})},zI=(G,J)=>{const X=new u2(r0);if(G[S5]!=null)X.c(u2.of(MI,String(G[S5])).n(S5));return X.lc(G,"Items","Items",()=>WI(G[C5],J)),X};var UI=(G,J)=>{const X={};if(G[cJ]!=null)X[cJ]=T(G[cJ]);if(G[aJ]!=null)X[aJ]=T(G[aJ]);if(G[lJ]!=null)X[lJ]=JV(ZV(G[lJ]));if(G[GG]!=null)X[GG]=KI(G[GG],J);return X},KI=(G,J)=>{const X={};if(G[r0]!=null)X[r0]=$I(G[r0],J);if(G[f5]!=null)X[f5]=T(G[f5]);return X};var BI=(G,J)=>{return(G||[]).filter((X)=>X!=null).map((X)=>{return T(X)})},$I=(G,J)=>{const X={};if(G[S5]!=null)X[S5]=HV(G[S5]);if(G.Items==="")X[C5]=[];else if(G[C5]!=null&&G[C5][rJ]!=null)X[C5]=BI(QV(G[C5][rJ]),J);return X};var E=(G)=>({httpStatusCode:G.statusCode,requestId:G.headers["x-amzn-requestid"]??G.headers["x-amzn-request-id"]??G.headers["x-amz-request-id"],extendedRequestId:G.headers["x-amz-id-2"],cfId:G.headers["x-amz-cf-id"]});var f5="CallerReference";var lJ="CreateTime";var C5="Items";var GG="InvalidationBatch";var cJ="Id";var RI="Location";var U="Message";var r0="Paths";var rJ="Path";var S5="Quantity";var aJ="Status";var MI="integer";var qI="location";var UV="string",FI='<?xml version="1.0" encoding="UTF-8"?>';class iJ extends $V.classBuilder().ep(lH).m(function(G,J,X,H){return[KV(X,this.serialize,this.deserialize),BV(X,G.getEndpointParameterInstructions())]}).s("Cloudfront2020_05_31","CreateInvalidation",{}).n("CloudFrontClient","CreateInvalidationCommand").f(void 0,void 0).ser(WV).de(zV).build(){}import{intro as L5,italic as Q9,log as O1,outro as w1,prompts as Y9,runCommand as i0,underline as RV}from"@stacksjs/cli";import{addJumpBox as jI,deleteCdkRemnants as DI,deleteIamUsers as II,deleteJumpBox as uJ,deleteLogGroups as AI,deleteParameterStore as CI,deleteStacksBuckets as fI,deleteStacksFunctions as SI,deleteSubnets as PI,deleteVpcs as LI,getCloudFrontDistributionId as TI,getJumpBoxInstanceId as wI}from"@stacksjs/cloud";import{path as u0}from"@stacksjs/path";import{ExitCode as C1}from"@stacksjs/types";import{loop as NI}from"@stacksjs/utils";function nT1(G){const J={cloud:"Interact with the Stacks Cloud",ssh:"SSH into the Stacks Cloud",add:"Add a resource to the Stacks Cloud",remove:"Remove the Stacks Cloud. In case it fails, try again",optimizeCost:"Remove certain resources that may be re-applied at a later time",cleanUp:"Remove all resources that were retained during the cloud deletion",invalidateCache:"Invalidate the CloudFront cache",diff:"Show the diff of the current, undeployed cloud changes ",paths:"The paths to invalidate",project:"Target a specific project",verbose:"Enable verbose output"};G.command("cloud",J.cloud).option("--ssh",J.ssh,{default:!1}).option("--connect",J.ssh,{default:!1}).option("--invalidate-cache",J.invalidateCache,{default:!1}).option("--paths [paths]",J.paths).option("--diff",J.diff,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud` ...",X);const H=performance.now();if(X.ssh||X.connect){const Z=await wI(),V=await i0(`aws ssm start-session --target ${Z}`,{...X,cwd:u0.projectPath(),stdin:"pipe"});if(V.isErr())await w1("While running the cloud command, there was an issue",{startTime:H,useSeconds:!0},V.error),A1.exit(C1.FatalError);await w1("Exited",{startTime:H,useSeconds:!0}),A1.exit(C1.Success)}if(X.invalidateCache){const{confirm:Z}=await Y9({name:"confirm",type:"confirm",message:"Would you like to invalidate the CDN (CloudFront) cache?"});if(!Z)await w1("Exited",{startTime:H,useSeconds:!0}),A1.exit(C1.Success);O1.info("Invalidating the CloudFront cache...");const V=new mJ,Y={DistributionId:await TI(),InvalidationBatch:{CallerReference:`${Date.now()}`,Paths:{Quantity:1,Items:["/*"]}}},W=new iJ(Y);V.send(W).then((z)=>console.log(z),(z)=>console.log(z,z.stack)),await w1("Exited",{startTime:H,useSeconds:!0}),A1.exit(C1.Success)}if(X.diff){const Z=await i0("bunx --bun cdk diff",{cwd:u0.frameworkCloudPath(),stdin:"pipe"});if(Z.isErr())await w1("While running the cloud diff command, there was an issue",{startTime:H,useSeconds:!0},Z.error),A1.exit(C1.FatalError);await w1("Showing diff of the current, undeployed cloud changes",{startTime:H,useSeconds:!0}),console.log(Z.value),A1.exit(C1.Success)}O1.info("Not implemented yet. Read more about `buddy cloud` here: https://stacksjs.org/docs/cloud"),A1.exit(C1.Success)}),G.command("cloud:add",J.add).option("--jump-box","Remove the jump-box",{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:add` ...",X);const H=await L5("buddy cloud:add");if(X.jumpBox){const{confirm:Z}=await Y9({name:"confirm",type:"confirm",message:"Would you like to add a jump-box to your cloud?"});if(!Z)await w1("Exited",{startTime:H,useSeconds:!0}),A1.exit(C1.Success);O1.info("The jump-box is getting added to your cloud resources..."),O1.info("This takes a few moments, please be patient."),await new Promise((Q)=>setTimeout(Q,2000));const V=await jI();if(V.isErr())await w1("While running the cloud:add command, there was an issue",{startTime:H,useSeconds:!0},V.error),A1.exit(C1.FatalError);O1.info(Q9("View the jump-box in the AWS console:")),O1.info(RV("https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#Instances:instanceState=running")),O1.info(Q9("Once it finished initializing, you may SSH into it:")),O1.info(RV("buddy cloud --ssh")),await w1("Your jump-box was added.",{startTime:H,useSeconds:!0}),A1.exit(C1.Success)}O1.info("This functionality is not yet implemented."),A1.exit(C1.Success)}),G.command("cloud:remove",J.remove).alias("cloud:destroy").alias("cloud:rm").alias("undeploy").option("--jump-box","Remove the jump-box",{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:remove` ...",X);const H=await L5("buddy cloud:remove");if(X.jumpBox){const{confirm:V}=await Y9({name:"confirm",type:"confirm",message:"Would you like to remove your jump-box for now?"});if(!V)await w1("Exited",{startTime:H,useSeconds:!0}),A1.exit(C1.Success);const Q=await uJ();if(Q.isErr())await w1("While removing your jump-box, there was an issue",{startTime:H,useSeconds:!0},Q.error),A1.exit(C1.FatalError);await w1("Your jump-box was removed.",{startTime:H,useSeconds:!0}),A1.exit(C1.Success)}console.log(` ${Q9("\u2139\uFE0F Removing your cloud resources takes a while to complete.")}`),console.log(` ${Q9("Please note, your backups will not yet be deleted. Though,")}`),console.log(` ${Q9("Backups are scheduled to delete themselves in 30 days.")}`),await new Promise((V)=>setTimeout(V,2000));const Z=await i0("bunx --bun cdk destroy",{...X,cwd:u0.frameworkCloudPath(),stdin:"inherit"});if(Z.isErr())await w1('While running the cloud:remove ("undeploy") command, there was an issue',{startTime:H,useSeconds:!0},Z.error),A1.exit(C1.FatalError);await i0("buddy cloud:cleanup",{...X,cwd:u0.projectPath(),stdin:"inherit"});try{O1.info("Finalizing the removal of your cloud resources."),O1.info("This will take a few moments..."),await NI(7,async()=>{await i0("buddy cloud:cleanup",{...X,cwd:u0.projectPath(),stdout:"ignore"})}),await w1("Your cloud has been removed",{startTime:H,useSeconds:!0}),A1.exit(C1.Success)}catch(V){await w1("While cleaning up the cloud, there was an issue",{startTime:H,useSeconds:!0},V),A1.exit(C1.FatalError)}}),G.command("cloud:optimize-cost",J.optimizeCost).option("--jump-box","Remove the jump-box",{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:optimize-cost` ...",X);const H=await L5("buddy cloud:optimize-cost");if(X.jumpBox){const{confirm:Z}=await Y9({name:"confirm",type:"confirm",message:"Would you like to remove your jump-box to optimize your costs?"});if(!Z)await w1("Exited",{startTime:H,useSeconds:!0}),A1.exit(C1.Success);await uJ(),await w1("Your jump-box was removed & cost optimizations are applied.",{startTime:H,useSeconds:!0}),A1.exit(C1.Success)}await w1("No cost optimization was applied",{startTime:H,useSeconds:!0}),A1.exit(C1.Success)}),G.command("cloud:cleanup",J.cleanUp).alias("cloud:clean-up").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:cleanup` ...",X);const H=await L5("buddy cloud:cleanup");O1.info("Cleaning up your cloud resources will take a while to complete. Please be patient."),await new Promise((j)=>setTimeout(j,2000)),O1.info("Removing any jump-boxes...");const Z=await uJ();if(Z.isErr()){if(Z.error!=="Jump-box not found")await w1("While removing your jump-box, there was an issue",{startTime:H,useSeconds:!0},Z.error),A1.exit(C1.FatalError)}O1.info("Removing any retained S3 buckets...");const V=await fI();if(V.isErr())await w1("While deleting the retained S3 buckets, there was an issue",{startTime:H,useSeconds:!0},V.error),A1.exit(C1.FatalError);O1.info("Removing any retained Lambda functions...");const Q=await SI();if(Q.isErr()){if(Q.error!=="No stacks functions found")await w1("While deleting the Origin Request Lambda function, there was an issue",{startTime:H,useSeconds:!0},Q.error);A1.exit(C1.FatalError)}O1.info(Q.value),O1.info("Removing any remaining Stacks logs...");const Y=await AI();if(Y.isErr())await w1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},Y.error),A1.exit(C1.FatalError);O1.info("Removing any stored parameters...");const W=await CI();if(W.isErr())await w1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},W.error),A1.exit(C1.FatalError);const z=await LI();if(z.isErr())await w1("While deleting the VPCs, there was an issue",{startTime:H,useSeconds:!0},z.error),A1.exit(C1.FatalError);const B=await PI();if(B.isErr())await w1("While deleting the Subnets, there was an issue",{startTime:H,useSeconds:!0},B.error),A1.exit(C1.FatalError);O1.info("Removing any CDK remnants...");const q=await DI();if(q.isErr())await w1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},q.error),A1.exit(C1.FatalError);O1.info("Removing any IAM users...");const F=await II();if(F.isErr())await w1("While deleting the Stacks log groups, there was an issue",{startTime:H,useSeconds:!0},F.error),A1.exit(C1.FatalError);await w1("AWS resources have been removed",{startTime:H,useSeconds:!0}),A1.exit(C1.Success)}),G.command("cloud:invalidate-cache",J.invalidateCache).option("--paths [paths]",J.paths,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:invalidate-cache` ...",X);const H=await L5("buddy cloud:invalidate-cache"),{confirm:Z}=await Y9({name:"confirm",type:"confirm",message:"Would you like to invalidate the CloudFront cache?"});if(!Z)await w1("Exited",{startTime:H,useSeconds:!0}),A1.exit(C1.Success);if(O1.info("Invalidating the CloudFront cache..."),X.paths){const V=await i0(`aws cloudfront create-invalidation --distribution-id E1U4Z2E9NJW9J --paths ${X.paths}`,{...X,cwd:u0.projectPath(),stdin:"pipe"});if(V.isErr())await w1("While running the cloud command, there was an issue",{startTime:H,useSeconds:!0},V.error),A1.exit(C1.FatalError);await w1("Exited",{startTime:H,useSeconds:!0}),A1.exit(C1.Success)}O1.info("Not implemented yet. Read more about `buddy cloud` here: https://stacksjs.org/docs/cloud"),A1.exit(C1.Success)}),G.command("cloud:diff",J.diff).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{O1.debug("Running `buddy cloud:diff` ...",X);const H=await L5("buddy cloud:diff"),Z=await i0("bunx --bun cdk diff",{cwd:u0.frameworkCloudPath(),stdin:"pipe"});if(Z.isErr())await w1("While running the cloud diff command, there was an issue",{startTime:H,useSeconds:!0},Z.error),A1.exit(C1.FatalError);await w1("Showing diff of the current, undeployed cloud changes",{startTime:H,useSeconds:!0}),console.log(Z.value),A1.exit(C1.Success)}),G.on("cloud:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),A1.exit(1)})}import kI from"process";import{runCommit as EI}from"@stacksjs/actions";import{log as OI}from"@stacksjs/logging";function Jw1(G){const J={commit:"Commit your stashed changes",project:"Target a specific project",verbose:"Enable verbose output"};G.command("commit",J.commit).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{OI.debug("Running `buddy commit` ...",X),await EI(X)}),G.on("commit:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),kI.exit(1)})}import H0 from"process";import{log as dJ,outro as MV,runCommand as vI}from"@stacksjs/cli";import{path as _I}from"@stacksjs/path";import{ExitCode as W9}from"@stacksjs/types";function Yw1(G){const J={configure:"Configure options",aws:"Configure the AWS connection",project:"Target a specific project",profile:"The AWS profile to use",verbose:"Enable verbose output"};G.command("configure",J.configure).option("--aws",J.aws,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{if(dJ.debug("Running `buddy configure` ...",X),X?.aws)await qV(X),H0.exit(W9.Success);dJ.info("Not implemented yet. Please use the --aws flag to configure AWS."),H0.exit(W9.Success)}),G.command("configure:aws",J.aws).option("-p, --project [project]",J.project,{default:!1}).option("--profile",J.profile,{default:H0.env.AWS_PROFILE}).option("--verbose",J.verbose,{default:!1}).option("--access-key-id","The AWS access key").option("--secret-access-key","The AWS secret access key").option("--region","The AWS region").option("--output","The AWS output format").option("--quiet","Suppress output").action(async(X)=>{dJ.debug("Running `buddy configure:aws` ...",X),await qV(X),H0.exit(W9.Success)}),G.on("configure:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),H0.exit(W9.FatalError)})}async function qV(G){const J=performance.now(),X=G?.accessKeyId??H0.env.AWS_ACCESS_KEY_ID,H=G?.secretAccessKey??H0.env.AWS_SECRET_ACCESS_KEY,V=G?.output??"json",Q=H0.env.AWS_PROFILE??G?.profile,Y=Q?`aws configure --profile ${Q}`:"aws configure",W=`${X}\n${H}\nus-east-1\n${V}\n`,z=await vI(Y,{cwd:_I.projectPath(),stdin:"pipe",input:W});if(z.isErr())await MV("While running the cloud command, there was an issue",{startTime:J,useSeconds:!0},z.error),H0.exit(W9.FatalError);if(G?.quiet)return;await MV("Exited",{startTime:J,useSeconds:!0})}import Z0 from"process";import{runAction as gI}from"@stacksjs/actions";import{bold as bI,cyan as hI,dim as yI,intro as mI,log as t1,runCommand as z9}from"@stacksjs/cli";import{Action as xI}from"@stacksjs/enums";import{resolve as lI}from"@stacksjs/path";import{isFolder as cI}from"@stacksjs/storage";import{ExitCode as T5}from"@stacksjs/types";import{useOnline as aI}from"@stacksjs/utils";function Fw1(G){const J={name:"The name of the project",command:"Create a new Stacks project",ui:"Are you building a UI?",components:"Are you building UI components?",webComponents:"Automagically built optimized custom elements/web components?",vue:"Automagically built a Vue component library?",views:"How about views?",functions:"Are you developing functions/composables?",api:"Are you building an API?",database:"Do you need a database?",notifications:"Do you need notifications? e.g. email, SMS, push or chat notifications",cache:"Do you need caching?",email:"Do you need email?",project:"Target a specific project",verbose:"Enable verbose output"};G.command("new [name]",J.command).alias("create [name]").option("-n, --name [name]",J.name,{default:!1}).option("-u, --ui",J.ui,{default:!0}).option("-c, --components",J.components,{default:!0}).option("-w, --web-components",J.webComponents,{default:!0}).option("-v, --vue",J.vue,{default:!0}).option("-p, --views",J.views,{default:!0}).option("-f, --functions",J.functions,{default:!0}).option("-a, --api",J.api,{default:!0}).option("-d, --database",J.database,{default:!0}).option("-ca, --cache",J.cache,{default:!1}).option("-e, --email",J.email,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{t1.debug("Running `buddy new <name>` ...",H);const Z=await mI("stacks new");X=X??H.name;const V=lI(Z0.cwd(),X);rI(V),iI();const Q=await uI(X,V,H);if(Q.isErr())t1.error(Q.error),Z0.exit(T5.FatalError);if(await dI(V,H),await sI(V,H),Z){const Y=performance.now()-Z;t1.success(yI(`[${Y.toFixed(2)}ms] Completed`))}t1.info(bI("Welcome to the Stacks Framework! \u269B\uFE0F")),t1.info("To learn more, visit https://stacksjs.org"),Z0.exit(T5.Success)}),G.on("new:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),Z0.exit(1)})}function rI(G){if(cI(G))t1.error(`Path ${G} already exists`),Z0.exit(T5.FatalError)}function iI(){if(!aI())t1.info("It appears you are disconnected from the internet."),t1.info("The Stacks setup requires a brief internet connection for setup."),t1.info("For instance, it installs your dependencies from."),Z0.exit(T5.FatalError)}async function uI(G,J,X){t1.info("Setting up your stack.");const H=await z9(`bunx --bun giget stacks ${G}`,X);return t1.success(`Successfully scaffolded your project at ${hI(J)}`),H}async function dI(G,J){t1.info("Ensuring your environment is ready..."),await z9("pkgx --update ",{...J,cwd:G}),t1.success("Environment is ready")}async function sI(G,J){t1.info("Installing & setting up Stacks");let X=await z9("bun install",{...J,cwd:G});if(X?.isErr())t1.error(X.error),Z0.exit();if(X=await z9("cp .env.example .env",{...J,cwd:G}),X?.isErr())t1.error(X.error),Z0.exit(T5.FatalError);if(await gI(xI.KeyGenerate,{...J,cwd:G}),X=await z9("git init",{...J,cwd:G}),X.isErr())t1.error(X.error),Z0.exit(T5.FatalError);t1.success("Installed & set-up \uD83D\uDE80")}import V0 from"process";import{runAction as pI}from"@stacksjs/actions";import{intro as nI,italic as U9,log as P1,outro as JG,prompts as oI,runCommand as jV}from"@stacksjs/cli";import{app as eI}from"@stacksjs/config";import{addDomain as tI,hasUserDomainBeenAddedToCloud as GA}from"@stacksjs/dns";import{Action as JA}from"@stacksjs/enums";import{path as XA}from"@stacksjs/path";import{ExitCode as A0}from"@stacksjs/types";var{$:FV}=globalThis.Bun;function ww1(G){const J={deploy:"Deploy your project",project:"Target a specific project",production:"Deploy to production",development:"Deploy to development",staging:"Deploy to staging",yes:"Confirm all prompts by default",domain:"Specify a domain to deploy to",verbose:"Enable verbose output"};G.command("deploy [env]",J.deploy).option("--domain",J.domain,{default:void 0}).option("-p, --project [project]",J.project,{default:!1}).option("--prod",J.production,{default:!0}).option("--dev",J.development,{default:!1}).option("--yes",J.yes,{default:!1}).option("--staging",J.staging,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{P1.debug("Running `buddy deploy` ...",H);const Z=await nI("buddy deploy"),V=H.domain||eI.url;if((H.prod||X==="production"||X==="prod")&&!H.yes)await HA();if(!V)P1.info("No domain found in your .env or ./config/app.ts"),P1.info("Please ensure your domain is properly configured."),P1.info("For more info, check out the docs or join our Discord."),V0.exit(A0.FatalError);P1.info(`Deploying to ${U9(V)}`),await VA(),await QA(),H.domain=await ZA(V,H,Z);const Q=await pI(JA.Deploy,H);if(Q.isErr())await JG("While running the `buddy deploy`, there was an issue",{startTime:Z,useSeconds:!0},Q.error),V0.exit(A0.FatalError);await JG("Project deployed.",{startTime:Z,useSeconds:!0})}),G.on("deploy:*",()=>{P1.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),V0.exit(1)})}async function HA(){const{confirmed:G}=await oI({type:"confirm",name:"confirmed",message:"Are you sure you want to deploy to production?"});if(!G)P1.info("Aborting deployment..."),V0.exit(A0.InvalidArgument)}async function ZA(G,J,X){if(P1.debug("Configuring domain...",G),!G)P1.info("We could not identify a domain to deploy to."),P1.warn("Please set your .env or ./config/app.ts properly."),P1.info("Alternatively, specify a domain to deploy via the `--domain` flag."),console.log(""),P1.info(" \u27A1\uFE0F Example: `buddy deploy --domain example.com`"),console.log(""),V0.exit(A0.FatalError);if(G.includes("localhost"))P1.info("You are deploying to a local environment."),P1.warn("Please set your .env or ./config/app.ts properly. The domain we are deploying cannot be a `localhost` domain."),P1.info("Alternatively, specify a domain to deploy via the `--domain` flag."),console.log(""),P1.info(" \u27A1\uFE0F Example: `buddy deploy --domain example.com`"),console.log(""),V0.exit(A0.FatalError);if(await GA(G))return P1.info("Domain is properly configured"),P1.info("Your cloud is deploying..."),P1.info(`${U9("This may take a while...")}`),G;console.log(""),P1.info(` \uD83D\uDC4B It appears to be your first ${U9(G)} deployment.`),console.log(""),P1.info(U9("Let\u2019s ensure it is all connected properly.")),P1.info(U9("One moment...")),console.log("");const H=await tI({...J,deploy:!0,startTime:X});if(H.isErr())await JG("While running the `buddy deploy`, there was an issue",{startTime:X,useSeconds:!0},H.error),V0.exit(A0.FatalError);await JG("Added your domain.",{startTime:X,useSeconds:!0}),V0.exit(A0.Success)}async function VA(){if(P1.info("Ensuring AWS is configured..."),(await jV("buddy configure:aws",{silent:!0})).isErr())P1.error("AWS is not configured properly.",{shouldExit:!1}),P1.error("Please run `buddy configure:aws` to set up your AWS credentials.");P1.success("AWS is configured")}async function QA(){try{return P1.info("Ensuring AWS is bootstrapped..."),await jV("aws cloudformation describe-stacks --stack-name stacks-toolkit",{silent:!0}),P1.success("AWS is bootstrapped"),!0}catch(G){P1.debug(`Not yet bootstrapped. Failed with code ${G.exitCode}`),P1.debug(G.stdout.toString()),P1.debug(G.stderr.toString()),P1.info("AWS is not bootstrapped yet"),P1.info("Bootstrapping. This may take a few moments...");try{FV.cwd(XA.frameworkCloudPath());const J=await FV`bun run bootstrap`;return console.log(J),!0}catch(J){P1.error("Failed to bootstrap AWS"),console.error(J),V0.exit(A0.FatalError)}}}import d2 from"process";import{runAction as oJ,runApiDevServer as XG,runComponentsDevServer as sJ,runDashboardDevServer as pJ,runDesktopDevServer as YA,runDocsDevServer as nJ,runFrontendDevServer as DV,runSystemTrayDevServer as IV}from"@stacksjs/actions";import{intro as HG,log as y2,outro as d0,prompts as WA,runCommand as zA}from"@stacksjs/cli";import{Action as eJ}from"@stacksjs/enums";import{libsPath as UA}from"@stacksjs/path";import{ExitCode as w5}from"@stacksjs/types";function bw1(G){const J={dev:"Start development server",frontend:"Start the frontend development server",components:"Start the Components development server",desktop:"Start the Desktop App development server",dashboard:"Start the Dashboard development server",api:"Start the local API development server",email:"Start the Email development server",docs:"Start the Documentation development server",systemTray:"Start the System Tray development server",interactive:"Get asked which development server to start",select:"Which development server are you trying to start?",withLocalhost:"Include the localhost URL in the output",project:"Target a specific project",verbose:"Enable verbose output"};G.command("dev [server]",J.dev).option("-f, --frontend",J.frontend).option("-a, --api",J.api).option("-e, --email",J.email).option("-c, --components",J.components).option("-d, --dashboard",J.dashboard).option("-t, --desktop",J.desktop).option("-d, --docs",J.docs).option("-t, --system-tray",J.systemTray).option("-i, --interactive",J.interactive,{default:!1}).option("-l, --with-localhost",J.withLocalhost,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{y2.debug("Running `buddy dev [server]` ...",H);const Z=await HG("buddy dev");switch(X){case"frontend":await DV(H);break;case"api":await XG(H);break;case"components":await sJ(H);break;case"dashboard":await pJ(H);break;case"desktop":await YA(H);break;case"system-tray":await IV(H);break;case"docs":await nJ(H);break;default:}if(BA(H)){const Q=(await WA({type:"select",name:"value",message:J.select,choices:[{value:"all",title:"All"},{value:"frontend",title:"Frontend"},{value:"api",title:"Backend"},{value:"dashboard",title:"Dashboard"},{value:"desktop",title:"Desktop"},{value:"email",title:"Email"},{value:"components",title:"Components"},{value:"docs",title:"Documentation"}]})).value;if(Q==="components")await sJ(H);else if(Q==="api")await XG(H);else if(Q==="dashboard")await pJ(H);else if(Q==="docs")await nJ(H);else y2.error("Invalid option during interactive mode"),d2.exit(w5.InvalidArgument)}else{if(H.components)await sJ(H);if(H.docs)await nJ(H);else if(H.api)await XG(H)}await KA(H),d0("Exited",{startTime:Z,useSeconds:!0}),d2.exit(w5.Success)}),G.command("dev:components",J.components).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:components` ...",X);const H=await HG("buddy dev:components"),Z=await zA("bun run dev",{cwd:UA("components/vue")});if(X.verbose)y2.info("buddy dev:components result",Z);if(Z.isErr())await d0("While running the dev:components command, there was an issue",{startTime:H,useSeconds:!0},Z.error),d2.exit();console.log(""),await d0("Exited",{startTime:H,useSeconds:!0}),d2.exit(w5.Success)}),G.command("dev:docs",J.docs).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:docs` ...",X);const H=await HG("buddy dev:docs"),Z=await oJ(eJ.DevDocs,X);if(Z.isErr())await d0("While running the dev:docs command, there was an issue",{startTime:H,useSeconds:!0},Z.error),d2.exit();console.log(""),await d0("Exited",{startTime:H,useSeconds:!0}),d2.exit(w5.Success)}),G.command("dev:desktop",J.desktop).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:desktop` ...",X);const H=await HG("buddy dev:desktop"),Z=await oJ(eJ.DevDesktop,X);if(Z.isErr())await d0("While running the dev:desktop command, there was an issue",{startTime:H,useSeconds:!0},Z.error),d2.exit();console.log(""),await d0("Exited",{startTime:H,useSeconds:!0}),d2.exit(w5.Success)}),G.command("dev:api",J.api).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:api` ...",X),await XG(X)}),G.command("dev:frontend",J.frontend).alias("dev:pages").alias("dev:views").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:frontend` ...",X),await DV(X)}),G.command("dev:dashboard",J.dashboard).alias("dev:admin").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:dashboard` ...",X),await pJ(X)}),G.command("dev:system-tray",J.systemTray).alias("dev:tray").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y2.debug("Running `buddy dev:system-tray` ...",X),await IV(X)}),G.on("dev:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),d2.exit(1)})}async function KA(G){const J=await oJ(eJ.Dev,G);if(J.isErr())y2.error("While running the dev command, there was an issue",J.error),d2.exit(w5.InvalidArgument)}function BA(G){return G.interactive}import AV from"process";import{log as $A,runCommand as RA}from"@stacksjs/cli";import{config as MA}from"@stacksjs/config";import{ExitCode as qA}from"@stacksjs/types";function cw1(G){const J={dns:"Lists the DNS records for a domain",query:"Host name or IP address to query",type:"Type of the DNS record being queried (A, MX, NS\u2026)",nameserver:"Address of the nameserver to send packets to",class:"Network class of the DNS record being queried (IN, CH, HS)",udp:"Use the DNS protocol over UDP",tcp:"Use the DNS protocol over TCP",tls:"Use the DNS-over-TLS protocol",https:"Use the DNS-over-HTTPS protocol",short:"Short mode: display nothing but the first result",json:"Display the output as JSON",pretty:"Display the output as JSON in a pretty format",project:"Target a specific project",verbose:"Enable verbose output"};G.command("dns [domain]",J.dns).option("-q, --query <query>",J.query).option("-t, --type <type>",J.type,{default:"ANY"}).option("-n, --nameserver <nameserver>",J.nameserver).option("--class <class>",J.nameserver).option("-U, --udp",J.udp).option("-T, --tcp",J.tcp).option("-S, --tls",J.tls).option("-H, --https",J.https).option("-1, --short",J.short,{default:!1}).option("-J, --json",J.json,{default:!1}).option("-p, --pretty",J.pretty,{default:!0}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{$A.debug("Running `buddy dns [domain]` ...",H),H.pretty=void 0,H.p=void 0;const Z=Object.entries(H).filter(([V,Q])=>V!=="--"&&V.length>1&&Q!==!1).map(([V,Q])=>`--${V} ${Q}`).join(" ");await RA(`dog ${X||MA.app.url} ${Z}`),AV.exit(qA.Success)}),G.on("dns:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),AV.exit(1)})}import Q0 from"process";import{runAction as CV}from"@stacksjs/actions";import{bgCyan as FA,bold as jA,intro as tJ,italic as s0,log as ZG,outro as C0,prompts as fV}from"@stacksjs/cli";import{config as SV}from"@stacksjs/config";import{addDomain as DA}from"@stacksjs/dns";import{Action as PV}from"@stacksjs/enums";import{ExitCode as f0}from"@stacksjs/types";function ow1(G){const J={purchase:"Purchase a domain",add:"Add a domain to your cloud",remove:"Remove a domain from your cloud",skip:"Skip the confirmation prompt",project:"Target a specific project",verbose:"Enable verbose output"},X=SV.dns.contactInfo;G.command("domains:purchase <domain>",J.purchase).option("--years <years>","Number of years to purchase the domain for",{default:1}).option("--privacy","Enable privacy protection",{default:!0}).option("--auto-renew","Enable auto-renew",{default:!0}).option("--first-name <firstName>","Registrant first name",{default:X?.firstName}).option("--last-name <lastName>","Registrant last name",{default:X?.lastName}).option("--organization <organization>","Registrant organization name",{default:X?.organizationName}).option("--address-line1 <address>","Registrant address line 1",{default:X?.addressLine1}).option("--address-line2 <address>","Registrant address line 2",{default:X?.addressLine2}).option("--city <city>","Registrant city",{default:X?.city}).option("--state <state>","Registrant state",{default:X?.state}).option("--country <country>","Registrant country code",{default:X?.countryCode}).option("--zip <zip>","Registrant zip",{default:X?.zip}).option("--phone <phone>","Registrant phone",{default:X?.phoneNumber}).option("--email <email>","Registrant email",{default:X?.email}).option("--admin-first-name <firstName>","Admin first name",{default:X?.admin?.firstName||X?.firstName}).option("--admin-last-name <lastName>","Admin last name",{default:X?.admin?.lastName||X?.lastName}).option("--admin-organization <organization>","Admin organization",{default:X?.admin?.organizationName||X?.organizationName}).option("--admin-address-line1 <address>","Admin address line 1",{default:X?.admin?.addressLine1||X?.addressLine1}).option("--admin-address-line2 <address>","Admin address line 2",{default:X?.admin?.addressLine2||X?.addressLine2}).option("--admin-city <city>","Admin city",{default:X?.admin?.city||X?.city}).option("--admin-state <state>","Admin state",{default:X?.admin?.state||X?.state}).option("--admin-country <country>","Admin country code",{default:X?.admin?.countryCode||X?.countryCode}).option("--admin-zip <zip>","Admin zip",{default:X?.admin?.zip||X?.zip}).option("--admin-phone <phone>","Admin phone number",{default:X?.admin?.phoneNumber||X?.phoneNumber}).option("--admin-email <email>","Admin email",{default:X?.admin?.email||X?.email}).option("--tech-first-name <firstName>","Tech first name",{default:X?.tech?.firstName||X?.firstName}).option("--tech-last-name <lastName>","Tech last name",{default:X?.tech?.lastName||X?.lastName}).option("--tech-organization <organization>","Tech organization name",{default:X?.tech?.organizationName||X?.organizationName}).option("--tech-address-line1 <address>","Tech address line 1",{default:X?.tech?.addressLine1||X?.addressLine1}).option("--tech-address-line2 <address>","Tech address line 2",{default:X?.tech?.addressLine2||X?.addressLine2}).option("--tech-city <city>","Tech city",{default:X?.tech?.city||X?.city}).option("--tech-state <state>","Tech state",{default:X?.tech?.state||X?.state}).option("--tech-country <country>","Tech country",{default:X?.tech?.countryCode||X?.countryCode}).option("--tech-zip <zip>","Tech zip",{default:X?.tech?.zip||X?.zip}).option("--tech-phone <phone>","Tech phone",{default:X?.tech?.phoneNumber||X?.phoneNumber}).option("--tech-email <email>","Tech email",{default:X?.tech?.email||X?.email}).option("--privacy-admin","Enable privacy protection for admin",{default:X?.privacyAdmin||X?.privacy||!0}).option("--privacy-tech","Enable privacy protection for tech",{default:X?.privacyTech||X?.privacy||!0}).option("--privacy-registrant","Enable privacy protection for registrant",{default:X?.privacyRegistrant||X?.privacy||!0}).option("--contact-type <type>","Contact type",{default:"person"}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(H,Z)=>{ZG.debug("Running `buddy domains:purchase <domain>` ...",Z),Z.domain=H;const V=await tJ("buddy domains:purchase"),Q=await CV(PV.DomainsPurchase,Z);if(Q.isErr())await C0("While running the domains:purchase command, there was an issue",{startTime:V,useSeconds:!0},Q.error),Q0.exit(f0.FatalError);const{confirm:Y}=await fV({name:"confirm",type:"confirm",message:`Would you like to set ${H} as your APP_URL?`});if(!Y)await C0(`Alrighty! ${s0(H)} was added to your account.`,{startTime:V,useSeconds:!0,type:"success"}),ZG.info(`Please note, you may need to validate your email address. Check your ${s0(Z.registrantEmail)} inbox.`),Q0.exit(f0.Success);const{writeEnv:W}=await import("./chunk-pbpgcz3v.js");W("APP_URL",H);let z=`Great! ${s0(H)} was added to your account.`;z+=`\n\nAnd your APP_URL has been set to ${s0(H)}.
22
+ \nPlease note, this change has not been deployed yet.
23
+ \nThe next time you run ${FA(s0(jA(" buddy deploy ")))}, your app will deploy to ${s0(H)}.
24
+ \n${s0("You may need to deploy 2-3 times for the changes to take effect. Issue tracked here: https://github.com/stacksjs/stacks/issues/685")}`,await C0(z,{startTime:V,useSeconds:!0,type:"info"}),Q0.exit(f0.Success)}),G.command("domains:add <domain>",J.add).option("--verbose",J.verbose,{default:!1}).action(async(H)=>{ZG.debug("Running `buddy domains:add <domain>` ...",H);const Z=await tJ("buddy domains:add"),V=await DA({...H,startTime:Z});if(V.isErr())await C0("While running the `buddy deploy`, there was an issue",{startTime:Z,useSeconds:!0},V.error),Q0.exit(f0.FatalError);await C0("Added your domain.",{startTime:Z,useSeconds:!0}),Q0.exit(f0.Success)}),G.command("domains:remove <domain>",J.remove).option("--yes",J.skip,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(H)=>{ZG.debug("Running `buddy domains:remove <domain>` ...",H);const Z=H.domain||SV.app.url,V={...H,domain:Z},Q=await tJ("buddy domains:remove");if(!V.yes){const{confirm:W}=await fV({name:"confirm",type:"confirm",message:`Are you sure you want to remove ${Z}?`});if(!W)await C0("Cancelled the domains:remove command",{startTime:Q,useSeconds:!0,type:"info"}),Q0.exit(f0.Success)}const Y=await CV(PV.DomainsRemove,V);if(Y.isErr())await C0("While running the domains:remove command, there was an issue",{startTime:Q,useSeconds:!0},Y.error),Q0.exit(f0.FatalError);await C0("Removed your domain DNS records.",{startTime:Q,useSeconds:!0}),Q0.exit(f0.Success)}),G.on("domains:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),Q0.exit(1)})}import GX from"process";import{runAction as IA}from"@stacksjs/actions";import{intro as AA,log as CA,outro as LV}from"@stacksjs/cli";import{Action as fA}from"@stacksjs/enums";import{ExitCode as TV}from"@stacksjs/types";function ZN1(G){const J={fresh:"Re-installs your npm dependencies",project:"Target a specific project",verbose:"Enable verbose output"};G.command("fresh",J.fresh).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{CA.debug("Running `buddy fresh` ...",X);const H=await AA("buddy fresh"),Z=await IA(fA.Fresh,{...X,stdout:"inherit"});if(Z.isErr())await LV("While running `buddy fresh`, there was an issue",{startTime:H,useSeconds:!0},Z.error),GX.exit(TV.FatalError);await LV("Freshly reinstalled your dependencies",{startTime:H,useSeconds:!0}),GX.exit(TV.Success)}),G.on("fresh:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),GX.exit(1)})}import BH from"process";import{generateComponentMeta as IS1,generateCoreSymlink as AS1,generateIdeHelpers as CS1,generateLibEntries as fS1,generateOpenApiSpec as SS1,generatePkgxConfig as PS1,generateTypes as LS1,generateVsCodeCustomData as TS1,generateWebTypes as wS1,invoke as NS1}from"@stacksjs/actions";import{intro as qq,log as _2,outro as Fq}from"@stacksjs/cli";import IJ from"process";import{bold as Ib1,dim as Ab1,green as Cb1,italic as fb1,log as Sb1}from"@stacksjs/cli";import{path as Lb1}from"@stacksjs/path";import{fs as wb1,glob as Nb1}from"@stacksjs/storage";var Zq=H2(T7(),1),Vq=H2(rG(),1),Qq=H2(c9(),1);import{italic as G9,log as g1}from"@stacksjs/cli";import{path as y1}from"@stacksjs/path";import{fs as o1,globSync as R5}from"@stacksjs/storage";function ZH(G){let J=G.trim();J=J.replace(_f1,"$1\0$2").replace(gf1,"$1\0$2"),J=J.replace(hf1,"\0");let X=0,H=J.length;while(J.charAt(X)==="\0")X++;if(X===H)return[];while(J.charAt(H-1)==="\0")H--;return J.slice(X,H).split(/\0/g)}function yf1(G){const J=ZH(G);for(let X=0;X<J.length;X++){const H=J[X],Z=bf1.exec(H);if(Z){const V=Z.index+(Z[1]??Z[2]).length;J.splice(X,1,H.slice(0,V),H.slice(V))}}return J}function VH(G,J){const[X,H,Z]=Wq(G,J);return X+H.map(Yq(J?.locale)).join(J?.delimiter??" ")+Z}function $5(G,J){const[X,H,Z]=Wq(G,J),V=Yq(J?.locale),Q=mf1(J?.locale),Y=J?.mergeAmbiguousCharacters?xf1(V,Q):lf1(V,Q);return X+H.map(Y).join(J?.delimiter??"")+Z}function j2(G,J){return VH(G,{delimiter:"_",...J})}function Yq(G){return G===!1?(J)=>J.toLowerCase():(J)=>J.toLocaleLowerCase(G)}function mf1(G){return G===!1?(J)=>J.toUpperCase():(J)=>J.toLocaleUpperCase(G)}function xf1(G,J){return(X)=>`${J(X[0])}${G(X.slice(1))}`}function lf1(G,J){return(X,H)=>{const Z=X[0];return(H>0&&Z>="0"&&Z<="9"?"_"+Z:J(Z))+G(X.slice(1))}}function Wq(G,J={}){const X=J.split??(J.separateNumbers?yf1:ZH),H=J.prefixCharacters??"",Z=J.suffixCharacters??"";let V=0,Q=G.length;while(V<G.length){const Y=G.charAt(V);if(!H.includes(Y))break;V++}while(Q>V){const Y=Q-1,W=G.charAt(Y);if(!Z.includes(W))break;Q=Y}return[G.slice(0,V),X(G.slice(V,Q)),G.slice(Q)]}var _f1=/([\p{Ll}\d])(\p{Lu})/gu,gf1=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,bf1=/(\d)\p{Ll}|(\p{L})\d/u,hf1=/[^\p{L}\d]+/giu;var cf1=new Set([".","!","?"]),vb1=new Set([...cf1,":",'"',"'","\u201D"]);var a2=H2(zq(),1),t5=(G,J,X)=>{if(J!==void 0&&X)return`${J} ${a2.plural(G)}`;return a2.plural(G)},DJ=(G)=>a2.singular(G);var GS1=H2(Uq(),1);import{isString as zh1}from"@stacksjs/validation";import{ExitCode as AJ}from"@stacksjs/types";import{isString as HS1}from"@stacksjs/validation";function J0(G,J){if(G.name)return G.name;return y1.basename(J).replace(/\.ts$/,"")}function t9(G,J){if(G.table)return G.table;return j2(t5(J0(G,J)))}function ZS1(G,J){const X=[G,J];return X.sort(),X[0]=DJ(X[0]||""),X.join("_")}function VS1(G,J){return J in G}async function Bq(G,J){const X=["hasOne","belongsTo","hasMany","belongsToMany","hasOneThrough"],H=[];for(let Z of X)if(VS1(G,Z))for(let V of G[Z]||[]){let Q=V.model;if(HS1(V))Q=V;const Y=y1.userModelsPath(`${Q}.ts`),W=(await import(Y)).default,z=t9(W,Y),B=J.toLowerCase();H.push({relationship:Z,model:Q,table:z,foreignKey:V.foreignKey||`${B}_id`,relationName:V.relationName||"",throughModel:V.through||"",throughForeignKey:V.throughForeignKey||"",pivotTable:V?.pivotTable||ZS1(t5(B),t5(W.table||""))})}return H}function QS1(G){const J=/belongs/,X=/has/;if(/Through/.test(G))return"throughType";if(J.test(G))return"belongsType";if(X.test(G))return"hasType";return""}function YS1(G){const J=/One/;if(/Many/.test(G))return"many";if(J.test(G))return"one";return""}async function Kq(G,J){const X=[];if("belongsToMany"in G){const H=G.belongsToMany||[];for(let Z of H){const Q=(await import(y1.userModelsPath(`${Z}.ts`))).default,Y=J0(G,J),W=Y.toLowerCase(),z=typeof Z==="object"&&"firstForeignKey"in Z?Z.firstForeignKey:`${Y.toLowerCase()}_${G.primaryKey}`,B=typeof Z==="object"&&"secondForeignKey"in Z?Z.secondForeignKey:`${Q.name?.toLowerCase()}_${G.primaryKey}`;X.push({table:(typeof Z==="object"&&"pivotTable"in Z?Z.pivotTable:void 0)??`${W}_${Q.table}`,firstForeignKey:z,secondForeignKey:B})}return X}return[]}async function $q(G,J){const X=R5([y1.userModelsPath("*.ts")],{absolute:!0}),H=[];for(let Z=0;Z<X.length;Z++){const V=X[Z],Q=await import(V);if(J===Q.default.name)continue;const Y=J0(Q,V),W=await Bq(Q.default,Y);if(!W.length)continue;const z=W.find((B)=>B.model===J);if(z)H.push(z)}return H}function WS1(G){if(G===void 0)return[];return Object.keys(G).filter((J)=>{if(G===void 0)return!1;return G[J]?.hidden===!0})}function zS1(G){if(G===void 0)return[];return Object.keys(G).filter((J)=>{if(G===void 0)return!1;return G[J]?.fillable===!0}).map((J)=>j2(J))}async function US1(){const G=R5([y1.userModelsPath("*.ts")],{absolute:!0});let J="export type ModelNames = ";for(let X=0;X<G.length;X++){const H=G[X],Z=(await import(H)).default,V=J0(Z,H);if(J+=`'${V}'`,X<G.length-1)J+=" | ";const Q=y1.dirname(y1.typesPath("src/model-names.ts"));await o1.promises.mkdir(Q,{recursive:!0});const Y=y1.typesPath("src/model-names.ts");await o1.promises.writeFile(Y,J,"utf8")}}async function KS1(){const G=R5([y1.userModelsPath("*.ts")],{absolute:!0}),J=Bun.file(y1.frameworkPath("types/requests.d.ts"));let X="",H="",Z="import { Request } from '../core/router/src/request'\nimport type { VineType } from '@stacksjs/types'\n\n";Z+=`interface ValidationField {
25
+ rule: VineType
26
+ message: Record<string, string>
27
+ }\n\n`,Z+=`interface CustomAttributes {
28
+ [key: string]: ValidationField
29
+ }\n\n`;for(let Q=0;Q<G.length;Q++){let Y="",W="",z="",B="import { Request } from '@stacksjs/router'\nimport { validateField } from '@stacksjs/validation'\nimport { customValidate } from '@stacksjs/validation'\n\n";const q=G[Q],F=(await import(q)).default,j=J0(F,q),f=F?.traits?.useTimestamps??F?.traits?.timestampable??!0,y=F?.traits?.useSoftDeletes??F?.traits?.softDeletable??!1,w=await Rq(F,q);W+=" id: number\n",z+="public id = 1\n",Y+=" get(key: 'id'): number\n";const v={};for(let Q1 of w){const L1=Q1.fieldArray?.entity==="enum"?"string[]":Q1.fieldArray?.entity;let E1="''";if(Q1.fieldArray?.entity==="boolean")E1=!1;if(Q1.fieldArray?.entity==="number")E1=0;const i=j2(Q1.field);if(typeof L1==="string"){if(v[L1])v[L1].push(`'${i}'`);else v[L1]=[`'${i}'`];W+=` ${j2(Q1.field)}: ${L1}\n `,z+=`public ${i} = ${E1}\n`}}for(let[Q1,L1]of Object.entries(v)){const E1=L1.join(" | ");Y+=` get(key: ${E1}): ${Q1}\n`}const h=await $q(F,j);for(let Q1 of h)W+=` ${Q1.foreignKey}: number\n `,Y+=` get(key: '${Q1.foreignKey}'): string \n`,z+=`public ${Q1.foreignKey} = 0\n`;if(f)z+=`public created_at = new Date
30
+ public updated_at = new Date
31
+ `;if(y)z+=`
32
+ public deleted_at = ''
33
+ `;W+=`created_at?: Date
34
+ updated_at?: Date
35
+ deleted_at?: Date`;const K1=Bun.file(y1.frameworkPath(`requests/${j}Request.ts`));if(X=`${j}RequestType`,H+=`${X}`,Q<G.length-1)H+=" | ";B+=`import type { ${X} } from '../types/requests'\n\n`,B+=`interface ValidationField {
36
+ rule: ReturnType<typeof schema.string>
37
+ message: Record<string, string>
38
+ }\n\n`,B+=`interface CustomAttributes {
39
+ [key: string]: ValidationField
40
+ }\n`;const e=`export interface ${j}RequestType extends Request {
41
+ validate(attributes?: CustomAttributes): void
42
+ ${Y}
43
+ all(): RequestData${j}
44
+ ${W}
45
+ }\n\n`;Z+=`interface RequestData${j} {
46
+ ${W}
47
+ }\n`,B+=`interface RequestData${j} {
48
+ ${W}
49
+ }\n`,Z+=e,B+=`export class ${j}Request extends Request<RequestData${j}> implements ${j}RequestType {
50
+ ${z}
51
+ public async validate(attributes?: CustomAttributes): Promise<void> {
52
+ if (attributes === undefined || attributes === null) {
53
+ await validateField('${j}', this.all())
54
+ } else {
55
+ await customValidate(attributes, this.all())
56
+ }
57
+
58
+ }
59
+ }
60
+
61
+ export const request = new ${j}Request()
62
+ `,K1.writer().write(B)}Z+=`export type ModelRequest = ${H}`,J.writer().write(Z)}async function KH(G,J,X){const H=G.charAt(0).toUpperCase()+G.slice(1);let Z="GET",V="import { Action } from '@stacksjs/actions'\n";V+=`import ${J} from '../../orm/src/models/${J}'\n`;let Q="";if(V+=` import type { ${J}RequestType } from '../../types/requests'\n\n`,G==="index")Q+=`async handle(request: ${J}RequestType) {
63
+ return await ${J}.all()
64
+ },`,Z="GET";if(G==="show")Q+=`async handle(request: ${J}RequestType) {
65
+ const id = await request.getParam('id')
66
+
67
+ return await ${J}.findOrFail(Number(id))
68
+ },`,Z="GET";if(G==="destroy")Q+=`async handle(request: ${J}RequestType) {
69
+ const id = request.getParam('id')
70
+
71
+ const model = await ${J}.findOrFail(Number(id))
72
+
73
+ model.delete()
74
+
75
+ return 'Model deleted!'
76
+ },`,Z="DELETE";if(G==="store")Q+=`async handle(request: ${J}RequestType) {
77
+ await request.validate()
78
+ const model = await ${J}.create(request.all())
79
+
80
+ return model
81
+ },`,Z="POST";if(G==="update")Q+=`async handle(request: ${J}RequestType) {
82
+ await request.validate()
83
+
84
+ const id = request.getParam('id')
85
+ const model = await ${J}.findOrFail(Number(id))
86
+
87
+ return model.update(request.all())
88
+ },`,Z="PATCH";V+=`export default new Action({
89
+ name: '${J} ${H}',
90
+ description: '${J} ${H} ORM Action',
91
+ method: '${Z}',
92
+ ${Q}
93
+ })
94
+ `;const Y=X||`${J}${H}OrmAction.ts`,W=y1.builtUserActionsPath(`src/${Y}`);if(o1.existsSync(W))return;Bun.file(W).writer().write(V)}async function Rq(G,J){let X=G.attributes;if(!X)X={};const H=Object.keys(X),Z=[],Q=await Bun.file(J).text(),Y=/rule:.*$/gm;let W;W=Y.exec(Q);while(W!==null)Z.push(W[0]),W=Y.exec(Q);return H.map((B,q)=>{const F=X[B];let j=null,f=!1;if(F)j=F||null,f=F.unique||!1;return{field:B,default:j,unique:f,fieldArray:BS1(Z[q]??"")}})}function BS1(G){const J=G.split("rule: schema.");if(J.length!==2)return null;if(!J[1])J[1]="";const X=J[1].replace(/,/g,"");if(!X)return null;const H=X.split("."),Z=/\(([^)]+)\)/;return H.map((V)=>{const Q=Z.exec(V),Y=Q?Q[1]:null;return{entity:V.replace(Z,"").replace(/\(|\)/g,""),charValue:Y}})[0]||null}async function $S1(G){const X=Bun.file(y1.frameworkPath("orm/routes.ts")).writer();let H="import { route } from '@stacksjs/router'\n\n\n";for(let Z of G){g1.info(`Generating API Routes for: ${G9(Z)}`);let V="";const Q=(await import(Z)).default,Y=J0(Q,Z),W=t9(Q,Z);if(Q.traits?.useApi){if(Q.traits?.useApi&&typeof Q.traits.useApi==="object"){const z=Q.traits.useApi?.middleware,B=Q.traits.useApi?.uri||W;if(z){if(V=".middleware([",z.length){for(let q=0;q<z.length;q++)if(V+=`'${z[q]}'`,q<z.length-1)V+=","}V+="])"}if(Q.traits.useApi.routes&&Object.keys(Q.traits.useApi.routes).length>0){const q=Q.traits.useApi.routes;if(Array.isArray(q)){if(q.length){for(let F of q)if(typeof F==="string"){await KH(F,Y);const j=F.charAt(0).toUpperCase()+F.slice(1);if(F==="index")H+=`route.get('${B}', '${Y}${j}OrmAction').middleware(['Api'])\n\n`;if(F==="show")H+=`route.get('${B}/{id}', '${Y}${j}OrmAction').middleware(['Api'])\n\n`;if(F==="store")H+=`route.post('${B}', '${Y}${j}OrmAction').middleware(['Api'])\n\n`;if(F==="update")H+=`route.patch('${B}/{id}', '${Y}${j}OrmAction').middleware(['Api'])\n\n`;if(F==="destroy")H+=`route.delete('${B}/{id}', '${Y}${j}OrmAction').middleware(['Api'])\n\n`}}}else if(typeof q==="object"){for(let F in q)if(Object.prototype.hasOwnProperty.call(q,F)){const j=q[F];if(await KH(F,Y,j),typeof j!=="string")throw new TypeError(`Invalid route path for ${F}`);const f=`${j}.ts`;if(F==="index")H+=`route.get('${B}', '${f}').${V}\n\n`;if(F==="show")H+=`route.get('${B}/{id}', '${f}').${V}\n\n`;if(F==="store")H+=`route.post('${B}', '${f}').${V}\n\n`;if(F==="update")H+=`route.patch('${B}/{id}', '${f}').${V}\n\n`;if(F==="destroy")H+=`route.delete('${B}/{id}', '${f}').${V}\n\n`}}}}if(typeof Q.traits.useApi==="boolean"&&Q.traits?.useApi){const z=W,B=["index","show","store","update","destroy"];for(let q of B){await KH(q,Y);const F=q.charAt(0).toUpperCase()+q.slice(1),j=y1.builtUserActionsPath(`src/${Y}${F}OrmAction.ts`,{relative:!0});if(q==="index")H+=`route.get('${z}', '${j}').middleware(['Api'])\n\n`;if(q==="show")H+=`route.get('${z}/{id}', '${j}').middleware(['Api'])\n\n`;if(q==="store")H+=`route.post('${z}', '${j}').middleware(['Api'])\n\n`;if(q==="update")H+=`route.patch('${z}/{id}', '${j}').middleware(['Api'])\n\n`;if(q==="destroy")H+=`route.delete('${z}/{id}', '${j}').middleware(['Api'])\n\n`}}}}X.write(H),await X.end()}async function RS1(G){const J=y1.frameworkPath("orm/src/types.ts");if(o1.existsSync(J))await o1.promises.unlink(J);if(G){const H=y1.frameworkPath(`orm/src/models/${G}.ts`);if(o1.existsSync(H))await o1.promises.unlink(H);return}const X=R5([y1.frameworkPath("orm/src/models/*.ts")],{absolute:!0});await Promise.all(X.map(async(H)=>{if(o1.existsSync(H))g1.info(`Deleting Model: ${G9(H)}`),await o1.promises.unlink(H),g1.success(`Deleted Model: ${G9(H)}`)}))}async function MS1(){const G=y1.corePath("types/src/model-names.ts");if(o1.existsSync(G))await o1.promises.unlink(G)}async function qS1(G){const J=y1.frameworkPath("types/requests.d.ts");if(o1.existsSync(J))await o1.promises.unlink(J);if(G){const H=y1.frameworkPath(`requests/${G}.ts`);if(o1.existsSync(H))await o1.promises.unlink(H);return}const X=R5([y1.frameworkPath("requests/*.ts")],{absolute:!0});for(let H of X)if(o1.existsSync(H))await o1.promises.unlink(H)}async function FS1(){const G=y1.frameworkPath("orm/routes.ts");if(o1.existsSync(G))await o1.promises.unlink(G)}async function jS1(){const G=R5([y1.userModelsPath("*.ts")],{absolute:!0});let J="";for(let V of G){const Q=(await import(V)).default,Y=t9(Q,V),W=J0(Q,V),B=`${Y.split("_").map((q)=>q.charAt(0).toUpperCase()+q.slice(1)).join("")}`;J+=`import type { ${B}Table } from '../src/models/${W}'\n`}J+="import type { Generated } from 'kysely'\n\n";let X="";for(let V of G){const Q=(await import(V)).default,Y=J0(Q,V),W=await Kq(Q,Y);for(let z of W)X=`${z.table.split("_").map((q)=>q.charAt(0).toUpperCase()+q.slice(1)).join("")}Table`,J+=`export interface ${X} {
95
+ id?: Generated<number>
96
+ ${z.firstForeignKey}: number
97
+ ${z.secondForeignKey}: number
98
+ }\n\n`}J+="\nexport interface MigrationsTable {\n",J+="name: string\n timestamp: string \n }",J+="\nexport interface PasskeysTable {\n",J+=" id: string\n",J+=" cred_public_key: string\n",J+=" user_id: number;\n",J+=" webauthn_user_id: string\n",J+=" counter: number\n",J+=" credential_type: string\n",J+=" device_type: string\n",J+=" backup_eligible: boolean\n",J+=" backup_status: boolean\n",J+=" transports?: string\n",J+=" created_at?: Date\n",J+=" last_used_at: string \n",J+="}\n\n",J+="\nexport interface Database {\n";for(let V of G){const Q=(await import(V)).default,Y=J0(Q,V),W=t9(Q,V),z=await Kq(Q,Y);for(let F of z)J+=` ${F.table}: ${X}\n`;const q=`${W.split("_").map((F)=>F.charAt(0).toUpperCase()+F.slice(1)).join("")}Table`;J+=` ${W}: ${q}\n`}J+="passkeys: PasskeysTable\n",J+="migrations: MigrationsTable",J+="}";const Z=Bun.file(y1.frameworkPath("orm/src/types.ts")).writer();Z.write(J),await Z.end()}async function DS1(G,J,X,H){const Z=$5(G),V=J.toLowerCase();let Q="",Y="",W="{\n",z="",B="",q="",F="",j="",f="",y="",w="",v="",h="";const K1=await Bq(X,J);for(let b of K1)j+=`import ${b.model} from './${b.model}'\n\n`;const e=X?.traits?.useTimestamps??X?.traits?.timestampable??!0,$1=X?.traits?.useSoftDeletes??X?.traits?.softDeletable??!1,Q1=X?.traits?.observe;if(typeof Q1==="boolean"){if(Q1)y+=`if (model)\n dispatch('${V}:created', model)`,w+=`if (model)\n dispatch('${V}:updated', model)`,v+=`if (model)\n dispatch('${V}:deleted', model)`,h+="const model = await instance.find(id)"}if(Array.isArray(Q1)){if(Q1.includes("create"))y+=`if (model)\n dispatch('${V}:created', model);`;if(Q1.includes("update"))w+=`if (model)\n dispatch('${V}:updated', model);`;if(Q1.includes("delete"))h+="const model = await instance.find(id)",v+=`if (model)\n dispatch('${V}:deleted', model);`}for(let b of K1){const{model:Y1,foreignKey:R1}=b,r=b.table||"",l=b.pivotTable,p=Y1.toLowerCase(),n=QS1(b.relationship),X1=YS1(b.relationship);if(n==="throughType"){const J1=b.relationName||V+Y1,H1=b.throughModel;if(b.throughModel===void 0)continue;const B1=b?.throughModel?.toLowerCase(),q1=H1,e1=b.throughForeignKey||`${B1}_id`;F+=`
99
+ async ${J1}() {
100
+ if (this.id === undefined)
101
+ throw new Error('Relation Error!')
102
+
103
+ const firstModel = await db.selectFrom('${q1}')
104
+ .where('${R1}', '=', this.id)
105
+ .selectAll()
106
+ .executeTakeFirst()
107
+
108
+ if (! firstModel)
109
+ throw new Error('Model Relation Not Found!')
110
+
111
+ const finalModel = ${Y1}
112
+ .where('${e1}', '=', firstModel.id)
113
+ .first()
114
+
115
+ return new ${Y1}.modelInstance(finalModel)
116
+ }\n\n`}if(n==="hasType"&&X1==="many"){const J1=b.relationName||r;F+=`
117
+ async ${J1}() {
118
+ if (this.id === undefined)
119
+ throw new Error('Relation Error!')
120
+
121
+ const results = await db.selectFrom('${r}')
122
+ .where('${R1}', '=', this.id)
123
+ .selectAll()
124
+ .execute()
125
+
126
+ return results
127
+ }\n\n`}if(n==="hasType"&&X1==="one"){const J1=b.relationName||p;F+=`
128
+ async ${J1}() {
129
+ if (this.id === undefined)
130
+ throw new Error('Relation Error!')
131
+
132
+ const model = ${Y1}
133
+ .where('${R1}', '=', this.id).first()
134
+
135
+ if (! model)
136
+ throw new Error('Model Relation Not Found!')
137
+
138
+ return model
139
+ }\n\n`}if(n==="belongsType"&&!X1){const J1=b.relationName||p;F+=`
140
+ async ${J1}() {
141
+ if (this.${R1} === undefined)
142
+ throw new Error('Relation Error!')
143
+
144
+ const model = await ${Y1}
145
+ .where('id', '=', ${R1})
146
+ .first()
147
+
148
+ if (! model)
149
+ throw new Error('Model Relation Not Found!')
150
+
151
+ return model
152
+ }\n\n`}if(n==="belongsType"&&X1==="many"){const J1=l||r,H1=b.relationName||V+t5($5(Y1));F+=`
153
+ async ${H1}() {
154
+ if (this.id === undefined)
155
+ throw new Error('Relation Error!')
156
+
157
+ const results = await db.selectFrom('${J1}')
158
+ .where('${R1}', '=', this.id)
159
+ .selectAll()
160
+ .execute()
161
+
162
+ const tableRelationIds = results.map(result => result.${DJ(r)}_id)
163
+
164
+ if (! tableRelationIds.length)
165
+ throw new Error('Relation Error!')
166
+
167
+ const relationResults = await ${Y1}.whereIn('id', tableRelationIds).get()
168
+
169
+ return relationResults
170
+ }\n\n`}}z+="public id: number | undefined \n ",Y+=`this.id = ${V}?.id\n `;const L1=typeof X.traits?.useAuth==="object"&&X.traits.useAuth.useTwoFactor,E1=typeof X.traits?.useAuth==="object"&&X.traits.useAuth.usePasskey;if(L1)z+="public two_factor_secret: string | undefined \n",Y+=`this.two_factor_secret = ${V}?.two_factor_secret\n `,f+=`
171
+ async generateTwoFactorForModel() {
172
+ const secret = generateTwoFactorSecret()
173
+
174
+ await this.update({ 'two_factor_secret': secret })
175
+ }
176
+
177
+ verifyTwoFactorCode(code: string): boolean {
178
+ const modelTwoFactorSecret = this.two_factor_secret
179
+ let isValid = false
180
+
181
+ if (typeof modelTwoFactorSecret === 'string') {
182
+ isValid = verifyTwoFactorCode(code, modelTwoFactorSecret)
183
+ }
184
+
185
+ return isValid
186
+ }
187
+ `;if(E1)z+="public public_passkey: string | undefined \n",Y+=`this.public_passkey = ${V}?.public_passkey\n `,f+=`
188
+ async generateTwoFactorForModel() {
189
+ const secret = generateTwoFactorSecret()
190
+
191
+ await this.update({ 'two_factor_secret': secret })
192
+ }
193
+
194
+ verifyTwoFactorCode(code: string): boolean {
195
+ const modelTwoFactorSecret = this.two_factor_secret
196
+ let isValid = false
197
+
198
+ if (typeof modelTwoFactorSecret === 'string') {
199
+ isValid = verifyTwoFactorCode(code, modelTwoFactorSecret)
200
+ }
201
+
202
+ return isValid
203
+ }
204
+ `;W+="\nid: this.id,\n";for(let b of H){const Y1=b.fieldArray?.entity==="enum"?"string[]":b.fieldArray?.entity;Q+=` ${j2(b.field)}?: ${Y1}\n `,z+=`public ${j2(b.field)}: ${Y1} | undefined \n `,Y+=`this.${j2(b.field)} = ${V}?.${j2(b.field)}\n `,W+=`${j2(b.field)}: this.${j2(b.field)},\n `,B+=`static where${$5(b.field)}(value: string): ${J}Model {
205
+ const instance = new ${J}Model(null)
206
+
207
+ instance.query = instance.query.where('${b.field}', '=', value)
208
+
209
+ return instance
210
+ } \n\n`,q+=`export async function where${$5(b.field)}(value: ${Y1}): Promise<${J}Model[]> {
211
+ const query = db.selectFrom('${G}').where('${j2(b.field)}', '=', value)
212
+ const results = await query.execute()
213
+
214
+ return results.map(modelItem => new ${J}Model(modelItem))
215
+ } \n\n`}if(e)z+=`
216
+ public created_at: Date | undefined
217
+ public updated_at: Date | undefined
218
+ `,Y+=`
219
+ this.created_at = ${V}?.created_at\n
220
+ this.updated_at = ${V}?.updated_at\n
221
+ `,W+=`
222
+ created_at: this.created_at,\n
223
+ updated_at: this.updated_at,\n
224
+ `;if($1)z+=`
225
+ public deleted_at: string | undefined
226
+ `,Y+=`
227
+ this.deleted_at = ${V}?.deleted_at\n
228
+ `,W+=`
229
+ deleted_at: this.deleted_at,\n
230
+ `;W+="}";const i=await $q(X,J);for(let b of i)Q+=` ${b.foreignKey}?: number \n`,z+=`public ${b.foreignKey}: number | undefined \n `,Y+=`this.${b.foreignKey} = ${V}?.${b.foreignKey}\n `;if(L1)Q+="two_factor_secret?: string \n";if(E1)Q+="public_passkey?: string \n";if(e)Q+=`
231
+ created_at?: Date\n
232
+ updated_at?: Date
233
+ `;Q+=`
234
+ deleted_at?: Date
235
+ `;const u=JSON.stringify(WS1(X.attributes)),_=JSON.stringify(zS1(X.attributes));return`import type { Generated, Insertable, Selectable, Updateable } from 'kysely'
236
+ import { db } from '@stacksjs/database'
237
+ import { sql } from '@stacksjs/database'
238
+ import { dispatch } from '@stacksjs/events'
239
+ import { generateTwoFactorSecret } from '@stacksjs/auth'
240
+ import { verifyTwoFactorCode } from '@stacksjs/auth'
241
+ import { cache } from '@stacksjs/cache'
242
+ ${j}
243
+ // import { Kysely, MysqlDialect, PostgresDialect } from 'kysely'
244
+ // import { Pool } from 'pg'
245
+
246
+ // TODO: we need an action that auto-generates these table interfaces
247
+ export interface ${Z}Table {
248
+ id: Generated<number>
249
+ ${Q}
250
+ }
251
+
252
+ interface ${J}Response {
253
+ data: ${Z}
254
+ paging: {
255
+ total_records: number
256
+ page: number
257
+ total_pages: number
258
+ }
259
+ next_cursor: number | null
260
+ }
261
+
262
+ export type ${J}Type = Selectable<${Z}Table>
263
+ export type New${J} = Insertable<${Z}Table>
264
+ export type ${J}Update = Updateable<${Z}Table>
265
+ export type ${Z} = ${J}Type[]
266
+
267
+ export type ${J}Column = ${Z}
268
+ export type ${J}Columns = Array<keyof ${Z}>
269
+
270
+ type SortDirection = 'asc' | 'desc'
271
+ interface SortOptions { column: ${J}Type, order: SortDirection }
272
+ // Define a type for the options parameter
273
+ interface QueryOptions {
274
+ sort?: SortOptions
275
+ limit?: number
276
+ offset?: number
277
+ page?: number
278
+ }
279
+
280
+ export class ${J}Model {
281
+ private hidden = ${u}
282
+ private fillable = ${_}
283
+ private softDeletes = ${$1}
284
+ protected query: any
285
+ protected hasSelect: boolean
286
+ ${z}
287
+ constructor(${V}: Partial<${J}Type> | null) {
288
+ ${Y}
289
+
290
+ this.query = db.selectFrom('${G}')
291
+ this.hasSelect = false
292
+ }
293
+
294
+ // Method to find a ${J} by ID
295
+ async find(id: number): Promise<${J}Model | undefined> {
296
+ let query = db.selectFrom('${G}').where('id', '=', id).selectAll()
297
+
298
+ const model = await query.executeTakeFirst()
299
+
300
+ if (!model)
301
+ return undefined
302
+
303
+ cache.getOrSet(\`${V}:\${id}\`, JSON.stringify(model))
304
+
305
+ return this.parseResult(new ${J}Model(model))
306
+ }
307
+
308
+ // Method to find a ${J} by ID
309
+ static async find(id: number): Promise<${J}Model | undefined> {
310
+ let query = db.selectFrom('${G}').where('id', '=', id).selectAll()
311
+
312
+ const instance = new ${J}Model(null)
313
+
314
+ const model = await query.executeTakeFirst()
315
+
316
+ if (!model)
317
+ return undefined
318
+
319
+ cache.getOrSet(\`${V}:\${id}\`, JSON.stringify(model))
320
+
321
+ return instance.parseResult(new ${J}Model(model))
322
+ }
323
+
324
+ static async all(): Promise<${J}Model[]> {
325
+ let query = db.selectFrom('${G}').selectAll()
326
+
327
+ const instance = new ${J}Model(null)
328
+
329
+ if (instance.softDeletes) {
330
+ query = query.where('deleted_at', 'is', null)
331
+ }
332
+
333
+ const results = await query.execute();
334
+
335
+ return results.map(modelItem => instance.parseResult(new ${J}Model(modelItem)));
336
+ }
337
+
338
+
339
+ static async findOrFail(id: number): Promise<${J}Model> {
340
+ let query = db.selectFrom('${G}').where('id', '=', id)
341
+
342
+ const instance = new ${J}Model(null)
343
+
344
+ if (instance.softDeletes) {
345
+ query = query.where('deleted_at', 'is', null);
346
+ }
347
+
348
+ query = query.selectAll()
349
+
350
+ const model = await query.executeTakeFirst()
351
+
352
+ if (model === undefined)
353
+ throw new Error(JSON.stringify({ status: 404, message: 'No model results found for query' }))
354
+
355
+ cache.getOrSet(\`${V}:\${id}\`, JSON.stringify(model))
356
+
357
+ return instance.parseResult(new ${J}Model(model))
358
+ }
359
+
360
+ static async findMany(ids: number[]): Promise<${J}Model[]> {
361
+ let query = db.selectFrom('${G}').where('id', 'in', ids)
362
+
363
+ const instance = new ${J}Model(null)
364
+
365
+ if (instance.softDeletes) {
366
+ query = query.where('deleted_at', 'is', null);
367
+ }
368
+
369
+ query = query.selectAll()
370
+
371
+ const model = await query.execute()
372
+
373
+ return model.map(modelItem => instance.parseResult(new ${J}Model(modelItem)))
374
+ }
375
+
376
+ // Method to get a User by criteria
377
+ static async get(): Promise<UserModel[]> {
378
+ const instance = new ${J}Model(null)
379
+
380
+ if (instance.hasSelect) {
381
+ if (instance.softDeletes) {
382
+ instance.query = instance.query.where('deleted_at', 'is', null)
383
+ }
384
+
385
+ const model = await instance.query.execute()
386
+
387
+ return model.map((modelItem: ${J}Model) => new ${J}Model(modelItem))
388
+ }
389
+
390
+ if (instance.softDeletes) {
391
+ instance.query = instance.query.where('deleted_at', 'is', null)
392
+ }
393
+
394
+ const model = await instance.query.selectAll().execute()
395
+
396
+ return model.map((modelItem: ${J}Model) => new ${J}Model(modelItem))
397
+ }
398
+
399
+
400
+ // Method to get a ${J} by criteria
401
+ async get(): Promise<${J}Model[]> {
402
+ if (this.hasSelect) {
403
+
404
+ if (this.softDeletes) {
405
+ this.query = this.query.where('deleted_at', 'is', null);
406
+ }
407
+
408
+ const model = await this.query.execute()
409
+
410
+ return model.map((modelItem: ${J}Model) => new ${J}Model(modelItem))
411
+ }
412
+
413
+ if (this.softDeletes) {
414
+ this.query = this.query.where('deleted_at', 'is', null);
415
+ }
416
+
417
+ const model = await this.query.selectAll().execute()
418
+
419
+ return model.map((modelItem: ${J}Model) => new ${J}Model(modelItem))
420
+ }
421
+
422
+ static async count(): Promise<number> {
423
+ const instance = new ${J}Model(null)
424
+
425
+ if (instance.softDeletes) {
426
+ instance.query = instance.query.where('deleted_at', 'is', null);
427
+ }
428
+
429
+ const results = await instance.query.selectAll().execute()
430
+
431
+ return results.length
432
+ }
433
+
434
+ async count(): Promise<number> {
435
+ if (this.hasSelect) {
436
+
437
+ if (this.softDeletes) {
438
+ this.query = this.query.where('deleted_at', 'is', null);
439
+ }
440
+
441
+ const results = await this.query.execute()
442
+
443
+ return results.length
444
+ }
445
+
446
+ const results = await this.query.selectAll().execute()
447
+
448
+ return results.length
449
+ }
450
+
451
+ // Method to get all ${G}
452
+ static async paginate(options: QueryOptions = { limit: 10, offset: 0, page: 1 }): Promise<${J}Response> {
453
+ const totalRecordsResult = await db.selectFrom('${G}')
454
+ .select(db.fn.count('id').as('total')) // Use 'id' or another actual column name
455
+ .executeTakeFirst()
456
+
457
+ const totalRecords = Number(totalRecordsResult?.total) || 0
458
+ const totalPages = Math.ceil(totalRecords / (options.limit ?? 10))
459
+
460
+ const ${G}WithExtra = await db.selectFrom('${G}')
461
+ .selectAll()
462
+ .orderBy('id', 'asc') // Assuming 'id' is used for cursor-based pagination
463
+ .limit((options.limit ?? 10) + 1) // Fetch one extra record
464
+ .offset(((options.page ?? 1) - 1) * (options.limit ?? 10)) // Ensure options.page is not undefined
465
+ .execute()
466
+
467
+
468
+ let nextCursor = null
469
+ if (${G}WithExtra.length > (options.limit ?? 10)) nextCursor = ${G}WithExtra.pop()?.id ?? null
470
+
471
+ return {
472
+ data: ${G}WithExtra,
473
+ paging: {
474
+ total_records: totalRecords,
475
+ page: options.page || 1,
476
+ total_pages: totalPages,
477
+ },
478
+ next_cursor: nextCursor,
479
+ }
480
+ }
481
+
482
+ // Method to create a new ${V}
483
+ static async create(new${J}: New${J}): Promise<${J}Model> {
484
+ const instance = new ${J}Model(null)
485
+
486
+ const filteredValues = Object.fromEntries(
487
+ Object.entries(new${J}).filter(([key]) => instance.fillable.includes(key)),
488
+ ) as New${J}
489
+
490
+ const result = await db.insertInto('${G}')
491
+ .values(filteredValues)
492
+ .executeTakeFirstOrThrow()
493
+
494
+ const model = await find(Number(result.insertId)) as ${J}Model
495
+
496
+ ${y}
497
+
498
+ return model
499
+ }
500
+
501
+ static async forceCreate(new${J}: New${J}): Promise<${J}Model> {
502
+ const result = await db.insertInto('${G}')
503
+ .values(new${J})
504
+ .executeTakeFirstOrThrow()
505
+
506
+ const model = await find(Number(result.insertId)) as ${J}Model
507
+
508
+ ${y}
509
+
510
+ return model
511
+ }
512
+
513
+ // Method to remove a ${J}
514
+ static async remove(id: number): Promise<void> {
515
+ const instance = new ${J}Model(null)
516
+ ${h}
517
+
518
+ if (instance.softDeletes) {
519
+ await db.updateTable('${G}')
520
+ .set({
521
+ deleted_at: sql.raw('CURRENT_TIMESTAMP')
522
+ })
523
+ .where('id', '=', id)
524
+ .execute();
525
+ } else {
526
+ await db.deleteFrom('${G}')
527
+ .where('id', '=', id)
528
+ .execute();
529
+ }
530
+
531
+
532
+ ${v}
533
+ }
534
+
535
+ where(...args: (string | number | boolean | undefined | null)[]): ${J}Model {
536
+ let column: any
537
+ let operator: any
538
+ let value: any
539
+
540
+ if (args.length === 2) {
541
+ [column, value] = args
542
+ operator = '='
543
+ } else if (args.length === 3) {
544
+ [column, operator, value] = args
545
+ } else {
546
+ throw new Error("Invalid number of arguments")
547
+ }
548
+
549
+ this.query = this.query.where(column, operator, value)
550
+
551
+ return this
552
+ }
553
+
554
+ static where(...args: (string | number | boolean | undefined | null)[]): ${J}Model {
555
+ let column: any
556
+ let operator: any
557
+ let value: any
558
+
559
+ const instance = new ${J}Model(null)
560
+
561
+ if (args.length === 2) {
562
+ [column, value] = args
563
+ operator = '='
564
+ } else if (args.length === 3) {
565
+ [column, operator, value] = args
566
+ } else {
567
+ throw new Error("Invalid number of arguments")
568
+ }
569
+
570
+ instance.query = instance.query.where(column, operator, value)
571
+
572
+ return instance
573
+ }
574
+
575
+ ${B}
576
+
577
+ static whereIn(column: keyof ${J}Type, values: any[]): ${J}Model {
578
+ const instance = new ${J}Model(null)
579
+
580
+ instance.query = instance.query.where(column, 'in', values)
581
+
582
+ return instance
583
+ }
584
+
585
+ async first(): Promise<${J}Model | undefined> {
586
+ const model = await this.query.selectAll().executeTakeFirst()
587
+
588
+ if (! model) {
589
+ return undefined
590
+ }
591
+
592
+ return this.parseResult(new ${J}Model(model))
593
+ }
594
+
595
+ async firstOrFail(): Promise<${J}Model | undefined> {
596
+ const model = await this.query.selectAll().executeTakeFirst()
597
+
598
+ if (model === undefined)
599
+ throw { status: 404, message: 'No ${J}Model results found for query' }
600
+
601
+ return this.parseResult(new ${J}Model(model))
602
+ }
603
+
604
+ async exists(): Promise<boolean> {
605
+ const model = await this.query.selectAll().executeTakeFirst()
606
+
607
+ return model !== null || model !== undefined
608
+ }
609
+
610
+ static async first(): Promise<${J}Type | undefined> {
611
+ return await db.selectFrom('${G}')
612
+ .selectAll()
613
+ .executeTakeFirst()
614
+ }
615
+
616
+ async last(): Promise<${J}Type | undefined> {
617
+ return await db.selectFrom('${G}')
618
+ .selectAll()
619
+ .orderBy('id', 'desc')
620
+ .executeTakeFirst()
621
+ }
622
+
623
+ static async last(): Promise<${J}Type | undefined> {
624
+ return await db.selectFrom('${G}').selectAll().orderBy('id', 'desc').executeTakeFirst()
625
+ }
626
+
627
+ static orderBy(column: keyof ${J}Type, order: 'asc' | 'desc'): ${J}Model {
628
+ const instance = new ${J}Model(null)
629
+
630
+ instance.query = instance.query.orderBy(column, order)
631
+
632
+ return instance
633
+ }
634
+
635
+ orderBy(column: keyof ${J}Type, order: 'asc' | 'desc'): ${J}Model {
636
+ this.query = this.query.orderBy(column, order)
637
+
638
+ return this
639
+ }
640
+
641
+ static orderByDesc(column: keyof ${J}Type): ${J}Model {
642
+ const instance = new ${J}Model(null)
643
+
644
+ instance.query = instance.query.orderBy(column, 'desc')
645
+
646
+ return instance
647
+ }
648
+
649
+ orderByDesc(column: keyof ${J}Type): ${J}Model {
650
+ this.query = this.orderBy(column, 'desc')
651
+
652
+ return this
653
+ }
654
+
655
+ static orderByAsc(column: keyof ${J}Type): ${J}Model {
656
+ const instance = new ${J}Model(null)
657
+
658
+ instance.query = instance.query.orderBy(column, 'asc')
659
+
660
+ return instance
661
+ }
662
+
663
+ orderByAsc(column: keyof ${J}Type): ${J}Model {
664
+ this.query = this.query.orderBy(column, 'desc')
665
+
666
+ return this
667
+ }
668
+
669
+ async update(${V}: ${J}Update): Promise<${J}Model | undefined> {
670
+ if (this.id === undefined)
671
+ throw new Error('${J} ID is undefined')
672
+
673
+ const filteredValues = Object.fromEntries(
674
+ Object.entries(${V}).filter(([key]) => this.fillable.includes(key)),
675
+ ) as New${J}
676
+
677
+ await db.updateTable('${G}')
678
+ .set(filteredValues)
679
+ .where('id', '=', this.id)
680
+ .executeTakeFirst()
681
+
682
+ const model = await this.find(Number(this.id))
683
+
684
+
685
+ ${w}
686
+
687
+ return model
688
+ }
689
+
690
+ async forceUpdate(${V}: ${J}Update): Promise<${J}Model | undefined> {
691
+ if (this.id === undefined)
692
+ throw new Error('${J} ID is undefined')
693
+
694
+ await db.updateTable('${G}')
695
+ .set(${V})
696
+ .where('id', '=', this.id)
697
+ .executeTakeFirst()
698
+
699
+ const model = await this.find(Number(this.id))
700
+
701
+
702
+ ${w}
703
+
704
+ return model
705
+ }
706
+
707
+ async save(): Promise<void> {
708
+ if (!this)
709
+ throw new Error('${J} data is undefined')
710
+
711
+ if (this.id === undefined) {
712
+ await db.insertInto('${G}')
713
+ .values(this as New${J})
714
+ .executeTakeFirstOrThrow()
715
+ }
716
+ else {
717
+ await this.update(this)
718
+ }
719
+ }
720
+
721
+ // Method to delete (soft delete) the ${V} instance
722
+ async delete(): Promise<void> {
723
+ if (this.id === undefined)
724
+ throw new Error('${J} ID is undefined')
725
+
726
+ ${h}
727
+
728
+ // Check if soft deletes are enabled
729
+ if (this.softDeletes) {
730
+ // Update the deleted_at column with the current timestamp
731
+ await db.updateTable('${G}')
732
+ .set({
733
+ deleted_at: sql.raw('CURRENT_TIMESTAMP')
734
+ })
735
+ .where('id', '=', this.id)
736
+ .execute();
737
+ } else {
738
+ // Perform a hard delete
739
+ await db.deleteFrom('${G}')
740
+ .where('id', '=', this.id)
741
+ .execute();
742
+ }
743
+
744
+
745
+ ${v}
746
+ }
747
+
748
+ ${F}
749
+
750
+ distinct(column: keyof ${J}Type): ${J}Model {
751
+ this.query = this.query.select(column).distinct()
752
+
753
+ this.hasSelect = true
754
+
755
+ return this
756
+ }
757
+
758
+ static distinct(column: keyof ${J}Type): ${J}Model {
759
+ const instance = new ${J}Model(null)
760
+
761
+ instance.query = instance.query.select(column).distinct()
762
+
763
+ instance.hasSelect = true
764
+
765
+ return instance
766
+ }
767
+
768
+ join(table: string, firstCol: string, secondCol: string): ${J}Model {
769
+ this.query = this.query.innerJoin(table, firstCol, secondCol)
770
+
771
+ return this
772
+ }
773
+
774
+ static join(table: string, firstCol: string, secondCol: string): ${J}Model {
775
+ const instance = new ${J}Model(null)
776
+
777
+ instance.query = instance.query.innerJoin(table, firstCol, secondCol)
778
+
779
+ return instance
780
+ }
781
+
782
+ static async rawQuery(rawQuery: string): Promise<any> {
783
+ return await sql\`\${rawQuery}\`.execute(db)
784
+ }
785
+
786
+ toJSON() {
787
+ const output: Partial<${J}Type> = ${W}
788
+
789
+
790
+ type ${J} = Omit<${J}Type, 'password'>
791
+
792
+ return output as ${J}
793
+ }
794
+
795
+ parseResult(model: ${J}Model): ${J}Model {
796
+ for (const hiddenAttribute of this.hidden) {
797
+ delete model[hiddenAttribute as keyof ${J}Model]
798
+ }
799
+
800
+ return model
801
+ }
802
+
803
+ ${f}
804
+ }
805
+
806
+ async function find(id: number): Promise<${J}Model | undefined> {
807
+ let query = db.selectFrom('${G}').where('id', '=', id).selectAll()
808
+
809
+ const model = await query.executeTakeFirst()
810
+
811
+ if (!model) return undefined
812
+
813
+ return new ${J}Model(model)
814
+ }
815
+
816
+ export async function count(): Promise<number> {
817
+ const results = await ${J}Model.count()
818
+
819
+ return results
820
+ }
821
+
822
+ export async function create(new${J}: New${J}): Promise<${J}Model> {
823
+
824
+ const result = await db.insertInto('${G}')
825
+ .values(new${J})
826
+ .executeTakeFirstOrThrow()
827
+
828
+ return await find(Number(result.insertId)) as ${J}Model
829
+ }
830
+
831
+ export async function rawQuery(rawQuery: string): Promise<any> {
832
+ return await sql\`\${rawQuery}\`.execute(db)
833
+ }
834
+
835
+ export async function remove(id: number): Promise<void> {
836
+ await db.deleteFrom('${G}')
837
+ .where('id', '=', id)
838
+ .execute()
839
+ }
840
+
841
+ ${q}
842
+
843
+ export const ${J} = ${J}Model
844
+
845
+ export default ${J}
846
+ `}async function Mq(G){try{g1.info("Cleanup of older Models..."),await RS1(G),g1.success("Deleted Models"),g1.info("Deleting old Model Name types..."),await MS1(),g1.success("Deleted Model Name types"),g1.info("Deleting old Model Requests..."),await qS1(G),g1.success("Deleted Model Requests"),g1.info("Deleting old Model Routes..."),await FS1(),g1.success("Deleted Model Routes"),g1.info("Writing Model Names...");try{await US1()}catch(X){console.log("error",X),IJ.exit(AJ.FatalError)}g1.success("Wrote Model Names"),g1.info("Writing Model Requests...");try{await KS1()}catch(X){console.log("error",X),IJ.exit(AJ.FatalError)}g1.success("Wrote Model Requests"),g1.info("Generating API Routes...");const J=R5([y1.userModelsPath("**/*.ts")],{absolute:!0});await $S1(J),g1.success("Generated API Routes");for(let X of J){if(G&&G!==X)continue;g1.info(`Processing Model: ${G9(X)}`);const H=(await import(X)).default,Z=t9(H,X),V=J0(H,X),Q=Bun.file(y1.frameworkPath(`orm/src/models/${V}.ts`)),Y=await Rq(H,X),W=await DS1(Z,V,H,Y),z=Q.writer();g1.info(`Writing API Endpoints for: ${G9(V)}`),z.write(W),g1.success(`Wrote API endpoints for: ${G9(V)}`),await z.end()}g1.info("Generating Query Builder types..."),await jS1(),g1.success("Generated Query Builder types"),g1.info("Ensuring Code Style...");try{const X=Bun.spawn(["bunx","--bun","eslint",".","--fix"],{stdio:["ignore","pipe","pipe"],cwd:y1.projectPath(),detached:!0}),H=X.stdout.getReader();while(!0){const{done:Q}=await H.read();if(Q)break}const Z=X.stderr.getReader();while(!0){const{done:Q}=await Z.read();if(Q)break}if(await X.exited!==0)g1.debug("There was an error fixing your code style but we are ignoring it because we fixed the auto-generated code already.");else g1.success("Code style fixed successfully.")}catch(X){g1.error("There was an error fixing your code style."),g1.error(X),IJ.exit(AJ.FatalError)}g1.success("Linted")}catch(J){g1.error("There was an error generating your model files",J),IJ.exit(AJ.FatalError)}}import{ExitCode as jq}from"@stacksjs/types";function Nh1(G){const J={command:"Automagically build any of your libraries/packages for production use. Select any of the following packages",types:"Generate your TypeScript types",entries:"Generate your function & Component Library Entry Points",webTypes:"Generate web-types.json for IDEs",customData:"Generate VS Code custom data (custom-elements.json) for IDEs",ideHelpers:"Generate IDE helpers",componentMeta:"Generate component meta information",coreSymlink:"Generate symlink of the core framework to the project root",pkgx:"Generate the pkgx configuration file",modelFiles:"Generate the model files",openApi:"Generate the OpenAPI specification",select:"What are you trying to generate?",project:"Target a specific project",verbose:"Enable verbose output"};G.command("generate",J.command).option("-t, --types",J.types).option("-e, --entries",J.entries).option("-w, --web-types",J.webTypes).option("-c, --custom-data",J.customData).option("-i, --ide-helpers",J.ideHelpers).option("-c, --component-meta",J.componentMeta).option("-p, --pkgx",J.pkgx).option("-m, --model-files",J.modelFiles).option("-o, --openapi",J.openApi).option("-p, --project [project]",J.project,{default:!1}).option("--core-symlink",J.coreSymlink).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{_2.debug("Running `buddy generate` ...",X),await NS1(X),BH.exit(jq.Success)}),G.command("generate:types",J.types).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).alias("types:generate").action(async(X)=>{_2.debug("Running `buddy generate:types` ...",X),await LS1(X)}),G.command("generate:entries",J.entries).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{_2.debug("Running `buddy generate:entries` ...",X),await fS1(X)}),G.command("generate:web-types",J.webTypes).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{_2.debug("Running `buddy generate:web-types` ...",X),await wS1(X)}),G.command("generate:vscode-custom-data",J.customData).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{_2.debug("Running `buddy generate:vscode-custom-data` ...",X),await TS1(X)}),G.command("generate:ide-helpers",J.ideHelpers).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{_2.debug("Running `buddy generate:ide-helpers` ...",X),await CS1(X)}),G.command("generate:component-meta",J.componentMeta).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{_2.debug("Running `buddy generate:component-meta` ...",X),await IS1(X)}),G.command("generate:pkgx-config",J.pkgx).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action((X)=>{_2.debug("Running `buddy generate:pkgx-config` ...",X),PS1()}),G.command("generate:model-files",J.modelFiles).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async()=>{const X=await qq("buddy generate:model-files");try{await Mq(),Fq("Generated Model files",{startTime:X,useSeconds:!0})}catch(H){_2.error("There was an error generating your model files",H),BH.exit(jq.FatalError)}}),G.command("generate:openapi-spec",J.openApi).alias("generate:openapi").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{_2.debug("Running `buddy generate:openapi-spec` ...",X);const H=await qq("buddy generate:openapi-spec");await SS1(),Fq("Generated OpenAPI specification",{startTime:H,useSeconds:!0})}),G.command("generate:migrations","Generate Migrations").action((X)=>{_2.debug("Running `buddy generate:migrations` ...",X)}),G.command("generate:core-symlink","Generate core symlink. A shortcut for core developers.").action(async(X)=>{_2.debug("Running `buddy core-symlink` ...",X),await AS1()}),G.on("generate:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),BH.exit(1)})}import kS1 from"process";import{config as ES1}from"@stacksjs/config";import{ExitCode as OS1}from"@stacksjs/types";import{log as Dq,runCommandSync as vS1}from"@stacksjs/cli";function gh1(G){const J={http:"Send an HTTP request to a domain",project:"Target a specific project",verbose:"Enable verbose output"};G.command("http [domain]",J.http).option("-p, --project [project]",J.project,{default:!1}).action(async(X,H)=>{Dq.debug("Running `buddy http [domain]` ...",H);const Z=Object.entries(H).filter(([Q,Y])=>Q!=="--"&&Q.length>1&&Y!==!1).map(([Q,Y])=>`--${Q} ${Y}`).join(" "),V=`http GET ${X||ES1.app.url} ${Z}`;Dq.info(`Running command: ${V}`),await vS1(V),kS1.exit(OS1.Success)})}import _S1 from"process";import{log as gS1,runCommand as bS1}from"@stacksjs/cli";import{path as hS1}from"@stacksjs/path";function xh1(G){const J={install:"Install your dependencies",project:"Target a specific project",verbose:"Enable verbose output"};G.command("install",J.install).option("-p, --project [project]",J.project,{default:!1}).option("-v, --verbose",J.verbose,{default:!1}).action(async(X)=>{gS1.debug("Running `buddy install` ...",X),await bS1("bun install",{...X,cwd:hS1.projectPath()})}),G.on("install:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),_S1.exit(1)})}import Iq from"process";import{runAction as yS1}from"@stacksjs/actions";import{intro as mS1,log as Aq,outro as xS1}from"@stacksjs/cli";import{Action as lS1}from"@stacksjs/enums";function uh1(G){const J={command:"Generate & set the application key.",project:"Target a specific project",verbose:"Enable verbose output"};G.command("key:generate",J.command).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{Aq.debug("Running `buddy key:generate` ...",X),await mS1("buddy key:generate");const H=await yS1(lS1.KeyGenerate,X);if(H.isErr())Aq.error("Failed to set random application key.",H.error),Iq.exit();await xS1("Random application key set.")}),G.on("key:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),Iq.exit(1)})}import Cq from"process";import{runAction as fq}from"@stacksjs/actions";import{intro as cS1,log as G6,outro as aS1,runCommand as rS1}from"@stacksjs/cli";import{Action as Sq}from"@stacksjs/enums";function eh1(G){const J={lint:"Automagically lints your project codebase",lintFix:"Automagically fixes all lint errors",project:"Target a specific project",verbose:"Enable verbose output"};G.command("lint",J.lint).option("-f, --fix",J.lintFix,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{G6.debug("Running `buddy lint` ...",X);const H=await cS1("buddy lint");if(X.fix)await fq(Sq.LintFix,{...X});else await rS1("bunx --bun eslint .");await aS1("Linted your project",{startTime:H,useSeconds:!0})}),G.command("lint:fix",J.lintFix).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{G6.debug("Running `buddy lint:fix` ...",X),G6.info("Fixing lint errors...");const H=await fq(Sq.LintFix,{...X});if(H.isErr())G6.error("There was an error lint fixing your code.",H.error),Cq.exit();G6.success("Fixed lint errors")}),G.on("lint:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),Cq.exit(1)})}import iS1 from"process";import{log as uS1}from"@stacksjs/logging";import{projectPath as dS1}from"@stacksjs/path";var{$:Pq}=globalThis.Bun;function Zy1(G){const J={list:"List all of the project-specific Buddy commands",project:"Target a specific project",verbose:"Enable verbose output"};G.command("list",J.list).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{uS1.debug("Running `buddy list` ...",X),Pq.cwd(dS1());const Z=(await Pq`buddy --help`.text()).match(/Commands:.*?(?=For more info, run any command with the)/s)?.[0];if(Z){const V=Z.replace("Commands:","").replace(/^\s+/gm,"");console.log(V);return}console.error("#1 - Please reach out to our Discord for helper: https://discord.gg/stacksjs")}),G.on("list:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),iS1.exit(1)})}import M2 from"process";import{createModel as sS1,createNotification as pS1,invoke as nS1,makeAction as oS1,makeComponent as eS1,makeDatabase as tS1,makeFunction as GP1,makeLanguage as JP1,makePage as XP1,makeStack as HP1}from"@stacksjs/actions";import{intro as ZP1,italic as VP1,outro as Lq,runCommand as Tq}from"@stacksjs/cli";import{localUrl as QP1}from"@stacksjs/config";import{log as k1}from"@stacksjs/logging";import{path as wq}from"@stacksjs/path";import{ExitCode as Nq}from"@stacksjs/types";function $y1(G){const J={action:"Create a new action",model:"Create a new model",component:"Create a new component",page:"Create a new page",function:"Create a new function",language:"Create a new language",database:"Create a new database",migration:"Create a new migration",factory:"Create a new factory",notification:"Create a new notification",name:"The name of the action",stack:"Create a new stack",certificate:"Create a new SSL Certificate",select:"What are you trying to make?",project:"Target a specific project",verbose:"Enable verbose output"};G.command("make","The make command").option("-a, --action [action]",J.action,{default:!1}).option("-m, --model [model]",J.model,{default:!1}).option("-c, --component [component]",J.component,{default:!1}).option("-p, --page [page]",J.page,{default:!1}).option("-f, --function [function]",J.function,{default:!1}).option("-l, --language [language]",J.language,{default:!1}).option("-d, --database [database]",J.database,{default:!1}).option("-m, --migration [migration]",J.migration,{default:!1}).option("-f, --factory [factory]",J.factory,{default:!1}).option("-n, --notification [notification]",J.notification,{default:!1}).option("-s, --stack [stack]",J.stack,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{if(k1.debug("Running `buddy make` ...",X),!G.args[0])k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();await nS1(X),M2.exit(Nq.Success)}),G.command("make:component [name]",J.component).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{if(k1.debug("Running `buddy make:component` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();await eS1(H)}),G.command("make:database [name]",J.database).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action((X,H)=>{if(k1.debug("Running `buddy make:database` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a database name via the `--name` option, or as the command\u2019s argument."),k1.info("Example: `buddy make:database my-cool-database`"),k1.info("Or: `buddy make:database --name=my-cool-database`"),k1.info("Read more about the documentation here: https://stacksjs.org/docs/make/database"),M2.exit();tS1(H)}),G.command("make:factory [name]",J.factory).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action((X,H)=>{if(k1.debug("Running `buddy make:factory` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit()}),G.command("make:view [name]",J.page).alias("make:page [name]").option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{if(k1.debug("Running `buddy make:view` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();await XP1(H)}),G.command("make:function [name]",J.function).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{k1.debug("Running `buddy make:function` ...",X),await GP1(X)}),G.command("make:lang [name]",J.language).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{if(k1.debug("Running `buddy make:lang` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();await JP1(H)}),G.command("make:notification [name]",J.notification).option("-n, --name [name]",J.name,{default:!1}).option("-e, --email","Is it an email notification?",{default:!0}).option("-c, --chat","Is it a chat notification?",{default:!1}).option("-s, --sms","Is it a SMS notification?",{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{k1.debug("Running `buddy make:notification` ...",H);const Z=await ZP1("buddy make:notification");if(X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();if(!await pS1(H))await Lq("While running the make:notification command, there was an issue",{startTime:Z,useSeconds:!0}),M2.exit();await Lq(`Created your ${VP1(X)} notification.`,{startTime:Z,useSeconds:!0}),M2.exit(Nq.Success)}),G.command("make:stack [name]",J.stack).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action((X,H)=>{if(k1.debug("Running `buddy make:stack` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();HP1(H)}),G.command("make:action [name]",J.action).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{if(k1.info("Running `buddy make:action` ..."),k1.debug("Running `buddy make:action` ...",X,H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a name. Read more about the documentation here."),M2.exit();await oS1(H)}),G.command("make:model [name]",J.model).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X,H)=>{if(k1.debug("Running `buddy make:model` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a model name"),M2.exit();await sS1(H)}),G.command("make:migration [name]",J.migration).option("-n, --name [name]",J.name,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action((X,H)=>{if(k1.debug("Running `buddy make:migration` ...",H),X=X??H.name,H.name=X,!X)k1.error("You need to specify a migration name"),M2.exit()}),G.command("make:certificate",J.certificate).alias("make:cert").example("buddy make:certificate").action(async(X)=>{k1.debug("Running `buddy make:certificate` ...",X);const H=await QP1();k1.info("Creating SSL certificate..."),await Tq(`tlsx ${H}`,{cwd:wq.storagePath("keys")}),k1.success("Certificate created"),k1.info("Installing SSL certificate..."),await Tq("tlsx -install",{cwd:wq.storagePath("keys")}),k1.success("Certificate installed")}),G.on("make:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),M2.exit(1)})}import D0 from"process";import{runAction as $H}from"@stacksjs/actions";import{intro as RH,log as MH,outro as J9}from"@stacksjs/cli";import{Action as qH}from"@stacksjs/enums";import{ExitCode as FH}from"@stacksjs/types";function Iy1(G){const J={migrate:"Migrates your database",dns:"Writes the DNS records for a domain to ./config/dns.ts",project:"Target a specific project",verbose:"Enable verbose output"};G.command("migrate",J.migrate).option("-d, --diff","Show the SQL that would be run",{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{MH.debug("Running `buddy migrate` ...",X);const H=await RH("buddy migrate"),Z=await $H(qH.Migrate,X);if(Z.isErr())await J9("While running the migrate command, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit();const V=D0.env.APP_ENV||"local";await J9(`Migrated your ${V} database.`,{startTime:H,useSeconds:!0}),D0.exit(FH.Success)}),G.command("migrate:fresh",J.migrate).option("-d, --diff","Show the SQL that would be run",{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{MH.debug("Running `buddy migrate:fresh` ...",X);const H=await RH("buddy migrate:fresh"),Z=await $H(qH.MigrateFresh,X);if(Z.isErr())await J9("While running the migrate:fresh command, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit();await J9("All tables dropped successfully & migrated successfully",{startTime:H,useSeconds:!0}),D0.exit(FH.Success)}),G.command("migrate:dns",J.migrate).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{MH.debug("Running `buddy migrate:dns` ...",X);const H=await RH("buddy migrate:dns"),Z=await $H(qH.MigrateDns,{...X});if(Z.isErr())await J9("While running the migrate:dns command, there was an issue",{startTime:H,useSeconds:!0},Z.error),D0.exit();const V=D0.env.APP_URL||"undefined";await J9(`Migrated your ${V} DNS.`,{startTime:H,useSeconds:!0}),D0.exit(FH.Success)}),G.on("migrate:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),D0.exit(1)})}import YP1 from"process";import{log as WP1}from"@stacksjs/logging";import{projectPath as zP1}from"@stacksjs/path";var{$:kq}=globalThis.Bun;function Ly1(G){const J={outdated:"List all the outdated project dependencies",project:"Target a specific project",verbose:"Enable verbose output"};G.command("outdated",J.outdated).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async()=>{WP1.debug("Running `buddy outdated` ..."),kq.cwd(zP1());const X=await kq`bun outdated`.text();console.log(X)}),G.on("outdated:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),YP1.exit(1)})}import CJ from"process";import{intro as jH,italic as gq,outro as DH}from"@stacksjs/cli";import{ports as Eq}from"@stacksjs/config";import{log as J2}from"@stacksjs/logging";import{findProjectPath as Oq,path as vq,projectPath as _q}from"@stacksjs/path";import{ExitCode as IH}from"@stacksjs/types";import{findStacksProjects as UP1}from"@stacksjs/utils";var{$:fJ}=globalThis.Bun;function by1(G){const J={command:"Let buddy check your project for potential issues and misconfigurations",ports:"Check if the ports are available",project:"Target a specific project",verbose:"Enable verbose output"};G.command("ports",J.command).option("-l, --list","List the used ports",{default:!0}).option("-c, --check","Check if the ports are available",{default:!1}).option("-p, --project [name]",J.project,{default:void 0}).option("-q, --quiet","Use minimal output",{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{J2.debug("Running `buddy ports` ...",X);let H;if(!X.quiet)H=await jH("buddy ports");if(X.project){const Z=await Oq(X.project);J2.debug(`Path: ${Z}`);const V=await AH(Z,X);J2.debug(`./buddy ports --quiet response for ${_q}`,V),SJ(V,X)}else SJ(Eq,X);if(!X.quiet)await DH("Exited",{startTime:H,useSeconds:!1});CJ.exit(IH.Success)}),G.command("ports:list",J.ports).option("-p, --project [name]",J.project,{default:void 0}).option("-q, --quiet","Use minimal output",{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{J2.debug("Running `buddy ports:list` ...",X);let H;if(!X.quiet)H=await jH("buddy ports:list");if(X.project){if(!X.quiet)J2.info(`Listing ports for project: ${gq(X.project)}`);const Z=await Oq(X.project);J2.debug(`Path: ${Z}`);const V=await AH(Z,X);SJ(V,X)}else SJ(Eq,X);if(!X.quiet)await DH("Exited",{startTime:H,useSeconds:!1});CJ.exit(IH.Success)}),G.command("ports:check",J.ports).option("-p, --project [name]",J.project,{default:_q()}).option("-q, --quiet","Use minimal output",{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{J2.debug("Running `buddy ports:check` ...",X);let H;if(!X.quiet)H=await jH("buddy ports:check");const Z=await UP1(void 0,{quiet:!0});J2.debug("Running `buddy ports`"),J2.debug(`Found ${Z.length} projects`),J2.debug("Projects:",Z);const V={};for(let Q of Z)V[Q]=await AH(Q,X);if(J2.info("ProjectsPorts:",V),!X.quiet)await DH("Exited",{startTime:H,useSeconds:!1});CJ.exit(IH.Success)}),G.on("ports:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),CJ.exit(1)})}async function AH(G,J){if(!J.quiet)J2.info(`Checking ports for project: ${gq(G)}`);fJ.cwd(G),fJ.env(await import(`${G}/.env`));const X=await fJ`./buddy projects:list --quiet`.text();J2.debug("ProjectListResponse",X);const H=X.split("\n").filter((z)=>z.startsWith(" - ")).map((z)=>z.trim().substring(4));J2.debug("Projects:",H);const Z=J.project??vq.projectPath();let V=H.find((z)=>z.includes(Z));if(J2.debug(`Checking ports for project: ${V}`),V===""||!V)V=vq.projectPath();J2.debug(`\$ Running: ./buddy ports:list --quiet via ${V}`);const Q=await fJ`./buddy ports:list --quiet`.json();J2.debug(`Response for ./buddy ports:list --quiet via ${V}`,Q);let Y=Q.replace(/(\w+)(?=\s*:)/g,'"$1"');Y=Y.replace(/,(\s*\})/g,"$1");const W=JSON.parse(Y);return J2.debug(`Ports for ${V}`,W),W}function SJ(G,J){if(!J.quiet)console.log("");if(console.log(G),!J.quiet)console.log("")}import KP1 from"process";import{runAction as BP1}from"@stacksjs/actions";import{Action as $P1}from"@stacksjs/enums";import{log as RP1}from"@stacksjs/logging";function cy1(G){const J={command:"Run your prepublish script",project:"Target a specific project",verbose:"Enable verbose output"};G.command("prepublish",J.command).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{RP1.debug("Running `buddy prepublish` ...",X),await BP1($P1.Prepublish,X)}),G.on("prepublish:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),KP1.exit(1)})}import CH from"process";import{intro as bq,log as hq}from"@stacksjs/cli";import{ExitCode as yq}from"@stacksjs/types";import{findStacksProjects as mq}from"@stacksjs/utils";function sy1(G){const J={projects:"Find all Stacks projects on your system",verbose:"Enable verbose output"};G.command("projects",J.projects).option("-q, --quiet","Use minimal output",{default:!1}).option("-l, --list","List all local Stacks projects",{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{if(hq.debug("Running `buddy projects` ...",X),!X.quiet)await bq("buddy projects");const H=await mq(void 0,X);for(let Z of H)console.log(" - ",Z);CH.exit(yq.Success)}),G.command("projects:list",J.projects).option("-q, --quiet","Use minimal output",{default:!1}).option("-l, --list","List all local Stacks projects",{default:!0}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{if(hq.debug("Running `buddy projects` ...",X),!X.quiet)await bq("buddy projects:list");const H=await mq(void 0,X);for(let Z of H)console.log(" - ",Z);CH.exit(yq.Success)}),G.on("projects:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),CH.exit(1)})}import xq from"process";import{runAction as MP1}from"@stacksjs/actions";import{intro as qP1,italic as FP1,log as PJ,outro as jP1}from"@stacksjs/cli";import{Action as DP1}from"@stacksjs/enums";import{ExitCode as IP1}from"@stacksjs/types";function Jm1(G){G.command("release",LJ.release).option("--dry-run",LJ.dryRun,{default:!1}).option("-p, --project [project]",LJ.project,{default:!1}).option("--verbose",LJ.verbose,{default:!1}).action(async(J)=>{if(PJ.debug("Running `buddy release` ...",J),J.dryRun)PJ.warn("Dry run enabled. No changes will be made or committed.");const X=await qP1("buddy release"),H=await MP1(DP1.Release,{stdin:"inherit",...J});if(H.isErr())PJ.error("Failed to release",H.error),xq.exit(IP1.FatalError);await jP1("Triggered CI/CD Release via GitHub Actions",{startTime:X,useSeconds:!0}),PJ.info(`Follow along: ${FP1("https://github.com/stacksjs/stacks/actions")}`)}),G.on("release:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),xq.exit(1)})}var LJ={release:"Release a new version of your libraries/packages",project:"Target a specific project",dryRun:"Run the release without actually releasing",verbose:"Enable verbose output"};import fH from"process";import{runAction as AP1}from"@stacksjs/actions";import{intro as CP1,outro as lq}from"@stacksjs/cli";import{Action as fP1}from"@stacksjs/enums";import{ExitCode as SP1}from"@stacksjs/types";function Wm1(G){const J={route:"Lists your routes",verbose:"Enable verbose output"};G.command("route:list",J.route).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{const H=await CP1("buddy route:list"),Z=await AP1(fP1.RouteList,X);if(Z.isErr())await lq("While running the migrate command, there was an issue",{startTime:H,useSeconds:!0},Z.error),fH.exit();await lq("Successfully listed routes"),fH.exit(SP1.Success)}),G.on("route:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),fH.exit(1)})}import TJ from"process";import{runAction as PP1}from"@stacksjs/actions";import{intro as LP1,log as TP1,outro as cq}from"@stacksjs/cli";import{Action as wP1}from"@stacksjs/enums";import{ExitCode as aq}from"@stacksjs/types";function Mm1(G){const J={seed:"Seed your database",project:"Target a specific project",verbose:"Enable verbose output"};G.command("seed",J.seed).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{TP1.debug("Running `buddy seed` ...",X);const H=await LP1("buddy seed"),Z=await PP1(wP1.Seed,X);if(Z.isErr())await cq("While running the seed command, there was an issue",{startTime:H,useSeconds:!0},Z.error),TJ.exit(aq.FatalError);const V=TJ.env.APP_ENV||"local";await cq(`Seeded your ${V} database.`,{startTime:H,useSeconds:!0}),TJ.exit(aq.Success)}),G.on("seed:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),TJ.exit(1)})}import M5 from"process";import{runAction as NP1}from"@stacksjs/actions";import{log as g2,runCommand as X9}from"@stacksjs/cli";import{Action as kP1}from"@stacksjs/enums";import{handleError as J6}from"@stacksjs/error-handling";import{path as H9}from"@stacksjs/path";import{storage as EP1}from"@stacksjs/storage";import{ExitCode as q5}from"@stacksjs/types";function Pm1(G){const J={setup:"This command ensures your project is setup correctly",ohMyZsh:"Enable Oh My Zsh",aws:"Ensures AWS is connected to the project",project:"Target a specific project",verbose:"Enable verbose output"};G.command("setup",J.setup).alias("ensure").option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{if(g2.debug("Running `buddy setup` ...",X),!await OP1())await vP1();await gP1(),await _P1(X)}),G.command("setup:oh-my-zsh",J.ohMyZsh).alias("upgrade:oh-my-zsh").option("--verbose",J.verbose,{default:!1}).action(async(X)=>{g2.debug("Running `buddy setup:oh-my-zsh` ...",X);const H=await NP1(kP1.UpgradeShell);if(H.isErr())g2.error(H.error),M5.exit(q5.FatalError)}),G.on("setup:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),M5.exit(q5.FatalError)})}async function OP1(){if((await X9("pkgx --version",{silent:!0})).isOk())return!0;return!1}async function vP1(){const G=await X9(H9.frameworkPath("scripts/pkgx-install"));if(G.isOk())return;J6(G.error),M5.exit(q5.FatalError)}async function _P1(G){g2.info("Installing dependencies...");const J=await X9("bun install",{cwd:G.cwd||H9.projectPath()});if(J.isErr())J6(J.error),M5.exit(q5.FatalError);g2.success("Installed node_modules"),bP1(G);const X=await X9("buddy key:generate",{cwd:G.cwd||H9.projectPath()});if(X.isErr())J6(X.error),M5.exit(q5.FatalError);g2.info("Ensuring AWS is connected...");const H=await X9("buddy configure:aws",{cwd:G.cwd||H9.projectPath()});if(H.isErr())J6(H.error),M5.exit(q5.FatalError);g2.success("Configured AWS"),g2.success("Project is setup"),g2.info("Happy coding! \uD83D\uDC99")}async function gP1(){return new Promise((G)=>setTimeout(G,300))}async function bP1(G){if(g2.info("Ensuring .env exists..."),EP1.doesNotExist(H9.projectPath(".env"))){const J=await X9("cp .env.example .env",{cwd:G.cwd||H9.projectPath()});if(J.isErr())J6(J.error),M5.exit(q5.FatalError);g2.success(".env created")}else g2.success(".env existed")}import I0 from"process";import{runAction as g0}from"@stacksjs/actions";import{intro as X6,log as rq,outro as S2}from"@stacksjs/cli";import{Action as b0}from"@stacksjs/enums";import{projectPath as h0}from"@stacksjs/path";function Om1(G){const J={command:"Runs your test suite",types:"Typechecks your codebase",coverage:"Generates a test coverage report",ui:"Runs your test suite in the browser",unit:"Runs your unit tests",feature:"Runs your feature tests",showReport:"Show the test report",project:"Target a specific project",verbose:"Enable verbose output"};G.command("test",J.command).option("-f, --feature",J.feature,{default:!1}).option("-u, --unit",J.unit,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!0}).action(async(X)=>{const H=await X6("buddy test");if(X.feature&&X.unit){const Z=await g0(b0.Test,{...X,cwd:h0()});if(Z.isErr())await S2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit()}if(X.feature&&!X.unit){rq.info("Running Feature tests...");const Z=await g0(b0.TestFeature,{...X,cwd:h0()});if(Z.isErr())await S2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit()}if(!X.feature&&X.unit){rq.info("Running Unit tests...");const Z=await g0(b0.TestUnit,{...X,cwd:h0()});if(Z.isErr())await S2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit()}if(!X.feature&&!X.unit){const Z=await g0(b0.Test,{...X,cwd:h0()});if(Z.isErr())await S2("While running `buddy test`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit()}await S2("Finished running tests",{startTime:H,useSeconds:!0})}),G.command("test:unit",J.unit).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{const H=await X6("buddy test:unit"),Z=await g0(b0.TestUnit,{...X,verbose:!0,cwd:h0()});if(Z.isErr())await S2("While running `buddy test:unit`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit();await S2("Finished running unit tests",{startTime:H,useSeconds:!0})}),G.command("test:feature",J.feature).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{const H=await X6("buddy test:feature"),Z=await g0(b0.TestFeature,{...X,verbose:!0,cwd:h0()});if(Z.isErr())await S2("While running `buddy test:feature`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit();await S2("Finished running feature tests",{startTime:H,useSeconds:!0})}),G.command("test:ui",J.command).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{const H=await X6("buddy test:ui"),Z=await g0(b0.TestUi,{...X,verbose:!0,cwd:h0()});if(Z.isErr())await S2("While running `buddy test:ui`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit();await S2("Finished running tests in the browser",{startTime:H,useSeconds:!0})}),G.command("test:types",J.types).alias("typecheck").option("--verbose",J.verbose,{default:!1}).action(async(X)=>{const H=await X6("buddy test:types"),Z=await g0(b0.Typecheck,{...X,verbose:!0,cwd:h0()});if(Z.isErr())await S2("While running `buddy test:types`, there was an issue",{startTime:H,useSeconds:!0},Z.error),I0.exit();await S2("Finished running typecheck",{startTime:H,useSeconds:!0})}),G.on("test:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),I0.exit(1)})}import SH from"process";import{intro as hP1,log as yP1,outro as iq,runCommand as mP1}from"@stacksjs/cli";import{ExitCode as xP1}from"@stacksjs/types";function hm1(G){const J={tinker:"Tinker with your code",project:"Target a specific project",verbose:"Enable verbose output"};G.command("tinker",J.tinker).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{yP1.debug("Running `buddy tinker` ...",X);const H=await hP1("buddy tinker"),Z=await mP1("bun repl",{stdin:"inherit"});if(Z.isErr())await iq("While running the tinker command, there was an issue",{startTime:H,useSeconds:!0},Z.error||void 0),SH.exit();await iq("Tinker mode exited.",{startTime:H,useSeconds:!0}),SH.exit(xP1.Success)}),G.on("tinker:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),SH.exit(1)})}import lP1 from"process";import{generateTypes as cP1}from"@stacksjs/actions";import{log as aP1}from"@stacksjs/logging";function cm1(G){const J={generate:"Generate the types of & for your library/libraries",fix:"wip",project:"Target a specific project",verbose:"Enable verbose output"};G.command("types:generate",J.generate).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{aP1.debug("Running `buddy types:generate` ...",X),await cP1()}),G.command("types:fix",J.fix).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async()=>{}),G.on("types:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),lP1.exit(1)})}import P2 from"process";import{runAction as F5}from"@stacksjs/actions";import{intro as wJ,log as y0,outro as H6,prompts as rP1}from"@stacksjs/cli";import{Action as j5}from"@stacksjs/enums";import{ExitCode as NJ}from"@stacksjs/types";import{isString as iP1}from"@stacksjs/validation";function nm1(G){const J={command:"Upgrade dependencies, framework, package manager, JS/TS runtime",framework:"Upgrade the Stacks framework",dependencies:"Upgrade your dependencies (pkgx.yaml & package.json)",bun:"Upgrade Bun to the latest version",shell:"Upgrade the to the latest shell integration (currently only supports Oh My Zsh)",binary:"Upgrade the `stacks` binary to the latest version. Please note, the binary is moved to the `~/.stacks/bin` directory",all:"Upgrade Node, package manager, project dependencies, and framework",force:"Overwrite possible local updates with remote framework updates",select:"What are you trying to upgrade?",project:"Target a specific project",verbose:"Enable verbose output"};G.command("upgrade",J.command).option("-d, --dependencies",J.dependencies,{default:!1}).option("-b, --bun",J.bun,{default:!1}).option("-a, --all",J.all,{default:!1}).option("-f, --force",J.force,{default:!1}).option("--framework",J.framework,{default:!1}).option("-p, --project [project]",J.project,{default:!1}).option("-s, --shell",J.shell,{default:!1}).option("-b, --binary",J.binary,{default:!1}).option("--verbose",J.verbose,{default:!1}).alias("update").example("buddy upgrade -a --verbose").action(async(X)=>{y0.debug("Running `buddy upgrade` ...",X);const H=await wJ("buddy upgrade");if(uP1(X)){let Q=(await rP1({type:"multiselect",name:"value",message:J.select,choices:[{value:"dependencies",title:"Dependencies"},{value:"framework",title:"Framework"},{value:"bun",title:"Bun"},{value:"shell",title:"Shell"},{value:"binary",title:"Binary"}]})).value;if(Q!==null)P2.exit(NJ.InvalidArgument);if(iP1(Q))Q=[Q];X=Q.reduce((Y,W)=>{return Y[W]=!0,Y},{})}const Z=await F5(j5.Upgrade,X);if(Z.isErr())await H6("While running the buddy:upgrade command, there was an issue",{startTime:H,useSeconds:!0},Z.error),P2.exit();await H6("Upgrade complete.",{startTime:H,useSeconds:!0}),P2.exit()}),G.command("upgrade:framework",J.framework).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).example("buddy upgrade:framework --verbose").action(async(X)=>{y0.debug("Running `buddy upgrade:framework` ...",X),await F5(j5.Upgrade,X)}),G.command("upgrade:dependencies",J.dependencies).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).alias("upgrade:deps").example("buddy upgrade:dependencies --verbose").action(async(X)=>{y0.debug("Running `buddy upgrade:dependencies` ...",X),await F5(j5.Upgrade,X)}),G.command("upgrade:bun",J.bun).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y0.debug("Running `buddy upgrade:bun` ...",X);const H=await wJ("buddy upgrade:bun"),Z=await F5(j5.UpgradeBun,X);if(Z.isErr())await H6("While running the buddy upgrade:bun command, there was an issue",{startTime:H,useSeconds:!0},Z.error),P2.exit();P2.exit(NJ.Success)}),G.command("upgrade:all",J.all).option("-p, --project [project]",J.project,{default:!1}).option("--verbose",J.verbose,{default:!1}).action(async(X)=>{y0.debug("Running `buddy upgrade:all` ...",X),await F5(j5.Upgrade,X)}),G.command("upgrade:shell",J.shell).option("--verbose",J.verbose,{default:!1}).example("buddy upgrade:shell").action(async(X)=>{y0.debug("Running `buddy upgrade:shell` ...",X);const H=await wJ("buddy upgrade:shell"),Z=await F5(j5.UpgradeShell,X);if(Z.isErr())await H6("While running the buddy upgrade:shell command, there was an issue",{startTime:H,useSeconds:!0},Z.error),P2.exit();P2.exit(NJ.Success)}),G.command("upgrade:binary",J.binary).option("--verbose",J.verbose,{default:!1}).example("buddy upgrade:binary").action(async(X)=>{if(P2.getuid&&P2.getuid()!==0)y0.warn("To upgrade the binary, you need to run this command with sudo, or as root."),P2.exit(0);y0.debug("Running `buddy upgrade:binary` ...",X);const H=await wJ("buddy upgrade:binary"),Z=await F5(j5.UpgradeBinary,X);if(Z.isErr())await H6("While running the buddy upgrade:binary command, there was an issue",{startTime:H,useSeconds:!0},Z.error),P2.exit();P2.exit(NJ.Success)}),G.on("upgrade:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),P2.exit(1)})}function uP1(G){return!G.framework&&!G.dependencies&&!G.bun&&!G.shell&&!G.binary&&!G.all}import dP1 from"process";import{bold as uq,dim as dq,green as sq,intro as sP1,log as PH}from"@stacksjs/cli";import{storage as pP1}from"@stacksjs/storage";function Jx1(G){const J={version:"Retrieving Stacks build version"};G.command("version",J.version).action(async()=>{PH.debug("Running `buddy version` ..."),await sP1("buddy version");const X=await pP1.readPackageJson("./package.json"),H="wip",Z=X.version;PH.info(sq(uq("@stacksjs/ "))+dq(` ${Z}`)),PH.info(sq(uq("Bun: "))+dq(` ${H}`))}),G.on("version:*",()=>{console.error("Invalid command: %s\nSee --help for a list of available commands.",G.args.join(" ")),dP1.exit(1)})}export{JL1 as a,YL1 as b,RL1 as c,nT1 as d,Jw1 as e,Yw1 as f,Fw1 as g,ww1 as h,bw1 as i,KA as j,cw1 as k,ow1 as l,ZN1 as m,Nh1 as n,gh1 as o,xh1 as p,uh1 as q,eh1 as r,Zy1 as s,$y1 as t,Iy1 as u,Ly1 as v,by1 as w,cy1 as x,sy1 as y,Jm1 as z,Wm1 as A,Mm1 as B,Pm1 as C,gP1 as D,bP1 as E,Om1 as F,hm1 as G,cm1 as H,nm1 as I,Jx1 as J};
847
+
848
+ //# debugId=26F5532DE79A944564756E2164756E21
849
+ //# sourceMappingURL=chunk-mmjggjd5.js.map