@telia-ace/alliance-internal-node-utilities 2.0.0-dev.0 → 2.0.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,26 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import{a as I,c as Nt,d as Lt}from"./chunk-RVFY4UX4.js";import{c as Q,d as ze,g as ie}from"./chunk-A5O3J5K5.js";import{existsSync as La,mkdirSync as Oa,readFileSync as ir,writeFileSync as qe}from"node:fs";import{relative as Va,resolve as ue}from"node:path";var nr=I.enum(["necessary","functional","analytics","marketing"]),or=I.object({purpose:I.string().describe("Purpose of the storing the value."),category:nr.describe("Category of the storage value - necessary, functional, analytics or marketing."),lifespan:I.string().describe("Basic description of how long the value will be stored.")}),ur=I.record(or.describe("Key used when writing to the storage.")),cr=I.object({value:I.string().describe("The localization token default value."),description:I.string().describe("The localization token description.")}),hr=I.object({localization:I.record(cr.describe("Key used when getting the localized text.")).default({}).describe("Translateable texts used in the app")}),lr=I.object({common:I.object({order:I.number().optional().describe("Order of the capability in the common capabilities list."),variant:I.enum(["primary","secondary","expressive","destructive","text","primary-white","secondary-white","expressive-white","tertiary-purple"]).default("secondary").describe("Variant of the capability button.")}).optional().describe("Common capability configuration."),label:I.string().optional().describe("Label for the capability.")}),fr=I.object({name:I.string().describe("URL friendly name of the app."),endpoints:I.string().array().default([]).describe("Endpoints that should be communicated with using the API gateway."),permissions:I.string().array().default([]).describe("Permissions that can be added to user roles."),resources:hr.default({}).describe("Resources used by the app."),storage:ur.default({}).describe("Cookies, session storage, and local storage values that are used by the app."),capabilities:I.record(lr.describe("Capability key.")).default({}).describe("Capabilities that the app has.")}).passthrough();function Ot(e,t){let i=fr.safeParse(e);return i.success?i.data:Vt(i.error.format(),t?[t]:[]).join(`
3
- `)}function Vt(e,t=[],i=""){e._errors?.length&&t.push(`${i} - ${e._errors.join(" + ")}`);for(let[r,s]of Object.entries(e))r==="_errors"||!s||typeof s!="object"||Array.isArray(s)||Vt(s,t,i?`${i}.${r}`:r);return t}function pr(e){return Array.isArray(e)?e:e===void 0?[]:[e]}function Ke(e,t=""){let i=[];for(let r of e)for(let[s,a]of r.entries())i[s]=Math.max(i[s]||0,a.length);return e.map(r=>r.map((s,a)=>t+s[a===0?"padStart":"padEnd"](i[a])).join(" ")).join(`
4
- `)}function z(e){return typeof e=="function"?e():e}var re=class extends Error{constructor(t,i){super(t),this.code=i,this.name="CLIError"}},dr=/\d/,mr=["-","_","/","."];function gr(e=""){if(!dr.test(e))return e!==e.toLowerCase()}function Dt(e,t){let i=t??mr,r=[];if(!e||typeof e!="string")return r;let s="",a,n;for(let u of e){let c=i.includes(u);if(c===!0){r.push(s),s="",a=void 0;continue}let h=gr(u);if(n===!1){if(a===!1&&h===!0){r.push(s),s=u,a=h;continue}if(a===!0&&h===!1&&s.length>1){let l=s.at(-1);r.push(s.slice(0,Math.max(0,s.length-1))),s=l+u,a=h;continue}}s+=u,a=h,n=c}return r.push(s),r}function xr(e){return e?e[0].toUpperCase()+e.slice(1):""}function yr(e){return e?e[0].toLowerCase()+e.slice(1):""}function vr(e,t){return e?(Array.isArray(e)?e:Dt(e)).map(i=>xr(t?.normalize?i.toLowerCase():i)).join(""):""}function br(e,t){return yr(vr(e||"",t))}function wr(e,t){return e?(Array.isArray(e)?e:Dt(e)).map(i=>i.toLowerCase()).join(t??"-"):""}function Qe(e){return e==null?[]:Array.isArray(e)?e:[e]}function _r(e,t,i,r){let s,a=e[t],n=~r.string.indexOf(t)?i==null||i===!0?"":String(i):typeof i=="boolean"?i:~r.boolean.indexOf(t)?i==="false"?!1:i==="true"||(e._.push((s=+i,s*0===0?s:i)),!!i):(s=+i,s*0===0?s:i);e[t]=a==null?n:Array.isArray(a)?a.concat(n):[a,n]}function Er(e=[],t={}){let i,r,s,a,n,u={_:[]},c=0,h=0,l=0,f=e.length,w=t.alias!==void 0,d=t.unknown!==void 0,C=t.default!==void 0;if(t.alias=t.alias||{},t.string=Qe(t.string),t.boolean=Qe(t.boolean),w)for(i in t.alias)for(r=t.alias[i]=Qe(t.alias[i]),c=0;c<r.length;c++)(t.alias[r[c]]=r.concat(i)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(r=t.alias[t.boolean[c]]||[],h=r.length;h-- >0;)t.boolean.push(r[h]);for(c=t.string.length;c-- >0;)for(r=t.alias[t.string[c]]||[],h=r.length;h-- >0;)t.string.push(r[h]);if(C){for(i in t.default)if(a=typeof t.default[i],r=t.alias[i]=t.alias[i]||[],t[a]!==void 0)for(t[a].push(i),c=0;c<r.length;c++)t[a].push(r[c])}let A=d?Object.keys(t.alias):[];for(c=0;c<f;c++){if(s=e[c],s==="--"){u._=u._.concat(e.slice(++c));break}for(h=0;h<s.length&&s.charCodeAt(h)===45;h++);if(h===0)u._.push(s);else if(s.substring(h,h+3)==="no-"){if(a=s.slice(Math.max(0,h+3)),d&&!~A.indexOf(a))return t.unknown(s);u[a]=!1}else{for(l=h+1;l<s.length&&s.charCodeAt(l)!==61;l++);for(a=s.substring(h,l),n=s.slice(Math.max(0,++l))||c+1===f||(""+e[c+1]).charCodeAt(0)===45||e[++c],r=h===2?[a]:a,l=0;l<r.length;l++){if(a=r[l],d&&!~A.indexOf(a))return t.unknown("-".repeat(h)+a);_r(u,a,l+1<r.length||n,t)}}}if(C)for(i in t.default)u[i]===void 0&&(u[i]=t.default[i]);if(w)for(i in u)for(r=t.alias[i]||[];r.length>0;)u[r.shift()]=u[i];return u}function Cr(e,t){let i={boolean:[],string:[],mixed:[],alias:{},default:{}},r=Ft(t);for(let u of r)u.type!=="positional"&&(u.type==="string"?i.string.push(u.name):u.type==="boolean"&&i.boolean.push(u.name),u.default!==void 0&&(i.default[u.name]=u.default),u.alias&&(i.alias[u.name]=u.alias));let s=Er(e,i),[...a]=s._,n=new Proxy(s,{get(u,c){return u[c]??u[br(c)]??u[wr(c)]}});for(let[,u]of r.entries())if(u.type==="positional"){let c=a.shift();if(c!==void 0)n[u.name]=c;else{if(u.default===void 0&&u.required!==!1)throw new re(`Missing required positional argument: ${u.name.toUpperCase()}`,"EARG");n[u.name]=u.default}}else if(u.required&&n[u.name]===void 0)throw new re(`Missing required argument: --${u.name}`,"EARG");return n}function Ft(e){let t=[];for(let[i,r]of Object.entries(e||{}))t.push({...r,name:i,alias:pr(r.alias)});return t}async function Mt(e,t){let i=await z(e.args||{}),r=Cr(t.rawArgs,i),s={rawArgs:t.rawArgs,args:r,data:t.data,cmd:e};typeof e.setup=="function"&&await e.setup(s);let a;try{let n=await z(e.subCommands);if(n&&Object.keys(n).length>0){let u=t.rawArgs.findIndex(h=>!h.startsWith("-")),c=t.rawArgs[u];if(c){if(!n[c])throw new re(`Unknown command \`${c}\``,"E_UNKNOWN_COMMAND");let h=await z(n[c]);h&&await Mt(h,{rawArgs:t.rawArgs.slice(u+1)})}else if(!e.run)throw new re("No command specified.","E_NO_COMMAND")}typeof e.run=="function"&&(a=await e.run(s))}finally{typeof e.cleanup=="function"&&await e.cleanup(s)}return{result:a}}async function Xe(e,t,i){let r=await z(e.subCommands);if(r&&Object.keys(r).length>0){let s=t.findIndex(u=>!u.startsWith("-")),a=t[s],n=await z(r[a]);if(n)return Xe(n,t.slice(s+1),e)}return[e,i]}async function kr(e,t){try{ie.log(await Sr(e,t)+`
5
- `)}catch(i){ie.error(i)}}async function Sr(e,t){let i=await z(e.meta||{}),r=Ft(await z(e.args||{})),s=await z(t?.meta||{}),a=`${s.name?`${s.name} `:""}`+(i.name||process.argv[1]),n=[],u=[],c=[],h=[];for(let d of r)if(d.type==="positional"){let C=d.name.toUpperCase(),A=d.required!==!1&&d.default===void 0,T=d.default?`="${d.default}"`:"";u.push(["`"+C+T+"`",d.description||"",d.valueHint?`<${d.valueHint}>`:""]),h.push(A?`<${C}>`:`[${C}]`)}else{let C=d.required===!0&&d.default===void 0,A=(d.type==="boolean"&&d.default===!0?[...(d.alias||[]).map(T=>`--no-${T}`),`--no-${d.name}`].join(", "):[...(d.alias||[]).map(T=>`-${T}`),`--${d.name}`].join(", "))+(d.type==="string"&&(d.valueHint||d.default)?`=${d.valueHint?`<${d.valueHint}>`:`"${d.default||""}"`}`:"");n.push(["`"+A+(C?" (required)":"")+"`",d.description||""]),C&&h.push(A)}if(e.subCommands){let d=[],C=await z(e.subCommands);for(let[A,T]of Object.entries(C)){let B=await z(T),he=await z(B?.meta);c.push([`\`${A}\``,he?.description||""]),d.push(A)}h.push(d.join("|"))}let l=[],f=i.version||s.version;l.push(Q.gray(`${i.description} (${a+(f?` v${f}`:"")})`),"");let w=n.length>0||u.length>0;return l.push(`${Q.underline(Q.bold("USAGE"))} \`${a}${w?" [OPTIONS]":""} ${h.join(" ")}\``,""),u.length>0&&(l.push(Q.underline(Q.bold("ARGUMENTS")),""),l.push(Ke(u," ")),l.push("")),n.length>0&&(l.push(Q.underline(Q.bold("OPTIONS")),""),l.push(Ke(n," ")),l.push("")),c.length>0&&(l.push(Q.underline(Q.bold("COMMANDS")),""),l.push(Ke(c," ")),l.push("",`Use \`${a} <command> --help\` for more information about a command.`)),l.filter(d=>typeof d=="string").join(`
6
- `)}async function Bt(e,t={}){let i=t.rawArgs||process.argv.slice(2),r=t.showUsage||kr;try{if(i.includes("--help")||i.includes("-h"))await r(...await Xe(e,i)),process.exit(0);else if(i.length===1&&i[0]==="--version"){let s=typeof e.meta=="function"?await e.meta():await e.meta;if(!s?.version)throw new re("No version specified","E_NO_VERSION");ie.log(s.version)}else await Mt(e,{rawArgs:i})}catch(s){let a=s instanceof re;a||ie.error(s,`
7
- `),a&&await r(...await Xe(e,i)),ie.error(s.message),process.exit(1)}}import{statSync as Sa,promises as Aa}from"node:fs";var Ar=/^[A-Za-z]:\//;function jt(e=""){return e&&e.replace(/\\/g,"/").replace(Ar,t=>t.toUpperCase())}var Pr=/^[/\\]{2}/,Ir=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Tr=/^[A-Za-z]:$/;var Ye=function(e){if(e.length===0)return".";e=jt(e);let t=e.match(Pr),i=J(e),r=e[e.length-1]==="/";return e=Ze(e,!i),e.length===0?i?"/":r?"./":".":(r&&(e+="/"),Tr.test(e)&&(e+="/"),t?i?`//${e}`:`//./${e}`:i&&!J(e)?`/${e}`:e)},Ie=function(...e){if(e.length===0)return".";let t;for(let i of e)i&&i.length>0&&(t===void 0?t=i:t+=`/${i}`);return t===void 0?".":Ye(t.replace(/\/\/+/g,"/"))};function Rr(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}var Je=function(...e){e=e.map(r=>jt(r));let t="",i=!1;for(let r=e.length-1;r>=-1&&!i;r--){let s=r>=0?e[r]:Rr();!s||s.length===0||(t=`${s}/${t}`,i=J(s))}return t=Ze(t,!i),i&&!J(t)?`/${t}`:t.length>0?t:"."};function Ze(e,t){let i="",r=0,s=-1,a=0,n=null;for(let u=0;u<=e.length;++u){if(u<e.length)n=e[u];else{if(n==="/")break;n="/"}if(n==="/"){if(!(s===u-1||a===1))if(a===2){if(i.length<2||r!==2||i[i.length-1]!=="."||i[i.length-2]!=="."){if(i.length>2){let c=i.lastIndexOf("/");c===-1?(i="",r=0):(i=i.slice(0,c),r=i.length-1-i.lastIndexOf("/")),s=u,a=0;continue}else if(i.length>0){i="",r=0,s=u,a=0;continue}}t&&(i+=i.length>0?"/..":"..",r=2)}else i.length>0?i+=`/${e.slice(s+1,u)}`:i=e.slice(s+1,u),r=u-s-1;s=u,a=0}else n==="."&&a!==-1?++a:a=-1}return i}var J=function(e){return Ir.test(e)};var Or=[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,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],Ht=[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,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,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,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Vr="\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\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",zt="\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",et={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"},tt="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",Dr={5:tt,"5module":tt+" export import",6:tt+" const class extends export import super"},Fr=/^in(stanceof)?$/,Mr=new RegExp("["+zt+"]"),Br=new RegExp("["+zt+Vr+"]");function rt(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}return!1}function Z(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Mr.test(String.fromCharCode(e)):t===!1?!1:rt(e,Ht)}function le(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&&Br.test(String.fromCharCode(e)):t===!1?!1:rt(e,Ht)||rt(e,Or)}var _=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 j(e,t){return new _(e,{beforeExpr:!0,binop:t})}var U={beforeExpr:!0},M={startsExpr:!0},ot={};function b(e,t){return t===void 0&&(t={}),t.keyword=e,ot[e]=new _(e,t)}var o={num:new _("num",M),regexp:new _("regexp",M),string:new _("string",M),name:new _("name",M),privateId:new _("privateId",M),eof:new _("eof"),bracketL:new _("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new _("]"),braceL:new _("{",{beforeExpr:!0,startsExpr:!0}),braceR:new _("}"),parenL:new _("(",{beforeExpr:!0,startsExpr:!0}),parenR:new _(")"),comma:new _(",",U),semi:new _(";",U),colon:new _(":",U),dot:new _("."),question:new _("?",U),questionDot:new _("?."),arrow:new _("=>",U),template:new _("template"),invalidTemplate:new _("invalidTemplate"),ellipsis:new _("...",U),backQuote:new _("`",M),dollarBraceL:new _("${",{beforeExpr:!0,startsExpr:!0}),eq:new _("=",{beforeExpr:!0,isAssign:!0}),assign:new _("_=",{beforeExpr:!0,isAssign:!0}),incDec:new _("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new _("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:j("||",1),logicalAND:j("&&",2),bitwiseOR:j("|",3),bitwiseXOR:j("^",4),bitwiseAND:j("&",5),equality:j("==/!=/===/!==",6),relational:j("</>/<=/>=",7),bitShift:j("<</>>/>>>",8),plusMin:new _("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:j("%",10),star:j("*",10),slash:j("/",10),starstar:new _("**",{beforeExpr:!0}),coalesce:j("??",1),_break:b("break"),_case:b("case",U),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",U),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",U),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",M),_if:b("if"),_return:b("return",U),_switch:b("switch"),_throw:b("throw",U),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",M),_super:b("super",M),_class:b("class",M),_extends:b("extends",U),_export:b("export"),_import:b("import",M),_null:b("null",M),_true:b("true",M),_false:b("false",M),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},G=/\r\n?|\n|\u2028|\u2029/,jr=new RegExp(G.source,"g");function fe(e){return e===10||e===13||e===8232||e===8233}function Kt(e,t,i){i===void 0&&(i=e.length);for(var r=t;r<i;r++){var s=e.charCodeAt(r);if(fe(s))return r<i-1&&s===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var Qt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,$=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Xt=Object.prototype,Ur=Xt.hasOwnProperty,$r=Xt.toString,_e=Object.hasOwn||function(e,t){return Ur.call(e,t)},Ut=Array.isArray||function(e){return $r.call(e)==="[object Array]"},$t=Object.create(null);function se(e){return $t[e]||($t[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function ae(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Wr=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,be=function(t,i){this.line=t,this.column=i};be.prototype.offset=function(t){return new be(this.line,this.column+t)};var Ve=function(t,i,r){this.start=i,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function Yt(e,t){for(var i=1,r=0;;){var s=Kt(e,r,t);if(s<0)return new be(i,t-r);++i,r=s}}var st={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Wt=!1;function Gr(e){var t={};for(var i in st)t[i]=e&&_e(e,i)?e[i]:st[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Wt&&typeof console=="object"&&console.warn&&(Wt=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
8
- 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||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),Ut(t.onToken)){var r=t.onToken;t.onToken=function(s){return r.push(s)}}return Ut(t.onComment)&&(t.onComment=qr(t,t.onComment)),t}function qr(e,t){return function(i,r,s,a,n,u){var c={type:i?"Block":"Line",value:r,start:s,end:a};e.locations&&(c.loc=new Ve(this,n,u)),e.ranges&&(c.range=[s,a]),t.push(c)}}var we=1,pe=2,ut=4,Jt=8,Zt=16,ei=32,ct=64,ti=128,Ee=256,ht=we|pe|Ee;function lt(e,t){return pe|(e?ut:0)|(t?Jt:0)}var Re=0,ft=1,te=2,ii=3,ri=4,si=5,L=function(t,i,r){this.options=t=Gr(t),this.sourceFile=t.sourceFile,this.keywords=se(Dr[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";t.allowReserved!==!0&&(s=et[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(s+=" await")),this.reservedWords=se(s);var a=(s?s+" ":"")+et.strict;this.reservedWordsStrict=se(a),this.reservedWordsStrictBind=se(a+" "+et.strictBind),this.input=String(i),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
9
- `,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(G).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=o.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(we),this.regexpState=null,this.privateNameStack=[]},X={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}};L.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};X.inFunction.get=function(){return(this.currentVarScope().flags&pe)>0};X.inGenerator.get=function(){return(this.currentVarScope().flags&Jt)>0&&!this.currentVarScope().inClassFieldInit};X.inAsync.get=function(){return(this.currentVarScope().flags&ut)>0&&!this.currentVarScope().inClassFieldInit};X.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Ee)return!1;if(t.flags&pe)return(t.flags&ut)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};X.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&ct)>0||i||this.options.allowSuperOutsideMethod};X.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ti)>0};X.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};X.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(pe|Ee))>0||i};X.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Ee)>0};L.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var r=this,s=0;s<t.length;s++)r=t[s](r);return r};L.parse=function(t,i){return new this(i,t).parse()};L.parseExpressionAt=function(t,i,r){var s=new this(r,t,i);return s.nextToken(),s.parseExpression()};L.tokenizer=function(t,i){return new this(i,t)};Object.defineProperties(L.prototype,X);var D=L.prototype,Hr=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;D.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){$.lastIndex=e,e+=$.exec(this.input)[0].length;var t=Hr.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){$.lastIndex=e+t[0].length;var i=$.exec(this.input),r=i.index+i[0].length,s=this.input.charAt(r);return s===";"||s==="}"||G.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(r+1)==="=")}e+=t[0].length,$.lastIndex=e,e+=$.exec(this.input)[0].length,this.input[e]===";"&&e++}};D.eat=function(e){return this.type===e?(this.next(),!0):!1};D.isContextual=function(e){return this.type===o.name&&this.value===e&&!this.containsEsc};D.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};D.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};D.canInsertSemicolon=function(){return this.type===o.eof||this.type===o.braceR||G.test(this.input.slice(this.lastTokEnd,this.start))};D.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};D.semicolon=function(){!this.eat(o.semi)&&!this.insertSemicolon()&&this.unexpected()};D.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};D.expect=function(e){this.eat(e)||this.unexpected()};D.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var De=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};D.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")}};D.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")};D.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")};D.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var m=L.prototype;m.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==o.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var r=0,s=Object.keys(this.undefinedExports);r<s.length;r+=1){var a=s[r];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var pt={kind:"loop"},zr={kind:"switch"};m.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;$.lastIndex=this.pos;var t=$.exec(this.input),i=this.pos+t[0].length,r=this.input.charCodeAt(i);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(Z(r,!0)){for(var s=i+1;le(r=this.input.charCodeAt(s),!0);)++s;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(i,s);if(!Fr.test(a))return!0}return!1};m.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;$.lastIndex=this.pos;var e=$.exec(this.input),t=this.pos+e[0].length,i;return!G.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(le(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))};m.parseStatement=function(e,t,i){var r=this.type,s=this.startNode(),a;switch(this.isLet(e)&&(r=o._var,a="let"),r){case o._break:case o._continue:return this.parseBreakContinueStatement(s,r.keyword);case o._debugger:return this.parseDebuggerStatement(s);case o._do:return this.parseDoStatement(s);case o._for:return this.parseForStatement(s);case o._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case o._class:return e&&this.unexpected(),this.parseClass(s,!0);case o._if:return this.parseIfStatement(s);case o._return:return this.parseReturnStatement(s);case o._switch:return this.parseSwitchStatement(s);case o._throw:return this.parseThrowStatement(s);case o._try:return this.parseTryStatement(s);case o._const:case o._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(s,a);case o._while:return this.parseWhileStatement(s);case o._with:return this.parseWithStatement(s);case o.braceL:return this.parseBlock(!0,s);case o.semi:return this.parseEmptyStatement(s);case o._export:case o._import:if(this.options.ecmaVersion>10&&r===o._import){$.lastIndex=this.pos;var n=$.exec(this.input),u=this.pos+n[0].length,c=this.input.charCodeAt(u);if(c===40||c===46)return this.parseExpressionStatement(s,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===o._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var h=this.value,l=this.parseExpression();return r===o.name&&l.type==="Identifier"&&this.eat(o.colon)?this.parseLabeledStatement(s,h,l,e):this.parseExpressionStatement(s,l)}};m.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(o.semi)||this.insertSemicolon()?e.label=null:this.type!==o.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var s=this.labels[r];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(i||s.kind==="loop")||e.label&&i))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")};m.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};m.parseDoStatement=function(e){return this.next(),this.labels.push(pt),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(o._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(o.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};m.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(pt),this.enterScope(0),this.expect(o.parenL),this.type===o.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===o._var||this.type===o._const||i){var r=this.startNode(),s=i?"let":this.value;return this.next(),this.parseVar(r,!0,s),this.finishNode(r,"VariableDeclaration"),(this.type===o._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===o._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual("let"),n=!1,u=this.containsEsc,c=new De,h=this.start,l=t>-1?this.parseExprSubscripts(c,"await"):this.parseExpression(!0,c);return this.type===o._in||(n=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===o._in&&this.unexpected(t),e.await=!0):n&&this.options.ecmaVersion>=8&&(l.start===h&&!u&&l.type==="Identifier"&&l.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&n&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,c),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(c,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))};m.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,ve|(i?0:at),!1,t)};m.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(o._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};m.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(o.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};m.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(o.braceL),this.labels.push(zr),this.enterScope(0);for(var t,i=!1;this.type!==o.braceR;)if(this.type===o._case||this.type===o._default){var r=this.type===o._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(o.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")};m.parseThrowStatement=function(e){return this.next(),G.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 Kr=[];m.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?ei:0),this.checkLValPattern(e,t?ri:te),this.expect(o.parenR),e};m.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===o._catch){var t=this.startNode();this.next(),this.eat(o.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(o._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};m.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")};m.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(pt),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};m.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")};m.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};m.parseLabeledStatement=function(e,t,i,r){for(var s=0,a=this.labels;s<a.length;s+=1){var n=a[s];n.name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var u=this.type.isLoop?"loop":this.type===o._switch?"switch":null,c=this.labels.length-1;c>=0;c--){var h=this.labels[c];if(h.statementStart===e.start)h.statementStart=this.start,h.kind=u;else break}return this.labels.push({name:t,kind:u,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")};m.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};m.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(o.braceL),e&&this.enterScope(0);this.type!==o.braceR;){var r=this.parseStatement(null);t.body.push(r)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};m.parseFor=function(e,t){return e.init=t,this.expect(o.semi),e.test=this.type===o.semi?null:this.parseExpression(),this.expect(o.semi),e.update=this.type===o.parenR?null:this.parseExpression(),this.expect(o.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};m.parseForIn=function(e,t){var i=this.type===o._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(o.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")};m.parseVar=function(e,t,i,r){for(e.declarations=[],e.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(o.eq)?s.init=this.parseMaybeAssign(t):!r&&i==="const"&&!(this.type===o._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!r&&s.id.type!=="Identifier"&&!(t&&(this.type===o._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):s.init=null,e.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(o.comma))break}return e};m.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?ft:te,!1)};var ve=1,at=2,ai=4;m.parseFunction=function(e,t,i,r,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===o.star&&t&at&&this.unexpected(),e.generator=this.eat(o.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&ve&&(e.id=t&ai&&this.type!==o.name?null:this.parseIdent(),e.id&&!(t&at)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?ft:te:ii));var a=this.yieldPos,n=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(lt(e.async,e.generator)),t&ve||(e.id=this.type===o.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,s),this.yieldPos=a,this.awaitPos=n,this.awaitIdentPos=u,this.finishNode(e,t&ve?"FunctionDeclaration":"FunctionExpression")};m.parseFunctionParams=function(e){this.expect(o.parenL),e.params=this.parseBindingList(o.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};m.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),s=this.startNode(),a=!1;for(s.body=[],this.expect(o.braceL);this.type!==o.braceR;){var n=this.parseClassElement(e.superClass!==null);n&&(s.body.push(n),n.type==="MethodDefinition"&&n.kind==="constructor"?(a&&this.raiseRecoverable(n.start,"Duplicate constructor in the same class"),a=!0):n.key&&n.key.type==="PrivateIdentifier"&&Qr(r,n)&&this.raiseRecoverable(n.key.start,"Identifier '#"+n.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};m.parseClassElement=function(e){if(this.eat(o.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),r="",s=!1,a=!1,n="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(o.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===o.star?u=!0:r="static"}if(i.static=u,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===o.star)&&!this.canInsertSemicolon()?a=!0:r="async"),!r&&(t>=9||!a)&&this.eat(o.star)&&(s=!0),!r&&!a&&!s){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?n=c:r=c)}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===o.parenL||n!=="method"||s||a){var h=!i.static&&Ne(i,"constructor"),l=h&&e;h&&n!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=h?"constructor":n,this.parseClassMethod(i,s,a,l)}else this.parseClassField(i);return i};m.isClassElementNameStart=function(){return this.type===o.name||this.type===o.privateId||this.type===o.num||this.type===o.string||this.type===o.bracketL||this.type.keyword};m.parseClassElementName=function(e){this.type===o.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)};m.parseClassMethod=function(e,t,i,r){var s=e.key;e.kind==="constructor"?(t&&this.raise(s.start,"Constructor can't be a generator"),i&&this.raise(s.start,"Constructor can't be an async method")):e.static&&Ne(e,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,i,r);return e.kind==="get"&&a.params.length!==0&&this.raiseRecoverable(a.start,"getter should have no params"),e.kind==="set"&&a.params.length!==1&&this.raiseRecoverable(a.start,"setter should have exactly one param"),e.kind==="set"&&a.params[0].type==="RestElement"&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};m.parseClassField=function(e){if(Ne(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Ne(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(o.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")};m.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Ee|ct);this.type!==o.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};m.parseClassId=function(e,t){this.type===o.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,te,!1)):(t===!0&&this.unexpected(),e.id=null)};m.parseClassSuper=function(e){e.superClass=this.eat(o._extends)?this.parseExprSubscripts(null,!1):null};m.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};m.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,s=r===0?null:this.privateNameStack[r-1],a=0;a<i.length;++a){var n=i[a];_e(t,n.name)||(s?s.used.push(n):this.raiseRecoverable(n.start,"Private field '#"+n.name+"' must be declared in an enclosing class"))}};function Qr(e,t){var i=t.key.name,r=e[i],s="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(s=(t.static?"s":"i")+t.kind),r==="iget"&&s==="iset"||r==="iset"&&s==="iget"||r==="sget"&&s==="sset"||r==="sset"&&s==="sget"?(e[i]="true",!1):r?!0:(e[i]=s,!1)}function Ne(e,t){var i=e.computed,r=e.key;return!i&&(r.type==="Identifier"&&r.name===t||r.type==="Literal"&&r.value===t)}m.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==o.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};m.parseExport=function(e,t){if(this.next(),this.eat(o.star))return this.parseExportAllDeclaration(e,t);if(this.eat(o._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==o.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,r=e.specifiers;i<r.length;i+=1){var s=r[i];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type==="Literal"&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};m.parseExportDeclaration=function(e){return this.parseStatement(null)};m.parseExportDefaultDeclaration=function(){var e;if(this.type===o._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,ve|ai,!1,e)}else if(this.type===o._class){var i=this.startNode();return this.parseClass(i,"nullableID")}else{var r=this.parseMaybeAssign();return this.semicolon(),r}};m.checkExport=function(e,t,i){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),_e(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)};m.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,s=t.properties;r<s.length;r+=1){var a=s[r];this.checkPatternExport(e,a)}else if(i==="ArrayPattern")for(var n=0,u=t.elements;n<u.length;n+=1){var c=u[n];c&&this.checkPatternExport(e,c)}else i==="Property"?this.checkPatternExport(e,t.value):i==="AssignmentPattern"?this.checkPatternExport(e,t.left):i==="RestElement"&&this.checkPatternExport(e,t.argument)};m.checkVariableExport=function(e,t){if(e)for(var i=0,r=t;i<r.length;i+=1){var s=r[i];this.checkPatternExport(e,s.id)}};m.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};m.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};m.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(o.braceL);!this.eat(o.braceR);){if(i)i=!1;else if(this.expect(o.comma),this.afterTrailingComma(o.braceR))break;t.push(this.parseExportSpecifier(e))}return t};m.parseImport=function(e){return this.next(),this.type===o.string?(e.specifiers=Kr,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===o.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};m.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,te),this.finishNode(e,"ImportSpecifier")};m.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,te),this.finishNode(e,"ImportDefaultSpecifier")};m.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,te),this.finishNode(e,"ImportNamespaceSpecifier")};m.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===o.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(o.comma)))return e;if(this.type===o.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(o.braceL);!this.eat(o.braceR);){if(t)t=!1;else if(this.expect(o.comma),this.afterTrailingComma(o.braceR))break;e.push(this.parseImportSpecifier())}return e};m.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===o.string){var e=this.parseLiteral(this.value);return Wr.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};m.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)};m.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 q=L.prototype;q.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,s=e.properties;r<s.length;r+=1){var a=s[r];this.toAssignable(a,t),a.type==="RestElement"&&(a.argument.type==="ArrayPattern"||a.argument.type==="ObjectPattern")&&this.raise(a.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",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};q.toAssignableList=function(e,t){for(var i=e.length,r=0;r<i;r++){var s=e[r];s&&this.toAssignable(s,t)}if(i){var a=e[i-1];this.options.ecmaVersion===6&&t&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"&&this.unexpected(a.argument.start)}return e};q.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};q.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==o.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};q.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case o.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(o.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case o.braceL:return this.parseObj(!0)}return this.parseIdent()};q.parseBindingList=function(e,t,i,r){for(var s=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(o.comma),t&&this.type===o.comma)s.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===o.ellipsis){var n=this.parseRestBinding();this.parseBindingListItem(n),s.push(n),this.type===o.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else s.push(this.parseAssignableListItem(r))}return s};q.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};q.parseBindingListItem=function(e){return e};q.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(o.eq))return i;var r=this.startNodeAt(e,t);return r.left=i,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")};q.checkLValSimple=function(e,t,i){t===void 0&&(t=Re);var r=t!==Re;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===te&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(_e(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==si&&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")}};q.checkLValPattern=function(e,t,i){switch(t===void 0&&(t=Re),e.type){case"ObjectPattern":for(var r=0,s=e.properties;r<s.length;r+=1){var a=s[r];this.checkLValInnerPattern(a,t,i)}break;case"ArrayPattern":for(var n=0,u=e.elements;n<u.length;n+=1){var c=u[n];c&&this.checkLValInnerPattern(c,t,i)}break;default:this.checkLValSimple(e,t,i)}};q.checkLValInnerPattern=function(e,t,i){switch(t===void 0&&(t=Re),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,s,a){this.token=t,this.isExpr=!!i,this.preserveSpace=!!r,this.override=s,this.generator=!!a},P={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)},de=L.prototype;de.initialContext=function(){return[P.b_stat]};de.curContext=function(){return this.context[this.context.length-1]};de.braceIsBlock=function(e){var t=this.curContext();return t===P.f_expr||t===P.f_stat?!0:e===o.colon&&(t===P.b_stat||t===P.b_expr)?!t.isExpr:e===o._return||e===o.name&&this.exprAllowed?G.test(this.input.slice(this.lastTokEnd,this.start)):e===o._else||e===o.semi||e===o.eof||e===o.parenR||e===o.arrow?!0:e===o.braceL?t===P.b_stat:e===o._var||e===o._const||e===o.name?!1:!this.exprAllowed};de.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};de.updateContext=function(e){var t,i=this.type;i.keyword&&e===o.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr};de.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};o.parenR.updateContext=o.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===P.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};o.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?P.b_stat:P.b_expr),this.exprAllowed=!0};o.dollarBraceL.updateContext=function(){this.context.push(P.b_tmpl),this.exprAllowed=!0};o.parenL.updateContext=function(e){var t=e===o._if||e===o._for||e===o._with||e===o._while;this.context.push(t?P.p_stat:P.p_expr),this.exprAllowed=!0};o.incDec.updateContext=function(){};o._function.updateContext=o._class.updateContext=function(e){e.beforeExpr&&e!==o._else&&!(e===o.semi&&this.curContext()!==P.p_stat)&&!(e===o._return&&G.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===o.colon||e===o.braceL)&&this.curContext()===P.b_stat)?this.context.push(P.f_expr):this.context.push(P.f_stat),this.exprAllowed=!1};o.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};o.backQuote.updateContext=function(){this.curContext()===P.q_tmpl?this.context.pop():this.context.push(P.q_tmpl),this.exprAllowed=!1};o.star.updateContext=function(e){if(e===o._function){var t=this.context.length-1;this.context[t]===P.f_expr?this.context[t]=P.f_expr_gen:this.context[t]=P.f_gen}this.exprAllowed=!0};o.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==o.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var x=L.prototype;x.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,s;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){s==="__proto__"&&a==="init"&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),t.proto=!0);return}s="$"+s;var n=t[s];if(n){var u;a==="init"?u=this.strict&&n.init||n.get||n.set:u=n.init||n[a],u&&this.raiseRecoverable(r.start,"Redefinition of property")}else n=t[s]={init:!1,get:!1,set:!1};n[a]=!0}};x.parseExpression=function(e,t){var i=this.start,r=this.startLoc,s=this.parseMaybeAssign(e,t);if(this.type===o.comma){var a=this.startNodeAt(i,r);for(a.expressions=[s];this.eat(o.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,"SequenceExpression")}return s};x.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,s=-1,a=-1,n=-1;t?(s=t.parenthesizedAssign,a=t.trailingComma,n=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new De,r=!0);var u=this.start,c=this.startLoc;(this.type===o.parenL||this.type===o.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var h=this.parseMaybeConditional(e,t);if(i&&(h=i.call(this,h,u,c)),this.type.isAssign){var l=this.startNodeAt(u,c);return l.operator=this.value,this.type===o.eq&&(h=this.toAssignable(h,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=h.start&&(t.shorthandAssign=-1),this.type===o.eq?this.checkLValPattern(h):this.checkLValSimple(h),l.left=h,this.next(),l.right=this.parseMaybeAssign(e),n>-1&&(t.doubleProto=n),this.finishNode(l,"AssignmentExpression")}else r&&this.checkExpressionErrors(t,!0);return s>-1&&(t.parenthesizedAssign=s),a>-1&&(t.trailingComma=a),h};x.parseMaybeConditional=function(e,t){var i=this.start,r=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(this.eat(o.question)){var a=this.startNodeAt(i,r);return a.test=s,a.consequent=this.parseMaybeAssign(),this.expect(o.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return s};x.parseExprOps=function(e,t){var i=this.start,r=this.startLoc,s=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||s.start===i&&s.type==="ArrowFunctionExpression"?s:this.parseExprOp(s,i,r,-1,e)};x.parseExprOp=function(e,t,i,r,s){var a=this.type.binop;if(a!=null&&(!s||this.type!==o._in)&&a>r){var n=this.type===o.logicalOR||this.type===o.logicalAND,u=this.type===o.coalesce;u&&(a=o.logicalAND.binop);var c=this.value;this.next();var h=this.start,l=this.startLoc,f=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),h,l,a,s),w=this.buildBinary(t,i,e,f,c,n||u);return(n&&this.type===o.coalesce||u&&(this.type===o.logicalOR||this.type===o.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(w,t,i,r,s)}return e};x.buildBinary=function(e,t,i,r,s,a){r.type==="PrivateIdentifier"&&this.raise(r.start,"Private identifier can only be left side of binary expression");var n=this.startNodeAt(e,t);return n.left=i,n.operator=s,n.right=r,this.finishNode(n,a?"LogicalExpression":"BinaryExpression")};x.parseMaybeUnary=function(e,t,i,r){var s=this.start,a=this.startLoc,n;if(this.isContextual("await")&&this.canAwait)n=this.parseAwait(r),t=!0;else if(this.type.prefix){var u=this.startNode(),c=this.type===o.incDec;u.operator=this.value,u.prefix=!0,this.next(),u.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(u.argument):this.strict&&u.operator==="delete"&&ni(u.argument)?this.raiseRecoverable(u.start,"Deleting local variable in strict mode"):u.operator==="delete"&&nt(u.argument)?this.raiseRecoverable(u.start,"Private fields can not be deleted"):t=!0,n=this.finishNode(u,c?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===o.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),n=this.parsePrivateIdent(),this.type!==o._in&&this.unexpected();else{if(n=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var h=this.startNodeAt(s,a);h.operator=this.value,h.prefix=!1,h.argument=n,this.checkLValSimple(n),this.next(),n=this.finishNode(h,"UpdateExpression")}}if(!i&&this.eat(o.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(s,a,n,this.parseMaybeUnary(null,!1,!1,r),"**",!1);else return n};function ni(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&ni(e.expression)}function nt(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&nt(e.expression)||e.type==="ParenthesizedExpression"&&nt(e.expression)}x.parseExprSubscripts=function(e,t){var i=this.start,r=this.startLoc,s=this.parseExprAtom(e,t);if(s.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return s;var a=this.parseSubscripts(s,i,r,!1,t);return e&&a.type==="MemberExpression"&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a};x.parseSubscripts=function(e,t,i,r,s){for(var a=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,n=!1;;){var u=this.parseSubscript(e,t,i,r,a,n,s);if(u.optional&&(n=!0),u===e||u.type==="ArrowFunctionExpression"){if(n){var c=this.startNodeAt(t,i);c.expression=u,u=this.finishNode(c,"ChainExpression")}return u}e=u}};x.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(o.arrow)};x.parseSubscriptAsyncArrow=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,r)};x.parseSubscript=function(e,t,i,r,s,a,n){var u=this.options.ecmaVersion>=11,c=u&&this.eat(o.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var h=this.eat(o.bracketL);if(h||c&&this.type!==o.parenL&&this.type!==o.backQuote||this.eat(o.dot)){var l=this.startNodeAt(t,i);l.object=e,h?(l.property=this.parseExpression(),this.expect(o.bracketR)):this.type===o.privateId&&e.type!=="Super"?l.property=this.parsePrivateIdent():l.property=this.parseIdent(this.options.allowReserved!=="never"),l.computed=!!h,u&&(l.optional=c),e=this.finishNode(l,"MemberExpression")}else if(!r&&this.eat(o.parenL)){var f=new De,w=this.yieldPos,d=this.awaitPos,C=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var A=this.parseExprList(o.parenR,this.options.ecmaVersion>=8,!1,f);if(s&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=w,this.awaitPos=d,this.awaitIdentPos=C,this.parseSubscriptAsyncArrow(t,i,A,n);this.checkExpressionErrors(f,!0),this.yieldPos=w||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=C||this.awaitIdentPos;var T=this.startNodeAt(t,i);T.callee=e,T.arguments=A,u&&(T.optional=c),e=this.finishNode(T,"CallExpression")}else if(this.type===o.backQuote){(c||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var B=this.startNodeAt(t,i);B.tag=e,B.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(B,"TaggedTemplateExpression")}return e};x.parseExprAtom=function(e,t,i){this.type===o.slash&&this.readRegexp();var r,s=this.potentialArrowAt===this.start;switch(this.type){case o._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===o.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==o.dot&&this.type!==o.bracketL&&this.type!==o.parenL&&this.unexpected(),this.finishNode(r,"Super");case o._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case o.name:var a=this.start,n=this.startLoc,u=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!u&&c.name==="async"&&!this.canInsertSemicolon()&&this.eat(o._function))return this.overrideContext(P.f_expr),this.parseFunction(this.startNodeAt(a,n),0,!1,!0,t);if(s&&!this.canInsertSemicolon()){if(this.eat(o.arrow))return this.parseArrowExpression(this.startNodeAt(a,n),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name==="async"&&this.type===o.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(o.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,n),[c],!0,t)}return c;case o.regexp:var h=this.value;return r=this.parseLiteral(h.value),r.regex={pattern:h.pattern,flags:h.flags},r;case o.num:case o.string:return this.parseLiteral(this.value);case o._null:case o._true:case o._false:return r=this.startNode(),r.value=this.type===o._null?null:this.type===o._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case o.parenL:var l=this.start,f=this.parseParenAndDistinguishExpression(s,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(f)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),f;case o.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(o.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case o.braceL:return this.overrideContext(P.b_expr),this.parseObj(!1,e);case o._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case o._class:return this.parseClass(this.startNode(),!1);case o._new:return this.parseNew();case o.backQuote:return this.parseTemplate();case o._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}};x.parseExprAtomDefault=function(){this.unexpected()};x.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===o.parenL&&!e)return this.parseDynamicImport(t);if(this.type===o.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};x.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(o.parenR)){var t=this.start;this.eat(o.comma)&&this.eat(o.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};x.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")};x.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")};x.parseParenExpression=function(){this.expect(o.parenL);var e=this.parseExpression();return this.expect(o.parenR),e};x.shouldParseArrow=function(e){return!this.canInsertSemicolon()};x.parseParenAndDistinguishExpression=function(e,t){var i=this.start,r=this.startLoc,s,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var n=this.start,u=this.startLoc,c=[],h=!0,l=!1,f=new De,w=this.yieldPos,d=this.awaitPos,C;for(this.yieldPos=0,this.awaitPos=0;this.type!==o.parenR;)if(h?h=!1:this.expect(o.comma),a&&this.afterTrailingComma(o.parenR,!0)){l=!0;break}else if(this.type===o.ellipsis){C=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===o.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else c.push(this.parseMaybeAssign(!1,f,this.parseParenItem));var A=this.lastTokEnd,T=this.lastTokEndLoc;if(this.expect(o.parenR),e&&this.shouldParseArrow(c)&&this.eat(o.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=w,this.awaitPos=d,this.parseParenArrowList(i,r,c,t);(!c.length||l)&&this.unexpected(this.lastTokStart),C&&this.unexpected(C),this.checkExpressionErrors(f,!0),this.yieldPos=w||this.yieldPos,this.awaitPos=d||this.awaitPos,c.length>1?(s=this.startNodeAt(n,u),s.expressions=c,this.finishNodeAt(s,"SequenceExpression",A,T)):s=c[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var B=this.startNodeAt(i,r);return B.expression=s,this.finishNode(B,"ParenthesizedExpression")}else return s};x.parseParenItem=function(e){return e};x.parseParenArrowList=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,r)};var Xr=[];x.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===o.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();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,s=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,s,!0,!1),this.eat(o.parenL)?e.arguments=this.parseExprList(o.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Xr,this.finishNode(e,"NewExpression")};x.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===o.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,`
10
- `),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
11
- `),cooked:this.value},this.next(),i.tail=this.type===o.backQuote,this.finishNode(i,"TemplateElement")};x.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===o.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(o.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(o.braceR),i.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};x.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===o.name||this.type===o.num||this.type===o.string||this.type===o.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===o.star)&&!G.test(this.input.slice(this.lastTokEnd,this.start))};x.parseObj=function(e,t){var i=this.startNode(),r=!0,s={};for(i.properties=[],this.next();!this.eat(o.braceR);){if(r)r=!1;else if(this.expect(o.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(o.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,s,t),i.properties.push(a)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};x.parseProperty=function(e,t){var i=this.startNode(),r,s,a,n;if(this.options.ecmaVersion>=9&&this.eat(o.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===o.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===o.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)&&(a=this.start,n=this.startLoc),e||(r=this.eat(o.star)));var u=this.containsEsc;return this.parsePropertyName(i),!e&&!u&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(i)?(s=!0,r=this.options.ecmaVersion>=9&&this.eat(o.star),this.parsePropertyName(i)):s=!1,this.parsePropertyValue(i,e,r,s,a,n,t,u),this.finishNode(i,"Property")};x.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"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")};x.parsePropertyValue=function(e,t,i,r,s,a,n,u){(i||r)&&this.type===o.colon&&this.unexpected(),this.eat(o.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,n),e.kind="init"):this.options.ecmaVersion>=6&&this.type===o.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,r)):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==o.comma&&this.type!==o.braceR&&this.type!==o.eq?((i||r)&&this.unexpected(),this.parseGetterSetter(e)):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=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,a,this.copyNode(e.key)):this.type===o.eq&&n?(n.shorthandAssign<0&&(n.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};x.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(o.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(o.bracketR),e.key;e.computed=!1}return e.key=this.type===o.num||this.type===o.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};x.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};x.parseMethod=function(e,t,i){var r=this.startNode(),s=this.yieldPos,a=this.awaitPos,n=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(lt(t,r.generator)|ct|(i?ti:0)),this.expect(o.parenL),r.params=this.parseBindingList(o.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=n,this.finishNode(r,"FunctionExpression")};x.parseArrowExpression=function(e,t,i,r){var s=this.yieldPos,a=this.awaitPos,n=this.awaitIdentPos;return this.enterScope(lt(i,!1)|Zt),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=s,this.awaitPos=a,this.awaitIdentPos=n,this.finishNode(e,"ArrowFunctionExpression")};x.parseFunctionBody=function(e,t,i,r){var s=t&&this.type!==o.braceL,a=this.strict,n=!1;if(s)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||u)&&(n=this.strictDirective(this.end),n&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var c=this.labels;this.labels=[],n&&(this.strict=!0),this.checkParams(e,!a&&!n&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,si),e.body=this.parseBlock(!1,void 0,n&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()};x.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};x.checkParams=function(e,t){for(var i=Object.create(null),r=0,s=e.params;r<s.length;r+=1){var a=s[r];this.checkLValInnerPattern(a,ft,t?null:i)}};x.parseExprList=function(e,t,i,r){for(var s=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(o.comma),t&&this.afterTrailingComma(e))break;var n=void 0;i&&this.type===o.comma?n=null:this.type===o.ellipsis?(n=this.parseSpread(r),r&&this.type===o.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):n=this.parseMaybeAssign(!1,r),s.push(n)}return s};x.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 s=this.strict?this.reservedWordsStrict:this.reservedWords;s.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"))}};x.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};x.parseIdentNode=function(){var e=this.startNode();return this.type===o.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=o.name):this.unexpected(),e};x.parsePrivateIdent=function(){var e=this.startNode();return this.type===o.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};x.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===o.semi||this.canInsertSemicolon()||this.type!==o.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(o.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};x.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 Le=L.prototype;Le.raise=function(e,t){var i=Yt(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};Le.raiseRecoverable=Le.raise;Le.curPosition=function(){if(this.options.locations)return new be(this.curLine,this.pos-this.lineStart)};var ne=L.prototype,Yr=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ne.enterScope=function(e){this.scopeStack.push(new Yr(e))};ne.exitScope=function(){this.scopeStack.pop()};ne.treatFunctionsAsVarInScope=function(e){return e.flags&pe||!this.inModule&&e.flags&we};ne.declareName=function(e,t,i){var r=!1;if(t===te){var s=this.currentScope();r=s.lexical.indexOf(e)>-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&s.flags&we&&delete this.undefinedExports[e]}else if(t===ri){var a=this.currentScope();a.lexical.push(e)}else if(t===ii){var n=this.currentScope();this.treatFunctionsAsVar?r=n.lexical.indexOf(e)>-1:r=n.lexical.indexOf(e)>-1||n.var.indexOf(e)>-1,n.functions.push(e)}else for(var u=this.scopeStack.length-1;u>=0;--u){var c=this.scopeStack[u];if(c.lexical.indexOf(e)>-1&&!(c.flags&ei&&c.lexical[0]===e)||!this.treatFunctionsAsVarInScope(c)&&c.functions.indexOf(e)>-1){r=!0;break}if(c.var.push(e),this.inModule&&c.flags&we&&delete this.undefinedExports[e],c.flags&ht)break}r&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")};ne.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};ne.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};ne.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ht)return t}};ne.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ht&&!(t.flags&Zt))return t}};var Fe=function(t,i,r){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new Ve(t,r)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},Ce=L.prototype;Ce.startNode=function(){return new Fe(this,this.start,this.startLoc)};Ce.startNodeAt=function(e,t){return new Fe(this,e,t)};function oi(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}Ce.finishNode=function(e,t){return oi.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Ce.finishNodeAt=function(e,t,i,r){return oi.call(this,e,t,i,r)};Ce.copyNode=function(e){var t=new Fe(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var ui="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",ci=ui+" Extended_Pictographic",hi=ci,li=hi+" EBase EComp EMod EPres ExtPict",fi=li,Jr=fi,Zr={9:ui,10:ci,11:hi,12:li,13:fi,14:Jr},es="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",ts={9:"",10:"",11:"",12:"",13:"",14:es},Gt="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",pi="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",di=pi+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",mi=di+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",gi=mi+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",xi=gi+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",is=xi+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",rs={9:pi,10:di,11:mi,12:gi,13:xi,14:is},yi={};function ss(e){var t=yi[e]={binary:se(Zr[e]+" "+Gt),binaryOfStrings:se(ts[e]),nonBinary:{General_Category:se(Gt),Script:se(rs[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(Te=0,it=[9,10,11,12,13,14];Te<it.length;Te+=1)qt=it[Te],ss(qt);var qt,Te,it,p=L.prototype,Oe=function(t,i){this.parent=t,this.base=i||this};Oe.prototype.separatedFrom=function(t){for(var i=this;i;i=i.parent)for(var r=t;r;r=r.parent)if(i.base===r.base&&i!==r)return!0;return!1};Oe.prototype.sibling=function(){return new Oe(this.parent,this.base)};var Y=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=yi[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Y.prototype.reset=function(t,i,r){var s=r.indexOf("v")!==-1,a=r.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=r,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=a&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=a&&this.parser.options.ecmaVersion>=9)};Y.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Y.prototype.at=function(t,i){i===void 0&&(i=!1);var r=this.source,s=r.length;if(t>=s)return-1;var a=r.charCodeAt(t);if(!(i||this.switchU)||a<=55295||a>=57344||t+1>=s)return a;var n=r.charCodeAt(t+1);return n>=56320&&n<=57343?(a<<10)+n-56613888:a};Y.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var r=this.source,s=r.length;if(t>=s)return s;var a=r.charCodeAt(t),n;return!(i||this.switchU)||a<=55295||a>=57344||t+1>=s||(n=r.charCodeAt(t+1))<56320||n>57343?t+1:t+2};Y.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Y.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Y.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Y.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1};Y.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var r=this.pos,s=0,a=t;s<a.length;s+=1){var n=a[s],u=this.at(r,i);if(u===-1||u!==n)return!1;r=this.nextIndex(r,i)}return this.pos=r,!0};p.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,r=!1,s=!1,a=0;a<i.length;a++){var n=i.charAt(a);t.indexOf(n)===-1&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(n,a+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),n==="u"&&(r=!0),n==="v"&&(s=!0)}this.options.ecmaVersion>=15&&r&&s&&this.raise(e.start,"Invalid regular expression flag")};function as(e){for(var t in e)return!0;return!1}p.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&as(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};p.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var r=i[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}};p.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Oe(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};p.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};p.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};p.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};p.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};p.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};p.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var r=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return s!==-1&&s<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1};p.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)};p.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};p.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};p.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};p.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)};p.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};p.regexp_eatSyntaxCharacter=function(e){var t=e.current();return vi(t)?(e.lastIntValue=t,e.advance(),!0):!1};function vi(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}p.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!vi(i);)e.advance();return e.pos!==t};p.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};p.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var r=0,s=i;r<s.length;r+=1){var a=s[r];a.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(i||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};p.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};p.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ae(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ae(e.lastIntValue);return!0}return!1};p.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),ns(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function ns(e){return Z(e,!0)||e===36||e===95}p.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),os(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function os(e){return le(e,!0)||e===36||e===95||e===8204||e===8205}p.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)};p.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};p.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};p.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)};p.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};p.regexp_eatZero=function(e){return e.current()===48&&!Me(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};p.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};p.regexp_eatControlLetter=function(e){var t=e.current();return bi(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function bi(e){return e>=65&&e<=90||e>=97&&e<=122}p.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 s=e.lastIntValue;if(r&&s>=55296&&s<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(n>=56320&&n<=57343)return e.lastIntValue=(s-55296)*1024+(n-56320)+65536,!0}e.pos=a,e.lastIntValue=s}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&us(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function us(e){return e>=0&&e<=1114111}p.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};p.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};var wi=0,ee=1,W=2;p.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(cs(t))return e.lastIntValue=-1,e.advance(),ee;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&r===W&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return wi};function cs(e){return e===100||e===68||e===115||e===83||e===119||e===87}p.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),ee}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s)}return wi};p.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){_e(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")};p.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return ee;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return W;e.raise("Invalid property name")};p.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";_i(t=e.current());)e.lastStringValue+=ae(t),e.advance();return e.lastStringValue!==""};function _i(e){return bi(e)||e===95}p.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";hs(t=e.current());)e.lastStringValue+=ae(t),e.advance();return e.lastStringValue!==""};function hs(e){return _i(e)||Me(e)}p.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};p.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===W&&e.raise("Negated character class may contain strings"),!0}return!1};p.regexp_classContents=function(e){return e.current()===93?ee:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),ee)};p.regexp_nonEmptyClassRanges=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")}}};p.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||ki(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};p.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)};p.regexp_classSetExpression=function(e){var t=ee,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===W&&(t=W);for(var r=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==W&&(t=ee);continue}e.raise("Invalid character in character class")}if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===W&&(t=W)}};p.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return i!==-1&&r!==-1&&i>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};p.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?ee:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};p.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return i&&r===W&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var s=this.regexp_eatCharacterClassEscape(e);if(s)return s;e.pos=t}return null};p.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null};p.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===W&&(t=W);return t};p.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?ee:W};p.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&ls(i)||fs(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function ls(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function fs(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}p.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return ps(t)?(e.lastIntValue=t,e.advance(),!0):!1};function ps(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}p.regexp_eatClassControlLetter=function(e){var t=e.current();return Me(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};p.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};p.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Me(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function Me(e){return e>=48&&e<=57}p.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Ei(i=e.current());)e.lastIntValue=16*e.lastIntValue+Ci(i),e.advance();return e.pos!==t};function Ei(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ci(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}p.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};p.regexp_eatOctalDigit=function(e){var t=e.current();return ki(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function ki(e){return e>=48&&e<=55}p.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var s=e.current();if(!Ei(s))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+Ci(s),e.advance()}return!0};var dt=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Ve(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},y=L.prototype;y.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 dt(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};y.getToken=function(){return this.next(),new dt(this)};typeof Symbol<"u"&&(y[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===o.eof,value:t}}}});y.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(o.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};y.readToken=function(e){return Z(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};y.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};y.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,s=t;(r=Kt(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())};y.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&&!fe(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())};y.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&&Qt.test(String.fromCharCode(e)))++this.pos;else break e}}};y.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)};y.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(o.ellipsis)):(++this.pos,this.finishToken(o.dot))};y.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(o.assign,2):this.finishOp(o.slash,1)};y.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,r=e===42?o.star:o.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,r=o.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(o.assign,i+1):this.finishOp(r,i)};y.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(o.assign,3)}return this.finishOp(e===124?o.logicalOR:o.logicalAND,2)}return t===61?this.finishOp(o.assign,2):this.finishOp(e===124?o.bitwiseOR:o.bitwiseAND,1)};y.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(o.assign,2):this.finishOp(o.bitwiseXOR,1)};y.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||G.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(o.incDec,2):t===61?this.finishOp(o.assign,2):this.finishOp(o.plusMin,1)};y.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(o.assign,i+1):this.finishOp(o.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(o.relational,i))};y.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(o.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(o.arrow)):this.finishOp(e===61?o.eq:o.prefix,1)};y.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(o.questionDot,2)}if(t===63){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(o.assign,3)}return this.finishOp(o.coalesce,2)}}return this.finishOp(o.question,1)};y.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Z(t,!0)||t===92))return this.finishToken(o.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ae(t)+"'")};y.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(o.parenL);case 41:return++this.pos,this.finishToken(o.parenR);case 59:return++this.pos,this.finishToken(o.semi);case 44:return++this.pos,this.finishToken(o.comma);case 91:return++this.pos,this.finishToken(o.bracketL);case 93:return++this.pos,this.finishToken(o.bracketR);case 123:return++this.pos,this.finishToken(o.braceL);case 125:return++this.pos,this.finishToken(o.braceR);case 58:return++this.pos,this.finishToken(o.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(o.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(o.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ae(e)+"'")};y.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)};y.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(G.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 s=this.input.slice(i,this.pos);++this.pos;var a=this.pos,n=this.readWord1();this.containsEsc&&this.unexpected(a);var u=this.regexpState||(this.regexpState=new Y(this));u.reset(i,s,n),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var c=null;try{c=new RegExp(s,n)}catch{}return this.finishToken(o.regexp,{pattern:s,flags:n,value:c})};y.readInt=function(e,t,i){for(var r=this.options.ecmaVersion>=12&&t===void 0,s=i&&this.input.charCodeAt(this.pos)===48,a=this.pos,n=0,u=0,c=0,h=t??1/0;c<h;++c,++this.pos){var l=this.input.charCodeAt(this.pos),f=void 0;if(r&&l===95){s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),u===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),c===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),u=l;continue}if(l>=97?f=l-97+10:l>=65?f=l-65+10:l>=48&&l<=57?f=l-48:f=1/0,f>=e)break;u=l,n=n*e+f}return r&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||t!=null&&this.pos-a!==t?null:n};function ds(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Si(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}y.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=Si(this.input.slice(t,this.pos)),++this.pos):Z(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(o.num,i)};y.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 s=Si(this.input.slice(t,this.pos));return++this.pos,Z(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(o.num,s)}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")),Z(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=ds(this.input.slice(t,this.pos),i);return this.finishToken(o.num,a)};y.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};y.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)):(fe(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(o.string,t)};var Ai={};y.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Ai)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};y.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ai;this.raise(e,t)};y.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===o.template||this.type===o.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(o.dollarBraceL)):(++this.pos,this.finishToken(o.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(o.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(fe(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+=`
12
- `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};y.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(o.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
13
- `&&++this.pos;case`
14
- `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};y.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
15
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ae(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;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(r,8);return s>255&&(r=r.slice(0,-1),s=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(s)}return fe(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};y.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};y.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(le(s,r))this.pos+=s<=65535?1:2;else if(s===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var n=this.readCodePoint();(t?Z:le)(n,r)||this.invalidStringToken(a,"Invalid Unicode escape"),e+=ae(n),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)};y.readWord=function(){var e=this.readWord1(),t=o.name;return this.keywords.test(e)&&(t=ot[e]),this.finishToken(t,e)};var ms="8.12.1";L.acorn={Parser:L,version:ms,defaultOptions:st,Position:be,SourceLocation:Ve,getLineInfo:Yt,Node:Fe,TokenType:_,tokTypes:o,keywordTypes:ot,TokContext:K,tokContexts:P,isIdentifierChar:le,isIdentifierStart:Z,Token:dt,isNewLine:fe,lineBreak:G,lineBreakG:jr,nonASCIIwhitespace:Qt};import{builtinModules as _t,createRequire as mn}from"node:module";import ws,{realpathSync as _s,statSync as Et,promises as xn}from"node:fs";var cn=String.fromCharCode;var gs=/\/$|\/\?|\/#/,xs=/^\.?\//;function ys(e="",t){return t?gs.test(e):e.endsWith("/")}function vs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(ys(e,!0))return e||"/";let i=e,r="",s=e.indexOf("#");if(s>=0&&(i=e.slice(0,s),r=e.slice(s),!i))return r;let[a,...n]=i.split("?");return a+"/"+(n.length>0?`?${n.join("?")}`:"")+r}function bs(e){return e&&e!=="/"}function Pi(e,...t){let i=e||"";for(let r of t.filter(s=>bs(s)))if(i){let s=r.replace(xs,"");i=vs(i)+s}else i=r;return i}var hn=Symbol.for("ufo:protocolRelative");import{fileURLToPath as E,URL as R,pathToFileURL as $e}from"node:url";import oe from"node:assert";import ce from"node:process";import Ct,{dirname as Cn}from"node:path";import Es from"node:v8";import{format as Cs,inspect as vt}from"node:util";var $i=new Set(_t);function bt(e){return e.replace(/\\/g,"/")}var ks={}.hasOwnProperty,Ss=/^([A-Z][a-z\d]*)+$/,As=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),F={};function mt(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var Wi=new Map,Ps="__node_internal_",Ii;F.ERR_INVALID_ARG_TYPE=H("ERR_INVALID_ARG_TYPE",(e,t,i)=>{oe(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let r="The ";if(e.endsWith(" argument"))r+=`${e} `;else{let u=e.includes(".")?"property":"argument";r+=`"${e}" ${u} `}r+="must be ";let s=[],a=[],n=[];for(let u of t)oe(typeof u=="string","All expected entries have to be of type string"),As.has(u)?s.push(u.toLowerCase()):Ss.exec(u)===null?(oe(u!=="object",'The value "object" should be written as "Object"'),n.push(u)):a.push(u);if(a.length>0){let u=s.indexOf("object");u!==-1&&(s.slice(u,1),a.push("Object"))}return s.length>0&&(r+=`${s.length>1?"one of type":"of type"} ${mt(s,"or")}`,(a.length>0||n.length>0)&&(r+=" or ")),a.length>0&&(r+=`an instance of ${mt(a,"or")}`,n.length>0&&(r+=" or ")),n.length>0&&(n.length>1?r+=`one of ${mt(n,"or")}`:(n[0].toLowerCase()!==n[0]&&(r+="an "),r+=`${n[0]}`)),r+=`. Received ${Ls(i)}`,r},TypeError);F.ERR_INVALID_MODULE_SPECIFIER=H("ERR_INVALID_MODULE_SPECIFIER",(e,t,i=void 0)=>`Invalid module "${e}" ${t}${i?` imported from ${i}`:""}`,TypeError);F.ERR_INVALID_PACKAGE_CONFIG=H("ERR_INVALID_PACKAGE_CONFIG",(e,t,i)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${i?`. ${i}`:""}`,Error);F.ERR_INVALID_PACKAGE_TARGET=H("ERR_INVALID_PACKAGE_TARGET",(e,t,i,r=!1,s=void 0)=>{let a=typeof i=="string"&&!r&&i.length>0&&!i.startsWith("./");return t==="."?(oe(r===!1),`Invalid "exports" main target ${JSON.stringify(i)} defined in the package config ${e}package.json${s?` imported from ${s}`:""}${a?'; targets must start with "./"':""}`):`Invalid "${r?"imports":"exports"}" target ${JSON.stringify(i)} defined for '${t}' in the package config ${e}package.json${s?` imported from ${s}`:""}${a?'; targets must start with "./"':""}`},Error);F.ERR_MODULE_NOT_FOUND=H("ERR_MODULE_NOT_FOUND",(e,t,i=!1)=>`Cannot find ${i?"module":"package"} '${e}' imported from ${t}`,Error);F.ERR_NETWORK_IMPORT_DISALLOWED=H("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);F.ERR_PACKAGE_IMPORT_NOT_DEFINED=H("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,i)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${i}`,TypeError);F.ERR_PACKAGE_PATH_NOT_EXPORTED=H("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,i=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${i?` imported from ${i}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${i?` imported from ${i}`:""}`,Error);F.ERR_UNSUPPORTED_DIR_IMPORT=H("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);F.ERR_UNSUPPORTED_RESOLVE_REQUEST=H("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);F.ERR_UNKNOWN_FILE_EXTENSION=H("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);F.ERR_INVALID_ARG_VALUE=H("ERR_INVALID_ARG_VALUE",(e,t,i="is invalid")=>{let r=vt(t);return r.length>128&&(r=`${r.slice(0,128)}...`),`The ${e.includes(".")?"property":"argument"} '${e}' ${i}. Received ${r}`},TypeError);function H(e,t,i){return Wi.set(e,t),Is(i,e)}function Is(e,t){return i;function i(...r){let s=Error.stackTraceLimit;wt()&&(Error.stackTraceLimit=0);let a=new e;wt()&&(Error.stackTraceLimit=s);let n=Ns(t,r,a);return Object.defineProperties(a,{message:{value:n,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),Rs(a),a.code=t,a}}function wt(){try{if(Es.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):ks.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function Ts(e){let t=Ps+e.name;return Object.defineProperty(e,"name",{value:t}),e}var Rs=Ts(function(e){let t=wt();return t&&(Ii=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=Ii),e});function Ns(e,t,i){let r=Wi.get(e);if(oe(r!==void 0,"expected `message` to be found"),typeof r=="function")return oe(r.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${r.length}).`),Reflect.apply(r,i,t);let s=/%[dfijoOs]/g,a=0;for(;s.exec(r)!==null;)a++;return oe(a===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${a}).`),t.length===0?r:(t.unshift(r),Reflect.apply(Cs,null,t))}function Ls(e){if(e==null)return String(e);if(typeof e=="function"&&e.name)return`function ${e.name}`;if(typeof e=="object")return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${vt(e,{depth:-1})}`;let t=vt(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var ke={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:Os}=F,Ti=new Map;function Gi(e,{base:t,specifier:i}){let r=Ti.get(e);if(r)return r;let s;try{s=ws.readFileSync(Ct.toNamespacedPath(e),"utf8")}catch(n){let u=n;if(u.code!=="ENOENT")throw u}let a={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(s!==void 0){let n;try{n=JSON.parse(s)}catch(u){let c=u,h=new Os(e,(t?`"${i}" from `:"")+E(t||i),c.message);throw h.cause=c,h}a.exists=!0,ke.call(n,"name")&&typeof n.name=="string"&&(a.name=n.name),ke.call(n,"main")&&typeof n.main=="string"&&(a.main=n.main),ke.call(n,"exports")&&(a.exports=n.exports),ke.call(n,"imports")&&(a.imports=n.imports),ke.call(n,"type")&&(n.type==="commonjs"||n.type==="module")&&(a.type=n.type)}return Ti.set(e,a),a}function kt(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let s=Gi(E(t),{specifier:e});if(s.exists)return s;let a=t;if(t=new URL("../package.json",t),t.pathname===a.pathname)break}return{pjsonPath:E(t),exists:!1,type:"none"}}function Ri(e){return kt(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:Vs}=F,Ds={}.hasOwnProperty,Fs={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function Ms(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var Ni={__proto__:null,"data:":Bs,"file:":Us,"http:":Li,"https:":Li,"node:"(){return"builtin"}};function Bs(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return Ms(t)}function js(e){let t=e.pathname,i=t.length;for(;i--;){let r=t.codePointAt(i);if(r===47)return"";if(r===46)return t.codePointAt(i-1)===47?"":t.slice(i)}return""}function Us(e,t,i){let r=js(e);if(r===".js"){let n=Ri(e);return n!=="none"?n:"commonjs"}if(r===""){let n=Ri(e);return n==="none"||n==="commonjs"?"commonjs":"module"}let s=Fs[r];if(s)return s;if(i)return;let a=E(e);throw new Vs(r,a)}function Li(){}function $s(e,t){let i=e.protocol;return Ds.call(Ni,i)&&Ni[i](e,t,!0)||null}var Be=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:An,ERR_INVALID_MODULE_SPECIFIER:We,ERR_INVALID_PACKAGE_CONFIG:qi,ERR_INVALID_PACKAGE_TARGET:Ws,ERR_MODULE_NOT_FOUND:St,ERR_PACKAGE_IMPORT_NOT_DEFINED:Gs,ERR_PACKAGE_PATH_NOT_EXPORTED:qs,ERR_UNSUPPORTED_DIR_IMPORT:Hs,ERR_UNSUPPORTED_RESOLVE_REQUEST:Oi}=F,Hi={}.hasOwnProperty,Vi=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,Di=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,zs=/^\.|%|\\/,je=/\*/g,Ks=/%2f|%5c/i,Fi=new Set,Qs=/[/\\]{2}/;function Mi(e,t,i,r,s,a,n){if(ce.noDeprecation)return;let u=E(r),c=Qs.exec(n?e:t)!==null;ce.emitWarning(`Use of deprecated ${c?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===i?"":`matched to "${i}" `}in the "${s?"imports":"exports"}" field module resolution of the package at ${u}${a?` imported from ${E(a)}`:""}.`,"DeprecationWarning","DEP0166")}function Bi(e,t,i,r){if(ce.noDeprecation||$s(e,{parentURL:i.href})!=="module")return;let a=E(e.href),n=E(new R(".",t)),u=E(i);r?Ct.resolve(n,r)!==a&&ce.emitWarning(`Package ${n} has a "main" field set to "${r}", excluding the full filename and extension to the resolved file at "${a.slice(n.length)}", imported from ${u}.
16
- Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):ce.emitWarning(`No "main" or "exports" field defined in the package.json for ${n} resolving the main entry point "${a.slice(n.length)}", imported from ${u}.
17
- Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function zi(e){try{return Et(e)}catch{}}function gt(e){let t=Et(e,{throwIfNoEntry:!1}),i=t?t.isFile():void 0;return i??!1}function Xs(e,t,i){let r;if(t.main!==void 0){if(r=new R(t.main,e),gt(r))return r;let n=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],u=-1;for(;++u<n.length&&(r=new R(n[u],e),!gt(r));)r=void 0;if(r)return Bi(r,e,i,t.main),r}let s=["./index.js","./index.json","./index.node"],a=-1;for(;++a<s.length&&(r=new R(s[a],e),!gt(r));)r=void 0;if(r)return Bi(r,e,i,t.main),r;throw new St(E(new R(".",e)),E(i))}function Ys(e,t,i){if(Ks.exec(e.pathname)!==null)throw new We(e.pathname,'must not include encoded "/" or "\\" characters',E(t));let r;try{r=E(e)}catch(a){let n=a;throw Object.defineProperty(n,"input",{value:String(e)}),Object.defineProperty(n,"module",{value:String(t)}),n}let s=zi(r.endsWith("/")?r.slice(-1):r);if(s&&s.isDirectory()){let a=new Hs(r,E(t));throw a.url=String(e),a}if(!s||!s.isFile()){let a=new St(r||e.pathname,t&&E(t),!0);throw a.url=String(e),a}if(!i){let a=_s(r),{search:n,hash:u}=e;e=$e(a+(r.endsWith(Ct.sep)?"/":"")),e.search=n,e.hash=u}return e}function Js(e,t,i){return new Gs(e,t&&E(new R(".",t)),E(i))}function xt(e,t,i){return new qs(E(new R(".",t)),e,i&&E(i))}function Zs(e,t,i,r,s){let a=`request is not a valid match in pattern "${t}" for the "${r?"imports":"exports"}" resolution of ${E(i)}`;throw new We(e,a,s&&E(s))}function Se(e,t,i,r,s){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new Ws(E(new R(".",i)),e,t,r,s&&E(s))}function ea(e,t,i,r,s,a,n,u,c){if(t!==""&&!a&&e[e.length-1]!=="/")throw Se(i,e,r,n,s);if(!e.startsWith("./")){if(n&&!e.startsWith("../")&&!e.startsWith("/")){let w=!1;try{new R(e),w=!0}catch{}if(!w){let d=a?Be.call(je,e,()=>t):e+t;return Qi(d,r,c)}}throw Se(i,e,r,n,s)}if(Vi.exec(e.slice(2))!==null)if(Di.exec(e.slice(2))===null){if(!u){let w=a?i.replace("*",()=>t):i+t,d=a?Be.call(je,e,()=>t):e;Mi(d,w,i,r,n,s,!0)}}else throw Se(i,e,r,n,s);let h=new R(e,r),l=h.pathname,f=new R(".",r).pathname;if(!l.startsWith(f))throw Se(i,e,r,n,s);if(t==="")return h;if(Vi.exec(t)!==null){let w=a?i.replace("*",()=>t):i+t;if(Di.exec(t)===null){if(!u){let d=a?Be.call(je,e,()=>t):e;Mi(d,w,i,r,n,s,!1)}}else Zs(w,i,r,n,s)}return a?new R(Be.call(je,h.href,()=>t)):new R(t,h)}function ta(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function me(e,t,i,r,s,a,n,u,c){if(typeof t=="string")return ea(t,i,r,e,s,a,n,u,c);if(Array.isArray(t)){let h=t;if(h.length===0)return null;let l,f=-1;for(;++f<h.length;){let w=h[f],d;try{d=me(e,w,i,r,s,a,n,u,c)}catch(C){let A=C;if(l=A,A.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw C}if(d!==void 0){if(d===null){l=null;continue}return d}}if(l==null)return null;throw l}if(typeof t=="object"&&t!==null){let h=Object.getOwnPropertyNames(t),l=-1;for(;++l<h.length;){let f=h[l];if(ta(f))throw new qi(E(e),s,'"exports" cannot contain numeric property keys.')}for(l=-1;++l<h.length;){let f=h[l];if(f==="default"||c&&c.has(f)){let w=t[f],d=me(e,w,i,r,s,a,n,u,c);if(d===void 0)continue;return d}}return null}if(t===null)return null;throw Se(r,t,e,n,s)}function ia(e,t,i){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;let r=Object.getOwnPropertyNames(e),s=!1,a=0,n=-1;for(;++n<r.length;){let u=r[n],c=u===""||u[0]!==".";if(a++===0)s=c;else if(s!==c)throw new qi(E(t),i,`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`)}return s}function ra(e,t,i){if(ce.noDeprecation)return;let r=E(t);Fi.has(r+"|"+e)||(Fi.add(r+"|"+e),ce.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${r}${i?` imported from ${E(i)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function ji(e,t,i,r,s){let a=i.exports;if(ia(a,e,r)&&(a={".":a}),Hi.call(a,t)&&!t.includes("*")&&!t.endsWith("/")){let l=a[t],f=me(e,l,"",t,r,!1,!1,!1,s);if(f==null)throw xt(t,e,r);return f}let n="",u="",c=Object.getOwnPropertyNames(a),h=-1;for(;++h<c.length;){let l=c[h],f=l.indexOf("*");if(f!==-1&&t.startsWith(l.slice(0,f))){t.endsWith("/")&&ra(t,e,r);let w=l.slice(f+1);t.length>=l.length&&t.endsWith(w)&&Ki(n,l)===1&&l.lastIndexOf("*")===f&&(n=l,u=t.slice(f,t.length-w.length))}}if(n){let l=a[n],f=me(e,l,u,n,r,!0,!1,t.endsWith("/"),s);if(f==null)throw xt(t,e,r);return f}throw xt(t,e,r)}function Ki(e,t){let i=e.indexOf("*"),r=t.indexOf("*"),s=i===-1?e.length:i+1,a=r===-1?t.length:r+1;return s>a?-1:a>s||i===-1?1:r===-1||e.length>t.length?-1:t.length>e.length?1:0}function sa(e,t,i){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){let a="is not a valid internal imports specifier name";throw new We(e,a,E(t))}let r,s=kt(t);if(s.exists){r=$e(s.pjsonPath);let a=s.imports;if(a)if(Hi.call(a,e)&&!e.includes("*")){let n=me(r,a[e],"",e,t,!1,!0,!1,i);if(n!=null)return n}else{let n="",u="",c=Object.getOwnPropertyNames(a),h=-1;for(;++h<c.length;){let l=c[h],f=l.indexOf("*");if(f!==-1&&e.startsWith(l.slice(0,-1))){let w=l.slice(f+1);e.length>=l.length&&e.endsWith(w)&&Ki(n,l)===1&&l.lastIndexOf("*")===f&&(n=l,u=e.slice(f,e.length-w.length))}}if(n){let l=a[n],f=me(r,l,u,n,t,!0,!0,!1,i);if(f!=null)return f}}}throw Js(e,r,t)}function aa(e,t){let i=e.indexOf("/"),r=!0,s=!1;e[0]==="@"&&(s=!0,i===-1||e.length===0?r=!1:i=e.indexOf("/",i+1));let a=i===-1?e:e.slice(0,i);if(zs.exec(a)!==null&&(r=!1),!r)throw new We(e,"is not a valid package name",E(t));let n="."+(i===-1?"":e.slice(i));return{packageName:a,packageSubpath:n,isScoped:s}}function Qi(e,t,i){if(_t.includes(e))return new R("node:"+e);let{packageName:r,packageSubpath:s,isScoped:a}=aa(e,t),n=kt(t);if(n.exists){let l=$e(n.pjsonPath);if(n.name===r&&n.exports!==void 0&&n.exports!==null)return ji(l,s,n,t,i)}let u=new R("./node_modules/"+r+"/package.json",t),c=E(u),h;do{let l=zi(c.slice(0,-13));if(!l||!l.isDirectory()){h=c,u=new R((a?"../../../../node_modules/":"../../../node_modules/")+r+"/package.json",u),c=E(u);continue}let f=Gi(c,{base:t,specifier:e});return f.exports!==void 0&&f.exports!==null?ji(u,s,f,t,i):s==="."?Xs(u,f,t):new R(s,u)}while(c.length!==h.length);throw new St(r,E(t),!1)}function na(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function oa(e){return e===""?!1:e[0]==="/"?!0:na(e)}function ua(e,t,i,r){let s=t.protocol,n=s==="data:"||s==="http:"||s==="https:",u;if(oa(e))try{u=new R(e,t)}catch(c){let h=new Oi(e,t);throw h.cause=c,h}else if(s==="file:"&&e[0]==="#")u=sa(e,t,i);else try{u=new R(e)}catch(c){if(n&&!_t.includes(e)){let h=new Oi(e,t);throw h.cause=c,h}u=Qi(e,t,i)}return oe(u!==void 0,"expected to be defined"),u.protocol!=="file:"?u:Ys(u,t,r)}function Ue(e){return typeof e=="string"&&!e.startsWith("file://")?bt(e):bt(E(e))}function yt(e){return $e(Ue(e)).toString()}function ca(e){return typeof e!="string"&&(e=e.toString()),/(node|data|http|https|file):/.test(e)?e:$i.has(e)?"node:"+e:"file://"+encodeURI(bt(e))}var ha=new Set(["node","import"]),la=[".mjs",".cjs",".js",".json"],fa=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function Ui(e,t,i){try{return ua(e,t,i)}catch(r){if(!fa.has(r?.code))throw r}}function pa(e,t={}){if(typeof e!="string")if(e instanceof URL)e=Ue(e);else throw new TypeError("input must be a `string` or `URL`");if(/(node|data|http|https):/.test(e))return e;if($i.has(e))return"node:"+e;if(e.startsWith("file://")&&(e=Ue(e)),J(e))try{if(Et(e).isFile())return yt(e)}catch(n){if(n?.code!=="ENOENT")throw n}let i=t.conditions?new Set(t.conditions):ha,r=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(n=>new URL(ca(n.toString())));r.length===0&&r.push(new URL(yt(process.cwd())));let s=[...r];for(let n of r)n.protocol==="file:"&&s.push(new URL("./",n),new URL(Pi(n.pathname,"_index.js"),n),new URL("node_modules",n));let a;for(let n of s){if(a=Ui(e,n,i),a)break;for(let u of["","/index"]){for(let c of t.extensions||la)if(a=Ui(e+u+c,n,i),a)break;if(a)break}if(a)break}if(!a){let n=new Error(`Cannot find module ${e} imported from ${s.join(", ")}`);throw n.code="ERR_MODULE_NOT_FOUND",n}return yt(a)}function da(e,t){return pa(e,t)}function ma(e,t){return Ue(da(e,t))}function Xi(e,t){try{return Promise.resolve(ma(e,t))}catch(i){return Promise.reject(i)}}var ga=Symbol.for("__confbox_fmt__"),xa=/^(\s+)/,ya=/(\s+)$/;function va(e,t={}){let i=t.indent===void 0&&t.preserveIndentation!==!1&&e.slice(0,t?.sampleSize||1024),r=t.preserveWhitespace===!1?void 0:{start:xa.exec(e)?.[0]||"",end:ya.exec(e)?.[0]||""};return{sample:i,whiteSpace:r}}function At(e,t,i){!t||typeof t!="object"||Object.defineProperty(t,ga,{enumerable:!1,configurable:!0,writable:!0,value:va(e,i)})}function ba(e,t=!1){let i=e.length,r=0,s="",a=0,n=16,u=0,c=0,h=0,l=0,f=0;function w(g,S){let v=0,O=0;for(;v<g||!S;){let V=e.charCodeAt(r);if(V>=48&&V<=57)O=O*16+V-48;else if(V>=65&&V<=70)O=O*16+V-65+10;else if(V>=97&&V<=102)O=O*16+V-97+10;else break;r++,v++}return v<g&&(O=-1),O}function d(g){r=g,s="",a=0,n=16,f=0}function C(){let g=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&ge(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&ge(e.charCodeAt(r)))for(r++;r<e.length&&ge(e.charCodeAt(r));)r++;else return f=3,e.substring(g,r);let S=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&ge(e.charCodeAt(r))){for(r++;r<e.length&&ge(e.charCodeAt(r));)r++;S=r}else f=3;return e.substring(g,S)}function A(){let g="",S=r;for(;;){if(r>=i){g+=e.substring(S,r),f=2;break}let v=e.charCodeAt(r);if(v===34){g+=e.substring(S,r),r++;break}if(v===92){if(g+=e.substring(S,r),r++,r>=i){f=2;break}switch(e.charCodeAt(r++)){case 34:g+='"';break;case 92:g+="\\";break;case 47:g+="/";break;case 98:g+="\b";break;case 102:g+="\f";break;case 110:g+=`
18
- `;break;case 114:g+="\r";break;case 116:g+=" ";break;case 117:let O=w(4,!0);O>=0?g+=String.fromCharCode(O):f=4;break;default:f=5}S=r;continue}if(v>=0&&v<=31)if(Ae(v)){g+=e.substring(S,r),f=2;break}else f=6;r++}return g}function T(){if(s="",f=0,a=r,c=u,l=h,r>=i)return a=i,n=17;let g=e.charCodeAt(r);if(Pt(g)){do r++,s+=String.fromCharCode(g),g=e.charCodeAt(r);while(Pt(g));return n=15}if(Ae(g))return r++,s+=String.fromCharCode(g),g===13&&e.charCodeAt(r)===10&&(r++,s+=`
19
- `),u++,h=r,n=14;switch(g){case 123:return r++,n=1;case 125:return r++,n=2;case 91:return r++,n=3;case 93:return r++,n=4;case 58:return r++,n=6;case 44:return r++,n=5;case 34:return r++,s=A(),n=10;case 47:let S=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<i&&!Ae(e.charCodeAt(r));)r++;return s=e.substring(S,r),n=12}if(e.charCodeAt(r+1)===42){r+=2;let v=i-1,O=!1;for(;r<v;){let V=e.charCodeAt(r);if(V===42&&e.charCodeAt(r+1)===47){r+=2,O=!0;break}r++,Ae(V)&&(V===13&&e.charCodeAt(r)===10&&r++,u++,h=r)}return O||(r++,f=1),s=e.substring(S,r),n=13}return s+=String.fromCharCode(g),r++,n=16;case 45:if(s+=String.fromCharCode(g),r++,r===i||!ge(e.charCodeAt(r)))return n=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=C(),n=11;default:for(;r<i&&B(g);)r++,g=e.charCodeAt(r);if(a!==r){switch(s=e.substring(a,r),s){case"true":return n=8;case"false":return n=9;case"null":return n=7}return n=16}return s+=String.fromCharCode(g),r++,n=16}}function B(g){if(Pt(g)||Ae(g))return!1;switch(g){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function he(){let g;do g=T();while(g>=12&&g<=15);return g}return{setPosition:d,getPosition:()=>r,scan:t?he:T,getToken:()=>n,getTokenValue:()=>s,getTokenOffset:()=>a,getTokenLength:()=>r-a,getTokenStartLine:()=>c,getTokenStartCharacter:()=>a-l,getTokenError:()=>f}}function Pt(e){return e===32||e===9}function Ae(e){return e===10||e===13}function ge(e){return e>=48&&e<=57}var Yi;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Yi||(Yi={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));var xe=200;new Array(xe).fill(0).map((e,t)=>`
20
- `+" ".repeat(t)),new Array(xe).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(xe).fill(0).map((e,t)=>`\r
21
- `+" ".repeat(t)),new Array(xe).fill(0).map((e,t)=>`
22
- `+" ".repeat(t)),new Array(xe).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(xe).fill(0).map((e,t)=>`\r
23
- `+" ".repeat(t));var Ge;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ge||(Ge={}));function wa(e,t=[],i=Ge.DEFAULT){let r=null,s=[],a=[];function n(u){Array.isArray(s)?s.push(u):r!==null&&(s[r]=u)}return _a(e,{onObjectBegin:()=>{let u={};n(u),a.push(s),s=u,r=null},onObjectProperty:u=>{r=u},onObjectEnd:()=>{s=a.pop()},onArrayBegin:()=>{let u=[];n(u),a.push(s),s=u,r=null},onArrayEnd:()=>{s=a.pop()},onLiteralValue:n,onError:(u,c,h)=>{t.push({error:u,offset:c,length:h})}},i),s[0]}function _a(e,t,i=Ge.DEFAULT){let r=ba(e,!1),s=[];function a(k){return k?()=>k(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function n(k){return k?()=>k(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>s.slice()):()=>!0}function u(k){return k?N=>k(N,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function c(k){return k?N=>k(N,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>s.slice()):()=>!0}let h=n(t.onObjectBegin),l=c(t.onObjectProperty),f=a(t.onObjectEnd),w=n(t.onArrayBegin),d=a(t.onArrayEnd),C=c(t.onLiteralValue),A=u(t.onSeparator),T=a(t.onComment),B=u(t.onError),he=i&&i.disallowComments,g=i&&i.allowTrailingComma;function S(){for(;;){let k=r.scan();switch(r.getTokenError()){case 4:v(14);break;case 5:v(15);break;case 3:v(13);break;case 1:he||v(11);break;case 2:v(12);break;case 6:v(16);break}switch(k){case 12:case 13:he?v(10):T();break;case 16:v(1);break;case 15:case 14:break;default:return k}}}function v(k,N=[],Rt=[]){if(B(k),N.length+Rt.length>0){let Pe=r.getToken();for(;Pe!==17;){if(N.indexOf(Pe)!==-1){S();break}else if(Rt.indexOf(Pe)!==-1)break;Pe=S()}}}function O(k){let N=r.getTokenValue();return k?C(N):(l(N),s.push(N)),S(),!0}function V(){switch(r.getToken()){case 11:let k=r.getTokenValue(),N=Number(k);isNaN(N)&&(v(2),N=0),C(N);break;case 7:C(null);break;case 8:C(!0);break;case 9:C(!1);break;default:return!1}return S(),!0}function rr(){return r.getToken()!==10?(v(3,[],[2,5]),!1):(O(!1),r.getToken()===6?(A(":"),S(),He()||v(4,[],[2,5])):v(5,[],[2,5]),s.pop(),!0)}function sr(){h(),S();let k=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(k||v(4,[],[]),A(","),S(),r.getToken()===2&&g)break}else k&&v(6,[],[]);rr()||v(4,[],[2,5]),k=!0}return f(),r.getToken()!==2?v(7,[2],[]):S(),!0}function ar(){w(),S();let k=!0,N=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(N||v(4,[],[]),A(","),S(),r.getToken()===4&&g)break}else N&&v(6,[],[]);k?(s.push(0),k=!1):s[s.length-1]++,He()||v(4,[],[4,5]),N=!0}return d(),k||s.pop(),r.getToken()!==4?v(8,[4],[]):S(),!0}function He(){switch(r.getToken()){case 3:return ar();case 1:return sr();case 10:return O(!0);default:return V()}}return S(),r.getToken()===17?i.allowEmptyContent?!0:(v(4,[],[]),!1):He()?(r.getToken()!==17&&v(9,[],[]),!0):(v(4,[],[]),!1)}var Ji;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Ji||(Ji={}));var Zi;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Zi||(Zi={}));var Ea=wa,er;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(er||(er={}));function It(e,t){let i=JSON.parse(e,t?.reviver);return At(e,i,t),i}function Tt(e,t){let i=Ea(e,t?.errors,t);return At(e,i,t),i}var Pa={startingFrom:".",rootPattern:/^node_modules$/,reverse:!1,test:e=>{try{if(Sa(e).isFile())return!0}catch{}}};async function Ia(e,t={}){let i=Array.isArray(e)?e:[e],r={...Pa,...t},s=Je(r.startingFrom),a=s[0]==="/",n=s.split("/").filter(Boolean);a&&(n[0]="/"+n[0]);let u=n.findIndex(c=>c.match(r.rootPattern));if(u===-1&&(u=0),r.reverse)for(let c=u+1;c<=n.length;c++)for(let h of i){let l=Ie(...n.slice(0,c),h);if(await r.test(l))return l}else for(let c=n.length;c>u;c--)for(let h of i){let l=Ie(...n.slice(0,c),h);if(await r.test(l))return l}throw new Error(`Cannot find matching ${e} in ${r.startingFrom} or parent directories`)}function Ta(e,t={}){return Ia(e,t)}var Ra=new Map;async function tr(e,t={}){let i=await Na(e,t),r=t.cache&&typeof t.cache!="boolean"?t.cache:Ra;if(t.cache&&r.has(i))return r.get(i);let s=await Aa.readFile(i,"utf8"),a;try{a=It(s)}catch{a=Tt(s)}return r.set(i,a),a}async function Na(e=process.cwd(),t={}){let i=J(e)?e:await Xi(e,t);return Ta("package.json",{startingFrom:i,...t})}var Da="public",Fa="manifests.json",Ma="cookie-policy.html",Ba="config.schema.json",ja="manifest.schema.json";function ye(e){console.log(ze("yellowBright","DIST ")+ze("bold",Va(process.cwd(),e)))}await Bt({meta:{name:"compile-distribution",description:"Creates files used when building an Alliance distribution by reading alliance.apps in the CWD package.json."},async run(){let e=await tr(),t=e?.alliance?.apps||[];if(!t.length)throw new Error("No alliance.apps in package.json.");let i=await Lt(e.alliance.apps);for(let h of i){let l=Ot(h,`App '${h.name}' has an invalid manifest`);typeof l=="string"&&(ie.error(l),process.exit(1))}let r=Nt(t.map(h=>({packageName:h,appImportPath:`${h}/app`,manifestImportPath:`${h}/manifest`})));ye(r);let s=ue(process.cwd(),Da);La(s)||(Oa(s),ye(s));let a=ue(s,Fa);qe(a,JSON.stringify(i)),ye(a);let n=ue(s,Ma);qe(n,$a(i)),ye(n);let[u,c]=Ua(s);ye(u),ye(c)}});function Ua(e){let t=ue(process.cwd(),"node_modules","@telia-ace/alliance-framework","dist"),i=ue(e,Ba);qe(i,ir(ue(t,"config.schema.json")));let r=ue(e,ja);return qe(r,ir(ue(t,"manifest.schema.json"))),[i,r]}function $a(e){let t=[];for(let i of e)if(i.storage)for(let[r,s]of Object.entries(i.storage)){let a=Wa(r,s);t.push(a)}return Ga().replace("{APP_COOKIES}",t.join("")).trim()}function Wa(e,t){let i=["<tr>"],{category:r,purpose:s,lifespan:a}=t;return i.push(`<td>${e}</td>`),i.push(`<td>${r}</td>`),i.push(`<td>${s}</td>`),i.push(`<td>${a}</td>`),i.push("</tr>"),i.join("")}function Ga(){return`
2
+ import { createRequire as c__createRequire } from 'node:module';
3
+ const require = c__createRequire(import.meta.url);
4
+ import{a as h,c as S,e as j,f as I}from"./chunk-ZA7TUVVE.js";import{d as y,e as P,h as g}from"./chunk-W4A6SKDC.js";import{existsSync as ce,mkdirSync as le,readFileSync as H,writeFileSync as x}from"node:fs";import{relative as ue,resolve as w}from"node:path";var L=h.enum(["necessary","functional","analytics","marketing"]),G=h.object({purpose:h.string().describe("Purpose of the storing the value."),category:L.describe("Category of the storage value - necessary, functional, analytics or marketing."),lifespan:h.string().describe("Basic description of how long the value will be stored.")}),F=h.record(G.describe("Key used when writing to the storage.")),V=h.object({value:h.string().describe("The localization token default value."),description:h.string().describe("The localization token description.")}),Y=h.object({localization:h.record(V.describe("Key used when getting the localized text.")).default({}).describe("Translateable texts used in the app")}),_=h.object({common:h.object({order:h.number().optional().describe("Order of the capability in the common capabilities list."),variant:h.enum(["primary","secondary","expressive","destructive","text","primary-white","secondary-white","expressive-white","tertiary-purple"]).default("secondary").describe("Variant of the capability button.")}).optional().describe("Common capability configuration."),label:h.string().optional().describe("Label for the capability.")}),K=h.object({name:h.string().describe("URL friendly name of the app."),endpoints:h.string().array().default([]).describe("Endpoints that should be communicated with using the API gateway."),permissions:h.string().array().default([]).describe("Permissions that can be added to user roles."),resources:Y.default({}).describe("Resources used by the app."),storage:F.default({}).describe("Cookies, session storage, and local storage values that are used by the app."),capabilities:h.record(_.describe("Capability key.")).default({}).describe("Capabilities that the app has.")}).passthrough();function O(e,o){let t=K.safeParse(e);return t.success?t.data:N(t.error.format(),o?[o]:[]).join(`
5
+ `)}function N(e,o=[],t=""){e._errors?.length&&o.push(`${t} - ${e._errors.join(" + ")}`);for(let[a,i]of Object.entries(e))a==="_errors"||!i||typeof i!="object"||Array.isArray(i)||N(i,o,t?`${t}.${a}`:a);return o}function J(e){return Array.isArray(e)?e:e===void 0?[]:[e]}function T(e,o=""){let t=[];for(let a of e)for(let[i,r]of a.entries())t[i]=Math.max(t[i]||0,r.length);return e.map(a=>a.map((i,r)=>o+i[r===0?"padStart":"padEnd"](t[r])).join(" ")).join(`
6
+ `)}function p(e){return typeof e=="function"?e():e}var b=class extends Error{constructor(o,t){super(o),this.code=t,this.name="CLIError"}},Z=/\d/,$=["-","_","/","."];function X(e=""){if(!Z.test(e))return e!==e.toLowerCase()}function U(e,o){let t=o??$,a=[];if(!e||typeof e!="string")return a;let i="",r,u;for(let n of e){let s=t.includes(n);if(s===!0){a.push(i),i="",r=void 0;continue}let c=X(n);if(u===!1){if(r===!1&&c===!0){a.push(i),i=n,r=c;continue}if(r===!0&&c===!1&&i.length>1){let f=i.at(-1);a.push(i.slice(0,Math.max(0,i.length-1))),i=f+n,r=c;continue}}i+=n,r=c,u=s}return a.push(i),a}function W(e){return e?e[0].toUpperCase()+e.slice(1):""}function Q(e){return e?e[0].toLowerCase()+e.slice(1):""}function ee(e,o){return e?(Array.isArray(e)?e:U(e)).map(t=>W(o?.normalize?t.toLowerCase():t)).join(""):""}function oe(e,o){return Q(ee(e||"",o))}function te(e,o){return e?(Array.isArray(e)?e:U(e)).map(t=>t.toLowerCase()).join(o??"-"):""}function E(e){return e==null?[]:Array.isArray(e)?e:[e]}function ie(e,o,t,a){let i,r=e[o],u=~a.string.indexOf(o)?t==null||t===!0?"":String(t):typeof t=="boolean"?t:~a.boolean.indexOf(o)?t==="false"?!1:t==="true"||(e._.push((i=+t,i*0===0?i:t)),!!t):(i=+t,i*0===0?i:t);e[o]=r==null?u:Array.isArray(r)?r.concat(u):[r,u]}function ae(e=[],o={}){let t,a,i,r,u,n={_:[]},s=0,c=0,f=0,A=e.length,C=o.alias!==void 0,l=o.unknown!==void 0,d=o.default!==void 0;if(o.alias=o.alias||{},o.string=E(o.string),o.boolean=E(o.boolean),C)for(t in o.alias)for(a=o.alias[t]=E(o.alias[t]),s=0;s<a.length;s++)(o.alias[a[s]]=a.concat(t)).splice(s,1);for(s=o.boolean.length;s-- >0;)for(a=o.alias[o.boolean[s]]||[],c=a.length;c-- >0;)o.boolean.push(a[c]);for(s=o.string.length;s-- >0;)for(a=o.alias[o.string[s]]||[],c=a.length;c-- >0;)o.string.push(a[c]);if(d){for(t in o.default)if(r=typeof o.default[t],a=o.alias[t]=o.alias[t]||[],o[r]!==void 0)for(o[r].push(t),s=0;s<a.length;s++)o[r].push(a[s])}let m=l?Object.keys(o.alias):[];for(s=0;s<A;s++){if(i=e[s],i==="--"){n._=n._.concat(e.slice(++s));break}for(c=0;c<i.length&&i.charCodeAt(c)===45;c++);if(c===0)n._.push(i);else if(i.substring(c,c+3)==="no-"){if(r=i.slice(Math.max(0,c+3)),l&&!~m.indexOf(r))return o.unknown(i);n[r]=!1}else{for(f=c+1;f<i.length&&i.charCodeAt(f)!==61;f++);for(r=i.substring(c,f),u=i.slice(Math.max(0,++f))||s+1===A||(""+e[s+1]).charCodeAt(0)===45||e[++s],a=c===2?[r]:r,f=0;f<a.length;f++){if(r=a[f],l&&!~m.indexOf(r))return o.unknown("-".repeat(c)+r);ie(n,r,f+1<a.length||u,o)}}}if(d)for(t in o.default)n[t]===void 0&&(n[t]=o.default[t]);if(C)for(t in n)for(a=o.alias[t]||[];a.length>0;)n[a.shift()]=n[t];return n}function ne(e,o){let t={boolean:[],string:[],mixed:[],alias:{},default:{}},a=D(o);for(let n of a)n.type!=="positional"&&(n.type==="string"?t.string.push(n.name):n.type==="boolean"&&t.boolean.push(n.name),n.default!==void 0&&(t.default[n.name]=n.default),n.alias&&(t.alias[n.name]=n.alias));let i=ae(e,t),[...r]=i._,u=new Proxy(i,{get(n,s){return n[s]??n[oe(s)]??n[te(s)]}});for(let[,n]of a.entries())if(n.type==="positional"){let s=r.shift();if(s!==void 0)u[n.name]=s;else{if(n.default===void 0&&n.required!==!1)throw new b(`Missing required positional argument: ${n.name.toUpperCase()}`,"EARG");u[n.name]=n.default}}else if(n.required&&u[n.name]===void 0)throw new b(`Missing required argument: --${n.name}`,"EARG");return u}function D(e){let o=[];for(let[t,a]of Object.entries(e||{}))o.push({...a,name:t,alias:J(a.alias)});return o}async function R(e,o){let t=await p(e.args||{}),a=ne(o.rawArgs,t),i={rawArgs:o.rawArgs,args:a,data:o.data,cmd:e};typeof e.setup=="function"&&await e.setup(i);let r;try{let u=await p(e.subCommands);if(u&&Object.keys(u).length>0){let n=o.rawArgs.findIndex(c=>!c.startsWith("-")),s=o.rawArgs[n];if(s){if(!u[s])throw new b(`Unknown command \`${s}\``,"E_UNKNOWN_COMMAND");let c=await p(u[s]);c&&await R(c,{rawArgs:o.rawArgs.slice(n+1)})}else if(!e.run)throw new b("No command specified.","E_NO_COMMAND")}typeof e.run=="function"&&(r=await e.run(i))}finally{typeof e.cleanup=="function"&&await e.cleanup(i)}return{result:r}}async function M(e,o,t){let a=await p(e.subCommands);if(a&&Object.keys(a).length>0){let i=o.findIndex(n=>!n.startsWith("-")),r=o[i],u=await p(a[r]);if(u)return M(u,o.slice(i+1),e)}return[e,t]}async function re(e,o){try{g.log(await se(e,o)+`
7
+ `)}catch(t){g.error(t)}}async function se(e,o){let t=await p(e.meta||{}),a=D(await p(e.args||{})),i=await p(o?.meta||{}),r=`${i.name?`${i.name} `:""}`+(t.name||process.argv[1]),u=[],n=[],s=[],c=[];for(let l of a)if(l.type==="positional"){let d=l.name.toUpperCase(),m=l.required!==!1&&l.default===void 0,k=l.default?`="${l.default}"`:"";n.push(["`"+d+k+"`",l.description||"",l.valueHint?`<${l.valueHint}>`:""]),c.push(m?`<${d}>`:`[${d}]`)}else{let d=l.required===!0&&l.default===void 0,m=(l.type==="boolean"&&l.default===!0?[...(l.alias||[]).map(k=>`--no-${k}`),`--no-${l.name}`].join(", "):[...(l.alias||[]).map(k=>`-${k}`),`--${l.name}`].join(", "))+(l.type==="string"&&(l.valueHint||l.default)?`=${l.valueHint?`<${l.valueHint}>`:`"${l.default||""}"`}`:"");u.push(["`"+m+(d?" (required)":"")+"`",l.description||""]),d&&c.push(m)}if(e.subCommands){let l=[],d=await p(e.subCommands);for(let[m,k]of Object.entries(d)){let z=await p(k),B=await p(z?.meta);s.push([`\`${m}\``,B?.description||""]),l.push(m)}c.push(l.join("|"))}let f=[],A=t.version||i.version;f.push(y.gray(`${t.description} (${r+(A?` v${A}`:"")})`),"");let C=u.length>0||n.length>0;return f.push(`${y.underline(y.bold("USAGE"))} \`${r}${C?" [OPTIONS]":""} ${c.join(" ")}\``,""),n.length>0&&(f.push(y.underline(y.bold("ARGUMENTS")),""),f.push(T(n," ")),f.push("")),u.length>0&&(f.push(y.underline(y.bold("OPTIONS")),""),f.push(T(u," ")),f.push("")),s.length>0&&(f.push(y.underline(y.bold("COMMANDS")),""),f.push(T(s," ")),f.push("",`Use \`${r} <command> --help\` for more information about a command.`)),f.filter(l=>typeof l=="string").join(`
8
+ `)}async function q(e,o={}){let t=o.rawArgs||process.argv.slice(2),a=o.showUsage||re;try{if(t.includes("--help")||t.includes("-h"))await a(...await M(e,t)),process.exit(0);else if(t.length===1&&t[0]==="--version"){let i=typeof e.meta=="function"?await e.meta():await e.meta;if(!i?.version)throw new b("No version specified","E_NO_VERSION");g.log(i.version)}else await R(e,{rawArgs:t})}catch(i){let r=i instanceof b;r||g.error(i,`
9
+ `),r&&await a(...await M(e,t)),g.error(i.message),process.exit(1)}}var fe="public",he="manifests.json",de="cookie-policy.html",pe="config.schema.json",me="manifest.schema.json";function v(e){console.log(P("yellowBright","DIST ")+P("bold",ue(process.cwd(),e)))}await q({meta:{name:"compile-distribution",description:"Creates files used when building an Alliance distribution by reading alliance.apps in the CWD package.json."},async run(){let e=await j(),o=e?.alliance?.apps||[];if(!o.length)throw new Error("No alliance.apps in package.json.");let t=await I(e.alliance.apps);for(let c of t){let f=O(c,`App '${c.name}' has an invalid manifest`);typeof f=="string"&&(g.error(f),process.exit(1))}let a=S(o.map(c=>({packageName:c,appImportPath:`${c}/app`,manifestImportPath:`${c}/manifest`})));v(a);let i=w(process.cwd(),fe);ce(i)||(le(i),v(i));let r=w(i,he);x(r,JSON.stringify(t)),v(r);let u=w(i,de);x(u,ge(t)),v(u);let[n,s]=ye(i);v(n),v(s)}});function ye(e){let o=w(process.cwd(),"node_modules","@telia-ace/alliance-framework","dist"),t=w(e,pe);x(t,H(w(o,"config.schema.json")));let a=w(e,me);return x(a,H(w(o,"manifest.schema.json"))),[t,a]}function ge(e){let o=[];for(let t of e)if(t.storage)for(let[a,i]of Object.entries(t.storage)){let r=be(a,i);o.push(r)}return we().replace("{APP_COOKIES}",o.join("")).trim()}function be(e,o){let t=["<tr>"],{category:a,purpose:i,lifespan:r}=o;return t.push(`<td>${e}</td>`),t.push(`<td>${a}</td>`),t.push(`<td>${i}</td>`),t.push(`<td>${r}</td>`),t.push("</tr>"),t.join("")}function we(){return`
24
10
  <!DOCTYPE html>
25
11
  <html lang="en">
26
12
  <head>
package/dist/index.d.ts CHANGED
@@ -146,7 +146,8 @@ declare enum AllianceHeaders {
146
146
  TargetUrl = "alliance-target-url",
147
147
  TargetApp = "alliance-target-app",
148
148
  TargetWorkspace = "alliance-target-workspace",
149
- TargetOrganization = "alliance-target-organization"
149
+ TargetOrganization = "alliance-target-organization",
150
+ TargetProxy = "alliance-target-proxy"
150
151
  }
151
152
 
152
153
  declare function createIndexHtml(apps: AppImportInfo[]): string;