@telia-ace/alliance-internal-node-utilities 2.0.1 → 2.0.2-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,55 +0,0 @@
1
- import { createRequire as c__createRequire } from 'node:module';
2
- const require = c__createRequire(import.meta.url);
3
- import{a as kr,b as Ne,c as Ni,h as re}from"./chunk-W4A6SKDC.js";var Oi=Ne((Sr,Ar)=>{"use strict";(function(e,t,r){typeof Sr=="object"?(Ar.exports=r(),Ar.exports.default=r()):typeof define=="function"&&define.amd?define(r):t[e]=r()})("slugify",Sr,function(){var e=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),t=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function r(i,s){if(typeof i!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var n=t[s.locale]||{},a=s.replacement===void 0?"-":s.replacement,o=s.trim===void 0?!0:s.trim,c=i.normalize().split("").reduce(function(f,l){var h=n[l];return h===void 0&&(h=e[l]),h===void 0&&(h=l),h===a&&(h=" "),f+h.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),o&&(c=c.trim()),c=c.replace(/\s+/g,a),s.lower&&(c=c.toLowerCase()),c}return r.extend=function(i){Object.assign(e,i)},r})});var en=Ne((Zf,Js)=>{"use strict";var pt=1e3,dt=pt*60,mt=dt*60,Ue=mt*24,gu=Ue*7,yu=Ue*365.25;Js.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return xu(e);if(r==="number"&&isFinite(e))return t.long?_u(e):vu(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function xu(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*yu;case"weeks":case"week":case"w":return r*gu;case"days":case"day":case"d":return r*Ue;case"hours":case"hour":case"hrs":case"hr":case"h":return r*mt;case"minutes":case"minute":case"mins":case"min":case"m":return r*dt;case"seconds":case"second":case"secs":case"sec":case"s":return r*pt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function vu(e){var t=Math.abs(e);return t>=Ue?Math.round(e/Ue)+"d":t>=mt?Math.round(e/mt)+"h":t>=dt?Math.round(e/dt)+"m":t>=pt?Math.round(e/pt)+"s":e+"ms"}function _u(e){var t=Math.abs(e);return t>=Ue?ur(e,t,Ue,"day"):t>=mt?ur(e,t,mt,"hour"):t>=dt?ur(e,t,dt,"minute"):t>=pt?ur(e,t,pt,"second"):e+" ms"}function ur(e,t,r,i){var s=t>=r*1.5;return Math.round(e/r)+" "+i+(s?"s":"")}});var ci=Ne((zf,tn)=>{"use strict";function bu(e){r.debug=r,r.default=r,r.coerce=c,r.disable=a,r.enable=s,r.enabled=o,r.humanize=en(),r.destroy=f,Object.keys(e).forEach(l=>{r[l]=e[l]}),r.names=[],r.skips=[],r.formatters={};function t(l){let h=0;for(let m=0;m<l.length;m++)h=(h<<5)-h+l.charCodeAt(m),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=t;function r(l){let h,m=null,x,F;function O(...j){if(!O.enabled)return;let W=O,Ce=Number(new Date),b=Ce-(h||Ce);W.diff=b,W.prev=h,W.curr=Ce,h=Ce,j[0]=r.coerce(j[0]),typeof j[0]!="string"&&j.unshift("%O");let L=0;j[0]=j[0].replace(/%([a-zA-Z%])/g,(M,H)=>{if(M==="%%")return"%";L++;let Gt=r.formatters[H];if(typeof Gt=="function"){let Er=j[L];M=Gt.call(W,Er),j.splice(L,1),L--}return M}),r.formatArgs.call(W,j),(W.log||r.log).apply(W,j)}return O.namespace=l,O.useColors=r.useColors(),O.color=r.selectColor(l),O.extend=i,O.destroy=r.destroy,Object.defineProperty(O,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(x!==r.namespaces&&(x=r.namespaces,F=r.enabled(l)),F),set:j=>{m=j}}),typeof r.init=="function"&&r.init(O),O}function i(l,h){let m=r(this.namespace+(typeof h>"u"?":":h)+l);return m.log=this.log,m}function s(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let h=(typeof l=="string"?l:"").trim().replace(" ",",").split(",").filter(Boolean);for(let m of h)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function n(l,h){let m=0,x=0,F=-1,O=0;for(;m<l.length;)if(x<h.length&&(h[x]===l[m]||h[x]==="*"))h[x]==="*"?(F=x,O=m,x++):(m++,x++);else if(F!==-1)x=F+1,O++,m=O;else return!1;for(;x<h.length&&h[x]==="*";)x++;return x===h.length}function a(){let l=[...r.names,...r.skips.map(h=>"-"+h)].join(",");return r.enable(""),l}function o(l){for(let h of r.skips)if(n(l,h))return!1;for(let h of r.names)if(n(l,h))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}tn.exports=bu});var rn=Ne((ie,cr)=>{"use strict";ie.formatArgs=Eu;ie.save=Cu;ie.load=ku;ie.useColors=wu;ie.storage=Su();ie.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ie.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function wu(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Eu(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+cr.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(i=r))}),e.splice(i,0,t)}ie.log=console.debug||console.log||(()=>{});function Cu(e){try{e?ie.storage.setItem("debug",e):ie.storage.removeItem("debug")}catch{}}function ku(){let e;try{e=ie.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Su(){try{return localStorage}catch{}}cr.exports=ci()(ie);var{formatters:Au}=cr.exports;Au.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var nn=Ne((qf,sn)=>{"use strict";sn.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),s=t.indexOf("--");return i!==-1&&(s===-1?!0:i<s)}});var on=Ne((Hf,an)=>{"use strict";var Tu=kr("os"),ye=nn(),K=process.env,gt;ye("no-color")||ye("no-colors")||ye("color=false")?gt=!1:(ye("color")||ye("colors")||ye("color=true")||ye("color=always"))&&(gt=!0);"FORCE_COLOR"in K&&(gt=K.FORCE_COLOR.length===0||parseInt(K.FORCE_COLOR,10)!==0);function Iu(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ru(e){if(gt===!1)return 0;if(ye("color=16m")||ye("color=full")||ye("color=truecolor"))return 3;if(ye("color=256"))return 2;if(e&&!e.isTTY&&gt!==!0)return 0;let t=gt?1:0;if(process.platform==="win32"){let r=Tu.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in K)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in K)||K.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in K){let r=parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(K.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM)||"COLORTERM"in K?1:(K.TERM==="dumb",t)}function li(e){let t=Ru(e);return Iu(t)}an.exports={supportsColor:li,stdout:li(process.stdout),stderr:li(process.stderr)}});var cn=Ne((z,fr)=>{"use strict";var Pu=kr("tty"),lr=kr("util");z.init=ju;z.log=Du;z.formatArgs=Ou;z.save=Vu;z.load=Fu;z.useColors=Nu;z.destroy=lr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");z.colors=[6,2,3,4,5,1];try{let e=on();e&&(e.stderr||e).level>=2&&(z.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}z.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(s,n)=>n.toUpperCase()),i=process.env[t];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[r]=i,e},{});function Nu(){return"colors"in z.inspectOpts?!!z.inspectOpts.colors:Pu.isatty(process.stderr.fd)}function Ou(e){let{namespace:t,useColors:r}=this;if(r){let i=this.color,s="\x1B[3"+(i<8?i:"8;5;"+i),n=` ${s};1m${t} \x1B[0m`;e[0]=n+e[0].split(`
4
- `).join(`
5
- `+n),e.push(s+"m+"+fr.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Lu()+t+" "+e[0]}function Lu(){return z.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Du(...e){return process.stderr.write(lr.formatWithOptions(z.inspectOpts,...e)+`
6
- `)}function Vu(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Fu(){return process.env.DEBUG}function ju(e){e.inspectOpts={};let t=Object.keys(z.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=z.inspectOpts[t[r]]}fr.exports=ci()(z);var{formatters:un}=fr.exports;un.o=function(e){return this.inspectOpts.colors=this.useColors,lr.inspect(e,this.inspectOpts).split(`
7
- `).map(t=>t.trim()).join(" ")};un.O=function(e){return this.inspectOpts.colors=this.useColors,lr.inspect(e,this.inspectOpts)}});var ln=Ne((Kf,fi)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?fi.exports=rn():fi.exports=cn()});var Li=Ni(Oi(),1);function Di(e,t="-"){return(0,Li.default)(e,{strict:!0,replacement:t,lower:!0})}import{existsSync as Yn,rmSync as Xn,writeFileSync as Qn}from"node:fs";import{resolve as Jn}from"node:path";function Ul(e){let t=Jn(process.cwd(),"index.html");Yn(t)&&Xn(t,{force:!0});let r=ra(e);return Qn(t,r),t}function ea(e){return e.reduce((t,{appImport:r,manifestImport:i},s)=>{let n=r+`
8
- `+i;return s===0?n:t+`
9
- `+n},"")}function ta(e){return"const apps = ["+e.reduce((r,{appVariableName:i,manifestVariableName:s})=>{let n=`{ app: ${i}, manifest: ${s} },`;return r+`
10
- `+n},"")+`
11
- ];`}function ra(e){let t=e.map(({packageName:s,appImportPath:n,manifestImportPath:a})=>{let o=Di(s,""),c=`${o}App`,f=`${o}Manifest`;return{packageName:s,appVariableName:c,manifestVariableName:f,appImport:`import ${c} from '${Vi(n)}';`,manifestImport:`import ${f} from '${Vi(a)}';`}}),r=ea(t),i=ta(t);return ia.replaceAll("$imports;",r).replaceAll("$apps;",i)}var ia=`
12
- <!doctype html>
13
- <html lang="en">
14
- <head>
15
- <meta charset="UTF-8" />
16
- <link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGcElEQVRYha2Xe4xUVx3HP7/fPTOzDLO7sw8RlzWlZEtp2dCy0qIVWltKU/UPDZH6ijXWEK2odPcPa2qbhpi2kSa7blSStsFUjNq0lWCMaVMx8rAm22IJMJRHCqFC6BJ22eEx+5p7z88/7sywC7uwgCe5mXsz5/y+j/M753eOcJ2tK5sDyBrME2gBmkBq43/tnMERgXdAjrbn518yXq4RNA3cB/J54HNiMhfEicm4oAYghmHexN4Dew5k01giUybQlc1h0CbI9zC+Imi9mCAIYhoHsnI4KcNjYoDhxWPxsxFY1Z5vHQVwVwSu3Qdid4E8rSb3i6mqKYwBjpWX1V/QZBiYYWIIiifCw8Mm/vS7L/W237FqJno58M5srgmxP4npjsAHDwTeaeAdagGBdwQWoBYgFqCmqGlMqvTE3+U+ipbeE+ngB42Lde6kDnRmcwisAHlBfdBYCYxStp3y7xjTJ51RA0XxgGCkasQFSfkW8NQlBDqzORVYK6ZPqAU6ThUyqd0TN7mQDRZ/CULzvVVeRO68xIGubE6BbjH9oVqA+thaQccpvjLwRDTit2RG/fxVGR3sLc4ELuRAV90+gJ/G4K4EHpRs1wr7qwW/uH36uaxPzwz0xNZhHUfAzJZgsjZWrqXEiTP9WlRP1Bb+pCacs2KaCwvmD/5+cLhCoCubU0G61QJXyWYkVv9/Av/UEzVh2+PVDmDPr875ob4oD6UcMLhfTdqU8dket+sDD6rwS7vrfMs30i4qRhzfMhwe3FhwQG+FgMDKytIyKe1o1zffZlB3swvve7mehgVJZ95zatdouG31gHpvoHYUwHVmc4AsqoCXYK9HtzhYsDoTLnqyRl1a1QxOvjMavrmyT4sFr6hhsA/AZUbqKKTy9ZfCXhuFpntS4WfWZWloTcTTa8bh14fCrY/2a3E4UlOLt2jYCeCGE+cBBuPhdk2gZjDjjmS46KkampelnEhMPhwy3/PkGb/vhXPO4zGJ60KyTo5nPpk8wg5wPz57M13Z3PuGzRtTxEovV3BBoXlZKrytvZqmpSknKhVCJ3tGwu2rBxjYHzrEymUZw9Py0LQtD6yb7aG8CoR/mNgKs1LHEomJ4M2M9McDf9PX0n7eI9OpbXEVxQCFE5F/d+0Zf+iPgy7e/GPDjVj9rGXJcO7D6b+yLu7vABavrd10/O8jz5/cFqXNFBGr1HYzQ0SoviEIm5dXceOXpvGJpSkNEjJuGy+ciPzu7nN+/4aCRkM2vsaUrM/coH7ed9Ond3WffbPyF8CxQ/1Y5F8b/C9fHthlFPvFB05JNzqtvSnBxxYmmN4UVCwe60b/7mK4d/15Dr82qH50fHkva/fiSc00v/SlGr97fX79ytdb1owjAHDwX71tVbWuJ9OQdMl0gmTKESQUVWGsxQDD/ZE/snnIH/xdgVP/KU5yqCnBi2f6bPF3b6jxe17Mhx9sKizsyLceKPeqDP7bF/rfa2xLvHrLN6sfmr08o0GDqAaCIYRD3g/sD/1Hb49w7K1hev89otEoTi6To+V5n3l3Mryru1r3vpjn8KbCZjU5MLbfuBCd2VyzIHsTgauZ3pAkkXIanScc6Tf1RfRiJyYHN4Iq/O2PZ/zc71Rpz89P+30bz4QmdltHvvXQpARKJB5R0w0XSvL4cjwV+FnLU+HiZ2tUpxtbf9Tnj20vOJPo2fZ8688u7n3pmdB42Yt/xUuESVQ+yVJexZNtVmbQ2JYIH9zcGC5/pd71Hxjxm5f1cnzboDPx7xs8M9G4CSV1ZnOZICE7GNXbKweTMU7EA6USoemeVLhgTYame1Nu4MBI2PN0ng+3DDovIZFG5w37bEe+dc+UCQC8/ZtjzX07i/88saU4J8yLXiAhaCC+fn7Sz/7iNFq+mqZ6TuD6do+Gu7vPcuQvBRf62LlIQ2/Y1zvyra9OhnPZSf1g58k5I6ftDSnqnNFTaOACqmclfP0tSa3KBjrc5/2Hbwz7Q38ocHLniDM8XjxeIrxG3rA16vXXj529dVKMK2bVL2fkmhrmJ/9cPy91Z2ZGwhMqQx95TudC8gdCZx4obbMVAhqNGvaoCr99bKD1svGntK4647vg84J8X021PBXlK5gJGJWr11GDb3fkW7dPJfaUi3539iARxSUCz4AsERMVpHwDxMTyhq0HftGRbz071bhXfeooXVJvBR4EbgSGgR6Bt9qvArjc/gfZzPoCTDB+AgAAAABJRU5ErkJggg=="/>
17
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
18
- <title>Alliance Portal</title>
19
- </head>
20
-
21
- <body>
22
- <script type="module">
23
- import createFramework from '@telia-ace/alliance-framework/create-framework';
24
- import '@telia-ace/alliance-ui/components';
25
- import { addCssVariables } from '@telia-ace/alliance-ui/voca/foundations';
26
-
27
- $imports;
28
-
29
- addCssVariables();
30
-
31
- $apps;
32
-
33
- createFramework(apps);
34
- </script>
35
- </body>
36
- </html>
37
- `.trim();function Vi(e){return e.replaceAll("\\","\\\\")}import{statSync as su,promises as nu}from"node:fs";var sa=/^[A-Za-z]:\//;function Fi(e=""){return e&&e.replace(/\\/g,"/").replace(sa,t=>t.toUpperCase())}var na=/^[/\\]{2}/,aa=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,oa=/^[A-Za-z]:$/;var Tr=function(e){if(e.length===0)return".";e=Fi(e);let t=e.match(na),r=ke(e),i=e[e.length-1]==="/";return e=Rr(e,!r),e.length===0?r?"/":i?"./":".":(i&&(e+="/"),oa.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!ke(e)?`/${e}`:e)},zt=function(...e){if(e.length===0)return".";let t;for(let r of e)r&&r.length>0&&(t===void 0?t=r:t+=`/${r}`);return t===void 0?".":Tr(t.replace(/\/\/+/g,"/"))};function ua(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}var Ir=function(...e){e=e.map(i=>Fi(i));let t="",r=!1;for(let i=e.length-1;i>=-1&&!r;i--){let s=i>=0?e[i]:ua();!s||s.length===0||(t=`${s}/${t}`,r=ke(s))}return t=Rr(t,!r),r&&!ke(t)?`/${t}`:t.length>0?t:"."};function Rr(e,t){let r="",i=0,s=-1,n=0,a=null;for(let o=0;o<=e.length;++o){if(o<e.length)a=e[o];else{if(a==="/")break;a="/"}if(a==="/"){if(!(s===o-1||n===1))if(n===2){if(r.length<2||i!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){let c=r.lastIndexOf("/");c===-1?(r="",i=0):(r=r.slice(0,c),i=r.length-1-r.lastIndexOf("/")),s=o,n=0;continue}else if(r.length>0){r="",i=0,s=o,n=0;continue}}t&&(r+=r.length>0?"/..":"..",i=2)}else r.length>0?r+=`/${e.slice(s+1,o)}`:r=e.slice(s+1,o),i=o-s-1;s=o,n=0}else a==="."&&n!==-1?++n:n=-1}return r}var ke=function(e){return aa.test(e)};var fa=[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],Wi=[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],ha="\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",Gi="\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",Pr={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"},Nr="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",pa={5:Nr,"5module":Nr+" export import",6:Nr+" const class extends export import super"},da=/^in(stanceof)?$/,ma=new RegExp("["+Gi+"]"),ga=new RegExp("["+Gi+ha+"]");function Lr(e,t){for(var r=65536,i=0;i<t.length;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function Se(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&ma.test(String.fromCharCode(e)):t===!1?!1:Lr(e,Wi)}function at(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&&ga.test(String.fromCharCode(e)):t===!1?!1:Lr(e,Wi)||Lr(e,fa)}var P=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function ae(e,t){return new P(e,{beforeExpr:!0,binop:t})}var oe={beforeExpr:!0},ee={startsExpr:!0},jr={};function I(e,t){return t===void 0&&(t={}),t.keyword=e,jr[e]=new P(e,t)}var u={num:new P("num",ee),regexp:new P("regexp",ee),string:new P("string",ee),name:new P("name",ee),privateId:new P("privateId",ee),eof:new P("eof"),bracketL:new P("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new P("]"),braceL:new P("{",{beforeExpr:!0,startsExpr:!0}),braceR:new P("}"),parenL:new P("(",{beforeExpr:!0,startsExpr:!0}),parenR:new P(")"),comma:new P(",",oe),semi:new P(";",oe),colon:new P(":",oe),dot:new P("."),question:new P("?",oe),questionDot:new P("?."),arrow:new P("=>",oe),template:new P("template"),invalidTemplate:new P("invalidTemplate"),ellipsis:new P("...",oe),backQuote:new P("`",ee),dollarBraceL:new P("${",{beforeExpr:!0,startsExpr:!0}),eq:new P("=",{beforeExpr:!0,isAssign:!0}),assign:new P("_=",{beforeExpr:!0,isAssign:!0}),incDec:new P("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new P("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ae("||",1),logicalAND:ae("&&",2),bitwiseOR:ae("|",3),bitwiseXOR:ae("^",4),bitwiseAND:ae("&",5),equality:ae("==/!=/===/!==",6),relational:ae("</>/<=/>=",7),bitShift:ae("<</>>/>>>",8),plusMin:new P("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ae("%",10),star:ae("*",10),slash:ae("/",10),starstar:new P("**",{beforeExpr:!0}),coalesce:ae("??",1),_break:I("break"),_case:I("case",oe),_catch:I("catch"),_continue:I("continue"),_debugger:I("debugger"),_default:I("default",oe),_do:I("do",{isLoop:!0,beforeExpr:!0}),_else:I("else",oe),_finally:I("finally"),_for:I("for",{isLoop:!0}),_function:I("function",ee),_if:I("if"),_return:I("return",oe),_switch:I("switch"),_throw:I("throw",oe),_try:I("try"),_var:I("var"),_const:I("const"),_while:I("while",{isLoop:!0}),_with:I("with"),_new:I("new",{beforeExpr:!0,startsExpr:!0}),_this:I("this",ee),_super:I("super",ee),_class:I("class",ee),_extends:I("extends",oe),_export:I("export"),_import:I("import",ee),_null:I("null",ee),_true:I("true",ee),_false:I("false",ee),_in:I("in",{beforeExpr:!0,binop:7}),_instanceof:I("instanceof",{beforeExpr:!0,binop:7}),_typeof:I("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:I("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:I("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},le=/\r\n?|\n|\u2028|\u2029/,ya=new RegExp(le.source,"g");function ot(e){return e===10||e===13||e===8232||e===8233}function Zi(e,t,r){r===void 0&&(r=e.length);for(var i=t;i<r;i++){var s=e.charCodeAt(i);if(ot(s))return i<r-1&&s===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}var zi=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ue=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,qi=Object.prototype,xa=qi.hasOwnProperty,va=qi.toString,It=Object.hasOwn||function(e,t){return xa.call(e,t)},ji=Array.isArray||function(e){return va.call(e)==="[object Array]"},$i=Object.create(null);function Oe(e){return $i[e]||($i[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Le(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var _a=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,At=function(t,r){this.line=t,this.column=r};At.prototype.offset=function(t){return new At(this.line,this.column+t)};var Qt=function(t,r,i){this.start=r,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function Hi(e,t){for(var r=1,i=0;;){var s=Zi(e,i,t);if(s<0)return new At(r,t-i);++r,i=s}}var Dr={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},Mi=!1;function ba(e){var t={};for(var r in Dr)t[r]=e&&It(e,r)?e[r]:Dr[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Mi&&typeof console=="object"&&console.warn&&(Mi=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
38
- 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),ji(t.onToken)){var i=t.onToken;t.onToken=function(s){return i.push(s)}}return ji(t.onComment)&&(t.onComment=wa(t,t.onComment)),t}function wa(e,t){return function(r,i,s,n,a,o){var c={type:r?"Block":"Line",value:i,start:s,end:n};e.locations&&(c.loc=new Qt(this,a,o)),e.ranges&&(c.range=[s,n]),t.push(c)}}var Tt=1,ut=2,$r=4,Ki=8,Yi=16,Xi=32,Mr=64,Qi=128,Rt=256,Br=Tt|ut|Rt;function Ur(e,t){return ut|(e?$r:0)|(t?Ki:0)}var Ht=0,Wr=1,Te=2,Ji=3,es=4,ts=5,Z=function(t,r,i){this.options=t=ba(t),this.sourceFile=t.sourceFile,this.keywords=Oe(pa[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";t.allowReserved!==!0&&(s=Pr[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(s+=" await")),this.reservedWords=Oe(s);var n=(s?s+" ":"")+Pr.strict;this.reservedWordsStrict=Oe(n),this.reservedWordsStrictBind=Oe(n+" "+Pr.strictBind),this.input=String(r),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
39
- `,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(le).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=u.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(Tt),this.regexpState=null,this.privateNameStack=[]},ve={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}};Z.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};ve.inFunction.get=function(){return(this.currentVarScope().flags&ut)>0};ve.inGenerator.get=function(){return(this.currentVarScope().flags&Ki)>0&&!this.currentVarScope().inClassFieldInit};ve.inAsync.get=function(){return(this.currentVarScope().flags&$r)>0&&!this.currentVarScope().inClassFieldInit};ve.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Rt)return!1;if(t.flags&ut)return(t.flags&$r)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};ve.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&Mr)>0||r||this.options.allowSuperOutsideMethod};ve.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Qi)>0};ve.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};ve.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&(ut|Rt))>0||r};ve.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Rt)>0};Z.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var i=this,s=0;s<t.length;s++)i=t[s](i);return i};Z.parse=function(t,r){return new this(r,t).parse()};Z.parseExpressionAt=function(t,r,i){var s=new this(i,t,r);return s.nextToken(),s.parseExpression()};Z.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(Z.prototype,ve);var X=Z.prototype,Ea=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;X.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){ue.lastIndex=e,e+=ue.exec(this.input)[0].length;var t=Ea.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){ue.lastIndex=e+t[0].length;var r=ue.exec(this.input),i=r.index+r[0].length,s=this.input.charAt(i);return s===";"||s==="}"||le.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,ue.lastIndex=e,e+=ue.exec(this.input)[0].length,this.input[e]===";"&&e++}};X.eat=function(e){return this.type===e?(this.next(),!0):!1};X.isContextual=function(e){return this.type===u.name&&this.value===e&&!this.containsEsc};X.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};X.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};X.canInsertSemicolon=function(){return this.type===u.eof||this.type===u.braceR||le.test(this.input.slice(this.lastTokEnd,this.start))};X.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};X.semicolon=function(){!this.eat(u.semi)&&!this.insertSemicolon()&&this.unexpected()};X.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};X.expect=function(e){this.eat(e)||this.unexpected()};X.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Jt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};X.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};X.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,i=e.doubleProto;if(!t)return r>=0||i>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};X.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")};X.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var v=Z.prototype;v.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==u.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var i=0,s=Object.keys(this.undefinedExports);i<s.length;i+=1){var n=s[i];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Gr={kind:"loop"},Ca={kind:"switch"};v.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ue.lastIndex=this.pos;var t=ue.exec(this.input),r=this.pos+t[0].length,i=this.input.charCodeAt(r);if(i===91||i===92)return!0;if(e)return!1;if(i===123||i>55295&&i<56320)return!0;if(Se(i,!0)){for(var s=r+1;at(i=this.input.charCodeAt(s),!0);)++s;if(i===92||i>55295&&i<56320)return!0;var n=this.input.slice(r,s);if(!da.test(n))return!0}return!1};v.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ue.lastIndex=this.pos;var e=ue.exec(this.input),t=this.pos+e[0].length,r;return!le.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(at(r=this.input.charCodeAt(t+8))||r>55295&&r<56320))};v.parseStatement=function(e,t,r){var i=this.type,s=this.startNode(),n;switch(this.isLet(e)&&(i=u._var,n="let"),i){case u._break:case u._continue:return this.parseBreakContinueStatement(s,i.keyword);case u._debugger:return this.parseDebuggerStatement(s);case u._do:return this.parseDoStatement(s);case u._for:return this.parseForStatement(s);case u._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case u._class:return e&&this.unexpected(),this.parseClass(s,!0);case u._if:return this.parseIfStatement(s);case u._return:return this.parseReturnStatement(s);case u._switch:return this.parseSwitchStatement(s);case u._throw:return this.parseThrowStatement(s);case u._try:return this.parseTryStatement(s);case u._const:case u._var:return n=n||this.value,e&&n!=="var"&&this.unexpected(),this.parseVarStatement(s,n);case u._while:return this.parseWhileStatement(s);case u._with:return this.parseWithStatement(s);case u.braceL:return this.parseBlock(!0,s);case u.semi:return this.parseEmptyStatement(s);case u._export:case u._import:if(this.options.ecmaVersion>10&&i===u._import){ue.lastIndex=this.pos;var a=ue.exec(this.input),o=this.pos+a[0].length,c=this.input.charCodeAt(o);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'")),i===u._import?this.parseImport(s):this.parseExport(s,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var f=this.value,l=this.parseExpression();return i===u.name&&l.type==="Identifier"&&this.eat(u.colon)?this.parseLabeledStatement(s,f,l,e):this.parseExpressionStatement(s,l)}};v.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(u.semi)||this.insertSemicolon()?e.label=null:this.type!==u.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var s=this.labels[i];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(r||s.kind==="loop")||e.label&&r))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};v.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};v.parseDoStatement=function(e){return this.next(),this.labels.push(Gr),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(u._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(u.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};v.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Gr),this.enterScope(0),this.expect(u.parenL),this.type===u.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===u._var||this.type===u._const||r){var i=this.startNode(),s=r?"let":this.value;return this.next(),this.parseVar(i,!0,s),this.finishNode(i,"VariableDeclaration"),(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,i)):(t>-1&&this.unexpected(t),this.parseFor(e,i))}var n=this.isContextual("let"),a=!1,o=this.containsEsc,c=new Jt,f=this.start,l=t>-1?this.parseExprSubscripts(c,"await"):this.parseExpression(!0,c);return this.type===u._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===u._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(l.start===f&&!o&&l.type==="Identifier"&&l.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),n&&a&&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))};v.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,St|(r?0:Vr),!1,t)};v.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(u._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};v.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(u.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};v.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(u.braceL),this.labels.push(Ca),this.enterScope(0);for(var t,r=!1;this.type!==u.braceR;)if(this.type===u._case||this.type===u._default){var i=this.type===u._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(u.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")};v.parseThrowStatement=function(e){return this.next(),le.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 ka=[];v.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Xi:0),this.checkLValPattern(e,t?es:Te),this.expect(u.parenR),e};v.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===u._catch){var t=this.startNode();this.next(),this.eat(u.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(u._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};v.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};v.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Gr),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};v.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")};v.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};v.parseLabeledStatement=function(e,t,r,i){for(var s=0,n=this.labels;s<n.length;s+=1){var a=n[s];a.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===u._switch?"switch":null,c=this.labels.length-1;c>=0;c--){var f=this.labels[c];if(f.statementStart===e.start)f.statementStart=this.start,f.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};v.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};v.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(u.braceL),e&&this.enterScope(0);this.type!==u.braceR;){var i=this.parseStatement(null);t.body.push(i)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};v.parseFor=function(e,t){return e.init=t,this.expect(u.semi),e.test=this.type===u.semi?null:this.parseExpression(),this.expect(u.semi),e.update=this.type===u.parenR?null:this.parseExpression(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};v.parseForIn=function(e,t){var r=this.type===u._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};v.parseVar=function(e,t,r,i){for(e.declarations=[],e.kind=r;;){var s=this.startNode();if(this.parseVarId(s,r),this.eat(u.eq)?s.init=this.parseMaybeAssign(t):!i&&r==="const"&&!(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!i&&s.id.type!=="Identifier"&&!(t&&(this.type===u._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(u.comma))break}return e};v.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Wr:Te,!1)};var St=1,Vr=2,rs=4;v.parseFunction=function(e,t,r,i,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===u.star&&t&Vr&&this.unexpected(),e.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&St&&(e.id=t&rs&&this.type!==u.name?null:this.parseIdent(),e.id&&!(t&Vr)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Wr:Te:Ji));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ur(e.async,e.generator)),t&St||(e.id=this.type===u.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,s),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&St?"FunctionDeclaration":"FunctionExpression")};v.parseFunctionParams=function(e){this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};v.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),s=this.startNode(),n=!1;for(s.body=[],this.expect(u.braceL);this.type!==u.braceR;){var a=this.parseClassElement(e.superClass!==null);a&&(s.body.push(a),a.type==="MethodDefinition"&&a.kind==="constructor"?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&a.key.type==="PrivateIdentifier"&&Sa(i,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};v.parseClassElement=function(e){if(this.eat(u.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),i="",s=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===u.star?o=!0:i="static"}if(r.static=o,!i&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===u.star)&&!this.canInsertSemicolon()?n=!0:i="async"),!i&&(t>=9||!n)&&this.eat(u.star)&&(s=!0),!i&&!n&&!s){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=c:i=c)}if(i?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=i,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===u.parenL||a!=="method"||s||n){var f=!r.static&&Kt(r,"constructor"),l=f&&e;f&&a!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=f?"constructor":a,this.parseClassMethod(r,s,n,l)}else this.parseClassField(r);return r};v.isClassElementNameStart=function(){return this.type===u.name||this.type===u.privateId||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword};v.parseClassElementName=function(e){this.type===u.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)};v.parseClassMethod=function(e,t,r,i){var s=e.key;e.kind==="constructor"?(t&&this.raise(s.start,"Constructor can't be a generator"),r&&this.raise(s.start,"Constructor can't be an async method")):e.static&&Kt(e,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,r,i);return e.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),e.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),e.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};v.parseClassField=function(e){if(Kt(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Kt(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(u.eq)){var t=this.currentThisScope(),r=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=r}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};v.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Rt|Mr);this.type!==u.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};v.parseClassId=function(e,t){this.type===u.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Te,!1)):(t===!0&&this.unexpected(),e.id=null)};v.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts(null,!1):null};v.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};v.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,s=i===0?null:this.privateNameStack[i-1],n=0;n<r.length;++n){var a=r[n];It(t,a.name)||(s?s.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}};function Sa(e,t){var r=t.key.name,i=e[r],s="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(s=(t.static?"s":"i")+t.kind),i==="iget"&&s==="iset"||i==="iset"&&s==="iget"||i==="sget"&&s==="sset"||i==="sset"&&s==="sget"?(e[r]="true",!1):i?!0:(e[r]=s,!1)}function Kt(e,t){var r=e.computed,i=e.key;return!r&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}v.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!==u.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};v.parseExport=function(e,t){if(this.next(),this.eat(u.star))return this.parseExportAllDeclaration(e,t);if(this.eat(u._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!==u.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var r=0,i=e.specifiers;r<i.length;r+=1){var s=i[r];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")};v.parseExportDeclaration=function(e){return this.parseStatement(null)};v.parseExportDefaultDeclaration=function(){var e;if(this.type===u._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,St|rs,!1,e)}else if(this.type===u._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var i=this.parseMaybeAssign();return this.semicolon(),i}};v.checkExport=function(e,t,r){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),It(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};v.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t,t.start);else if(r==="ObjectPattern")for(var i=0,s=t.properties;i<s.length;i+=1){var n=s[i];this.checkPatternExport(e,n)}else if(r==="ArrayPattern")for(var a=0,o=t.elements;a<o.length;a+=1){var c=o[a];c&&this.checkPatternExport(e,c)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"&&this.checkPatternExport(e,t.argument)};v.checkVariableExport=function(e,t){if(e)for(var r=0,i=t;r<i.length;r+=1){var s=i[r];this.checkPatternExport(e,s.id)}};v.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};v.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")};v.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(r)r=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;t.push(this.parseExportSpecifier(e))}return t};v.parseImport=function(e){return this.next(),this.type===u.string?(e.specifiers=ka,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===u.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};v.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")};v.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Te),this.finishNode(e,"ImportDefaultSpecifier")};v.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")};v.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===u.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(u.comma)))return e;if(this.type===u.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;e.push(this.parseImportSpecifier())}return e};v.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===u.string){var e=this.parseLiteral(this.value);return _a.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};v.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)};v.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 fe=Z.prototype;fe.toAssignable=function(e,t,r){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",r&&this.checkPatternErrors(r,!0);for(var i=0,s=e.properties;i<s.length;i+=1){var n=s[i];this.toAssignable(n,t),n.type==="RestElement"&&(n.argument.type==="ArrayPattern"||n.argument.type==="ObjectPattern")&&this.raise(n.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",r&&this.checkPatternErrors(r,!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,r);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 r&&this.checkPatternErrors(r,!0);return e};fe.toAssignableList=function(e,t){for(var r=e.length,i=0;i<r;i++){var s=e[i];s&&this.toAssignable(s,t)}if(r){var n=e[r-1];this.options.ecmaVersion===6&&t&&n&&n.type==="RestElement"&&n.argument.type!=="Identifier"&&this.unexpected(n.argument.start)}return e};fe.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};fe.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==u.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};fe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case u.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(u.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case u.braceL:return this.parseObj(!0)}return this.parseIdent()};fe.parseBindingList=function(e,t,r,i){for(var s=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(u.comma),t&&this.type===u.comma)s.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===u.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),s.push(a),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else s.push(this.parseAssignableListItem(i))}return s};fe.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};fe.parseBindingListItem=function(e){return e};fe.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(u.eq))return r;var i=this.startNodeAt(e,t);return i.left=r,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};fe.checkLValSimple=function(e,t,r){t===void 0&&(t=Ht);var i=t!==Ht;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(t===Te&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(It(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==ts&&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":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}};fe.checkLValPattern=function(e,t,r){switch(t===void 0&&(t=Ht),e.type){case"ObjectPattern":for(var i=0,s=e.properties;i<s.length;i+=1){var n=s[i];this.checkLValInnerPattern(n,t,r)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var c=o[a];c&&this.checkLValInnerPattern(c,t,r)}break;default:this.checkLValSimple(e,t,r)}};fe.checkLValInnerPattern=function(e,t,r){switch(t===void 0&&(t=Ht),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var ge=function(t,r,i,s,n){this.token=t,this.isExpr=!!r,this.preserveSpace=!!i,this.override=s,this.generator=!!n},$={b_stat:new ge("{",!1),b_expr:new ge("{",!0),b_tmpl:new ge("${",!1),p_stat:new ge("(",!1),p_expr:new ge("(",!0),q_tmpl:new ge("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new ge("function",!1),f_expr:new ge("function",!0),f_expr_gen:new ge("function",!0,!1,null,!0),f_gen:new ge("function",!1,!1,null,!0)},ct=Z.prototype;ct.initialContext=function(){return[$.b_stat]};ct.curContext=function(){return this.context[this.context.length-1]};ct.braceIsBlock=function(e){var t=this.curContext();return t===$.f_expr||t===$.f_stat?!0:e===u.colon&&(t===$.b_stat||t===$.b_expr)?!t.isExpr:e===u._return||e===u.name&&this.exprAllowed?le.test(this.input.slice(this.lastTokEnd,this.start)):e===u._else||e===u.semi||e===u.eof||e===u.parenR||e===u.arrow?!0:e===u.braceL?t===$.b_stat:e===u._var||e===u._const||e===u.name?!1:!this.exprAllowed};ct.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};ct.updateContext=function(e){var t,r=this.type;r.keyword&&e===u.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};ct.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};u.parenR.updateContext=u.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===$.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};u.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?$.b_stat:$.b_expr),this.exprAllowed=!0};u.dollarBraceL.updateContext=function(){this.context.push($.b_tmpl),this.exprAllowed=!0};u.parenL.updateContext=function(e){var t=e===u._if||e===u._for||e===u._with||e===u._while;this.context.push(t?$.p_stat:$.p_expr),this.exprAllowed=!0};u.incDec.updateContext=function(){};u._function.updateContext=u._class.updateContext=function(e){e.beforeExpr&&e!==u._else&&!(e===u.semi&&this.curContext()!==$.p_stat)&&!(e===u._return&&le.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===u.colon||e===u.braceL)&&this.curContext()===$.b_stat)?this.context.push($.f_expr):this.context.push($.f_stat),this.exprAllowed=!1};u.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};u.backQuote.updateContext=function(){this.curContext()===$.q_tmpl?this.context.pop():this.context.push($.q_tmpl),this.exprAllowed=!1};u.star.updateContext=function(e){if(e===u._function){var t=this.context.length-1;this.context[t]===$.f_expr?this.context[t]=$.f_expr_gen:this.context[t]=$.f_gen}this.exprAllowed=!0};u.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==u.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var C=Z.prototype;C.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i=e.key,s;switch(i.type){case"Identifier":s=i.name;break;case"Literal":s=String(i.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6){s==="__proto__"&&n==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}s="$"+s;var a=t[s];if(a){var o;n==="init"?o=this.strict&&a.init||a.get||a.set:o=a.init||a[n],o&&this.raiseRecoverable(i.start,"Redefinition of property")}else a=t[s]={init:!1,get:!1,set:!1};a[n]=!0}};C.parseExpression=function(e,t){var r=this.start,i=this.startLoc,s=this.parseMaybeAssign(e,t);if(this.type===u.comma){var n=this.startNodeAt(r,i);for(n.expressions=[s];this.eat(u.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return s};C.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,s=-1,n=-1,a=-1;t?(s=t.parenthesizedAssign,n=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Jt,i=!0);var o=this.start,c=this.startLoc;(this.type===u.parenL||this.type===u.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var f=this.parseMaybeConditional(e,t);if(r&&(f=r.call(this,f,o,c)),this.type.isAssign){var l=this.startNodeAt(o,c);return l.operator=this.value,this.type===u.eq&&(f=this.toAssignable(f,!1,t)),i||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=f.start&&(t.shorthandAssign=-1),this.type===u.eq?this.checkLValPattern(f):this.checkLValSimple(f),l.left=f,this.next(),l.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(l,"AssignmentExpression")}else i&&this.checkExpressionErrors(t,!0);return s>-1&&(t.parenthesizedAssign=s),n>-1&&(t.trailingComma=n),f};C.parseMaybeConditional=function(e,t){var r=this.start,i=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(this.eat(u.question)){var n=this.startNodeAt(r,i);return n.test=s,n.consequent=this.parseMaybeAssign(),this.expect(u.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return s};C.parseExprOps=function(e,t){var r=this.start,i=this.startLoc,s=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||s.start===r&&s.type==="ArrowFunctionExpression"?s:this.parseExprOp(s,r,i,-1,e)};C.parseExprOp=function(e,t,r,i,s){var n=this.type.binop;if(n!=null&&(!s||this.type!==u._in)&&n>i){var a=this.type===u.logicalOR||this.type===u.logicalAND,o=this.type===u.coalesce;o&&(n=u.logicalAND.binop);var c=this.value;this.next();var f=this.start,l=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),f,l,n,s),m=this.buildBinary(t,r,e,h,c,a||o);return(a&&this.type===u.coalesce||o&&(this.type===u.logicalOR||this.type===u.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(m,t,r,i,s)}return e};C.buildBinary=function(e,t,r,i,s,n){i.type==="PrivateIdentifier"&&this.raise(i.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=r,a.operator=s,a.right=i,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")};C.parseMaybeUnary=function(e,t,r,i){var s=this.start,n=this.startLoc,a;if(this.isContextual("await")&&this.canAwait)a=this.parseAwait(i),t=!0;else if(this.type.prefix){var o=this.startNode(),c=this.type===u.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,c,i),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(o.argument):this.strict&&o.operator==="delete"&&is(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):o.operator==="delete"&&Fr(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,a=this.finishNode(o,c?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===u.privateId)(i||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),a=this.parsePrivateIdent(),this.type!==u._in&&this.unexpected();else{if(a=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return a;for(;this.type.postfix&&!this.canInsertSemicolon();){var f=this.startNodeAt(s,n);f.operator=this.value,f.prefix=!1,f.argument=a,this.checkLValSimple(a),this.next(),a=this.finishNode(f,"UpdateExpression")}}if(!r&&this.eat(u.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(s,n,a,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return a};function is(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&is(e.expression)}function Fr(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Fr(e.expression)||e.type==="ParenthesizedExpression"&&Fr(e.expression)}C.parseExprSubscripts=function(e,t){var r=this.start,i=this.startLoc,s=this.parseExprAtom(e,t);if(s.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return s;var n=this.parseSubscripts(s,r,i,!1,t);return e&&n.type==="MemberExpression"&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n};C.parseSubscripts=function(e,t,r,i,s){for(var n=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,a=!1;;){var o=this.parseSubscript(e,t,r,i,n,a,s);if(o.optional&&(a=!0),o===e||o.type==="ArrowFunctionExpression"){if(a){var c=this.startNodeAt(t,r);c.expression=o,o=this.finishNode(c,"ChainExpression")}return o}e=o}};C.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(u.arrow)};C.parseSubscriptAsyncArrow=function(e,t,r,i){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,i)};C.parseSubscript=function(e,t,r,i,s,n,a){var o=this.options.ecmaVersion>=11,c=o&&this.eat(u.questionDot);i&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var f=this.eat(u.bracketL);if(f||c&&this.type!==u.parenL&&this.type!==u.backQuote||this.eat(u.dot)){var l=this.startNodeAt(t,r);l.object=e,f?(l.property=this.parseExpression(),this.expect(u.bracketR)):this.type===u.privateId&&e.type!=="Super"?l.property=this.parsePrivateIdent():l.property=this.parseIdent(this.options.allowReserved!=="never"),l.computed=!!f,o&&(l.optional=c),e=this.finishNode(l,"MemberExpression")}else if(!i&&this.eat(u.parenL)){var h=new Jt,m=this.yieldPos,x=this.awaitPos,F=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var O=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1,h);if(s&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=m,this.awaitPos=x,this.awaitIdentPos=F,this.parseSubscriptAsyncArrow(t,r,O,a);this.checkExpressionErrors(h,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=x||this.awaitPos,this.awaitIdentPos=F||this.awaitIdentPos;var j=this.startNodeAt(t,r);j.callee=e,j.arguments=O,o&&(j.optional=c),e=this.finishNode(j,"CallExpression")}else if(this.type===u.backQuote){(c||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var W=this.startNodeAt(t,r);W.tag=e,W.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(W,"TaggedTemplateExpression")}return e};C.parseExprAtom=function(e,t,r){this.type===u.slash&&this.readRegexp();var i,s=this.potentialArrowAt===this.start;switch(this.type){case u._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===u.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==u.dot&&this.type!==u.bracketL&&this.type!==u.parenL&&this.unexpected(),this.finishNode(i,"Super");case u._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case u.name:var n=this.start,a=this.startLoc,o=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&c.name==="async"&&!this.canInsertSemicolon()&&this.eat(u._function))return this.overrideContext($.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,t);if(s&&!this.canInsertSemicolon()){if(this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name==="async"&&this.type===u.name&&!o&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(u.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[c],!0,t)}return c;case u.regexp:var f=this.value;return i=this.parseLiteral(f.value),i.regex={pattern:f.pattern,flags:f.flags},i;case u.num:case u.string:return this.parseLiteral(this.value);case u._null:case u._true:case u._false:return i=this.startNode(),i.value=this.type===u._null?null:this.type===u._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case u.parenL:var l=this.start,h=this.parseParenAndDistinguishExpression(s,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),h;case u.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(u.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case u.braceL:return this.overrideContext($.b_expr),this.parseObj(!1,e);case u._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case u._class:return this.parseClass(this.startNode(),!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};C.parseExprAtomDefault=function(){this.unexpected()};C.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===u.parenL&&!e)return this.parseDynamicImport(t);if(this.type===u.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};C.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(u.parenR)){var t=this.start;this.eat(u.comma)&&this.eat(u.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};C.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};C.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};C.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e};C.shouldParseArrow=function(e){return!this.canInsertSemicolon()};C.parseParenAndDistinguishExpression=function(e,t){var r=this.start,i=this.startLoc,s,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,o=this.startLoc,c=[],f=!0,l=!1,h=new Jt,m=this.yieldPos,x=this.awaitPos,F;for(this.yieldPos=0,this.awaitPos=0;this.type!==u.parenR;)if(f?f=!1:this.expect(u.comma),n&&this.afterTrailingComma(u.parenR,!0)){l=!0;break}else if(this.type===u.ellipsis){F=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else c.push(this.parseMaybeAssign(!1,h,this.parseParenItem));var O=this.lastTokEnd,j=this.lastTokEndLoc;if(this.expect(u.parenR),e&&this.shouldParseArrow(c)&&this.eat(u.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=m,this.awaitPos=x,this.parseParenArrowList(r,i,c,t);(!c.length||l)&&this.unexpected(this.lastTokStart),F&&this.unexpected(F),this.checkExpressionErrors(h,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=x||this.awaitPos,c.length>1?(s=this.startNodeAt(a,o),s.expressions=c,this.finishNodeAt(s,"SequenceExpression",O,j)):s=c[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var W=this.startNodeAt(r,i);return W.expression=s,this.finishNode(W,"ParenthesizedExpression")}else return s};C.parseParenItem=function(e){return e};C.parseParenArrowList=function(e,t,r,i){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,i)};var Aa=[];C.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===u.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=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'"),r&&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 i=this.start,s=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,s,!0,!1),this.eat(u.parenL)?e.arguments=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Aa,this.finishNode(e,"NewExpression")};C.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===u.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,`
40
- `),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
41
- `),cooked:this.value},this.next(),r.tail=this.type===u.backQuote,this.finishNode(r,"TemplateElement")};C.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(r.quasis=[i];!i.tail;)this.type===u.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(u.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(u.braceR),r.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};C.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===u.name||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===u.star)&&!le.test(this.input.slice(this.lastTokEnd,this.start))};C.parseObj=function(e,t){var r=this.startNode(),i=!0,s={};for(r.properties=[],this.next();!this.eat(u.braceR);){if(i)i=!1;else if(this.expect(u.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(u.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,s,t),r.properties.push(n)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};C.parseProperty=function(e,t){var r=this.startNode(),i,s,n,a;if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===u.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(n=this.start,a=this.startLoc),e||(i=this.eat(u.star)));var o=this.containsEsc;return this.parsePropertyName(r),!e&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(r)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(r)):s=!1,this.parsePropertyValue(r,e,i,s,n,a,t,o),this.finishNode(r,"Property")};C.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 r=e.value.start;e.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};C.parsePropertyValue=function(e,t,r,i,s,n,a,o){(r||i)&&this.type===u.colon&&this.unexpected(),this.eat(u.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===u.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,i)):!t&&!o&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==u.comma&&this.type!==u.braceR&&this.type!==u.eq?((r||i)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,n,this.copyNode(e.key)):this.type===u.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};C.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(u.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR),e.key;e.computed=!1}return e.key=this.type===u.num||this.type===u.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};C.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};C.parseMethod=function(e,t,r){var i=this.startNode(),s=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ur(t,i.generator)|Mr|(r?Qi:0)),this.expect(u.parenL),i.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=s,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(i,"FunctionExpression")};C.parseArrowExpression=function(e,t,r,i){var s=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(Ur(r,!1)|Yi),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=s,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")};C.parseFunctionBody=function(e,t,r,i){var s=t&&this.type!==u.braceL,n=this.strict,a=!1;if(s)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||o)&&(a=this.strictDirective(this.end),a&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var c=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!n&&!a&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,ts),e.body=this.parseBlock(!1,void 0,a&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()};C.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var i=r[t];if(i.type!=="Identifier")return!1}return!0};C.checkParams=function(e,t){for(var r=Object.create(null),i=0,s=e.params;i<s.length;i+=1){var n=s[i];this.checkLValInnerPattern(n,Wr,t?null:r)}};C.parseExprList=function(e,t,r,i){for(var s=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(u.comma),t&&this.afterTrailingComma(e))break;var a=void 0;r&&this.type===u.comma?a=null:this.type===u.ellipsis?(a=this.parseSpread(i),i&&this.type===u.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):a=this.parseMaybeAssign(!1,i),s.push(a)}return s};C.checkUnreserved=function(e){var t=e.start,r=e.end,i=e.name;if(this.inGenerator&&i==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&i==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(i==="arguments"||i==="await")&&this.raise(t,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(t,"Unexpected keyword '"+i+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var s=this.strict?this.reservedWordsStrict:this.reservedWords;s.test(i)&&(!this.inAsync&&i==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+i+"' is reserved"))}};C.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};C.parseIdentNode=function(){var e=this.startNode();return this.type===u.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=u.name):this.unexpected(),e};C.parsePrivateIdent=function(){var e=this.startNode();return this.type===u.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};C.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===u.semi||this.canInsertSemicolon()||this.type!==u.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(u.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};C.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Yt=Z.prototype;Yt.raise=function(e,t){var r=Hi(this.input,e);t+=" ("+r.line+":"+r.column+")";var i=new SyntaxError(t);throw i.pos=e,i.loc=r,i.raisedAt=this.pos,i};Yt.raiseRecoverable=Yt.raise;Yt.curPosition=function(){if(this.options.locations)return new At(this.curLine,this.pos-this.lineStart)};var De=Z.prototype,Ta=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};De.enterScope=function(e){this.scopeStack.push(new Ta(e))};De.exitScope=function(){this.scopeStack.pop()};De.treatFunctionsAsVarInScope=function(e){return e.flags&ut||!this.inModule&&e.flags&Tt};De.declareName=function(e,t,r){var i=!1;if(t===Te){var s=this.currentScope();i=s.lexical.indexOf(e)>-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&s.flags&Tt&&delete this.undefinedExports[e]}else if(t===es){var n=this.currentScope();n.lexical.push(e)}else if(t===Ji){var a=this.currentScope();this.treatFunctionsAsVar?i=a.lexical.indexOf(e)>-1:i=a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var c=this.scopeStack[o];if(c.lexical.indexOf(e)>-1&&!(c.flags&Xi&&c.lexical[0]===e)||!this.treatFunctionsAsVarInScope(c)&&c.functions.indexOf(e)>-1){i=!0;break}if(c.var.push(e),this.inModule&&c.flags&Tt&&delete this.undefinedExports[e],c.flags&Br)break}i&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};De.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};De.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};De.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Br)return t}};De.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Br&&!(t.flags&Yi))return t}};var er=function(t,r,i){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new Qt(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},Pt=Z.prototype;Pt.startNode=function(){return new er(this,this.start,this.startLoc)};Pt.startNodeAt=function(e,t){return new er(this,e,t)};function ss(e,t,r,i){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=r),e}Pt.finishNode=function(e,t){return ss.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Pt.finishNodeAt=function(e,t,r,i){return ss.call(this,e,t,r,i)};Pt.copyNode=function(e){var t=new er(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var ns="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",as=ns+" Extended_Pictographic",os=as,us=os+" EBase EComp EMod EPres ExtPict",cs=us,Ia=cs,Ra={9:ns,10:as,11:os,12:us,13:cs,14:Ia},Pa="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Na={9:"",10:"",11:"",12:"",13:"",14:Pa},Bi="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",ls="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",fs=ls+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",hs=fs+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ps=hs+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ds=ps+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Oa=ds+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",La={9:ls,10:fs,11:hs,12:ps,13:ds,14:Oa},ms={};function Da(e){var t=ms[e]={binary:Oe(Ra[e]+" "+Bi),binaryOfStrings:Oe(Na[e]),nonBinary:{General_Category:Oe(Bi),Script:Oe(La[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(qt=0,Or=[9,10,11,12,13,14];qt<Or.length;qt+=1)Ui=Or[qt],Da(Ui);var Ui,qt,Or,y=Z.prototype,Xt=function(t,r){this.parent=t,this.base=r||this};Xt.prototype.separatedFrom=function(t){for(var r=this;r;r=r.parent)for(var i=t;i;i=i.parent)if(r.base===i.base&&r!==i)return!0;return!1};Xt.prototype.sibling=function(){return new Xt(this.parent,this.base)};var _e=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=ms[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};_e.prototype.reset=function(t,r,i){var s=i.indexOf("v")!==-1,n=i.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=i,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)};_e.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};_e.prototype.at=function(t,r){r===void 0&&(r=!1);var i=this.source,s=i.length;if(t>=s)return-1;var n=i.charCodeAt(t);if(!(r||this.switchU)||n<=55295||n>=57344||t+1>=s)return n;var a=i.charCodeAt(t+1);return a>=56320&&a<=57343?(n<<10)+a-56613888:n};_e.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var i=this.source,s=i.length;if(t>=s)return s;var n=i.charCodeAt(t),a;return!(r||this.switchU)||n<=55295||n>=57344||t+1>=s||(a=i.charCodeAt(t+1))<56320||a>57343?t+1:t+2};_e.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};_e.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};_e.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};_e.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};_e.prototype.eatChars=function(t,r){r===void 0&&(r=!1);for(var i=this.pos,s=0,n=t;s<n.length;s+=1){var a=n[s],o=this.at(i,r);if(o===-1||o!==a)return!1;i=this.nextIndex(i,r)}return this.pos=i,!0};y.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,i=!1,s=!1,n=0;n<r.length;n++){var a=r.charAt(n);t.indexOf(a)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(a,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),a==="u"&&(i=!0),a==="v"&&(s=!0)}this.options.ecmaVersion>=15&&i&&s&&this.raise(e.start,"Invalid regular expression flag")};function Va(e){for(var t in e)return!0;return!1}y.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Va(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};y.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,r=e.backReferenceNames;t<r.length;t+=1){var i=r[t];e.groupNames[i]||e.raise("Invalid named capture referenced")}};y.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Xt(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")};y.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};y.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};y.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 r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};y.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};y.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};y.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var i=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return s!==-1&&s<i&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1};y.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)};y.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};y.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};y.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};y.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)};y.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};y.regexp_eatSyntaxCharacter=function(e){var t=e.current();return gs(t)?(e.lastIntValue=t,e.advance(),!0):!1};function gs(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}y.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!gs(r);)e.advance();return e.pos!==t};y.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};y.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,r=e.groupNames[e.lastStringValue];if(r)if(t)for(var i=0,s=r;i<s.length;i+=1){var n=s[i];n.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(r||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};y.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};y.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Le(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Le(e.lastIntValue);return!0}return!1};y.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),Fa(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function Fa(e){return Se(e,!0)||e===36||e===95}y.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),ja(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function ja(e){return at(e,!0)||e===36||e===95||e===8204||e===8205}y.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)};y.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};y.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};y.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)};y.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};y.regexp_eatZero=function(e){return e.current()===48&&!tr(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};y.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};y.regexp_eatControlLetter=function(e){var t=e.current();return ys(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function ys(e){return e>=65&&e<=90||e>=97&&e<=122}y.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(i&&s>=55296&&s<=56319){var n=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=(s-55296)*1024+(a-56320)+65536,!0}e.pos=n,e.lastIntValue=s}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&$a(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function $a(e){return e>=0&&e<=1114111}y.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};y.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 xs=0,Ae=1,ce=2;y.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ma(t))return e.lastIntValue=-1,e.advance(),Ae;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=t===80)||t===112)){e.lastIntValue=-1,e.advance();var i;if(e.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&i===ce&&e.raise("Invalid property name"),i;e.raise("Invalid property name")}return xs};function Ma(e){return e===100||e===68||e===115||e===83||e===119||e===87}y.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,i),Ae}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s)}return xs};y.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){It(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};y.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return Ae;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return ce;e.raise("Invalid property name")};y.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";vs(t=e.current());)e.lastStringValue+=Le(t),e.advance();return e.lastStringValue!==""};function vs(e){return ys(e)||e===95}y.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Ba(t=e.current());)e.lastStringValue+=Le(t),e.advance();return e.lastStringValue!==""};function Ba(e){return vs(e)||tr(e)}y.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};y.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&r===ce&&e.raise("Negated character class may contain strings"),!0}return!1};y.regexp_classContents=function(e){return e.current()===93?Ae:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Ae)};y.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};y.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||ws(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};y.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)};y.regexp_classSetExpression=function(e){var t=Ae,r;if(!this.regexp_eatClassSetRange(e))if(r=this.regexp_eatClassSetOperand(e)){r===ce&&(t=ce);for(var i=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(r=this.regexp_eatClassSetOperand(e))){r!==ce&&(t=Ae);continue}e.raise("Invalid character in character class")}if(i!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(i!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(r=this.regexp_eatClassSetOperand(e),!r)return t;r===ce&&(t=ce)}};y.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;return r!==-1&&i!==-1&&r>i&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};y.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?Ae:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};y.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),i=this.regexp_classContents(e);if(e.eat(93))return r&&i===ce&&e.raise("Negated character class may contain strings"),i;e.pos=t}if(e.eat(92)){var s=this.regexp_eatCharacterClassEscape(e);if(s)return s;e.pos=t}return null};y.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null};y.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===ce&&(t=ce);return t};y.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?Ae:ce};y.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 r=e.current();return r<0||r===e.lookahead()&&Ua(r)||Wa(r)?!1:(e.advance(),e.lastIntValue=r,!0)};function Ua(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 Wa(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}y.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Ga(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Ga(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}y.regexp_eatClassControlLetter=function(e){var t=e.current();return tr(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};y.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};y.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;tr(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function tr(e){return e>=48&&e<=57}y.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;_s(r=e.current());)e.lastIntValue=16*e.lastIntValue+bs(r),e.advance();return e.pos!==t};function _s(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function bs(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}y.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};y.regexp_eatOctalDigit=function(e){var t=e.current();return ws(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function ws(e){return e>=48&&e<=55}y.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var s=e.current();if(!_s(s))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+bs(s),e.advance()}return!0};var Zr=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Qt(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},T=Z.prototype;T.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 Zr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};T.getToken=function(){return this.next(),new Zr(this)};typeof Symbol<"u"&&(T[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===u.eof,value:t}}}});T.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(u.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};T.readToken=function(e){return Se(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};T.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};T.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var i=void 0,s=t;(i=Zi(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};T.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ot(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};T.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&&zi.test(String.fromCharCode(e)))++this.pos;else break e}}};T.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};T.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(u.ellipsis)):(++this.pos,this.finishToken(u.dot))};T.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(u.assign,2):this.finishOp(u.slash,1)};T.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,i=e===42?u.star:u.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,i=u.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(u.assign,r+1):this.finishOp(i,r)};T.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(u.assign,3)}return this.finishOp(e===124?u.logicalOR:u.logicalAND,2)}return t===61?this.finishOp(u.assign,2):this.finishOp(e===124?u.bitwiseOR:u.bitwiseAND,1)};T.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(u.assign,2):this.finishOp(u.bitwiseXOR,1)};T.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||le.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(u.incDec,2):t===61?this.finishOp(u.assign,2):this.finishOp(u.plusMin,1)};T.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(u.assign,r+1):this.finishOp(u.bitShift,r)):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&&(r=2),this.finishOp(u.relational,r))};T.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(u.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(u.arrow)):this.finishOp(e===61?u.eq:u.prefix,1)};T.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(u.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(u.assign,3)}return this.finishOp(u.coalesce,2)}}return this.finishOp(u.question,1)};T.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Se(t,!0)||t===92))return this.finishToken(u.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Le(t)+"'")};T.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(u.parenL);case 41:return++this.pos,this.finishToken(u.parenR);case 59:return++this.pos,this.finishToken(u.semi);case 44:return++this.pos,this.finishToken(u.comma);case 91:return++this.pos,this.finishToken(u.bracketL);case 93:return++this.pos,this.finishToken(u.bracketR);case 123:return++this.pos,this.finishToken(u.braceL);case 125:return++this.pos,this.finishToken(u.braceR);case 58:return++this.pos,this.finishToken(u.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(u.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(u.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Le(e)+"'")};T.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};T.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(le.test(i)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}++this.pos}var s=this.input.slice(r,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new _e(this));o.reset(r,s,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var c=null;try{c=new RegExp(s,a)}catch{}return this.finishToken(u.regexp,{pattern:s,flags:a,value:c})};T.readInt=function(e,t,r){for(var i=this.options.ecmaVersion>=12&&t===void 0,s=r&&this.input.charCodeAt(this.pos)===48,n=this.pos,a=0,o=0,c=0,f=t??1/0;c<f;++c,++this.pos){var l=this.input.charCodeAt(this.pos),h=void 0;if(i&&l===95){s&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),o===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"),o=l;continue}if(l>=97?h=l-97+10:l>=65?h=l-65+10:l>=48&&l<=57?h=l-48:h=1/0,h>=e)break;o=l,a=a*e+h}return i&&o===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||t!=null&&this.pos-n!==t?null:a};function Za(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Es(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}T.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=Es(this.input.slice(t,this.pos)),++this.pos):Se(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,r)};T.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&i===110){var s=Es(this.input.slice(t,this.pos));return++this.pos,Se(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,s)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),i===46&&!r&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!r&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Se(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=Za(this.input.slice(t,this.pos),r);return this.finishToken(u.num,n)};T.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};T.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):i===8232||i===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ot(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(u.string,t)};var Cs={};T.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Cs)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};T.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Cs;this.raise(e,t)};T.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===u.template||this.type===u.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(u.dollarBraceL)):(++this.pos,this.finishToken(u.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(u.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ot(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
42
- `;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};T.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(u.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
43
- `&&++this.pos;case`
44
- `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};T.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
45
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Le(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 r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(i,8);return s>255&&(i=i.slice(0,-1),s=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return ot(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};T.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};T.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var s=this.fullCharCodeAtPos();if(at(s,i))this.pos+=s<=65535?1:2;else if(s===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var n=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?Se:at)(a,i)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=Le(a),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)};T.readWord=function(){var e=this.readWord1(),t=u.name;return this.keywords.test(e)&&(t=jr[e]),this.finishToken(t,e)};var za="8.12.1";Z.acorn={Parser:Z,version:za,defaultOptions:Dr,Position:At,SourceLocation:Qt,getLineInfo:Hi,Node:er,TokenType:P,tokTypes:u,keywordTypes:jr,TokContext:ge,tokContexts:$,isIdentifierChar:at,isIdentifierStart:Se,Token:Zr,isNewLine:ot,lineBreak:le,lineBreakG:ya,nonASCIIwhitespace:zi};import{builtinModules as Jr,createRequire as xf}from"node:module";import Qa,{realpathSync as Ja,statSync as ei,promises as _f}from"node:fs";var hf=String.fromCharCode;var qa=/\/$|\/\?|\/#/,Ha=/^\.?\//;function Ka(e="",t){return t?qa.test(e):e.endsWith("/")}function Ya(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ka(e,!0))return e||"/";let r=e,i="",s=e.indexOf("#");if(s>=0&&(r=e.slice(0,s),i=e.slice(s),!r))return i;let[n,...a]=r.split("?");return n+"/"+(a.length>0?`?${a.join("?")}`:"")+i}function Xa(e){return e&&e!=="/"}function ks(e,...t){let r=e||"";for(let i of t.filter(s=>Xa(s)))if(r){let s=i.replace(Ha,"");r=Ya(r)+s}else r=i;return r}var pf=Symbol.for("ufo:protocolRelative");import{fileURLToPath as N,URL as B,pathToFileURL as nr}from"node:url";import Ve from"node:assert";import Be from"node:process";import ti,{dirname as Af}from"node:path";import eo from"node:v8";import{format as to,inspect as Yr}from"node:util";var $s=new Set(Jr);function Xr(e){return e.replace(/\\/g,"/")}var ro={}.hasOwnProperty,io=/^([A-Z][a-z\d]*)+$/,so=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),Q={};function zr(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var Ms=new Map,no="__node_internal_",Ss;Q.ERR_INVALID_ARG_TYPE=he("ERR_INVALID_ARG_TYPE",(e,t,r)=>{Ve(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";if(e.endsWith(" argument"))i+=`${e} `;else{let o=e.includes(".")?"property":"argument";i+=`"${e}" ${o} `}i+="must be ";let s=[],n=[],a=[];for(let o of t)Ve(typeof o=="string","All expected entries have to be of type string"),so.has(o)?s.push(o.toLowerCase()):io.exec(o)===null?(Ve(o!=="object",'The value "object" should be written as "Object"'),a.push(o)):n.push(o);if(n.length>0){let o=s.indexOf("object");o!==-1&&(s.slice(o,1),n.push("Object"))}return s.length>0&&(i+=`${s.length>1?"one of type":"of type"} ${zr(s,"or")}`,(n.length>0||a.length>0)&&(i+=" or ")),n.length>0&&(i+=`an instance of ${zr(n,"or")}`,a.length>0&&(i+=" or ")),a.length>0&&(a.length>1?i+=`one of ${zr(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(i+="an "),i+=`${a[0]}`)),i+=`. Received ${lo(r)}`,i},TypeError);Q.ERR_INVALID_MODULE_SPECIFIER=he("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);Q.ERR_INVALID_PACKAGE_CONFIG=he("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);Q.ERR_INVALID_PACKAGE_TARGET=he("ERR_INVALID_PACKAGE_TARGET",(e,t,r,i=!1,s=void 0)=>{let n=typeof r=="string"&&!i&&r.length>0&&!r.startsWith("./");return t==="."?(Ve(i===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${s?` imported from ${s}`:""}${n?'; targets must start with "./"':""}`):`Invalid "${i?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${s?` imported from ${s}`:""}${n?'; targets must start with "./"':""}`},Error);Q.ERR_MODULE_NOT_FOUND=he("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);Q.ERR_NETWORK_IMPORT_DISALLOWED=he("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);Q.ERR_PACKAGE_IMPORT_NOT_DEFINED=he("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError);Q.ERR_PACKAGE_PATH_NOT_EXPORTED=he("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error);Q.ERR_UNSUPPORTED_DIR_IMPORT=he("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);Q.ERR_UNSUPPORTED_RESOLVE_REQUEST=he("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);Q.ERR_UNKNOWN_FILE_EXTENSION=he("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);Q.ERR_INVALID_ARG_VALUE=he("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=Yr(t);return i.length>128&&(i=`${i.slice(0,128)}...`),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${i}`},TypeError);function he(e,t,r){return Ms.set(e,t),ao(r,e)}function ao(e,t){return r;function r(...i){let s=Error.stackTraceLimit;Qr()&&(Error.stackTraceLimit=0);let n=new e;Qr()&&(Error.stackTraceLimit=s);let a=co(t,i,n);return Object.defineProperties(n,{message:{value:a,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),uo(n),n.code=t,n}}function Qr(){try{if(eo.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):ro.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function oo(e){let t=no+e.name;return Object.defineProperty(e,"name",{value:t}),e}var uo=oo(function(e){let t=Qr();return t&&(Ss=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=Ss),e});function co(e,t,r){let i=Ms.get(e);if(Ve(i!==void 0,"expected `message` to be found"),typeof i=="function")return Ve(i.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${i.length}).`),Reflect.apply(i,r,t);let s=/%[dfijoOs]/g,n=0;for(;s.exec(i)!==null;)n++;return Ve(n===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n}).`),t.length===0?i:(t.unshift(i),Reflect.apply(to,null,t))}function lo(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}`:`${Yr(e,{depth:-1})}`;let t=Yr(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var Nt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:fo}=Q,As=new Map;function Bs(e,{base:t,specifier:r}){let i=As.get(e);if(i)return i;let s;try{s=Qa.readFileSync(ti.toNamespacedPath(e),"utf8")}catch(a){let o=a;if(o.code!=="ENOENT")throw o}let n={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(s!==void 0){let a;try{a=JSON.parse(s)}catch(o){let c=o,f=new fo(e,(t?`"${r}" from `:"")+N(t||r),c.message);throw f.cause=c,f}n.exists=!0,Nt.call(a,"name")&&typeof a.name=="string"&&(n.name=a.name),Nt.call(a,"main")&&typeof a.main=="string"&&(n.main=a.main),Nt.call(a,"exports")&&(n.exports=a.exports),Nt.call(a,"imports")&&(n.imports=a.imports),Nt.call(a,"type")&&(a.type==="commonjs"||a.type==="module")&&(n.type=a.type)}return As.set(e,n),n}function ri(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let s=Bs(N(t),{specifier:e});if(s.exists)return s;let n=t;if(t=new URL("../package.json",t),t.pathname===n.pathname)break}return{pjsonPath:N(t),exists:!1,type:"none"}}function Ts(e){return ri(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:ho}=Q,po={}.hasOwnProperty,mo={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function go(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var Is={__proto__:null,"data:":yo,"file:":vo,"http:":Rs,"https:":Rs,"node:"(){return"builtin"}};function yo(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return go(t)}function xo(e){let t=e.pathname,r=t.length;for(;r--;){let i=t.codePointAt(r);if(i===47)return"";if(i===46)return t.codePointAt(r-1)===47?"":t.slice(r)}return""}function vo(e,t,r){let i=xo(e);if(i===".js"){let a=Ts(e);return a!=="none"?a:"commonjs"}if(i===""){let a=Ts(e);return a==="none"||a==="commonjs"?"commonjs":"module"}let s=mo[i];if(s)return s;if(r)return;let n=N(e);throw new ho(i,n)}function Rs(){}function _o(e,t){let r=e.protocol;return po.call(Is,r)&&Is[r](e,t,!0)||null}var rr=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:Rf,ERR_INVALID_MODULE_SPECIFIER:ar,ERR_INVALID_PACKAGE_CONFIG:Us,ERR_INVALID_PACKAGE_TARGET:bo,ERR_MODULE_NOT_FOUND:ii,ERR_PACKAGE_IMPORT_NOT_DEFINED:wo,ERR_PACKAGE_PATH_NOT_EXPORTED:Eo,ERR_UNSUPPORTED_DIR_IMPORT:Co,ERR_UNSUPPORTED_RESOLVE_REQUEST:Ps}=Q,Ws={}.hasOwnProperty,Ns=/(^|\\|\/)((\.|%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,Os=/(^|\\|\/)((\.|%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,ko=/^\.|%|\\/,ir=/\*/g,So=/%2f|%5c/i,Ls=new Set,Ao=/[/\\]{2}/;function Ds(e,t,r,i,s,n,a){if(Be.noDeprecation)return;let o=N(i),c=Ao.exec(a?e:t)!==null;Be.emitWarning(`Use of deprecated ${c?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===r?"":`matched to "${r}" `}in the "${s?"imports":"exports"}" field module resolution of the package at ${o}${n?` imported from ${N(n)}`:""}.`,"DeprecationWarning","DEP0166")}function Vs(e,t,r,i){if(Be.noDeprecation||_o(e,{parentURL:r.href})!=="module")return;let n=N(e.href),a=N(new B(".",t)),o=N(r);i?ti.resolve(a,i)!==n&&Be.emitWarning(`Package ${a} has a "main" field set to "${i}", excluding the full filename and extension to the resolved file at "${n.slice(a.length)}", imported from ${o}.
46
- Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):Be.emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${n.slice(a.length)}", imported from ${o}.
47
- Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function Gs(e){try{return ei(e)}catch{}}function qr(e){let t=ei(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r??!1}function To(e,t,r){let i;if(t.main!==void 0){if(i=new B(t.main,e),qr(i))return i;let a=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],o=-1;for(;++o<a.length&&(i=new B(a[o],e),!qr(i));)i=void 0;if(i)return Vs(i,e,r,t.main),i}let s=["./index.js","./index.json","./index.node"],n=-1;for(;++n<s.length&&(i=new B(s[n],e),!qr(i));)i=void 0;if(i)return Vs(i,e,r,t.main),i;throw new ii(N(new B(".",e)),N(r))}function Io(e,t,r){if(So.exec(e.pathname)!==null)throw new ar(e.pathname,'must not include encoded "/" or "\\" characters',N(t));let i;try{i=N(e)}catch(n){let a=n;throw Object.defineProperty(a,"input",{value:String(e)}),Object.defineProperty(a,"module",{value:String(t)}),a}let s=Gs(i.endsWith("/")?i.slice(-1):i);if(s&&s.isDirectory()){let n=new Co(i,N(t));throw n.url=String(e),n}if(!s||!s.isFile()){let n=new ii(i||e.pathname,t&&N(t),!0);throw n.url=String(e),n}if(!r){let n=Ja(i),{search:a,hash:o}=e;e=nr(n+(i.endsWith(ti.sep)?"/":"")),e.search=a,e.hash=o}return e}function Ro(e,t,r){return new wo(e,t&&N(new B(".",t)),N(r))}function Hr(e,t,r){return new Eo(N(new B(".",t)),e,r&&N(r))}function Po(e,t,r,i,s){let n=`request is not a valid match in pattern "${t}" for the "${i?"imports":"exports"}" resolution of ${N(r)}`;throw new ar(e,n,s&&N(s))}function Ot(e,t,r,i,s){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new bo(N(new B(".",r)),e,t,i,s&&N(s))}function No(e,t,r,i,s,n,a,o,c){if(t!==""&&!n&&e[e.length-1]!=="/")throw Ot(r,e,i,a,s);if(!e.startsWith("./")){if(a&&!e.startsWith("../")&&!e.startsWith("/")){let m=!1;try{new B(e),m=!0}catch{}if(!m){let x=n?rr.call(ir,e,()=>t):e+t;return zs(x,i,c)}}throw Ot(r,e,i,a,s)}if(Ns.exec(e.slice(2))!==null)if(Os.exec(e.slice(2))===null){if(!o){let m=n?r.replace("*",()=>t):r+t,x=n?rr.call(ir,e,()=>t):e;Ds(x,m,r,i,a,s,!0)}}else throw Ot(r,e,i,a,s);let f=new B(e,i),l=f.pathname,h=new B(".",i).pathname;if(!l.startsWith(h))throw Ot(r,e,i,a,s);if(t==="")return f;if(Ns.exec(t)!==null){let m=n?r.replace("*",()=>t):r+t;if(Os.exec(t)===null){if(!o){let x=n?rr.call(ir,e,()=>t):e;Ds(x,m,r,i,a,s,!1)}}else Po(m,r,i,a,s)}return n?new B(rr.call(ir,f.href,()=>t)):new B(t,f)}function Oo(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function lt(e,t,r,i,s,n,a,o,c){if(typeof t=="string")return No(t,r,i,e,s,n,a,o,c);if(Array.isArray(t)){let f=t;if(f.length===0)return null;let l,h=-1;for(;++h<f.length;){let m=f[h],x;try{x=lt(e,m,r,i,s,n,a,o,c)}catch(F){let O=F;if(l=O,O.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw F}if(x!==void 0){if(x===null){l=null;continue}return x}}if(l==null)return null;throw l}if(typeof t=="object"&&t!==null){let f=Object.getOwnPropertyNames(t),l=-1;for(;++l<f.length;){let h=f[l];if(Oo(h))throw new Us(N(e),s,'"exports" cannot contain numeric property keys.')}for(l=-1;++l<f.length;){let h=f[l];if(h==="default"||c&&c.has(h)){let m=t[h],x=lt(e,m,r,i,s,n,a,o,c);if(x===void 0)continue;return x}}return null}if(t===null)return null;throw Ot(i,t,e,a,s)}function Lo(e,t,r){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;let i=Object.getOwnPropertyNames(e),s=!1,n=0,a=-1;for(;++a<i.length;){let o=i[a],c=o===""||o[0]!==".";if(n++===0)s=c;else if(s!==c)throw new Us(N(t),r,`"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 Do(e,t,r){if(Be.noDeprecation)return;let i=N(t);Ls.has(i+"|"+e)||(Ls.add(i+"|"+e),Be.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${i}${r?` imported from ${N(r)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function Fs(e,t,r,i,s){let n=r.exports;if(Lo(n,e,i)&&(n={".":n}),Ws.call(n,t)&&!t.includes("*")&&!t.endsWith("/")){let l=n[t],h=lt(e,l,"",t,i,!1,!1,!1,s);if(h==null)throw Hr(t,e,i);return h}let a="",o="",c=Object.getOwnPropertyNames(n),f=-1;for(;++f<c.length;){let l=c[f],h=l.indexOf("*");if(h!==-1&&t.startsWith(l.slice(0,h))){t.endsWith("/")&&Do(t,e,i);let m=l.slice(h+1);t.length>=l.length&&t.endsWith(m)&&Zs(a,l)===1&&l.lastIndexOf("*")===h&&(a=l,o=t.slice(h,t.length-m.length))}}if(a){let l=n[a],h=lt(e,l,o,a,i,!0,!1,t.endsWith("/"),s);if(h==null)throw Hr(t,e,i);return h}throw Hr(t,e,i)}function Zs(e,t){let r=e.indexOf("*"),i=t.indexOf("*"),s=r===-1?e.length:r+1,n=i===-1?t.length:i+1;return s>n?-1:n>s||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function Vo(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){let n="is not a valid internal imports specifier name";throw new ar(e,n,N(t))}let i,s=ri(t);if(s.exists){i=nr(s.pjsonPath);let n=s.imports;if(n)if(Ws.call(n,e)&&!e.includes("*")){let a=lt(i,n[e],"",e,t,!1,!0,!1,r);if(a!=null)return a}else{let a="",o="",c=Object.getOwnPropertyNames(n),f=-1;for(;++f<c.length;){let l=c[f],h=l.indexOf("*");if(h!==-1&&e.startsWith(l.slice(0,-1))){let m=l.slice(h+1);e.length>=l.length&&e.endsWith(m)&&Zs(a,l)===1&&l.lastIndexOf("*")===h&&(a=l,o=e.slice(h,e.length-m.length))}}if(a){let l=n[a],h=lt(i,l,o,a,t,!0,!0,!1,r);if(h!=null)return h}}}throw Ro(e,i,t)}function Fo(e,t){let r=e.indexOf("/"),i=!0,s=!1;e[0]==="@"&&(s=!0,r===-1||e.length===0?i=!1:r=e.indexOf("/",r+1));let n=r===-1?e:e.slice(0,r);if(ko.exec(n)!==null&&(i=!1),!i)throw new ar(e,"is not a valid package name",N(t));let a="."+(r===-1?"":e.slice(r));return{packageName:n,packageSubpath:a,isScoped:s}}function zs(e,t,r){if(Jr.includes(e))return new B("node:"+e);let{packageName:i,packageSubpath:s,isScoped:n}=Fo(e,t),a=ri(t);if(a.exists){let l=nr(a.pjsonPath);if(a.name===i&&a.exports!==void 0&&a.exports!==null)return Fs(l,s,a,t,r)}let o=new B("./node_modules/"+i+"/package.json",t),c=N(o),f;do{let l=Gs(c.slice(0,-13));if(!l||!l.isDirectory()){f=c,o=new B((n?"../../../../node_modules/":"../../../node_modules/")+i+"/package.json",o),c=N(o);continue}let h=Bs(c,{base:t,specifier:e});return h.exports!==void 0&&h.exports!==null?Fs(o,s,h,t,r):s==="."?To(o,h,t):new B(s,o)}while(c.length!==f.length);throw new ii(i,N(t),!1)}function jo(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function $o(e){return e===""?!1:e[0]==="/"?!0:jo(e)}function Mo(e,t,r,i){let s=t.protocol,a=s==="data:"||s==="http:"||s==="https:",o;if($o(e))try{o=new B(e,t)}catch(c){let f=new Ps(e,t);throw f.cause=c,f}else if(s==="file:"&&e[0]==="#")o=Vo(e,t,r);else try{o=new B(e)}catch(c){if(a&&!Jr.includes(e)){let f=new Ps(e,t);throw f.cause=c,f}o=zs(e,t,r)}return Ve(o!==void 0,"expected to be defined"),o.protocol!=="file:"?o:Io(o,t,i)}function sr(e){return typeof e=="string"&&!e.startsWith("file://")?Xr(e):Xr(N(e))}function Kr(e){return nr(sr(e)).toString()}function Bo(e){return typeof e!="string"&&(e=e.toString()),/(node|data|http|https|file):/.test(e)?e:$s.has(e)?"node:"+e:"file://"+encodeURI(Xr(e))}var Uo=new Set(["node","import"]),Wo=[".mjs",".cjs",".js",".json"],Go=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function js(e,t,r){try{return Mo(e,t,r)}catch(i){if(!Go.has(i?.code))throw i}}function Zo(e,t={}){if(typeof e!="string")if(e instanceof URL)e=sr(e);else throw new TypeError("input must be a `string` or `URL`");if(/(node|data|http|https):/.test(e))return e;if($s.has(e))return"node:"+e;if(e.startsWith("file://")&&(e=sr(e)),ke(e))try{if(ei(e).isFile())return Kr(e)}catch(a){if(a?.code!=="ENOENT")throw a}let r=t.conditions?new Set(t.conditions):Uo,i=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(a=>new URL(Bo(a.toString())));i.length===0&&i.push(new URL(Kr(process.cwd())));let s=[...i];for(let a of i)a.protocol==="file:"&&s.push(new URL("./",a),new URL(ks(a.pathname,"_index.js"),a),new URL("node_modules",a));let n;for(let a of s){if(n=js(e,a,r),n)break;for(let o of["","/index"]){for(let c of t.extensions||Wo)if(n=js(e+o+c,a,r),n)break;if(n)break}if(n)break}if(!n){let a=new Error(`Cannot find module ${e} imported from ${s.join(", ")}`);throw a.code="ERR_MODULE_NOT_FOUND",a}return Kr(n)}function zo(e,t){return Zo(e,t)}function qo(e,t){return sr(zo(e,t))}function qs(e,t){try{return Promise.resolve(qo(e,t))}catch(r){return Promise.reject(r)}}var Ho=Symbol.for("__confbox_fmt__"),Ko=/^(\s+)/,Yo=/(\s+)$/;function Xo(e,t={}){let r=t.indent===void 0&&t.preserveIndentation!==!1&&e.slice(0,t?.sampleSize||1024),i=t.preserveWhitespace===!1?void 0:{start:Ko.exec(e)?.[0]||"",end:Yo.exec(e)?.[0]||""};return{sample:r,whiteSpace:i}}function si(e,t,r){!t||typeof t!="object"||Object.defineProperty(t,Ho,{enumerable:!1,configurable:!0,writable:!0,value:Xo(e,r)})}function Qo(e,t=!1){let r=e.length,i=0,s="",n=0,a=16,o=0,c=0,f=0,l=0,h=0;function m(b,L){let A=0,M=0;for(;A<b||!L;){let H=e.charCodeAt(i);if(H>=48&&H<=57)M=M*16+H-48;else if(H>=65&&H<=70)M=M*16+H-65+10;else if(H>=97&&H<=102)M=M*16+H-97+10;else break;i++,A++}return A<b&&(M=-1),M}function x(b){i=b,s="",n=0,a=16,h=0}function F(){let b=i;if(e.charCodeAt(i)===48)i++;else for(i++;i<e.length&&ft(e.charCodeAt(i));)i++;if(i<e.length&&e.charCodeAt(i)===46)if(i++,i<e.length&&ft(e.charCodeAt(i)))for(i++;i<e.length&&ft(e.charCodeAt(i));)i++;else return h=3,e.substring(b,i);let L=i;if(i<e.length&&(e.charCodeAt(i)===69||e.charCodeAt(i)===101))if(i++,(i<e.length&&e.charCodeAt(i)===43||e.charCodeAt(i)===45)&&i++,i<e.length&&ft(e.charCodeAt(i))){for(i++;i<e.length&&ft(e.charCodeAt(i));)i++;L=i}else h=3;return e.substring(b,L)}function O(){let b="",L=i;for(;;){if(i>=r){b+=e.substring(L,i),h=2;break}let A=e.charCodeAt(i);if(A===34){b+=e.substring(L,i),i++;break}if(A===92){if(b+=e.substring(L,i),i++,i>=r){h=2;break}switch(e.charCodeAt(i++)){case 34:b+='"';break;case 92:b+="\\";break;case 47:b+="/";break;case 98:b+="\b";break;case 102:b+="\f";break;case 110:b+=`
48
- `;break;case 114:b+="\r";break;case 116:b+=" ";break;case 117:let M=m(4,!0);M>=0?b+=String.fromCharCode(M):h=4;break;default:h=5}L=i;continue}if(A>=0&&A<=31)if(Lt(A)){b+=e.substring(L,i),h=2;break}else h=6;i++}return b}function j(){if(s="",h=0,n=i,c=o,l=f,i>=r)return n=r,a=17;let b=e.charCodeAt(i);if(ni(b)){do i++,s+=String.fromCharCode(b),b=e.charCodeAt(i);while(ni(b));return a=15}if(Lt(b))return i++,s+=String.fromCharCode(b),b===13&&e.charCodeAt(i)===10&&(i++,s+=`
49
- `),o++,f=i,a=14;switch(b){case 123:return i++,a=1;case 125:return i++,a=2;case 91:return i++,a=3;case 93:return i++,a=4;case 58:return i++,a=6;case 44:return i++,a=5;case 34:return i++,s=O(),a=10;case 47:let L=i-1;if(e.charCodeAt(i+1)===47){for(i+=2;i<r&&!Lt(e.charCodeAt(i));)i++;return s=e.substring(L,i),a=12}if(e.charCodeAt(i+1)===42){i+=2;let A=r-1,M=!1;for(;i<A;){let H=e.charCodeAt(i);if(H===42&&e.charCodeAt(i+1)===47){i+=2,M=!0;break}i++,Lt(H)&&(H===13&&e.charCodeAt(i)===10&&i++,o++,f=i)}return M||(i++,h=1),s=e.substring(L,i),a=13}return s+=String.fromCharCode(b),i++,a=16;case 45:if(s+=String.fromCharCode(b),i++,i===r||!ft(e.charCodeAt(i)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=F(),a=11;default:for(;i<r&&W(b);)i++,b=e.charCodeAt(i);if(n!==i){switch(s=e.substring(n,i),s){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return s+=String.fromCharCode(b),i++,a=16}}function W(b){if(ni(b)||Lt(b))return!1;switch(b){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Ce(){let b;do b=j();while(b>=12&&b<=15);return b}return{setPosition:x,getPosition:()=>i,scan:t?Ce:j,getToken:()=>a,getTokenValue:()=>s,getTokenOffset:()=>n,getTokenLength:()=>i-n,getTokenStartLine:()=>c,getTokenStartCharacter:()=>n-l,getTokenError:()=>h}}function ni(e){return e===32||e===9}function Lt(e){return e===10||e===13}function ft(e){return e>=48&&e<=57}var Hs;(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"})(Hs||(Hs={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));var ht=200;new Array(ht).fill(0).map((e,t)=>`
50
- `+" ".repeat(t)),new Array(ht).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(ht).fill(0).map((e,t)=>`\r
51
- `+" ".repeat(t)),new Array(ht).fill(0).map((e,t)=>`
52
- `+" ".repeat(t)),new Array(ht).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(ht).fill(0).map((e,t)=>`\r
53
- `+" ".repeat(t));var or;(function(e){e.DEFAULT={allowTrailingComma:!1}})(or||(or={}));function Jo(e,t=[],r=or.DEFAULT){let i=null,s=[],n=[];function a(o){Array.isArray(s)?s.push(o):i!==null&&(s[i]=o)}return eu(e,{onObjectBegin:()=>{let o={};a(o),n.push(s),s=o,i=null},onObjectProperty:o=>{i=o},onObjectEnd:()=>{s=n.pop()},onArrayBegin:()=>{let o=[];a(o),n.push(s),s=o,i=null},onArrayEnd:()=>{s=n.pop()},onLiteralValue:a,onError:(o,c,f)=>{t.push({error:o,offset:c,length:f})}},r),s[0]}function eu(e,t,r=or.DEFAULT){let i=Qo(e,!1),s=[];function n(D){return D?()=>D(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter()):()=>!0}function a(D){return D?()=>D(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter(),()=>s.slice()):()=>!0}function o(D){return D?G=>D(G,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter()):()=>!0}function c(D){return D?G=>D(G,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter(),()=>s.slice()):()=>!0}let f=a(t.onObjectBegin),l=c(t.onObjectProperty),h=n(t.onObjectEnd),m=a(t.onArrayBegin),x=n(t.onArrayEnd),F=c(t.onLiteralValue),O=o(t.onSeparator),j=n(t.onComment),W=o(t.onError),Ce=r&&r.disallowComments,b=r&&r.allowTrailingComma;function L(){for(;;){let D=i.scan();switch(i.getTokenError()){case 4:A(14);break;case 5:A(15);break;case 3:A(13);break;case 1:Ce||A(11);break;case 2:A(12);break;case 6:A(16);break}switch(D){case 12:case 13:Ce?A(10):j();break;case 16:A(1);break;case 15:case 14:break;default:return D}}}function A(D,G=[],Pi=[]){if(W(D),G.length+Pi.length>0){let Zt=i.getToken();for(;Zt!==17;){if(G.indexOf(Zt)!==-1){L();break}else if(Pi.indexOf(Zt)!==-1)break;Zt=L()}}}function M(D){let G=i.getTokenValue();return D?F(G):(l(G),s.push(G)),L(),!0}function H(){switch(i.getToken()){case 11:let D=i.getTokenValue(),G=Number(D);isNaN(G)&&(A(2),G=0),F(G);break;case 7:F(null);break;case 8:F(!0);break;case 9:F(!1);break;default:return!1}return L(),!0}function Gt(){return i.getToken()!==10?(A(3,[],[2,5]),!1):(M(!1),i.getToken()===6?(O(":"),L(),Cr()||A(4,[],[2,5])):A(5,[],[2,5]),s.pop(),!0)}function Er(){f(),L();let D=!1;for(;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(D||A(4,[],[]),O(","),L(),i.getToken()===2&&b)break}else D&&A(6,[],[]);Gt()||A(4,[],[2,5]),D=!0}return h(),i.getToken()!==2?A(7,[2],[]):L(),!0}function Kn(){m(),L();let D=!0,G=!1;for(;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(G||A(4,[],[]),O(","),L(),i.getToken()===4&&b)break}else G&&A(6,[],[]);D?(s.push(0),D=!1):s[s.length-1]++,Cr()||A(4,[],[4,5]),G=!0}return x(),D||s.pop(),i.getToken()!==4?A(8,[4],[]):L(),!0}function Cr(){switch(i.getToken()){case 3:return Kn();case 1:return Er();case 10:return M(!0);default:return H()}}return L(),i.getToken()===17?r.allowEmptyContent?!0:(A(4,[],[]),!1):Cr()?(i.getToken()!==17&&A(9,[],[]),!0):(A(4,[],[]),!1)}var Ks;(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"})(Ks||(Ks={}));var Ys;(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"})(Ys||(Ys={}));var tu=Jo,Xs;(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"})(Xs||(Xs={}));function ai(e,t){let r=JSON.parse(e,t?.reviver);return si(e,r,t),r}function oi(e,t){let r=tu(e,t?.errors,t);return si(e,r,t),r}var au={startingFrom:".",rootPattern:/^node_modules$/,reverse:!1,test:e=>{try{if(su(e).isFile())return!0}catch{}}};async function ou(e,t={}){let r=Array.isArray(e)?e:[e],i={...au,...t},s=Ir(i.startingFrom),n=s[0]==="/",a=s.split("/").filter(Boolean);n&&(a[0]="/"+a[0]);let o=a.findIndex(c=>c.match(i.rootPattern));if(o===-1&&(o=0),i.reverse)for(let c=o+1;c<=a.length;c++)for(let f of r){let l=zt(...a.slice(0,c),f);if(await i.test(l))return l}else for(let c=a.length;c>o;c--)for(let f of r){let l=zt(...a.slice(0,c),f);if(await i.test(l))return l}throw new Error(`Cannot find matching ${e} in ${i.startingFrom} or parent directories`)}function uu(e,t={}){return ou(e,t)}var cu=new Map;async function Uf(e,t={}){let r=await ui(e,t),i=t.cache&&typeof t.cache!="boolean"?t.cache:cu;if(t.cache&&i.has(r))return i.get(r);let s=await nu.readFile(r,"utf8"),n;try{n=ai(s)}catch{n=oi(s)}return i.set(r,n),n}async function ui(e=process.cwd(),t={}){let r=ke(e)?e:await qs(e,t);return uu("package.json",{startingFrom:r,...t})}import{existsSync as Vn}from"node:fs";import{readFile as Oc}from"node:fs/promises";import{dirname as Lc,normalize as ki,resolve as Dc}from"node:path";var lu=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,fu=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,hu=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function pu(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){du(e);return}return t}function du(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function mu(e,t={}){if(typeof e!="string")return e;let r=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){let i=r.toLowerCase();if(i==="true")return!0;if(i==="false")return!1;if(i==="undefined")return;if(i==="null")return null;if(i==="nan")return Number.NaN;if(i==="infinity")return Number.POSITIVE_INFINITY;if(i==="-infinity")return Number.NEGATIVE_INFINITY}if(!hu.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(lu.test(e)||fu.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,pu)}return JSON.parse(e)}catch(i){if(t.strict)throw i;return e}}function Qs(e,t={}){return mu(e,{...t,strict:!0})}var Ln=Ni(ln(),1);import{createRequire as Tc}from"node:module";import{extname as On,resolve as Ic}from"node:path";import{fileURLToPath as Rc,pathToFileURL as Pc}from"node:url";import oc from"node:assert";import{statSync as Cn,realpathSync as uc}from"node:fs";import Ge from"node:process";import{URL as U,fileURLToPath as V,pathToFileURL as _i}from"node:url";import kn from"node:path";import{builtinModules as Sn}from"node:module";import{fileURLToPath as Ju}from"node:url";import Yu from"node:fs";import Xu from"node:path";import{fileURLToPath as mi}from"node:url";import $u from"node:v8";import We from"node:assert";import{format as Mu,inspect as pi}from"node:util";var Bu={}.hasOwnProperty,Uu=/^([A-Z][a-z\d]*)+$/,Wu=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),q={};function hi(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var hn=new Map,Gu="__node_internal_",fn;q.ERR_INVALID_ARG_TYPE=pe("ERR_INVALID_ARG_TYPE",(e,t,r)=>{We(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";if(e.endsWith(" argument"))i+=`${e} `;else{let o=e.includes(".")?"property":"argument";i+=`"${e}" ${o} `}i+="must be ";let s=[],n=[],a=[];for(let o of t)We(typeof o=="string","All expected entries have to be of type string"),Wu.has(o)?s.push(o.toLowerCase()):Uu.exec(o)===null?(We(o!=="object",'The value "object" should be written as "Object"'),a.push(o)):n.push(o);if(n.length>0){let o=s.indexOf("object");o!==-1&&(s.slice(o,1),n.push("Object"))}return s.length>0&&(i+=`${s.length>1?"one of type":"of type"} ${hi(s,"or")}`,(n.length>0||a.length>0)&&(i+=" or ")),n.length>0&&(i+=`an instance of ${hi(n,"or")}`,a.length>0&&(i+=" or ")),a.length>0&&(a.length>1?i+=`one of ${hi(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(i+="an "),i+=`${a[0]}`)),i+=`. Received ${Ku(r)}`,i},TypeError);q.ERR_INVALID_MODULE_SPECIFIER=pe("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);q.ERR_INVALID_PACKAGE_CONFIG=pe("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);q.ERR_INVALID_PACKAGE_TARGET=pe("ERR_INVALID_PACKAGE_TARGET",(e,t,r,i=!1,s=void 0)=>{let n=typeof r=="string"&&!i&&r.length>0&&!r.startsWith("./");return t==="."?(We(i===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${s?` imported from ${s}`:""}${n?'; targets must start with "./"':""}`):`Invalid "${i?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${s?` imported from ${s}`:""}${n?'; targets must start with "./"':""}`},Error);q.ERR_MODULE_NOT_FOUND=pe("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);q.ERR_NETWORK_IMPORT_DISALLOWED=pe("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);q.ERR_PACKAGE_IMPORT_NOT_DEFINED=pe("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError);q.ERR_PACKAGE_PATH_NOT_EXPORTED=pe("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error);q.ERR_UNSUPPORTED_DIR_IMPORT=pe("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);q.ERR_UNSUPPORTED_RESOLVE_REQUEST=pe("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);q.ERR_UNKNOWN_FILE_EXTENSION=pe("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);q.ERR_INVALID_ARG_VALUE=pe("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=pi(t);return i.length>128&&(i=`${i.slice(0,128)}...`),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${i}`},TypeError);function pe(e,t,r){return hn.set(e,t),Zu(r,e)}function Zu(e,t){return r;function r(...i){let s=Error.stackTraceLimit;di()&&(Error.stackTraceLimit=0);let n=new e;di()&&(Error.stackTraceLimit=s);let a=Hu(t,i,n);return Object.defineProperties(n,{message:{value:a,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),qu(n),n.code=t,n}}function di(){try{if($u.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):Bu.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function zu(e){let t=Gu+e.name;return Object.defineProperty(e,"name",{value:t}),e}var qu=zu(function(e){let t=di();return t&&(fn=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=fn),e});function Hu(e,t,r){let i=hn.get(e);if(We(i!==void 0,"expected `message` to be found"),typeof i=="function")return We(i.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${i.length}).`),Reflect.apply(i,r,t);let s=/%[dfijoOs]/g,n=0;for(;s.exec(i)!==null;)n++;return We(n===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n}).`),t.length===0?i:(t.unshift(i),Reflect.apply(Mu,null,t))}function Ku(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}`:`${pi(e,{depth:-1})}`;let t=pi(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var Dt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:Qu}=q,pn=new Map;function gi(e,{base:t,specifier:r}){let i=pn.get(e);if(i)return i;let s;try{s=Yu.readFileSync(Xu.toNamespacedPath(e),"utf8")}catch(a){let o=a;if(o.code!=="ENOENT")throw o}let n={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(s!==void 0){let a;try{a=JSON.parse(s)}catch(o){let c=o,f=new Qu(e,(t?`"${r}" from `:"")+mi(t||r),c.message);throw f.cause=c,f}n.exists=!0,Dt.call(a,"name")&&typeof a.name=="string"&&(n.name=a.name),Dt.call(a,"main")&&typeof a.main=="string"&&(n.main=a.main),Dt.call(a,"exports")&&(n.exports=a.exports),Dt.call(a,"imports")&&(n.imports=a.imports),Dt.call(a,"type")&&(a.type==="commonjs"||a.type==="module")&&(n.type=a.type)}return pn.set(e,n),n}function hr(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let s=gi(mi(t),{specifier:e});if(s.exists)return s;let n=t;if(t=new URL("../package.json",t),t.pathname===n.pathname)break}return{pjsonPath:mi(t),exists:!1,type:"none"}}function yi(e){return hr(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:ec}=q,tc={}.hasOwnProperty,rc={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function ic(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var dn={__proto__:null,"data:":sc,"file:":ac,"http:":mn,"https:":mn,"node:"(){return"builtin"}};function sc(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return ic(t)}function nc(e){let t=e.pathname,r=t.length;for(;r--;){let i=t.codePointAt(r);if(i===47)return"";if(i===46)return t.codePointAt(r-1)===47?"":t.slice(r)}return""}function ac(e,t,r){let i=nc(e);if(i===".js"){let a=yi(e);return a!=="none"?a:"commonjs"}if(i===""){let a=yi(e);return a==="none"||a==="commonjs"?"commonjs":"module"}let s=rc[i];if(s)return s;if(r)return;let n=Ju(e);throw new ec(i,n)}function mn(){}function gn(e,t){let r=e.protocol;return tc.call(dn,r)&&dn[r](e,t,!0)||null}var pr=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:xh,ERR_INVALID_MODULE_SPECIFIER:mr,ERR_INVALID_PACKAGE_CONFIG:An,ERR_INVALID_PACKAGE_TARGET:cc,ERR_MODULE_NOT_FOUND:bi,ERR_PACKAGE_IMPORT_NOT_DEFINED:lc,ERR_PACKAGE_PATH_NOT_EXPORTED:fc,ERR_UNSUPPORTED_DIR_IMPORT:hc,ERR_UNSUPPORTED_RESOLVE_REQUEST:yn}=q,Tn={}.hasOwnProperty,xn=/(^|\\|\/)((\.|%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,vn=/(^|\\|\/)((\.|%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,pc=/^\.|%|\\/,dr=/\*/g,dc=/%2f|%5c/i,_n=new Set,mc=/[/\\]{2}/;function bn(e,t,r,i,s,n,a){if(Ge.noDeprecation)return;let o=V(i),c=mc.exec(a?e:t)!==null;Ge.emitWarning(`Use of deprecated ${c?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===r?"":`matched to "${r}" `}in the "${s?"imports":"exports"}" field module resolution of the package at ${o}${n?` imported from ${V(n)}`:""}.`,"DeprecationWarning","DEP0166")}function wn(e,t,r,i){if(Ge.noDeprecation||gn(e,{parentURL:r.href})!=="module")return;let n=V(e.href),a=V(new U(".",t)),o=V(r);i?kn.resolve(a,i)!==n&&Ge.emitWarning(`Package ${a} has a "main" field set to "${i}", excluding the full filename and extension to the resolved file at "${n.slice(a.length)}", imported from ${o}.
54
- Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):Ge.emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${n.slice(a.length)}", imported from ${o}.
55
- Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function In(e){try{return Cn(e)}catch{}}function xi(e){let t=Cn(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r??!1}function gc(e,t,r){let i;if(t.main!==void 0){if(i=new U(t.main,e),xi(i))return i;let a=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],o=-1;for(;++o<a.length&&(i=new U(a[o],e),!xi(i));)i=void 0;if(i)return wn(i,e,r,t.main),i}let s=["./index.js","./index.json","./index.node"],n=-1;for(;++n<s.length&&(i=new U(s[n],e),!xi(i));)i=void 0;if(i)return wn(i,e,r,t.main),i;throw new bi(V(new U(".",e)),V(r))}function yc(e,t,r){if(dc.exec(e.pathname)!==null)throw new mr(e.pathname,'must not include encoded "/" or "\\" characters',V(t));let i;try{i=V(e)}catch(n){let a=n;throw Object.defineProperty(a,"input",{value:String(e)}),Object.defineProperty(a,"module",{value:String(t)}),a}let s=In(i.endsWith("/")?i.slice(-1):i);if(s&&s.isDirectory()){let n=new hc(i,V(t));throw n.url=String(e),n}if(!s||!s.isFile()){let n=new bi(i||e.pathname,t&&V(t),!0);throw n.url=String(e),n}if(!r){let n=uc(i),{search:a,hash:o}=e;e=_i(n+(i.endsWith(kn.sep)?"/":"")),e.search=a,e.hash=o}return e}function xc(e,t,r){return new lc(e,t&&V(new U(".",t)),V(r))}function vi(e,t,r){return new fc(V(new U(".",t)),e,r&&V(r))}function vc(e,t,r,i,s){let n=`request is not a valid match in pattern "${t}" for the "${i?"imports":"exports"}" resolution of ${V(r)}`;throw new mr(e,n,s&&V(s))}function Vt(e,t,r,i,s){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new cc(V(new U(".",r)),e,t,i,s&&V(s))}function _c(e,t,r,i,s,n,a,o,c){if(t!==""&&!n&&e[e.length-1]!=="/")throw Vt(r,e,i,a,s);if(!e.startsWith("./")){if(a&&!e.startsWith("../")&&!e.startsWith("/")){let m=!1;try{new U(e),m=!0}catch{}if(!m){let x=n?pr.call(dr,e,()=>t):e+t;return Pn(x,i,c)}}throw Vt(r,e,i,a,s)}if(xn.exec(e.slice(2))!==null)if(vn.exec(e.slice(2))===null){if(!o){let m=n?r.replace("*",()=>t):r+t,x=n?pr.call(dr,e,()=>t):e;bn(x,m,r,i,a,s,!0)}}else throw Vt(r,e,i,a,s);let f=new U(e,i),l=f.pathname,h=new U(".",i).pathname;if(!l.startsWith(h))throw Vt(r,e,i,a,s);if(t==="")return f;if(xn.exec(t)!==null){let m=n?r.replace("*",()=>t):r+t;if(vn.exec(t)===null){if(!o){let x=n?pr.call(dr,e,()=>t):e;bn(x,m,r,i,a,s,!1)}}else vc(m,r,i,a,s)}return n?new U(pr.call(dr,f.href,()=>t)):new U(t,f)}function bc(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function yt(e,t,r,i,s,n,a,o,c){if(typeof t=="string")return _c(t,r,i,e,s,n,a,o,c);if(Array.isArray(t)){let f=t;if(f.length===0)return null;let l,h=-1;for(;++h<f.length;){let m=f[h],x;try{x=yt(e,m,r,i,s,n,a,o,c)}catch(F){let O=F;if(l=O,O.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw F}if(x!==void 0){if(x===null){l=null;continue}return x}}if(l==null)return null;throw l}if(typeof t=="object"&&t!==null){let f=Object.getOwnPropertyNames(t),l=-1;for(;++l<f.length;){let h=f[l];if(bc(h))throw new An(V(e),s,'"exports" cannot contain numeric property keys.')}for(l=-1;++l<f.length;){let h=f[l];if(h==="default"||c&&c.has(h)){let m=t[h],x=yt(e,m,r,i,s,n,a,o,c);if(x===void 0)continue;return x}}return null}if(t===null)return null;throw Vt(i,t,e,a,s)}function wc(e,t,r){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;let i=Object.getOwnPropertyNames(e),s=!1,n=0,a=-1;for(;++a<i.length;){let o=i[a],c=o===""||o[0]!==".";if(n++===0)s=c;else if(s!==c)throw new An(V(t),r,`"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 Ec(e,t,r){if(Ge.noDeprecation)return;let i=V(t);_n.has(i+"|"+e)||(_n.add(i+"|"+e),Ge.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${i}${r?` imported from ${V(r)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function En(e,t,r,i,s){let n=r.exports;if(wc(n,e,i)&&(n={".":n}),Tn.call(n,t)&&!t.includes("*")&&!t.endsWith("/")){let l=n[t],h=yt(e,l,"",t,i,!1,!1,!1,s);if(h==null)throw vi(t,e,i);return h}let a="",o="",c=Object.getOwnPropertyNames(n),f=-1;for(;++f<c.length;){let l=c[f],h=l.indexOf("*");if(h!==-1&&t.startsWith(l.slice(0,h))){t.endsWith("/")&&Ec(t,e,i);let m=l.slice(h+1);t.length>=l.length&&t.endsWith(m)&&Rn(a,l)===1&&l.lastIndexOf("*")===h&&(a=l,o=t.slice(h,t.length-m.length))}}if(a){let l=n[a],h=yt(e,l,o,a,i,!0,!1,t.endsWith("/"),s);if(h==null)throw vi(t,e,i);return h}throw vi(t,e,i)}function Rn(e,t){let r=e.indexOf("*"),i=t.indexOf("*"),s=r===-1?e.length:r+1,n=i===-1?t.length:i+1;return s>n?-1:n>s||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function Cc(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){let n="is not a valid internal imports specifier name";throw new mr(e,n,V(t))}let i,s=hr(t);if(s.exists){i=_i(s.pjsonPath);let n=s.imports;if(n)if(Tn.call(n,e)&&!e.includes("*")){let a=yt(i,n[e],"",e,t,!1,!0,!1,r);if(a!=null)return a}else{let a="",o="",c=Object.getOwnPropertyNames(n),f=-1;for(;++f<c.length;){let l=c[f],h=l.indexOf("*");if(h!==-1&&e.startsWith(l.slice(0,-1))){let m=l.slice(h+1);e.length>=l.length&&e.endsWith(m)&&Rn(a,l)===1&&l.lastIndexOf("*")===h&&(a=l,o=e.slice(h,e.length-m.length))}}if(a){let l=n[a],h=yt(i,l,o,a,t,!0,!0,!1,r);if(h!=null)return h}}}throw xc(e,i,t)}function kc(e,t){let r=e.indexOf("/"),i=!0,s=!1;e[0]==="@"&&(s=!0,r===-1||e.length===0?i=!1:r=e.indexOf("/",r+1));let n=r===-1?e:e.slice(0,r);if(pc.exec(n)!==null&&(i=!1),!i)throw new mr(e,"is not a valid package name",V(t));let a="."+(r===-1?"":e.slice(r));return{packageName:n,packageSubpath:a,isScoped:s}}function Pn(e,t,r){if(Sn.includes(e))return new U("node:"+e);let{packageName:i,packageSubpath:s,isScoped:n}=kc(e,t),a=hr(t);if(a.exists){let l=_i(a.pjsonPath);if(a.name===i&&a.exports!==void 0&&a.exports!==null)return En(l,s,a,t,r)}let o=new U("./node_modules/"+i+"/package.json",t),c=V(o),f;do{let l=In(c.slice(0,-13));if(!l||!l.isDirectory()){f=c,o=new U((n?"../../../../node_modules/":"../../../node_modules/")+i+"/package.json",o),c=V(o);continue}let h=gi(c,{base:t,specifier:e});return h.exports!==void 0&&h.exports!==null?En(o,s,h,t,r):s==="."?gc(o,h,t):new U(s,o)}while(c.length!==f.length);throw new bi(i,V(t),!1)}function Sc(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function Ac(e){return e===""?!1:e[0]==="/"?!0:Sc(e)}function wi(e,t,r,i){let s=t.protocol,a=s==="data:"||s==="http:"||s==="https:",o;if(Ac(e))try{o=new U(e,t)}catch(c){let f=new yn(e,t);throw f.cause=c,f}else if(s==="file:"&&e[0]==="#")o=Cc(e,t,r);else try{o=new U(e)}catch(c){if(a&&!Sn.includes(e)){let f=new yn(e,t);throw f.cause=c,f}o=Pn(e,t,r)}return oc(o!==void 0,"expected to be defined"),o.protocol!=="file:"?o:yc(o,t,i)}var be=(0,Ln.default)("import-from-esm"),Nc=Tc(import.meta.url),gr=[".js",".mjs",".cjs",".json"];function Nn(...e){return Pc(Ic(...e))}function Ei(e,t){be(`Trying to resolve '${e}' from '${t.href}'`);try{return wi(e,t,new Set(["node","import"]))}catch(r){be(`Failed to resolve '${e}' from '${t.href}': ${String(r)}`)}}async function Ft(e){if(e)try{be(`Trying to determine file extension for '${e.href}'`);let t=Rc(e),r=On(t)===".json";return be(`Trying to import '${e.href}'${r?" as JSON":""}`),r?Nc(t):await import(e)}catch(t){if(be(`Failed to determine file extension or to import '${e.href}': ${String(t)}`),t instanceof SyntaxError)throw t}}async function Ci(e,t){be(`Executing importFrom('${e}', '${t}')`);let r;if(/^(\/|\.\.\/|\.\/|[a-zA-Z]:)/.test(t)){be(`'${t}' is a file module`);let i=Nn(e,t);if(r=await Ft(i),!r&&!gr.includes(On(t))){for(let s of gr)if(r=await Ft(`${i}${s}`),r)break}}else{be(`'${t}' is not a file module`);let i=Nn(e,"noop.js");if(r=await Ft(Ei(t,i)),!r&&!t.startsWith("#")){for(let s of gr)if(r=await Ft(Ei(`${t}${s}`,i)),r)break;if(!r){for(let s of gr)if(r=await Ft(Ei(`${t}/index${s}`,i)),r)break}}}if(!r){let i=`Cannot find module '${t}'`;be(i);let s=new Error(i);throw s.code="MODULE_NOT_FOUND",s}return be(`Successfully loaded module '${t}' from '${e}'`),r.default??r}Ci.silent=async function(e,t){try{return await Ci(e,t)}catch{}};var Dn=Ci;async function Lh(e){let t=[];for(let r of e){let i=await ui(r).then(ki);if(!i||!Vn(i)){re.warn(`Could not find package.json for '${r}'`);continue}let s=await Oc(i).then(h=>Qs(h.toString())).catch(()=>null);if(!s){re.warn(`Could not read package.json for '${r}'`);continue}let n=s?.exports;if(!n){re.warn(`No exports found in package.json for '${r}'`);continue}if(typeof n=="string"||Array.isArray(n)){re.warn(`Invalid exports found in package.json for '${r}'`);continue}let a=n["./manifest"];if(!a){re.warn(`No './manifest' export found in package.json for '${r}'`);continue}if(typeof a=="string"||Array.isArray(a)){re.warn(`Invalid './manifest' export found in package.json for '${r}'`);continue}let o=a.default;if(!o){re.warn(`No default export found in './manifest' export in package.json for '${r}'`);continue}if(typeof o!="string"){re.warn(`Invalid default export found in './manifest' export in package.json for '${r}'`);continue}let c=ki(Dc(Lc(i),o));if(!Vn(c)){re.warn(`Could not find manifest file for '${r}' at '${c}'`);continue}let f=ki(process.cwd()),l=await Dn(f,c).catch(()=>null);if(!l){re.warn(`Could not read manifest for '${r}' at '${c}'`);continue}delete l.$schema,t.push({...l,version:s.version||"0.0.0"})}return t}var R;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function r(s){throw new Error}e.assertNever=r,e.arrayToEnum=s=>{let n={};for(let a of s)n[a]=a;return n},e.getValidEnumValues=s=>{let n=e.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),a={};for(let o of n)a[o]=s[o];return e.objectValues(a)},e.objectValues=s=>e.objectKeys(s).map(function(n){return s[n]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{let n=[];for(let a in s)Object.prototype.hasOwnProperty.call(s,a)&&n.push(a);return n},e.find=(s,n)=>{for(let a of s)if(n(a))return a},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function i(s,n=" | "){return s.map(a=>typeof a=="string"?`'${a}'`:a).join(n)}e.joinValues=i,e.jsonStringifyReplacer=(s,n)=>typeof n=="bigint"?n.toString():n})(R||(R={}));var Ai;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Ai||(Ai={}));var g=R.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Fe=e=>{switch(typeof e){case"undefined":return g.undefined;case"string":return g.string;case"number":return isNaN(e)?g.nan:g.number;case"boolean":return g.boolean;case"function":return g.function;case"bigint":return g.bigint;case"symbol":return g.symbol;case"object":return Array.isArray(e)?g.array:e===null?g.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?g.promise:typeof Map<"u"&&e instanceof Map?g.map:typeof Set<"u"&&e instanceof Set?g.set:typeof Date<"u"&&e instanceof Date?g.date:g.object;default:return g.unknown}},p=R.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Vc=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),se=class e extends Error{constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){let r=t||function(n){return n.message},i={_errors:[]},s=n=>{for(let a of n.issues)if(a.code==="invalid_union")a.unionErrors.map(s);else if(a.code==="invalid_return_type")s(a.returnTypeError);else if(a.code==="invalid_arguments")s(a.argumentsError);else if(a.path.length===0)i._errors.push(r(a));else{let o=i,c=0;for(;c<a.path.length;){let f=a.path[c];c===a.path.length-1?(o[f]=o[f]||{_errors:[]},o[f]._errors.push(r(a))):o[f]=o[f]||{_errors:[]},o=o[f],c++}}};return s(this),i}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,R.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},i=[];for(let s of this.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(t(s))):i.push(t(s));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}};se.create=e=>new se(e);var _t=(e,t)=>{let r;switch(e.code){case p.invalid_type:e.received===g.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case p.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,R.jsonStringifyReplacer)}`;break;case p.unrecognized_keys:r=`Unrecognized key(s) in object: ${R.joinValues(e.keys,", ")}`;break;case p.invalid_union:r="Invalid input";break;case p.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${R.joinValues(e.options)}`;break;case p.invalid_enum_value:r=`Invalid enum value. Expected ${R.joinValues(e.options)}, received '${e.received}'`;break;case p.invalid_arguments:r="Invalid function arguments";break;case p.invalid_return_type:r="Invalid function return type";break;case p.invalid_date:r="Invalid date";break;case p.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:R.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case p.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case p.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case p.custom:r="Invalid input";break;case p.invalid_intersection_types:r="Intersection results could not be merged";break;case p.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case p.not_finite:r="Number must be finite";break;default:r=t.defaultError,R.assertNever(e)}return{message:r}},$n=_t;function Fc(e){$n=e}function yr(){return $n}var xr=e=>{let{data:t,path:r,errorMaps:i,issueData:s}=e,n=[...r,...s.path||[]],a={...s,path:n};if(s.message!==void 0)return{...s,path:n,message:s.message};let o="",c=i.filter(f=>!!f).slice().reverse();for(let f of c)o=f(a,{data:t,defaultError:o}).message;return{...s,path:n,message:o}},jc=[];function d(e,t){let r=yr(),i=xr({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===_t?void 0:_t].filter(s=>!!s)});e.common.issues.push(i)}var Y=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let i=[];for(let s of r){if(s.status==="aborted")return E;s.status==="dirty"&&t.dirty(),i.push(s.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,r){let i=[];for(let s of r){let n=await s.key,a=await s.value;i.push({key:n,value:a})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,r){let i={};for(let s of r){let{key:n,value:a}=s;if(n.status==="aborted"||a.status==="aborted")return E;n.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),n.value!=="__proto__"&&(typeof a.value<"u"||s.alwaysSet)&&(i[n.value]=a.value)}return{status:t.value,value:i}}},E=Object.freeze({status:"aborted"}),vt=e=>({status:"dirty",value:e}),J=e=>({status:"valid",value:e}),Ti=e=>e.status==="aborted",Ii=e=>e.status==="dirty",Mt=e=>e.status==="valid",Bt=e=>typeof Promise<"u"&&e instanceof Promise;function vr(e,t,r,i){if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?i:r==="a"?i.call(e):i?i.value:t.get(e)}function Mn(e,t,r,i,s){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(e,r):s?s.value=r:t.set(e,r),r}var _;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(_||(_={}));var jt,$t,me=class{constructor(t,r,i,s){this._cachedPath=[],this.parent=t,this.data=r,this._path=i,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Fn=(e,t)=>{if(Mt(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new se(e.common.issues);return this._error=r,this._error}}};function k(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:s}=e;if(t&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(a,o)=>{var c,f;let{message:l}=e;return a.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:(c=l??i)!==null&&c!==void 0?c:o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:(f=l??r)!==null&&f!==void 0?f:o.defaultError}},description:s}}var S=class{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Fe(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Fe(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Y,ctx:{common:t.parent.common,data:t.data,parsedType:Fe(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Bt(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let i=this.safeParse(t,r);if(i.success)return i.data;throw i.error}safeParse(t,r){var i;let s={common:{issues:[],async:(i=r?.async)!==null&&i!==void 0?i:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Fe(t)},n=this._parseSync({data:t,path:s.path,parent:s});return Fn(s,n)}async parseAsync(t,r){let i=await this.safeParseAsync(t,r);if(i.success)return i.data;throw i.error}async safeParseAsync(t,r){let i={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Fe(t)},s=this._parse({data:t,path:i.path,parent:i}),n=await(Bt(s)?s:Promise.resolve(s));return Fn(i,n)}refine(t,r){let i=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,n)=>{let a=t(s),o=()=>n.addIssue({code:p.custom,...i(s)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(t,r){return this._refinement((i,s)=>t(i)?!0:(s.addIssue(typeof r=="function"?r(i,s):r),!1))}_refinement(t){return new ne({schema:this,typeName:w.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return de.create(this,this._def)}nullable(){return Ee.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Pe.create(this,this._def)}promise(){return Me.create(this,this._def)}or(t){return Xe.create([this,t],this._def)}and(t){return Qe.create(this,t,this._def)}transform(t){return new ne({...k(this._def),schema:this,typeName:w.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new it({...k(this._def),innerType:this,defaultValue:r,typeName:w.ZodDefault})}brand(){return new Ut({typeName:w.ZodBranded,type:this,...k(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new st({...k(this._def),innerType:this,catchValue:r,typeName:w.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Wt.create(this,t)}readonly(){return nt.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},$c=/^c[^\s-]{8,}$/i,Mc=/^[0-9a-z]+$/,Bc=/^[0-9A-HJKMNP-TV-Z]{26}$/,Uc=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Wc=/^[a-z0-9_-]{21}$/i,Gc=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Zc=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,zc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Si,qc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Hc=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Kc=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Bn="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Yc=new RegExp(`^${Bn}$`);function Un(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function Xc(e){return new RegExp(`^${Un(e)}$`)}function Wn(e){let t=`${Bn}T${Un(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function Qc(e,t){return!!((t==="v4"||!t)&&qc.test(e)||(t==="v6"||!t)&&Hc.test(e))}var je=class e extends S{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==g.string){let n=this._getOrReturnCtx(t);return d(n,{code:p.invalid_type,expected:g.string,received:n.parsedType}),E}let i=new Y,s;for(let n of this._def.checks)if(n.kind==="min")t.data.length<n.value&&(s=this._getOrReturnCtx(t,s),d(s,{code:p.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),i.dirty());else if(n.kind==="max")t.data.length>n.value&&(s=this._getOrReturnCtx(t,s),d(s,{code:p.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),i.dirty());else if(n.kind==="length"){let a=t.data.length>n.value,o=t.data.length<n.value;(a||o)&&(s=this._getOrReturnCtx(t,s),a?d(s,{code:p.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):o&&d(s,{code:p.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),i.dirty())}else if(n.kind==="email")Zc.test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{validation:"email",code:p.invalid_string,message:n.message}),i.dirty());else if(n.kind==="emoji")Si||(Si=new RegExp(zc,"u")),Si.test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{validation:"emoji",code:p.invalid_string,message:n.message}),i.dirty());else if(n.kind==="uuid")Uc.test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{validation:"uuid",code:p.invalid_string,message:n.message}),i.dirty());else if(n.kind==="nanoid")Wc.test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{validation:"nanoid",code:p.invalid_string,message:n.message}),i.dirty());else if(n.kind==="cuid")$c.test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{validation:"cuid",code:p.invalid_string,message:n.message}),i.dirty());else if(n.kind==="cuid2")Mc.test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{validation:"cuid2",code:p.invalid_string,message:n.message}),i.dirty());else if(n.kind==="ulid")Bc.test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{validation:"ulid",code:p.invalid_string,message:n.message}),i.dirty());else if(n.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),d(s,{validation:"url",code:p.invalid_string,message:n.message}),i.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{validation:"regex",code:p.invalid_string,message:n.message}),i.dirty())):n.kind==="trim"?t.data=t.data.trim():n.kind==="includes"?t.data.includes(n.value,n.position)||(s=this._getOrReturnCtx(t,s),d(s,{code:p.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),i.dirty()):n.kind==="toLowerCase"?t.data=t.data.toLowerCase():n.kind==="toUpperCase"?t.data=t.data.toUpperCase():n.kind==="startsWith"?t.data.startsWith(n.value)||(s=this._getOrReturnCtx(t,s),d(s,{code:p.invalid_string,validation:{startsWith:n.value},message:n.message}),i.dirty()):n.kind==="endsWith"?t.data.endsWith(n.value)||(s=this._getOrReturnCtx(t,s),d(s,{code:p.invalid_string,validation:{endsWith:n.value},message:n.message}),i.dirty()):n.kind==="datetime"?Wn(n).test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{code:p.invalid_string,validation:"datetime",message:n.message}),i.dirty()):n.kind==="date"?Yc.test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{code:p.invalid_string,validation:"date",message:n.message}),i.dirty()):n.kind==="time"?Xc(n).test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{code:p.invalid_string,validation:"time",message:n.message}),i.dirty()):n.kind==="duration"?Gc.test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{validation:"duration",code:p.invalid_string,message:n.message}),i.dirty()):n.kind==="ip"?Qc(t.data,n.version)||(s=this._getOrReturnCtx(t,s),d(s,{validation:"ip",code:p.invalid_string,message:n.message}),i.dirty()):n.kind==="base64"?Kc.test(t.data)||(s=this._getOrReturnCtx(t,s),d(s,{validation:"base64",code:p.invalid_string,message:n.message}),i.dirty()):R.assertNever(n);return{status:i.value,value:t.data}}_regex(t,r,i){return this.refinement(s=>t.test(s),{validation:r,code:p.invalid_string,..._.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",..._.errToObj(t)})}url(t){return this._addCheck({kind:"url",..._.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",..._.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",..._.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",..._.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",..._.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",..._.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",..._.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",..._.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",..._.errToObj(t)})}datetime(t){var r,i;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:(r=t?.offset)!==null&&r!==void 0?r:!1,local:(i=t?.local)!==null&&i!==void 0?i:!1,..._.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,..._.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",..._.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,..._.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,..._.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,..._.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,..._.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,..._.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,..._.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,..._.errToObj(r)})}nonempty(t){return this.min(1,_.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};je.create=e=>{var t;return new je({checks:[],typeName:w.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...k(e)})};function Jc(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,s=r>i?r:i,n=parseInt(e.toFixed(s).replace(".","")),a=parseInt(t.toFixed(s).replace(".",""));return n%a/Math.pow(10,s)}var Ze=class e extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==g.number){let n=this._getOrReturnCtx(t);return d(n,{code:p.invalid_type,expected:g.number,received:n.parsedType}),E}let i,s=new Y;for(let n of this._def.checks)n.kind==="int"?R.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),d(i,{code:p.invalid_type,expected:"integer",received:"float",message:n.message}),s.dirty()):n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(i=this._getOrReturnCtx(t,i),d(i,{code:p.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(i=this._getOrReturnCtx(t,i),d(i,{code:p.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="multipleOf"?Jc(t.data,n.value)!==0&&(i=this._getOrReturnCtx(t,i),d(i,{code:p.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):n.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),d(i,{code:p.not_finite,message:n.message}),s.dirty()):R.assertNever(n);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,_.toString(r))}gt(t,r){return this.setLimit("min",t,!1,_.toString(r))}lte(t,r){return this.setLimit("max",t,!0,_.toString(r))}lt(t,r){return this.setLimit("max",t,!1,_.toString(r))}setLimit(t,r,i,s){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:_.toString(s)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:_.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:_.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:_.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&R.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(r)&&Number.isFinite(t)}};Ze.create=e=>new Ze({checks:[],typeName:w.ZodNumber,coerce:e?.coerce||!1,...k(e)});var ze=class e extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==g.bigint){let n=this._getOrReturnCtx(t);return d(n,{code:p.invalid_type,expected:g.bigint,received:n.parsedType}),E}let i,s=new Y;for(let n of this._def.checks)n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(i=this._getOrReturnCtx(t,i),d(i,{code:p.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(i=this._getOrReturnCtx(t,i),d(i,{code:p.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="multipleOf"?t.data%n.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),d(i,{code:p.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):R.assertNever(n);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,_.toString(r))}gt(t,r){return this.setLimit("min",t,!1,_.toString(r))}lte(t,r){return this.setLimit("max",t,!0,_.toString(r))}lt(t,r){return this.setLimit("max",t,!1,_.toString(r))}setLimit(t,r,i,s){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:_.toString(s)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:_.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};ze.create=e=>{var t;return new ze({checks:[],typeName:w.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...k(e)})};var qe=class extends S{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==g.boolean){let i=this._getOrReturnCtx(t);return d(i,{code:p.invalid_type,expected:g.boolean,received:i.parsedType}),E}return J(t.data)}};qe.create=e=>new qe({typeName:w.ZodBoolean,coerce:e?.coerce||!1,...k(e)});var He=class e extends S{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==g.date){let n=this._getOrReturnCtx(t);return d(n,{code:p.invalid_type,expected:g.date,received:n.parsedType}),E}if(isNaN(t.data.getTime())){let n=this._getOrReturnCtx(t);return d(n,{code:p.invalid_date}),E}let i=new Y,s;for(let n of this._def.checks)n.kind==="min"?t.data.getTime()<n.value&&(s=this._getOrReturnCtx(t,s),d(s,{code:p.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),i.dirty()):n.kind==="max"?t.data.getTime()>n.value&&(s=this._getOrReturnCtx(t,s),d(s,{code:p.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),i.dirty()):R.assertNever(n);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:_.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:_.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};He.create=e=>new He({checks:[],coerce:e?.coerce||!1,typeName:w.ZodDate,...k(e)});var bt=class extends S{_parse(t){if(this._getType(t)!==g.symbol){let i=this._getOrReturnCtx(t);return d(i,{code:p.invalid_type,expected:g.symbol,received:i.parsedType}),E}return J(t.data)}};bt.create=e=>new bt({typeName:w.ZodSymbol,...k(e)});var Ke=class extends S{_parse(t){if(this._getType(t)!==g.undefined){let i=this._getOrReturnCtx(t);return d(i,{code:p.invalid_type,expected:g.undefined,received:i.parsedType}),E}return J(t.data)}};Ke.create=e=>new Ke({typeName:w.ZodUndefined,...k(e)});var Ye=class extends S{_parse(t){if(this._getType(t)!==g.null){let i=this._getOrReturnCtx(t);return d(i,{code:p.invalid_type,expected:g.null,received:i.parsedType}),E}return J(t.data)}};Ye.create=e=>new Ye({typeName:w.ZodNull,...k(e)});var $e=class extends S{constructor(){super(...arguments),this._any=!0}_parse(t){return J(t.data)}};$e.create=e=>new $e({typeName:w.ZodAny,...k(e)});var Re=class extends S{constructor(){super(...arguments),this._unknown=!0}_parse(t){return J(t.data)}};Re.create=e=>new Re({typeName:w.ZodUnknown,...k(e)});var xe=class extends S{_parse(t){let r=this._getOrReturnCtx(t);return d(r,{code:p.invalid_type,expected:g.never,received:r.parsedType}),E}};xe.create=e=>new xe({typeName:w.ZodNever,...k(e)});var wt=class extends S{_parse(t){if(this._getType(t)!==g.undefined){let i=this._getOrReturnCtx(t);return d(i,{code:p.invalid_type,expected:g.void,received:i.parsedType}),E}return J(t.data)}};wt.create=e=>new wt({typeName:w.ZodVoid,...k(e)});var Pe=class e extends S{_parse(t){let{ctx:r,status:i}=this._processInputParams(t),s=this._def;if(r.parsedType!==g.array)return d(r,{code:p.invalid_type,expected:g.array,received:r.parsedType}),E;if(s.exactLength!==null){let a=r.data.length>s.exactLength.value,o=r.data.length<s.exactLength.value;(a||o)&&(d(r,{code:a?p.too_big:p.too_small,minimum:o?s.exactLength.value:void 0,maximum:a?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),i.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(d(r,{code:p.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),i.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(d(r,{code:p.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((a,o)=>s.type._parseAsync(new me(r,a,r.path,o)))).then(a=>Y.mergeArray(i,a));let n=[...r.data].map((a,o)=>s.type._parseSync(new me(r,a,r.path,o)));return Y.mergeArray(i,n)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:_.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:_.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:_.toString(r)}})}nonempty(t){return this.min(1,t)}};Pe.create=(e,t)=>new Pe({type:e,minLength:null,maxLength:null,exactLength:null,typeName:w.ZodArray,...k(t)});function xt(e){if(e instanceof te){let t={};for(let r in e.shape){let i=e.shape[r];t[r]=de.create(xt(i))}return new te({...e._def,shape:()=>t})}else return e instanceof Pe?new Pe({...e._def,type:xt(e.element)}):e instanceof de?de.create(xt(e.unwrap())):e instanceof Ee?Ee.create(xt(e.unwrap())):e instanceof we?we.create(e.items.map(t=>xt(t))):e}var te=class e extends S{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=R.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==g.object){let f=this._getOrReturnCtx(t);return d(f,{code:p.invalid_type,expected:g.object,received:f.parsedType}),E}let{status:i,ctx:s}=this._processInputParams(t),{shape:n,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof xe&&this._def.unknownKeys==="strip"))for(let f in s.data)a.includes(f)||o.push(f);let c=[];for(let f of a){let l=n[f],h=s.data[f];c.push({key:{status:"valid",value:f},value:l._parse(new me(s,h,s.path,f)),alwaysSet:f in s.data})}if(this._def.catchall instanceof xe){let f=this._def.unknownKeys;if(f==="passthrough")for(let l of o)c.push({key:{status:"valid",value:l},value:{status:"valid",value:s.data[l]}});else if(f==="strict")o.length>0&&(d(s,{code:p.unrecognized_keys,keys:o}),i.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let f=this._def.catchall;for(let l of o){let h=s.data[l];c.push({key:{status:"valid",value:l},value:f._parse(new me(s,h,s.path,l)),alwaysSet:l in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let f=[];for(let l of c){let h=await l.key,m=await l.value;f.push({key:h,value:m,alwaysSet:l.alwaysSet})}return f}).then(f=>Y.mergeObjectSync(i,f)):Y.mergeObjectSync(i,c)}get shape(){return this._def.shape()}strict(t){return _.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,i)=>{var s,n,a,o;let c=(a=(n=(s=this._def).errorMap)===null||n===void 0?void 0:n.call(s,r,i).message)!==null&&a!==void 0?a:i.defaultError;return r.code==="unrecognized_keys"?{message:(o=_.errToObj(t).message)!==null&&o!==void 0?o:c}:{message:c}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:w.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};return R.objectKeys(t).forEach(i=>{t[i]&&this.shape[i]&&(r[i]=this.shape[i])}),new e({...this._def,shape:()=>r})}omit(t){let r={};return R.objectKeys(this.shape).forEach(i=>{t[i]||(r[i]=this.shape[i])}),new e({...this._def,shape:()=>r})}deepPartial(){return xt(this)}partial(t){let r={};return R.objectKeys(this.shape).forEach(i=>{let s=this.shape[i];t&&!t[i]?r[i]=s:r[i]=s.optional()}),new e({...this._def,shape:()=>r})}required(t){let r={};return R.objectKeys(this.shape).forEach(i=>{if(t&&!t[i])r[i]=this.shape[i];else{let n=this.shape[i];for(;n instanceof de;)n=n._def.innerType;r[i]=n}}),new e({...this._def,shape:()=>r})}keyof(){return Gn(R.objectKeys(this.shape))}};te.create=(e,t)=>new te({shape:()=>e,unknownKeys:"strip",catchall:xe.create(),typeName:w.ZodObject,...k(t)});te.strictCreate=(e,t)=>new te({shape:()=>e,unknownKeys:"strict",catchall:xe.create(),typeName:w.ZodObject,...k(t)});te.lazycreate=(e,t)=>new te({shape:e,unknownKeys:"strip",catchall:xe.create(),typeName:w.ZodObject,...k(t)});var Xe=class extends S{_parse(t){let{ctx:r}=this._processInputParams(t),i=this._def.options;function s(n){for(let o of n)if(o.result.status==="valid")return o.result;for(let o of n)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;let a=n.map(o=>new se(o.ctx.common.issues));return d(r,{code:p.invalid_union,unionErrors:a}),E}if(r.common.async)return Promise.all(i.map(async n=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await n._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(s);{let n,a=[];for(let c of i){let f={...r,common:{...r.common,issues:[]},parent:null},l=c._parseSync({data:r.data,path:r.path,parent:f});if(l.status==="valid")return l;l.status==="dirty"&&!n&&(n={result:l,ctx:f}),f.common.issues.length&&a.push(f.common.issues)}if(n)return r.common.issues.push(...n.ctx.common.issues),n.result;let o=a.map(c=>new se(c));return d(r,{code:p.invalid_union,unionErrors:o}),E}}get options(){return this._def.options}};Xe.create=(e,t)=>new Xe({options:e,typeName:w.ZodUnion,...k(t)});var Ie=e=>e instanceof Je?Ie(e.schema):e instanceof ne?Ie(e.innerType()):e instanceof et?[e.value]:e instanceof tt?e.options:e instanceof rt?R.objectValues(e.enum):e instanceof it?Ie(e._def.innerType):e instanceof Ke?[void 0]:e instanceof Ye?[null]:e instanceof de?[void 0,...Ie(e.unwrap())]:e instanceof Ee?[null,...Ie(e.unwrap())]:e instanceof Ut||e instanceof nt?Ie(e.unwrap()):e instanceof st?Ie(e._def.innerType):[],_r=class e extends S{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==g.object)return d(r,{code:p.invalid_type,expected:g.object,received:r.parsedType}),E;let i=this.discriminator,s=r.data[i],n=this.optionsMap.get(s);return n?r.common.async?n._parseAsync({data:r.data,path:r.path,parent:r}):n._parseSync({data:r.data,path:r.path,parent:r}):(d(r,{code:p.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),E)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,i){let s=new Map;for(let n of r){let a=Ie(n.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let o of a){if(s.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);s.set(o,n)}}return new e({typeName:w.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:s,...k(i)})}};function Ri(e,t){let r=Fe(e),i=Fe(t);if(e===t)return{valid:!0,data:e};if(r===g.object&&i===g.object){let s=R.objectKeys(t),n=R.objectKeys(e).filter(o=>s.indexOf(o)!==-1),a={...e,...t};for(let o of n){let c=Ri(e[o],t[o]);if(!c.valid)return{valid:!1};a[o]=c.data}return{valid:!0,data:a}}else if(r===g.array&&i===g.array){if(e.length!==t.length)return{valid:!1};let s=[];for(let n=0;n<e.length;n++){let a=e[n],o=t[n],c=Ri(a,o);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===g.date&&i===g.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Qe=class extends S{_parse(t){let{status:r,ctx:i}=this._processInputParams(t),s=(n,a)=>{if(Ti(n)||Ti(a))return E;let o=Ri(n.value,a.value);return o.valid?((Ii(n)||Ii(a))&&r.dirty(),{status:r.value,value:o.data}):(d(i,{code:p.invalid_intersection_types}),E)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([n,a])=>s(n,a)):s(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};Qe.create=(e,t,r)=>new Qe({left:e,right:t,typeName:w.ZodIntersection,...k(r)});var we=class e extends S{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==g.array)return d(i,{code:p.invalid_type,expected:g.array,received:i.parsedType}),E;if(i.data.length<this._def.items.length)return d(i,{code:p.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),E;!this._def.rest&&i.data.length>this._def.items.length&&(d(i,{code:p.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let n=[...i.data].map((a,o)=>{let c=this._def.items[o]||this._def.rest;return c?c._parse(new me(i,a,i.path,o)):null}).filter(a=>!!a);return i.common.async?Promise.all(n).then(a=>Y.mergeArray(r,a)):Y.mergeArray(r,n)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};we.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new we({items:e,typeName:w.ZodTuple,rest:null,...k(t)})};var br=class e extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==g.object)return d(i,{code:p.invalid_type,expected:g.object,received:i.parsedType}),E;let s=[],n=this._def.keyType,a=this._def.valueType;for(let o in i.data)s.push({key:n._parse(new me(i,o,i.path,o)),value:a._parse(new me(i,i.data[o],i.path,o)),alwaysSet:o in i.data});return i.common.async?Y.mergeObjectAsync(r,s):Y.mergeObjectSync(r,s)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof S?new e({keyType:t,valueType:r,typeName:w.ZodRecord,...k(i)}):new e({keyType:je.create(),valueType:t,typeName:w.ZodRecord,...k(r)})}},Et=class extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==g.map)return d(i,{code:p.invalid_type,expected:g.map,received:i.parsedType}),E;let s=this._def.keyType,n=this._def.valueType,a=[...i.data.entries()].map(([o,c],f)=>({key:s._parse(new me(i,o,i.path,[f,"key"])),value:n._parse(new me(i,c,i.path,[f,"value"]))}));if(i.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let c of a){let f=await c.key,l=await c.value;if(f.status==="aborted"||l.status==="aborted")return E;(f.status==="dirty"||l.status==="dirty")&&r.dirty(),o.set(f.value,l.value)}return{status:r.value,value:o}})}else{let o=new Map;for(let c of a){let f=c.key,l=c.value;if(f.status==="aborted"||l.status==="aborted")return E;(f.status==="dirty"||l.status==="dirty")&&r.dirty(),o.set(f.value,l.value)}return{status:r.value,value:o}}}};Et.create=(e,t,r)=>new Et({valueType:t,keyType:e,typeName:w.ZodMap,...k(r)});var Ct=class e extends S{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==g.set)return d(i,{code:p.invalid_type,expected:g.set,received:i.parsedType}),E;let s=this._def;s.minSize!==null&&i.data.size<s.minSize.value&&(d(i,{code:p.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&i.data.size>s.maxSize.value&&(d(i,{code:p.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());let n=this._def.valueType;function a(c){let f=new Set;for(let l of c){if(l.status==="aborted")return E;l.status==="dirty"&&r.dirty(),f.add(l.value)}return{status:r.value,value:f}}let o=[...i.data.values()].map((c,f)=>n._parse(new me(i,c,i.path,f)));return i.common.async?Promise.all(o).then(c=>a(c)):a(o)}min(t,r){return new e({...this._def,minSize:{value:t,message:_.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:_.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Ct.create=(e,t)=>new Ct({valueType:e,minSize:null,maxSize:null,typeName:w.ZodSet,...k(t)});var wr=class e extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==g.function)return d(r,{code:p.invalid_type,expected:g.function,received:r.parsedType}),E;function i(o,c){return xr({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,yr(),_t].filter(f=>!!f),issueData:{code:p.invalid_arguments,argumentsError:c}})}function s(o,c){return xr({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,yr(),_t].filter(f=>!!f),issueData:{code:p.invalid_return_type,returnTypeError:c}})}let n={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof Me){let o=this;return J(async function(...c){let f=new se([]),l=await o._def.args.parseAsync(c,n).catch(x=>{throw f.addIssue(i(c,x)),f}),h=await Reflect.apply(a,this,l);return await o._def.returns._def.type.parseAsync(h,n).catch(x=>{throw f.addIssue(s(h,x)),f})})}else{let o=this;return J(function(...c){let f=o._def.args.safeParse(c,n);if(!f.success)throw new se([i(c,f.error)]);let l=Reflect.apply(a,this,f.data),h=o._def.returns.safeParse(l,n);if(!h.success)throw new se([s(l,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:we.create(t).rest(Re.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,i){return new e({args:t||we.create([]).rest(Re.create()),returns:r||Re.create(),typeName:w.ZodFunction,...k(i)})}},Je=class extends S{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Je.create=(e,t)=>new Je({getter:e,typeName:w.ZodLazy,...k(t)});var et=class extends S{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return d(r,{received:r.data,code:p.invalid_literal,expected:this._def.value}),E}return{status:"valid",value:t.data}}get value(){return this._def.value}};et.create=(e,t)=>new et({value:e,typeName:w.ZodLiteral,...k(t)});function Gn(e,t){return new tt({values:e,typeName:w.ZodEnum,...k(t)})}var tt=class e extends S{constructor(){super(...arguments),jt.set(this,void 0)}_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),i=this._def.values;return d(r,{expected:R.joinValues(i),received:r.parsedType,code:p.invalid_type}),E}if(vr(this,jt,"f")||Mn(this,jt,new Set(this._def.values),"f"),!vr(this,jt,"f").has(t.data)){let r=this._getOrReturnCtx(t),i=this._def.values;return d(r,{received:r.data,code:p.invalid_enum_value,options:i}),E}return J(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(i=>!t.includes(i)),{...this._def,...r})}};jt=new WeakMap;tt.create=Gn;var rt=class extends S{constructor(){super(...arguments),$t.set(this,void 0)}_parse(t){let r=R.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==g.string&&i.parsedType!==g.number){let s=R.objectValues(r);return d(i,{expected:R.joinValues(s),received:i.parsedType,code:p.invalid_type}),E}if(vr(this,$t,"f")||Mn(this,$t,new Set(R.getValidEnumValues(this._def.values)),"f"),!vr(this,$t,"f").has(t.data)){let s=R.objectValues(r);return d(i,{received:i.data,code:p.invalid_enum_value,options:s}),E}return J(t.data)}get enum(){return this._def.values}};$t=new WeakMap;rt.create=(e,t)=>new rt({values:e,typeName:w.ZodNativeEnum,...k(t)});var Me=class extends S{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==g.promise&&r.common.async===!1)return d(r,{code:p.invalid_type,expected:g.promise,received:r.parsedType}),E;let i=r.parsedType===g.promise?r.data:Promise.resolve(r.data);return J(i.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Me.create=(e,t)=>new Me({type:e,typeName:w.ZodPromise,...k(t)});var ne=class extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===w.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:i}=this._processInputParams(t),s=this._def.effect||null,n={addIssue:a=>{d(i,a),a.fatal?r.abort():r.dirty()},get path(){return i.path}};if(n.addIssue=n.addIssue.bind(n),s.type==="preprocess"){let a=s.transform(i.data,n);if(i.common.async)return Promise.resolve(a).then(async o=>{if(r.value==="aborted")return E;let c=await this._def.schema._parseAsync({data:o,path:i.path,parent:i});return c.status==="aborted"?E:c.status==="dirty"||r.value==="dirty"?vt(c.value):c});{if(r.value==="aborted")return E;let o=this._def.schema._parseSync({data:a,path:i.path,parent:i});return o.status==="aborted"?E:o.status==="dirty"||r.value==="dirty"?vt(o.value):o}}if(s.type==="refinement"){let a=o=>{let c=s.refinement(o,n);if(i.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(i.common.async===!1){let o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?E:(o.status==="dirty"&&r.dirty(),a(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>o.status==="aborted"?E:(o.status==="dirty"&&r.dirty(),a(o.value).then(()=>({status:r.value,value:o.value}))))}if(s.type==="transform")if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Mt(a))return a;let o=s.transform(a.value,n);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:o}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>Mt(a)?Promise.resolve(s.transform(a.value,n)).then(o=>({status:r.value,value:o})):a);R.assertNever(s)}};ne.create=(e,t,r)=>new ne({schema:e,typeName:w.ZodEffects,effect:t,...k(r)});ne.createWithPreprocess=(e,t,r)=>new ne({schema:t,effect:{type:"preprocess",transform:e},typeName:w.ZodEffects,...k(r)});var de=class extends S{_parse(t){return this._getType(t)===g.undefined?J(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};de.create=(e,t)=>new de({innerType:e,typeName:w.ZodOptional,...k(t)});var Ee=class extends S{_parse(t){return this._getType(t)===g.null?J(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ee.create=(e,t)=>new Ee({innerType:e,typeName:w.ZodNullable,...k(t)});var it=class extends S{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return r.parsedType===g.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};it.create=(e,t)=>new it({innerType:e,typeName:w.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...k(t)});var st=class extends S{_parse(t){let{ctx:r}=this._processInputParams(t),i={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Bt(s)?s.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new se(i.common.issues)},input:i.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new se(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};st.create=(e,t)=>new st({innerType:e,typeName:w.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...k(t)});var kt=class extends S{_parse(t){if(this._getType(t)!==g.nan){let i=this._getOrReturnCtx(t);return d(i,{code:p.invalid_type,expected:g.nan,received:i.parsedType}),E}return{status:"valid",value:t.data}}};kt.create=e=>new kt({typeName:w.ZodNaN,...k(e)});var el=Symbol("zod_brand"),Ut=class extends S{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}},Wt=class e extends S{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{let n=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?E:n.status==="dirty"?(r.dirty(),vt(n.value)):this._def.out._parseAsync({data:n.value,path:i.path,parent:i})})();{let s=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?E:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:i.path,parent:i})}}static create(t,r){return new e({in:t,out:r,typeName:w.ZodPipeline})}},nt=class extends S{_parse(t){let r=this._def.innerType._parse(t),i=s=>(Mt(s)&&(s.value=Object.freeze(s.value)),s);return Bt(r)?r.then(s=>i(s)):i(r)}unwrap(){return this._def.innerType}};nt.create=(e,t)=>new nt({innerType:e,typeName:w.ZodReadonly,...k(t)});function Zn(e,t={},r){return e?$e.create().superRefine((i,s)=>{var n,a;if(!e(i)){let o=typeof t=="function"?t(i):typeof t=="string"?{message:t}:t,c=(a=(n=o.fatal)!==null&&n!==void 0?n:r)!==null&&a!==void 0?a:!0,f=typeof o=="string"?{message:o}:o;s.addIssue({code:"custom",...f,fatal:c})}}):$e.create()}var tl={object:te.lazycreate},w;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(w||(w={}));var rl=(e,t={message:`Input not instance of ${e.name}`})=>Zn(r=>r instanceof e,t),zn=je.create,qn=Ze.create,il=kt.create,sl=ze.create,Hn=qe.create,nl=He.create,al=bt.create,ol=Ke.create,ul=Ye.create,cl=$e.create,ll=Re.create,fl=xe.create,hl=wt.create,pl=Pe.create,dl=te.create,ml=te.strictCreate,gl=Xe.create,yl=_r.create,xl=Qe.create,vl=we.create,_l=br.create,bl=Et.create,wl=Ct.create,El=wr.create,Cl=Je.create,kl=et.create,Sl=tt.create,Al=rt.create,Tl=Me.create,jn=ne.create,Il=de.create,Rl=Ee.create,Pl=ne.createWithPreprocess,Nl=Wt.create,Ol=()=>zn().optional(),Ll=()=>qn().optional(),Dl=()=>Hn().optional(),Vl={string:e=>je.create({...e,coerce:!0}),number:e=>Ze.create({...e,coerce:!0}),boolean:e=>qe.create({...e,coerce:!0}),bigint:e=>ze.create({...e,coerce:!0}),date:e=>He.create({...e,coerce:!0})},Fl=E,Vh=Object.freeze({__proto__:null,defaultErrorMap:_t,setErrorMap:Fc,getErrorMap:yr,makeIssue:xr,EMPTY_PATH:jc,addIssueToContext:d,ParseStatus:Y,INVALID:E,DIRTY:vt,OK:J,isAborted:Ti,isDirty:Ii,isValid:Mt,isAsync:Bt,get util(){return R},get objectUtil(){return Ai},ZodParsedType:g,getParsedType:Fe,ZodType:S,datetimeRegex:Wn,ZodString:je,ZodNumber:Ze,ZodBigInt:ze,ZodBoolean:qe,ZodDate:He,ZodSymbol:bt,ZodUndefined:Ke,ZodNull:Ye,ZodAny:$e,ZodUnknown:Re,ZodNever:xe,ZodVoid:wt,ZodArray:Pe,ZodObject:te,ZodUnion:Xe,ZodDiscriminatedUnion:_r,ZodIntersection:Qe,ZodTuple:we,ZodRecord:br,ZodMap:Et,ZodSet:Ct,ZodFunction:wr,ZodLazy:Je,ZodLiteral:et,ZodEnum:tt,ZodNativeEnum:rt,ZodPromise:Me,ZodEffects:ne,ZodTransformer:ne,ZodOptional:de,ZodNullable:Ee,ZodDefault:it,ZodCatch:st,ZodNaN:kt,BRAND:el,ZodBranded:Ut,ZodPipeline:Wt,ZodReadonly:nt,custom:Zn,Schema:S,ZodSchema:S,late:tl,get ZodFirstPartyTypeKind(){return w},coerce:Vl,any:cl,array:pl,bigint:sl,boolean:Hn,date:nl,discriminatedUnion:yl,effect:jn,enum:Sl,function:El,instanceof:rl,intersection:xl,lazy:Cl,literal:kl,map:bl,nan:il,nativeEnum:Al,never:fl,null:ul,nullable:Rl,number:qn,object:dl,oboolean:Dl,onumber:Ll,optional:Il,ostring:Ol,pipeline:Nl,preprocess:Pl,promise:Tl,record:_l,set:wl,strictObject:ml,string:zn,symbol:al,transformer:jn,tuple:vl,undefined:ol,union:gl,unknown:ll,void:hl,NEVER:Fl,ZodIssueCode:p,quotelessJson:Vc,ZodError:se});export{Vh as a,Di as b,Ul as c,mu as d,Uf as e,Lh as f};