code-playpad 0.10.1 → 0.12.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.
- package/README.md +222 -17
- package/dist/THIRD-PARTY-NOTICES.txt +223 -0
- package/dist/cdn.js +2 -2
- package/dist/compiler-B408qd3N.js +151 -0
- package/dist/{config-CT3H6Oum.js → config-DB58UVsk.js} +1 -1
- package/dist/{cpp-Cs32J8JC.js → cpp-Bhr_Zgfk.js} +1 -1
- package/dist/{cpp-CO2abWii.js → cpp-xLJOrOXX.js} +1 -1
- package/dist/dist-3xj9-ylK.js +6 -0
- package/dist/{dist-BIgiGgKu.js → dist-7CHy0evE.js} +1 -1
- package/dist/dist-BDifu2bQ.js +6 -0
- package/dist/dist-BwlTZqCY.js +28 -0
- package/dist/dist-C41hAfPr.js +6 -0
- package/dist/dist-CRXZcpYD.js +14 -0
- package/dist/dist-CTLX4tws.js +8 -0
- package/dist/dist-CjnVq6q1.js +10 -0
- package/dist/{dist-Vr-fb58P.js → dist-D4P7t1AU.js} +4 -4
- package/dist/dist-DHeVjdBc.js +6 -0
- package/dist/dist-IFh_mUXG.js +7 -0
- package/dist/dist-UbI3_a5S.js +6 -0
- package/dist/dist-_fde-E8H.js +6 -0
- package/dist/dist-g8djAEMH.js +6 -0
- package/dist/dist-ixcYRC9x.js +6 -0
- package/dist/editor.d.ts +3 -1
- package/dist/element-Dzhksh6_.js +596 -0
- package/dist/element.d.ts +26 -0
- package/dist/element.js +1 -1
- package/dist/hints-DpBIeoeG.js +6 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -1
- package/dist/{java-8qjVCjsN.js → java-DFiOVxDN.js} +1 -1
- package/dist/{java-DeBiVPXO.js → java-DjuG1fCk.js} +1 -1
- package/dist/{javascript-DLPaJJzf.js → javascript-BBiCDtZ3.js} +2 -2
- package/dist/{javascript-B1tVx7AD.js → javascript-CLaHCZ8o.js} +1 -1
- package/dist/languages.d.ts +1 -1
- package/dist/{pyodide-C8ImkXdD.js → pyodide-Cs-Kwccb.js} +1 -1
- package/dist/{pyodide-BOoYEfX1.js → pyodide-QurAOd7j.js} +2 -2
- package/dist/react-ALhWeEZ5.js +9 -0
- package/dist/react-DmuIc3qw.js +4 -0
- package/dist/react-runtime-19.2.8.js +240 -0
- package/dist/react-vendor.generated-DMxIoCMn.js +6 -0
- package/dist/react-version.generated-BNNJmf7J.js +6 -0
- package/dist/react.d.ts +9 -1
- package/dist/react.js +1 -1
- package/dist/rolldown-runtime-DK3Fl9T5.js +6 -0
- package/dist/runtime/config.d.ts +15 -1
- package/dist/runtime/react/boot.d.ts +9 -0
- package/dist/runtime/react/compiler.d.ts +30 -0
- package/dist/runtime/react-vendor.generated.d.ts +5 -0
- package/dist/runtime/react-version.generated.d.ts +3 -0
- package/dist/runtime/react.d.ts +2 -0
- package/dist/standalone.js +289 -17
- package/dist/styles.d.ts +0 -2
- package/dist/theme.d.ts +48 -0
- package/dist/{hints-CCMgezw9.js → types-CfcYqU2K.js} +1 -1
- package/dist/types.d.ts +23 -0
- package/dist/worker-runtime-DvpugeXD.js +9 -0
- package/dist/{worker-runtime-sUPz1J56.js → worker-runtime-tSXm-pPB.js} +1 -1
- package/package.json +23 -6
- package/dist/dist--J_vhCIU.js +0 -14
- package/dist/dist-BNvM_BAY.js +0 -6
- package/dist/dist-BkpKCrXQ.js +0 -6
- package/dist/dist-CJxiVI4a.js +0 -6
- package/dist/dist-CNOK8CHE.js +0 -6
- package/dist/dist-D25hs99E.js +0 -10
- package/dist/dist-D2igTc4m.js +0 -6
- package/dist/dist-D7jBL3Ib.js +0 -28
- package/dist/dist-DXjodKfp.js +0 -6
- package/dist/dist-DfFrsBkU.js +0 -8
- package/dist/element-CQGYVEF7.js +0 -324
- package/dist/worker-runtime-DfYet3xy.js +0 -9
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* code-playpad — MIT © 2026 Seung Hun Lee
|
|
3
|
+
* Bundles CodeMirror 6 and Lezer (MIT) © Marijn Haverbeke and others.
|
|
4
|
+
* Full third-party licences: THIRD-PARTY-NOTICES.txt in this package.
|
|
5
|
+
*/
|
|
6
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},c=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&t(e,c,{get:()=>i[c],enumerable:!(s=n(i,c))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>l(t({},`__esModule`,{value:!0}),e),f={};c(f,{Node:()=>Ut,Parser:()=>x,Position:()=>at,SourceLocation:()=>ot,TokContext:()=>Lt,Token:()=>yn,TokenType:()=>y,defaultOptions:()=>st,getLineInfo:()=>ie,isIdentifierChar:()=>h,isIdentifierStart:()=>m,isNewLine:()=>ee,keywordTypes:()=>qe,lineBreak:()=>Je,lineBreakG:()=>Ye,nonASCIIwhitespace:()=>Xe,parse:()=>Me,parseExpressionAt:()=>Ne,tokContexts:()=>C,tokTypes:()=>b,tokenizer:()=>Pe,version:()=>xn});function p(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function m(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Ue.test(String.fromCharCode(e)):t!==!1&&p(e,Ie)}function h(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&We.test(String.fromCharCode(e)):t===!1?!1:p(e,Ie)||p(e,Fe)}function g(e,t){return new y(e,{beforeExpr:!0,binop:t})}function _(e,t){return t===void 0&&(t={}),t.keyword=e,qe[e]=new y(e,t)}function ee(e){return e===10||e===13||e===8232||e===8233}function te(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(ee(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}function ne(e){return rt[e]||(rt[e]=RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`))}function re(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function ie(e,t){for(var n=1,r=0;;){var i=te(e,r,t);if(i<0)return new at(n,t-r);++n,r=i}}function ae(e){var t={};for(var n in st)t[n]=e&&tt(e,n)?e[n]:st[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!ct&&typeof console==`object`&&console.warn&&(ct=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
7
|
+
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,e&&e.allowHashBang!=null||(t.allowHashBang=t.ecmaVersion>=14),nt(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return nt(t.onComment)&&(t.onComment=oe(t,t.onComment)),t}function oe(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new ot(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}function se(e,t){return ut|(e?dt:0)|(t?ft:0)}function ce(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function le(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}function ue(e){return e.type===`Identifier`||e.type===`ParenthesizedExpression`&&ue(e.expression)}function de(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&de(e.expression)||e.type===`ParenthesizedExpression`&&de(e.expression)}function fe(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}function pe(e){var t=un[e]={binary:ne(Qt[e]+` `+tn),binaryOfStrings:ne(en[e]),nonBinary:{General_Category:ne(tn),Script:ne(ln[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}function me(e){for(var t in e)return!0;return!1}function he(e){return e===105||e===109||e===115}function v(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}function ge(e){return m(e,!0)||e===36||e===95}function _e(e){return h(e,!0)||e===36||e===95||e===8204||e===8205}function ve(e){return e>=65&&e<=90||e>=97&&e<=122}function ye(e){return e>=0&&e<=1114111}function be(e){return e===100||e===68||e===115||e===83||e===119||e===87}function xe(e){return ve(e)||e===95}function Se(e){return xe(e)||Ee(e)}function Ce(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function we(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}function Te(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}function Ee(e){return e>=48&&e<=57}function De(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Oe(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function ke(e){return e>=48&&e<=55}function Ae(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function je(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}function Me(e,t){return x.parse(e,t)}function Ne(e,t,n){return x.parseExpressionAt(e,t,n)}function Pe(e,t){return x.tokenizer(e,t)}var Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,y,Ge,Ke,qe,b,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,x,Et,Dt,Ot,kt,S,At,jt,Mt,Nt,Pt,Ft,It,Lt,C,Rt,w,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,T,mn,hn,gn,_n,vn,yn,E,bn,xn,Sn=o(()=>{for(Fe=[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],Ie=[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],Le=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,Re=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,ze={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},Be=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,Ve={5:Be,"5module":Be+` export import`,6:Be+` const class extends export import super`},He=/^in(stanceof)?$/,Ue=RegExp(`[`+Re+`]`),We=RegExp(`[`+Re+Le+`]`),y=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null},Ge={beforeExpr:!0},Ke={startsExpr:!0},qe={},b={num:new y(`num`,Ke),regexp:new y(`regexp`,Ke),string:new y(`string`,Ke),name:new y(`name`,Ke),privateId:new y(`privateId`,Ke),eof:new y(`eof`),bracketL:new y(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new y(`]`),braceL:new y(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new y(`}`),parenL:new y(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new y(`)`),comma:new y(`,`,Ge),semi:new y(`;`,Ge),colon:new y(`:`,Ge),dot:new y(`.`),question:new y(`?`,Ge),questionDot:new y(`?.`),arrow:new y(`=>`,Ge),template:new y(`template`),invalidTemplate:new y(`invalidTemplate`),ellipsis:new y(`...`,Ge),backQuote:new y("`",Ke),dollarBraceL:new y("${",{beforeExpr:!0,startsExpr:!0}),eq:new y(`=`,{beforeExpr:!0,isAssign:!0}),assign:new y(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new y(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new y(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:g(`||`,1),logicalAND:g(`&&`,2),bitwiseOR:g(`|`,3),bitwiseXOR:g(`^`,4),bitwiseAND:g(`&`,5),equality:g(`==/!=/===/!==`,6),relational:g(`</>/<=/>=`,7),bitShift:g(`<</>>/>>>`,8),plusMin:new y(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:g(`%`,10),star:g(`*`,10),slash:g(`/`,10),starstar:new y(`**`,{beforeExpr:!0}),coalesce:g(`??`,1),_break:_(`break`),_case:_(`case`,Ge),_catch:_(`catch`),_continue:_(`continue`),_debugger:_(`debugger`),_default:_(`default`,Ge),_do:_(`do`,{isLoop:!0,beforeExpr:!0}),_else:_(`else`,Ge),_finally:_(`finally`),_for:_(`for`,{isLoop:!0}),_function:_(`function`,Ke),_if:_(`if`),_return:_(`return`,Ge),_switch:_(`switch`),_throw:_(`throw`,Ge),_try:_(`try`),_var:_(`var`),_const:_(`const`),_while:_(`while`,{isLoop:!0}),_with:_(`with`),_new:_(`new`,{beforeExpr:!0,startsExpr:!0}),_this:_(`this`,Ke),_super:_(`super`,Ke),_class:_(`class`,Ke),_extends:_(`extends`,Ge),_export:_(`export`),_import:_(`import`,Ke),_null:_(`null`,Ke),_true:_(`true`,Ke),_false:_(`false`,Ke),_in:_(`in`,{beforeExpr:!0,binop:7}),_instanceof:_(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:_(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:_(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:_(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},Je=/\r\n?|\n|\u2028|\u2029/,Ye=new RegExp(Je.source,`g`),Xe=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ze=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Qe=Object.prototype,$e=Qe.hasOwnProperty,et=Qe.toString,tt=Object.hasOwn||(function(e,t){return $e.call(e,t)}),nt=Array.isArray||(function(e){return et.call(e)===`[object Array]`}),rt=Object.create(null),it=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,at=function(e,t){this.line=e,this.column=t},at.prototype.offset=function(e){return new at(this.line,this.column+e)},ot=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)},st={ecmaVersion:null,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ct=!1,lt=1,ut=2,dt=4,ft=8,pt=16,mt=32,ht=64,gt=128,_t=256,vt=512,yt=lt|ut|_t,bt=0,xt=1,St=2,Ct=3,wt=4,Tt=5,x=function(e,t,n){this.options=e=ae(e),this.sourceFile=e.sourceFile,this.keywords=ne(Ve[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=ze[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=ne(r);var i=(r?r+` `:``)+ze.strict;this.reservedWordsStrict=ne(i),this.reservedWordsStrictBind=ne(i+` `+ze.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
|
|
8
|
+
`,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Je).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(lt),this.regexpState=null,this.privateNameStack=[]},Et={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}},x.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Et.inFunction.get=function(){return(this.currentVarScope().flags&ut)>0},Et.inGenerator.get=function(){return(this.currentVarScope().flags&ft)>0},Et.inAsync.get=function(){return(this.currentVarScope().flags&dt)>0},Et.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(_t|vt))return!1;if(t&ut)return(t&dt)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Et.allowSuper.get=function(){return(this.currentThisScope().flags&ht)>0||this.options.allowSuperOutsideMethod},Et.allowDirectSuper.get=function(){return(this.currentThisScope().flags>)>0},Et.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Et.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(_t|vt)||t&ut&&!(t&pt))return!0}return!1},Et.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&_t)>0},x.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},x.parse=function(e,t){return new this(t,e).parse()},x.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},x.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(x.prototype,Et),Dt=x.prototype,Ot=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/,Dt.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Ze.lastIndex=e,e+=Ze.exec(this.input)[0].length;var t=Ot.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){Ze.lastIndex=e+t[0].length;var n=Ze.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||Je.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,Ze.lastIndex=e,e+=Ze.exec(this.input)[0].length,this.input[e]===`;`&&e++}},Dt.eat=function(e){return this.type===e&&(this.next(),!0)},Dt.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},Dt.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},Dt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Dt.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||Je.test(this.input.slice(this.lastTokEnd,this.start))},Dt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Dt.semicolon=function(){!this.eat(b.semi)&&!this.insertSemicolon()&&this.unexpected()},Dt.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Dt.expect=function(e){this.eat(e)||this.unexpected()},Dt.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)},kt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1},Dt.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},Dt.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},Dt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},Dt.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`},S=x.prototype,S.parseTopLevel=function(e){var t=Object.create(null);for(e.body||=[];this.type!==b.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)},At={kind:`loop`},jt={kind:`switch`},S.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;Ze.lastIndex=this.pos;var t=Ze.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(m(r,!0)){for(var i=n+1;h(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!He.test(a))return!0}return!1},S.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;Ze.lastIndex=this.pos;var e=Ze.exec(this.input),t=this.pos+e[0].length,n;return!Je.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(h(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))},S.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?`await`:`using`))return!1;Ze.lastIndex=this.pos;var n=Ze.exec(this.input),r=this.pos+n[0].length;if(Je.test(this.input.slice(this.pos,r)))return!1;if(e){var i=r+5,a;if(this.input.slice(r,i)!==`using`||i===this.input.length||h(a=this.input.charCodeAt(i))||a>55295&&a<56320)return!1;Ze.lastIndex=i;var o=Ze.exec(this.input);if(o&&Je.test(this.input.slice(i,i+o[0].length)))return!1}if(t){var s=r+2,c;if(this.input.slice(r,s)===`of`&&(s===this.input.length||!h(c=this.input.charCodeAt(s))&&!(c>55295&&c<56320)))return!1}var l=this.input.charCodeAt(r);return m(l,!0)||l===92},S.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},S.isUsing=function(e){return this.isUsingKeyword(!1,e)},S.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=b._var,a=`let`),r){case b._break:case b._continue:return this.parseBreakContinueStatement(i,r.keyword);case b._debugger:return this.parseDebuggerStatement(i);case b._do:return this.parseDoStatement(i);case b._for:return this.parseForStatement(i);case b._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(i,!0);case b._if:return this.parseIfStatement(i);case b._return:return this.parseReturnStatement(i);case b._switch:return this.parseSwitchStatement(i);case b._throw:return this.parseThrowStatement(i);case b._try:return this.parseTryStatement(i);case b._const:case b._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case b._while:return this.parseWhileStatement(i);case b._with:return this.parseWithStatement(i);case b.braceL:return this.parseBlock(!0,i);case b.semi:return this.parseEmptyStatement(i);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){Ze.lastIndex=this.pos;var o=Ze.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===b._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.isAwaitUsing(!1)?`await using`:this.isUsing(!1)?`using`:null;if(l)return t&&this.options.sourceType===`script`&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),l===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.next(),this.parseVar(i,!1,l),this.semicolon(),this.finishNode(i,`VariableDeclaration`);var u=this.value,d=this.parseExpression();return r===b.name&&d.type===`Identifier`&&this.eat(b.colon)?this.parseLabeledStatement(i,u,d,e):this.parseExpressionStatement(i,d)}},S.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type===b.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},S.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},S.parseDoStatement=function(e){return this.next(),this.labels.push(At),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},S.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(At),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===b._var||this.type===b._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),this.parseForAfterInit(e,r,t)}var a=this.isContextual(`let`),o=!1,s=this.isUsing(!0)?`using`:this.isAwaitUsing(!0)?`await using`:null;if(s){var c=this.startNode();return this.next(),s===`await using`&&this.next(),this.parseVar(c,!0,s),this.finishNode(c,`VariableDeclaration`),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new kt,d=this.start,f=t>-1?this.parseExprSubscripts(u,`await`):this.parseExpression(!0,u);return this.type===b._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(t>-1?(this.type===b._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===d&&!l&&f.type===`Identifier`&&f.name===`async`?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&o&&this.raise(f.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(f,!1,u),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))},S.parseForAfterInit=function(e,t,n){return(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===b._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},S.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Nt|(n?0:Pt),!1,t)},S.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(b._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},S.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,`'return' outside of function`),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},S.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(jt),this.enterScope(0);for(var t,n=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var r=this.type===b._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},S.parseThrowStatement=function(e){return this.next(),Je.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)},Mt=[],S.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type===`Identifier`;return this.enterScope(t?mt:0),this.checkLValPattern(e,t?wt:St),this.expect(b.parenR),e},S.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();this.next(),this.eat(b.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},S.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},S.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(At),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},S.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},S.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},S.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===b._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},S.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},S.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},S.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},S.parseForIn=function(e,t){var n=this.type===b._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},S.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(b.eq)?i.init=this.parseMaybeAssign(t):!r&&n===`const`&&!(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():!r&&(n===`using`||n===`await using`)&&this.options.ecmaVersion>=17&&this.type!==b._in&&!this.isContextual(`of`)?this.raise(this.lastTokEnd,`Missing initializer in `+n+` declaration`):!r&&i.id.type!==`Identifier`&&(!t||this.type!==b._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):i.init=null,e.declarations.push(this.finishNode(i,`VariableDeclarator`)),!this.eat(b.comma))break}return e},S.parseVarId=function(e,t){e.id=t===`using`||t===`await using`?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?xt:St,!1)},Nt=1,Pt=2,Ft=4,S.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&Pt&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Nt&&(e.id=t&Ft&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&Pt)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?xt:St:Ct));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(se(e.async,e.generator)),t&Nt||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&Nt?`FunctionDeclaration`:`FunctionExpression`)},S.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},S.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(b.braceL);this.type!==b.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raiseRecoverable(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&ce(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},S.parseClassElement=function(e){if(this.eat(b.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===b.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===b.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(b.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===b.parenL||o!==`method`||i||a){var l=!n.static&&le(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},S.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},S.parseClassElementName=function(e){this.type===b.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},S.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&le(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},S.parseClassField=function(e){return le(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&le(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(b.eq)?(this.enterScope(vt|ht),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,`PropertyDefinition`)},S.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(_t|ht);this.type!==b.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},S.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,St,!1)):(t===!0&&this.unexpected(),e.id=null)},S.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},S.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},S.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];tt(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}},S.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`)},S.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.parseExportAllDeclaration(e,t);if(this.eat(b._default))return this.checkExport(t,`default`,this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,`ExportDefaultDeclaration`);if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type===`Literal`&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},S.parseExportDeclaration=function(e){return this.parseStatement(null)},S.parseExportDefaultDeclaration=function(){var e;if(this.type===b._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Nt|Ft,!1,e)}if(this.type===b._class){var n=this.startNode();return this.parseClass(n,`nullableID`)}var r=this.parseMaybeAssign();return this.semicolon(),r},S.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),tt(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},S.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`&&this.checkPatternExport(e,t.argument)},S.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},S.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},S.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual(`as`)?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,`ExportSpecifier`)},S.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;t.push(this.parseExportSpecifier(e))}return t},S.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=Mt,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},S.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual(`as`)?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,St),this.finishNode(e,`ImportSpecifier`)},S.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,St),this.finishNode(e,`ImportDefaultSpecifier`)},S.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual(`as`),e.local=this.parseIdent(),this.checkLValSimple(e.local,St),this.finishNode(e,`ImportNamespaceSpecifier`)},S.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(b.comma)))return e;if(this.type===b.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;e.push(this.parseImportSpecifier())}return e},S.parseWithClause=function(){var e=[];if(!this.eat(b._with))return e;this.expect(b.braceL);for(var t={},n=!0;!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.parseImportAttribute(),i=r.key.type===`Identifier`?r.key.name:r.key.value;tt(t,i)&&this.raiseRecoverable(r.key.start,`Duplicate attribute key '`+i+`'`),t[i]=!0,e.push(r)}return e},S.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`),this.expect(b.colon),this.type!==b.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,`ImportAttribute`)},S.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===b.string){var e=this.parseLiteral(this.value);return it.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},S.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},S.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)},It=x.prototype,It.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},It.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},It.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},It.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},It.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case b.braceL:return this.parseObj(!0)}return this.parseIdent()},It.parseBindingList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(b.comma),t&&this.type===b.comma)i.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===b.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===b.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}i.push(this.parseAssignableListItem(r))}return i},It.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},It.parseBindingListItem=function(e){return e},It.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},It.checkLValSimple=function(e,t,n){t===void 0&&(t=bt);var r=t!==bt;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===St&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(tt(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==Tt&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},It.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=bt),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},It.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=bt),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}},Lt=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},C={b_stat:new Lt(`{`,!1),b_expr:new Lt(`{`,!0),b_tmpl:new Lt("${",!1),p_stat:new Lt(`(`,!1),p_expr:new Lt(`(`,!0),q_tmpl:new Lt("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Lt(`function`,!1),f_expr:new Lt(`function`,!0),f_expr_gen:new Lt(`function`,!0,!1,null,!0),f_gen:new Lt(`function`,!1,!1,null,!0)},Rt=x.prototype,Rt.initialContext=function(){return[C.b_stat]},Rt.curContext=function(){return this.context[this.context.length-1]},Rt.braceIsBlock=function(e){var t=this.curContext();return t===C.f_expr||t===C.f_stat?!0:e===b.colon&&(t===C.b_stat||t===C.b_expr)?!t.isExpr:e===b._return||e===b.name&&this.exprAllowed?Je.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow?!0:e===b.braceL?t===C.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed},Rt.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},Rt.updateContext=function(e){var t,n=this.type;n.keyword&&e===b.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Rt.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},b.parenR.updateContext=b.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===C.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?C.b_stat:C.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(C.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?C.p_stat:C.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){e.beforeExpr&&e!==b._else&&(e!==b.semi||this.curContext()===C.p_stat)&&!(e===b._return&&Je.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==b.colon&&e!==b.braceL||this.curContext()!==C.b_stat)?this.context.push(C.f_expr):this.context.push(C.f_stat),this.exprAllowed=!1},b.colon.updateContext=function(){this.curContext().token===`function`&&this.context.pop(),this.exprAllowed=!0},b.backQuote.updateContext=function(){this.curContext()===C.q_tmpl?this.context.pop():this.context.push(C.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===C.f_expr?this.context[t]=C.f_expr_gen:this.context[t]=C.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t},w=x.prototype,w.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);return}i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}},w.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===b.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(b.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},w.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new kt,r=!0);var s=this.start,c=this.startLoc;(this.type===b.parenL||this.type===b.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===b.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===b.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},w.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(b.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(b.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},w.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},w.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==b._in)&&a>r){var o=this.type===b.logicalOR||this.type===b.logicalAND,s=this.type===b.coalesce;s&&(a=b.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===b.coalesce||s&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},w.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},w.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===b.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&ue(s.argument)?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&de(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===b.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==b._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(b.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o},w.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},w.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},w.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(b.arrow)},w.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},w.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(b.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(b.bracketL);if(l||c&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(b.bracketR)):u.property=this.type===b.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(b.parenL)){var d=new kt,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,h,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===b.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},w.parseExprAtom=function(e,t,n){this.type===b.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),r=this.startNode(),this.next(),this.type===b.parenL&&!this.allowDirectSuper&&this.raise(r.start,`super() call outside constructor of a subclass`),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(r,`Super`);case b._this:return r=this.startNode(),this.next(),this.finishNode(r,`ThisExpression`);case b.name:var a=this.start,o=this.startLoc,s=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&c.name===`async`&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(C.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name===`async`&&this.type===b.name&&!s&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(b.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case b.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return r=this.startNode(),r.value=this.type===b._null?null:this.type===b._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,`Literal`);case b.parenL:var u=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),d;case b.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(r,`ArrayExpression`);case b.braceL:return this.overrideContext(C.b_expr),this.parseObj(!1,e);case b._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},w.parseExprAtomDefault=function(){this.unexpected()},w.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`),this.next(),this.type===b.parenL&&!e)return this.parseDynamicImport(t);if(this.type===b.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name=`import`,t.meta=this.finishNode(n,`Identifier`),this.parseImportMeta(t)}this.unexpected()},w.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(b.parenR)?e.options=null:(this.expect(b.comma),this.afterTrailingComma(b.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(b.parenR)||(this.expect(b.comma),this.afterTrailingComma(b.parenR)||this.unexpected())));else if(!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},w.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},w.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value==null?t.raw.slice(0,-1).replace(/_/g,``):t.value.toString()),this.next(),this.finishNode(t,`Literal`)},w.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},w.shouldParseArrow=function(e){return!this.canInsertSemicolon()},w.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new kt,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;)if(l?l=!1:this.expect(b.comma),a&&this.afterTrailingComma(b.parenR,!0)){u=!0;break}else if(this.type===b.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`);break}else c.push(this.parseMaybeAssign(!1,d,this.parseParenItem));var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(b.parenR),e&&this.shouldParseArrow(c)&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},w.parseParenItem=function(e){return e},w.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)},zt=[],w.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===b.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name=`new`,e.meta=this.finishNode(t,`Identifier`),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),e.arguments=this.eat(b.parenL)?this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):zt,this.finishNode(e,`NewExpression`)},w.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
9
|
+
`),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
10
|
+
`),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,`TemplateElement`)},w.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},w.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!Je.test(this.input.slice(this.lastTokEnd,this.start))},w.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},w.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},w.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind===`get`?0:1;if(e.value.params.length!==n){var r=e.value.start;e.kind===`get`?this.raiseRecoverable(r,`getter should have no params`):this.raiseRecoverable(r,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)},w.parsePropertyValue=function(e,t,n,r,i,a,o,s){(n||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`):this.options.ecmaVersion>=6&&this.type===b.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind=`init`):!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===b.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind=`init`,e.shorthand=!0):this.unexpected()},w.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},w.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},w.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(se(t,r.generator)|ht|(n?gt:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},w.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(se(n,!1)|pt),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},w.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==b.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Tt),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},w.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},w.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,xt,t?null:n)}},w.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===b.comma?o=null:this.type===b.ellipsis?(o=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},w.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),!(this.currentThisScope().flags&yt)&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},w.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},w.parseIdentNode=function(){var e=this.startNode();return this.type===b.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,e.name!==`class`&&e.name!==`function`||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop(),this.type=b.name):this.unexpected(),e},w.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},w.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},w.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)},Bt=x.prototype,Bt.raise=function(e,t){var n=ie(this.input,e);t+=` (`+n.line+`:`+n.column+`)`,this.sourceFile&&(t+=` in `+this.sourceFile);var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},Bt.raiseRecoverable=Bt.raise,Bt.curPosition=function(){if(this.options.locations)return new at(this.curLine,this.pos-this.lineStart)},Vt=x.prototype,Ht=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]},Vt.enterScope=function(e){this.scopeStack.push(new Ht(e))},Vt.exitScope=function(){this.scopeStack.pop()},Vt.treatFunctionsAsVarInScope=function(e){return e.flags&ut||!this.inModule&&e.flags<},Vt.declareName=function(e,t,n){var r=!1;if(t===St){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags<&&delete this.undefinedExports[e]}else if(t===wt)this.currentScope().lexical.push(e);else if(t===Ct){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&mt&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags<&&delete this.undefinedExports[e],s.flags&yt)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},Vt.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Vt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Vt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(yt|vt|_t))return t}},Vt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(yt|vt|_t)&&!(t.flags&pt))return t}},Ut=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new ot(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Wt=x.prototype,Wt.startNode=function(){return new Ut(this,this.start,this.startLoc)},Wt.startNodeAt=function(e,t){return new Ut(this,e,t)},Wt.finishNode=function(e,t){return fe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Wt.finishNodeAt=function(e,t,n,r){return fe.call(this,e,t,n,r)},Wt.copyNode=function(e){var t=new Ut(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t},Gt=`Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz`,Kt=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,qt=Kt+` Extended_Pictographic`,Jt=qt,Yt=Jt+` EBase EComp EMod EPres ExtPict`,Xt=Yt,Zt=Xt,Qt={9:Kt,10:qt,11:Jt,12:Yt,13:Xt,14:Zt},$t=`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji`,en={9:``,10:``,11:``,12:``,13:``,14:$t},tn=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,nn=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,rn=nn+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,an=rn+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,on=an+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,sn=on+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,cn=sn+` `+Gt,ln={9:nn,10:rn,11:an,12:on,13:sn,14:cn},un={},fn=0,pn=[9,10,11,12,13,14];fn<pn.length;fn+=1)dn=pn[fn],pe(dn);T=x.prototype,mn=function(e,t){this.parent=e,this.base=t||this},mn.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},mn.prototype.sibling=function(){return new mn(this.parent,this.base)},hn=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``)+(e.options.ecmaVersion>=15?`v`:``),this.unicodeProperties=un[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null},hn.prototype.reset=function(e,t,n){var r=n.indexOf(`v`)!==-1,i=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},hn.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},hn.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},hn.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},hn.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},hn.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},hn.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},hn.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},hn.prototype.eatChars=function(e,t){t===void 0&&(t=!1);for(var n=this.pos,r=0,i=e;r<i.length;r+=1){var a=i[r],o=this.at(n,t);if(o===-1||o!==a)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},T.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,a=0;a<n.length;a++){var o=n.charAt(a);t.indexOf(o)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(o,a+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`),o===`u`&&(r=!0),o===`v`&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,`Invalid regular expression flag`)},T.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&me(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},T.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise(`Invalid named capture referenced`)}},T.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new mn(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},T.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},T.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},T.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},T.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},T.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},T.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},T.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},T.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},T.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var a=n.charAt(i);n.indexOf(a,i+1)>-1&&e.raise(`Duplicate regular expression modifiers`)}if(r){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise(`Invalid regular expression modifiers`);for(var s=0;s<o.length;s++){var c=o.charAt(s);(o.indexOf(c,s+1)>-1||n.indexOf(c)>-1)&&e.raise(`Duplicate regular expression modifiers`)}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}}e.pos=t}return!1},T.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},T.regexp_eatModifiers=function(e){for(var t=``,n=0;(n=e.current())!==-1&&he(n);)t+=re(n),e.advance();return t},T.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},T.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},T.regexp_eatSyntaxCharacter=function(e){var t=e.current();return v(t)?(e.lastIntValue=t,e.advance(),!0):!1},T.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!v(n);)e.advance();return e.pos!==t},T.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},T.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise(`Invalid group`);var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n){if(t)for(var r=0,i=n;r<i.length;r+=1)i[r].separatedFrom(e.branchID)||e.raise(`Duplicate capture group name`);else e.raise(`Duplicate capture group name`)}t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},T.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},T.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=re(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=re(e.lastIntValue);return!0}return!1},T.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),ge(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},T.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),_e(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},T.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},T.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},T.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},T.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},T.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},T.regexp_eatZero=function(e){return e.current()===48&&!Ee(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},T.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},T.regexp_eatControlLetter=function(e){var t=e.current();return ve(t)?(e.lastIntValue=t%32,e.advance(),!0):!1},T.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ye(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1},T.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},T.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},gn=0,_n=1,vn=2,T.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(be(t))return e.lastIntValue=-1,e.advance(),_n;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===vn&&e.raise(`Invalid property name`),r;e.raise(`Invalid property name`)}return gn},T.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),_n}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return gn},T.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){tt(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},T.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return _n;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return vn;e.raise(`Invalid property name`)},T.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;xe(t=e.current());)e.lastStringValue+=re(t),e.advance();return e.lastStringValue!==``},T.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;Se(t=e.current());)e.lastStringValue+=re(t),e.advance();return e.lastStringValue!==``},T.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},T.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise(`Unterminated character class`),t&&n===vn&&e.raise(`Negated character class may contain strings`),!0}return!1},T.regexp_classContents=function(e){return e.current()===93?_n:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),_n)},T.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},T.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||ke(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},T.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},T.regexp_classSetExpression=function(e){var t=_n,n;if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e)){n===vn&&(t=vn);for(var r=e.pos;e.eatChars([38,38]);)e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))?n!==vn&&(t=_n):e.raise(`Invalid character in character class`);if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise(`Invalid character in character class`);if(r!==e.pos)return t}else e.raise(`Invalid character in character class`)}for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===vn&&(t=vn)}},T.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return n!==-1&&r!==-1&&n>r&&e.raise(`Range out of order in character class`),!0}e.pos=t}return!1},T.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?_n:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},T.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&r===vn&&e.raise(`Negated character class may contain strings`),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},T.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise(`Invalid escape`);e.pos=t}return null},T.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===vn&&(t=vn);return t},T.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?_n:vn},T.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&Ce(n)||we(n)?!1:(e.advance(),e.lastIntValue=n,!0)},T.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Te(t)?(e.lastIntValue=t,e.advance(),!0):!1},T.regexp_eatClassControlLetter=function(e){var t=e.current();return Ee(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},T.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},T.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ee(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},T.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;De(n=e.current());)e.lastIntValue=16*e.lastIntValue+Oe(n),e.advance();return e.pos!==t},T.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},T.regexp_eatOctalDigit=function(e){var t=e.current();return ke(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},T.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!De(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Oe(i),e.advance()}return!0},yn=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new ot(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},E=x.prototype,E.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new yn(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},E.getToken=function(){return this.next(),new yn(this)},typeof Symbol<`u`&&(E[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),E.nextToken=function(){var e=this.curContext();if(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},E.readToken=function(e){return m(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},E.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},E.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=te(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},E.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ee(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},E.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Xe.test(String.fromCharCode(e)))++this.pos;else break e}}},E.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},E.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},E.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},E.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,n+1):this.finishOp(r,n)},E.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(e===124?b.logicalOR:b.logicalAND,2):t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)},E.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},E.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Je.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},E.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(b.relational,n))},E.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)},E.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},E.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),m(t,!0)||t===92))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+re(t)+`'`)},E.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+re(e)+`'`)},E.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},E.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(Je.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new hn(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(b.regexp,{pattern:i,flags:o,value:c})},E.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o},E.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=je(this.input.slice(t,this.pos)),++this.pos):m(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},E.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=je(this.input.slice(t,this.pos));return++this.pos,m(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),r!==69&&r!==101||n||(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),m(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=Ae(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},E.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},E.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ee(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)},bn={},E.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===bn)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},E.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw bn;this.raise(e,t)},E.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===b.template||this.type===b.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ee(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
11
|
+
`;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},E.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(b.invalidTemplate,this.input.slice(this.start,this.pos));case`\r`:this.input[this.pos+1]===`
|
|
12
|
+
`&&++this.pos;case`
|
|
13
|
+
`:case`\u2028`:case`\u2029`:++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,`Unterminated template`)},E.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
14
|
+
`;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return re(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return ee(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},E.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},E.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(h(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?m:h)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=re(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},E.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=qe[e]),this.finishToken(t,e)},xn=`8.15.0`,x.acorn={Parser:x,version:xn,defaultOptions:st,Position:at,SourceLocation:ot,getLineInfo:ie,Node:Ut,TokenType:y,tokTypes:b,keywordTypes:qe,TokContext:Lt,tokContexts:C,isIdentifierChar:h,isIdentifierStart:m,Token:yn,isNewLine:ee,lineBreak:Je,lineBreakG:Ye,nonASCIIwhitespace:Xe}}),Cn=s((e,t)=>{t.exports={quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`}}),wn=s((e,t)=>{var n=Cn(),r=/^[\da-fA-F]+$/,i=/^\d+$/,a=/* @__PURE__ */ new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,o=new r(`<tag`,!1),s=new r(`</tag`,!1),c=new r(`<tag>...</tag>`,!0,!0),l={tc_oTag:o,tc_cTag:s,tc_expr:c},u={jsxName:new i(`jsxName`),jsxText:new i(`jsxText`,{beforeExpr:!0}),jsxTagStart:new i(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:new i(`jsxTagEnd`)};u.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:l,tokTypes:u},a.set(e,t)}return t}function s(e){if(!e)return e;if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return s(e.object)+`.`+s(e.property)}t.exports=function(e){return e||={},function(t){return c({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return o((Sn(),d(f))).tokTypes},configurable:!0,enumerable:!0});function c(e,t){let a=t.acorn||(Sn(),d(f)),c=o(a),l=a.tokTypes,u=c.tokTypes,p=a.tokContexts,m=c.tokContexts.tc_oTag,h=c.tokContexts.tc_cTag,g=c.tokContexts.tc_expr,_=a.isNewLine,ee=a.isIdentifierStart,te=a.isIdentifierChar;return class extends t{static get acornJsx(){return c}jsx_readToken(){let e=``,t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated JSX contents`);let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?n===60&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(n===62?`>`:`}`)+'` or `{"'+this.input[this.pos]+'"}`?');default:_(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t=this.input.charCodeAt(this.pos),n;return++this.pos,t===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,n=e?`
|
|
15
|
+
`:`\r
|
|
16
|
+
`):n=String.fromCharCode(t),this.options.locations&&(++this.curLine,this.lineStart=this.pos),n}jsx_readString(e){let t=``,n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);let r=this.input.charCodeAt(this.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):_(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e=``,t=0,a,o=this.input[this.pos];o!==`&`&&this.raise(this.pos,`Entity must start with an ampersand`);let s=++this.pos;for(;this.pos<this.input.length&&t++<10;){if(o=this.input[this.pos++],o===`;`){e[0]===`#`?e[1]===`x`?(e=e.substr(2),r.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),i.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=n[e];break}e+=o}return a||(this.pos=s,`&`)}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(te(e)||e===45);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(l.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,`JSXNamespacedName`)}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return``;let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type===l.dot&&r.type===`JSXNamespacedName`&&!e.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,`JSXMemberExpression`)}return r}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let e=this.jsx_parseExpressionContainer();return e.expression.type===`JSXEmptyExpression`&&this.raise(e.start,`JSX attributes must only be assigned a non-empty expression`),e;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,`JSX value should be either an expression or a quoted JSX text`)}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,`JSXExpressionContainer`)}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==l.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXOpeningElement`:`JSXOpeningFragment`)}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXClosingElement`:`JSXClosingFragment`)}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),a=null;if(!i.selfClosing){e:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break e}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case l.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(a.name)!==s(i.name)&&this.raise(a.start,`Expected corresponding JSX closing tag for <`+s(i.name)+`>`)}let o=i.name?`Element`:`Fragment`;return n[`opening`+o]=i,n[`closing`+o]=a,n.children=r,this.type===l.relational&&this.value===`<`&&this.raise(this.start,`Adjacent JSX elements must be wrapped in an enclosing tag`),this.finishNode(n,`JSX`+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type=`JSXText`,e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===g)return this.jsx_readToken();if(t===m||t===h){if(ee(e))return this.jsx_readWord();if(e==62)return++this.pos,this.finishToken(u.jsxTagEnd);if((e===34||e===39)&&t==m)return this.jsx_readString(e)}return e===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==m?this.context.push(p.b_expr):t==g?this.context.push(p.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else if(this.type===l.slash&&e===u.jsxTagStart)this.context.length-=2,this.context.push(h),this.exprAllowed=!1;else return super.updateContext(e)}}}}),Tn=s((e,t)=>{(function(n,r){typeof e==`object`&&typeof t<`u`?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.resolveURI=r())})(e,(function(){let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function r(t){return e.test(t)}function i(e){return e.startsWith(`//`)}function a(e){return e.startsWith(`/`)}function o(e){return e.startsWith(`file:`)}function s(e){return/^[.?#]/.test(e)}function c(e){let n=t.exec(e);return u(n[1],n[2]||``,n[3],n[4]||``,n[5]||`/`,n[6]||``,n[7]||``)}function l(e){let t=n.exec(e),r=t[2];return u(`file:`,``,t[1]||``,``,a(r)?r:`/`+r,t[3]||``,t[4]||``)}function u(e,t,n,r,i,a,o){return{scheme:e,user:t,host:n,port:r,path:i,query:a,hash:o,type:7}}function d(e){if(i(e)){let t=c(`http:`+e);return t.scheme=``,t.type=6,t}if(a(e)){let t=c(`http://foo.com`+e);return t.scheme=``,t.host=``,t.type=5,t}if(o(e))return l(e);if(r(e))return c(e);let t=c(`http://foo.com/`+e);return t.scheme=``,t.host=``,t.type=e?e.startsWith(`?`)?3:e.startsWith(`#`)?2:4:1,t}function f(e){if(e.endsWith(`/..`))return e;let t=e.lastIndexOf(`/`);return e.slice(0,t+1)}function p(e,t){m(t,t.type),e.path=e.path===`/`?t.path:f(t.path)+e.path}function m(e,t){let n=t<=4,r=e.path.split(`/`),i=1,a=0,o=!1;for(let e=1;e<r.length;e++){let t=r[e];if(!t)o=!0;else if(o=!1,t!==`.`){if(t===`..`){a?(o=!0,a--,i--):n&&(r[i++]=t);continue}r[i++]=t,a++}}let s=``;for(let e=1;e<i;e++)s+=`/`+r[e];(!s||o&&!s.endsWith(`/..`))&&(s+=`/`),e.path=s}function h(e,t){if(!e&&!t)return``;let n=d(e),r=n.type;if(t&&r!==7){let e=d(t),i=e.type;switch(r){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:p(n,e);case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}i>r&&(r=i)}m(n,r);let i=n.query+n.hash;switch(r){case 2:case 3:return i;case 4:{let r=n.path.slice(1);return r?s(t||e)&&!s(r)?`./`+r+i:r+i:i||`.`}case 5:return n.path+i;default:return n.scheme+`//`+n.user+n.host+n.port+n.path+i}}return h}))}),En=s(e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.DetailContext=e.NoopContext=e.VError=void 0;var n=(function(e){t(n,e);function n(t,r){var i=e.call(this,r)||this;return i.path=t,Object.setPrototypeOf(i,n.prototype),i}return n})(Error);e.VError=n,e.NoopContext=(function(){function e(){}return e.prototype.fail=function(e,t,n){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(e){},e})();var r=(function(){function e(){this._propNames=[``],this._messages=[null],this._score=0}return e.prototype.fail=function(e,t,n){return this._propNames.push(e),this._messages.push(t),this._score+=n,!1},e.prototype.unionResolver=function(){return new i},e.prototype.resolveUnion=function(e){for(var t,n,r=e,i=null,a=0,o=r.contexts;a<o.length;a++){var s=o[a];(!i||s._score>=i._score)&&(i=s)}i&&i._score>0&&((t=this._propNames).push.apply(t,i._propNames),(n=this._messages).push.apply(n,i._messages))},e.prototype.getError=function(e){for(var t=[],r=this._propNames.length-1;r>=0;r--){var i=this._propNames[r];e+=typeof i==`number`?`[`+i+`]`:i?`.`+i:``;var a=this._messages[r];a&&t.push(e+` `+a)}return new n(e,t.join(`; `))},e.prototype.getErrorDetail=function(e){for(var t=[],n=this._propNames.length-1;n>=0;n--){var r=this._propNames[n];e+=typeof r==`number`?`[`+r+`]`:r?`.`+r:``;var i=this._messages[n];i&&t.push({path:e,message:i})}for(var a=null,n=t.length-1;n>=0;n--)a&&(t[n].nested=[a]),a=t[n];return a},e})();e.DetailContext=r;var i=(function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var e=new r;return this.contexts.push(e),e},e})()}),Dn=s(e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var n=En(),r=(function(){function e(){}return e})();e.TType=r;function i(e){return typeof e==`string`?o(e):e}function a(e,t){var n=e[t];if(!n)throw Error(`Unknown type `+t);return n}function o(e){return new s(e)}e.name=o;var s=(function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.name=t,n._failMsg=`is not a `+t,n}return n.prototype.getChecker=function(e,t,r){var i=this,o=a(e,this.name),s=o.getChecker(e,t,r);return o instanceof v||o instanceof n?s:function(e,t){return s(e,t)?!0:t.fail(null,i._failMsg,0)}},n})(r);e.TName=s;function c(e){return new l(e)}e.lit=c;var l=(function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.value=t,n.name=JSON.stringify(t),n._failMsg=`is not `+n.name,n}return n.prototype.getChecker=function(e,t){var n=this;return function(e,t){return e===n.value||t.fail(null,n._failMsg,-1)}},n})(r);e.TLiteral=l;function u(e){return new d(i(e))}e.array=u;var d=(function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.ttype=t,n}return n.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){if(!Array.isArray(e))return t.fail(null,`is not an array`,0);for(var r=0;r<e.length;r++)if(!n(e[r],t))return t.fail(r,null,1);return!0}},n})(r);e.TArray=d;function f(){return new p([...arguments].map(function(e){return i(e)}))}e.tuple=f;var p=(function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.ttypes=t,n}return n.prototype.getChecker=function(e,t){var n=this.ttypes.map(function(n){return n.getChecker(e,t)}),r=function(e,t){if(!Array.isArray(e))return t.fail(null,`is not an array`,0);for(var r=0;r<n.length;r++)if(!n[r](e[r],t))return t.fail(r,null,1);return!0};return t?function(e,t){return r(e,t)?e.length<=n.length||t.fail(n.length,`is extraneous`,2):!1}:r},n})(r);e.TTuple=p;function m(){return new h([...arguments].map(function(e){return i(e)}))}e.union=m;var h=(function(e){t(n,e);function n(t){var n=e.call(this)||this;n.ttypes=t;var r=t.map(function(e){return e instanceof s||e instanceof l?e.name:null}).filter(function(e){return e}),i=t.length-r.length;return r.length?(i>0&&r.push(i+` more`),n._failMsg=`is none of `+r.join(`, `)):n._failMsg=`is none of `+i+` types`,n}return n.prototype.getChecker=function(e,t){var n=this,r=this.ttypes.map(function(n){return n.getChecker(e,t)});return function(e,t){for(var i=t.unionResolver(),a=0;a<r.length;a++)if(r[a](e,i.createContext()))return!0;return t.resolveUnion(i),t.fail(null,n._failMsg,0)}},n})(r);e.TUnion=h;function g(){return new _([...arguments].map(function(e){return i(e)}))}e.intersection=g;var _=(function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.ttypes=t,n}return n.prototype.getChecker=function(e,t){var n=/* @__PURE__ */ new Set,r=this.ttypes.map(function(r){return r.getChecker(e,t,n)});return function(e,t){return r.every(function(n){return n(e,t)})?!0:t.fail(null,null,0)}},n})(r);e.TIntersection=_;function ee(e){return new te(e)}e.enumtype=ee;var te=(function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.members=t,n.validValues=/* @__PURE__ */ new Set,n._failMsg=`is not a valid enum value`,n.validValues=new Set(Object.keys(t).map(function(e){return t[e]})),n}return n.prototype.getChecker=function(e,t){var n=this;return function(e,t){return n.validValues.has(e)?!0:t.fail(null,n._failMsg,0)}},n})(r);e.TEnumType=te;function ne(e,t){return new re(e,t)}e.enumlit=ne;var re=(function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.enumName=t,r.prop=n,r._failMsg=`is not `+t+`.`+n,r}return n.prototype.getChecker=function(e,t){var n=this,r=a(e,this.enumName);if(!(r instanceof te))throw Error(`Type `+this.enumName+` used in enumlit is not an enum type`);var i=r.members[this.prop];if(!r.members.hasOwnProperty(this.prop))throw Error(`Unknown value `+this.enumName+`.`+this.prop+` used in enumlit`);return function(e,t){return e===i||t.fail(null,n._failMsg,-1)}},n})(r);e.TEnumLiteral=re;function ie(e){return Object.keys(e).map(function(t){return ae(t,e[t])})}function ae(e,t){return t instanceof le?new ue(e,t.ttype,!0):new ue(e,i(t),!1)}function oe(e,t){return new se(e,ie(t))}e.iface=oe;var se=(function(e){t(r,e);function r(t,n){var r=e.call(this)||this;return r.bases=t,r.props=n,r.propSet=new Set(n.map(function(e){return e.name})),r}return r.prototype.getChecker=function(e,t,r){var i=this,o=this.bases.map(function(n){return a(e,n).getChecker(e,t)}),s=this.props.map(function(n){return n.ttype.getChecker(e,t)}),c=new n.NoopContext,l=this.props.map(function(e,t){return!e.isOpt&&!s[t](void 0,c)}),u=function(e,t){if(typeof e!=`object`||!e)return t.fail(null,`is not an object`,0);for(var n=0;n<o.length;n++)if(!o[n](e,t))return!1;for(var n=0;n<s.length;n++){var r=i.props[n].name,a=e[r];if(a===void 0){if(l[n])return t.fail(r,`is missing`,1)}else if(!s[n](a,t))return t.fail(r,null,1)}return!0};if(!t)return u;var d=this.propSet;return r&&(this.propSet.forEach(function(e){return r.add(e)}),d=r),function(e,t){if(!u(e,t))return!1;for(var n in e)if(!d.has(n))return t.fail(n,`is extraneous`,2);return!0}},r})(r);e.TIface=se;function ce(e){return new le(i(e))}e.opt=ce;var le=(function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.ttype=t,n}return n.prototype.getChecker=function(e,t){var n=this.ttype.getChecker(e,t);return function(e,t){return e===void 0||n(e,t)}},n})(r);e.TOptional=le;var ue=(function(){function e(e,t,n){this.name=e,this.ttype=t,this.isOpt=n}return e})();e.TProp=ue;function de(e){return new fe(new he([...arguments].slice(1)),i(e))}e.func=de;var fe=(function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.paramList=t,r.result=n,r}return n.prototype.getChecker=function(e,t){return function(e,t){return typeof e==`function`||t.fail(null,`is not a function`,0)}},n})(r);e.TFunc=fe;function pe(e,t,n){return new me(e,i(t),!!n)}e.param=pe;var me=(function(){function e(e,t,n){this.name=e,this.ttype=t,this.isOpt=n}return e})();e.TParam=me;var he=(function(e){t(r,e);function r(t){var n=e.call(this)||this;return n.params=t,n}return r.prototype.getChecker=function(e,t){var r=this,i=this.params.map(function(n){return n.ttype.getChecker(e,t)}),a=new n.NoopContext,o=this.params.map(function(e,t){return!e.isOpt&&!i[t](void 0,a)}),s=function(e,t){if(!Array.isArray(e))return t.fail(null,`is not an array`,0);for(var n=0;n<i.length;n++){var a=r.params[n];if(e[n]===void 0){if(o[n])return t.fail(a.name,`is missing`,1)}else if(!i[n](e[n],t))return t.fail(a.name,null,1)}return!0};return t?function(e,t){return s(e,t)?e.length<=i.length||t.fail(i.length,`is extraneous`,2):!1}:s},r})(r);e.TParamList=he;var v=(function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.validator=t,r.message=n,r}return n.prototype.getChecker=function(e,t){var n=this;return function(e,t){return n.validator(e)?!0:t.fail(null,n.message,0)}},n})(r);e.BasicType=v,e.basicTypes={any:new v(function(e){return!0},`is invalid`),number:new v(function(e){return typeof e==`number`},`is not a number`),object:new v(function(e){return typeof e==`object`&&e},`is not an object`),boolean:new v(function(e){return typeof e==`boolean`},`is not a boolean`),string:new v(function(e){return typeof e==`string`},`is not a string`),symbol:new v(function(e){return typeof e==`symbol`},`is not a symbol`),void:new v(function(e){return e==null},`is not void`),undefined:new v(function(e){return e===void 0},`is not undefined`),null:new v(function(e){return e===null},`is not null`),never:new v(function(e){return!1},`is unexpected`),Date:new v(_e(`[object Date]`),`is not a Date`),RegExp:new v(_e(`[object RegExp]`),`is not a RegExp`)};var ge=Object.prototype.toString;function _e(e){return function(t){return typeof t==`object`&&t&&ge.call(t)===e}}typeof Buffer<`u`&&(e.basicTypes.Buffer=new v(function(e){return Buffer.isBuffer(e)},`is not a Buffer`));var ve=function(t){e.basicTypes[t.name]=new v(function(e){return e instanceof t},`is not a `+t.name)};for(be=0,xe=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];be<xe.length;be++)ye=xe[be],ve(ye);var ye,be,xe}),On=s(e=>{var t=e&&e.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var n=Dn(),r=En(),i=Dn();Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var a=En();Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return a.VError}});function o(){for(var e=[...arguments],r=Object.assign.apply(Object,t([{},n.basicTypes],e)),i={},a=0,o=e;a<o.length;a++)for(var c=o[a],l=0,u=Object.keys(c);l<u.length;l++){var d=u[l];i[d]=new s(r,c[d])}return i}e.createCheckers=o;var s=(function(){function e(e,t,r){if(r===void 0&&(r=`value`),this.suite=e,this.ttype=t,this._path=r,this.props=/* @__PURE__ */ new Map,t instanceof n.TIface)for(var i=0,a=t.props;i<a.length;i++){var o=a[i];this.props.set(o.name,o.ttype)}this.checkerPlain=this.ttype.getChecker(e,!1),this.checkerStrict=this.ttype.getChecker(e,!0)}return e.prototype.setReportedPath=function(e){this._path=e},e.prototype.check=function(e){return this._doCheck(this.checkerPlain,e)},e.prototype.test=function(e){return this.checkerPlain(e,new r.NoopContext)},e.prototype.validate=function(e){return this._doValidate(this.checkerPlain,e)},e.prototype.strictCheck=function(e){return this._doCheck(this.checkerStrict,e)},e.prototype.strictTest=function(e){return this.checkerStrict(e,new r.NoopContext)},e.prototype.strictValidate=function(e){return this._doValidate(this.checkerStrict,e)},e.prototype.getProp=function(t){var n=this.props.get(t);if(!n)throw Error(`Type has no property `+t);return new e(this.suite,n,this._path+`.`+t)},e.prototype.methodArgs=function(t){var n=this._getMethod(t);return new e(this.suite,n.paramList)},e.prototype.methodResult=function(t){var n=this._getMethod(t);return new e(this.suite,n.result)},e.prototype.getArgs=function(){if(!(this.ttype instanceof n.TFunc))throw Error(`getArgs() applied to non-function`);return new e(this.suite,this.ttype.paramList)},e.prototype.getResult=function(){if(!(this.ttype instanceof n.TFunc))throw Error(`getResult() applied to non-function`);return new e(this.suite,this.ttype.result)},e.prototype.getType=function(){return this.ttype},e.prototype._doCheck=function(e,t){if(!e(t,new r.NoopContext)){var n=new r.DetailContext;throw e(t,n),n.getError(this._path)}},e.prototype._doValidate=function(e,t){if(e(t,new r.NoopContext))return null;var n=new r.DetailContext;return e(t,n),n.getErrorDetail(this._path)},e.prototype._getMethod=function(e){var t=this.props.get(e);if(!t)throw Error(`Type has no property `+e);if(!(t instanceof n.TFunc))throw Error(`Property `+e+` is not a method`);return t},e})();e.Checker=s}),kn=s(e=>{e.__esModule=!0,e.LinesAndColumns=void 0;var t=`
|
|
17
|
+
`,n=`\r`,r=(function(){function e(e){this.string=e;for(var r=[0],i=0;i<e.length;)switch(e[i]){case t:i+=t.length,r.push(i);break;case n:i+=n.length,e[i]===t&&(i+=t.length),r.push(i);break;default:i++}this.offsets=r}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;var r=e-n[t];return{line:t,column:r}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length||n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e})();e.LinesAndColumns=r,e.default=r});Sn();var An=u(wn()),D;(function(e){e[e.NONE=0]=`NONE`,e[e._abstract=1]=`_abstract`,e[e._accessor=2]=`_accessor`,e[e._as=3]=`_as`,e[e._assert=4]=`_assert`,e[e._asserts=5]=`_asserts`,e[e._async=6]=`_async`,e[e._await=7]=`_await`,e[e._checks=8]=`_checks`,e[e._constructor=9]=`_constructor`,e[e._declare=10]=`_declare`,e[e._enum=11]=`_enum`,e[e._exports=12]=`_exports`,e[e._from=13]=`_from`,e[e._get=14]=`_get`,e[e._global=15]=`_global`,e[e._implements=16]=`_implements`,e[e._infer=17]=`_infer`,e[e._interface=18]=`_interface`,e[e._is=19]=`_is`,e[e._keyof=20]=`_keyof`,e[e._mixins=21]=`_mixins`,e[e._module=22]=`_module`,e[e._namespace=23]=`_namespace`,e[e._of=24]=`_of`,e[e._opaque=25]=`_opaque`,e[e._out=26]=`_out`,e[e._override=27]=`_override`,e[e._private=28]=`_private`,e[e._protected=29]=`_protected`,e[e._proto=30]=`_proto`,e[e._public=31]=`_public`,e[e._readonly=32]=`_readonly`,e[e._require=33]=`_require`,e[e._satisfies=34]=`_satisfies`,e[e._set=35]=`_set`,e[e._static=36]=`_static`,e[e._symbol=37]=`_symbol`,e[e._type=38]=`_type`,e[e._unique=39]=`_unique`,e[e._using=40]=`_using`})(D||={});var O;(function(e){e[e.PRECEDENCE_MASK=15]=`PRECEDENCE_MASK`,e[e.IS_KEYWORD=16]=`IS_KEYWORD`,e[e.IS_ASSIGN=32]=`IS_ASSIGN`,e[e.IS_RIGHT_ASSOCIATIVE=64]=`IS_RIGHT_ASSOCIATIVE`,e[e.IS_PREFIX=128]=`IS_PREFIX`,e[e.IS_POSTFIX=256]=`IS_POSTFIX`,e[e.IS_EXPRESSION_START=512]=`IS_EXPRESSION_START`,e[e.num=512]=`num`,e[e.bigint=1536]=`bigint`,e[e.decimal=2560]=`decimal`,e[e.regexp=3584]=`regexp`,e[e.string=4608]=`string`,e[e.name=5632]=`name`,e[e.eof=6144]=`eof`,e[e.bracketL=7680]=`bracketL`,e[e.bracketR=8192]=`bracketR`,e[e.braceL=9728]=`braceL`,e[e.braceBarL=10752]=`braceBarL`,e[e.braceR=11264]=`braceR`,e[e.braceBarR=12288]=`braceBarR`,e[e.parenL=13824]=`parenL`,e[e.parenR=14336]=`parenR`,e[e.comma=15360]=`comma`,e[e.semi=16384]=`semi`,e[e.colon=17408]=`colon`,e[e.doubleColon=18432]=`doubleColon`,e[e.dot=19456]=`dot`,e[e.question=20480]=`question`,e[e.questionDot=21504]=`questionDot`,e[e.arrow=22528]=`arrow`,e[e.template=23552]=`template`,e[e.ellipsis=24576]=`ellipsis`,e[e.backQuote=25600]=`backQuote`,e[e.dollarBraceL=27136]=`dollarBraceL`,e[e.at=27648]=`at`,e[e.hash=29184]=`hash`,e[e.eq=29728]=`eq`,e[e.assign=30752]=`assign`,e[e.preIncDec=32640]=`preIncDec`,e[e.postIncDec=33664]=`postIncDec`,e[e.bang=34432]=`bang`,e[e.tilde=35456]=`tilde`,e[e.pipeline=35841]=`pipeline`,e[e.nullishCoalescing=36866]=`nullishCoalescing`,e[e.logicalOR=37890]=`logicalOR`,e[e.logicalAND=38915]=`logicalAND`,e[e.bitwiseOR=39940]=`bitwiseOR`,e[e.bitwiseXOR=40965]=`bitwiseXOR`,e[e.bitwiseAND=41990]=`bitwiseAND`,e[e.equality=43015]=`equality`,e[e.lessThan=44040]=`lessThan`,e[e.greaterThan=45064]=`greaterThan`,e[e.relationalOrEqual=46088]=`relationalOrEqual`,e[e.bitShiftL=47113]=`bitShiftL`,e[e.bitShiftR=48137]=`bitShiftR`,e[e.plus=49802]=`plus`,e[e.minus=50826]=`minus`,e[e.modulo=51723]=`modulo`,e[e.star=52235]=`star`,e[e.slash=53259]=`slash`,e[e.exponent=54348]=`exponent`,e[e.jsxName=55296]=`jsxName`,e[e.jsxText=56320]=`jsxText`,e[e.jsxEmptyText=57344]=`jsxEmptyText`,e[e.jsxTagStart=58880]=`jsxTagStart`,e[e.jsxTagEnd=59392]=`jsxTagEnd`,e[e.typeParameterStart=60928]=`typeParameterStart`,e[e.nonNullAssertion=61440]=`nonNullAssertion`,e[e._break=62480]=`_break`,e[e._case=63504]=`_case`,e[e._catch=64528]=`_catch`,e[e._continue=65552]=`_continue`,e[e._debugger=66576]=`_debugger`,e[e._default=67600]=`_default`,e[e._do=68624]=`_do`,e[e._else=69648]=`_else`,e[e._finally=70672]=`_finally`,e[e._for=71696]=`_for`,e[e._function=73232]=`_function`,e[e._if=73744]=`_if`,e[e._return=74768]=`_return`,e[e._switch=75792]=`_switch`,e[e._throw=77456]=`_throw`,e[e._try=77840]=`_try`,e[e._var=78864]=`_var`,e[e._let=79888]=`_let`,e[e._const=80912]=`_const`,e[e._while=81936]=`_while`,e[e._with=82960]=`_with`,e[e._new=84496]=`_new`,e[e._this=85520]=`_this`,e[e._super=86544]=`_super`,e[e._class=87568]=`_class`,e[e._extends=88080]=`_extends`,e[e._export=89104]=`_export`,e[e._import=90640]=`_import`,e[e._yield=91664]=`_yield`,e[e._null=92688]=`_null`,e[e._true=93712]=`_true`,e[e._false=94736]=`_false`,e[e._in=95256]=`_in`,e[e._instanceof=96280]=`_instanceof`,e[e._typeof=97936]=`_typeof`,e[e._void=98960]=`_void`,e[e._delete=99984]=`_delete`,e[e._async=100880]=`_async`,e[e._get=101904]=`_get`,e[e._set=102928]=`_set`,e[e._declare=103952]=`_declare`,e[e._readonly=104976]=`_readonly`,e[e._abstract=106e3]=`_abstract`,e[e._static=107024]=`_static`,e[e._public=107536]=`_public`,e[e._private=108560]=`_private`,e[e._protected=109584]=`_protected`,e[e._override=110608]=`_override`,e[e._as=112144]=`_as`,e[e._enum=113168]=`_enum`,e[e._type=114192]=`_type`,e[e._implements=115216]=`_implements`})(O||={});function jn(e){switch(e){case O.num:return`num`;case O.bigint:return`bigint`;case O.decimal:return`decimal`;case O.regexp:return`regexp`;case O.string:return`string`;case O.name:return`name`;case O.eof:return`eof`;case O.bracketL:return`[`;case O.bracketR:return`]`;case O.braceL:return`{`;case O.braceBarL:return`{|`;case O.braceR:return`}`;case O.braceBarR:return`|}`;case O.parenL:return`(`;case O.parenR:return`)`;case O.comma:return`,`;case O.semi:return`;`;case O.colon:return`:`;case O.doubleColon:return`::`;case O.dot:return`.`;case O.question:return`?`;case O.questionDot:return`?.`;case O.arrow:return`=>`;case O.template:return`template`;case O.ellipsis:return`...`;case O.backQuote:return"`";case O.dollarBraceL:return"${";case O.at:return`@`;case O.hash:return`#`;case O.eq:return`=`;case O.assign:return`_=`;case O.preIncDec:return`++/--`;case O.postIncDec:return`++/--`;case O.bang:return`!`;case O.tilde:return`~`;case O.pipeline:return`|>`;case O.nullishCoalescing:return`??`;case O.logicalOR:return`||`;case O.logicalAND:return`&&`;case O.bitwiseOR:return`|`;case O.bitwiseXOR:return`^`;case O.bitwiseAND:return`&`;case O.equality:return`==/!=`;case O.lessThan:return`<`;case O.greaterThan:return`>`;case O.relationalOrEqual:return`<=/>=`;case O.bitShiftL:return`<<`;case O.bitShiftR:return`>>/>>>`;case O.plus:return`+`;case O.minus:return`-`;case O.modulo:return`%`;case O.star:return`*`;case O.slash:return`/`;case O.exponent:return`**`;case O.jsxName:return`jsxName`;case O.jsxText:return`jsxText`;case O.jsxEmptyText:return`jsxEmptyText`;case O.jsxTagStart:return`jsxTagStart`;case O.jsxTagEnd:return`jsxTagEnd`;case O.typeParameterStart:return`typeParameterStart`;case O.nonNullAssertion:return`nonNullAssertion`;case O._break:return`break`;case O._case:return`case`;case O._catch:return`catch`;case O._continue:return`continue`;case O._debugger:return`debugger`;case O._default:return`default`;case O._do:return`do`;case O._else:return`else`;case O._finally:return`finally`;case O._for:return`for`;case O._function:return`function`;case O._if:return`if`;case O._return:return`return`;case O._switch:return`switch`;case O._throw:return`throw`;case O._try:return`try`;case O._var:return`var`;case O._let:return`let`;case O._const:return`const`;case O._while:return`while`;case O._with:return`with`;case O._new:return`new`;case O._this:return`this`;case O._super:return`super`;case O._class:return`class`;case O._extends:return`extends`;case O._export:return`export`;case O._import:return`import`;case O._yield:return`yield`;case O._null:return`null`;case O._true:return`true`;case O._false:return`false`;case O._in:return`in`;case O._instanceof:return`instanceof`;case O._typeof:return`typeof`;case O._void:return`void`;case O._delete:return`delete`;case O._async:return`async`;case O._get:return`get`;case O._set:return`set`;case O._declare:return`declare`;case O._readonly:return`readonly`;case O._abstract:return`abstract`;case O._static:return`static`;case O._public:return`public`;case O._private:return`private`;case O._protected:return`protected`;case O._override:return`override`;case O._as:return`as`;case O._enum:return`enum`;case O._type:return`type`;case O._implements:return`implements`;default:return``}}var Mn=class{constructor(e,t,n){this.startTokenIndex=e,this.endTokenIndex=t,this.isFunctionScope=n}},Nn=class{constructor(e,t,n,r,i,a,o,s,c,l,u,d,f){this.potentialArrowAt=e,this.noAnonFunctionType=t,this.inDisallowConditionalTypesContext=n,this.tokensLength=r,this.scopesLength=i,this.pos=a,this.type=o,this.contextualKeyword=s,this.start=c,this.end=l,this.isType=u,this.scopeDepth=d,this.error=f}},Pn=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),e.prototype.__init7.call(this),e.prototype.__init8.call(this),e.prototype.__init9.call(this),e.prototype.__init10.call(this),e.prototype.__init11.call(this),e.prototype.__init12.call(this),e.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=O.eof}__init8(){this.contextualKeyword=D.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new Nn(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(e){this.potentialArrowAt=e.potentialArrowAt,this.noAnonFunctionType=e.noAnonFunctionType,this.inDisallowConditionalTypesContext=e.inDisallowConditionalTypesContext,this.tokens.length=e.tokensLength,this.scopes.length=e.scopesLength,this.pos=e.pos,this.type=e.type,this.contextualKeyword=e.contextualKeyword,this.start=e.start,this.end=e.end,this.isType=e.isType,this.scopeDepth=e.scopeDepth,this.error=e.error}},k;(function(e){e[e.backSpace=8]=`backSpace`,e[e.lineFeed=10]=`lineFeed`,e[e.tab=9]=`tab`,e[e.carriageReturn=13]=`carriageReturn`,e[e.shiftOut=14]=`shiftOut`,e[e.space=32]=`space`,e[e.exclamationMark=33]=`exclamationMark`,e[e.quotationMark=34]=`quotationMark`,e[e.numberSign=35]=`numberSign`,e[e.dollarSign=36]=`dollarSign`,e[e.percentSign=37]=`percentSign`,e[e.ampersand=38]=`ampersand`,e[e.apostrophe=39]=`apostrophe`,e[e.leftParenthesis=40]=`leftParenthesis`,e[e.rightParenthesis=41]=`rightParenthesis`,e[e.asterisk=42]=`asterisk`,e[e.plusSign=43]=`plusSign`,e[e.comma=44]=`comma`,e[e.dash=45]=`dash`,e[e.dot=46]=`dot`,e[e.slash=47]=`slash`,e[e.digit0=48]=`digit0`,e[e.digit1=49]=`digit1`,e[e.digit2=50]=`digit2`,e[e.digit3=51]=`digit3`,e[e.digit4=52]=`digit4`,e[e.digit5=53]=`digit5`,e[e.digit6=54]=`digit6`,e[e.digit7=55]=`digit7`,e[e.digit8=56]=`digit8`,e[e.digit9=57]=`digit9`,e[e.colon=58]=`colon`,e[e.semicolon=59]=`semicolon`,e[e.lessThan=60]=`lessThan`,e[e.equalsTo=61]=`equalsTo`,e[e.greaterThan=62]=`greaterThan`,e[e.questionMark=63]=`questionMark`,e[e.atSign=64]=`atSign`,e[e.uppercaseA=65]=`uppercaseA`,e[e.uppercaseB=66]=`uppercaseB`,e[e.uppercaseC=67]=`uppercaseC`,e[e.uppercaseD=68]=`uppercaseD`,e[e.uppercaseE=69]=`uppercaseE`,e[e.uppercaseF=70]=`uppercaseF`,e[e.uppercaseG=71]=`uppercaseG`,e[e.uppercaseH=72]=`uppercaseH`,e[e.uppercaseI=73]=`uppercaseI`,e[e.uppercaseJ=74]=`uppercaseJ`,e[e.uppercaseK=75]=`uppercaseK`,e[e.uppercaseL=76]=`uppercaseL`,e[e.uppercaseM=77]=`uppercaseM`,e[e.uppercaseN=78]=`uppercaseN`,e[e.uppercaseO=79]=`uppercaseO`,e[e.uppercaseP=80]=`uppercaseP`,e[e.uppercaseQ=81]=`uppercaseQ`,e[e.uppercaseR=82]=`uppercaseR`,e[e.uppercaseS=83]=`uppercaseS`,e[e.uppercaseT=84]=`uppercaseT`,e[e.uppercaseU=85]=`uppercaseU`,e[e.uppercaseV=86]=`uppercaseV`,e[e.uppercaseW=87]=`uppercaseW`,e[e.uppercaseX=88]=`uppercaseX`,e[e.uppercaseY=89]=`uppercaseY`,e[e.uppercaseZ=90]=`uppercaseZ`,e[e.leftSquareBracket=91]=`leftSquareBracket`,e[e.backslash=92]=`backslash`,e[e.rightSquareBracket=93]=`rightSquareBracket`,e[e.caret=94]=`caret`,e[e.underscore=95]=`underscore`,e[e.graveAccent=96]=`graveAccent`,e[e.lowercaseA=97]=`lowercaseA`,e[e.lowercaseB=98]=`lowercaseB`,e[e.lowercaseC=99]=`lowercaseC`,e[e.lowercaseD=100]=`lowercaseD`,e[e.lowercaseE=101]=`lowercaseE`,e[e.lowercaseF=102]=`lowercaseF`,e[e.lowercaseG=103]=`lowercaseG`,e[e.lowercaseH=104]=`lowercaseH`,e[e.lowercaseI=105]=`lowercaseI`,e[e.lowercaseJ=106]=`lowercaseJ`,e[e.lowercaseK=107]=`lowercaseK`,e[e.lowercaseL=108]=`lowercaseL`,e[e.lowercaseM=109]=`lowercaseM`,e[e.lowercaseN=110]=`lowercaseN`,e[e.lowercaseO=111]=`lowercaseO`,e[e.lowercaseP=112]=`lowercaseP`,e[e.lowercaseQ=113]=`lowercaseQ`,e[e.lowercaseR=114]=`lowercaseR`,e[e.lowercaseS=115]=`lowercaseS`,e[e.lowercaseT=116]=`lowercaseT`,e[e.lowercaseU=117]=`lowercaseU`,e[e.lowercaseV=118]=`lowercaseV`,e[e.lowercaseW=119]=`lowercaseW`,e[e.lowercaseX=120]=`lowercaseX`,e[e.lowercaseY=121]=`lowercaseY`,e[e.lowercaseZ=122]=`lowercaseZ`,e[e.leftCurlyBrace=123]=`leftCurlyBrace`,e[e.verticalBar=124]=`verticalBar`,e[e.rightCurlyBrace=125]=`rightCurlyBrace`,e[e.tilde=126]=`tilde`,e[e.nonBreakingSpace=160]=`nonBreakingSpace`,e[e.oghamSpaceMark=5760]=`oghamSpaceMark`,e[e.lineSeparator=8232]=`lineSeparator`,e[e.paragraphSeparator=8233]=`paragraphSeparator`})(k||={});var Fn,A,j,M,N,In;function Ln(){return In++}function Rn(e){if(`pos`in e){let t=Bn(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}var zn=class{constructor(e,t){this.line=e,this.column=t}};function Bn(e){let t=1,n=1;for(let r=0;r<e;r++)N.charCodeAt(r)===k.lineFeed?(t++,n=1):n++;return new zn(t,n)}function Vn(e,t,n,r){N=e,M=new Pn,In=1,Fn=t,A=n,j=r}function P(e){return M.contextualKeyword===e}function Hn(e){let t=pr();return t.type===O.name&&t.contextualKeyword===e}function F(e){return M.contextualKeyword===e&&W(O.name)}function I(e){F(e)||z()}function Un(){return G(O.eof)||G(O.braceR)||Wn()}function Wn(){let e=M.tokens[M.tokens.length-1],t=e?e.end:0;for(let e=t;e<M.start;e++){let t=N.charCodeAt(e);if(t===k.lineFeed||t===k.carriageReturn||t===8232||t===8233)return!0}return!1}function Gn(){let e=mr();for(let t=M.end;t<e;t++){let e=N.charCodeAt(t);if(e===k.lineFeed||e===k.carriageReturn||e===8232||e===8233)return!0}return!1}function Kn(){return W(O.semi)||Un()}function L(){Kn()||z(`Unexpected token, expected ";"`)}function R(e){W(e)||z(`Unexpected token, expected "${jn(e)}"`)}function z(e=`Unexpected token`,t=M.start){if(M.error)return;let n=SyntaxError(e);n.pos=t,M.error=n,M.pos=N.length,q(O.eof)}var qn=[9,11,12,k.space,k.nonBreakingSpace,k.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],Jn=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Yn=/* @__PURE__ */ new Uint8Array(65536);for(let e of qn)Yn[e]=1;function Xn(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<128)return!1;throw Error(`Should not be called with non-ASCII char code.`)}var Zn=/* @__PURE__ */ new Uint8Array(65536);for(let e=0;e<128;e++)Zn[e]=+!!Xn(e);for(let e=128;e<65536;e++)Zn[e]=1;for(let e of qn)Zn[e]=0;Zn[8232]=0,Zn[8233]=0;var Qn=Zn.slice();for(let e=k.digit0;e<=k.digit9;e++)Qn[e]=0;var $n=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,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,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(O._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function er(){let e=0,t=0,n=M.pos;for(;n<N.length&&(t=N.charCodeAt(n),!(t<k.lowercaseA||t>k.lowercaseZ));){let r=$n[e+(t-k.lowercaseA)+1];if(r===-1)break;e=r,n++}let r=$n[e];if(r>-1&&!Zn[t])M.pos=n,r&1?q(r>>>1):q(O.name,r>>>1);else{for(;n<N.length;){let e=N.charCodeAt(n);if(Zn[e])n++;else if(e===k.backslash){if(n+=2,N.charCodeAt(n)===k.leftCurlyBrace){for(;n<N.length&&N.charCodeAt(n)!==k.rightCurlyBrace;)n++;n++}}else if(e===k.atSign&&N.charCodeAt(n+1)===k.atSign)n+=2;else break}M.pos=n,q(O.name)}}var B;(function(e){e[e.Access=0]=`Access`,e[e.ExportAccess=1]=`ExportAccess`,e[e.TopLevelDeclaration=2]=`TopLevelDeclaration`,e[e.FunctionScopedDeclaration=3]=`FunctionScopedDeclaration`,e[e.BlockScopedDeclaration=4]=`BlockScopedDeclaration`,e[e.ObjectShorthandTopLevelDeclaration=5]=`ObjectShorthandTopLevelDeclaration`,e[e.ObjectShorthandFunctionScopedDeclaration=6]=`ObjectShorthandFunctionScopedDeclaration`,e[e.ObjectShorthandBlockScopedDeclaration=7]=`ObjectShorthandBlockScopedDeclaration`,e[e.ObjectShorthand=8]=`ObjectShorthand`,e[e.ImportDeclaration=9]=`ImportDeclaration`,e[e.ObjectKey=10]=`ObjectKey`,e[e.ImportAccess=11]=`ImportAccess`})(B||={});var tr;(function(e){e[e.NoChildren=0]=`NoChildren`,e[e.OneChild=1]=`OneChild`,e[e.StaticChildren=2]=`StaticChildren`,e[e.KeyAfterPropSpread=3]=`KeyAfterPropSpread`})(tr||={});function nr(e){let t=e.identifierRole;return t===B.TopLevelDeclaration||t===B.FunctionScopedDeclaration||t===B.BlockScopedDeclaration||t===B.ObjectShorthandTopLevelDeclaration||t===B.ObjectShorthandFunctionScopedDeclaration||t===B.ObjectShorthandBlockScopedDeclaration}function rr(e){let t=e.identifierRole;return t===B.FunctionScopedDeclaration||t===B.BlockScopedDeclaration||t===B.ObjectShorthandFunctionScopedDeclaration||t===B.ObjectShorthandBlockScopedDeclaration}function ir(e){let t=e.identifierRole;return t===B.TopLevelDeclaration||t===B.ObjectShorthandTopLevelDeclaration||t===B.ImportDeclaration}function ar(e){let t=e.identifierRole;return t===B.TopLevelDeclaration||t===B.BlockScopedDeclaration||t===B.ObjectShorthandTopLevelDeclaration||t===B.ObjectShorthandBlockScopedDeclaration}function or(e){let t=e.identifierRole;return t===B.FunctionScopedDeclaration||t===B.ObjectShorthandFunctionScopedDeclaration}function sr(e){return e.identifierRole===B.ObjectShorthandTopLevelDeclaration||e.identifierRole===B.ObjectShorthandBlockScopedDeclaration||e.identifierRole===B.ObjectShorthandFunctionScopedDeclaration}var cr=class{constructor(){this.type=M.type,this.contextualKeyword=M.contextualKeyword,this.start=M.start,this.end=M.end,this.scopeDepth=M.scopeDepth,this.isType=M.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}};function V(){M.tokens.push(new cr),_r()}function lr(){M.tokens.push(new cr),M.start=M.pos,zr()}function ur(){M.type===O.assign&&--M.pos,Pr()}function H(e){for(let t=M.tokens.length-e;t<M.tokens.length;t++)M.tokens[t].isType=!0;let t=M.isType;return M.isType=!0,t}function U(e){M.isType=e}function W(e){return G(e)?(V(),!0):!1}function dr(e){let t=M.isType;M.isType=!0,W(e),M.isType=t}function G(e){return M.type===e}function K(){let e=M.snapshot();V();let t=M.type;return M.restoreFromSnapshot(e),t}var fr=class{constructor(e,t){this.type=e,this.contextualKeyword=t}};function pr(){let e=M.snapshot();V();let t=M.type,n=M.contextualKeyword;return M.restoreFromSnapshot(e),new fr(t,n)}function mr(){return hr(M.pos)}function hr(e){return Jn.lastIndex=e,e+Jn.exec(N)[0].length}function gr(){return N.charCodeAt(mr())}function _r(){if(xr(),M.start=M.pos,M.pos>=N.length){let e=M.tokens;e.length>=2&&e[e.length-1].start>=N.length&&e[e.length-2].start>=N.length&&z(`Unexpectedly reached the end of input.`),q(O.eof)}else vr(N.charCodeAt(M.pos))}function vr(e){Qn[e]||e===k.backslash||e===k.atSign&&N.charCodeAt(M.pos+1)===k.atSign?er():Nr(e)}function yr(){for(;N.charCodeAt(M.pos)!==k.asterisk||N.charCodeAt(M.pos+1)!==k.slash;)if(M.pos++,M.pos>N.length){z(`Unterminated comment`,M.pos-2);return}M.pos+=2}function br(e){let t=N.charCodeAt(M.pos+=e);if(M.pos<N.length)for(;t!==k.lineFeed&&t!==k.carriageReturn&&t!==k.lineSeparator&&t!==k.paragraphSeparator&&++M.pos<N.length;)t=N.charCodeAt(M.pos)}function xr(){for(;M.pos<N.length;){let e=N.charCodeAt(M.pos);switch(e){case k.carriageReturn:N.charCodeAt(M.pos+1)===k.lineFeed&&++M.pos;case k.lineFeed:case k.lineSeparator:case k.paragraphSeparator:++M.pos;break;case k.slash:switch(N.charCodeAt(M.pos+1)){case k.asterisk:M.pos+=2,yr();break;case k.slash:br(2);break;default:return}break;default:if(Yn[e])++M.pos;else return}}}function q(e,t=D.NONE){M.end=M.pos,M.type=e,M.contextualKeyword=t}function Sr(){let e=N.charCodeAt(M.pos+1);e>=k.digit0&&e<=k.digit9?Lr(!0):e===k.dot&&N.charCodeAt(M.pos+2)===k.dot?(M.pos+=3,q(O.ellipsis)):(++M.pos,q(O.dot))}function Cr(){N.charCodeAt(M.pos+1)===k.equalsTo?J(O.assign,2):J(O.slash,1)}function wr(e){let t=e===k.asterisk?O.star:O.modulo,n=1,r=N.charCodeAt(M.pos+1);e===k.asterisk&&r===k.asterisk&&(n++,r=N.charCodeAt(M.pos+2),t=O.exponent),r===k.equalsTo&&N.charCodeAt(M.pos+2)!==k.greaterThan&&(n++,t=O.assign),J(t,n)}function Tr(e){let t=N.charCodeAt(M.pos+1);if(t===e)N.charCodeAt(M.pos+2)===k.equalsTo?J(O.assign,3):J(e===k.verticalBar?O.logicalOR:O.logicalAND,2);else{if(e===k.verticalBar){if(t===k.greaterThan){J(O.pipeline,2);return}if(t===k.rightCurlyBrace&&j){J(O.braceBarR,2);return}}t===k.equalsTo?J(O.assign,2):J(e===k.verticalBar?O.bitwiseOR:O.bitwiseAND,1)}}function Er(){N.charCodeAt(M.pos+1)===k.equalsTo?J(O.assign,2):J(O.bitwiseXOR,1)}function Dr(e){let t=N.charCodeAt(M.pos+1);t===e?J(O.preIncDec,2):t===k.equalsTo?J(O.assign,2):e===k.plusSign?J(O.plus,1):J(O.minus,1)}function Or(){let e=N.charCodeAt(M.pos+1);if(e===k.lessThan){if(N.charCodeAt(M.pos+2)===k.equalsTo){J(O.assign,3);return}M.isType?J(O.lessThan,1):J(O.bitShiftL,2)}else e===k.equalsTo?J(O.relationalOrEqual,2):J(O.lessThan,1)}function kr(){if(M.isType){J(O.greaterThan,1);return}let e=N.charCodeAt(M.pos+1);if(e===k.greaterThan){let e=N.charCodeAt(M.pos+2)===k.greaterThan?3:2;if(N.charCodeAt(M.pos+e)===k.equalsTo){J(O.assign,e+1);return}J(O.bitShiftR,e)}else e===k.equalsTo?J(O.relationalOrEqual,2):J(O.greaterThan,1)}function Ar(){M.type===O.greaterThan&&(--M.pos,kr())}function jr(e){let t=N.charCodeAt(M.pos+1);t===k.equalsTo?J(O.equality,N.charCodeAt(M.pos+2)===k.equalsTo?3:2):e===k.equalsTo&&t===k.greaterThan?(M.pos+=2,q(O.arrow)):J(e===k.equalsTo?O.eq:O.bang,1)}function Mr(){let e=N.charCodeAt(M.pos+1),t=N.charCodeAt(M.pos+2);e===k.questionMark&&!(j&&M.isType)?t===k.equalsTo?J(O.assign,3):J(O.nullishCoalescing,2):e===k.dot&&!(t>=k.digit0&&t<=k.digit9)?(M.pos+=2,q(O.questionDot)):(++M.pos,q(O.question))}function Nr(e){switch(e){case k.numberSign:++M.pos,q(O.hash);return;case k.dot:Sr();return;case k.leftParenthesis:++M.pos,q(O.parenL);return;case k.rightParenthesis:++M.pos,q(O.parenR);return;case k.semicolon:++M.pos,q(O.semi);return;case k.comma:++M.pos,q(O.comma);return;case k.leftSquareBracket:++M.pos,q(O.bracketL);return;case k.rightSquareBracket:++M.pos,q(O.bracketR);return;case k.leftCurlyBrace:j&&N.charCodeAt(M.pos+1)===k.verticalBar?J(O.braceBarL,2):(++M.pos,q(O.braceL));return;case k.rightCurlyBrace:++M.pos,q(O.braceR);return;case k.colon:N.charCodeAt(M.pos+1)===k.colon?J(O.doubleColon,2):(++M.pos,q(O.colon));return;case k.questionMark:Mr();return;case k.atSign:++M.pos,q(O.at);return;case k.graveAccent:++M.pos,q(O.backQuote);return;case k.digit0:{let e=N.charCodeAt(M.pos+1);if(e===k.lowercaseX||e===k.uppercaseX||e===k.lowercaseO||e===k.uppercaseO||e===k.lowercaseB||e===k.uppercaseB){Ir();return}}case k.digit1:case k.digit2:case k.digit3:case k.digit4:case k.digit5:case k.digit6:case k.digit7:case k.digit8:case k.digit9:Lr(!1);return;case k.quotationMark:case k.apostrophe:Rr(e);return;case k.slash:Cr();return;case k.percentSign:case k.asterisk:wr(e);return;case k.verticalBar:case k.ampersand:Tr(e);return;case k.caret:Er();return;case k.plusSign:case k.dash:Dr(e);return;case k.lessThan:Or();return;case k.greaterThan:kr();return;case k.equalsTo:case k.exclamationMark:jr(e);return;case k.tilde:J(O.tilde,1);return}z(`Unexpected character '${String.fromCharCode(e)}'`,M.pos)}function J(e,t){M.pos+=t,q(e)}function Pr(){let e=M.pos,t=!1,n=!1;for(;;){if(M.pos>=N.length){z(`Unterminated regular expression`,e);return}let r=N.charCodeAt(M.pos);if(t)t=!1;else{if(r===k.leftSquareBracket)n=!0;else if(r===k.rightSquareBracket&&n)n=!1;else if(r===k.slash&&!n)break;t=r===k.backslash}++M.pos}++M.pos,Br(),q(O.regexp)}function Fr(){for(;;){let e=N.charCodeAt(M.pos);if(e>=k.digit0&&e<=k.digit9||e===k.underscore)M.pos++;else break}}function Ir(){for(M.pos+=2;;){let e=N.charCodeAt(M.pos);if(e>=k.digit0&&e<=k.digit9||e>=k.lowercaseA&&e<=k.lowercaseF||e>=k.uppercaseA&&e<=k.uppercaseF||e===k.underscore)M.pos++;else break}N.charCodeAt(M.pos)===k.lowercaseN?(++M.pos,q(O.bigint)):q(O.num)}function Lr(e){let t=!1,n=!1;e||Fr();let r=N.charCodeAt(M.pos);r===k.dot&&(++M.pos,Fr(),r=N.charCodeAt(M.pos)),(r===k.uppercaseE||r===k.lowercaseE)&&(r=N.charCodeAt(++M.pos),(r===k.plusSign||r===k.dash)&&++M.pos,Fr(),r=N.charCodeAt(M.pos)),r===k.lowercaseN?(++M.pos,t=!0):r===k.lowercaseM&&(++M.pos,n=!0),q(t?O.bigint:n?O.decimal:O.num)}function Rr(e){for(M.pos++;;){if(M.pos>=N.length){z(`Unterminated string constant`);return}let t=N.charCodeAt(M.pos);if(t===k.backslash)M.pos++;else if(t===e)break;M.pos++}M.pos++,q(O.string)}function zr(){for(;;){if(M.pos>=N.length){z(`Unterminated template`);return}let e=N.charCodeAt(M.pos);if(e===k.graveAccent||e===k.dollarSign&&N.charCodeAt(M.pos+1)===k.leftCurlyBrace){if(M.pos===M.start&&G(O.template)){if(e===k.dollarSign){M.pos+=2,q(O.dollarBraceL);return}++M.pos,q(O.backQuote);return}q(O.template);return}e===k.backslash&&M.pos++,M.pos++}}function Br(){for(;M.pos<N.length;){let e=N.charCodeAt(M.pos);if(Zn[e])M.pos++;else if(e===k.backslash){if(M.pos+=2,N.charCodeAt(M.pos)===k.leftCurlyBrace){for(;M.pos<N.length&&N.charCodeAt(M.pos)!==k.rightCurlyBrace;)M.pos++;M.pos++}}else break}}function Vr(e,t=e.currentIndex()){let n=t+1;if(Hr(e,n)){let r=e.identifierNameAtIndex(t);return{isType:!1,leftName:r,rightName:r,endIndex:n}}if(n++,Hr(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,Hr(e,n))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:n};if(n++,Hr(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw Error(`Unexpected import/export specifier at ${t}`)}function Hr(e,t){let n=e.tokens[t];return n.type===O.braceR||n.type===O.comma}var Ur=/* @__PURE__ */ new Map([[`quot`,`"`],[`amp`,`&`],[`apos`,`'`],[`lt`,`<`],[`gt`,`>`],[`nbsp`,`\xA0`],[`iexcl`,`¡`],[`cent`,`¢`],[`pound`,`£`],[`curren`,`¤`],[`yen`,`¥`],[`brvbar`,`¦`],[`sect`,`§`],[`uml`,`¨`],[`copy`,`©`],[`ordf`,`ª`],[`laquo`,`«`],[`not`,`¬`],[`shy`,``],[`reg`,`®`],[`macr`,`¯`],[`deg`,`°`],[`plusmn`,`±`],[`sup2`,`²`],[`sup3`,`³`],[`acute`,`´`],[`micro`,`µ`],[`para`,`¶`],[`middot`,`·`],[`cedil`,`¸`],[`sup1`,`¹`],[`ordm`,`º`],[`raquo`,`»`],[`frac14`,`¼`],[`frac12`,`½`],[`frac34`,`¾`],[`iquest`,`¿`],[`Agrave`,`À`],[`Aacute`,`Á`],[`Acirc`,`Â`],[`Atilde`,`Ã`],[`Auml`,`Ä`],[`Aring`,`Å`],[`AElig`,`Æ`],[`Ccedil`,`Ç`],[`Egrave`,`È`],[`Eacute`,`É`],[`Ecirc`,`Ê`],[`Euml`,`Ë`],[`Igrave`,`Ì`],[`Iacute`,`Í`],[`Icirc`,`Î`],[`Iuml`,`Ï`],[`ETH`,`Ð`],[`Ntilde`,`Ñ`],[`Ograve`,`Ò`],[`Oacute`,`Ó`],[`Ocirc`,`Ô`],[`Otilde`,`Õ`],[`Ouml`,`Ö`],[`times`,`×`],[`Oslash`,`Ø`],[`Ugrave`,`Ù`],[`Uacute`,`Ú`],[`Ucirc`,`Û`],[`Uuml`,`Ü`],[`Yacute`,`Ý`],[`THORN`,`Þ`],[`szlig`,`ß`],[`agrave`,`à`],[`aacute`,`á`],[`acirc`,`â`],[`atilde`,`ã`],[`auml`,`ä`],[`aring`,`å`],[`aelig`,`æ`],[`ccedil`,`ç`],[`egrave`,`è`],[`eacute`,`é`],[`ecirc`,`ê`],[`euml`,`ë`],[`igrave`,`ì`],[`iacute`,`í`],[`icirc`,`î`],[`iuml`,`ï`],[`eth`,`ð`],[`ntilde`,`ñ`],[`ograve`,`ò`],[`oacute`,`ó`],[`ocirc`,`ô`],[`otilde`,`õ`],[`ouml`,`ö`],[`divide`,`÷`],[`oslash`,`ø`],[`ugrave`,`ù`],[`uacute`,`ú`],[`ucirc`,`û`],[`uuml`,`ü`],[`yacute`,`ý`],[`thorn`,`þ`],[`yuml`,`ÿ`],[`OElig`,`Œ`],[`oelig`,`œ`],[`Scaron`,`Š`],[`scaron`,`š`],[`Yuml`,`Ÿ`],[`fnof`,`ƒ`],[`circ`,`ˆ`],[`tilde`,`˜`],[`Alpha`,`Α`],[`Beta`,`Β`],[`Gamma`,`Γ`],[`Delta`,`Δ`],[`Epsilon`,`Ε`],[`Zeta`,`Ζ`],[`Eta`,`Η`],[`Theta`,`Θ`],[`Iota`,`Ι`],[`Kappa`,`Κ`],[`Lambda`,`Λ`],[`Mu`,`Μ`],[`Nu`,`Ν`],[`Xi`,`Ξ`],[`Omicron`,`Ο`],[`Pi`,`Π`],[`Rho`,`Ρ`],[`Sigma`,`Σ`],[`Tau`,`Τ`],[`Upsilon`,`Υ`],[`Phi`,`Φ`],[`Chi`,`Χ`],[`Psi`,`Ψ`],[`Omega`,`Ω`],[`alpha`,`α`],[`beta`,`β`],[`gamma`,`γ`],[`delta`,`δ`],[`epsilon`,`ε`],[`zeta`,`ζ`],[`eta`,`η`],[`theta`,`θ`],[`iota`,`ι`],[`kappa`,`κ`],[`lambda`,`λ`],[`mu`,`μ`],[`nu`,`ν`],[`xi`,`ξ`],[`omicron`,`ο`],[`pi`,`π`],[`rho`,`ρ`],[`sigmaf`,`ς`],[`sigma`,`σ`],[`tau`,`τ`],[`upsilon`,`υ`],[`phi`,`φ`],[`chi`,`χ`],[`psi`,`ψ`],[`omega`,`ω`],[`thetasym`,`ϑ`],[`upsih`,`ϒ`],[`piv`,`ϖ`],[`ensp`,` `],[`emsp`,` `],[`thinsp`,` `],[`zwnj`,``],[`zwj`,``],[`lrm`,``],[`rlm`,``],[`ndash`,`–`],[`mdash`,`—`],[`lsquo`,`‘`],[`rsquo`,`’`],[`sbquo`,`‚`],[`ldquo`,`“`],[`rdquo`,`”`],[`bdquo`,`„`],[`dagger`,`†`],[`Dagger`,`‡`],[`bull`,`•`],[`hellip`,`…`],[`permil`,`‰`],[`prime`,`′`],[`Prime`,`″`],[`lsaquo`,`‹`],[`rsaquo`,`›`],[`oline`,`‾`],[`frasl`,`⁄`],[`euro`,`€`],[`image`,`ℑ`],[`weierp`,`℘`],[`real`,`ℜ`],[`trade`,`™`],[`alefsym`,`ℵ`],[`larr`,`←`],[`uarr`,`↑`],[`rarr`,`→`],[`darr`,`↓`],[`harr`,`↔`],[`crarr`,`↵`],[`lArr`,`⇐`],[`uArr`,`⇑`],[`rArr`,`⇒`],[`dArr`,`⇓`],[`hArr`,`⇔`],[`forall`,`∀`],[`part`,`∂`],[`exist`,`∃`],[`empty`,`∅`],[`nabla`,`∇`],[`isin`,`∈`],[`notin`,`∉`],[`ni`,`∋`],[`prod`,`∏`],[`sum`,`∑`],[`minus`,`−`],[`lowast`,`∗`],[`radic`,`√`],[`prop`,`∝`],[`infin`,`∞`],[`ang`,`∠`],[`and`,`∧`],[`or`,`∨`],[`cap`,`∩`],[`cup`,`∪`],[`int`,`∫`],[`there4`,`∴`],[`sim`,`∼`],[`cong`,`≅`],[`asymp`,`≈`],[`ne`,`≠`],[`equiv`,`≡`],[`le`,`≤`],[`ge`,`≥`],[`sub`,`⊂`],[`sup`,`⊃`],[`nsub`,`⊄`],[`sube`,`⊆`],[`supe`,`⊇`],[`oplus`,`⊕`],[`otimes`,`⊗`],[`perp`,`⊥`],[`sdot`,`⋅`],[`lceil`,`⌈`],[`rceil`,`⌉`],[`lfloor`,`⌊`],[`rfloor`,`⌋`],[`lang`,`〈`],[`rang`,`〉`],[`loz`,`◊`],[`spades`,`♠`],[`clubs`,`♣`],[`hearts`,`♥`],[`diams`,`♦`]]);function Wr(e){let[t,n]=Gr(e.jsxPragma||`React.createElement`),[r,i]=Gr(e.jsxFragmentPragma||`React.Fragment`);return{base:t,suffix:n,fragmentBase:r,fragmentSuffix:i}}function Gr(e){let t=e.indexOf(`.`);return t===-1&&(t=e.length),[e.slice(0,t),e.slice(t)]}var Kr=class{getPrefixCode(){return``}getHoistedCode(){return``}getSuffixCode(){return``}},qr=class e extends Kr{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(t,n,r,i,a){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=r,this.nameManager=i,this.options=a,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),this.jsxPragmaInfo=Wr(a),this.isAutomaticRuntime=a.jsxRuntime===`automatic`,this.jsxImportSource=a.jsxImportSource||`react`}process(){return this.tokens.matches1(O.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let e=``;if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||``)};`),this.isAutomaticRuntime){if(this.importProcessor)for(let[t,n]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${n} = require("${t}");`;else{let{createElement:t,...n}=this.esmAutomaticImportNameResolutions;t&&(e+=`import {createElement as ${t}} from "${this.jsxImportSource}";`);let r=Object.entries(n).map(([e,t])=>`${e} as ${t}`).join(`, `);if(r){let t=this.jsxImportSource+(this.options.production?`/jsx-runtime`:`/jsx-dev-runtime`);e+=`import {${r}} from "${t}";`}}}return e}processJSXTag(){let{jsxRole:e,start:t}=this.tokens.currentToken(),n=this.options.production?null:this.getElementLocationCode(t);this.isAutomaticRuntime&&e!==tr.KeyAfterPropSpread?this.transformTagToJSXFunc(n,e):this.transformTagToCreateElement(n)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){let t=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<t.length;)t[this.lastIndex]===`
|
|
18
|
+
`&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(e,t){let n=t===tr.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(n));let r=null;if(this.tokens.matches1(O.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(t);else{if(this.processTagIntro(),this.tokens.appendCode(`, {`),r=this.processProps(!0),this.tokens.matches2(O.slash,O.jsxTagEnd))this.tokens.appendCode(`}`);else if(this.tokens.matches1(O.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(t);else throw Error(`Expected either /> or > at the end of the tag.`);r&&this.tokens.appendCode(`, ${r}`)}for(this.options.production||(r===null&&this.tokens.appendCode(`, void 0`),this.tokens.appendCode(`, ${n}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(O.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(`)`)}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(O.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),!this.tokens.matches2(O.slash,O.jsxTagEnd)){if(this.tokens.matches1(O.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw Error(`Expected either /> or > at the end of the tag.`)}for(this.tokens.removeInitialToken();!this.tokens.matches1(O.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(`)`)}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation(`jsxs`,`/jsx-runtime`):this.claimAutoImportedFuncInvocation(`jsx`,`/jsx-runtime`):this.claimAutoImportedFuncInvocation(`jsxDEV`,`/jsx-dev-runtime`)}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation(`createElement`,``);{let{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName(`Fragment`,this.options.production?`/jsx-runtime`:`/jsx-dev-runtime`);{let{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,t){let n=this.claimAutoImportedName(e,t);return this.importProcessor?`${n}.call(void 0, `:`${n}(`}claimAutoImportedName(e,t){if(this.importProcessor){let n=this.jsxImportSource+t;return this.cjsAutomaticModuleNameResolutions[n]||(this.cjsAutomaticModuleNameResolutions[n]=this.importProcessor.getFreeIdentifierForPath(n)),`${this.cjsAutomaticModuleNameResolutions[n]}.${e}`}return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,O.jsxName,O.jsxName)&&!this.tokens.matches2AtIndex(e-1,O.greaterThan,O.jsxName)&&!this.tokens.matches1AtIndex(e,O.braceL)&&!this.tokens.matches1AtIndex(e,O.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,O.slash,O.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){let e=this.tokens.identifierName();Jr(e)&&this.tokens.replaceToken(`'${e}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(e){let t=this.options.production?``:`__self: this, __source: ${this.getDevSource(e)}`;!this.tokens.matches1(O.jsxName)&&!this.tokens.matches1(O.braceL)?t?this.tokens.appendCode(`, {${t}}`):this.tokens.appendCode(`, null`):(this.tokens.appendCode(`, {`),this.processProps(!1),t?this.tokens.appendCode(` ${t}}`):this.tokens.appendCode(`}`))}processProps(e){let t=null;for(;;){if(this.tokens.matches2(O.jsxName,O.eq)){let n=this.tokens.identifierName();if(e&&n===`key`){t!==null&&this.tokens.appendCode(t.replace(/[^\n]/g,``)),this.tokens.removeToken(),this.tokens.removeToken();let e=this.tokens.snapshot();this.processPropValue(),t=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(e);continue}this.processPropName(n),this.tokens.replaceToken(`: `),this.processPropValue()}else if(this.tokens.matches1(O.jsxName)){let e=this.tokens.identifierName();this.processPropName(e),this.tokens.appendCode(`: true`)}else if(this.tokens.matches1(O.braceL))this.tokens.replaceToken(``),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(``);else break;this.tokens.appendCode(`,`)}return t}processPropName(e){e.includes(`-`)?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(O.braceL)?(this.tokens.replaceToken(``),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(``)):this.tokens.matches1(O.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){let e=this.tokens.currentToken(),t=this.tokens.code.slice(e.start+1,e.end-1),n=Xr(t),r=Zr(t);this.tokens.replaceToken(r+n)}processAutomaticChildrenAndEndProps(e){e===tr.StaticChildren?(this.tokens.appendCode(` children: [`),this.processChildren(!1),this.tokens.appendCode(`]}`)):(e===tr.OneChild&&this.tokens.appendCode(` children: `),this.processChildren(!1),this.tokens.appendCode(`}`))}processChildren(e){let t=e;for(;;){if(this.tokens.matches2(O.jsxTagStart,O.slash))return;let e=!1;if(this.tokens.matches1(O.braceL))this.tokens.matches2(O.braceL,O.braceR)?(this.tokens.replaceToken(``),this.tokens.replaceToken(``)):(this.tokens.replaceToken(t?`, `:``),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(``),e=!0);else if(this.tokens.matches1(O.jsxTagStart))this.tokens.appendCode(t?`, `:``),this.processJSXTag(),e=!0;else if(this.tokens.matches1(O.jsxText)||this.tokens.matches1(O.jsxEmptyText))e=this.processChildTextElement(t);else throw Error(`Unexpected token when processing JSX children.`);e&&(t=!0)}}processChildTextElement(e){let t=this.tokens.currentToken(),n=this.tokens.code.slice(t.start,t.end),r=Xr(n),i=Yr(n);return i===`""`?(this.tokens.replaceToken(r),!1):(this.tokens.replaceToken(`${e?`, `:``}${i}${r}`),!0)}getDevSource(e){return`{fileName: ${this.getFilenameVarName()}, ${e}}`}getFilenameVarName(){return this.filenameVarName||=this.nameManager.claimFreeName(`_jsxFileName`),this.filenameVarName}};function Jr(e){let t=e.charCodeAt(0);return t>=k.lowercaseA&&t<=k.lowercaseZ}function Yr(e){let t=``,n=``,r=!1,i=!1;for(let a=0;a<e.length;a++){let o=e[a];if(o===` `||o===` `||o===`\r`)r||(n+=o);else if(o===`
|
|
19
|
+
`)n=``,r=!0;else{if(i&&r&&(t+=` `),t+=n,n=``,o===`&`){let{entity:n,newI:r}=Qr(e,a+1);a=r-1,t+=n}else t+=o;i=!0,r=!1}}return r||(t+=n),JSON.stringify(t)}function Xr(e){let t=0,n=0;for(let r of e)r===`
|
|
20
|
+
`?(t++,n=0):r===` `&&n++;return`
|
|
21
|
+
`.repeat(t)+` `.repeat(n)}function Zr(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(r===`
|
|
22
|
+
`){if(/\s/.test(e[n+1]))for(t+=` `;n<e.length&&/\s/.test(e[n+1]);)n++;else t+=`
|
|
23
|
+
`}else if(r===`&`){let{entity:r,newI:i}=Qr(e,n+1);t+=r,n=i-1}else t+=r}return JSON.stringify(t)}function Qr(e,t){let n=``,r=0,i,a=t;if(e[a]===`#`){let t=10;a++;let n;if(e[a]===`x`)for(t=16,a++,n=a;a<e.length&&ei(e.charCodeAt(a));)a++;else for(n=a;a<e.length&&$r(e.charCodeAt(a));)a++;if(e[a]===`;`){let r=e.slice(n,a);r&&(a++,i=String.fromCodePoint(parseInt(r,t)))}}else for(;a<e.length&&r++<10;){let t=e[a];if(a++,t===`;`){i=Ur.get(n);break}n+=t}return i?{entity:i,newI:a}:{entity:`&`,newI:t}}function $r(e){return e>=k.digit0&&e<=k.digit9}function ei(e){return e>=k.digit0&&e<=k.digit9||e>=k.lowercaseA&&e<=k.lowercaseF||e>=k.uppercaseA&&e<=k.uppercaseF}function ti(e,t){let n=Wr(t),r=/* @__PURE__ */ new Set;for(let t=0;t<e.tokens.length;t++){let i=e.tokens[t];i.type!==O.name||i.isType||i.identifierRole!==B.Access&&i.identifierRole!==B.ObjectShorthand&&i.identifierRole!==B.ExportAccess||i.shadowsGlobal||r.add(e.identifierNameForToken(i)),i.type===O.jsxTagStart&&r.add(n.base),i.type===O.jsxTagStart&&t+1<e.tokens.length&&e.tokens[t+1].type===O.jsxTagEnd&&(r.add(n.base),r.add(n.fragmentBase)),i.type===O.jsxName&&i.identifierRole===B.Access&&(Jr(e.identifierNameForToken(i))&&e.tokens[t+1].type!==O.dot||r.add(e.identifierNameForToken(i)))}return r}var ni=class e{__init(){this.nonTypeIdentifiers=/* @__PURE__ */ new Set}__init2(){this.importInfoByPath=/* @__PURE__ */ new Map}__init3(){this.importsToReplace=/* @__PURE__ */ new Map}__init4(){this.identifierReplacements=/* @__PURE__ */ new Map}__init5(){this.exportBindingsByLocalName=/* @__PURE__ */ new Map}constructor(t,n,r,i,a,o,s){this.nameManager=t,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=r,this.options=i,this.isTypeScriptTransformEnabled=a,this.keepUnusedImports=o,this.helperManager=s,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,O._import)&&!this.tokens.matches3AtIndex(e,O._import,O.name,O.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,O._export)&&!this.tokens.matches2AtIndex(e,O._export,O.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=ti(this.tokens,this.options);for(let[e,t]of this.importInfoByPath.entries())t.hasBareImport||t.hasStarExport||t.exportStarNames.length>0||t.namedExports.length>0||[...t.defaultNames,...t.wildcardNames,...t.namedImports.map(({localName:e})=>e)].every(e=>this.shouldAutomaticallyElideImportedName(e))&&this.importsToReplace.set(e,``)}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(let[e,t]of this.importInfoByPath.entries()){let{defaultNames:n,wildcardNames:r,namedImports:i,namedExports:a,exportStarNames:o,hasStarExport:s}=t;if(n.length===0&&r.length===0&&i.length===0&&a.length===0&&o.length===0&&!s){this.importsToReplace.set(e,`require('${e}');`);continue}let c=this.getFreeIdentifierForPath(e),l;l=this.enableLegacyTypeScriptModuleInterop?c:r.length>0?r[0]:this.getFreeIdentifierForPath(e);let u=`var ${c} = require('${e}');`;if(r.length>0)for(let e of r){let t=this.enableLegacyTypeScriptModuleInterop?c:`${this.helperManager.getHelperName(`interopRequireWildcard`)}(${c})`;u+=` var ${e} = ${t};`}else o.length>0&&l!==c?u+=` var ${l} = ${this.helperManager.getHelperName(`interopRequireWildcard`)}(${c});`:n.length>0&&l!==c&&(u+=` var ${l} = ${this.helperManager.getHelperName(`interopRequireDefault`)}(${c});`);for(let{importedName:e,localName:t}of a)u+=` ${this.helperManager.getHelperName(`createNamedExportFrom`)}(${c}, '${t}', '${e}');`;for(let e of o)u+=` exports.${e} = ${l};`;s&&(u+=` ${this.helperManager.getHelperName(`createStarExport`)}(${c});`),this.importsToReplace.set(e,u);for(let e of n)this.identifierReplacements.set(e,`${l}.default`);for(let{importedName:e,localName:t}of i)this.identifierReplacements.set(t,`${c}.${e}`)}}getFreeIdentifierForPath(e){let t=e.split(`/`),n=t[t.length-1].replace(/\W/g,``);return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(e){let t=[],n=[],r=[];if(e++,(this.tokens.matchesContextualAtIndex(e,D._type)||this.tokens.matches1AtIndex(e,O._typeof))&&!this.tokens.matches1AtIndex(e+1,O.comma)&&!this.tokens.matchesContextualAtIndex(e+1,D._from)||this.tokens.matches1AtIndex(e,O.parenL))return;if(this.tokens.matches1AtIndex(e,O.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,O.comma)&&e++),this.tokens.matches1AtIndex(e,O.star)&&(e+=2,n.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,O.braceL)){let n=this.getNamedImports(e+1);e=n.newIndex;for(let e of n.namedImports)e.importedName==="default"?t.push(e.localName):r.push(e)}if(this.tokens.matchesContextualAtIndex(e,D._from)&&e++,!this.tokens.matches1AtIndex(e,O.string))throw Error(`Expected string token at the end of import statement.`);let i=this.tokens.stringValueAtIndex(e),a=this.getImportInfo(i);a.defaultNames.push(...t),a.wildcardNames.push(...n),a.namedImports.push(...r),t.length===0&&n.length===0&&r.length===0&&(a.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,O._export,O._var)||this.tokens.matches2AtIndex(e,O._export,O._let)||this.tokens.matches2AtIndex(e,O._export,O._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,O._export,O._function)||this.tokens.matches2AtIndex(e,O._export,O._class)){let t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,O._export,O.name,O._function)){let t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,O._export,O.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,O._export,O.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let n=e+2;;n++)if(this.tokens.matches1AtIndex(n,O.braceL)||this.tokens.matches1AtIndex(n,O.dollarBraceL)||this.tokens.matches1AtIndex(n,O.bracketL))t++;else if(this.tokens.matches1AtIndex(n,O.braceR)||this.tokens.matches1AtIndex(n,O.bracketR))t--;else{if(t===0&&!this.tokens.matches1AtIndex(n,O.name))break;if(this.tokens.matches1AtIndex(1,O.eq)){let e=this.tokens.currentToken().rhsEndIndex;if(e==null)throw Error(`Expected = token with an end index.`);n=e-1}else{let e=this.tokens.tokens[n];if(nr(e)){let e=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(e,`exports.${e}`)}}}}preprocessNamedExportAtIndex(e){e+=2;let{newIndex:t,namedImports:n}=this.getNamedImports(e);if(e=t,this.tokens.matchesContextualAtIndex(e,D._from))e++;else{for(let{importedName:e,localName:t}of n)this.addExportBinding(e,t);return}if(!this.tokens.matches1AtIndex(e,O.string))throw Error(`Expected string token at the end of import statement.`);let r=this.tokens.stringValueAtIndex(e);this.getImportInfo(r).namedExports.push(...n)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,O._export,O.star,O._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,O.string))throw Error(`Expected string token at the end of star export statement.`);let n=this.tokens.stringValueAtIndex(e),r=this.getImportInfo(n);t===null?r.hasStarExport=!0:r.exportStarNames.push(t)}getNamedImports(e){let t=[];for(;;){if(this.tokens.matches1AtIndex(e,O.braceR)){e++;break}let n=Vr(this.tokens,e);if(e=n.endIndex,n.isType||t.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(e,O.comma,O.braceR)){e+=2;break}if(this.tokens.matches1AtIndex(e,O.braceR)){e++;break}if(this.tokens.matches1AtIndex(e,O.comma))e++;else throw Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`)}return{newIndex:e,namedImports:t}}getImportInfo(e){let t=this.importInfoByPath.get(e);if(t)return t;let n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,n),n}addExportBinding(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){let t=this.importsToReplace.get(e);return this.importsToReplace.set(e,``),t||``}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){let t=this.exportBindingsByLocalName.get(e);return!t||t.length===0?null:t.map(e=>`exports.${e}`).join(` = `)}getGlobalNames(){return/* @__PURE__ */ new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}},ri=44,ii=59,ai=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,oi=/* @__PURE__ */ new Uint8Array(64),si=/* @__PURE__ */ new Uint8Array(128);for(let e=0;e<ai.length;e++){let t=ai.charCodeAt(e);oi[e]=t,si[t]=e}function ci(e,t){do{let n=t&31;t>>>=5,t>0&&(n|=32),e.write(oi[n])}while(t>0)}function li(e){return e<0?-e<<1|1:e<<1}var ui=16384,di=typeof TextDecoder<`u`?new TextDecoder:typeof Buffer<`u`?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},fi=class{constructor(){this.pos=0,this.out=``,this.buffer=new Uint8Array(ui)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===ui&&(this.out+=di.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+di.decode(e.subarray(0,n)):t}};function pi(e){let t=new fi,n=0,r=0,i=0,a=0;for(let o=0;o<e.length;o++){let s=e[o];if(o>0&&t.write(ii),s.length===0)continue;let c=0;for(let e=0;e<s.length;e++){let o=s[e];e>0&&t.write(ri),ci(t,li(o[0]-c)),c=o[0],o.length!==1&&(ci(t,li(o[1]-n)),ci(t,li(o[2]-r)),ci(t,li(o[3]-i)),n=o[1],r=o[2],i=o[3],o.length!==4&&(ci(t,li(o[4]-a)),a=o[4]))}}return t.flush()}u(Tn(),1);var mi=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function hi(e,t){return e._indexes[t]}function gi(e,t){let n=hi(e,t);if(n!==void 0)return n;let{array:r,_indexes:i}=e;return i[t]=r.push(t)-1}var _i=0,vi=1,yi=2,bi=3,xi=4,Si=-1,Ci=class{constructor({file:e,sourceRoot:t}={}){this._names=new mi,this._sources=new mi,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new mi}},wi=(e,t,n,r,i,a,o,s)=>Di(!0,e,t,n,r,i,a,o,s);function Ti(e){let{_mappings:t,_sources:n,_sourcesContent:r,_names:i,_ignoreList:a}=e;return ji(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:t,ignoreList:a.array}}function Ei(e){let t=Ti(e);return Object.assign({},t,{mappings:pi(t.mappings)})}function Di(e,t,n,r,i,a,o,s,c){let{_mappings:l,_sources:u,_sourcesContent:d,_names:f}=t,p=Oi(l,n),m=ki(p,r);if(!i)return e&&Mi(p,m)?void 0:Ai(p,m,[r]);let h=gi(u,i),g=s?gi(f,s):Si;if(h===d.length&&(d[h]=c??null),!(e&&Ni(p,m,h,a,o,g)))return Ai(p,m,s?[r,h,a,o,g]:[r,h,a,o])}function Oi(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}function ki(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][_i]);n=r--);return n}function Ai(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function ji(e){let{length:t}=e,n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}function Mi(e,t){return t===0||e[t-1].length===1}function Ni(e,t,n,r,i,a){if(t===0)return!1;let o=e[t-1];return o.length!==1&&n===o[vi]&&r===o[yi]&&i===o[bi]&&a===(o.length===5?o[xi]:Si)}function Pi({code:e,mappings:t},n,r,i,a){let o=Fi(i,a),s=new Ci({file:r.compiledFilename}),c=0,l=t[0];for(;l===void 0&&c<t.length-1;)c++,l=t[c];let u=0,d=0;l!==d&&wi(s,u,0,n,u,0);for(let r=0;r<e.length;r++){if(r===l){let e=l-d,i=o[c];for(wi(s,u,e,n,u,i);(l===r||l===void 0)&&c<t.length-1;)c++,l=t[c]}e.charCodeAt(r)===k.lineFeed&&(u++,d=r+1,l!==d&&wi(s,u,0,n,u,0))}let{sourceRoot:f,sourcesContent:p,...m}=Ei(s);return m}function Fi(e,t){let n=Array(t.length),r=0,i=t[r].start,a=0;for(let o=0;o<e.length;o++)o===i&&(n[r]=i-a,r++,i=t[r].start),e.charCodeAt(o)===k.lineFeed&&(a=o+1);return n}var Ii={require:`
|
|
24
|
+
import {createRequire as CREATE_REQUIRE_NAME} from "module";
|
|
25
|
+
const require = CREATE_REQUIRE_NAME(import.meta.url);
|
|
26
|
+
`,interopRequireWildcard:`
|
|
27
|
+
function interopRequireWildcard(obj) {
|
|
28
|
+
if (obj && obj.__esModule) {
|
|
29
|
+
return obj;
|
|
30
|
+
} else {
|
|
31
|
+
var newObj = {};
|
|
32
|
+
if (obj != null) {
|
|
33
|
+
for (var key in obj) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
35
|
+
newObj[key] = obj[key];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
newObj.default = obj;
|
|
40
|
+
return newObj;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`,interopRequireDefault:`
|
|
44
|
+
function interopRequireDefault(obj) {
|
|
45
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
46
|
+
}
|
|
47
|
+
`,createNamedExportFrom:`
|
|
48
|
+
function createNamedExportFrom(obj, localName, importedName) {
|
|
49
|
+
Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});
|
|
50
|
+
}
|
|
51
|
+
`,createStarExport:`
|
|
52
|
+
function createStarExport(obj) {
|
|
53
|
+
Object.keys(obj)
|
|
54
|
+
.filter((key) => key !== "default" && key !== "__esModule")
|
|
55
|
+
.forEach((key) => {
|
|
56
|
+
if (exports.hasOwnProperty(key)) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
`,nullishCoalesce:`
|
|
63
|
+
function nullishCoalesce(lhs, rhsFn) {
|
|
64
|
+
if (lhs != null) {
|
|
65
|
+
return lhs;
|
|
66
|
+
} else {
|
|
67
|
+
return rhsFn();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
`,asyncNullishCoalesce:`
|
|
71
|
+
async function asyncNullishCoalesce(lhs, rhsFn) {
|
|
72
|
+
if (lhs != null) {
|
|
73
|
+
return lhs;
|
|
74
|
+
} else {
|
|
75
|
+
return await rhsFn();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
`,optionalChain:`
|
|
79
|
+
function optionalChain(ops) {
|
|
80
|
+
let lastAccessLHS = undefined;
|
|
81
|
+
let value = ops[0];
|
|
82
|
+
let i = 1;
|
|
83
|
+
while (i < ops.length) {
|
|
84
|
+
const op = ops[i];
|
|
85
|
+
const fn = ops[i + 1];
|
|
86
|
+
i += 2;
|
|
87
|
+
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
if (op === 'access' || op === 'optionalAccess') {
|
|
91
|
+
lastAccessLHS = value;
|
|
92
|
+
value = fn(value);
|
|
93
|
+
} else if (op === 'call' || op === 'optionalCall') {
|
|
94
|
+
value = fn((...args) => value.call(lastAccessLHS, ...args));
|
|
95
|
+
lastAccessLHS = undefined;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
`,asyncOptionalChain:`
|
|
101
|
+
async function asyncOptionalChain(ops) {
|
|
102
|
+
let lastAccessLHS = undefined;
|
|
103
|
+
let value = ops[0];
|
|
104
|
+
let i = 1;
|
|
105
|
+
while (i < ops.length) {
|
|
106
|
+
const op = ops[i];
|
|
107
|
+
const fn = ops[i + 1];
|
|
108
|
+
i += 2;
|
|
109
|
+
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
|
110
|
+
return undefined;
|
|
111
|
+
}
|
|
112
|
+
if (op === 'access' || op === 'optionalAccess') {
|
|
113
|
+
lastAccessLHS = value;
|
|
114
|
+
value = await fn(value);
|
|
115
|
+
} else if (op === 'call' || op === 'optionalCall') {
|
|
116
|
+
value = await fn((...args) => value.call(lastAccessLHS, ...args));
|
|
117
|
+
lastAccessLHS = undefined;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return value;
|
|
121
|
+
}
|
|
122
|
+
`,optionalChainDelete:`
|
|
123
|
+
function optionalChainDelete(ops) {
|
|
124
|
+
const result = OPTIONAL_CHAIN_NAME(ops);
|
|
125
|
+
return result == null ? true : result;
|
|
126
|
+
}
|
|
127
|
+
`,asyncOptionalChainDelete:`
|
|
128
|
+
async function asyncOptionalChainDelete(ops) {
|
|
129
|
+
const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
|
|
130
|
+
return result == null ? true : result;
|
|
131
|
+
}
|
|
132
|
+
`},Li=class e{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,e.prototype.__init.call(this),e.prototype.__init2.call(this)}getHelperName(e){let t=this.helperNames[e];return t||(t=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=t,t)}emitHelpers(){let e=``;this.helperNames.optionalChainDelete&&this.getHelperName(`optionalChain`),this.helperNames.asyncOptionalChainDelete&&this.getHelperName(`asyncOptionalChain`);for(let[t,n]of Object.entries(Ii)){let r=this.helperNames[t],i=n;t===`optionalChainDelete`?i=i.replace(`OPTIONAL_CHAIN_NAME`,this.helperNames.optionalChain):t===`asyncOptionalChainDelete`?i=i.replace(`ASYNC_OPTIONAL_CHAIN_NAME`,this.helperNames.asyncOptionalChain):t===`require`&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName(`_createRequire`)),i=i.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),r&&(e+=` `,e+=i.replace(t,r).replace(/\s+/g,` `).trim())}return e}};function Ri(e,t,n){zi(e,n)&&Bi(e,t,n)}function zi(e,t){for(let n of e.tokens)if(n.type===O.name&&!n.isType&&rr(n)&&t.has(e.identifierNameForToken(n)))return!0;return!1}function Bi(e,t,n){let r=[],i=t.length-1;for(let a=e.tokens.length-1;;a--){for(;r.length>0&&r[r.length-1].startTokenIndex===a+1;)r.pop();for(;i>=0&&t[i].endTokenIndex===a+1;)r.push(t[i]),i--;if(a<0)break;let o=e.tokens[a],s=e.identifierNameForToken(o);if(r.length>1&&!o.isType&&o.type===O.name&&n.has(s)){if(ar(o))Vi(r[r.length-1],e,s);else if(or(o)){let t=r.length-1;for(;t>0&&!r[t].isFunctionScope;)t--;if(t<0)throw Error(`Did not find parent function scope.`);Vi(r[t],e,s)}}}if(r.length>0)throw Error(`Expected empty scope stack after processing file.`)}function Vi(e,t,n){for(let r=e.startTokenIndex;r<e.endTokenIndex;r++){let e=t.tokens[r];(e.type===O.name||e.type===O.jsxName)&&t.identifierNameForToken(e)===n&&(e.shadowsGlobal=!0)}}function Hi(e,t){let n=[];for(let r of t)r.type===O.name&&n.push(e.slice(r.start,r.end));return n}var Ui=class e{__init(){this.usedNames=/* @__PURE__ */ new Set}constructor(t,n){e.prototype.__init.call(this),this.usedNames=new Set(Hi(t,n))}claimFreeName(e){let t=this.findFreeName(e);return this.usedNames.add(t),t}findFreeName(e){if(!this.usedNames.has(e))return e;let t=2;for(;this.usedNames.has(e+String(t));)t++;return e+String(t)}},Wi=u(On()),Y=u(On()),Gi={Transform:Y.union(Y.lit(`jsx`),Y.lit(`typescript`),Y.lit(`flow`),Y.lit(`imports`),Y.lit(`react-hot-loader`),Y.lit(`jest`)),SourceMapOptions:Y.iface([],{compiledFilename:`string`}),Options:Y.iface([],{transforms:Y.array(`Transform`),disableESTransforms:Y.opt(`boolean`),jsxRuntime:Y.opt(Y.union(Y.lit(`classic`),Y.lit(`automatic`),Y.lit(`preserve`))),production:Y.opt(`boolean`),jsxImportSource:Y.opt(`string`),jsxPragma:Y.opt(`string`),jsxFragmentPragma:Y.opt(`string`),keepUnusedImports:Y.opt(`boolean`),preserveDynamicImport:Y.opt(`boolean`),injectCreateRequireForImportRequire:Y.opt(`boolean`),enableLegacyTypeScriptModuleInterop:Y.opt(`boolean`),enableLegacyBabel5ModuleInterop:Y.opt(`boolean`),sourceMapOptions:Y.opt(`SourceMapOptions`),filePath:Y.opt(`string`)})},{Options:Ki}=(0,Wi.createCheckers)(Gi);function qi(e){Ki.strictCheck(e)}function Ji(){V(),Q(!1)}function Yi(e){V(),$i(e)}function Xi(e){$(),Qi(e)}function Zi(){$(),M.tokens[M.tokens.length-1].identifierRole=B.ImportDeclaration}function Qi(e){let t;t=M.scopeDepth===0?B.TopLevelDeclaration:e?B.BlockScopedDeclaration:B.FunctionScopedDeclaration,M.tokens[M.tokens.length-1].identifierRole=t}function $i(e){switch(M.type){case O._this:{let e=H(0);V(),U(e);return}case O._yield:case O.name:M.type=O.name,Xi(e);return;case O.bracketL:V(),ea(O.bracketR,e,!0);return;case O.braceL:Bs(!0,e);return;default:z()}}function ea(e,t,n=!1,r=!1,i=0){let a=!0,o=!1,s=M.tokens.length;for(;!W(e)&&!M.error;)if(a?a=!1:(R(O.comma),M.tokens[M.tokens.length-1].contextId=i,!o&&M.tokens[s].isType&&(M.tokens[M.tokens.length-1].isType=!0,o=!0)),!(n&&G(O.comma))){if(W(e))break;if(G(O.ellipsis)){Yi(t),na(),W(O.comma),R(e);break}ta(r,t)}}function ta(e,t){e&&sa([D._public,D._protected,D._private,D._readonly,D._override]),ra(t),na(),ra(t,!0)}function na(){j?cl():A&&Ko()}function ra(e,t=!1){if(t||$i(e),!W(O.eq))return;let n=M.tokens.length-1;Q(),M.tokens[n].rhsEndIndex=M.tokens.length}function ia(){return G(O.name)}function aa(){return G(O.name)||!!(M.type&O.IS_KEYWORD)||G(O.string)||G(O.num)||G(O.bigint)||G(O.decimal)}function oa(){let e=M.snapshot();return V(),(G(O.bracketL)||G(O.braceL)||G(O.star)||G(O.ellipsis)||G(O.hash)||aa())&&!Wn()?!0:(M.restoreFromSnapshot(e),!1)}function sa(e){for(;ca(e)!==null;);}function ca(e){if(!G(O.name))return null;let t=M.contextualKeyword;if(e.indexOf(t)!==-1&&oa()){switch(t){case D._readonly:M.tokens[M.tokens.length-1].type=O._readonly;break;case D._abstract:M.tokens[M.tokens.length-1].type=O._abstract;break;case D._static:M.tokens[M.tokens.length-1].type=O._static;break;case D._public:M.tokens[M.tokens.length-1].type=O._public;break;case D._private:M.tokens[M.tokens.length-1].type=O._private;break;case D._protected:M.tokens[M.tokens.length-1].type=O._protected;break;case D._override:M.tokens[M.tokens.length-1].type=O._override;break;case D._declare:M.tokens[M.tokens.length-1].type=O._declare}return t}return null}function la(){for($();W(O.dot);)$()}function ua(){la(),!Wn()&&G(O.lessThan)&&To()}function da(){V(),$a()}function fa(){V()}function pa(){R(O._typeof),G(O._import)?ma():la(),!Wn()&&G(O.lessThan)&&To()}function ma(){R(O._import),R(O.parenL),R(O.string),R(O.parenR),W(O.dot)&&la(),G(O.lessThan)&&To()}function ha(){W(O._const);let e=W(O._in),t=F(D._out);W(O._const),(e||t)&&!G(O.name)?M.tokens[M.tokens.length-1].type=O.name:$(),W(O._extends)&&X(),W(O.eq)&&X()}function ga(){G(O.lessThan)&&_a()}function _a(){let e=H(0);for(G(O.lessThan)||G(O.typeParameterStart)?V():z();!W(O.greaterThan)&&!M.error;)ha(),W(O.comma);U(e)}function va(e){let t=e===O.arrow;ga(),R(O.parenL),M.scopeDepth++,ya(!1),M.scopeDepth--,(t||G(e))&&Ja(e)}function ya(e){ea(O.parenR,e)}function ba(){W(O.comma)||L()}function xa(){va(O.colon),ba()}function Sa(){let e=M.snapshot();V();let t=W(O.name)&&G(O.colon);return M.restoreFromSnapshot(e),t}function Ca(){if(!(G(O.bracketL)&&Sa()))return!1;let e=H(0);return R(O.bracketL),$(),$a(),R(O.bracketR),Xa(),ba(),U(e),!0}function wa(e){W(O.question),!e&&(G(O.parenL)||G(O.lessThan))?(va(O.colon),ba()):(Xa(),ba())}function Ta(){if(G(O.parenL)||G(O.lessThan)){xa();return}if(G(O._new)){V(),G(O.parenL)||G(O.lessThan)?xa():wa(!1);return}let e=!!ca([D._readonly]);Ca()||((P(D._get)||P(D._set))&&oa(),Gs(-1),wa(e))}function Ea(){Da()}function Da(){for(R(O.braceL);!W(O.braceR)&&!M.error;)Ta()}function Oa(){let e=M.snapshot(),t=ka();return M.restoreFromSnapshot(e),t}function ka(){return V(),W(O.plus)||W(O.minus)?P(D._readonly):(P(D._readonly)&&V(),!G(O.bracketL)||(V(),!ia())?!1:(V(),G(O._in)))}function Aa(){$(),R(O._in),X()}function ja(){R(O.braceL),G(O.plus)||G(O.minus)?(V(),I(D._readonly)):F(D._readonly),R(O.bracketL),Aa(),F(D._as)&&X(),R(O.bracketR),G(O.plus)||G(O.minus)?(V(),R(O.question)):W(O.question),Za(),L(),R(O.braceR)}function Ma(){for(R(O.bracketL);!W(O.bracketR)&&!M.error;)Na(),W(O.comma)}function Na(){W(O.ellipsis)?X():(X(),W(O.question)),W(O.colon)&&X()}function Pa(){R(O.parenL),X(),R(O.parenR)}function Fa(){for(lr(),lr();!G(O.backQuote)&&!M.error;)R(O.dollarBraceL),X(),lr(),lr();V()}var Ia;(function(e){e[e.TSFunctionType=0]=`TSFunctionType`,e[e.TSConstructorType=1]=`TSConstructorType`,e[e.TSAbstractConstructorType=2]=`TSAbstractConstructorType`})(Ia||={});function La(e){e===Ia.TSAbstractConstructorType&&I(D._abstract),(e===Ia.TSConstructorType||e===Ia.TSAbstractConstructorType)&&R(O._new);let t=M.inDisallowConditionalTypesContext;M.inDisallowConditionalTypesContext=!1,va(O.arrow),M.inDisallowConditionalTypesContext=t}function Ra(){switch(M.type){case O.name:ua();return;case O._void:case O._null:V();return;case O.string:case O.num:case O.bigint:case O.decimal:case O._true:case O._false:js();return;case O.minus:V(),js();return;case O._this:fa(),P(D._is)&&!Wn()&&da();return;case O._typeof:pa();return;case O._import:ma();return;case O.braceL:Oa()?ja():Ea();return;case O.bracketL:Ma();return;case O.parenL:Pa();return;case O.backQuote:Fa();return;default:if(M.type&O.IS_KEYWORD){V(),M.tokens[M.tokens.length-1].type=O.name;return}}z()}function za(){for(Ra();!Wn()&&W(O.bracketL);)W(O.bracketR)||(X(),R(O.bracketR))}function Ba(){if(I(D._infer),$(),G(O._extends)){let e=M.snapshot();R(O._extends);let t=M.inDisallowConditionalTypesContext;M.inDisallowConditionalTypesContext=!0,X(),M.inDisallowConditionalTypesContext=t,(M.error||!M.inDisallowConditionalTypesContext&&G(O.question))&&M.restoreFromSnapshot(e)}}function Va(){if(P(D._keyof)||P(D._unique)||P(D._readonly))V(),Va();else if(P(D._infer))Ba();else{let e=M.inDisallowConditionalTypesContext;M.inDisallowConditionalTypesContext=!1,za(),M.inDisallowConditionalTypesContext=e}}function Ha(){if(W(O.bitwiseAND),Va(),G(O.bitwiseAND))for(;W(O.bitwiseAND);)Va()}function Ua(){if(W(O.bitwiseOR),Ha(),G(O.bitwiseOR))for(;W(O.bitwiseOR);)Ha()}function Wa(){return G(O.lessThan)?!0:G(O.parenL)&&Ka()}function Ga(){if(G(O.name)||G(O._this))return V(),!0;if(G(O.braceL)||G(O.bracketL)){let e=1;for(V();e>0&&!M.error;)G(O.braceL)||G(O.bracketL)?e++:(G(O.braceR)||G(O.bracketR))&&e--,V();return!0}return!1}function Ka(){let e=M.snapshot(),t=qa();return M.restoreFromSnapshot(e),t}function qa(){return V(),!!(G(O.parenR)||G(O.ellipsis)||Ga()&&(G(O.colon)||G(O.comma)||G(O.question)||G(O.eq)||G(O.parenR)&&(V(),G(O.arrow))))}function Ja(e){let t=H(0);R(e),Qa()||X(),U(t)}function Ya(){G(O.colon)&&Ja(O.colon)}function Xa(){G(O.colon)&&$a()}function Za(){W(O.colon)&&X()}function Qa(){let e=M.snapshot();return P(D._asserts)?(V(),F(D._is)?(X(),!0):ia()||G(O._this)?(V(),F(D._is)&&X(),!0):(M.restoreFromSnapshot(e),!1)):ia()||G(O._this)?(V(),P(D._is)&&!Wn()?(V(),X(),!0):(M.restoreFromSnapshot(e),!1)):!1}function $a(){let e=H(0);R(O.colon),X(),U(e)}function X(){if(to(),M.inDisallowConditionalTypesContext||Wn()||!W(O._extends))return;let e=M.inDisallowConditionalTypesContext;M.inDisallowConditionalTypesContext=!0,to(),M.inDisallowConditionalTypesContext=e,R(O.question),X(),R(O.colon),X()}function eo(){return P(D._abstract)&&K()===O._new}function to(){Wa()?La(Ia.TSFunctionType):G(O._new)?La(Ia.TSConstructorType):eo()?La(Ia.TSAbstractConstructorType):Ua()}function no(){let e=H(1);X(),R(O.greaterThan),U(e),_s()}function ro(){if(W(O.jsxTagStart)){M.tokens[M.tokens.length-1].type=O.typeParameterStart;let e=H(1);for(;!G(O.greaterThan)&&!M.error;)X(),W(O.comma);os(),U(e)}}function io(){for(;!G(O.braceL)&&!M.error;)ao(),W(O.comma)}function ao(){la(),G(O.lessThan)&&To()}function oo(){Xi(!1),ga(),W(O._extends)&&io(),Da()}function so(){Xi(!1),ga(),R(O.eq),X(),L()}function co(){if(G(O.string)?js():$(),W(O.eq)){let e=M.tokens.length-1;Q(),M.tokens[e].rhsEndIndex=M.tokens.length}}function lo(){for(Xi(!1),R(O.braceL);!W(O.braceR)&&!M.error;)co(),W(O.comma)}function uo(){R(O.braceL),Yl(O.braceR)}function fo(){Xi(!1),W(O.dot)?fo():uo()}function po(){P(D._global)?$():G(O.string)?Os():z(),G(O.braceL)?uo():L()}function mo(){Zi(),R(O.eq),go(),L()}function ho(){return P(D._require)&&K()===O.parenL}function go(){ho()?_o():la()}function _o(){I(D._require),R(O.parenL),G(O.string)||z(),js(),R(O.parenR)}function vo(){if(Kn())return!1;switch(M.type){case O._function:{let e=H(1);V();let t=M.start;return eu(t,!0),U(e),!0}case O._class:{let e=H(1);return nu(!0,!1),U(e),!0}case O._const:if(G(O._const)&&Hn(D._enum)){let e=H(1);return R(O._const),I(D._enum),M.tokens[M.tokens.length-1].type=O._enum,lo(),U(e),!0}case O._var:case O._let:{let e=H(1);return Ul(M.type!==O._var),U(e),!0}case O.name:{let e=H(1),t=M.contextualKeyword,n=!1;return t===D._global?(po(),n=!0):n=xo(t,!0),U(e),n}default:return!1}}function yo(){return xo(M.contextualKeyword,!0)}function bo(e){switch(e){case D._declare:{let e=M.tokens.length-1;if(vo())return M.tokens[e].type=O._declare,!0;break}case D._global:if(G(O.braceL))return uo(),!0;break;default:return xo(e,!1)}return!1}function xo(e,t){switch(e){case D._abstract:if(So(t)&&G(O._class))return M.tokens[M.tokens.length-1].type=O._abstract,nu(!0,!1),!0;break;case D._enum:if(So(t)&&G(O.name))return M.tokens[M.tokens.length-1].type=O._enum,lo(),!0;break;case D._interface:if(So(t)&&G(O.name)){let e=H(t?2:1);return oo(),U(e),!0}break;case D._module:if(So(t)){if(G(O.string)){let e=H(t?2:1);return po(),U(e),!0}if(G(O.name)){let e=H(t?2:1);return fo(),U(e),!0}}break;case D._namespace:if(So(t)&&G(O.name)){let e=H(t?2:1);return fo(),U(e),!0}break;case D._type:if(So(t)&&G(O.name)){let e=H(t?2:1);return so(),U(e),!0}}return!1}function So(e){return e?(V(),!0):!Kn()}function Co(){let e=M.snapshot();return _a(),tu(),Ya(),R(O.arrow),M.error?(M.restoreFromSnapshot(e),!1):(Ys(!0),!0)}function wo(){M.type===O.bitShiftL&&(--M.pos,q(O.lessThan)),To()}function To(){let e=H(0);for(R(O.lessThan);!G(O.greaterThan)&&!M.error;)X(),W(O.comma);e?(R(O.greaterThan),U(e)):(U(e),Ar(),R(O.greaterThan),M.tokens[M.tokens.length-1].isType=!0)}function Eo(){if(G(O.name))switch(M.contextualKeyword){case D._abstract:case D._declare:case D._enum:case D._interface:case D._module:case D._namespace:case D._type:return!0}return!1}function Do(e,t){if(G(O.colon)&&Ja(O.colon),!G(O.braceL)&&Kn()){let t=M.tokens.length-1;for(;t>=0&&(M.tokens[t].start>=e||M.tokens[t].type===O._default||M.tokens[t].type===O._export);)M.tokens[t].isType=!0,t--}else Ys(!1,t)}function Oo(e,t,n){if(!Wn()&&W(O.bang))M.tokens[M.tokens.length-1].type=O.nonNullAssertion;else{if(G(O.lessThan)||G(O.bitShiftL)){let n=M.snapshot();if(!t&&Cs()&&Co())return;if(wo(),!t&&W(O.parenL)?(M.tokens[M.tokens.length-1].subscriptStartIndex=e,ws()):G(O.backQuote)?zs():(M.type===O.greaterThan||M.type!==O.parenL&&M.type&O.IS_EXPRESSION_START&&!Wn())&&z(),M.error)M.restoreFromSnapshot(n);else return}else!t&&G(O.questionDot)&&K()===O.lessThan&&(V(),M.tokens[e].isOptionalChainStart=!0,M.tokens[M.tokens.length-1].subscriptStartIndex=e,To(),R(O.parenL),ws());Ss(e,t,n)}}function ko(){if(W(O._import))return P(D._type)&&K()!==O.eq&&I(D._type),mo(),!0;if(W(O.eq))return Z(),L(),!0;if(F(D._as))return I(D._namespace),$(),L(),!0;if(P(D._type)){let e=K();(e===O.braceL||e===O.star)&&V()}return!1}function Ao(){$(),G(O.comma)||G(O.braceR)?M.tokens[M.tokens.length-1].identifierRole=B.ImportDeclaration:($(),G(O.comma)||G(O.braceR)?(M.tokens[M.tokens.length-1].identifierRole=B.ImportDeclaration,M.tokens[M.tokens.length-2].isType=!0,M.tokens[M.tokens.length-1].isType=!0):($(),G(O.comma)||G(O.braceR)?(M.tokens[M.tokens.length-3].identifierRole=B.ImportAccess,M.tokens[M.tokens.length-1].identifierRole=B.ImportDeclaration):($(),M.tokens[M.tokens.length-3].identifierRole=B.ImportAccess,M.tokens[M.tokens.length-1].identifierRole=B.ImportDeclaration,M.tokens[M.tokens.length-4].isType=!0,M.tokens[M.tokens.length-3].isType=!0,M.tokens[M.tokens.length-2].isType=!0,M.tokens[M.tokens.length-1].isType=!0)))}function jo(){$(),G(O.comma)||G(O.braceR)?M.tokens[M.tokens.length-1].identifierRole=B.ExportAccess:($(),G(O.comma)||G(O.braceR)?(M.tokens[M.tokens.length-1].identifierRole=B.ExportAccess,M.tokens[M.tokens.length-2].isType=!0,M.tokens[M.tokens.length-1].isType=!0):($(),G(O.comma)||G(O.braceR)?M.tokens[M.tokens.length-3].identifierRole=B.ExportAccess:($(),M.tokens[M.tokens.length-3].identifierRole=B.ExportAccess,M.tokens[M.tokens.length-4].isType=!0,M.tokens[M.tokens.length-3].isType=!0,M.tokens[M.tokens.length-2].isType=!0,M.tokens[M.tokens.length-1].isType=!0)))}function Mo(){if(P(D._abstract)&&K()===O._class)return M.type=O._abstract,V(),nu(!0,!0),!0;if(P(D._interface)){let e=H(2);return xo(D._interface,!0),U(e),!0}return!1}function No(){if(M.type===O._const){let e=pr();if(e.type===O.name&&e.contextualKeyword===D._enum)return R(O._const),I(D._enum),M.tokens[M.tokens.length-1].type=O._enum,lo(),!0}return!1}function Po(e){let t=M.tokens.length;sa([D._abstract,D._readonly,D._declare,D._static,D._override]);let n=M.tokens.length;if(Ca()){let r=e?t-1:t;for(let e=r;e<n;e++)M.tokens[e].isType=!0;return!0}return!1}function Fo(e){bo(e)||L()}function Io(){let e=F(D._declare);e&&(M.tokens[M.tokens.length-1].type=O._declare);let t=!1;if(G(O.name)){if(e){let e=H(2);t=yo(),U(e)}else t=yo()}if(!t){if(e){let e=H(2);Cl(!0),U(e)}else Cl(!0)}}function Lo(e){if(e&&(G(O.lessThan)||G(O.bitShiftL))&&wo(),F(D._implements)){M.tokens[M.tokens.length-1].type=O._implements;let e=H(1);io(),U(e)}}function Ro(){ga()}function zo(){ga()}function Bo(){let e=H(0);Wn()||W(O.bang),Xa(),U(e)}function Vo(){G(O.colon)&&$a()}function Ho(e,t){return Fn?Uo(e,t):Wo(e,t)}function Uo(e,t){if(!G(O.lessThan))return ds(e,t);let n=M.snapshot(),r=ds(e,t);if(M.error)M.restoreFromSnapshot(n);else return r;return M.type=O.typeParameterStart,_a(),r=ds(e,t),r||z(),r}function Wo(e,t){if(!G(O.lessThan))return ds(e,t);let n=M.snapshot();_a();let r=ds(e,t);if(r||z(),M.error)M.restoreFromSnapshot(n);else return r;return ds(e,t)}function Go(){if(G(O.colon)){let e=M.snapshot();Ja(O.colon),Un()&&z(),G(O.arrow)||z(),M.error&&M.restoreFromSnapshot(e)}return W(O.arrow)}function Ko(){let e=H(0);W(O.question),Xa(),U(e)}function qo(){(G(O.lessThan)||G(O.bitShiftL))&&wo(),kl()}function Jo(){let e=!1,t=!1;for(;;){if(M.pos>=N.length){z(`Unterminated JSX contents`);return}let n=N.charCodeAt(M.pos);if(n===k.lessThan||n===k.leftCurlyBrace){if(M.pos===M.start){if(n===k.lessThan){M.pos++,q(O.jsxTagStart);return}Nr(n);return}q(e&&!t?O.jsxEmptyText:O.jsxText);return}n===k.lineFeed?e=!0:n!==k.space&&n!==k.carriageReturn&&n!==k.tab&&(t=!0),M.pos++}}function Yo(e){for(M.pos++;;){if(M.pos>=N.length){z(`Unterminated string constant`);return}if(N.charCodeAt(M.pos)===e){M.pos++;break}M.pos++}q(O.string)}function Xo(){let e;do{if(M.pos>N.length){z(`Unexpectedly reached the end of input.`);return}e=N.charCodeAt(++M.pos)}while(Zn[e]||e===k.dash);q(O.jsxName)}function Zo(){os()}function Qo(e){Zo(),W(O.colon)?Zo():M.tokens[M.tokens.length-1].identifierRole=e}function $o(){let e=M.tokens.length;Qo(B.Access);let t=!1;for(;G(O.dot);)t=!0,os(),Zo();if(!t){let t=M.tokens[e],n=N.charCodeAt(t.start);n>=k.lowercaseA&&n<=k.lowercaseZ&&(t.identifierRole=null)}}function es(){switch(M.type){case O.braceL:V(),Z(),os();return;case O.jsxTagStart:as(),os();return;case O.string:os();return;default:z(`JSX value should be either an expression or a quoted JSX text`)}}function ts(){R(O.ellipsis),Z()}function ns(e){if(G(O.jsxTagEnd))return!1;$o(),A&&ro();let t=!1;for(;!G(O.slash)&&!G(O.jsxTagEnd)&&!M.error;)W(O.braceL)?(t=!0,R(O.ellipsis),Q(),os()):(t&&M.end-M.start===3&&N.charCodeAt(M.start)===k.lowercaseK&&N.charCodeAt(M.start+1)===k.lowercaseE&&N.charCodeAt(M.start+2)===k.lowercaseY&&(M.tokens[e].jsxRole=tr.KeyAfterPropSpread),Qo(B.ObjectKey),G(O.eq)&&(os(),es()));let n=G(O.slash);return n&&os(),n}function rs(){G(O.jsxTagEnd)||$o()}function is(){let e=M.tokens.length-1;M.tokens[e].jsxRole=tr.NoChildren;let t=0;if(!ns(e))for(ss();;)switch(M.type){case O.jsxTagStart:if(os(),G(O.slash)){os(),rs(),M.tokens[e].jsxRole!==tr.KeyAfterPropSpread&&(t===1?M.tokens[e].jsxRole=tr.OneChild:t>1&&(M.tokens[e].jsxRole=tr.StaticChildren));return}t++,is(),ss();break;case O.jsxText:t++,ss();break;case O.jsxEmptyText:ss();break;case O.braceL:V(),G(O.ellipsis)?(ts(),ss(),t+=2):(G(O.braceR)||(t++,Z()),ss());break;default:z();return}}function as(){os(),is()}function os(){M.tokens.push(new cr),xr(),M.start=M.pos;let e=N.charCodeAt(M.pos);if(Qn[e])Xo();else if(e===k.quotationMark||e===k.apostrophe)Yo(e);else switch(++M.pos,e){case k.greaterThan:q(O.jsxTagEnd);break;case k.lessThan:q(O.jsxTagStart);break;case k.slash:q(O.slash);break;case k.equalsTo:q(O.eq);break;case k.leftCurlyBrace:q(O.braceL);break;case k.dot:q(O.dot);break;case k.colon:q(O.colon);break;default:z()}}function ss(){M.tokens.push(new cr),M.start=M.pos,Jo()}function cs(e){if(G(O.question)){let e=K();if(e===O.colon||e===O.comma||e===O.parenR)return}ms(e)}function ls(){dr(O.question),G(O.colon)&&(A?$a():j&&Kc())}var us=class{constructor(e){this.stop=e}};function Z(e=!1){if(Q(e),G(O.comma))for(;W(O.comma);)Q(e)}function Q(e=!1,t=!1){return A?Ho(e,t):j?ml(e,t):ds(e,t)}function ds(e,t){if(G(O._yield))return $s(),!1;(G(O.parenL)||G(O.name)||G(O._yield))&&(M.potentialArrowAt=M.start);let n=fs(e);return t&&Is(),M.type&O.IS_ASSIGN?(V(),Q(e),!1):n}function fs(e){return hs(e)?!0:(ps(e),!1)}function ps(e){A||j?cs(e):ms(e)}function ms(e){W(O.question)&&(Q(),R(O.colon),Q(e))}function hs(e){let t=M.tokens.length;return _s()?!0:(gs(t,-1,e),!1)}function gs(e,t,n){if(A&&(O._in&O.PRECEDENCE_MASK)>t&&!Wn()&&(F(D._as)||F(D._satisfies))){let r=H(1);X(),U(r),Ar(),gs(e,t,n);return}let r=M.type&O.PRECEDENCE_MASK;if(r>0&&(!n||!G(O._in))&&r>t){let i=M.type;V(),i===O.nullishCoalescing&&(M.tokens[M.tokens.length-1].nullishStartIndex=e);let a=M.tokens.length;_s(),gs(a,i&O.IS_RIGHT_ASSOCIATIVE?r-1:r,n),i===O.nullishCoalescing&&(M.tokens[e].numNullishCoalesceStarts++,M.tokens[M.tokens.length-1].numNullishCoalesceEnds++),gs(e,t,n)}}function _s(){if(A&&!Fn&&W(O.lessThan))return no(),!1;if(P(D._module)&&gr()===k.leftCurlyBrace&&!Gn())return ec(),!1;if(M.type&O.IS_PREFIX)return V(),_s(),!1;if(vs())return!0;for(;M.type&O.IS_POSTFIX&&!Un();)M.type===O.preIncDec&&(M.type=O.postIncDec),V();return!1}function vs(){let e=M.tokens.length;return Os()?!0:(ys(e),M.tokens.length>e&&M.tokens[e].isOptionalChainStart&&(M.tokens[M.tokens.length-1].isOptionalChainEnd=!0),!1)}function ys(e,t=!1){j?gl(e,t):bs(e,t)}function bs(e,t=!1){let n=new us(!1);do xs(e,t,n);while(!n.stop&&!M.error)}function xs(e,t,n){A?Oo(e,t,n):j?Xc(e,t,n):Ss(e,t,n)}function Ss(e,t,n){if(!t&&W(O.doubleColon))Ds(),n.stop=!0,ys(e,t);else if(G(O.questionDot)){if(M.tokens[e].isOptionalChainStart=!0,t&&K()===O.parenL){n.stop=!0;return}V(),M.tokens[M.tokens.length-1].subscriptStartIndex=e,W(O.bracketL)?(Z(),R(O.bracketR)):W(O.parenL)?ws():ks()}else if(W(O.dot))M.tokens[M.tokens.length-1].subscriptStartIndex=e,ks();else if(W(O.bracketL))M.tokens[M.tokens.length-1].subscriptStartIndex=e,Z(),R(O.bracketR);else if(!t&&G(O.parenL)){if(Cs()){let t=M.snapshot(),r=M.tokens.length;V(),M.tokens[M.tokens.length-1].subscriptStartIndex=e;let i=Ln();M.tokens[M.tokens.length-1].contextId=i,ws(),M.tokens[M.tokens.length-1].contextId=i,Ts()&&(M.restoreFromSnapshot(t),n.stop=!0,M.scopeDepth++,tu(),Es(r))}else{V(),M.tokens[M.tokens.length-1].subscriptStartIndex=e;let t=Ln();M.tokens[M.tokens.length-1].contextId=t,ws(),M.tokens[M.tokens.length-1].contextId=t}}else G(O.backQuote)?zs():n.stop=!0}function Cs(){return M.tokens[M.tokens.length-1].contextualKeyword===D._async&&!Un()}function ws(){let e=!0;for(;!W(O.parenR)&&!M.error;){if(e)e=!1;else if(R(O.comma),W(O.parenR))break;Zs(!1)}}function Ts(){return G(O.colon)||G(O.arrow)}function Es(e){A?Vo():j&&pl(),R(O.arrow),qs(e)}function Ds(){let e=M.tokens.length;Os(),ys(e,!0)}function Os(){if(W(O.modulo))return $(),!1;if(G(O.jsxText)||G(O.jsxEmptyText))return js(),!1;if(G(O.lessThan)&&Fn)return M.type=O.jsxTagStart,as(),V(),!1;let e=M.potentialArrowAt===M.start;switch(M.type){case O.slash:case O.assign:ur();case O._super:case O._this:case O.regexp:case O.num:case O.bigint:case O.decimal:case O.string:case O._null:case O._true:case O._false:return V(),!1;case O._import:return V(),G(O.dot)&&(M.tokens[M.tokens.length-1].type=O.name,V(),$()),!1;case O.name:{let t=M.tokens.length,n=M.start,r=M.contextualKeyword;return $(),r===D._await?(Qs(),!1):r===D._async&&G(O._function)&&!Un()?(V(),eu(n,!1),!1):e&&r===D._async&&!Un()&&G(O.name)?(M.scopeDepth++,Xi(!1),R(O.arrow),qs(t),!0):G(O._do)&&!Un()?(V(),Jl(),!1):e&&!Un()&&G(O.arrow)?(M.scopeDepth++,Qi(!1),R(O.arrow),qs(t),!0):(M.tokens[M.tokens.length-1].identifierRole=B.Access,!1)}case O._do:return V(),Jl(),!1;case O.parenL:return Ns(e);case O.bracketL:return V(),Xs(O.bracketR,!0),!1;case O.braceL:return Bs(!1,!1),!1;case O._function:return As(),!1;case O.at:El();case O._class:return nu(!1),!1;case O._new:return Ls(),!1;case O.backQuote:return zs(),!1;case O.doubleColon:return V(),Ds(),!1;case O.hash:{let e=gr();return Qn[e]||e===k.backslash?ks():V(),!1}default:return z(),!1}}function ks(){W(O.hash),$()}function As(){let e=M.start;$(),W(O.dot)&&$(),eu(e,!1)}function js(){V()}function Ms(){R(O.parenL),Z(),R(O.parenR)}function Ns(e){let t=M.snapshot(),n=M.tokens.length;R(O.parenL);let r=!0;for(;!G(O.parenR)&&!M.error;){if(r)r=!1;else if(R(O.comma),G(O.parenR))break;if(G(O.ellipsis)){Yi(!1),Is();break}Q(!1,!0)}return R(O.parenR),e&&Ps()&&Fs()?(M.restoreFromSnapshot(t),M.scopeDepth++,tu(),Fs(),qs(n),!M.error||(M.restoreFromSnapshot(t),Ns(!1),!1)):!1}function Ps(){return G(O.colon)||!Un()}function Fs(){return A?Go():j?hl():W(O.arrow)}function Is(){(A||j)&&ls()}function Ls(){R(O._new),W(O.dot)?$():(Rs(),j&&Zc(),W(O.parenL)&&Xs(O.parenR))}function Rs(){Ds(),W(O.questionDot)}function zs(){for(lr(),lr();!G(O.backQuote)&&!M.error;)R(O.dollarBraceL),Z(),lr(),lr();V()}function Bs(e,t){let n=Ln(),r=!0;for(V(),M.tokens[M.tokens.length-1].contextId=n;!W(O.braceR)&&!M.error;){if(r)r=!1;else if(R(O.comma),W(O.braceR))break;let i=!1;if(G(O.ellipsis)){let n=M.tokens.length;if(Ji(),e&&(M.tokens.length===n+2&&Qi(t),W(O.braceR)))break}else e||(i=W(O.star)),!e&&P(D._async)?(i&&z(),$(),G(O.colon)||G(O.parenL)||G(O.braceR)||G(O.eq)||G(O.comma)||(G(O.star)&&(V(),i=!0),Gs(n))):Gs(n),Ws(e,t,n)}M.tokens[M.tokens.length-1].contextId=n}function Vs(e){return!e&&(G(O.string)||G(O.num)||G(O.bracketL)||G(O.name)||!!(M.type&O.IS_KEYWORD))}function Hs(e,t){let n=M.start;return G(O.parenL)?(e&&z(),Ks(n,!1),!0):Vs(e)?(Gs(t),Ks(n,!1),!0):!1}function Us(e,t){if(W(O.colon)){e?ra(t):Q(!1);return}let n;n=e?M.scopeDepth===0?B.ObjectShorthandTopLevelDeclaration:t?B.ObjectShorthandBlockScopedDeclaration:B.ObjectShorthandFunctionScopedDeclaration:B.ObjectShorthand,M.tokens[M.tokens.length-1].identifierRole=n,ra(t,!0)}function Ws(e,t,n){A?Ro():j&&sl(),Hs(e,n)||Us(e,t)}function Gs(e){j&&Jc(),W(O.bracketL)?(M.tokens[M.tokens.length-1].contextId=e,Q(),R(O.bracketR),M.tokens[M.tokens.length-1].contextId=e):(G(O.num)||G(O.string)||G(O.bigint)||G(O.decimal)?Os():ks(),M.tokens[M.tokens.length-1].identifierRole=B.ObjectKey,M.tokens[M.tokens.length-1].contextId=e)}function Ks(e,t){let n=Ln();M.scopeDepth++;let r=M.tokens.length;tu(t,n),Js(e,n);let i=M.tokens.length;M.scopes.push(new Mn(r,i,!0)),M.scopeDepth--}function qs(e){Ys(!0);let t=M.tokens.length;M.scopes.push(new Mn(e,t,!0)),M.scopeDepth--}function Js(e,t=0){A?Do(e,t):j?Yc(t):Ys(!1,t)}function Ys(e,t=0){e&&!G(O.braceL)?Q():Jl(!0,t)}function Xs(e,t=!1){let n=!0;for(;!W(e)&&!M.error;){if(n)n=!1;else if(R(O.comma),W(e))break;Zs(t)}}function Zs(e){e&&G(O.comma)||(G(O.ellipsis)?(Ji(),Is()):G(O.question)?V():Q(!1,!0))}function $(){V(),M.tokens[M.tokens.length-1].type=O.name}function Qs(){_s()}function $s(){V(),!G(O.semi)&&!Un()&&(W(O.star),Q())}function ec(){I(D._module),R(O.braceL),Yl(O.braceR)}function tc(e){return(e.type===O.name||!!(e.type&O.IS_KEYWORD))&&e.contextualKeyword!==D._from}function nc(e){let t=H(0);R(e||O.colon),Gc(),U(t)}function rc(){R(O.modulo),I(D._checks),W(O.parenL)&&(Z(),R(O.parenR))}function ic(){let e=H(0);R(O.colon),G(O.modulo)?rc():(Gc(),G(O.modulo)&&rc()),U(e)}function ac(){V(),hc(!0)}function oc(){V(),$(),G(O.lessThan)&&Sc(),R(O.parenL),Rc(),R(O.parenR),ic(),L()}function sc(){G(O._class)?ac():G(O._function)?oc():G(O._var)?cc():F(D._module)?W(O.dot)?dc():lc():P(D._type)?fc():P(D._opaque)?pc():P(D._interface)?mc():G(O._export)?uc():z()}function cc(){V(),qc(),L()}function lc(){for(G(O.string)?Os():$(),R(O.braceL);!G(O.braceR)&&!M.error;)G(O._import)?(V(),ku()):z();R(O.braceR)}function uc(){R(O._export),W(O._default)?G(O._function)||G(O._class)?sc():(Gc(),L()):G(O._var)||G(O._function)||G(O._class)||P(D._opaque)?sc():G(O.star)||G(O.braceL)||P(D._interface)||P(D._type)||P(D._opaque)?mu():z()}function dc(){I(D._exports),Kc(),L()}function fc(){V(),yc()}function pc(){V(),bc(!0)}function mc(){V(),hc()}function hc(e=!1){if(vc(),G(O.lessThan)&&Sc(),W(O._extends))do gc();while(!e&&W(O.comma));if(P(D._mixins)){V();do gc();while(W(O.comma))}if(P(D._implements)){V();do gc();while(W(O.comma))}Ac(e,!1,e)}function gc(){Nc(!1),G(O.lessThan)&&Cc()}function _c(){hc()}function vc(){$()}function yc(){vc(),G(O.lessThan)&&Sc(),nc(O.eq),L()}function bc(e){I(D._type),vc(),G(O.lessThan)&&Sc(),G(O.colon)&&nc(O.colon),e||nc(O.eq),L()}function xc(){Jc(),qc(),W(O.eq)&&Gc()}function Sc(){let e=H(0);G(O.lessThan)||G(O.typeParameterStart)?V():z();do xc(),G(O.greaterThan)||R(O.comma);while(!G(O.greaterThan)&&!M.error);R(O.greaterThan),U(e)}function Cc(){let e=H(0);for(R(O.lessThan);!G(O.greaterThan)&&!M.error;)Gc(),G(O.greaterThan)||R(O.comma);R(O.greaterThan),U(e)}function wc(){if(I(D._interface),W(O._extends))do gc();while(W(O.comma));Ac(!1,!1,!1)}function Tc(){G(O.num)||G(O.string)?Os():$()}function Ec(){K()===O.colon?(Tc(),nc()):Gc(),R(O.bracketR),nc()}function Dc(){Tc(),R(O.bracketR),R(O.bracketR),G(O.lessThan)||G(O.parenL)?Oc():(W(O.question),nc())}function Oc(){for(G(O.lessThan)&&Sc(),R(O.parenL);!G(O.parenR)&&!G(O.ellipsis)&&!M.error;)Lc(),G(O.parenR)||R(O.comma);W(O.ellipsis)&&Lc(),R(O.parenR),nc()}function kc(){Oc()}function Ac(e,t,n){let r;for(t&&G(O.braceBarL)?(R(O.braceBarL),r=O.braceBarR):(R(O.braceL),r=O.braceR);!G(r)&&!M.error;){if(n&&P(D._proto)){let t=K();t!==O.colon&&t!==O.question&&(V(),e=!1)}if(e&&P(D._static)){let e=K();e!==O.colon&&e!==O.question&&V()}if(Jc(),W(O.bracketL))W(O.bracketL)?Dc():Ec();else if(G(O.parenL)||G(O.lessThan))kc();else{if(P(D._get)||P(D._set)){let e=K();(e===O.name||e===O.string||e===O.num)&&V()}jc()}Mc()}R(r)}function jc(){if(G(O.ellipsis)){if(R(O.ellipsis),W(O.comma)||W(O.semi),G(O.braceR))return;Gc()}else Tc(),G(O.lessThan)||G(O.parenL)?Oc():(W(O.question),nc())}function Mc(){W(O.semi)||W(O.comma)||G(O.braceR)||G(O.braceBarR)||z()}function Nc(e){for(e||$();W(O.dot);)$()}function Pc(){Nc(!0),G(O.lessThan)&&Cc()}function Fc(){R(O._typeof),zc()}function Ic(){for(R(O.bracketL);M.pos<N.length&&!G(O.bracketR)&&(Gc(),!G(O.bracketR));)R(O.comma);R(O.bracketR)}function Lc(){let e=K();e===O.colon||e===O.question?($(),W(O.question),nc()):Gc()}function Rc(){for(;!G(O.parenR)&&!G(O.ellipsis)&&!M.error;)Lc(),G(O.parenR)||R(O.comma);W(O.ellipsis)&&Lc()}function zc(){let e=!1,t=M.noAnonFunctionType;switch(M.type){case O.name:if(P(D._interface)){wc();return}$(),Pc();return;case O.braceL:Ac(!1,!1,!1);return;case O.braceBarL:Ac(!1,!0,!1);return;case O.bracketL:Ic();return;case O.lessThan:Sc(),R(O.parenL),Rc(),R(O.parenR),R(O.arrow),Gc();return;case O.parenL:if(V(),!G(O.parenR)&&!G(O.ellipsis)){if(G(O.name)){let t=K();e=t!==O.question&&t!==O.colon}else e=!0}if(e){if(M.noAnonFunctionType=!1,Gc(),M.noAnonFunctionType=t,M.noAnonFunctionType||!(G(O.comma)||G(O.parenR)&&K()===O.arrow)){R(O.parenR);return}W(O.comma)}Rc(),R(O.parenR),R(O.arrow),Gc();return;case O.minus:V(),js();return;case O.string:case O.num:case O._true:case O._false:case O._null:case O._this:case O._void:case O.star:V();return;default:if(M.type===O._typeof){Fc();return}if(M.type&O.IS_KEYWORD){V(),M.tokens[M.tokens.length-1].type=O.name;return}}z()}function Bc(){for(zc();!Un()&&(G(O.bracketL)||G(O.questionDot));)W(O.questionDot),R(O.bracketL),W(O.bracketR)||(Gc(),R(O.bracketR))}function Vc(){W(O.question)?Vc():Bc()}function Hc(){Vc(),!M.noAnonFunctionType&&W(O.arrow)&&Gc()}function Uc(){for(W(O.bitwiseAND),Hc();W(O.bitwiseAND);)Hc()}function Wc(){for(W(O.bitwiseOR),Uc();W(O.bitwiseOR);)Uc()}function Gc(){Wc()}function Kc(){nc()}function qc(){$(),G(O.colon)&&Kc()}function Jc(){(G(O.plus)||G(O.minus))&&(V(),M.tokens[M.tokens.length-1].isType=!0)}function Yc(e){G(O.colon)&&ic(),Ys(!1,e)}function Xc(e,t,n){if(G(O.questionDot)&&K()===O.lessThan){if(t){n.stop=!0;return}V(),Cc(),R(O.parenL),ws()}else{if(!t&&G(O.lessThan)){let e=M.snapshot();if(Cc(),R(O.parenL),ws(),M.error)M.restoreFromSnapshot(e);else return}Ss(e,t,n)}}function Zc(){if(G(O.lessThan)){let e=M.snapshot();Cc(),M.error&&M.restoreFromSnapshot(e)}}function Qc(){if(G(O.name)&&M.contextualKeyword===D._interface){let e=H(0);return V(),_c(),U(e),!0}return P(D._enum)?(vl(),!0):!1}function $c(){return P(D._enum)?(vl(),!0):!1}function el(e){if(e===D._declare){if(G(O._class)||G(O.name)||G(O._function)||G(O._var)||G(O._export)){let e=H(1);sc(),U(e)}}else if(G(O.name)){if(e===D._interface){let e=H(1);_c(),U(e)}else if(e===D._type){let e=H(1);yc(),U(e)}else if(e===D._opaque){let e=H(1);bc(!1),U(e)}}L()}function tl(){return P(D._type)||P(D._interface)||P(D._opaque)||P(D._enum)}function nl(){return G(O.name)&&(M.contextualKeyword===D._type||M.contextualKeyword===D._interface||M.contextualKeyword===D._opaque||M.contextualKeyword===D._enum)}function rl(){if(P(D._type)){let e=H(1);V(),G(O.braceL)?(Tu(),yu()):yc(),U(e)}else if(P(D._opaque)){let e=H(1);V(),bc(!1),U(e)}else if(P(D._interface)){let e=H(1);V(),_c(),U(e)}else Cl(!0)}function il(){return G(O.star)||P(D._type)&&K()===O.star}function al(){if(F(D._type)){let e=H(2);Su(),U(e)}else Su()}function ol(e){if(e&&G(O.lessThan)&&Cc(),P(D._implements)){let e=H(0);V(),M.tokens[M.tokens.length-1].type=O._implements;do vc(),G(O.lessThan)&&Cc();while(W(O.comma));U(e)}}function sl(){G(O.lessThan)&&(Sc(),G(O.parenL)||z())}function cl(){let e=H(0);W(O.question),G(O.colon)&&Kc(),U(e)}function ll(){if(G(O._typeof)||P(D._type)){let e=pr();(tc(e)||e.type===O.braceL||e.type===O.star)&&V()}}function ul(){let e=M.contextualKeyword===D._type||M.type===O._typeof;e?V():$(),P(D._as)&&!Hn(D._as)?($(),e&&!G(O.name)&&!(M.type&O.IS_KEYWORD)||$()):(e&&(G(O.name)||M.type&O.IS_KEYWORD)&&$(),F(D._as)&&$())}function dl(){if(G(O.lessThan)){let e=H(0);Sc(),U(e)}}function fl(){G(O.colon)&&Kc()}function pl(){if(G(O.colon)){let e=M.noAnonFunctionType;M.noAnonFunctionType=!0,Kc(),M.noAnonFunctionType=e}}function ml(e,t){if(G(O.lessThan)){let n=M.snapshot(),r=ds(e,t);if(M.error)M.restoreFromSnapshot(n),M.type=O.typeParameterStart;else return r;let i=H(0);if(Sc(),U(i),r=ds(e,t),r)return!0;z()}return ds(e,t)}function hl(){if(G(O.colon)){let e=H(0),t=M.snapshot(),n=M.noAnonFunctionType;M.noAnonFunctionType=!0,ic(),M.noAnonFunctionType=n,Un()&&z(),G(O.arrow)||z(),M.error&&M.restoreFromSnapshot(t),U(e)}return W(O.arrow)}function gl(e,t=!1){if(M.tokens[M.tokens.length-1].contextualKeyword===D._async&&G(O.lessThan)){let e=M.snapshot();if(_l()&&!M.error)return;M.restoreFromSnapshot(e)}bs(e,t)}function _l(){M.scopeDepth++;let e=M.tokens.length;return tu(),Fs()?(qs(e),!0):!1}function vl(){I(D._enum),M.tokens[M.tokens.length-1].type=O._enum,$(),yl()}function yl(){F(D._of)&&V(),R(O.braceL),bl(),R(O.braceR)}function bl(){for(;!G(O.braceR)&&!M.error&&!W(O.ellipsis);)xl(),G(O.braceR)||R(O.comma)}function xl(){$(),W(O.eq)&&V()}function Sl(){if(Yl(O.eof),M.scopes.push(new Mn(0,M.tokens.length,!0)),M.scopeDepth!==0)throw Error(`Invalid scope depth at end of file: ${M.scopeDepth}`);return new Iu(M.tokens,M.scopes)}function Cl(e){j&&Qc()||(G(O.at)&&El(),wl(e))}function wl(e){if(A&&No())return;let t=M.type;switch(t){case O._break:case O._continue:Al();return;case O._debugger:jl();return;case O._do:Ml();return;case O._for:Nl();return;case O._function:if(K()===O.dot)break;e||z(),Il();return;case O._class:e||z(),nu(!0);return;case O._if:Ll();return;case O._return:Rl();return;case O._switch:zl();return;case O._throw:Bl();return;case O._try:Hl();return;case O._let:case O._const:e||z();case O._var:Ul(t!==O._var);return;case O._while:Wl();return;case O.braceL:Jl();return;case O.semi:Gl();return;case O._export:case O._import:{let e=K();if(e===O.parenL||e===O.dot)break;V(),t===O._import?ku():mu();return}case O.name:if(M.contextualKeyword===D._async){let e=M.start,t=M.snapshot();if(V(),G(O._function)&&!Un()){R(O._function),eu(e,!0);return}M.restoreFromSnapshot(t)}else if(M.contextualKeyword===D._using&&!Gn()&&K()===O.name){Ul(!0);return}else if(Tl()){I(D._await),Ul(!0);return}}let n=M.tokens.length;Z();let r=null;if(M.tokens.length===n+1){let e=M.tokens[M.tokens.length-1];e.type===O.name&&(r=e.contextualKeyword)}r==null?L():W(O.colon)?Kl():ql(r)}function Tl(){if(!P(D._await))return!1;let e=M.snapshot();return V(),!P(D._using)||Wn()?(M.restoreFromSnapshot(e),!1):(V(),!G(O.name)||Wn()?(M.restoreFromSnapshot(e),!1):(M.restoreFromSnapshot(e),!0))}function El(){for(;G(O.at);)Dl()}function Dl(){if(V(),W(O.parenL))Z(),R(O.parenR);else{for($();W(O.dot);)$();Ol()}}function Ol(){A?qo():kl()}function kl(){W(O.parenL)&&ws()}function Al(){V(),Kn()||($(),L())}function jl(){V(),L()}function Ml(){V(),Cl(!1),R(O._while),Ms(),W(O.semi)}function Nl(){M.scopeDepth++;let e=M.tokens.length;Fl();let t=M.tokens.length;M.scopes.push(new Mn(e,t,!1)),M.scopeDepth--}function Pl(){return!(!P(D._using)||Hn(D._of))}function Fl(){V();let e=!1;if(P(D._await)&&(e=!0,V()),R(O.parenL),G(O.semi)){e&&z(),Xl();return}let t=Tl();if(t||G(O._var)||G(O._let)||G(O._const)||Pl()){if(t&&I(D._await),V(),Ql(!0,M.type!==O._var),G(O._in)||P(D._of)){Zl(e);return}Xl()}else Z(!0),G(O._in)||P(D._of)?Zl(e):(e&&z(),Xl())}function Il(){let e=M.start;V(),eu(e,!0)}function Ll(){V(),Ms(),Cl(!1),W(O._else)&&Cl(!1)}function Rl(){V(),Kn()||(Z(),L())}function zl(){V(),Ms(),M.scopeDepth++;let e=M.tokens.length;for(R(O.braceL);!G(O.braceR)&&!M.error;)if(G(O._case)||G(O._default)){let e=G(O._case);V(),e&&Z(),R(O.colon)}else Cl(!0);V();let t=M.tokens.length;M.scopes.push(new Mn(e,t,!1)),M.scopeDepth--}function Bl(){V(),Z(),L()}function Vl(){$i(!0),A&&Xa()}function Hl(){if(V(),Jl(),G(O._catch)){V();let e=null;if(G(O.parenL)&&(M.scopeDepth++,e=M.tokens.length,R(O.parenL),Vl(),R(O.parenR)),Jl(),e!=null){let t=M.tokens.length;M.scopes.push(new Mn(e,t,!1)),M.scopeDepth--}}W(O._finally)&&Jl()}function Ul(e){V(),Ql(!1,e),L()}function Wl(){V(),Ms(),Cl(!1)}function Gl(){V()}function Kl(){Cl(!0)}function ql(e){A?Fo(e):j?el(e):L()}function Jl(e=!1,t=0){let n=M.tokens.length;M.scopeDepth++,R(O.braceL),t&&(M.tokens[M.tokens.length-1].contextId=t),Yl(O.braceR),t&&(M.tokens[M.tokens.length-1].contextId=t);let r=M.tokens.length;M.scopes.push(new Mn(n,r,e)),M.scopeDepth--}function Yl(e){for(;!W(e)&&!M.error;)Cl(!0)}function Xl(){R(O.semi),G(O.semi)||Z(),R(O.semi),G(O.parenR)||Z(),R(O.parenR),Cl(!1)}function Zl(e){e?F(D._of):V(),Z(),R(O.parenR),Cl(!1)}function Ql(e,t){for(;;){if($l(t),W(O.eq)){let t=M.tokens.length-1;Q(e),M.tokens[t].rhsEndIndex=M.tokens.length}if(!W(O.comma))break}}function $l(e){$i(e),A?Bo():j&&fl()}function eu(e,t,n=!1){G(O.star)&&V(),t&&!n&&!G(O.name)&&!G(O._yield)&&z();let r=null;G(O.name)&&(t||(r=M.tokens.length,M.scopeDepth++),Xi(!1));let i=M.tokens.length;M.scopeDepth++,tu(),Js(e);let a=M.tokens.length;M.scopes.push(new Mn(i,a,!0)),M.scopeDepth--,r!==null&&(M.scopes.push(new Mn(r,a,!0)),M.scopeDepth--)}function tu(e=!1,t=0){A?zo():j&&dl(),R(O.parenL),t&&(M.tokens[M.tokens.length-1].contextId=t),ea(O.parenR,!1,!1,e,t),t&&(M.tokens[M.tokens.length-1].contextId=t)}function nu(e,t=!1){let n=Ln();V(),M.tokens[M.tokens.length-1].contextId=n,M.tokens[M.tokens.length-1].isExpression=!e;let r=null;e||(r=M.tokens.length,M.scopeDepth++),fu(e,t),pu();let i=M.tokens.length;if(au(n),!M.error&&(M.tokens[i].contextId=n,M.tokens[M.tokens.length-1].contextId=n,r!==null)){let e=M.tokens.length;M.scopes.push(new Mn(r,e,!1)),M.scopeDepth--}}function ru(){return G(O.eq)||G(O.semi)||G(O.braceR)||G(O.bang)||G(O.colon)}function iu(){return G(O.parenL)||G(O.lessThan)}function au(e){for(R(O.braceL);!W(O.braceR)&&!M.error;){if(W(O.semi))continue;if(G(O.at)){Dl();continue}let t=M.start;ou(t,e)}}function ou(e,t){A&&sa([D._declare,D._public,D._protected,D._private,D._override]);let n=!1;if(G(O.name)&&M.contextualKeyword===D._static){if($(),iu()){cu(e,!1);return}if(ru()){du();return}if(M.tokens[M.tokens.length-1].type=O._static,n=!0,G(O.braceL)){M.tokens[M.tokens.length-1].contextId=t,Jl();return}}su(e,n,t)}function su(e,t,n){if(A&&Po(t))return;if(W(O.star)){lu(n),cu(e,!1);return}lu(n);let r=!1,i=M.tokens[M.tokens.length-1];i.contextualKeyword===D._constructor&&(r=!0),uu(),iu()?cu(e,r):ru()?du():i.contextualKeyword===D._async&&!Kn()?(M.tokens[M.tokens.length-1].type=O._async,G(O.star)&&V(),lu(n),uu(),cu(e,!1)):(i.contextualKeyword===D._get||i.contextualKeyword===D._set)&&!(Kn()&&G(O.star))?(i.contextualKeyword===D._get?M.tokens[M.tokens.length-1].type=O._get:M.tokens[M.tokens.length-1].type=O._set,lu(n),cu(e,!1)):i.contextualKeyword===D._accessor&&!Kn()?(lu(n),du()):Kn()?du():z()}function cu(e,t){A?ga():j&&G(O.lessThan)&&Sc(),Ks(e,t)}function lu(e){Gs(e)}function uu(){if(A){let e=H(0);W(O.question),U(e)}}function du(){if(A?(dr(O.bang),Xa()):j&&G(O.colon)&&Kc(),G(O.eq)){let e=M.tokens.length;V(),Q(),M.tokens[e].rhsEndIndex=M.tokens.length}L()}function fu(e,t=!1){A&&(!e||t)&&P(D._implements)||(G(O.name)&&Xi(!0),A?ga():j&&G(O.lessThan)&&Sc())}function pu(){let e=!1;W(O._extends)?(vs(),e=!0):e=!1,A?Lo(e):j&&ol(e)}function mu(){let e=M.tokens.length-1;A&&ko()||(bu()?xu():_u()?($(),G(O.comma)&&K()===O.star?(R(O.comma),R(O.star),I(D._as),$()):vu(),yu()):W(O._default)?hu():wu()?gu():(Tu(),yu()),M.tokens[e].rhsEndIndex=M.tokens.length)}function hu(){if(A&&Mo()||j&&$c())return;let e=M.start;W(O._function)?eu(e,!0,!0):P(D._async)&&K()===O._function?(F(D._async),W(O._function),eu(e,!0,!0)):G(O._class)?nu(!0,!0):G(O.at)?(El(),nu(!0,!0)):(Q(),L())}function gu(){A?Io():j?rl():Cl(!0)}function _u(){if(A&&Eo()||j&&nl())return!1;if(G(O.name))return M.contextualKeyword!==D._async;if(!G(O._default))return!1;let e=mr(),t=pr(),n=t.type===O.name&&t.contextualKeyword===D._from;if(t.type===O.comma)return!0;if(n){let t=N.charCodeAt(hr(e+4));return t===k.quotationMark||t===k.apostrophe}return!1}function vu(){W(O.comma)&&Tu()}function yu(){F(D._from)&&(Os(),Pu()),L()}function bu(){return j?il():G(O.star)}function xu(){j?al():Su()}function Su(){R(O.star),P(D._as)?Cu():yu()}function Cu(){V(),M.tokens[M.tokens.length-1].type=O._as,$(),vu(),yu()}function wu(){return A&&Eo()||j&&tl()||M.type===O._var||M.type===O._const||M.type===O._let||M.type===O._function||M.type===O._class||P(D._async)||G(O.at)}function Tu(){let e=!0;for(R(O.braceL);!W(O.braceR)&&!M.error;){if(e)e=!1;else if(R(O.comma),W(O.braceR))break;Eu()}}function Eu(){A?jo():($(),M.tokens[M.tokens.length-1].identifierRole=B.ExportAccess,F(D._as)&&$())}function Du(){let e=M.snapshot();return I(D._module),F(D._from)?P(D._from)?(M.restoreFromSnapshot(e),!0):(M.restoreFromSnapshot(e),!1):G(O.comma)?(M.restoreFromSnapshot(e),!1):(M.restoreFromSnapshot(e),!0)}function Ou(){P(D._module)&&Du()&&V()}function ku(){if(A&&G(O.name)&&K()===O.eq)mo();else{if(A&&P(D._type)){let e=pr();if(e.type===O.name&&e.contextualKeyword!==D._from){if(I(D._type),K()===O.eq){mo();return}}else(e.type===O.star||e.type===O.braceL)&&I(D._type)}G(O.string)||(Ou(),Mu(),I(D._from)),Os(),Pu(),L()}}function Au(){return G(O.name)}function ju(){Zi()}function Mu(){j&&ll();let e=!0;if(!(Au()&&(ju(),!W(O.comma)))){if(G(O.star)){V(),I(D._as),ju();return}for(R(O.braceL);!W(O.braceR)&&!M.error;){if(e)e=!1;else if(W(O.colon)&&z(`ES2015 named imports do not destructure. Use another statement for destructuring after the import.`),R(O.comma),W(O.braceR))break;Nu()}}}function Nu(){A?Ao():j?ul():(Zi(),P(D._as)&&(M.tokens[M.tokens.length-1].identifierRole=B.ImportAccess,V(),Zi()))}function Pu(){(G(O._with)||P(D._assert)&&!Wn())&&(V(),Bs(!1,!1))}function Fu(){return M.pos===0&&N.charCodeAt(0)===k.numberSign&&N.charCodeAt(1)===k.exclamationMark&&br(2),_r(),Sl()}var Iu=class{constructor(e,t){this.tokens=e,this.scopes=t}};function Lu(e,t,n,r){if(r&&n)throw Error(`Cannot combine flow and typescript plugins.`);Vn(e,t,n,r);let i=Fu();if(M.error)throw Rn(M.error);return i}function Ru(e){let t=e.currentIndex(),n=0,r=e.currentToken();do{let i=e.tokens[t];if(i.isOptionalChainStart&&n++,i.isOptionalChainEnd&&n--,n+=i.numNullishCoalesceStarts,n-=i.numNullishCoalesceEnds,i.contextualKeyword===D._await&&i.identifierRole==null&&i.scopeDepth===r.scopeDepth)return!0;t+=1}while(n>0&&t<e.tokens.length);return!1}var zu=class e{__init(){this.resultCode=``}__init2(){this.resultMappings=Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(t,n,r,i,a){this.code=t,this.tokens=n,this.isFlowEnabled=r,this.disableESTransforms=i,this.helperManager=a,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(e){let t=this.resultCode.slice(e.resultCode.length);return this.resultCode=e.resultCode,t}reset(){this.resultCode=``,this.resultMappings=Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(e,t){return this.matches1AtIndex(e,O.name)&&this.tokens[e].contextualKeyword===t}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierNameAtRelativeIndex(e){return this.identifierNameForToken(this.tokenAtRelativeIndex(e))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,t){return this.tokens[e].type===t}matches2AtIndex(e,t,n){return this.tokens[e].type===t&&this.tokens[e+1].type===n}matches3AtIndex(e,t,n,r){return this.tokens[e].type===t&&this.tokens[e+1].type===n&&this.tokens[e+2].type===r}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,t){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t}matches3(e,t,n){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n}matches4(e,t,n,r){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===r}matches5(e,t,n,r,i){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===r&&this.tokens[this.tokenIndex+4].type===i}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,t){return this.matches1(e)&&this.currentToken().contextId===t}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,``)),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,``),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken(``)}removeToken(){this.replaceTokenTrimmingLeftWhitespace(``)}removeBalancedCode(){let e=0;for(;!this.isAtEnd();){if(this.matches1(O.braceL))e++;else if(this.matches1(O.braceR)){if(e===0)return;e--}this.removeToken()}}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){let e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=Ru(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let t=0;t<e.numNullishCoalesceStarts;t++)e.isAsyncOperation?(this.resultCode+=`await `,this.resultCode+=this.helperManager.getHelperName(`asyncNullishCoalesce`)):this.resultCode+=this.helperManager.getHelperName(`nullishCoalesce`),this.resultCode+=`(`;e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+=`await `),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===O._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName(`asyncOptionalChainDelete`):this.resultCode+=this.helperManager.getHelperName(`optionalChainDelete`):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName(`asyncOptionalChain`):this.resultCode+=this.helperManager.getHelperName(`optionalChain`),this.resultCode+=`([`)}}appendTokenSuffix(){let e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+=`])`),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let t=0;t<e.numNullishCoalesceEnds;t++)this.resultCode+=`))`}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){let e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw Error(`Unexpectedly reached end of input.`);this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw Error(`Tried to finish processing tokens before reaching the end.`);return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}};function Bu(e,t,n,r){let i=t.snapshot(),a=Hu(t),o=[],s=[],c=[],l=null,u=[],d=[],f=t.currentToken().contextId;if(f==null)throw Error(`Expected non-null class context ID on class open-brace.`);for(t.nextToken();!t.matchesContextIdAndLabel(O.braceR,f);)if(t.matchesContextual(D._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:o,constructorInsertPos:l}=Uu(t));else if(t.matches1(O.semi))r||d.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{let i=t.currentIndex(),a=!1,p=!1,m=!1;for(;Wu(t.currentToken());)t.matches1(O._static)&&(a=!0),t.matches1(O.hash)&&(p=!0),(t.matches1(O._declare)||t.matches1(O._abstract))&&(m=!0),t.nextToken();if(a&&t.matches1(O.braceL)||p){Vu(t,f);continue}if(t.matchesContextual(D._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:o,constructorInsertPos:l}=Uu(t));continue}let h=t.currentIndex();if(Gu(t),t.matches1(O.lessThan)||t.matches1(O.parenL)){Vu(t,f);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(O.eq)){let r=t.currentIndex(),i=t.currentToken().rhsEndIndex;if(i==null)throw Error(`Expected rhsEndIndex on class field assignment.`);for(t.nextToken();t.currentIndex()<i;)e.processToken();let o;a?(o=n.claimFreeName(`__initStatic`),c.push(o)):(o=n.claimFreeName(`__init`),s.push(o)),u.push({initializerName:o,equalsIndex:r,start:h,end:t.currentIndex()})}else(!r||m)&&d.push({start:i,end:t.currentIndex()})}return t.restoreToSnapshot(i),r?{headerInfo:a,constructorInitializerStatements:o,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:l,fields:[],rangesToRemove:d}:{headerInfo:a,constructorInitializerStatements:o,instanceInitializerNames:s,staticInitializerNames:c,constructorInsertPos:l,fields:u,rangesToRemove:d}}function Vu(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;Wu(e.tokenAtRelativeIndex(-1));)e.previousToken()}function Hu(e){let t=e.currentToken(),n=t.contextId;if(n==null)throw Error(`Expected context ID on class token.`);let r=t.isExpression;if(r==null)throw Error(`Expected isExpression on class token.`);let i=null,a=!1;for(e.nextToken(),e.matches1(O.name)&&(i=e.identifierName());!e.matchesContextIdAndLabel(O.braceL,n);)e.matches1(O._extends)&&!e.currentToken().isType&&(a=!0),e.nextToken();return{isExpression:r,className:i,hasSuperclass:a}}function Uu(e){let t=[];e.nextToken();let n=e.currentToken().contextId;if(n==null)throw Error(`Expected context ID on open-paren starting constructor params.`);for(;!e.matchesContextIdAndLabel(O.parenR,n);)if(e.currentToken().contextId===n){if(e.nextToken(),Wu(e.currentToken())){for(e.nextToken();Wu(e.currentToken());)e.nextToken();let n=e.currentToken();if(n.type!==O.name)throw Error(`Expected identifier after access modifiers in constructor arg.`);let r=e.identifierNameForToken(n);t.push(`this.${r} = ${r}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let r=e.currentIndex(),i=!1;for(;!e.matchesContextIdAndLabel(O.braceR,n);){if(!i&&e.matches2(O._super,O.parenL)){e.nextToken();let t=e.currentToken().contextId;if(t==null)throw Error(`Expected a context ID on the super call`);for(;!e.matchesContextIdAndLabel(O.parenR,t);)e.nextToken();r=e.currentIndex(),i=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:r}}function Wu(e){return[O._async,O._get,O._set,O.plus,O.minus,O._readonly,O._static,O._public,O._private,O._protected,O._override,O._abstract,O.star,O._declare,O.hash].includes(e.type)}function Gu(e){if(e.matches1(O.bracketL)){let t=e.currentToken().contextId;if(t==null)throw Error(`Expected class context ID on computed name open bracket.`);for(;!e.matchesContextIdAndLabel(O.bracketR,t);)e.nextToken();e.nextToken()}else e.nextToken()}function Ku(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(O.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(O.dot);)e.removeToken(),e.removeToken()}var qu={typeDeclarations:/* @__PURE__ */ new Set,valueDeclarations:/* @__PURE__ */ new Set};function Ju(e){let t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Set;for(let r=0;r<e.tokens.length;r++){let i=e.tokens[r];i.type===O.name&&ir(i)&&(i.isType?t.add(e.identifierNameForToken(i)):n.add(e.identifierNameForToken(i)))}return{typeDeclarations:t,valueDeclarations:n}}function Yu(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,O.braceR);)t++;return e.matchesContextualAtIndex(t+1,D._from)&&e.matches1AtIndex(t+2,O.string)}function Xu(e){(e.matches2(O._with,O.braceL)||e.matches2(O.name,O.braceL)&&e.matchesContextual(D._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function Zu(e,t,n,r){if(!e||t)return!1;let i=n.currentToken();if(i.rhsEndIndex==null)throw Error(`Expected non-null rhsEndIndex on export token.`);let a=i.rhsEndIndex-n.currentIndex();if(a!==3&&!(a===4&&n.matches1AtIndex(i.rhsEndIndex-1,O.semi)))return!1;let o=n.tokenAtRelativeIndex(2);if(o.type!==O.name)return!1;let s=n.identifierNameForToken(o);return r.typeDeclarations.has(s)&&!r.valueDeclarations.has(s)}var Qu=class e extends Kr{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(t,n,r,i,a,o,s,c,l,u,d,f){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=r,this.nameManager=i,this.helperManager=a,this.reactHotLoaderTransformer=o,this.enableLegacyBabel5ModuleInterop=s,this.enableLegacyTypeScriptModuleInterop=c,this.isTypeScriptTransformEnabled=l,this.isFlowTransformEnabled=u,this.preserveDynamicImport=d,this.keepUnusedImports=f,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),this.declarationInfo=l?Ju(n):qu}getPrefixCode(){let e=``;return this.hadExport&&(e+=`Object.defineProperty(exports, "__esModule", {value: true});`),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
|
|
133
|
+
module.exports = exports.default;
|
|
134
|
+
`:``}process(){return this.tokens.matches3(O._import,O.name,O.eq)?this.processImportEquals():this.tokens.matches1(O._import)?(this.processImport(),!0):this.tokens.matches2(O._export,O.eq)?(this.tokens.replaceToken(`module.exports`),!0):this.tokens.matches1(O._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(O.name,O.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(O.name)||this.tokens.matches1(O.jsxName)?this.processIdentifier():this.tokens.matches1(O.eq)?this.processAssignment():this.tokens.matches1(O.assign)?this.processComplexAssignment():this.tokens.matches1(O.preIncDec)?this.processPreIncDec():!1}processImportEquals(){let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?Ku(this.tokens):this.tokens.replaceToken(`const`),!0}processImport(){if(this.tokens.matches2(O._import,O.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}let e=this.enableLegacyTypeScriptModuleInterop?``:`${this.helperManager.getHelperName(`interopRequireWildcard`)}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${e}require`);let t=this.tokens.currentToken().contextId;if(t==null)throw Error(`Expected context ID on dynamic import invocation.`);for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(O.parenR,t);)this.rootTransformer.processToken();this.tokens.replaceToken(e?`)))`:`))`)}else{if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{let e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),this.tokens.appendCode(this.importProcessor.claimImportCode(e))}Xu(this.tokens),this.tokens.matches1(O.semi)&&this.tokens.removeToken()}}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(D._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,O.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,D._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(O.name)||this.tokens.matches1(O.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(O.string))return!1;let e=!1,t=!1;for(;!this.tokens.matches1(O.string);)(!e&&this.tokens.matches1(O.braceL)||this.tokens.matches1(O.comma))&&(this.tokens.removeToken(),this.tokens.matches1(O.braceR)||(t=!0),(this.tokens.matches2(O.name,O.comma)||this.tokens.matches2(O.name,O.braceR)||this.tokens.matches4(O.name,O.name,O.name,O.comma)||this.tokens.matches4(O.name,O.name,O.name,O.braceR))&&(e=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?t&&!e:!1}removeRemainingImport(){for(;!this.tokens.matches1(O.string);)this.tokens.removeToken()}processIdentifier(){let e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===B.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==B.Access)return!1;let t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;let n=this.tokens.currentIndex()+1;for(;n<this.tokens.tokens.length&&this.tokens.tokens[n].type===O.parenR;)n++;return this.tokens.tokens[n].type===O.parenL?this.tokens.tokenAtRelativeIndex(1).type===O.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==O._new?(this.tokens.replaceToken(`${t}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(O.parenR)):this.tokens.replaceToken(`(0, ${t})`):this.tokens.replaceToken(t),!0}processObjectShorthand(){let e=this.tokens.identifierName(),t=this.importProcessor.getIdentifierReplacement(e);return t?(this.tokens.replaceToken(`${e}: ${t}`),!0):!1}processExport(){if(this.tokens.matches2(O._export,O._enum)||this.tokens.matches3(O._export,O._const,O._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(O._export,O._default))return this.tokens.matches3(O._export,O._default,O._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(O._export,O.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(O._export,O.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,D._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(O.braceL)){for(;!this.tokens.matches1(O.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(O._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(D._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,O.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Xu(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(O._export,O._var)||this.tokens.matches2(O._export,O._let)||this.tokens.matches2(O._export,O._const))return this.processExportVar(),!0;if(this.tokens.matches2(O._export,O._function)||this.tokens.matches3(O._export,O.name,O._function))return this.processExportFunction(),!0;if(this.tokens.matches2(O._export,O._class)||this.tokens.matches3(O._export,O._abstract,O._class)||this.tokens.matches2(O._export,O.at))return this.processExportClass(),!0;if(this.tokens.matches2(O._export,O.star))return this.processExportStar(),!0;throw Error(`Unrecognized export syntax.`)}processAssignment(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.isType||t.type!==O.name||t.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,O.dot)||e>=2&&[O._var,O._let,O._const].includes(this.tokens.tokens[e-2].type))return!1;let n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return n?(this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),!0):!1}processComplexAssignment(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==O.name||t.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,O.dot))return!1;let n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return n?(this.tokens.appendCode(` = ${n}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==O.name||t.shadowsGlobal||e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,O.dot)||this.tokens.matches1AtIndex(e+2,O.bracketL)||this.tokens.matches1AtIndex(e+2,O.parenL)))return!1;let n=this.tokens.identifierNameForToken(t),r=this.importProcessor.resolveExportBinding(n);return r?(this.tokens.appendCode(`${r} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){let e=this.tokens.currentIndex(),t=this.tokens.tokens[e],n=this.tokens.tokens[e+1];if(t.type!==O.name||t.shadowsGlobal||e>=1&&this.tokens.matches1AtIndex(e-1,O.dot))return!1;let r=this.tokens.identifierNameForToken(t),i=this.importProcessor.resolveExportBinding(r);if(!i)return!1;let a=this.tokens.rawCodeForToken(n),o=this.importProcessor.getIdentifierReplacement(r)||r;if(a===`++`)this.tokens.replaceToken(`(${o} = ${i} = ${o} + 1, ${o} - 1)`);else if(a===`--`)this.tokens.replaceToken(`(${o} = ${i} = ${o} - 1, ${o} + 1)`);else throw Error(`Unexpected operator: ${a}`);return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(O._export,O._default,O._function,O.name)||this.tokens.matches5(O._export,O._default,O.name,O._function,O.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,D._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${e};`)}else if(this.tokens.matches4(O._export,O._default,O._class,O.name)||this.tokens.matches5(O._export,O._default,O._abstract,O._class,O.name)||this.tokens.matches3(O._export,O._default,O.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(O._abstract)&&this.tokens.removeToken();let e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${e};`)}else if(Zu(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){let e=this.nameManager.claimFreeName(`_default`);this.tokens.replaceToken(`let ${e}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e)}else this.tokens.replaceToken(`exports.`),this.tokens.copyToken(),this.tokens.appendCode(` =`);e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(O.at);)if(this.tokens.copyToken(),this.tokens.matches1(O.parenL))this.tokens.copyExpectedToken(O.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(O.parenR);else{for(this.tokens.copyExpectedToken(O.name);this.tokens.matches1(O.dot);)this.tokens.copyExpectedToken(O.dot),this.tokens.copyExpectedToken(O.name);this.tokens.matches1(O.parenL)&&(this.tokens.copyExpectedToken(O.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(O.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,O.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,O.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();let e=this.tokens.identifierName();for(;!this.tokens.matches1(O.eq);)this.rootTransformer.processToken();let t=this.tokens.currentToken().rhsEndIndex;if(t==null)throw Error(`Expected = token with an end index.`);for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=this.tokens.matches1(O.braceL);e&&this.tokens.appendCode(`(`);let t=0;for(;;)if(this.tokens.matches1(O.braceL)||this.tokens.matches1(O.dollarBraceL)||this.tokens.matches1(O.bracketL))t++,this.tokens.copyToken();else if(this.tokens.matches1(O.braceR)||this.tokens.matches1(O.bracketR))t--,this.tokens.copyToken();else{if(t===0&&!this.tokens.matches1(O.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(O.eq)){let e=this.tokens.currentToken().rhsEndIndex;if(e==null)throw Error(`Expected = token with an end index.`);for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}else{let e=this.tokens.currentToken();if(nr(e)){let t=this.tokens.identifierName(),n=this.importProcessor.getIdentifierReplacement(t);if(n===null)throw Error(`Expected a replacement for ${t} in \`export var\` syntax.`);sr(e)&&(n=`${t}: ${n}`),this.tokens.replaceToken(n)}else this.rootTransformer.processToken()}}if(e){let e=this.tokens.currentToken().rhsEndIndex;if(e==null)throw Error(`Expected = token with an end index.`);for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken();this.tokens.appendCode(`)`)}}processExportFunction(){this.tokens.replaceToken(``);let e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(O._function))this.tokens.copyToken();else if(this.tokens.matches2(O.name,O._function)){if(!this.tokens.matchesContextual(D._async))throw Error(`Expected async keyword in function export.`);this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(O.star)&&this.tokens.copyToken(),!this.tokens.matches1(O.name))throw Error(`Expected identifier for exported function name.`);let e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(O.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(O.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(O.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(O.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(O._abstract)&&this.tokens.removeToken();let e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=Yu(this.tokens),t=[];for(;;){if(this.tokens.matches1(O.braceR)){this.tokens.removeToken();break}let n=Vr(this.tokens);for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();if(!(n.isType||!e&&this.shouldElideExportedIdentifier(n.leftName))){let e=n.rightName;e==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;let r=n.leftName,i=this.importProcessor.getIdentifierReplacement(r);t.push(`exports.${e} = ${i||r};`)}if(this.tokens.matches1(O.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(O.comma,O.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}if(this.tokens.matches1(O.comma))this.tokens.removeToken();else throw Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(D._from)){this.tokens.removeToken();let e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),Xu(this.tokens)}else this.tokens.appendCode(t.join(` `));this.tokens.matches1(O.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(O.string);)this.tokens.removeToken();let e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),Xu(this.tokens),this.tokens.matches1(O.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}},$u=class extends Kr{constructor(e,t,n,r,i,a,o,s){super(),this.tokens=e,this.nameManager=t,this.helperManager=n,this.reactHotLoaderTransformer=r,this.isTypeScriptTransformEnabled=i,this.isFlowTransformEnabled=a,this.keepUnusedImports=o,this.nonTypeIdentifiers=i&&!o?ti(e,s):/* @__PURE__ */ new Set,this.declarationInfo=i&&!o?Ju(e):qu,this.injectCreateRequireForImportRequire=!!s.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(O._import,O.name,O.eq))return this.processImportEquals();if(this.tokens.matches4(O._import,O.name,O.name,O.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,D._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(O._export,O.eq))return this.tokens.replaceToken(`module.exports`),!0;if(this.tokens.matches5(O._export,O._import,O.name,O.name,O.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,D._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(O._import))return this.processImport();if(this.tokens.matches2(O._export,O._default))return this.processExportDefault();if(this.tokens.matches2(O._export,O.braceL))return this.processNamedExports();if(this.tokens.matches2(O._export,O.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,D._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(O.braceL)){for(;!this.tokens.matches1(O.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(O._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(D._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,O.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Xu(this.tokens)),!0}return!1}processImportEquals(){let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?Ku(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken(`const`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName(`require`))):this.tokens.replaceToken(`const`),!0}processImport(){if(this.tokens.matches2(O._import,O.parenL))return!1;let e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(O.string);)this.tokens.removeToken();this.tokens.removeToken(),Xu(this.tokens),this.tokens.matches1(O.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(O._import),this.tokens.matchesContextual(D._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,O.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,D._from))return!0;if(this.tokens.matches1(O.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(D._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,D._from)&&this.tokens.copyToken();let e=!1,t=!1,n=!1;if(this.tokens.matches1(O.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(O.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(O.comma)&&(n=!0,this.tokens.removeToken()))),this.tokens.matches1(O.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(n&&this.tokens.appendCode(`,`),e=!0,this.tokens.copyExpectedToken(O.star),this.tokens.copyExpectedToken(O.name),this.tokens.copyExpectedToken(O.name));else if(this.tokens.matches1(O.braceL)){for(n&&this.tokens.appendCode(`,`),this.tokens.copyToken();!this.tokens.matches1(O.braceR);){t=!0;let n=Vr(this.tokens);if(n.isType||this.shouldAutomaticallyElideImportedName(n.rightName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(O.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(O.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(O.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?t&&!e:!1}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(Zu(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(O._export,O._default,O._function,O.name)||this.tokens.matches5(O._export,O._default,O.name,O._function,O.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,D._async)||this.tokens.matches4(O._export,O._default,O._class,O.name)||this.tokens.matches5(O._export,O._default,O._abstract,O._class,O.name))&&this.reactHotLoaderTransformer){let e=this.nameManager.claimFreeName(`_default`);return this.tokens.replaceToken(`let ${e}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${e} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(e),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(O._export),this.tokens.copyExpectedToken(O.braceL);let e=Yu(this.tokens),t=!1;for(;!this.tokens.matches1(O.braceR);){let n=Vr(this.tokens);if(n.isType||!e&&this.shouldElideExportedName(n.leftName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(O.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(O.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(O.braceR),!this.keepUnusedImports&&e&&!t&&(this.tokens.removeToken(),this.tokens.removeToken(),Xu(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}},ed=class extends Kr{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(O._enum)?(this.processEnum(),!0):this.tokens.matches2(O._export,O._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(O._export,O._default,O._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();let e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${e} = ${e};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();let e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${e};`):this.tokens.appendCode(` export default ${e};`)}processEnum(){this.tokens.replaceToken(`const`),this.tokens.copyExpectedToken(O.name);let e=!1;this.tokens.matchesContextual(D._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(D._symbol),this.tokens.removeToken());let t=this.tokens.matches3(O.braceL,O.name,O.eq);this.tokens.appendCode(` = require("flow-enums-runtime")`);let n=!e&&!t;for(this.tokens.replaceTokenTrimmingLeftWhitespace(n?`.Mirrored([`:`({`);!this.tokens.matches1(O.braceR);){if(this.tokens.matches1(O.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,t),this.tokens.matches1(O.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(n?`]);`:`});`)}processEnumElement(e,t){if(e){let e=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${e}")`)}else t?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(`:`),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}};function td(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],a=e[r+1];if(r+=2,(i===`optionalAccess`||i===`optionalCall`)&&n==null)return;i===`access`||i===`optionalAccess`?(t=n,n=a(n)):(i===`call`||i===`optionalCall`)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}var nd=`jest`,rd=[`mock`,`unmock`,`enableAutomock`,`disableAutomock`],id=class e extends Kr{__init(){this.hoistedFunctionNames=[]}constructor(t,n,r,i){super(),this.rootTransformer=t,this.tokens=n,this.nameManager=r,this.importProcessor=i,e.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(O.name,O.dot,O.name,O.parenL)&&this.tokens.identifierName()===nd?!td([this,`access`,e=>e.importProcessor,`optionalAccess`,e=>e.getGlobalNames,`call`,e=>e(),`optionalAccess`,e=>e.has,`call`,e=>e(nd)])&&this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(e=>`${e}();`).join(``):``}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(O.dot,O.name,O.parenL);){let t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(rd.includes(t)){let t=this.nameManager.claimFreeName(`__jestHoist`);this.hoistedFunctionNames.push(t),this.tokens.replaceToken(`function ${t}(){${nd}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(O.parenR),this.tokens.appendCode(`;}`),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${nd}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(O.parenR),e=!0}return!0}},ad=class extends Kr{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(O.num)){let e=this.tokens.currentTokenCode();if(e.includes(`_`))return this.tokens.replaceToken(e.replace(/_/g,``)),!0}return!1}},od=class extends Kr{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){return this.tokens.matches2(O._catch,O.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName(`e`)})`),!0):!1}},sd=class extends Kr{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){if(this.tokens.matches1(O.nullishCoalescing)){let e=this.tokens.currentToken();return this.tokens.tokens[e.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(`, async () => (`):this.tokens.replaceTokenTrimmingLeftWhitespace(`, () => (`),!0}if(this.tokens.matches1(O._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;let e=this.tokens.currentToken().subscriptStartIndex;if(e!=null&&this.tokens.tokens[e].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==O._super){let t=this.nameManager.claimFreeName(`_`),n;if(n=e>0&&this.tokens.matches1AtIndex(e-1,O._delete)&&this.isLastSubscriptInChain()?`${t} => delete ${t}`:`${t} => ${t}`,this.tokens.tokens[e].isAsyncOperation&&(n=`async ${n}`),this.tokens.matches2(O.questionDot,O.parenL)||this.tokens.matches2(O.questionDot,O.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(`.bind(this)`),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${n}`);else if(this.tokens.matches2(O.questionDot,O.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}`);else if(this.tokens.matches1(O.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}.`);else if(this.tokens.matches1(O.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}.`);else if(this.tokens.matches1(O.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}[`);else if(this.tokens.matches1(O.parenL))this.justSkippedSuper()&&this.tokens.appendCode(`.bind(this)`),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${n}(`);else throw Error(`Unexpected subscript operator in optional chain.`);return!0}return!1}isLastSubscriptInChain(){let e=0;for(let t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw Error(`Reached the end of the code while finding the end of the access chain.`);if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(e===0&&this.tokens.tokens[t].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let e=0,t=this.tokens.currentIndex()-1;for(;;){if(t<0)throw Error(`Reached the start of the code while finding the start of the access chain.`);if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(e===0&&this.tokens.tokens[t].subscriptStartIndex!=null)return this.tokens.tokens[t-1].type===O._super;t--}}},cd=class extends Kr{constructor(e,t,n,r){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=n,this.options=r}process(){let e=this.tokens.currentIndex();if(this.tokens.identifierName()===`createReactClass`){let t=this.importProcessor&&this.importProcessor.getIdentifierReplacement(`createReactClass`);return t?this.tokens.replaceToken(`(0, ${t})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(O.name,O.dot,O.name)&&this.tokens.identifierName()===`React`&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)===`createClass`){let t=this.importProcessor&&this.importProcessor.getIdentifierReplacement(`React`)||`React`;return t?(this.tokens.replaceToken(t),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){let t=this.findDisplayName(e);t&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(O.parenL),this.tokens.copyExpectedToken(O.braceL),this.tokens.appendCode(`displayName: '${t}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(O.braceR),this.tokens.copyExpectedToken(O.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,O.name,O.eq)||e>=2&&this.tokens.tokens[e-2].identifierRole===B.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,O._export,O._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){let e=(this.options.filePath||`unknown`).split(`/`),t=e[e.length-1],n=t.lastIndexOf(`.`),r=n===-1?t:t.slice(0,n);return r===`index`&&e[e.length-2]?e[e.length-2]:r}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(O.parenL,O.braceL))return!1;let t=e+1,n=this.tokens.tokens[t].contextId;if(n==null)throw Error(`Expected non-null context ID on object open-brace.`);for(;e<this.tokens.tokens.length;e++){let t=this.tokens.tokens[e];if(t.type===O.braceR&&t.contextId===n){e++;break}if(this.tokens.identifierNameAtIndex(e)===`displayName`&&this.tokens.tokens[e].identifierRole===B.ObjectKey&&t.contextId===n)return!1}if(e===this.tokens.tokens.length)throw Error(`Unexpected end of input when processing React class.`);return this.tokens.matches1AtIndex(e,O.parenR)||this.tokens.matches2AtIndex(e,O.comma,O.parenR)}},ld=class e extends Kr{__init(){this.extractedDefaultExportName=null}constructor(t,n){super(),this.tokens=t,this.filePath=n,e.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return`
|
|
135
|
+
(function () {
|
|
136
|
+
var enterModule = require('react-hot-loader').enterModule;
|
|
137
|
+
enterModule && enterModule(module);
|
|
138
|
+
})();`.replace(/\s+/g,` `).trim()}getSuffixCode(){let e=/* @__PURE__ */ new Set;for(let t of this.tokens.tokens)!t.isType&&ir(t)&&t.identifierRole!==B.ImportDeclaration&&e.add(this.tokens.identifierNameForToken(t));let t=Array.from(e).map(e=>({variableName:e,uniqueLocalName:e}));return this.extractedDefaultExportName&&t.push({variableName:this.extractedDefaultExportName,uniqueLocalName:`default`}),`
|
|
139
|
+
;(function () {
|
|
140
|
+
var reactHotLoader = require('react-hot-loader').default;
|
|
141
|
+
var leaveModule = require('react-hot-loader').leaveModule;
|
|
142
|
+
if (!reactHotLoader) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
${t.map(({variableName:e,uniqueLocalName:t})=>` reactHotLoader.register(${e}, "${t}", ${JSON.stringify(this.filePath||``)});`).join(`
|
|
146
|
+
`)}
|
|
147
|
+
leaveModule(module);
|
|
148
|
+
})();`}process(){return!1}},ud=/* @__PURE__ */ new Set(/* @__PURE__ */ `break.case.catch.class.const.continue.debugger.default.delete.do.else.export.extends.finally.for.function.if.import.in.instanceof.new.return.super.switch.this.throw.try.typeof.var.void.while.with.yield.enum.implements.interface.let.package.private.protected.public.static.await.false.null.true`.split(`.`));function dd(e){if(e.length===0||!Qn[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!Zn[e.charCodeAt(t)])return!1;return!ud.has(e)}var fd=class extends Kr{constructor(e,t,n){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=n}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(O._public)||this.tokens.matches1(O._protected)||this.tokens.matches1(O._private)||this.tokens.matches1(O._abstract)||this.tokens.matches1(O._readonly)||this.tokens.matches1(O._override)||this.tokens.matches1(O.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(O._enum)||this.tokens.matches2(O._const,O._enum)?(this.processEnum(),!0):this.tokens.matches2(O._export,O._enum)||this.tokens.matches3(O._export,O._const,O._enum)?(this.processEnum(!0),!0):!1}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(O._const)||this.tokens.matches1(O._enum);)this.tokens.removeToken();let t=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode(`export `),this.tokens.appendCode(`var ${t}; (function (${t})`),this.tokens.copyExpectedToken(O.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(O.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${t} || (exports.${t} = ${t} = {}));`):this.tokens.appendCode(`)(${t} || (${t} = {}));`)}processEnumBody(e){let t=null;for(;!this.tokens.matches1(O.braceR);){let{nameStringCode:n,variableName:r}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(O.eq,O.string,O.comma)||this.tokens.matches3(O.eq,O.string,O.braceR)?this.processStringLiteralEnumMember(e,n,r):this.tokens.matches1(O.eq)?this.processExplicitValueEnumMember(e,n,r):this.processImplicitValueEnumMember(e,n,r,t),this.tokens.matches1(O.comma)&&this.tokens.removeToken(),t=r??`${e}[${n}]`}}extractEnumKeyInfo(e){if(e.type===O.name){let t=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${t}"`,variableName:dd(t)?t:null}}if(e.type===O.string){let t=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:dd(t)?t:null}}throw Error(`Expected name or string at beginning of enum element.`)}processStringLiteralEnumMember(e,t,n){n==null?(this.tokens.appendCode(`${e}[${t}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`;`)):(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${t}] = ${n};`))}processExplicitValueEnumMember(e,t,n){let r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw Error(`Expected rhsEndIndex on enum assign.`);if(n!=null){for(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${t}] = ${n}] = ${t};`)}else{for(this.tokens.appendCode(`${e}[${e}[${t}]`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${t};`)}}processImplicitValueEnumMember(e,t,n,r){let i=r==null?`0`:`${r} + 1`;n!=null&&(this.tokens.appendCode(`const ${n} = ${i}; `),i=n),this.tokens.appendCode(`${e}[${e}[${t}] = ${i}] = ${t};`)}},pd=class e{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(t,n,r,i){e.prototype.__init.call(this),e.prototype.__init2.call(this),this.nameManager=t.nameManager,this.helperManager=t.helperManager;let{tokenProcessor:a,importProcessor:o}=t;this.tokens=a,this.isImportsTransformEnabled=n.includes(`imports`),this.isReactHotLoaderTransformEnabled=n.includes(`react-hot-loader`),this.disableESTransforms=!!i.disableESTransforms,i.disableESTransforms||(this.transformers.push(new sd(a,this.nameManager)),this.transformers.push(new ad(a)),this.transformers.push(new od(a,this.nameManager))),n.includes(`jsx`)&&(i.jsxRuntime!==`preserve`&&this.transformers.push(new qr(this,a,o,this.nameManager,i)),this.transformers.push(new cd(this,a,o,i)));let s=null;if(n.includes(`react-hot-loader`)){if(!i.filePath)throw Error(`filePath is required when using the react-hot-loader transform.`);s=new ld(a,i.filePath),this.transformers.push(s)}if(n.includes(`imports`)){if(o===null)throw Error(`Expected non-null importProcessor with imports transform enabled.`);this.transformers.push(new Qu(this,a,o,this.nameManager,this.helperManager,s,r,!!i.enableLegacyTypeScriptModuleInterop,n.includes(`typescript`),n.includes(`flow`),!!i.preserveDynamicImport,!!i.keepUnusedImports))}else this.transformers.push(new $u(a,this.nameManager,this.helperManager,s,n.includes(`typescript`),n.includes(`flow`),!!i.keepUnusedImports,i));n.includes(`flow`)&&this.transformers.push(new ed(this,a,n.includes(`imports`))),n.includes(`typescript`)&&this.transformers.push(new fd(this,a,n.includes(`imports`))),n.includes(`jest`)&&this.transformers.push(new id(this,a,this.nameManager,o))}transform(){this.tokens.reset(),this.processBalancedCode();let e=this.isImportsTransformEnabled?`"use strict";`:``;for(let t of this.transformers)e+=t.getPrefixCode();e+=this.helperManager.emitHelpers(),e+=this.generatedVariables.map(e=>` var ${e};`).join(``);for(let t of this.transformers)e+=t.getHoistedCode();let t=``;for(let e of this.transformers)t+=e.getSuffixCode();let n=this.tokens.finish(),{code:r}=n;if(r.startsWith(`#!`)){let i=r.indexOf(`
|
|
149
|
+
`);return i===-1&&(i=r.length,r+=`
|
|
150
|
+
`),{code:r.slice(0,i+1)+e+r.slice(i+1)+t,mappings:this.shiftMappings(n.mappings,e.length)}}return{code:e+r+t,mappings:this.shiftMappings(n.mappings,e.length)}}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(O.braceL)||this.tokens.matches1(O.dollarBraceL))e++;else if(this.tokens.matches1(O.braceR)){if(e===0)return;e--}if(this.tokens.matches1(O.parenL))t++;else if(this.tokens.matches1(O.parenR)){if(t===0)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(O._class))this.processClass();else{for(let e of this.transformers)if(e.process())return;this.tokens.copyToken()}}processNamedClass(){if(!this.tokens.matches2(O._class,O.name))throw Error(`Expected identifier for exported class name.`);let e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){let e=Bu(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0,n=e.headerInfo.className;t&&(n=this.nameManager.claimFreeName(`_class`),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));let r=this.tokens.currentToken().contextId;if(r==null)throw Error(`Expected class to have a context ID.`);for(this.tokens.copyExpectedToken(O._class);!this.tokens.matchesContextIdAndLabel(O.braceL,r);)this.processToken();this.processClassBody(e,n);let i=e.staticInitializerNames.map(e=>`${n}.${e}()`);t?this.tokens.appendCode(`, ${i.map(e=>`${e}, `).join(``)}${n})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${i.map(e=>`${e};`).join(` `)}`)}processClassBody(e,t){let{headerInfo:n,constructorInsertPos:r,constructorInitializerStatements:i,fields:a,instanceInitializerNames:o,rangesToRemove:s}=e,c=0,l=0,u=this.tokens.currentToken().contextId;if(u==null)throw Error(`Expected non-null context ID on class.`);this.tokens.copyExpectedToken(O.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode(`__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}`);let d=i.length+o.length>0;if(r===null&&d){let e=this.makeConstructorInitCode(i,o,t);if(n.hasSuperclass){let t=this.nameManager.claimFreeName(`args`);this.tokens.appendCode(`constructor(...${t}) { super(...${t}); ${e}; }`)}else this.tokens.appendCode(`constructor() { ${e}; }`)}for(;!this.tokens.matchesContextIdAndLabel(O.braceR,u);)if(c<a.length&&this.tokens.currentIndex()===a[c].start){let e=!1;for(this.tokens.matches1(O.bracketL)?this.tokens.copyTokenWithPrefix(`${a[c].initializerName}() {this`):this.tokens.matches1(O.string)||this.tokens.matches1(O.num)?(this.tokens.copyTokenWithPrefix(`${a[c].initializerName}() {this[`),e=!0):this.tokens.copyTokenWithPrefix(`${a[c].initializerName}() {this.`);this.tokens.currentIndex()<a[c].end;)e&&this.tokens.currentIndex()===a[c].equalsIndex&&this.tokens.appendCode(`]`),this.processToken();this.tokens.appendCode(`}`),c++}else if(l<s.length&&this.tokens.currentIndex()>=s[l].start){for(this.tokens.currentIndex()<s[l].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<s[l].end;)this.tokens.removeToken();l++}else this.tokens.currentIndex()===r&&(this.tokens.copyToken(),d&&this.tokens.appendCode(`;${this.makeConstructorInitCode(i,o,t)};`)),this.processToken();this.tokens.copyExpectedToken(O.braceR)}makeConstructorInitCode(e,t,n){return[...e,...t.map(e=>`${n}.prototype.${e}.call(this)`)].join(`;`)}processPossibleArrowParamEnd(){if(this.tokens.matches2(O.parenR,O.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,O.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(`) =>`),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(D._async)&&!this.tokens.matches1(O._async))return!1;let e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==O.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,O.parenL)){for(this.tokens.replaceToken(`async (`),this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,t){for(let n=0;n<e.length;n++){let r=e[n];r!==void 0&&(e[n]=r+t)}return e}};u(kn());function md(e){let t=/* @__PURE__ */ new Set;for(let n=0;n<e.tokens.length;n++)e.matches1AtIndex(n,O._import)&&!e.matches3AtIndex(n,O._import,O.name,O.eq)&&hd(e,n,t);return t}function hd(e,t,n){t++,!e.matches1AtIndex(t,O.parenL)&&(e.matches1AtIndex(t,O.name)&&(n.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,O.comma)&&t++),e.matches1AtIndex(t,O.star)&&(t+=2,n.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,O.braceL)&&(t++,gd(e,t,n)))}function gd(e,t,n){for(;;){if(e.matches1AtIndex(t,O.braceR))return;let r=Vr(e,t);if(t=r.endIndex,r.isType||n.add(r.rightName),e.matches2AtIndex(t,O.comma,O.braceR)||e.matches1AtIndex(t,O.braceR))return;if(e.matches1AtIndex(t,O.comma))t++;else throw Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}function _d(e,t){qi(t);try{let n=vd(e,t),r=new pd(n,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform(),i={code:r.code};if(t.sourceMapOptions){if(!t.filePath)throw Error(`filePath must be specified when generating a source map.`);i={...i,sourceMap:Pi(r,t.filePath,t.sourceMapOptions,e,n.tokenProcessor.tokens)}}return i}catch(e){throw t.filePath&&(e.message=`Error transforming ${t.filePath}: ${e.message}`),e}}function vd(e,t){let n=t.transforms.includes(`jsx`),r=t.transforms.includes(`typescript`),i=t.transforms.includes(`flow`),a=t.disableESTransforms===!0,o=Lu(e,n,r,i),s=o.tokens,c=o.scopes,l=new Ui(e,s),u=new Li(l),d=new zu(e,s,i,a,u),f=!!t.enableLegacyTypeScriptModuleInterop,p=null;return t.transforms.includes(`imports`)?(p=new ni(l,d,f,t,t.transforms.includes(`typescript`),!!t.keepUnusedImports,u),p.preprocessTokens(),Ri(d,c,p.getGlobalNames()),t.transforms.includes(`typescript`)&&!t.keepUnusedImports&&p.pruneTypeOnlyImports()):t.transforms.includes(`typescript`)&&!t.keepUnusedImports&&Ri(d,c,md(d)),{tokenProcessor:d,scopes:c,nameManager:l,importProcessor:p,helperManager:u}}var yd=x.extend((0,An.default)()),bd=[`react`,`react-dom/client`,`react/jsx-runtime`,`react/jsx-dev-runtime`],xd=`__playpadLoopGuard`,Sd=class extends Error{file;reason;line;column;hint;constructor(e,t,n,r,i){super(`${e}${n?`:${n}${r?`:${r}`:``}`:``}: ${t}`),this.file=e,this.reason=t,this.line=n,this.column=r,this.hint=i,this.name=`CompileError`}},Cd=e=>typeof e==`object`&&!!e&&typeof e.type==`string`;function wd(e,t){t(e);for(let n of Object.keys(e)){let r=e[n];if(Array.isArray(r))for(let e of r)Cd(e)&&wd(e,t);else Cd(r)&&wd(r,t)}}var Td=`Two JSX elements side by side need a parent. Wrap them in one element or in <>...</>.`,Ed=`A tag isn't closed. Tags with no children close themselves: <img />, <br />, <input />.`,Dd=`An opening tag and its closing tag don't match. Check the spelling and the nesting order.`,Od=`JSX comments are written {/* like this */}, not <!-- like this -->.`;function kd(e,t,n){if(n&&t.split(`
|
|
151
|
+
`)[n-1]?.includes(`<!--`))return Od;if(/Adjacent JSX elements|Unterminated regular expression/.test(e))return Td;if(/Unterminated JSX contents/.test(e))return Ed;if(/Expected corresponding JSX closing tag/.test(e))return Dd}var Ad=e=>({transforms:[`jsx`,`imports`],jsxRuntime:`automatic`,production:!1,filePath:e});function jd(e,t,n,r,i){return new Sd(e,n,r,i,kd(n,t,r))}function Md(e,t,n){let r=String(n.message??n).replace(/^Error transforming [^:]+: /,``),i=/\s*\((\d+):(\d+)\)\s*$/.exec(r);return jd(e,t,i?r.slice(0,i.index):r,i?Number(i[1]):void 0,i?Number(i[2]):void 0)}function Nd(e,t){try{return yd.parse(t,{ecmaVersion:`latest`,sourceType:`module`,locations:!0,allowHashBang:!0})}catch(n){try{_d(t,Ad(e))}catch(n){if(/Unterminated JSX contents/.test(String(n.message)))throw Md(e,t,n)}let r=n;throw jd(e,t,r.message.replace(/\s*\(\d+:\d+\)\s*$/,``),r.loc?.line,r.loc?r.loc.column+1:void 0)}}function Pd(e,t){let n=[],r=`${xd}();`;wd(t,e=>{if(!/^(While|DoWhile|For|ForIn|ForOf)Statement$/.test(e.type))return;let t=e.body;t.type===`BlockStatement`?n.push({at:t.start+1,text:r}):n.push({at:t.start,text:`{${r}`},{at:t.end,text:`}`})});let i=e;for(let{at:e,text:t}of n.sort((e,t)=>t.at-e.at))i=i.slice(0,e)+t+i.slice(e);return i}function Fd(e){let t=[],n=e=>{Cd(e)&&e.type===`Literal`&&typeof e.value==`string`&&t.push({spec:e.value,node:e})};return wd(e,e=>{switch(e.type){case`ImportDeclaration`:case`ExportNamedDeclaration`:case`ExportAllDeclaration`:case`ImportExpression`:n(e.source);break;case`CallExpression`:e.callee.type===`Identifier`&&e.callee.name===`require`&&n(e.arguments[0])}}),t}function Id(e,t,n){let r=n.startsWith(`/`)?[]:t.split(`/`).slice(0,-1);for(let e of n.split(`/`))if(e!==``&&e!==`.`){if(e===`..`){if(!r.length)return;r.pop()}else r.push(e)}let i=r.join(`/`);return[i,`${i}.jsx`,`${i}.js`,`${i}/index.jsx`,`${i}/index.js`].find(t=>Object.hasOwn(e,t))}function Ld(e,t,n,r){let i=Nd(e,t);wd(i,t=>{if(t.type===`MetaProperty`&&t.meta.name===`import`)throw new Sd(e,`import.meta is not available here.`,t.loc.start.line,t.loc.start.column+1)});let a={};for(let{spec:t,node:o}of Fd(i)){let{line:i,column:s}=o.loc.start;if(t.startsWith(`.`)||t.startsWith(`/`)){let o=Id(n,e,t);if(!o)throw new Sd(e,`Cannot find the file "${t}". Check the spelling and the folder.`,i,s+1);a[t]=o,r.push(o)}else if(!bd.includes(t))throw new Sd(e,`The package "${t}" is not available here. Only react and react-dom/client can be imported.`,i,s+1)}try{return{path:e,kind:`js`,text:_d(Pd(t,i),Ad(e)).code,links:a}}catch(n){throw Md(e,t,n)}}function Rd(e,t){let n=/* @__PURE__ */ new Map,r=[...t];for(;r.length;){let t=r.shift();if(n.has(t))continue;let i=e[t]??``;if(/\.(jsx?|mjs)$/.test(t))n.set(t,Ld(t,i,e,r));else if(t.endsWith(`.css`))n.set(t,{path:t,kind:`css`,text:i,links:{}});else if(t.endsWith(`.json`)){try{JSON.parse(i)}catch(e){throw new Sd(t,`This file is not valid JSON: ${e.message}`)}n.set(t,{path:t,kind:`json`,text:i,links:{}})}else throw new Sd(t,`This kind of file cannot be imported here. A project can import .js, .jsx, .css and .json files.`)}return[...n.values()]}export{Sd as CompileError,xd as LOOP_GUARD,bd as REACT_PACKAGES,Rd as compileProject,Id as resolveImport};
|