prettier 3.0.0-alpha.0 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/LICENSE +49 -65
  2. package/{bin-prettier.js → bin/prettier.cjs} +2 -2
  3. package/doc.js +438 -221
  4. package/doc.mjs +1490 -0
  5. package/index.cjs +532 -0
  6. package/{index.js → index.mjs} +4335 -5702
  7. package/{cli.mjs → internal/cli.mjs} +148 -92
  8. package/{third-party.js → internal/third-party.mjs} +123 -100
  9. package/package.json +139 -6
  10. package/plugins/acorn-and-espree.js +13 -0
  11. package/plugins/acorn-and-espree.mjs +13 -0
  12. package/{parser-angular.js → plugins/angular.js} +0 -0
  13. package/{esm/parser-angular.mjs → plugins/angular.mjs} +1 -1
  14. package/plugins/babel.js +16 -0
  15. package/plugins/babel.mjs +16 -0
  16. package/plugins/flow.js +21 -0
  17. package/plugins/flow.mjs +21 -0
  18. package/{parser-glimmer.js → plugins/glimmer.js} +9 -9
  19. package/{esm/parser-glimmer.mjs → plugins/glimmer.mjs} +10 -10
  20. package/plugins/graphql.js +9 -0
  21. package/plugins/graphql.mjs +9 -0
  22. package/plugins/html.js +29 -0
  23. package/plugins/html.mjs +29 -0
  24. package/plugins/markdown.js +39 -0
  25. package/plugins/markdown.mjs +39 -0
  26. package/plugins/meriyah.js +6 -0
  27. package/plugins/meriyah.mjs +6 -0
  28. package/plugins/postcss.js +50 -0
  29. package/plugins/postcss.mjs +50 -0
  30. package/plugins/typescript.js +242 -0
  31. package/plugins/typescript.mjs +242 -0
  32. package/{parser-yaml.js → plugins/yaml.js} +1 -1
  33. package/{esm/parser-yaml.mjs → plugins/yaml.mjs} +1 -1
  34. package/standalone.js +69 -87
  35. package/standalone.mjs +106 -0
  36. package/esm/parser-babel.mjs +0 -18
  37. package/esm/parser-espree.mjs +0 -15
  38. package/esm/parser-flow.mjs +0 -23
  39. package/esm/parser-graphql.mjs +0 -9
  40. package/esm/parser-html.mjs +0 -28
  41. package/esm/parser-markdown.mjs +0 -60
  42. package/esm/parser-meriyah.mjs +0 -8
  43. package/esm/parser-postcss.mjs +0 -53
  44. package/esm/parser-typescript.mjs +0 -269
  45. package/esm/standalone.mjs +0 -124
  46. package/parser-babel.js +0 -18
  47. package/parser-espree.js +0 -15
  48. package/parser-flow.js +0 -23
  49. package/parser-graphql.js +0 -9
  50. package/parser-html.js +0 -28
  51. package/parser-markdown.js +0 -60
  52. package/parser-meriyah.js +0 -8
  53. package/parser-postcss.js +0 -53
  54. package/parser-typescript.js +0 -269
@@ -1,15 +0,0 @@
1
- var Ts=Object.create;var Fe=Object.defineProperty;var ks=Object.getOwnPropertyDescriptor;var Cs=Object.getOwnPropertyNames;var _s=Object.getPrototypeOf,ws=Object.prototype.hasOwnProperty;var Yt=(s,u)=>()=>(s&&(u=s(s=0)),u);var ae=(s,u)=>()=>(u||s((u={exports:{}}).exports,u),u.exports),As=(s,u)=>{for(var c in u)Fe(s,c,{get:u[c],enumerable:!0})},Zt=(s,u,c,o)=>{if(u&&typeof u=="object"||typeof u=="function")for(let h of Cs(u))!ws.call(s,h)&&h!==c&&Fe(s,h,{get:()=>u[h],enumerable:!(o=ks(u,h))||o.enumerable});return s};var Ps=(s,u,c)=>(c=s!=null?Ts(_s(s)):{},Zt(u||!s||!s.__esModule?Fe(c,"default",{value:s,enumerable:!0}):c,s)),Is=s=>Zt(Fe({},"__esModule",{value:!0}),s);var g=Yt(()=>{});var li={};As(li,{EOL:()=>ci,arch:()=>Vs,cpus:()=>ai,default:()=>Rs,endianness:()=>$t,freemem:()=>si,getNetworkInterfaces:()=>hi,hostname:()=>ei,loadavg:()=>ti,networkInterfaces:()=>ui,platform:()=>Os,release:()=>oi,tmpDir:()=>st,tmpdir:()=>pi,totalmem:()=>ri,type:()=>ni,uptime:()=>ii});function $t(){if(typeof je>"u"){var s=new ArrayBuffer(2),u=new Uint8Array(s),c=new Uint16Array(s);if(u[0]=1,u[1]=2,c[0]===258)je="BE";else if(c[0]===513)je="LE";else throw new Error("unable to figure out endianess")}return je}function ei(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function ti(){return[]}function ii(){return 0}function si(){return Number.MAX_VALUE}function ri(){return Number.MAX_VALUE}function ai(){return[]}function ni(){return"Browser"}function oi(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function ui(){}function hi(){}function Vs(){return"javascript"}function Os(){return"browser"}function st(){return"/tmp"}var je,pi,ci,Rs,fi=Yt(()=>{g();pi=st,ci=`
2
- `,Rs={EOL:ci,tmpdir:pi,tmpDir:st,networkInterfaces:ui,getNetworkInterfaces:hi,release:oi,type:ni,cpus:ai,totalmem:ri,freemem:si,uptime:ii,loadavg:ti,hostname:ei,endianness:$t}});var di=ae((zr,Ue)=>{g();var ne=(fi(),Is(li));if(ne&&ne.default){Ue.exports=ne.default;for(let s in ne)Ue.exports[s]=ne[s]}else ne&&(Ue.exports=ne)});var xi=ae((Gr,rt)=>{"use strict";g();var mi=s=>{if(typeof s!="string")throw new TypeError("Expected a string");let u=s.match(/(?:\r?\n)/g)||[];if(u.length===0)return;let c=u.filter(h=>h===`\r
3
- `).length,o=u.length-c;return c>o?`\r
4
- `:`
5
- `};rt.exports=mi;rt.exports.graceful=s=>typeof s=="string"&&mi(s)||`
6
- `});var Ti=ae(oe=>{"use strict";g();Object.defineProperty(oe,"__esModule",{value:!0});oe.extract=qs;oe.parse=Js;oe.parseWithComments=Ei;oe.print=Xs;oe.strip=Ks;function at(){let s=di();return at=function(){return s},s}function nt(){let s=Bs(xi());return nt=function(){return s},s}function Bs(s){return s&&s.__esModule?s:{default:s}}var Ds=/\*\/$/,Fs=/^\/\*\*?/,vi=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Ms=/(^|\s+)\/\/([^\r\n]*)/g,yi=/^(\r?\n)+/,js=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,gi=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Us=/(\r?\n|^) *\* ?/g,Si=[];function qs(s){let u=s.match(vi);return u?u[0].trimLeft():""}function Ks(s){let u=s.match(vi);return u&&u[0]?s.substring(u[0].length):s}function Js(s){return Ei(s).pragmas}function Ei(s){let u=(0,nt().default)(s)||at().EOL;s=s.replace(Fs,"").replace(Ds,"").replace(Us,"$1");let c="";for(;c!==s;)c=s,s=s.replace(js,`${u}$1 $2${u}`);s=s.replace(yi,"").trimRight();let o=Object.create(null),h=s.replace(gi,"").replace(yi,"").trimRight(),f;for(;f=gi.exec(s);){let v=f[2].replace(Ms,"");typeof o[f[1]]=="string"||Array.isArray(o[f[1]])?o[f[1]]=Si.concat(o[f[1]],v):o[f[1]]=v}return{comments:h,pragmas:o}}function Xs({comments:s="",pragmas:u={}}){let c=(0,nt().default)(s)||at().EOL,o="/**",h=" *",f=" */",v=Object.keys(u),O=v.map(I=>bi(I,u[I])).reduce((I,G)=>I.concat(G),[]).map(I=>`${h} ${I}${c}`).join("");if(!s){if(v.length===0)return"";if(v.length===1&&!Array.isArray(u[v[0]])){let I=u[v[0]];return`${o} ${bi(v[0],I)[0]}${f}`}}let U=s.split(c).map(I=>`${h} ${I}`).join(c)+c;return o+c+(s?U:"")+(s&&v.length?h+c:"")+O+f}function bi(s,u){return Si.concat(u).map(c=>`@${s} ${c}`.trim())}});var Ae=ae((Xe,Ri)=>{g();(function(s,u){typeof Xe=="object"&&typeof Ri<"u"?u(Xe):typeof define=="function"&&define.amd?define(["exports"],u):(s=typeof globalThis<"u"?globalThis:s||self,u(s.acorn={}))})(Xe,function(s){"use strict";var u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,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,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239],c=[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,68,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,349,41,7,1,79,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,85,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,159,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,264,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,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,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,482,44,11,6,17,0,322,29,19,43,1269,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,4152,8,221,3,5761,15,7472,3104,541,1507,4938],o="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",h="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",f={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"},v="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",O={5:v,"5module":v+" export import",6:v+" const class extends export import super"},U=/^in(stanceof)?$/,I=new RegExp("["+h+"]"),G=new RegExp("["+h+o+"]");function W(e,t){for(var i=65536,r=0;r<t.length;r+=2){if(i+=t[r],i>e)return!1;if(i+=t[r+1],i>=e)return!0}}function F(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&I.test(String.fromCharCode(e)):t===!1?!1:W(e,c)}function m(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&&G.test(String.fromCharCode(e)):t===!1?!1:W(e,c)||W(e,u)}var x=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function b(e,t){return new x(e,{beforeExpr:!0,binop:t})}var T={beforeExpr:!0},L={startsExpr:!0},Q={};function _(e,t){return t===void 0&&(t={}),t.keyword=e,Q[e]=new x(e,t)}var a={num:new x("num",L),regexp:new x("regexp",L),string:new x("string",L),name:new x("name",L),privateId:new x("privateId",L),eof:new x("eof"),bracketL:new x("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new x("]"),braceL:new x("{",{beforeExpr:!0,startsExpr:!0}),braceR:new x("}"),parenL:new x("(",{beforeExpr:!0,startsExpr:!0}),parenR:new x(")"),comma:new x(",",T),semi:new x(";",T),colon:new x(":",T),dot:new x("."),question:new x("?",T),questionDot:new x("?."),arrow:new x("=>",T),template:new x("template"),invalidTemplate:new x("invalidTemplate"),ellipsis:new x("...",T),backQuote:new x("`",L),dollarBraceL:new x("${",{beforeExpr:!0,startsExpr:!0}),eq:new x("=",{beforeExpr:!0,isAssign:!0}),assign:new x("_=",{beforeExpr:!0,isAssign:!0}),incDec:new x("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new x("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:b("||",1),logicalAND:b("&&",2),bitwiseOR:b("|",3),bitwiseXOR:b("^",4),bitwiseAND:b("&",5),equality:b("==/!=/===/!==",6),relational:b("</>/<=/>=",7),bitShift:b("<</>>/>>>",8),plusMin:new x("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:b("%",10),star:b("*",10),slash:b("/",10),starstar:new x("**",{beforeExpr:!0}),coalesce:b("??",1),_break:_("break"),_case:_("case",T),_catch:_("catch"),_continue:_("continue"),_debugger:_("debugger"),_default:_("default",T),_do:_("do",{isLoop:!0,beforeExpr:!0}),_else:_("else",T),_finally:_("finally"),_for:_("for",{isLoop:!0}),_function:_("function",L),_if:_("if"),_return:_("return",T),_switch:_("switch"),_throw:_("throw",T),_try:_("try"),_var:_("var"),_const:_("const"),_while:_("while",{isLoop:!0}),_with:_("with"),_new:_("new",{beforeExpr:!0,startsExpr:!0}),_this:_("this",L),_super:_("super",L),_class:_("class",L),_extends:_("extends",T),_export:_("export"),_import:_("import",L),_null:_("null",L),_true:_("true",L),_false:_("false",L),_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})},M=/\r\n?|\n|\u2028|\u2029/,xt=new RegExp(M.source,"g");function ie(e){return e===10||e===13||e===8232||e===8233}function yt(e,t,i){i===void 0&&(i=e.length);for(var r=t;r<i;r++){var n=e.charCodeAt(r);if(ie(n))return r<i-1&&n===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var Ge=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,q=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,gt=Object.prototype,Yi=gt.hasOwnProperty,Zi=gt.toString,ye=Object.hasOwn||function(e,t){return Yi.call(e,t)},bt=Array.isArray||function(e){return Zi.call(e)==="[object Array]"};function se(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function ee(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var $i=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ue=function(t,i){this.line=t,this.column=i};ue.prototype.offset=function(t){return new ue(this.line,this.column+t)};var ge=function(t,i,r){this.start=i,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function We(e,t){for(var i=1,r=0;;){var n=yt(e,r,t);if(n<0)return new ue(i,t-r);++i,r=n}}var Ie={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},vt=!1;function es(e){var t={};for(var i in Ie)t[i]=e&&ye(e,i)?e[i]:Ie[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!vt&&typeof console=="object"&&console.warn&&(vt=!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==null&&(t.allowReserved=t.ecmaVersion<5),e.allowHashBang==null&&(t.allowHashBang=t.ecmaVersion>=14),bt(t.onToken)){var r=t.onToken;t.onToken=function(n){return r.push(n)}}return bt(t.onComment)&&(t.onComment=ts(t,t.onComment)),t}function ts(e,t){return function(i,r,n,p,l,d){var y={type:i?"Block":"Line",value:r,start:n,end:p};e.locations&&(y.loc=new ge(this,l,d)),e.ranges&&(y.range=[n,p]),t.push(y)}}var be=1,he=2,He=4,St=8,Et=16,Tt=32,Qe=64,kt=128,ve=256,Ye=be|he|ve;function Ze(e,t){return he|(e?He:0)|(t?St:0)}var Ne=0,$e=1,Y=2,Ct=3,_t=4,wt=5,V=function(t,i,r){this.options=t=es(t),this.sourceFile=t.sourceFile,this.keywords=se(O[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=f[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=se(n);var p=(n?n+" ":"")+f.strict;this.reservedWordsStrict=se(p),this.reservedWordsStrictBind=se(p+" "+f.strictBind),this.input=String(i),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
8
- `,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(M).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.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=t.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&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(be),this.regexpState=null,this.privateNameStack=[]},H={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}};V.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},H.inFunction.get=function(){return(this.currentVarScope().flags&he)>0},H.inGenerator.get=function(){return(this.currentVarScope().flags&St)>0&&!this.currentVarScope().inClassFieldInit},H.inAsync.get=function(){return(this.currentVarScope().flags&He)>0&&!this.currentVarScope().inClassFieldInit},H.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&ve)return!1;if(t.flags&he)return(t.flags&He)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},H.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&Qe)>0||i||this.options.allowSuperOutsideMethod},H.allowDirectSuper.get=function(){return(this.currentThisScope().flags&kt)>0},H.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},H.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(he|ve))>0||i},H.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ve)>0},V.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var r=this,n=0;n<t.length;n++)r=t[n](r);return r},V.parse=function(t,i){return new this(i,t).parse()},V.parseExpressionAt=function(t,i,r){var n=new this(r,t,i);return n.nextToken(),n.parseExpression()},V.tokenizer=function(t,i){return new this(i,t)},Object.defineProperties(V.prototype,H);var B=V.prototype,is=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;B.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){q.lastIndex=e,e+=q.exec(this.input)[0].length;var t=is.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){q.lastIndex=e+t[0].length;var i=q.exec(this.input),r=i.index+i[0].length,n=this.input.charAt(r);return n===";"||n==="}"||M.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(r+1)==="=")}e+=t[0].length,q.lastIndex=e,e+=q.exec(this.input)[0].length,this.input[e]===";"&&e++}},B.eat=function(e){return this.type===e?(this.next(),!0):!1},B.isContextual=function(e){return this.type===a.name&&this.value===e&&!this.containsEsc},B.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},B.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},B.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||M.test(this.input.slice(this.lastTokEnd,this.start))},B.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},B.semicolon=function(){!this.eat(a.semi)&&!this.insertSemicolon()&&this.unexpected()},B.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},B.expect=function(e){this.eat(e)||this.unexpected()},B.unexpected=function(e){this.raise(e!=null?e:this.start,"Unexpected token")};var Le=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};B.checkPatternErrors=function(e,t){if(!!e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},B.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,r=e.doubleProto;if(!t)return i>=0||r>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},B.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")},B.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var E=V.prototype;E.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==a.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var r=0,n=Object.keys(this.undefinedExports);r<n.length;r+=1){var p=n[r];this.raiseRecoverable(this.undefinedExports[p].start,"Export '"+p+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var et={kind:"loop"},ss={kind:"switch"};E.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;q.lastIndex=this.pos;var t=q.exec(this.input),i=this.pos+t[0].length,r=this.input.charCodeAt(i);if(r===91||r===92||r>55295&&r<56320)return!0;if(e)return!1;if(r===123)return!0;if(F(r,!0)){for(var n=i+1;m(r=this.input.charCodeAt(n),!0);)++n;if(r===92||r>55295&&r<56320)return!0;var p=this.input.slice(i,n);if(!U.test(p))return!0}return!1},E.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;q.lastIndex=this.pos;var e=q.exec(this.input),t=this.pos+e[0].length,i;return!M.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(m(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))},E.parseStatement=function(e,t,i){var r=this.type,n=this.startNode(),p;switch(this.isLet(e)&&(r=a._var,p="let"),r){case a._break:case a._continue:return this.parseBreakContinueStatement(n,r.keyword);case a._debugger:return this.parseDebuggerStatement(n);case a._do:return this.parseDoStatement(n);case a._for:return this.parseForStatement(n);case a._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case a._class:return e&&this.unexpected(),this.parseClass(n,!0);case a._if:return this.parseIfStatement(n);case a._return:return this.parseReturnStatement(n);case a._switch:return this.parseSwitchStatement(n);case a._throw:return this.parseThrowStatement(n);case a._try:return this.parseTryStatement(n);case a._const:case a._var:return p=p||this.value,e&&p!=="var"&&this.unexpected(),this.parseVarStatement(n,p);case a._while:return this.parseWhileStatement(n);case a._with:return this.parseWithStatement(n);case a.braceL:return this.parseBlock(!0,n);case a.semi:return this.parseEmptyStatement(n);case a._export:case a._import:if(this.options.ecmaVersion>10&&r===a._import){q.lastIndex=this.pos;var l=q.exec(this.input),d=this.pos+l[0].length,y=this.input.charCodeAt(d);if(y===40||y===46)return this.parseExpressionStatement(n,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===a._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var k=this.value,w=this.parseExpression();return r===a.name&&w.type==="Identifier"&&this.eat(a.colon)?this.parseLabeledStatement(n,k,w,e):this.parseExpressionStatement(n,w)}},E.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(a.semi)||this.insertSemicolon()?e.label=null:this.type!==a.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var n=this.labels[r];if((e.label==null||n.name===e.label.name)&&(n.kind!=null&&(i||n.kind==="loop")||e.label&&i))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},E.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},E.parseDoStatement=function(e){return this.next(),this.labels.push(et),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(a._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(a.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},E.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(et),this.enterScope(0),this.expect(a.parenL),this.type===a.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===a._var||this.type===a._const||i){var r=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(r,!0,n),this.finishNode(r,"VariableDeclaration"),(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===a._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var p=this.isContextual("let"),l=!1,d=new Le,y=this.parseExpression(t>-1?"await":!0,d);return this.type===a._in||(l=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===a._in?t>-1&&this.unexpected(t):e.await=t>-1),p&&l&&this.raise(y.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(y,!1,d),this.checkLValPattern(y),this.parseForIn(e,y)):(this.checkExpressionErrors(d,!0),t>-1&&this.unexpected(t),this.parseFor(e,y))},E.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,Se|(i?0:tt),!1,t)},E.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},E.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(a.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},E.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(a.braceL),this.labels.push(ss),this.enterScope(0);for(var t,i=!1;this.type!==a.braceR;)if(this.type===a._case||this.type===a._default){var r=this.type===a._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(a.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")},E.parseThrowStatement=function(e){return this.next(),M.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")};var rs=[];E.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===a._catch){var t=this.startNode();if(this.next(),this.eat(a.parenL)){t.param=this.parseBindingAtom();var i=t.param.type==="Identifier";this.enterScope(i?Tt:0),this.checkLValPattern(t.param,i?_t:Y),this.expect(a.parenR)}else 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(a._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},E.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},E.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(et),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},E.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")},E.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},E.parseLabeledStatement=function(e,t,i,r){for(var n=0,p=this.labels;n<p.length;n+=1){var l=p[n];l.name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var d=this.type.isLoop?"loop":this.type===a._switch?"switch":null,y=this.labels.length-1;y>=0;y--){var k=this.labels[y];if(k.statementStart===e.start)k.statementStart=this.start,k.kind=d;else break}return this.labels.push({name:t,kind:d,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},E.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},E.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(a.braceL),e&&this.enterScope(0);this.type!==a.braceR;){var r=this.parseStatement(null);t.body.push(r)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},E.parseFor=function(e,t){return e.init=t,this.expect(a.semi),e.test=this.type===a.semi?null:this.parseExpression(),this.expect(a.semi),e.update=this.type===a.parenR?null:this.parseExpression(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},E.parseForIn=function(e,t){var i=this.type===a._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},E.parseVar=function(e,t,i){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(a.eq)?r.init=this.parseMaybeAssign(t):i==="const"&&!(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():r.id.type!=="Identifier"&&!(t&&(this.type===a._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(a.comma))break}return e},E.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?$e:Y,!1)};var Se=1,tt=2,At=4;E.parseFunction=function(e,t,i,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===a.star&&t&tt&&this.unexpected(),e.generator=this.eat(a.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Se&&(e.id=t&At&&this.type!==a.name?null:this.parseIdent(),e.id&&!(t&tt)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?$e:Y:Ct));var p=this.yieldPos,l=this.awaitPos,d=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ze(e.async,e.generator)),t&Se||(e.id=this.type===a.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,n),this.yieldPos=p,this.awaitPos=l,this.awaitIdentPos=d,this.finishNode(e,t&Se?"FunctionDeclaration":"FunctionExpression")},E.parseFunctionParams=function(e){this.expect(a.parenL),e.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},E.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),n=this.startNode(),p=!1;for(n.body=[],this.expect(a.braceL);this.type!==a.braceR;){var l=this.parseClassElement(e.superClass!==null);l&&(n.body.push(l),l.type==="MethodDefinition"&&l.kind==="constructor"?(p&&this.raise(l.start,"Duplicate constructor in the same class"),p=!0):l.key&&l.key.type==="PrivateIdentifier"&&as(r,l)&&this.raiseRecoverable(l.key.start,"Identifier '#"+l.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},E.parseClassElement=function(e){if(this.eat(a.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),r="",n=!1,p=!1,l="method",d=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(a.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===a.star?d=!0:r="static"}if(i.static=d,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===a.star)&&!this.canInsertSemicolon()?p=!0:r="async"),!r&&(t>=9||!p)&&this.eat(a.star)&&(n=!0),!r&&!p&&!n){var y=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?l=y:r=y)}if(r?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=r,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===a.parenL||l!=="method"||n||p){var k=!i.static&&Ve(i,"constructor"),w=k&&e;k&&l!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=k?"constructor":l,this.parseClassMethod(i,n,p,w)}else this.parseClassField(i);return i},E.isClassElementNameStart=function(){return this.type===a.name||this.type===a.privateId||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword},E.parseClassElementName=function(e){this.type===a.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)},E.parseClassMethod=function(e,t,i,r){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):e.static&&Ve(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var p=e.value=this.parseMethod(t,i,r);return e.kind==="get"&&p.params.length!==0&&this.raiseRecoverable(p.start,"getter should have no params"),e.kind==="set"&&p.params.length!==1&&this.raiseRecoverable(p.start,"setter should have exactly one param"),e.kind==="set"&&p.params[0].type==="RestElement"&&this.raiseRecoverable(p.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},E.parseClassField=function(e){if(Ve(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Ve(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(a.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},E.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(ve|Qe);this.type!==a.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},E.parseClassId=function(e,t){this.type===a.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Y,!1)):(t===!0&&this.unexpected(),e.id=null)},E.parseClassSuper=function(e){e.superClass=this.eat(a._extends)?this.parseExprSubscripts(!1):null},E.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},E.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,i=e.used,r=this.privateNameStack.length,n=r===0?null:this.privateNameStack[r-1],p=0;p<i.length;++p){var l=i[p];ye(t,l.name)||(n?n.used.push(l):this.raiseRecoverable(l.start,"Private field '#"+l.name+"' must be declared in an enclosing class"))}};function as(e,t){var i=t.key.name,r=e[i],n="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(n=(t.static?"s":"i")+t.kind),r==="iget"&&n==="iset"||r==="iset"&&n==="iget"||r==="sget"&&n==="sset"||r==="sset"&&n==="sget"?(e[i]="true",!1):r?!0:(e[i]=n,!1)}function Ve(e,t){var i=e.computed,r=e.key;return!i&&(r.type==="Identifier"&&r.name===t||r.type==="Literal"&&r.value===t)}E.parseExport=function(e,t){if(this.next(),this.eat(a.star))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!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(a._default)){this.checkExport(t,"default",this.lastTokStart);var i;if(this.type===a._function||(i=this.isAsyncFunction())){var r=this.startNode();this.next(),i&&this.next(),e.declaration=this.parseFunction(r,Se|At,!1,i)}else if(this.type===a._class){var n=this.startNode();e.declaration=this.parseClass(n,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),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;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var p=0,l=e.specifiers;p<l.length;p+=1){var d=l[p];this.checkUnreserved(d.local),this.checkLocalExport(d.local),d.local.type==="Literal"&&this.raise(d.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},E.checkExport=function(e,t,i){!e||(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),ye(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},E.checkPatternExport=function(e,t){var i=t.type;if(i==="Identifier")this.checkExport(e,t,t.start);else if(i==="ObjectPattern")for(var r=0,n=t.properties;r<n.length;r+=1){var p=n[r];this.checkPatternExport(e,p)}else if(i==="ArrayPattern")for(var l=0,d=t.elements;l<d.length;l+=1){var y=d[l];y&&this.checkPatternExport(e,y)}else i==="Property"?this.checkPatternExport(e,t.value):i==="AssignmentPattern"?this.checkPatternExport(e,t.left):i==="RestElement"?this.checkPatternExport(e,t.argument):i==="ParenthesizedExpression"&&this.checkPatternExport(e,t.expression)},E.checkVariableExport=function(e,t){if(!!e)for(var i=0,r=t;i<r.length;i+=1){var n=r[i];this.checkPatternExport(e,n.id)}},E.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},E.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(a.braceL);!this.eat(a.braceR);){if(i)i=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),t.push(this.finishNode(r,"ExportSpecifier"))}return t},E.parseImport=function(e){return this.next(),this.type===a.string?(e.specifiers=rs,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===a.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},E.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===a.name){var i=this.startNode();if(i.local=this.parseIdent(),this.checkLValSimple(i.local,Y),e.push(this.finishNode(i,"ImportDefaultSpecifier")),!this.eat(a.comma))return e}if(this.type===a.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLValSimple(r.local,Y),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(a.braceL);!this.eat(a.braceR);){if(t)t=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;var n=this.startNode();n.imported=this.parseModuleExportName(),this.eatContextual("as")?n.local=this.parseIdent():(this.checkUnreserved(n.imported),n.local=n.imported),this.checkLValSimple(n.local,Y),e.push(this.finishNode(n,"ImportSpecifier"))}return e},E.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===a.string){var e=this.parseLiteral(this.value);return $i.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},E.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)},E.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]==="'")};var J=V.prototype;J.toAssignable=function(e,t,i){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",i&&this.checkPatternErrors(i,!0);for(var r=0,n=e.properties;r<n.length;r+=1){var p=n[r];this.toAssignable(p,t),p.type==="RestElement"&&(p.argument.type==="ArrayPattern"||p.argument.type==="ObjectPattern")&&this.raise(p.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",i&&this.checkPatternErrors(i,!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,i);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 i&&this.checkPatternErrors(i,!0);return e},J.toAssignableList=function(e,t){for(var i=e.length,r=0;r<i;r++){var n=e[r];n&&this.toAssignable(n,t)}if(i){var p=e[i-1];this.options.ecmaVersion===6&&t&&p&&p.type==="RestElement"&&p.argument.type!=="Identifier"&&this.unexpected(p.argument.start)}return e},J.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},J.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==a.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},J.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case a.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(a.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case a.braceL:return this.parseObj(!0)}return this.parseIdent()},J.parseBindingList=function(e,t,i){for(var r=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(a.comma),t&&this.type===a.comma)r.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===a.ellipsis){var p=this.parseRestBinding();this.parseBindingListItem(p),r.push(p),this.type===a.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else{var l=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(l),r.push(l)}}return r},J.parseBindingListItem=function(e){return e},J.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(a.eq))return i;var r=this.startNodeAt(e,t);return r.left=i,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},J.checkLValSimple=function(e,t,i){t===void 0&&(t=Ne);var r=t!==Ne;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===Y&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(ye(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==wt&&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,i);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},J.checkLValPattern=function(e,t,i){switch(t===void 0&&(t=Ne),e.type){case"ObjectPattern":for(var r=0,n=e.properties;r<n.length;r+=1){var p=n[r];this.checkLValInnerPattern(p,t,i)}break;case"ArrayPattern":for(var l=0,d=e.elements;l<d.length;l+=1){var y=d[l];y&&this.checkLValInnerPattern(y,t,i)}break;default:this.checkLValSimple(e,t,i)}},J.checkLValInnerPattern=function(e,t,i){switch(t===void 0&&(t=Ne),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var K=function(t,i,r,n,p){this.token=t,this.isExpr=!!i,this.preserveSpace=!!r,this.override=n,this.generator=!!p},N={b_stat:new K("{",!1),b_expr:new K("{",!0),b_tmpl:new K("${",!1),p_stat:new K("(",!1),p_expr:new K("(",!0),q_tmpl:new K("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new K("function",!1),f_expr:new K("function",!0),f_expr_gen:new K("function",!0,!1,null,!0),f_gen:new K("function",!1,!1,null,!0)},pe=V.prototype;pe.initialContext=function(){return[N.b_stat]},pe.curContext=function(){return this.context[this.context.length-1]},pe.braceIsBlock=function(e){var t=this.curContext();return t===N.f_expr||t===N.f_stat?!0:e===a.colon&&(t===N.b_stat||t===N.b_expr)?!t.isExpr:e===a._return||e===a.name&&this.exprAllowed?M.test(this.input.slice(this.lastTokEnd,this.start)):e===a._else||e===a.semi||e===a.eof||e===a.parenR||e===a.arrow?!0:e===a.braceL?t===N.b_stat:e===a._var||e===a._const||e===a.name?!1:!this.exprAllowed},pe.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},pe.updateContext=function(e){var t,i=this.type;i.keyword&&e===a.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},pe.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},a.parenR.updateContext=a.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===N.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},a.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?N.b_stat:N.b_expr),this.exprAllowed=!0},a.dollarBraceL.updateContext=function(){this.context.push(N.b_tmpl),this.exprAllowed=!0},a.parenL.updateContext=function(e){var t=e===a._if||e===a._for||e===a._with||e===a._while;this.context.push(t?N.p_stat:N.p_expr),this.exprAllowed=!0},a.incDec.updateContext=function(){},a._function.updateContext=a._class.updateContext=function(e){e.beforeExpr&&e!==a._else&&!(e===a.semi&&this.curContext()!==N.p_stat)&&!(e===a._return&&M.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===a.colon||e===a.braceL)&&this.curContext()===N.b_stat)?this.context.push(N.f_expr):this.context.push(N.f_stat),this.exprAllowed=!1},a.backQuote.updateContext=function(){this.curContext()===N.q_tmpl?this.context.pop():this.context.push(N.q_tmpl),this.exprAllowed=!1},a.star.updateContext=function(e){if(e===a._function){var t=this.context.length-1;this.context[t]===N.f_expr?this.context[t]=N.f_expr_gen:this.context[t]=N.f_gen}this.exprAllowed=!0},a.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==a.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var C=V.prototype;C.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,n;switch(r.type){case"Identifier":n=r.name;break;case"Literal":n=String(r.value);break;default:return}var p=e.kind;if(this.options.ecmaVersion>=6){n==="__proto__"&&p==="init"&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);return}n="$"+n;var l=t[n];if(l){var d;p==="init"?d=this.strict&&l.init||l.get||l.set:d=l.init||l[p],d&&this.raiseRecoverable(r.start,"Redefinition of property")}else l=t[n]={init:!1,get:!1,set:!1};l[p]=!0}},C.parseExpression=function(e,t){var i=this.start,r=this.startLoc,n=this.parseMaybeAssign(e,t);if(this.type===a.comma){var p=this.startNodeAt(i,r);for(p.expressions=[n];this.eat(a.comma);)p.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(p,"SequenceExpression")}return n},C.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,n=-1,p=-1,l=-1;t?(n=t.parenthesizedAssign,p=t.trailingComma,l=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Le,r=!0);var d=this.start,y=this.startLoc;(this.type===a.parenL||this.type===a.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var k=this.parseMaybeConditional(e,t);if(i&&(k=i.call(this,k,d,y)),this.type.isAssign){var w=this.startNodeAt(d,y);return w.operator=this.value,this.type===a.eq&&(k=this.toAssignable(k,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=k.start&&(t.shorthandAssign=-1),this.type===a.eq?this.checkLValPattern(k):this.checkLValSimple(k),w.left=k,this.next(),w.right=this.parseMaybeAssign(e),l>-1&&(t.doubleProto=l),this.finishNode(w,"AssignmentExpression")}else r&&this.checkExpressionErrors(t,!0);return n>-1&&(t.parenthesizedAssign=n),p>-1&&(t.trailingComma=p),k},C.parseMaybeConditional=function(e,t){var i=this.start,r=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(this.eat(a.question)){var p=this.startNodeAt(i,r);return p.test=n,p.consequent=this.parseMaybeAssign(),this.expect(a.colon),p.alternate=this.parseMaybeAssign(e),this.finishNode(p,"ConditionalExpression")}return n},C.parseExprOps=function(e,t){var i=this.start,r=this.startLoc,n=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||n.start===i&&n.type==="ArrowFunctionExpression"?n:this.parseExprOp(n,i,r,-1,e)},C.parseExprOp=function(e,t,i,r,n){var p=this.type.binop;if(p!=null&&(!n||this.type!==a._in)&&p>r){var l=this.type===a.logicalOR||this.type===a.logicalAND,d=this.type===a.coalesce;d&&(p=a.logicalAND.binop);var y=this.value;this.next();var k=this.start,w=this.startLoc,R=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),k,w,p,n),re=this.buildBinary(t,i,e,R,y,l||d);return(l&&this.type===a.coalesce||d&&(this.type===a.logicalOR||this.type===a.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(re,t,i,r,n)}return e},C.buildBinary=function(e,t,i,r,n,p){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var l=this.startNodeAt(e,t);return l.left=i,l.operator=n,l.right=r,this.finishNode(l,p?"LogicalExpression":"BinaryExpression")},C.parseMaybeUnary=function(e,t,i,r){var n=this.start,p=this.startLoc,l;if(this.isContextual("await")&&this.canAwait)l=this.parseAwait(r),t=!0;else if(this.type.prefix){var d=this.startNode(),y=this.type===a.incDec;d.operator=this.value,d.prefix=!0,this.next(),d.argument=this.parseMaybeUnary(null,!0,y,r),this.checkExpressionErrors(e,!0),y?this.checkLValSimple(d.argument):this.strict&&d.operator==="delete"&&d.argument.type==="Identifier"?this.raiseRecoverable(d.start,"Deleting local variable in strict mode"):d.operator==="delete"&&Pt(d.argument)?this.raiseRecoverable(d.start,"Private fields can not be deleted"):t=!0,l=this.finishNode(d,y?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===a.privateId)(r||this.privateNameStack.length===0)&&this.unexpected(),l=this.parsePrivateIdent(),this.type!==a._in&&this.unexpected();else{if(l=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return l;for(;this.type.postfix&&!this.canInsertSemicolon();){var k=this.startNodeAt(n,p);k.operator=this.value,k.prefix=!1,k.argument=l,this.checkLValSimple(l),this.next(),l=this.finishNode(k,"UpdateExpression")}}if(!i&&this.eat(a.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(n,p,l,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return l};function Pt(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Pt(e.expression)}C.parseExprSubscripts=function(e,t){var i=this.start,r=this.startLoc,n=this.parseExprAtom(e,t);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var p=this.parseSubscripts(n,i,r,!1,t);return e&&p.type==="MemberExpression"&&(e.parenthesizedAssign>=p.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=p.start&&(e.parenthesizedBind=-1),e.trailingComma>=p.start&&(e.trailingComma=-1)),p},C.parseSubscripts=function(e,t,i,r,n){for(var p=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,l=!1;;){var d=this.parseSubscript(e,t,i,r,p,l,n);if(d.optional&&(l=!0),d===e||d.type==="ArrowFunctionExpression"){if(l){var y=this.startNodeAt(t,i);y.expression=d,d=this.finishNode(y,"ChainExpression")}return d}e=d}},C.parseSubscript=function(e,t,i,r,n,p,l){var d=this.options.ecmaVersion>=11,y=d&&this.eat(a.questionDot);r&&y&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var k=this.eat(a.bracketL);if(k||y&&this.type!==a.parenL&&this.type!==a.backQuote||this.eat(a.dot)){var w=this.startNodeAt(t,i);w.object=e,k?(w.property=this.parseExpression(),this.expect(a.bracketR)):this.type===a.privateId&&e.type!=="Super"?w.property=this.parsePrivateIdent():w.property=this.parseIdent(this.options.allowReserved!=="never"),w.computed=!!k,d&&(w.optional=y),e=this.finishNode(w,"MemberExpression")}else if(!r&&this.eat(a.parenL)){var R=new Le,re=this.yieldPos,ke=this.awaitPos,ce=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var De=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1,R);if(n&&!y&&!this.canInsertSemicolon()&&this.eat(a.arrow))return this.checkPatternErrors(R,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=re,this.awaitPos=ke,this.awaitIdentPos=ce,this.parseArrowExpression(this.startNodeAt(t,i),De,!0,l);this.checkExpressionErrors(R,!0),this.yieldPos=re||this.yieldPos,this.awaitPos=ke||this.awaitPos,this.awaitIdentPos=ce||this.awaitIdentPos;var le=this.startNodeAt(t,i);le.callee=e,le.arguments=De,d&&(le.optional=y),e=this.finishNode(le,"CallExpression")}else if(this.type===a.backQuote){(y||p)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var fe=this.startNodeAt(t,i);fe.tag=e,fe.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(fe,"TaggedTemplateExpression")}return e},C.parseExprAtom=function(e,t){this.type===a.slash&&this.readRegexp();var i,r=this.potentialArrowAt===this.start;switch(this.type){case a._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===a.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==a.dot&&this.type!==a.bracketL&&this.type!==a.parenL&&this.unexpected(),this.finishNode(i,"Super");case a._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case a.name:var n=this.start,p=this.startLoc,l=this.containsEsc,d=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!l&&d.name==="async"&&!this.canInsertSemicolon()&&this.eat(a._function))return this.overrideContext(N.f_expr),this.parseFunction(this.startNodeAt(n,p),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(n,p),[d],!1,t);if(this.options.ecmaVersion>=8&&d.name==="async"&&this.type===a.name&&!l&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return d=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(a.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,p),[d],!0,t)}return d;case a.regexp:var y=this.value;return i=this.parseLiteral(y.value),i.regex={pattern:y.pattern,flags:y.flags},i;case a.num:case a.string:return this.parseLiteral(this.value);case a._null:case a._true:case a._false:return i=this.startNode(),i.value=this.type===a._null?null:this.type===a._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case a.parenL:var k=this.start,w=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(w)&&(e.parenthesizedAssign=k),e.parenthesizedBind<0&&(e.parenthesizedBind=k)),w;case a.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(a.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case a.braceL:return this.overrideContext(N.b_expr),this.parseObj(!1,e);case a._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case a._class:return this.parseClass(this.startNode(),!1);case a._new:return this.parseNew();case a.backQuote:return this.parseTemplate();case a._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},C.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case a.parenL:return this.parseDynamicImport(e);case a.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},C.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(a.parenR)){var t=this.start;this.eat(a.comma)&&this.eat(a.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},C.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")},C.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.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},C.parseParenExpression=function(){this.expect(a.parenL);var e=this.parseExpression();return this.expect(a.parenR),e},C.parseParenAndDistinguishExpression=function(e,t){var i=this.start,r=this.startLoc,n,p=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var l=this.start,d=this.startLoc,y=[],k=!0,w=!1,R=new Le,re=this.yieldPos,ke=this.awaitPos,ce;for(this.yieldPos=0,this.awaitPos=0;this.type!==a.parenR;)if(k?k=!1:this.expect(a.comma),p&&this.afterTrailingComma(a.parenR,!0)){w=!0;break}else if(this.type===a.ellipsis){ce=this.start,y.push(this.parseParenItem(this.parseRestBinding())),this.type===a.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else y.push(this.parseMaybeAssign(!1,R,this.parseParenItem));var De=this.lastTokEnd,le=this.lastTokEndLoc;if(this.expect(a.parenR),e&&!this.canInsertSemicolon()&&this.eat(a.arrow))return this.checkPatternErrors(R,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=re,this.awaitPos=ke,this.parseParenArrowList(i,r,y,t);(!y.length||w)&&this.unexpected(this.lastTokStart),ce&&this.unexpected(ce),this.checkExpressionErrors(R,!0),this.yieldPos=re||this.yieldPos,this.awaitPos=ke||this.awaitPos,y.length>1?(n=this.startNodeAt(l,d),n.expressions=y,this.finishNodeAt(n,"SequenceExpression",De,le)):n=y[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var fe=this.startNodeAt(i,r);return fe.expression=n,this.finishNode(fe,"ParenthesizedExpression")}else return n},C.parseParenItem=function(e){return e},C.parseParenArrowList=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,r)};var ns=[];C.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(a.dot)){e.meta=t;var i=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'"),i&&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,n=this.startLoc,p=this.type===a._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,n,!0,!1),p&&e.callee.type==="ImportExpression"&&this.raise(r,"Cannot use new with import()"),this.eat(a.parenL)?e.arguments=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ns,this.finishNode(e,"NewExpression")},C.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===a.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
9
- `),cooked:this.value},this.next(),i.tail=this.type===a.backQuote,this.finishNode(i,"TemplateElement")},C.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(i.quasis=[r];!r.tail;)this.type===a.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(a.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(a.braceR),i.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},C.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===a.name||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===a.star)&&!M.test(this.input.slice(this.lastTokEnd,this.start))},C.parseObj=function(e,t){var i=this.startNode(),r=!0,n={};for(i.properties=[],this.next();!this.eat(a.braceR);){if(r)r=!1;else if(this.expect(a.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(a.braceR))break;var p=this.parseProperty(e,t);e||this.checkPropClash(p,n,t),i.properties.push(p)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},C.parseProperty=function(e,t){var i=this.startNode(),r,n,p,l;if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===a.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===a.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(p=this.start,l=this.startLoc),e||(r=this.eat(a.star)));var d=this.containsEsc;return this.parsePropertyName(i),!e&&!d&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(i)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(i,t)):n=!1,this.parsePropertyValue(i,e,r,n,p,l,t,d),this.finishNode(i,"Property")},C.parsePropertyValue=function(e,t,i,r,n,p,l,d){if((i||r)&&this.type===a.colon&&this.unexpected(),this.eat(a.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,l),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===a.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,r);else if(!t&&!d&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==a.comma&&this.type!==a.braceR&&this.type!==a.eq){(i||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var y=e.kind==="get"?0:1;if(e.value.params.length!==y){var k=e.value.start;e.kind==="get"?this.raiseRecoverable(k,"getter should have no params"):this.raiseRecoverable(k,"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")}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,p,this.copyNode(e.key)):this.type===a.eq&&l?(l.shorthandAssign<0&&(l.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,p,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},C.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(a.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(a.bracketR),e.key;e.computed=!1}return e.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},C.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},C.parseMethod=function(e,t,i){var r=this.startNode(),n=this.yieldPos,p=this.awaitPos,l=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(Ze(t,r.generator)|Qe|(i?kt:0)),this.expect(a.parenL),r.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=n,this.awaitPos=p,this.awaitIdentPos=l,this.finishNode(r,"FunctionExpression")},C.parseArrowExpression=function(e,t,i,r){var n=this.yieldPos,p=this.awaitPos,l=this.awaitIdentPos;return this.enterScope(Ze(i,!1)|Et),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=n,this.awaitPos=p,this.awaitIdentPos=l,this.finishNode(e,"ArrowFunctionExpression")},C.parseFunctionBody=function(e,t,i,r){var n=t&&this.type!==a.braceL,p=this.strict,l=!1;if(n)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var d=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!p||d)&&(l=this.strictDirective(this.end),l&&d&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var y=this.labels;this.labels=[],l&&(this.strict=!0),this.checkParams(e,!p&&!l&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,wt),e.body=this.parseBlock(!1,void 0,l&&!p),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=y}this.exitScope()},C.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){var r=i[t];if(r.type!=="Identifier")return!1}return!0},C.checkParams=function(e,t){for(var i=Object.create(null),r=0,n=e.params;r<n.length;r+=1){var p=n[r];this.checkLValInnerPattern(p,$e,t?null:i)}},C.parseExprList=function(e,t,i,r){for(var n=[],p=!0;!this.eat(e);){if(p)p=!1;else if(this.expect(a.comma),t&&this.afterTrailingComma(e))break;var l=void 0;i&&this.type===a.comma?l=null:this.type===a.ellipsis?(l=this.parseSpread(r),r&&this.type===a.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):l=this.parseMaybeAssign(!1,r),n.push(l)}return n},C.checkUnreserved=function(e){var t=e.start,i=e.end,r=e.name;if(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().inClassFieldInit&&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,i).indexOf("\\")!==-1)){var n=this.strict?this.reservedWordsStrict:this.reservedWords;n.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"))}},C.parseIdent=function(e,t){var i=this.startNode();return this.type===a.name?i.name=this.value:this.type.keyword?(i.name=this.type.keyword,(i.name==="class"||i.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(i,"Identifier"),e||(this.checkUnreserved(i),i.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=i.start)),i},C.parsePrivateIdent=function(){var e=this.startNode();return this.type===a.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),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},C.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===a.semi||this.canInsertSemicolon()||this.type!==a.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(a.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},C.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Oe=V.prototype;Oe.raise=function(e,t){var i=We(this.input,e);t+=" ("+i.line+":"+i.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=i,r.raisedAt=this.pos,r},Oe.raiseRecoverable=Oe.raise,Oe.curPosition=function(){if(this.options.locations)return new ue(this.curLine,this.pos-this.lineStart)};var te=V.prototype,os=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};te.enterScope=function(e){this.scopeStack.push(new os(e))},te.exitScope=function(){this.scopeStack.pop()},te.treatFunctionsAsVarInScope=function(e){return e.flags&he||!this.inModule&&e.flags&be},te.declareName=function(e,t,i){var r=!1;if(t===Y){var n=this.currentScope();r=n.lexical.indexOf(e)>-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&be&&delete this.undefinedExports[e]}else if(t===_t){var p=this.currentScope();p.lexical.push(e)}else if(t===Ct){var l=this.currentScope();this.treatFunctionsAsVar?r=l.lexical.indexOf(e)>-1:r=l.lexical.indexOf(e)>-1||l.var.indexOf(e)>-1,l.functions.push(e)}else for(var d=this.scopeStack.length-1;d>=0;--d){var y=this.scopeStack[d];if(y.lexical.indexOf(e)>-1&&!(y.flags&Tt&&y.lexical[0]===e)||!this.treatFunctionsAsVarInScope(y)&&y.functions.indexOf(e)>-1){r=!0;break}if(y.var.push(e),this.inModule&&y.flags&be&&delete this.undefinedExports[e],y.flags&Ye)break}r&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},te.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},te.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},te.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Ye)return t}},te.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Ye&&!(t.flags&Et))return t}};var Ee=function(t,i,r){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new ge(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},Te=V.prototype;Te.startNode=function(){return new Ee(this,this.start,this.startLoc)},Te.startNodeAt=function(e,t){return new Ee(this,e,t)};function It(e,t,i,r){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=i),e}Te.finishNode=function(e,t){return It.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Te.finishNodeAt=function(e,t,i,r){return It.call(this,e,t,i,r)},Te.copyNode=function(e){var t=new Ee(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Nt="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",Lt=Nt+" Extended_Pictographic",Vt=Lt,Ot=Vt+" EBase EComp EMod EPres ExtPict",us=Ot,hs={9:Nt,10:Lt,11:Vt,12:Ot,13:us},Rt="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",Bt="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",Dt=Bt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ft=Dt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Mt=Ft+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ps=Mt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",cs={9:Bt,10:Dt,11:Ft,12:Mt,13:ps},jt={};function ls(e){var t=jt[e]={binary:se(hs[e]+" "+Rt),nonBinary:{General_Category:se(Rt),Script:se(cs[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}for(var it=0,Ut=[9,10,11,12,13];it<Ut.length;it+=1){var fs=Ut[it];ls(fs)}var S=V.prototype,Z=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":""),this.unicodeProperties=jt[t.options.ecmaVersion>=13?13:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Z.prototype.reset=function(t,i,r){var n=r.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},Z.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},Z.prototype.at=function(t,i){i===void 0&&(i=!1);var r=this.source,n=r.length;if(t>=n)return-1;var p=r.charCodeAt(t);if(!(i||this.switchU)||p<=55295||p>=57344||t+1>=n)return p;var l=r.charCodeAt(t+1);return l>=56320&&l<=57343?(p<<10)+l-56613888:p},Z.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var r=this.source,n=r.length;if(t>=n)return n;var p=r.charCodeAt(t),l;return!(i||this.switchU)||p<=55295||p>=57344||t+1>=n||(l=r.charCodeAt(t+1))<56320||l>57343?t+1:t+2},Z.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},Z.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},Z.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},Z.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1},S.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,r=0;r<i.length;r++){var n=i.charAt(r);t.indexOf(n)===-1&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(n,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},S.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},S.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,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,i=e.backReferenceNames;t<i.length;t+=1){var r=i[t];e.groupNames.indexOf(r)===-1&&e.raise("Invalid named capture referenced")}},S.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},S.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},S.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},S.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 i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},S.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},S.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},S.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var r=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},S.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)},S.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},S.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},S.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},S.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)},S.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},S.regexp_eatSyntaxCharacter=function(e){var t=e.current();return qt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function qt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}S.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!qt(i);)e.advance();return e.pos!==t},S.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):!1},S.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},S.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},S.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ee(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ee(e.lastIntValue);return!0}return!1},S.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),ds(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function ds(e){return F(e,!0)||e===36||e===95}S.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),ms(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function ms(e){return m(e,!0)||e===36||e===95||e===8204||e===8205}S.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)},S.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},S.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},S.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)},S.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},S.regexp_eatZero=function(e){return e.current()===48&&!Re(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},S.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):!1},S.regexp_eatControlLetter=function(e){var t=e.current();return Kt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Kt(e){return e>=65&&e<=90||e>=97&&e<=122}S.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(r&&n>=55296&&n<=56319){var p=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var l=e.lastIntValue;if(l>=56320&&l<=57343)return e.lastIntValue=(n-55296)*1024+(l-56320)+65536,!0}e.pos=p,e.lastIntValue=n}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&xs(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function xs(e){return e>=0&&e<=1114111}S.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):!1},S.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},S.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(ys(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1};function ys(e){return e===100||e===68||e===115||e===83||e===119||e===87}S.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n),!0}return!1},S.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){ye(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},S.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},S.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Jt(t=e.current());)e.lastStringValue+=ee(t),e.advance();return e.lastStringValue!==""};function Jt(e){return Kt(e)||e===95}S.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";gs(t=e.current());)e.lastStringValue+=ee(t),e.advance();return e.lastStringValue!==""};function gs(e){return Jt(e)||Re(e)}S.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},S.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},S.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}},S.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||Gt(i))&&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):!1},S.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)},S.regexp_eatClassControlLetter=function(e){var t=e.current();return Re(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},S.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},S.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Re(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function Re(e){return e>=48&&e<=57}S.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Xt(i=e.current());)e.lastIntValue=16*e.lastIntValue+zt(i),e.advance();return e.pos!==t};function Xt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function zt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}S.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1},S.regexp_eatOctalDigit=function(e){var t=e.current();return Gt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Gt(e){return e>=48&&e<=55}S.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var n=e.current();if(!Xt(n))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+zt(n),e.advance()}return!0};var Be=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new ge(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},A=V.prototype;A.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 Be(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},A.getToken=function(){return this.next(),new Be(this)},typeof Symbol<"u"&&(A[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===a.eof,value:t}}}}),A.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(a.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},A.readToken=function(e){return F(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},A.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},A.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var r=void 0,n=t;(r=yt(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},A.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ie(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())},A.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&&Ge.test(String.fromCharCode(e)))++this.pos;else break e}}},A.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},A.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(a.ellipsis)):(++this.pos,this.finishToken(a.dot))},A.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(a.assign,2):this.finishOp(a.slash,1)},A.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,r=e===42?a.star:a.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,r=a.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(a.assign,i+1):this.finishOp(r,i)},A.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(a.assign,3)}return this.finishOp(e===124?a.logicalOR:a.logicalAND,2)}return t===61?this.finishOp(a.assign,2):this.finishOp(e===124?a.bitwiseOR:a.bitwiseAND,1)},A.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(a.assign,2):this.finishOp(a.bitwiseXOR,1)},A.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||M.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(a.incDec,2):t===61?this.finishOp(a.assign,2):this.finishOp(a.plusMin,1)},A.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(a.assign,i+1):this.finishOp(a.bitShift,i)):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&&(i=2),this.finishOp(a.relational,i))},A.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(a.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(a.arrow)):this.finishOp(e===61?a.eq:a.prefix,1)},A.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(a.questionDot,2)}if(t===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(a.assign,3)}return this.finishOp(a.coalesce,2)}}return this.finishOp(a.question,1)},A.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),F(t,!0)||t===92))return this.finishToken(a.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ee(t)+"'")},A.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(a.parenL);case 41:return++this.pos,this.finishToken(a.parenR);case 59:return++this.pos,this.finishToken(a.semi);case 44:return++this.pos,this.finishToken(a.comma);case 91:return++this.pos,this.finishToken(a.bracketL);case 93:return++this.pos,this.finishToken(a.bracketR);case 123:return++this.pos,this.finishToken(a.braceL);case 125:return++this.pos,this.finishToken(a.braceR);case 58:return++this.pos,this.finishToken(a.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(a.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(a.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ee(e)+"'")},A.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},A.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(M.test(r)&&this.raise(i,"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 n=this.input.slice(i,this.pos);++this.pos;var p=this.pos,l=this.readWord1();this.containsEsc&&this.unexpected(p);var d=this.regexpState||(this.regexpState=new Z(this));d.reset(i,n,l),this.validateRegExpFlags(d),this.validateRegExpPattern(d);var y=null;try{y=new RegExp(n,l)}catch{}return this.finishToken(a.regexp,{pattern:n,flags:l,value:y})},A.readInt=function(e,t,i){for(var r=this.options.ecmaVersion>=12&&t===void 0,n=i&&this.input.charCodeAt(this.pos)===48,p=this.pos,l=0,d=0,y=0,k=t==null?1/0:t;y<k;++y,++this.pos){var w=this.input.charCodeAt(this.pos),R=void 0;if(r&&w===95){n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),d===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),y===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),d=w;continue}if(w>=97?R=w-97+10:w>=65?R=w-65+10:w>=48&&w<=57?R=w-48:R=1/0,R>=e)break;d=w,l=l*e+R}return r&&d===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===p||t!=null&&this.pos-p!==t?null:l};function bs(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Wt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}A.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=Wt(this.input.slice(t,this.pos)),++this.pos):F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,i)},A.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&r===110){var n=Wt(this.input.slice(t,this.pos));return++this.pos,F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,n)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),r===46&&!i&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!i&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),F(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var p=bs(this.input.slice(t,this.pos),i);return this.finishToken(a.num,p)},A.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t},A.readString=function(e){for(var t="",i=++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(i,this.pos),t+=this.readEscapedChar(!1),i=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)):(ie(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(a.string,t)};var Ht={};A.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Ht)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},A.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ht;this.raise(e,t)},A.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===a.template||this.type===a.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(a.dollarBraceL)):(++this.pos,this.finishToken(a.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(a.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ie(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
10
- `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},A.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(a.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},A.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
11
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ee(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 i=this.pos-1;return this.invalidStringToken(i,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(r,8);return n>255&&(r=r.slice(0,-1),n=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(n)}return ie(t)?"":String.fromCharCode(t)}},A.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i},A.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(m(n,r))this.pos+=n<=65535?1:2;else if(n===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var p=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var l=this.readCodePoint();(t?F:m)(l,r)||this.invalidStringToken(p,"Invalid Unicode escape"),e+=ee(l),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)},A.readWord=function(){var e=this.readWord1(),t=a.name;return this.keywords.test(e)&&(t=Q[e]),this.finishToken(t,e)};var Qt="8.8.0";V.acorn={Parser:V,version:Qt,defaultOptions:Ie,Position:ue,SourceLocation:ge,getLineInfo:We,Node:Ee,TokenType:x,tokTypes:a,keywordTypes:Q,TokContext:K,tokContexts:N,isIdentifierChar:m,isIdentifierStart:F,Token:Be,isNewLine:ie,lineBreak:M,lineBreakG:xt,nonASCIIwhitespace:Ge};function vs(e,t){return V.parse(e,t)}function Ss(e,t,i){return V.parseExpressionAt(e,t,i)}function Es(e,t){return V.tokenizer(e,t)}s.Node=Ee,s.Parser=V,s.Position=ue,s.SourceLocation=ge,s.TokContext=K,s.Token=Be,s.TokenType=x,s.defaultOptions=Ie,s.getLineInfo=We,s.isIdentifierChar=m,s.isIdentifierStart=F,s.isNewLine=ie,s.keywordTypes=Q,s.lineBreak=M,s.lineBreakG=xt,s.nonASCIIwhitespace=Ge,s.parse=vs,s.parseExpressionAt=Ss,s.tokContexts=N,s.tokTypes=a,s.tokenizer=Es,s.version=Qt,Object.defineProperty(s,"__esModule",{value:!0})})});var Di=ae((Oa,Bi)=>{g();Bi.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var lt=ae((Ra,ct)=>{"use strict";g();var hr=Di(),pr=/^[\da-fA-F]+$/,cr=/^\d+$/,Fi=new WeakMap;function Mi(s){s=s.Parser.acorn||s;let u=Fi.get(s);if(!u){let c=s.tokTypes,o=s.TokContext,h=s.TokenType,f=new o("<tag",!1),v=new o("</tag",!1),O=new o("<tag>...</tag>",!0,!0),U={tc_oTag:f,tc_cTag:v,tc_expr:O},I={jsxName:new h("jsxName"),jsxText:new h("jsxText",{beforeExpr:!0}),jsxTagStart:new h("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new h("jsxTagEnd")};I.jsxTagStart.updateContext=function(){this.context.push(O),this.context.push(f),this.exprAllowed=!1},I.jsxTagEnd.updateContext=function(G){let W=this.context.pop();W===f&&G===c.slash||W===v?(this.context.pop(),this.exprAllowed=this.curContext()===O):this.exprAllowed=!0},u={tokContexts:U,tokTypes:I},Fi.set(s,u)}return u}function Pe(s){if(!s)return s;if(s.type==="JSXIdentifier")return s.name;if(s.type==="JSXNamespacedName")return s.namespace.name+":"+s.name.name;if(s.type==="JSXMemberExpression")return Pe(s.object)+"."+Pe(s.property)}ct.exports=function(s){return s=s||{},function(u){return lr({allowNamespaces:s.allowNamespaces!==!1,allowNamespacedObjects:!!s.allowNamespacedObjects},u)}};Object.defineProperty(ct.exports,"tokTypes",{get:function(){return Mi(Ae()).tokTypes},configurable:!0,enumerable:!0});function lr(s,u){let c=u.acorn||Ae(),o=Mi(c),h=c.tokTypes,f=o.tokTypes,v=c.tokContexts,O=o.tokContexts.tc_oTag,U=o.tokContexts.tc_cTag,I=o.tokContexts.tc_expr,G=c.isNewLine,W=c.isIdentifierStart,F=c.isIdentifierChar;return class extends u{static get acornJsx(){return o}jsx_readToken(){let m="",x=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let b=this.input.charCodeAt(this.pos);switch(b){case 60:case 123:return this.pos===this.start?b===60&&this.exprAllowed?(++this.pos,this.finishToken(f.jsxTagStart)):this.getTokenFromCode(b):(m+=this.input.slice(x,this.pos),this.finishToken(f.jsxText,m));case 38:m+=this.input.slice(x,this.pos),m+=this.jsx_readEntity(),x=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(b===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:G(b)?(m+=this.input.slice(x,this.pos),m+=this.jsx_readNewLine(!0),x=this.pos):++this.pos}}}jsx_readNewLine(m){let x=this.input.charCodeAt(this.pos),b;return++this.pos,x===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,b=m?`
12
- `:`\r
13
- `):b=String.fromCharCode(x),this.options.locations&&(++this.curLine,this.lineStart=this.pos),b}jsx_readString(m){let x="",b=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let T=this.input.charCodeAt(this.pos);if(T===m)break;T===38?(x+=this.input.slice(b,this.pos),x+=this.jsx_readEntity(),b=this.pos):G(T)?(x+=this.input.slice(b,this.pos),x+=this.jsx_readNewLine(!1),b=this.pos):++this.pos}return x+=this.input.slice(b,this.pos++),this.finishToken(h.string,x)}jsx_readEntity(){let m="",x=0,b,T=this.input[this.pos];T!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let L=++this.pos;for(;this.pos<this.input.length&&x++<10;){if(T=this.input[this.pos++],T===";"){m[0]==="#"?m[1]==="x"?(m=m.substr(2),pr.test(m)&&(b=String.fromCharCode(parseInt(m,16)))):(m=m.substr(1),cr.test(m)&&(b=String.fromCharCode(parseInt(m,10)))):b=hr[m];break}m+=T}return b||(this.pos=L,"&")}jsx_readWord(){let m,x=this.pos;do m=this.input.charCodeAt(++this.pos);while(F(m)||m===45);return this.finishToken(f.jsxName,this.input.slice(x,this.pos))}jsx_parseIdentifier(){let m=this.startNode();return this.type===f.jsxName?m.name=this.value:this.type.keyword?m.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(m,"JSXIdentifier")}jsx_parseNamespacedName(){let m=this.start,x=this.startLoc,b=this.jsx_parseIdentifier();if(!s.allowNamespaces||!this.eat(h.colon))return b;var T=this.startNodeAt(m,x);return T.namespace=b,T.name=this.jsx_parseIdentifier(),this.finishNode(T,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===f.jsxTagEnd)return"";let m=this.start,x=this.startLoc,b=this.jsx_parseNamespacedName();for(this.type===h.dot&&b.type==="JSXNamespacedName"&&!s.allowNamespacedObjects&&this.unexpected();this.eat(h.dot);){let T=this.startNodeAt(m,x);T.object=b,T.property=this.jsx_parseIdentifier(),b=this.finishNode(T,"JSXMemberExpression")}return b}jsx_parseAttributeValue(){switch(this.type){case h.braceL:let m=this.jsx_parseExpressionContainer();return m.expression.type==="JSXEmptyExpression"&&this.raise(m.start,"JSX attributes must only be assigned a non-empty expression"),m;case f.jsxTagStart:case h.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let m=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(m,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let m=this.startNode();return this.next(),m.expression=this.type===h.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(h.braceR),this.finishNode(m,"JSXExpressionContainer")}jsx_parseAttribute(){let m=this.startNode();return this.eat(h.braceL)?(this.expect(h.ellipsis),m.argument=this.parseMaybeAssign(),this.expect(h.braceR),this.finishNode(m,"JSXSpreadAttribute")):(m.name=this.jsx_parseNamespacedName(),m.value=this.eat(h.eq)?this.jsx_parseAttributeValue():null,this.finishNode(m,"JSXAttribute"))}jsx_parseOpeningElementAt(m,x){let b=this.startNodeAt(m,x);b.attributes=[];let T=this.jsx_parseElementName();for(T&&(b.name=T);this.type!==h.slash&&this.type!==f.jsxTagEnd;)b.attributes.push(this.jsx_parseAttribute());return b.selfClosing=this.eat(h.slash),this.expect(f.jsxTagEnd),this.finishNode(b,T?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(m,x){let b=this.startNodeAt(m,x),T=this.jsx_parseElementName();return T&&(b.name=T),this.expect(f.jsxTagEnd),this.finishNode(b,T?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(m,x){let b=this.startNodeAt(m,x),T=[],L=this.jsx_parseOpeningElementAt(m,x),Q=null;if(!L.selfClosing){e:for(;;)switch(this.type){case f.jsxTagStart:if(m=this.start,x=this.startLoc,this.next(),this.eat(h.slash)){Q=this.jsx_parseClosingElementAt(m,x);break e}T.push(this.jsx_parseElementAt(m,x));break;case f.jsxText:T.push(this.parseExprAtom());break;case h.braceL:T.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Pe(Q.name)!==Pe(L.name)&&this.raise(Q.start,"Expected corresponding JSX closing tag for <"+Pe(L.name)+">")}let _=L.name?"Element":"Fragment";return b["opening"+_]=L,b["closing"+_]=Q,b.children=T,this.type===h.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(b,"JSX"+_)}jsx_parseText(){let m=this.parseLiteral(this.value);return m.type="JSXText",m}jsx_parseElement(){let m=this.start,x=this.startLoc;return this.next(),this.jsx_parseElementAt(m,x)}parseExprAtom(m){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(m)}readToken(m){let x=this.curContext();if(x===I)return this.jsx_readToken();if(x===O||x===U){if(W(m))return this.jsx_readWord();if(m==62)return++this.pos,this.finishToken(f.jsxTagEnd);if((m===34||m===39)&&x==O)return this.jsx_readString(m)}return m===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(m)}updateContext(m){if(this.type==h.braceL){var x=this.curContext();x==O?this.context.push(v.b_expr):x==I?this.context.push(v.b_tmpl):super.updateContext(m),this.exprAllowed=!0}else if(this.type===h.slash&&m===f.jsxTagStart)this.context.length-=2,this.context.push(U),this.exprAllowed=!1;else return super.updateContext(m)}}}});var Wi=ae($=>{"use strict";g();Object.defineProperty($,"__esModule",{value:!0});var gr=Ae(),br=lt(),vr;function Sr(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}function Xi(s){if(s&&s.__esModule)return s;var u=Object.create(null);return s&&Object.keys(s).forEach(function(c){if(c!=="default"){var o=Object.getOwnPropertyDescriptor(s,c);Object.defineProperty(u,c,o.get?o:{enumerable:!0,get:function(){return s[c]}})}}),u.default=s,Object.freeze(u)}var Ki=Xi(gr),Er=Sr(br),Tr=Xi(vr),D={Boolean:"Boolean",EOF:"<end>",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function kr(s,u){let c=s[0],o=s[s.length-1],h={type:D.Template,value:u.slice(c.start,o.end)};return c.loc&&(h.loc={start:c.loc.start,end:o.loc.end}),c.range&&(h.start=c.range[0],h.end=o.range[1],h.range=[h.start,h.end]),h}function mt(s,u){this._acornTokTypes=s,this._tokens=[],this._curlyBrace=null,this._code=u}mt.prototype={constructor:mt,translate(s,u){let c=s.type,o=this._acornTokTypes;if(c===o.name)s.type=D.Identifier,s.value==="static"&&(s.type=D.Keyword),u.ecmaVersion>5&&(s.value==="yield"||s.value==="let")&&(s.type=D.Keyword);else if(c===o.privateId)s.type=D.PrivateIdentifier;else if(c===o.semi||c===o.comma||c===o.parenL||c===o.parenR||c===o.braceL||c===o.braceR||c===o.dot||c===o.bracketL||c===o.colon||c===o.question||c===o.bracketR||c===o.ellipsis||c===o.arrow||c===o.jsxTagStart||c===o.incDec||c===o.starstar||c===o.jsxTagEnd||c===o.prefix||c===o.questionDot||c.binop&&!c.keyword||c.isAssign)s.type=D.Punctuator,s.value=this._code.slice(s.start,s.end);else if(c===o.jsxName)s.type=D.JSXIdentifier;else if(c.label==="jsxText"||c===o.jsxAttrValueToken)s.type=D.JSXText;else if(c.keyword)c.keyword==="true"||c.keyword==="false"?s.type=D.Boolean:c.keyword==="null"?s.type=D.Null:s.type=D.Keyword;else if(c===o.num)s.type=D.Numeric,s.value=this._code.slice(s.start,s.end);else if(c===o.string)u.jsxAttrValueToken?(u.jsxAttrValueToken=!1,s.type=D.JSXText):s.type=D.String,s.value=this._code.slice(s.start,s.end);else if(c===o.regexp){s.type=D.RegularExpression;let h=s.value;s.regex={flags:h.flags,pattern:h.pattern},s.value=`/${h.pattern}/${h.flags}`}return s},onToken(s,u){let c=this,o=this._acornTokTypes,h=u.tokens,f=this._tokens;function v(){h.push(kr(c._tokens,c._code)),c._tokens=[]}if(s.type===o.eof){this._curlyBrace&&h.push(this.translate(this._curlyBrace,u));return}if(s.type===o.backQuote){this._curlyBrace&&(h.push(this.translate(this._curlyBrace,u)),this._curlyBrace=null),f.push(s),f.length>1&&v();return}if(s.type===o.dollarBraceL){f.push(s),v();return}if(s.type===o.braceR){this._curlyBrace&&h.push(this.translate(this._curlyBrace,u)),this._curlyBrace=s;return}if(s.type===o.template||s.type===o.invalidTemplate){this._curlyBrace&&(f.push(this._curlyBrace),this._curlyBrace=null),f.push(s);return}this._curlyBrace&&(h.push(this.translate(this._curlyBrace,u)),this._curlyBrace=null),h.push(this.translate(s,u))}};var ze=[3,5,6,7,8,9,10,11,12,13];function zi(){return ze[ze.length-1]}function Cr(){return[...ze]}function _r(s=5){let u=s==="latest"?zi():s;if(typeof u!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof s} instead.`);if(u>=2015&&(u-=2009),!ze.includes(u))throw new Error("Invalid ecmaVersion.");return u}function wr(s="script"){if(s==="script"||s==="module")return s;if(s==="commonjs")return"script";throw new Error("Invalid sourceType.")}function Ar(s){let u=_r(s.ecmaVersion),c=wr(s.sourceType),o=s.range===!0,h=s.loc===!0;if(u!==3&&s.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof s.allowReserved<"u"&&typeof s.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let f=u===3?s.allowReserved||"never":!1,v=s.ecmaFeatures||{},O=s.sourceType==="commonjs"||Boolean(v.globalReturn);if(c==="module"&&u<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},s,{ecmaVersion:u,sourceType:c,ranges:o,locations:h,allowReserved:f,allowReturnOutsideFunction:O})}var z=Symbol("espree's internal state"),dt=Symbol("espree's esprimaFinishNode");function Pr(s,u,c,o,h,f){let v={type:s?"Block":"Line",value:u};return typeof c=="number"&&(v.start=c,v.end=o,v.range=[c,o]),typeof h=="object"&&(v.loc={start:h,end:f}),v}var Ji=()=>s=>{let u=Object.assign({},s.acorn.tokTypes);return s.acornJsx&&Object.assign(u,s.acornJsx.tokTypes),class extends s{constructor(o,h){(typeof o!="object"||o===null)&&(o={}),typeof h!="string"&&!(h instanceof String)&&(h=String(h));let f=o.sourceType,v=Ar(o),O=v.ecmaFeatures||{},U=v.tokens===!0?new mt(u,h):null;super({ecmaVersion:v.ecmaVersion,sourceType:v.sourceType,ranges:v.ranges,locations:v.locations,allowReserved:v.allowReserved,allowReturnOutsideFunction:v.allowReturnOutsideFunction,onToken:I=>{U&&U.onToken(I,this[z]),I.type!==u.eof&&(this[z].lastToken=I)},onComment:(I,G,W,F,m,x)=>{if(this[z].comments){let b=Pr(I,G,W,F,m,x);this[z].comments.push(b)}}},h),this[z]={originalSourceType:f||v.sourceType,tokens:U?[]:null,comments:v.comment===!0?[]:null,impliedStrict:O.impliedStrict===!0&&this.options.ecmaVersion>=5,ecmaVersion:this.options.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]}}tokenize(){do this.next();while(this.type!==u.eof);this.next();let o=this[z],h=o.tokens;return o.comments&&(h.comments=o.comments),h}finishNode(...o){let h=super.finishNode(...o);return this[dt](h)}finishNodeAt(...o){let h=super.finishNodeAt(...o);return this[dt](h)}parse(){let o=this[z],h=super.parse();if(h.sourceType=o.originalSourceType,o.comments&&(h.comments=o.comments),o.tokens&&(h.tokens=o.tokens),h.body.length){let[f]=h.body;h.range&&(h.range[0]=f.range[0]),h.loc&&(h.loc.start=f.loc.start),h.start=f.start}return o.lastToken&&(h.range&&(h.range[1]=o.lastToken.range[1]),h.loc&&(h.loc.end=o.lastToken.loc.end),h.end=o.lastToken.end),this[z].templateElements.forEach(f=>{let O=f.tail?1:2;f.start+=-1,f.end+=O,f.range&&(f.range[0]+=-1,f.range[1]+=O),f.loc&&(f.loc.start.column+=-1,f.loc.end.column+=O)}),h}parseTopLevel(o){return this[z].impliedStrict&&(this.strict=!0),super.parseTopLevel(o)}raise(o,h){let f=s.acorn.getLineInfo(this.input,o),v=new SyntaxError(h);throw v.index=o,v.lineNumber=f.line,v.column=f.column+1,v}raiseRecoverable(o,h){this.raise(o,h)}unexpected(o){let h="Unexpected token";if(o!=null){if(this.pos=o,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
14
- `,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(h+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,h)}jsx_readString(o){let h=super.jsx_readString(o);return this.type===u.string&&(this[z].jsxAttrValueToken=!0),h}[dt](o){return o.type==="TemplateElement"&&this[z].templateElements.push(o),o.type.includes("Function")&&!o.generator&&(o.generator=!1),o}}},Ir="9.3.3",Gi={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=Ki.Parser.extend(Ji())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=Ki.Parser.extend(Er.default(),Ji())),this._jsx},get(s){return Boolean(s&&s.ecmaFeatures&&s.ecmaFeatures.jsx)?this.jsx:this.regular}};function Nr(s,u){let c=Gi.get(u);return(!u||u.tokens!==!0)&&(u=Object.assign({},u,{tokens:!0})),new c(u,s).tokenize()}function Lr(s,u){let c=Gi.get(u);return new c(u,s).parse()}var Vr=Ir,Or=function(){return Tr.KEYS}(),Rr=void 0,Br=zi(),Dr=Cr();$.Syntax=Rr;$.VisitorKeys=Or;$.latestEcmaVersion=Br;$.parse=Lr;$.supportedEcmaVersions=Dr;$.tokenize=Nr;$.version=Vr});g();g();g();function Ns(s,u){let c=new SyntaxError(s+" ("+u.start.line+":"+u.start.column+")");return c.loc=u,c}var de=Ns;g();function Ls(...s){let u;for(let[c,o]of s.entries())try{return{result:o()}}catch(h){c===0&&(u=h)}return{error:u}}var Me=Ls;g();g();var me=Ps(Ti(),1);g();g();function zs(s){if(!s.startsWith("#!"))return"";let u=s.indexOf(`
15
- `);return u===-1?s:s.slice(0,u)}var ki=zs;function Gs(s){let u=ki(s);u&&(s=s.slice(u.length+1));let c=(0,me.extract)(s),{pragmas:o,comments:h}=(0,me.parseWithComments)(c);return{shebang:u,text:s,pragmas:o,comments:h}}function Ci(s){let u=Object.keys(Gs(s).pragmas);return u.includes("prettier")||u.includes("format")}g();g();function Ws(s){return Array.isArray(s)&&s.length>0}var _i=Ws;function j(s,u){let{ignoreDecorators:c}=u||{};if(!c){let o=s.declaration&&s.declaration.decorators||s.decorators;if(_i(o))return j(o[0])}return s.range?s.range[0]:s.start}function X(s){return s.range?s.range[1]:s.end}function Hs(s){return s=typeof s=="function"?{parse:s}:s,{astFormat:"estree",hasPragma:Ci,locStart:j,locEnd:X,...s}}var qe=Hs;g();g();function Qs({type:s}){return s.startsWith("TS")&&s.endsWith("Keyword")}var wi=Qs;g();g();var Ys=new Set(["Block","CommentBlock","MultiLine"]),Zs=s=>Ys.has(s==null?void 0:s.type),Ai=Zs;function $s(s){return Ai(s)&&s.value[0]==="*"&&/@type\b/.test(s.value)}var Pi=$s;g();var er=s=>s[s.length-1],ot=er;g();g();g();g();var Ce=null;function _e(s){if(Ce!==null&&typeof Ce.property){let u=Ce;return Ce=_e.prototype=null,u}return Ce=_e.prototype=s==null?Object.create(null):s,new _e}var tr=10;for(let s=0;s<=tr;s++)_e();function ut(s){return _e(s)}function ir(s,u="type"){ut(s);function c(o){let h=o[u];return s[h]}return c}var Ii=ir;var Ni={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body","interpreter"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","exported","assertions"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","mixins","implements","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","mixins","implements","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation","initializer"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members","modifiers"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body","modifiers"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value","typeParameters"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value","decorators"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGQuotedExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","name"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],SpreadProperty:["argument"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],QualifiedTypeofIdentifier:["id","qualification"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[]};var rr=Ii(Ni),Li=rr;function ht(s,u){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s)){for(let o=0;o<s.length;o++)s[o]=ht(s[o],u);return s}let c=Li(s);for(let o=0;o<c.length;o++)s[c[o]]=ht(s[c[o]],u);return u(s)||s}var xe=ht;g();g();function ar(s,u){let{start:c,end:o}=s.loc;throw de(u,{start:{line:c.line,column:c.column+1},end:{line:o.line,column:o.column+1}})}var we=ar;function nr(s,u,c){let o=s.decorators;if(!Array.isArray(o))return;let h=u.decorators;(!Array.isArray(h)||h.length!==o.length||o.some(f=>{let v=c.get(f);return!v||!h.includes(v)}))&&we(u,"Leading decorators must be attached to a class declaration")}function or(s,u){s.kind!==167||s.modifiers&&!s.modifiers.some(h=>h.kind===126)||s.initializer&&u.value===null&&we(u,"Abstract property cannot have an initializer")}function Vi(s,u){let{esTreeNodeToTSNodeMap:c,tsNodeToESTreeNodeMap:o}=u.tsParseResult;xe(s,h=>{let f=c.get(h);if(!f)return;let v=o.get(f);v===h&&(nr(f,v,o),or(f,v))})}function ur(s,u){if(u.parser==="typescript"&&/@|abstract/.test(u.originalText)&&Vi(s,u),u.parser!=="typescript"&&u.parser!=="flow"&&u.parser!=="acorn"&&u.parser!=="espree"&&u.parser!=="meriyah"){let o=new Set;s=xe(s,h=>{h.leadingComments&&h.leadingComments.some(Pi)&&o.add(j(h))}),s=xe(s,h=>{if(h.type==="ParenthesizedExpression"){let{expression:f}=h;if(f.type==="TypeCastExpression")return f.range=h.range,f;let v=j(h);if(!o.has(v))return f.extra={...f.extra,parenthesized:!0},f}})}return s=xe(s,o=>{switch(o.type){case"ChainExpression":return Ke(o.expression);case"LogicalExpression":{if(Oi(o))return pt(o);break}case"VariableDeclaration":{let h=ot(o.declarations);h&&h.init&&c(o,h);break}case"TSParenthesizedType":return wi(o.typeAnnotation)||o.typeAnnotation.type==="TSThisType"||(o.typeAnnotation.range=[j(o),X(o)]),o.typeAnnotation;case"TSTypeParameter":if(typeof o.name=="string"){let h=j(o);o.name={type:"Identifier",name:o.name,range:[h,h+o.name.length]}}break;case"ObjectExpression":if(u.parser==="typescript"){let h=o.properties.find(f=>f.type==="Property"&&f.value.type==="TSEmptyBodyFunctionExpression");h&&we(h.value,"Unexpected token.")}break;case"SequenceExpression":{let h=ot(o.expressions);o.range=[j(o),Math.min(X(h),X(o))];break}case"TopicReference":u.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:h}=o;if(u.parser==="meriyah"&&h&&h.type==="Identifier"){let f=u.originalText.slice(j(h),X(h));(f.startsWith('"')||f.startsWith("'"))&&(o.exported={...o.exported,type:"Literal",value:o.exported.name,raw:f})}break}}}),s;function c(o,h){u.originalText[X(h)]!==";"&&(o.range=[j(o),X(h)])}}function Ke(s){switch(s.type){case"CallExpression":s.type="OptionalCallExpression",s.callee=Ke(s.callee);break;case"MemberExpression":s.type="OptionalMemberExpression",s.object=Ke(s.object);break;case"TSNonNullExpression":s.expression=Ke(s.expression);break}return s}function Oi(s){return s.type==="LogicalExpression"&&s.right.type==="LogicalExpression"&&s.operator===s.right.operator}function pt(s){return Oi(s)?pt({type:"LogicalExpression",operator:s.operator,left:pt({type:"LogicalExpression",operator:s.operator,left:s.left,right:s.right.left,range:[j(s.left),X(s.right.left)]}),right:s.right.right,range:[j(s),X(s)]}):s}var Je=ur;var fr={ecmaVersion:"latest",sourceType:"module",allowReserved:!0,allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0,allowAwaitOutsideFunction:!0,allowSuperOutsideMethod:!0,allowHashBang:!0,locations:!0,ranges:!0};function dr(s){let{message:u,loc:c}=s;if(!c)return s;let{line:o,column:h}=c;return de(u.replace(/ \(\d+:\d+\)$/,""),{start:{line:o,column:h+1}})}var ft,mr=()=>{if(!ft){let{Parser:s}=Ae(),u=lt();ft=s.extend(u())}return ft};function ji(s,u){let c=mr(),o=[],h=[],f=c.parse(s,{...fr,sourceType:u,onComment:o,onToken:h});return f.comments=o,f.tokens=h,f}function xr(s,u={}){let{result:c,error:o}=Me(()=>ji(s,"module"),()=>ji(s,"script"));if(!c)throw dr(o);return u.originalText=s,Je(c,u)}var Ui=qe(xr);g();g();function yr(s){return s.charAt(0)==="#"&&s.charAt(1)==="!"?"//"+s.slice(2):s}var qi=yr;var Hi={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function Fr(s){let{message:u,lineNumber:c,column:o}=s;return typeof c!="number"?s:de(u,{start:{line:c,column:o}})}function Mr(s,u={}){let{parse:c}=Wi(),o=qi(s),{result:h,error:f}=Me(()=>c(o,{...Hi,sourceType:"module"}),()=>c(o,{...Hi,sourceType:"script"}));if(!h)throw Fr(f);return u.originalText=s,Je(h,u)}var Qi=qe(Mr);var jr={parsers:{acorn:Ui,espree:Qi}},$a=jr;export{$a as default};