@telia-ace/alliance-internal-node-utilities 1.1.2 → 1.1.3

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.
@@ -0,0 +1,52 @@
1
+ import { createRequire as c__createRequire } from 'node:module';
2
+ const require = c__createRequire(import.meta.url);
3
+ import{a as _r,b as Pe,c as Si,h as re}from"./chunk-IH6WNCNW.js";var Ai=Pe((br,wr)=>{"use strict";(function(e,t,r){typeof br=="object"?(wr.exports=r(),wr.exports.default=r()):typeof define=="function"&&define.amd?define(r):t[e]=r()})("slugify",br,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 Hs=Pe((Pf,qs)=>{"use strict";var lt=1e3,ft=lt*60,ht=ft*60,Be=ht*24,au=Be*7,ou=Be*365.25;qs.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return uu(e);if(r==="number"&&isFinite(e))return t.long?lu(e):cu(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function uu(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*ou;case"weeks":case"week":case"w":return r*au;case"days":case"day":case"d":return r*Be;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ht;case"minutes":case"minute":case"mins":case"min":case"m":return r*ft;case"seconds":case"second":case"secs":case"sec":case"s":return r*lt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function cu(e){var t=Math.abs(e);return t>=Be?Math.round(e/Be)+"d":t>=ht?Math.round(e/ht)+"h":t>=ft?Math.round(e/ft)+"m":t>=lt?Math.round(e/lt)+"s":e+"ms"}function lu(e){var t=Math.abs(e);return t>=Be?tr(e,t,Be,"day"):t>=ht?tr(e,t,ht,"hour"):t>=ft?tr(e,t,ft,"minute"):t>=lt?tr(e,t,lt,"second"):e+" ms"}function tr(e,t,r,i){var s=t>=r*1.5;return Math.round(e/r)+" "+i+(s?"s":"")}});var ii=Pe((Nf,Ks)=>{"use strict";function fu(e){r.debug=r,r.default=r,r.coerce=c,r.disable=n,r.enable=s,r.enabled=a,r.humanize=Hs(),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,w,$;function D(...F){if(!D.enabled)return;let W=D,Ee=Number(new Date),_=Ee-(h||Ee);W.diff=_,W.prev=h,W.curr=Ee,h=Ee,F[0]=r.coerce(F[0]),typeof F[0]!="string"&&F.unshift("%O");let O=0;F[0]=F[0].replace(/%([a-zA-Z%])/g,(M,q)=>{if(M==="%%")return"%";O++;let jt=r.formatters[q];if(typeof jt=="function"){let xr=F[O];M=jt.call(W,xr),F.splice(O,1),O--}return M}),r.formatArgs.call(W,F),(W.log||r.log).apply(W,F)}return D.namespace=l,D.useColors=r.useColors(),D.color=r.selectColor(l),D.extend=i,D.destroy=r.destroy,Object.defineProperty(D,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(w!==r.namespaces&&(w=r.namespaces,$=r.enabled(l)),$),set:F=>{m=F}}),typeof r.init=="function"&&r.init(D),D}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,m=(typeof l=="string"?l:"").split(/[\s,]+/),w=m.length;for(h=0;h<w;h++)m[h]&&(l=m[h].replace(/\*/g,".*?"),l[0]==="-"?r.skips.push(new RegExp("^"+l.slice(1)+"$")):r.names.push(new RegExp("^"+l+"$")))}function n(){let l=[...r.names.map(o),...r.skips.map(o).map(h=>"-"+h)].join(",");return r.enable(""),l}function a(l){if(l[l.length-1]==="*")return!0;let h,m;for(h=0,m=r.skips.length;h<m;h++)if(r.skips[h].test(l))return!1;for(h=0,m=r.names.length;h<m;h++)if(r.names[h].test(l))return!0;return!1}function o(l){return l.toString().substring(2,l.toString().length-2).replace(/\.\*\?$/,"*")}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}Ks.exports=fu});var Ys=Pe((ie,rr)=>{"use strict";ie.formatArgs=pu;ie.save=du;ie.load=mu;ie.useColors=hu;ie.storage=gu();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 hu(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1: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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function pu(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+rr.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 du(e){try{e?ie.storage.setItem("debug",e):ie.storage.removeItem("debug")}catch{}}function mu(){let e;try{e=ie.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function gu(){try{return localStorage}catch{}}rr.exports=ii()(ie);var{formatters:yu}=rr.exports;yu.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Qs=Pe((Of,Xs)=>{"use strict";Xs.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 en=Pe((Lf,Js)=>{"use strict";var xu=_r("os"),ge=Qs(),K=process.env,pt;ge("no-color")||ge("no-colors")||ge("color=false")?pt=!1:(ge("color")||ge("colors")||ge("color=true")||ge("color=always"))&&(pt=!0);"FORCE_COLOR"in K&&(pt=K.FORCE_COLOR.length===0||parseInt(K.FORCE_COLOR,10)!==0);function vu(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function _u(e){if(pt===!1)return 0;if(ge("color=16m")||ge("color=full")||ge("color=truecolor"))return 3;if(ge("color=256"))return 2;if(e&&!e.isTTY&&pt!==!0)return 0;let t=pt?1:0;if(process.platform==="win32"){let r=xu.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 si(e){let t=_u(e);return vu(t)}Js.exports={supportsColor:si,stdout:si(process.stdout),stderr:si(process.stderr)}});var rn=Pe((H,sr)=>{"use strict";var bu=_r("tty"),ir=_r("util");H.init=Tu;H.log=ku;H.formatArgs=Eu;H.save=Su;H.load=Au;H.useColors=wu;H.destroy=ir.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");H.colors=[6,2,3,4,5,1];try{let e=en();e&&(e.stderr||e).level>=2&&(H.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{}H.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 wu(){return"colors"in H.inspectOpts?!!H.inspectOpts.colors:bu.isatty(process.stderr.fd)}function Eu(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+"+sr.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Cu()+t+" "+e[0]}function Cu(){return H.inspectOpts.hideDate?"":new Date().toISOString()+" "}function ku(...e){return process.stderr.write(ir.format(...e)+`
6
+ `)}function Su(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Au(){return process.env.DEBUG}function Tu(e){e.inspectOpts={};let t=Object.keys(H.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=H.inspectOpts[t[r]]}sr.exports=ii()(H);var{formatters:tn}=sr.exports;tn.o=function(e){return this.inspectOpts.colors=this.useColors,ir.inspect(e,this.inspectOpts).split(`
7
+ `).map(t=>t.trim()).join(" ")};tn.O=function(e){return this.inspectOpts.colors=this.useColors,ir.inspect(e,this.inspectOpts)}});var sn=Pe((Vf,ni)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ni.exports=Ys():ni.exports=rn()});var Ti=Si(Ai(),1);function Ri(e,t="-"){return(0,Ti.default)(e,{strict:!0,replacement:t,lower:!0})}import{existsSync as Bn,rmSync as Un,writeFileSync as Wn}from"node:fs";import{resolve as Gn}from"node:path";function Tl(e){let t=Gn(process.cwd(),"index.html");Bn(t)&&Un(t,{force:!0});let r=qn(e);return Wn(t,r),t}function Zn(e){return e.reduce((t,{appImport:r,manifestImport:i},s)=>{let n=r+`
8
+ `+i;return s===0?n:t+`
9
+ `+n},"")}function zn(e){return"const apps = ["+e.reduce((r,{appVariableName:i,manifestVariableName:s})=>{let n=`{ app: ${i}, manifest: ${s} },`;return r+`
10
+ `+n},"")+`
11
+ ];`}function qn(e){let t=e.map(({packageName:s,appImportPath:n,manifestImportPath:a})=>{let o=Ri(s,""),c=`${o}App`,f=`${o}Manifest`;return{packageName:s,appVariableName:c,manifestVariableName:f,appImport:`import ${c} from '${Ii(n)}';`,manifestImport:`import ${f} from '${Ii(a)}';`}}),r=Zn(t),i=zn(t);return Hn.replaceAll("$imports;",r).replaceAll("$apps;",i)}var Hn=`
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 Ii(e){return e.replaceAll("\\","\\\\")}import{statSync as Ho,promises as Ko}from"node:fs";var Kn=/^[A-Za-z]:\//;function Pi(e=""){return e&&e.replace(/\\/g,"/").replace(Kn,t=>t.toUpperCase())}var Yn=/^[/\\]{2}/,Xn=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,Qn=/^[A-Za-z]:$/;var Er=function(e){if(e.length===0)return".";e=Pi(e);let t=e.match(Yn),r=Ce(e),i=e[e.length-1]==="/";return e=kr(e,!r),e.length===0?r?"/":i?"./":".":(i&&(e+="/"),Qn.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!Ce(e)?`/${e}`:e)},Mt=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?".":Er(t.replace(/\/\/+/g,"/"))};function Jn(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}var Cr=function(...e){e=e.map(i=>Pi(i));let t="",r=!1;for(let i=e.length-1;i>=-1&&!r;i--){let s=i>=0?e[i]:Jn();!s||s.length===0||(t=`${s}/${t}`,r=Ce(s))}return t=kr(t,!r),r&&!Ce(t)?`/${t}`:t.length>0?t:"."};function kr(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 Ce=function(e){return Xn.test(e)};var ra=[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],Fi=[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],ia="\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",ji="\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",Sr={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"},Ar="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",sa={5:Ar,"5module":Ar+" export import",6:Ar+" const class extends export import super"},na=/^in(stanceof)?$/,aa=new RegExp("["+ji+"]"),oa=new RegExp("["+ji+ia+"]");function Rr(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 ke(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&aa.test(String.fromCharCode(e)):t===!1?!1:Rr(e,Fi)}function it(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&&oa.test(String.fromCharCode(e)):t===!1?!1:Rr(e,Fi)||Rr(e,ra)}var I=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 I(e,{beforeExpr:!0,binop:t})}var oe={beforeExpr:!0},ee={startsExpr:!0},Nr={};function R(e,t){return t===void 0&&(t={}),t.keyword=e,Nr[e]=new I(e,t)}var u={num:new I("num",ee),regexp:new I("regexp",ee),string:new I("string",ee),name:new I("name",ee),privateId:new I("privateId",ee),eof:new I("eof"),bracketL:new I("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new I("]"),braceL:new I("{",{beforeExpr:!0,startsExpr:!0}),braceR:new I("}"),parenL:new I("(",{beforeExpr:!0,startsExpr:!0}),parenR:new I(")"),comma:new I(",",oe),semi:new I(";",oe),colon:new I(":",oe),dot:new I("."),question:new I("?",oe),questionDot:new I("?."),arrow:new I("=>",oe),template:new I("template"),invalidTemplate:new I("invalidTemplate"),ellipsis:new I("...",oe),backQuote:new I("`",ee),dollarBraceL:new I("${",{beforeExpr:!0,startsExpr:!0}),eq:new I("=",{beforeExpr:!0,isAssign:!0}),assign:new I("_=",{beforeExpr:!0,isAssign:!0}),incDec:new I("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new I("!/~",{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 I("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ae("%",10),star:ae("*",10),slash:ae("/",10),starstar:new I("**",{beforeExpr:!0}),coalesce:ae("??",1),_break:R("break"),_case:R("case",oe),_catch:R("catch"),_continue:R("continue"),_debugger:R("debugger"),_default:R("default",oe),_do:R("do",{isLoop:!0,beforeExpr:!0}),_else:R("else",oe),_finally:R("finally"),_for:R("for",{isLoop:!0}),_function:R("function",ee),_if:R("if"),_return:R("return",oe),_switch:R("switch"),_throw:R("throw",oe),_try:R("try"),_var:R("var"),_const:R("const"),_while:R("while",{isLoop:!0}),_with:R("with"),_new:R("new",{beforeExpr:!0,startsExpr:!0}),_this:R("this",ee),_super:R("super",ee),_class:R("class",ee),_extends:R("extends",oe),_export:R("export"),_import:R("import",ee),_null:R("null",ee),_true:R("true",ee),_false:R("false",ee),_in:R("in",{beforeExpr:!0,binop:7}),_instanceof:R("instanceof",{beforeExpr:!0,binop:7}),_typeof:R("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:R("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:R("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},le=/\r\n?|\n|\u2028|\u2029/,ua=new RegExp(le.source,"g");function st(e){return e===10||e===13||e===8232||e===8233}function $i(e,t,r){r===void 0&&(r=e.length);for(var i=t;i<r;i++){var s=e.charCodeAt(i);if(st(s))return i<r-1&&s===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}var Mi=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ue=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Bi=Object.prototype,ca=Bi.hasOwnProperty,la=Bi.toString,St=Object.hasOwn||function(e,t){return ca.call(e,t)},Ni=Array.isArray||function(e){return la.call(e)==="[object Array]"},Oi=Object.create(null);function Ne(e){return Oi[e]||(Oi[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Oe(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var fa=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ct=function(t,r){this.line=t,this.column=r};Ct.prototype.offset=function(t){return new Ct(this.line,this.column+t)};var Zt=function(t,r,i){this.start=r,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ui(e,t){for(var r=1,i=0;;){var s=$i(e,i,t);if(s<0)return new Ct(r,t-i);++r,i=s}}var Ir={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},Li=!1;function ha(e){var t={};for(var r in Ir)t[r]=e&&St(e,r)?e[r]:Ir[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Li&&typeof console=="object"&&console.warn&&(Li=!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),Ni(t.onToken)){var i=t.onToken;t.onToken=function(s){return i.push(s)}}return Ni(t.onComment)&&(t.onComment=pa(t,t.onComment)),t}function pa(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 Zt(this,a,o)),e.ranges&&(c.range=[s,n]),t.push(c)}}var kt=1,nt=2,Or=4,Wi=8,Gi=16,Zi=32,Lr=64,zi=128,At=256,Vr=kt|nt|At;function Dr(e,t){return nt|(e?Or:0)|(t?Wi:0)}var Ut=0,Fr=1,Ae=2,qi=3,Hi=4,Ki=5,Z=function(t,r,i){this.options=t=ha(t),this.sourceFile=t.sourceFile,this.keywords=Ne(sa[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";t.allowReserved!==!0&&(s=Sr[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(s+=" await")),this.reservedWords=Ne(s);var n=(s?s+" ":"")+Sr.strict;this.reservedWordsStrict=Ne(n),this.reservedWordsStrictBind=Ne(n+" "+Sr.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(kt),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&nt)>0};ve.inGenerator.get=function(){return(this.currentVarScope().flags&Wi)>0&&!this.currentVarScope().inClassFieldInit};ve.inAsync.get=function(){return(this.currentVarScope().flags&Or)>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&At)return!1;if(t.flags&nt)return(t.flags&Or)>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&Lr)>0||r||this.options.allowSuperOutsideMethod};ve.allowDirectSuper.get=function(){return(this.currentThisScope().flags&zi)>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&(nt|At))>0||r};ve.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&At)>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,da=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;X.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){ue.lastIndex=e,e+=ue.exec(this.input)[0].length;var t=da.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 zt=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 x=Z.prototype;x.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 jr={kind:"loop"},ma={kind:"switch"};x.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(ke(i,!0)){for(var s=r+1;it(i=this.input.charCodeAt(s),!0);)++s;if(i===92||i>55295&&i<56320)return!0;var n=this.input.slice(r,s);if(!na.test(n))return!0}return!1};x.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||!(it(r=this.input.charCodeAt(t+8))||r>55295&&r<56320))};x.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)}};x.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")};x.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};x.parseDoStatement=function(e){return this.next(),this.labels.push(jr),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")};x.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(jr),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=new zt,c=this.parseExpression(t>-1?"await":!0,o);return this.type===u._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),n&&a&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,o),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))};x.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,Et|(r?0:Pr),!1,t)};x.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")};x.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")};x.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(u.braceL),this.labels.push(ma),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")};x.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 ga=[];x.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Zi:0),this.checkLValPattern(e,t?Hi:Ae),this.expect(u.parenR),e};x.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")};x.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};x.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(jr),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};x.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")};x.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};x.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")};x.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};x.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")};x.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")};x.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")};x.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};x.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Fr:Ae,!1)};var Et=1,Pr=2,Yi=4;x.parseFunction=function(e,t,r,i,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===u.star&&t&Pr&&this.unexpected(),e.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&Et&&(e.id=t&Yi&&this.type!==u.name?null:this.parseIdent(),e.id&&!(t&Pr)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Fr:Ae:qi));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Dr(e.async,e.generator)),t&Et||(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&Et?"FunctionDeclaration":"FunctionExpression")};x.parseFunctionParams=function(e){this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};x.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"&&ya(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")};x.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&&Wt(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};x.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};x.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)};x.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&&Wt(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")};x.parseClassField=function(e){if(Wt(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Wt(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")};x.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(At|Lr);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")};x.parseClassId=function(e,t){this.type===u.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Ae,!1)):(t===!0&&this.unexpected(),e.id=null)};x.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts(null,!1):null};x.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};x.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];St(t,a.name)||(s?s.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}};function ya(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 Wt(e,t){var r=e.computed,i=e.key;return!r&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}x.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")};x.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")};x.parseExportDeclaration=function(e){return this.parseStatement(null)};x.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,Et|Yi,!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}};x.checkExport=function(e,t,r){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),St(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};x.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)};x.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)}};x.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};x.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")};x.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};x.parseImport=function(e){return this.next(),this.type===u.string?(e.specifiers=ga,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")};x.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,Ae),this.finishNode(e,"ImportSpecifier")};x.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Ae),this.finishNode(e,"ImportDefaultSpecifier")};x.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Ae),this.finishNode(e,"ImportNamespaceSpecifier")};x.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};x.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===u.string){var e=this.parseLiteral(this.value);return fa.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};x.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)};x.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=Ut);var i=t!==Ut;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===Ae&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(St(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==Ki&&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=Ut),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=Ut),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 me=function(t,r,i,s,n){this.token=t,this.isExpr=!!r,this.preserveSpace=!!i,this.override=s,this.generator=!!n},j={b_stat:new me("{",!1),b_expr:new me("{",!0),b_tmpl:new me("${",!1),p_stat:new me("(",!1),p_expr:new me("(",!0),q_tmpl:new me("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new me("function",!1),f_expr:new me("function",!0),f_expr_gen:new me("function",!0,!1,null,!0),f_gen:new me("function",!1,!1,null,!0)},at=Z.prototype;at.initialContext=function(){return[j.b_stat]};at.curContext=function(){return this.context[this.context.length-1]};at.braceIsBlock=function(e){var t=this.curContext();return t===j.f_expr||t===j.f_stat?!0:e===u.colon&&(t===j.b_stat||t===j.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===j.b_stat:e===u._var||e===u._const||e===u.name?!1:!this.exprAllowed};at.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};at.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};at.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===j.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)?j.b_stat:j.b_expr),this.exprAllowed=!0};u.dollarBraceL.updateContext=function(){this.context.push(j.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?j.p_stat:j.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()!==j.p_stat)&&!(e===u._return&&le.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===u.colon||e===u.braceL)&&this.curContext()===j.b_stat)?this.context.push(j.f_expr):this.context.push(j.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()===j.q_tmpl?this.context.pop():this.context.push(j.q_tmpl),this.exprAllowed=!1};u.star.updateContext=function(e){if(e===u._function){var t=this.context.length-1;this.context[t]===j.f_expr?this.context[t]=j.f_expr_gen:this.context[t]=j.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 E=Z.prototype;E.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}};E.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};E.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 zt,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};E.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};E.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)};E.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};E.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")};E.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"&&o.argument.type==="Identifier"?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):o.operator==="delete"&&Xi(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 Xi(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Xi(e.expression)}E.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};E.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}};E.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(u.arrow)};E.parseSubscriptAsyncArrow=function(e,t,r,i){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,i)};E.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 zt,m=this.yieldPos,w=this.awaitPos,$=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var D=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=w,this.awaitIdentPos=$,this.parseSubscriptAsyncArrow(t,r,D,a);this.checkExpressionErrors(h,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=w||this.awaitPos,this.awaitIdentPos=$||this.awaitIdentPos;var F=this.startNodeAt(t,r);F.callee=e,F.arguments=D,o&&(F.optional=c),e=this.finishNode(F,"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};E.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(j.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(j.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()}};E.parseExprAtomDefault=function(){this.unexpected()};E.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()};E.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")};E.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")};E.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")};E.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e};E.shouldParseArrow=function(e){return!this.canInsertSemicolon()};E.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 zt,m=this.yieldPos,w=this.awaitPos,$;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){$=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 D=this.lastTokEnd,F=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=w,this.parseParenArrowList(r,i,c,t);(!c.length||l)&&this.unexpected(this.lastTokStart),$&&this.unexpected($),this.checkExpressionErrors(h,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=w||this.awaitPos,c.length>1?(s=this.startNodeAt(a,o),s.expressions=c,this.finishNodeAt(s,"SequenceExpression",D,F)):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};E.parseParenItem=function(e){return e};E.parseParenArrowList=function(e,t,r,i){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,i)};var xa=[];E.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=xa,this.finishNode(e,"NewExpression")};E.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,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
40
+ `),cooked:this.value},this.next(),r.tail=this.type===u.backQuote,this.finishNode(r,"TemplateElement")};E.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")};E.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))};E.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")};E.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")};E.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")};E.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()};E.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")};E.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};E.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(Dr(t,i.generator)|Lr|(r?zi: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")};E.parseArrowExpression=function(e,t,r,i){var s=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(Dr(r,!1)|Gi),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")};E.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,Ki),e.body=this.parseBlock(!1,void 0,a&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()};E.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};E.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,Fr,t?null:r)}};E.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};E.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"))}};E.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};E.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};E.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};E.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")};E.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 Gt=Z.prototype;Gt.raise=function(e,t){var r=Ui(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};Gt.raiseRecoverable=Gt.raise;Gt.curPosition=function(){if(this.options.locations)return new Ct(this.curLine,this.pos-this.lineStart)};var Le=Z.prototype,va=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};Le.enterScope=function(e){this.scopeStack.push(new va(e))};Le.exitScope=function(){this.scopeStack.pop()};Le.treatFunctionsAsVarInScope=function(e){return e.flags&nt||!this.inModule&&e.flags&kt};Le.declareName=function(e,t,r){var i=!1;if(t===Ae){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&kt&&delete this.undefinedExports[e]}else if(t===Hi){var n=this.currentScope();n.lexical.push(e)}else if(t===qi){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&Zi&&c.lexical[0]===e)||!this.treatFunctionsAsVarInScope(c)&&c.functions.indexOf(e)>-1){i=!0;break}if(c.var.push(e),this.inModule&&c.flags&kt&&delete this.undefinedExports[e],c.flags&Vr)break}i&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};Le.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};Le.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Le.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Vr)return t}};Le.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Vr&&!(t.flags&Gi))return t}};var qt=function(t,r,i){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new Zt(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},Tt=Z.prototype;Tt.startNode=function(){return new qt(this,this.start,this.startLoc)};Tt.startNodeAt=function(e,t){return new qt(this,e,t)};function Qi(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}Tt.finishNode=function(e,t){return Qi.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Tt.finishNodeAt=function(e,t,r,i){return Qi.call(this,e,t,r,i)};Tt.copyNode=function(e){var t=new qt(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var Ji="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",es=Ji+" Extended_Pictographic",ts=es,rs=ts+" EBase EComp EMod EPres ExtPict",is=rs,_a=is,ba={9:Ji,10:es,11:ts,12:rs,13:is,14:_a},wa="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Ea={9:"",10:"",11:"",12:"",13:"",14:wa},Vi="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",ss="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",ns=ss+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",as=ns+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",os=as+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",us=os+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ca=us+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",ka={9:ss,10:ns,11:as,12:os,13:us,14:Ca},cs={};function Sa(e){var t=cs[e]={binary:Ne(ba[e]+" "+Vi),binaryOfStrings:Ne(Ea[e]),nonBinary:{General_Category:Ne(Vi),Script:Ne(ka[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(Bt=0,Tr=[9,10,11,12,13,14];Bt<Tr.length;Bt+=1)Di=Tr[Bt],Sa(Di);var Di,Bt,Tr,y=Z.prototype,_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=cs[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=[],this.backReferenceNames=[]};_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")};y.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(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.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var i=r[t];e.groupNames.indexOf(i)===-1&&e.raise("Invalid named capture referenced")}};y.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};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 ls(t)?(e.lastIntValue=t,e.advance(),!0):!1};function ls(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&&!ls(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)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};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+=Oe(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Oe(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),Aa(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function Aa(e){return ke(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),Ta(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function Ta(e){return it(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&&!Ht(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 fs(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function fs(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)&&Ra(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function Ra(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 hs=0,Se=1,ce=2;y.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Ia(t))return e.lastIntValue=-1,e.advance(),Se;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 hs};function Ia(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),Se}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s)}return hs};y.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){St(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 Se;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="";ps(t=e.current());)e.lastStringValue+=Oe(t),e.advance();return e.lastStringValue!==""};function ps(e){return fs(e)||e===95}y.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Pa(t=e.current());)e.lastStringValue+=Oe(t),e.advance();return e.lastStringValue!==""};function Pa(e){return ps(e)||Ht(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?Se:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),Se)};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||gs(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=Se,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=Se);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)?Se: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?Se: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()&&Na(r)||Oa(r)?!1:(e.advance(),e.lastIntValue=r,!0)};function Na(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 Oa(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 La(t)?(e.lastIntValue=t,e.advance(),!0):!1};function La(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 Ht(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;Ht(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function Ht(e){return e>=48&&e<=57}y.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;ds(r=e.current());)e.lastIntValue=16*e.lastIntValue+ms(r),e.advance();return e.pos!==t};function ds(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ms(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 gs(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function gs(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(!ds(s))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+ms(s),e.advance()}return!0};var $r=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new Zt(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 $r(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 $r(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 ke(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=$i(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&&!st(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&&Mi.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(),ke(t,!0)||t===92))return this.finishToken(u.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Oe(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 '"+Oe(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 Va(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function ys(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=ys(this.input.slice(t,this.pos)),++this.pos):ke(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=ys(this.input.slice(t,this.pos));return++this.pos,ke(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")),ke(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=Va(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)):(st(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(u.string,t)};var xs={};T.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===xs)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};T.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw xs;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(st(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+=`
41
+ `;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))}this.raise(this.start,"Unterminated template")};T.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
42
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Oe(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 st(t)?"":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(it(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?ke:it)(a,i)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=Oe(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=Nr[e]),this.finishToken(t,e)};var Da="8.11.3";Z.acorn={Parser:Z,version:Da,defaultOptions:Ir,Position:Ct,SourceLocation:Zt,getLineInfo:Ui,Node:qt,TokenType:I,tokTypes:u,keywordTypes:Nr,TokContext:me,tokContexts:j,isIdentifierChar:it,isIdentifierStart:ke,Token:$r,isNewLine:st,lineBreak:le,lineBreakG:ua,nonASCIIwhitespace:Mi};import{builtinModules as qr,createRequire as sf}from"node:module";import Ua,{realpathSync as Wa,statSync as Hr,promises as af}from"node:fs";var Xl=String.fromCharCode;var Fa=/\/$|\/\?|\/#/,ja=/^\.?\//;function $a(e="",t){return t?Fa.test(e):e.endsWith("/")}function Ma(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if($a(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 Ba(e){return e&&e!=="/"}function vs(e,...t){let r=e||"";for(let i of t.filter(s=>Ba(s)))if(r){let s=i.replace(ja,"");r=Ma(r)+s}else r=i;return r}var Ql=Symbol.for("ufo:protocolRelative");import{fileURLToPath as P,URL as B,pathToFileURL as Qt}from"node:url";import Ve from"node:assert";import Me from"node:process";import Kr,{dirname as pf}from"node:path";import Ga from"node:v8";import{format as Za,inspect as Gr}from"node:util";var Os=new Set(qr);function Zr(e){return e.replace(/\\/g,"/")}var za={}.hasOwnProperty,qa=/^([A-Z][a-z\d]*)+$/,Ha=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),Q={};function Mr(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var Ls=new Map,Ka="__node_internal_",_s;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"),Ha.has(o)?s.push(o.toLowerCase()):qa.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"} ${Mr(s,"or")}`,(n.length>0||a.length>0)&&(i+=" or ")),n.length>0&&(i+=`an instance of ${Mr(n,"or")}`,a.length>0&&(i+=" or ")),a.length>0&&(a.length>1?i+=`one of ${Mr(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(i+="an "),i+=`${a[0]}`)),i+=`. Received ${eo(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=Gr(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 Ls.set(e,t),Ya(r,e)}function Ya(e,t){return r;function r(...i){let s=Error.stackTraceLimit;zr()&&(Error.stackTraceLimit=0);let n=new e;zr()&&(Error.stackTraceLimit=s);let a=Ja(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}}),Qa(n),n.code=t,n}}function zr(){try{if(Ga.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):za.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function Xa(e){let t=Ka+e.name;return Object.defineProperty(e,"name",{value:t}),e}var Qa=Xa(function(e){let t=zr();return t&&(_s=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=_s),e});function Ja(e,t,r){let i=Ls.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(Za,null,t))}function eo(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}`:`${Gr(e,{depth:-1})}`;let t=Gr(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var Rt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:to}=Q,bs=new Map;function Vs(e,{base:t,specifier:r}){let i=bs.get(e);if(i)return i;let s;try{s=Ua.readFileSync(Kr.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 to(e,(t?`"${r}" from `:"")+P(t||r),c.message);throw f.cause=c,f}n.exists=!0,Rt.call(a,"name")&&typeof a.name=="string"&&(n.name=a.name),Rt.call(a,"main")&&typeof a.main=="string"&&(n.main=a.main),Rt.call(a,"exports")&&(n.exports=a.exports),Rt.call(a,"imports")&&(n.imports=a.imports),Rt.call(a,"type")&&(a.type==="commonjs"||a.type==="module")&&(n.type=a.type)}return bs.set(e,n),n}function Yr(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let s=Vs(P(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:P(t),exists:!1,type:"none"}}function ws(e){return Yr(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:ro}=Q,io={}.hasOwnProperty,so={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function no(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var Es={__proto__:null,"data:":ao,"file:":uo,"http:":Cs,"https:":Cs,"node:"(){return"builtin"}};function ao(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return no(t)}function oo(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 uo(e,t,r){let i=oo(e);if(i===".js"){let a=ws(e);return a!=="none"?a:"commonjs"}if(i===""){let a=ws(e);return a==="none"||a==="commonjs"?"commonjs":"module"}let s=so[i];if(s)return s;if(r)return;let n=P(e);throw new ro(i,n)}function Cs(){}function co(e,t){let r=e.protocol;return io.call(Es,r)&&Es[r](e,t,!0)||null}var Kt=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:gf,ERR_INVALID_MODULE_SPECIFIER:Jt,ERR_INVALID_PACKAGE_CONFIG:Ds,ERR_INVALID_PACKAGE_TARGET:lo,ERR_MODULE_NOT_FOUND:Xr,ERR_PACKAGE_IMPORT_NOT_DEFINED:fo,ERR_PACKAGE_PATH_NOT_EXPORTED:ho,ERR_UNSUPPORTED_DIR_IMPORT:po,ERR_UNSUPPORTED_RESOLVE_REQUEST:ks}=Q,Fs={}.hasOwnProperty,Ss=/(^|\\|\/)((\.|%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,As=/(^|\\|\/)((\.|%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,mo=/^\.|%|\\/,Yt=/\*/g,go=/%2f|%5c/i,Ts=new Set,yo=/[/\\]{2}/;function Rs(e,t,r,i,s,n,a){if(Me.noDeprecation)return;let o=P(i),c=yo.exec(a?e:t)!==null;Me.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 ${P(n)}`:""}.`,"DeprecationWarning","DEP0166")}function Is(e,t,r,i){if(Me.noDeprecation||co(e,{parentURL:r.href})!=="module")return;let n=P(e.href),a=P(new B(".",t)),o=P(r);i?Kr.resolve(a,i)!==n&&Me.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}.
43
+ Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):Me.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}.
44
+ Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function js(e){try{return Hr(e)}catch{}}function Br(e){let t=Hr(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r??!1}function xo(e,t,r){let i;if(t.main!==void 0){if(i=new B(t.main,e),Br(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),!Br(i));)i=void 0;if(i)return Is(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),!Br(i));)i=void 0;if(i)return Is(i,e,r,t.main),i;throw new Xr(P(new B(".",e)),P(r))}function vo(e,t,r){if(go.exec(e.pathname)!==null)throw new Jt(e.pathname,'must not include encoded "/" or "\\" characters',P(t));let i;try{i=P(e)}catch(n){let a=n;throw Object.defineProperty(a,"input",{value:String(e)}),Object.defineProperty(a,"module",{value:String(t)}),a}let s=js(i.endsWith("/")?i.slice(-1):i);if(s&&s.isDirectory()){let n=new po(i,P(t));throw n.url=String(e),n}if(!s||!s.isFile()){let n=new Xr(i||e.pathname,t&&P(t),!0);throw n.url=String(e),n}if(!r){let n=Wa(i),{search:a,hash:o}=e;e=Qt(n+(i.endsWith(Kr.sep)?"/":"")),e.search=a,e.hash=o}return e}function _o(e,t,r){return new fo(e,t&&P(new B(".",t)),P(r))}function Ur(e,t,r){return new ho(P(new B(".",t)),e,r&&P(r))}function bo(e,t,r,i,s){let n=`request is not a valid match in pattern "${t}" for the "${i?"imports":"exports"}" resolution of ${P(r)}`;throw new Jt(e,n,s&&P(s))}function It(e,t,r,i,s){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new lo(P(new B(".",r)),e,t,i,s&&P(s))}function wo(e,t,r,i,s,n,a,o,c){if(t!==""&&!n&&e[e.length-1]!=="/")throw It(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 w=n?Kt.call(Yt,e,()=>t):e+t;return Ms(w,i,c)}}throw It(r,e,i,a,s)}if(Ss.exec(e.slice(2))!==null)if(As.exec(e.slice(2))===null){if(!o){let m=n?r.replace("*",()=>t):r+t,w=n?Kt.call(Yt,e,()=>t):e;Rs(w,m,r,i,a,s,!0)}}else throw It(r,e,i,a,s);let f=new B(e,i),l=f.pathname,h=new B(".",i).pathname;if(!l.startsWith(h))throw It(r,e,i,a,s);if(t==="")return f;if(Ss.exec(t)!==null){let m=n?r.replace("*",()=>t):r+t;if(As.exec(t)===null){if(!o){let w=n?Kt.call(Yt,e,()=>t):e;Rs(w,m,r,i,a,s,!1)}}else bo(m,r,i,a,s)}return n?new B(Kt.call(Yt,f.href,()=>t)):new B(t,f)}function Eo(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function ot(e,t,r,i,s,n,a,o,c){if(typeof t=="string")return wo(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],w;try{w=ot(e,m,r,i,s,n,a,o,c)}catch($){let D=$;if(l=D,D.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw $}if(w!==void 0){if(w===null){l=null;continue}return w}}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(Eo(h))throw new Ds(P(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],w=ot(e,m,r,i,s,n,a,o,c);if(w===void 0)continue;return w}}return null}if(t===null)return null;throw It(i,t,e,a,s)}function Co(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 Ds(P(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 ko(e,t,r){if(Me.noDeprecation)return;let i=P(t);Ts.has(i+"|"+e)||(Ts.add(i+"|"+e),Me.emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" field module resolution of the package at ${i}${r?` imported from ${P(r)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155"))}function Ps(e,t,r,i,s){let n=r.exports;if(Co(n,e,i)&&(n={".":n}),Fs.call(n,t)&&!t.includes("*")&&!t.endsWith("/")){let l=n[t],h=ot(e,l,"",t,i,!1,!1,!1,s);if(h==null)throw Ur(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("/")&&ko(t,e,i);let m=l.slice(h+1);t.length>=l.length&&t.endsWith(m)&&$s(a,l)===1&&l.lastIndexOf("*")===h&&(a=l,o=t.slice(h,t.length-m.length))}}if(a){let l=n[a],h=ot(e,l,o,a,i,!0,!1,t.endsWith("/"),s);if(h==null)throw Ur(t,e,i);return h}throw Ur(t,e,i)}function $s(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 So(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){let n="is not a valid internal imports specifier name";throw new Jt(e,n,P(t))}let i,s=Yr(t);if(s.exists){i=Qt(s.pjsonPath);let n=s.imports;if(n)if(Fs.call(n,e)&&!e.includes("*")){let a=ot(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)&&$s(a,l)===1&&l.lastIndexOf("*")===h&&(a=l,o=e.slice(h,e.length-m.length))}}if(a){let l=n[a],h=ot(i,l,o,a,t,!0,!0,!1,r);if(h!=null)return h}}}throw _o(e,i,t)}function Ao(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(mo.exec(n)!==null&&(i=!1),!i)throw new Jt(e,"is not a valid package name",P(t));let a="."+(r===-1?"":e.slice(r));return{packageName:n,packageSubpath:a,isScoped:s}}function Ms(e,t,r){if(qr.includes(e))return new B("node:"+e);let{packageName:i,packageSubpath:s,isScoped:n}=Ao(e,t),a=Yr(t);if(a.exists){let l=Qt(a.pjsonPath);if(a.name===i&&a.exports!==void 0&&a.exports!==null)return Ps(l,s,a,t,r)}let o=new B("./node_modules/"+i+"/package.json",t),c=P(o),f;do{let l=js(c.slice(0,-13));if(!l||!l.isDirectory()){f=c,o=new B((n?"../../../../node_modules/":"../../../node_modules/")+i+"/package.json",o),c=P(o);continue}let h=Vs(c,{base:t,specifier:e});return h.exports!==void 0&&h.exports!==null?Ps(o,s,h,t,r):s==="."?xo(o,h,t):new B(s,o)}while(c.length!==f.length);throw new Xr(i,P(t),!1)}function To(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function Ro(e){return e===""?!1:e[0]==="/"?!0:To(e)}function Io(e,t,r,i){let s=t.protocol,a=s==="data:"||s==="http:"||s==="https:",o;if(Ro(e))try{o=new B(e,t)}catch(c){let f=new ks(e,t);throw f.cause=c,f}else if(s==="file:"&&e[0]==="#")o=So(e,t,r);else try{o=new B(e)}catch(c){if(a&&!qr.includes(e)){let f=new ks(e,t);throw f.cause=c,f}o=Ms(e,t,r)}return Ve(o!==void 0,"expected to be defined"),o.protocol!=="file:"?o:vo(o,t,i)}function Xt(e){return typeof e=="string"&&!e.startsWith("file://")?Zr(e):Zr(P(e))}function Wr(e){return Qt(Xt(e)).toString()}function Po(e){return typeof e!="string"&&(e=e.toString()),/(node|data|http|https|file):/.test(e)?e:Os.has(e)?"node:"+e:"file://"+encodeURI(Zr(e))}var No=new Set(["node","import"]),Oo=[".mjs",".cjs",".js",".json"],Lo=new Set(["ERR_MODULE_NOT_FOUND","ERR_UNSUPPORTED_DIR_IMPORT","MODULE_NOT_FOUND","ERR_PACKAGE_PATH_NOT_EXPORTED"]);function Ns(e,t,r){try{return Io(e,t,r)}catch(i){if(!Lo.has(i?.code))throw i}}function Vo(e,t={}){if(typeof e!="string")if(e instanceof URL)e=Xt(e);else throw new TypeError("input must be a `string` or `URL`");if(/(node|data|http|https):/.test(e))return e;if(Os.has(e))return"node:"+e;if(e.startsWith("file://")&&(e=Xt(e)),Ce(e))try{if(Hr(e).isFile())return Wr(e)}catch(a){if(a?.code!=="ENOENT")throw a}let r=t.conditions?new Set(t.conditions):No,i=(Array.isArray(t.url)?t.url:[t.url]).filter(Boolean).map(a=>new URL(Po(a.toString())));i.length===0&&i.push(new URL(Wr(process.cwd())));let s=[...i];for(let a of i)a.protocol==="file:"&&s.push(new URL("./",a),new URL(vs(a.pathname,"_index.js"),a),new URL("node_modules",a));let n;for(let a of s){if(n=Ns(e,a,r),n)break;for(let o of["","/index"]){for(let c of t.extensions||Oo)if(n=Ns(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 Wr(n)}function Do(e,t){return Vo(e,t)}function Fo(e,t){return Xt(Do(e,t))}function Bs(e,t){try{return Promise.resolve(Fo(e,t))}catch(r){return Promise.reject(r)}}var jo=Symbol.for("__confbox_fmt__"),$o=/^(\s+)/,Mo=/(\s+)$/;function Bo(e,t={}){let r=t.indent===void 0&&t.preserveIndentation!==!1&&e.slice(0,t?.sampleSize||1024),i=t.preserveWhitespace===!1?void 0:{start:$o.exec(e)?.[0]||"",end:Mo.exec(e)?.[0]||""};return{sample:r,whiteSpace:i}}function Qr(e,t,r){!t||typeof t!="object"||Object.defineProperty(t,jo,{enumerable:!1,configurable:!0,writable:!0,value:Bo(e,r)})}function Uo(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(_,O){let A=0,M=0;for(;A<_||!O;){let q=e.charCodeAt(i);if(q>=48&&q<=57)M=M*16+q-48;else if(q>=65&&q<=70)M=M*16+q-65+10;else if(q>=97&&q<=102)M=M*16+q-97+10;else break;i++,A++}return A<_&&(M=-1),M}function w(_){i=_,s="",n=0,a=16,h=0}function $(){let _=i;if(e.charCodeAt(i)===48)i++;else for(i++;i<e.length&&ut(e.charCodeAt(i));)i++;if(i<e.length&&e.charCodeAt(i)===46)if(i++,i<e.length&&ut(e.charCodeAt(i)))for(i++;i<e.length&&ut(e.charCodeAt(i));)i++;else return h=3,e.substring(_,i);let O=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&&ut(e.charCodeAt(i))){for(i++;i<e.length&&ut(e.charCodeAt(i));)i++;O=i}else h=3;return e.substring(_,O)}function D(){let _="",O=i;for(;;){if(i>=r){_+=e.substring(O,i),h=2;break}let A=e.charCodeAt(i);if(A===34){_+=e.substring(O,i),i++;break}if(A===92){if(_+=e.substring(O,i),i++,i>=r){h=2;break}switch(e.charCodeAt(i++)){case 34:_+='"';break;case 92:_+="\\";break;case 47:_+="/";break;case 98:_+="\b";break;case 102:_+="\f";break;case 110:_+=`
45
+ `;break;case 114:_+="\r";break;case 116:_+=" ";break;case 117:let M=m(4,!0);M>=0?_+=String.fromCharCode(M):h=4;break;default:h=5}O=i;continue}if(A>=0&&A<=31)if(Pt(A)){_+=e.substring(O,i),h=2;break}else h=6;i++}return _}function F(){if(s="",h=0,n=i,c=o,l=f,i>=r)return n=r,a=17;let _=e.charCodeAt(i);if(Jr(_)){do i++,s+=String.fromCharCode(_),_=e.charCodeAt(i);while(Jr(_));return a=15}if(Pt(_))return i++,s+=String.fromCharCode(_),_===13&&e.charCodeAt(i)===10&&(i++,s+=`
46
+ `),o++,f=i,a=14;switch(_){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=D(),a=10;case 47:let O=i-1;if(e.charCodeAt(i+1)===47){for(i+=2;i<r&&!Pt(e.charCodeAt(i));)i++;return s=e.substring(O,i),a=12}if(e.charCodeAt(i+1)===42){i+=2;let A=r-1,M=!1;for(;i<A;){let q=e.charCodeAt(i);if(q===42&&e.charCodeAt(i+1)===47){i+=2,M=!0;break}i++,Pt(q)&&(q===13&&e.charCodeAt(i)===10&&i++,o++,f=i)}return M||(i++,h=1),s=e.substring(O,i),a=13}return s+=String.fromCharCode(_),i++,a=16;case 45:if(s+=String.fromCharCode(_),i++,i===r||!ut(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+=$(),a=11;default:for(;i<r&&W(_);)i++,_=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(_),i++,a=16}}function W(_){if(Jr(_)||Pt(_))return!1;switch(_){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Ee(){let _;do _=F();while(_>=12&&_<=15);return _}return{setPosition:w,getPosition:()=>i,scan:t?Ee:F,getToken:()=>a,getTokenValue:()=>s,getTokenOffset:()=>n,getTokenLength:()=>i-n,getTokenStartLine:()=>c,getTokenStartCharacter:()=>n-l,getTokenError:()=>h}}function Jr(e){return e===32||e===9}function Pt(e){return e===10||e===13}function ut(e){return e>=48&&e<=57}var Us;(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"})(Us||(Us={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));var ct=200;new Array(ct).fill(0).map((e,t)=>`
47
+ `+" ".repeat(t)),new Array(ct).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(ct).fill(0).map((e,t)=>`\r
48
+ `+" ".repeat(t)),new Array(ct).fill(0).map((e,t)=>`
49
+ `+" ".repeat(t)),new Array(ct).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(ct).fill(0).map((e,t)=>`\r
50
+ `+" ".repeat(t));var er;(function(e){e.DEFAULT={allowTrailingComma:!1}})(er||(er={}));function Wo(e,t=[],r=er.DEFAULT){let i=null,s=[],n=[];function a(o){Array.isArray(s)?s.push(o):i!==null&&(s[i]=o)}return Go(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 Go(e,t,r=er.DEFAULT){let i=Uo(e,!1),s=[];function n(L){return L?()=>L(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter()):()=>!0}function a(L){return L?()=>L(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter(),()=>s.slice()):()=>!0}function o(L){return L?G=>L(G,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter()):()=>!0}function c(L){return L?G=>L(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),w=n(t.onArrayEnd),$=c(t.onLiteralValue),D=o(t.onSeparator),F=n(t.onComment),W=o(t.onError),Ee=r&&r.disallowComments,_=r&&r.allowTrailingComma;function O(){for(;;){let L=i.scan();switch(i.getTokenError()){case 4:A(14);break;case 5:A(15);break;case 3:A(13);break;case 1:Ee||A(11);break;case 2:A(12);break;case 6:A(16);break}switch(L){case 12:case 13:Ee?A(10):F();break;case 16:A(1);break;case 15:case 14:break;default:return L}}}function A(L,G=[],ki=[]){if(W(L),G.length+ki.length>0){let $t=i.getToken();for(;$t!==17;){if(G.indexOf($t)!==-1){O();break}else if(ki.indexOf($t)!==-1)break;$t=O()}}}function M(L){let G=i.getTokenValue();return L?$(G):(l(G),s.push(G)),O(),!0}function q(){switch(i.getToken()){case 11:let L=i.getTokenValue(),G=Number(L);isNaN(G)&&(A(2),G=0),$(G);break;case 7:$(null);break;case 8:$(!0);break;case 9:$(!1);break;default:return!1}return O(),!0}function jt(){return i.getToken()!==10?(A(3,[],[2,5]),!1):(M(!1),i.getToken()===6?(D(":"),O(),vr()||A(4,[],[2,5])):A(5,[],[2,5]),s.pop(),!0)}function xr(){f(),O();let L=!1;for(;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(L||A(4,[],[]),D(","),O(),i.getToken()===2&&_)break}else L&&A(6,[],[]);jt()||A(4,[],[2,5]),L=!0}return h(),i.getToken()!==2?A(7,[2],[]):O(),!0}function Mn(){m(),O();let L=!0,G=!1;for(;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(G||A(4,[],[]),D(","),O(),i.getToken()===4&&_)break}else G&&A(6,[],[]);L?(s.push(0),L=!1):s[s.length-1]++,vr()||A(4,[],[4,5]),G=!0}return w(),L||s.pop(),i.getToken()!==4?A(8,[4],[]):O(),!0}function vr(){switch(i.getToken()){case 3:return Mn();case 1:return xr();case 10:return M(!0);default:return q()}}return O(),i.getToken()===17?r.allowEmptyContent?!0:(A(4,[],[]),!1):vr()?(i.getToken()!==17&&A(9,[],[]),!0):(A(4,[],[]),!1)}var Ws;(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"})(Ws||(Ws={}));var Gs;(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"})(Gs||(Gs={}));var Zo=Wo,Zs;(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"})(Zs||(Zs={}));function ei(e,t){let r=JSON.parse(e,t?.reviver);return Qr(e,r,t),r}function ti(e,t){let r=Zo(e,t?.errors,t);return Qr(e,r,t),r}var Yo={startingFrom:".",rootPattern:/^node_modules$/,reverse:!1,test:e=>{try{if(Ho(e).isFile())return!0}catch{}}};async function Xo(e,t={}){let r=Array.isArray(e)?e:[e],i={...Yo,...t},s=Cr(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=Mt(...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=Mt(...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 Qo(e,t={}){return Xo(e,t)}var Jo=new Map;async function Tf(e,t={}){let r=await ri(e,t),i=t.cache&&typeof t.cache!="boolean"?t.cache:Jo;if(t.cache&&i.has(r))return i.get(r);let s=await Ko.readFile(r,"utf8"),n;try{n=ei(s)}catch{n=ti(s)}return i.set(r,n),n}async function ri(e=process.cwd(),t={}){let r=Ce(e)?e:await Bs(e,t);return Qo("package.json",{startingFrom:r,...t})}import{existsSync as In}from"node:fs";import{readFile as Ec}from"node:fs/promises";import{dirname as Cc,normalize as vi,resolve as kc}from"node:path";var eu=/"(?:_|\\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*:/,tu=/"(?: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*:/,ru=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function iu(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){su(e);return}return t}function su(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function nu(e,t={}){if(typeof e!="string")return e;let r=e.trim();if(e[0]==='"'&&e.at(-1)==='"'&&!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(!ru.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(eu.test(e)||tu.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,iu)}return JSON.parse(e)}catch(i){if(t.strict)throw i;return e}}function zs(e,t={}){return nu(e,{...t,strict:!0})}var Tn=Si(sn(),1);import{createRequire as xc}from"node:module";import{extname as An,resolve as vc}from"node:path";import{fileURLToPath as _c,pathToFileURL as bc}from"node:url";import Xu from"node:assert";import{statSync as xn,realpathSync as Qu}from"node:fs";import We from"node:process";import{URL as U,fileURLToPath as V,pathToFileURL as di}from"node:url";import vn from"node:path";import{builtinModules as _n}from"node:module";import{fileURLToPath as Wu}from"node:url";import Mu from"node:fs";import Bu from"node:path";import{fileURLToPath as ci}from"node:url";import Ru from"node:v8";import Ue from"node:assert";import{format as Iu,inspect as oi}from"node:util";var Pu={}.hasOwnProperty,Nu=/^([A-Z][a-z\d]*)+$/,Ou=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),z={};function ai(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var an=new Map,Lu="__node_internal_",nn;z.ERR_INVALID_ARG_TYPE=pe("ERR_INVALID_ARG_TYPE",(e,t,r)=>{Ue(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)Ue(typeof o=="string","All expected entries have to be of type string"),Ou.has(o)?s.push(o.toLowerCase()):Nu.exec(o)===null?(Ue(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"} ${ai(s,"or")}`,(n.length>0||a.length>0)&&(i+=" or ")),n.length>0&&(i+=`an instance of ${ai(n,"or")}`,a.length>0&&(i+=" or ")),a.length>0&&(a.length>1?i+=`one of ${ai(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(i+="an "),i+=`${a[0]}`)),i+=`. Received ${$u(r)}`,i},TypeError);z.ERR_INVALID_MODULE_SPECIFIER=pe("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);z.ERR_INVALID_PACKAGE_CONFIG=pe("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);z.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==="."?(Ue(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);z.ERR_MODULE_NOT_FOUND=pe("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);z.ERR_NETWORK_IMPORT_DISALLOWED=pe("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);z.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);z.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);z.ERR_UNSUPPORTED_DIR_IMPORT=pe("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);z.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);z.ERR_UNKNOWN_FILE_EXTENSION=pe("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);z.ERR_INVALID_ARG_VALUE=pe("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=oi(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 an.set(e,t),Vu(r,e)}function Vu(e,t){return r;function r(...i){let s=Error.stackTraceLimit;ui()&&(Error.stackTraceLimit=0);let n=new e;ui()&&(Error.stackTraceLimit=s);let a=ju(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}}),Fu(n),n.code=t,n}}function ui(){try{if(Ru.startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):Pu.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function Du(e){let t=Lu+e.name;return Object.defineProperty(e,"name",{value:t}),e}var Fu=Du(function(e){let t=ui();return t&&(nn=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=nn),e});function ju(e,t,r){let i=an.get(e);if(Ue(i!==void 0,"expected `message` to be found"),typeof i=="function")return Ue(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 Ue(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(Iu,null,t))}function $u(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}`:`${oi(e,{depth:-1})}`;let t=oi(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var Nt={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:Uu}=z,on=new Map;function li(e,{base:t,specifier:r}){let i=on.get(e);if(i)return i;let s;try{s=Mu.readFileSync(Bu.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 Uu(e,(t?`"${r}" from `:"")+ci(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 on.set(e,n),n}function nr(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let s=li(ci(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:ci(t),exists:!1,type:"none"}}function fi(e){return nr(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:Gu}=z,Zu={}.hasOwnProperty,zu={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function qu(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var un={__proto__:null,"data:":Hu,"file:":Yu,"http:":cn,"https:":cn,"node:"(){return"builtin"}};function Hu(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return qu(t)}function Ku(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 Yu(e,t,r){let i=Ku(e);if(i===".js"){let a=fi(e);return a!=="none"?a:"commonjs"}if(i===""){let a=fi(e);return a==="none"||a==="commonjs"?"commonjs":"module"}let s=zu[i];if(s)return s;if(r)return;let n=Wu(e);throw new Gu(i,n)}function cn(){}function ln(e,t){let r=e.protocol;return Zu.call(un,r)&&un[r](e,t,!0)||null}var ar=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:sh,ERR_INVALID_MODULE_SPECIFIER:ur,ERR_INVALID_PACKAGE_CONFIG:bn,ERR_INVALID_PACKAGE_TARGET:Ju,ERR_MODULE_NOT_FOUND:mi,ERR_PACKAGE_IMPORT_NOT_DEFINED:ec,ERR_PACKAGE_PATH_NOT_EXPORTED:tc,ERR_UNSUPPORTED_DIR_IMPORT:rc,ERR_UNSUPPORTED_RESOLVE_REQUEST:fn}=z,wn={}.hasOwnProperty,hn=/(^|\\|\/)((\.|%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,pn=/(^|\\|\/)((\.|%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,ic=/^\.|%|\\/,or=/\*/g,sc=/%2f|%5c/i,dn=new Set,nc=/[/\\]{2}/;function mn(e,t,r,i,s,n,a){if(We.noDeprecation)return;let o=V(i),c=nc.exec(a?e:t)!==null;We.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 gn(e,t,r,i){if(We.noDeprecation||ln(e,{parentURL:r.href})!=="module")return;let n=V(e.href),a=V(new U(".",t)),o=V(r);i?vn.resolve(a,i)!==n&&We.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}.
51
+ Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):We.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}.
52
+ Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function En(e){try{return xn(e)}catch{}}function hi(e){let t=xn(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r??!1}function ac(e,t,r){let i;if(t.main!==void 0){if(i=new U(t.main,e),hi(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),!hi(i));)i=void 0;if(i)return gn(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),!hi(i));)i=void 0;if(i)return gn(i,e,r,t.main),i;throw new mi(V(new U(".",e)),V(r))}function oc(e,t,r){if(sc.exec(e.pathname)!==null)throw new ur(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=En(i.endsWith("/")?i.slice(-1):i);if(s&&s.isDirectory()){let n=new rc(i,V(t));throw n.url=String(e),n}if(!s||!s.isFile()){let n=new mi(i||e.pathname,t&&V(t),!0);throw n.url=String(e),n}if(!r){let n=Qu(i),{search:a,hash:o}=e;e=di(n+(i.endsWith(vn.sep)?"/":"")),e.search=a,e.hash=o}return e}function uc(e,t,r){return new ec(e,t&&V(new U(".",t)),V(r))}function pi(e,t,r){return new tc(V(new U(".",t)),e,r&&V(r))}function cc(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 ur(e,n,s&&V(s))}function Ot(e,t,r,i,s){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new Ju(V(new U(".",r)),e,t,i,s&&V(s))}function lc(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 U(e),m=!0}catch{}if(!m){let w=n?ar.call(or,e,()=>t):e+t;return kn(w,i,c)}}throw Ot(r,e,i,a,s)}if(hn.exec(e.slice(2))!==null)if(pn.exec(e.slice(2))===null){if(!o){let m=n?r.replace("*",()=>t):r+t,w=n?ar.call(or,e,()=>t):e;mn(w,m,r,i,a,s,!0)}}else throw Ot(r,e,i,a,s);let f=new U(e,i),l=f.pathname,h=new U(".",i).pathname;if(!l.startsWith(h))throw Ot(r,e,i,a,s);if(t==="")return f;if(hn.exec(t)!==null){let m=n?r.replace("*",()=>t):r+t;if(pn.exec(t)===null){if(!o){let w=n?ar.call(or,e,()=>t):e;mn(w,m,r,i,a,s,!1)}}else cc(m,r,i,a,s)}return n?new U(ar.call(or,f.href,()=>t)):new U(t,f)}function fc(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function dt(e,t,r,i,s,n,a,o,c){if(typeof t=="string")return lc(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],w;try{w=dt(e,m,r,i,s,n,a,o,c)}catch($){let D=$;if(l=D,D.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw $}if(w!==void 0){if(w===null){l=null;continue}return w}}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(fc(h))throw new bn(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],w=dt(e,m,r,i,s,n,a,o,c);if(w===void 0)continue;return w}}return null}if(t===null)return null;throw Ot(i,t,e,a,s)}function hc(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 bn(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 pc(e,t,r){if(We.noDeprecation)return;let i=V(t);dn.has(i+"|"+e)||(dn.add(i+"|"+e),We.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 yn(e,t,r,i,s){let n=r.exports;if(hc(n,e,i)&&(n={".":n}),wn.call(n,t)&&!t.includes("*")&&!t.endsWith("/")){let l=n[t],h=dt(e,l,"",t,i,!1,!1,!1,s);if(h==null)throw pi(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("/")&&pc(t,e,i);let m=l.slice(h+1);t.length>=l.length&&t.endsWith(m)&&Cn(a,l)===1&&l.lastIndexOf("*")===h&&(a=l,o=t.slice(h,t.length-m.length))}}if(a){let l=n[a],h=dt(e,l,o,a,i,!0,!1,t.endsWith("/"),s);if(h==null)throw pi(t,e,i);return h}throw pi(t,e,i)}function Cn(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 dc(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){let n="is not a valid internal imports specifier name";throw new ur(e,n,V(t))}let i,s=nr(t);if(s.exists){i=di(s.pjsonPath);let n=s.imports;if(n)if(wn.call(n,e)&&!e.includes("*")){let a=dt(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)&&Cn(a,l)===1&&l.lastIndexOf("*")===h&&(a=l,o=e.slice(h,e.length-m.length))}}if(a){let l=n[a],h=dt(i,l,o,a,t,!0,!0,!1,r);if(h!=null)return h}}}throw uc(e,i,t)}function mc(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(ic.exec(n)!==null&&(i=!1),!i)throw new ur(e,"is not a valid package name",V(t));let a="."+(r===-1?"":e.slice(r));return{packageName:n,packageSubpath:a,isScoped:s}}function kn(e,t,r){if(_n.includes(e))return new U("node:"+e);let{packageName:i,packageSubpath:s,isScoped:n}=mc(e,t),a=nr(t);if(a.exists){let l=di(a.pjsonPath);if(a.name===i&&a.exports!==void 0&&a.exports!==null)return yn(l,s,a,t,r)}let o=new U("./node_modules/"+i+"/package.json",t),c=V(o),f;do{let l=En(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=li(c,{base:t,specifier:e});return h.exports!==void 0&&h.exports!==null?yn(o,s,h,t,r):s==="."?ac(o,h,t):new U(s,o)}while(c.length!==f.length);throw new mi(i,V(t),!1)}function gc(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function yc(e){return e===""?!1:e[0]==="/"?!0:gc(e)}function gi(e,t,r,i){let s=t.protocol,a=s==="data:"||s==="http:"||s==="https:",o;if(yc(e))try{o=new U(e,t)}catch(c){let f=new fn(e,t);throw f.cause=c,f}else if(s==="file:"&&e[0]==="#")o=dc(e,t,r);else try{o=new U(e)}catch(c){if(a&&!_n.includes(e)){let f=new fn(e,t);throw f.cause=c,f}o=kn(e,t,r)}return Xu(o!==void 0,"expected to be defined"),o.protocol!=="file:"?o:oc(o,t,i)}var be=(0,Tn.default)("import-from-esm"),wc=xc(import.meta.url),cr=[".js",".mjs",".cjs",".json"];function Sn(...e){return bc(vc(...e))}function yi(e,t){be(`Trying to resolve '${e}' from '${t.href}'`);try{return gi(e,t,new Set(["node","import"]))}catch(r){be(`Failed to resolve '${e}' from '${t.href}': ${String(r)}`)}}async function Lt(e){if(e)try{be(`Trying to determine file extension for '${e.href}'`);let t=_c(e),r=An(t)===".json";return be(`Trying to import '${e.href}'${r?" as JSON":""}`),r?wc(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 xi(e,t){be(`Executing importFrom('${e}', '${t}')`);let r;if(/^(\/|\.\.\/|\.\/|[a-zA-Z]:)/.test(t)){be(`'${t}' is a file module`);let i=Sn(e,t);if(r=await Lt(i),!r&&!cr.includes(An(t))){for(let s of cr)if(r=await Lt(`${i}${s}`),r)break}}else{be(`'${t}' is not a file module`);let i=Sn(e,"noop.js");if(r=await Lt(yi(t,i)),!r&&!t.startsWith("#")){for(let s of cr)if(r=await Lt(yi(`${t}${s}`,i)),r)break;if(!r){for(let s of cr)if(r=await Lt(yi(`${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}xi.silent=async function(e,t){try{return await xi(e,t)}catch{}};var Rn=xi;async function _h(e){let t=[];for(let r of e){let i=await ri(r).then(vi);if(!i||!In(i)){re.warn(`Could not find package.json for '${r}'`);continue}let s=await Ec(i).then(h=>zs(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=vi(kc(Cc(i),o));if(!In(c)){re.warn(`Could not find manifest file for '${r}' at '${c}'`);continue}let f=vi(process.cwd()),l=await Rn(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 N;(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})(N||(N={}));var bi;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(bi||(bi={}));var d=N.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),De=e=>{switch(typeof e){case"undefined":return d.undefined;case"string":return d.string;case"number":return isNaN(e)?d.nan:d.number;case"boolean":return d.boolean;case"function":return d.function;case"bigint":return d.bigint;case"symbol":return d.symbol;case"object":return Array.isArray(e)?d.array:e===null?d.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?d.promise:typeof Map<"u"&&e instanceof Map?d.map:typeof Set<"u"&&e instanceof Set?d.set:typeof Date<"u"&&e instanceof Date?d.date:d.object;default:return d.unknown}},p=N.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"]),Sc=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),se=class 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}toString(){return this.message}get message(){return JSON.stringify(this.issues,N.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 Vt=(e,t)=>{let r;switch(e.code){case p.invalid_type:e.received===d.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case p.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,N.jsonStringifyReplacer)}`;break;case p.unrecognized_keys:r=`Unrecognized key(s) in object: ${N.joinValues(e.keys,", ")}`;break;case p.invalid_union:r="Invalid input";break;case p.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${N.joinValues(e.options)}`;break;case p.invalid_enum_value:r=`Invalid enum value. Expected ${N.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}"`:N.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,N.assertNever(e)}return{message:r}},On=Vt;function Ac(e){On=e}function fr(){return On}var hr=e=>{let{data:t,path:r,errorMaps:i,issueData:s}=e,n=[...r,...s.path||[]],a={...s,path:n},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:s.message||o}},Tc=[];function g(e,t){let r=hr({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,fr(),Vt].filter(i=>!!i)});e.common.issues.push(r)}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 C;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)i.push({key:await s.key,value:await s.value});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 C;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}}},C=Object.freeze({status:"aborted"}),Ln=e=>({status:"dirty",value:e}),J=e=>({status:"valid",value:e}),wi=e=>e.status==="aborted",Ei=e=>e.status==="dirty",Dt=e=>e.status==="valid",pr=e=>typeof Promise<"u"&&e instanceof Promise,v;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(v||(v={}));var de=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}},Pn=(e,t)=>{if(Dt(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)=>a.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:i??o.defaultError}:{message:r??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 De(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:De(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:De(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(pr(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:De(t)},n=this._parseSync({data:t,path:s.path,parent:s});return Pn(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:De(t)},s=this._parse({data:t,path:i.path,parent:i}),n=await(pr(s)?s:Promise.resolve(s));return Pn(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:b.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return ye.create(this,this._def)}nullable(){return Ie.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Re.create(this,this._def)}promise(){return $e.create(this,this._def)}or(t){return Ye.create([this,t],this._def)}and(t){return Xe.create(this,t,this._def)}transform(t){return new ne({...k(this._def),schema:this,typeName:b.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new rt({...k(this._def),innerType:this,defaultValue:r,typeName:b.ZodDefault})}brand(){return new yr({typeName:b.ZodBranded,type:this,...k(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new _t({...k(this._def),innerType:this,catchValue:r,typeName:b.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Ft.create(this,t)}readonly(){return wt.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Rc=/^c[^\s-]{8,}$/i,Ic=/^[a-z][a-z0-9]*$/,Pc=/^[0-9A-HJKMNP-TV-Z]{26}$/,Nc=/^[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,Oc=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Lc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",_i,Vc=/^(((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}))$/,Dc=/^(([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})))$/,Fc=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function jc(e,t){return!!((t==="v4"||!t)&&Vc.test(e)||(t==="v6"||!t)&&Dc.test(e))}var Fe=class e extends S{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==d.string){let n=this._getOrReturnCtx(t);return g(n,{code:p.invalid_type,expected:d.string,received:n.parsedType}),C}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),g(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),g(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?g(s,{code:p.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):o&&g(s,{code:p.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),i.dirty())}else if(n.kind==="email")Oc.test(t.data)||(s=this._getOrReturnCtx(t,s),g(s,{validation:"email",code:p.invalid_string,message:n.message}),i.dirty());else if(n.kind==="emoji")_i||(_i=new RegExp(Lc,"u")),_i.test(t.data)||(s=this._getOrReturnCtx(t,s),g(s,{validation:"emoji",code:p.invalid_string,message:n.message}),i.dirty());else if(n.kind==="uuid")Nc.test(t.data)||(s=this._getOrReturnCtx(t,s),g(s,{validation:"uuid",code:p.invalid_string,message:n.message}),i.dirty());else if(n.kind==="cuid")Rc.test(t.data)||(s=this._getOrReturnCtx(t,s),g(s,{validation:"cuid",code:p.invalid_string,message:n.message}),i.dirty());else if(n.kind==="cuid2")Ic.test(t.data)||(s=this._getOrReturnCtx(t,s),g(s,{validation:"cuid2",code:p.invalid_string,message:n.message}),i.dirty());else if(n.kind==="ulid")Pc.test(t.data)||(s=this._getOrReturnCtx(t,s),g(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),g(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),g(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),g(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),g(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),g(s,{code:p.invalid_string,validation:{endsWith:n.value},message:n.message}),i.dirty()):n.kind==="datetime"?Fc(n).test(t.data)||(s=this._getOrReturnCtx(t,s),g(s,{code:p.invalid_string,validation:"datetime",message:n.message}),i.dirty()):n.kind==="ip"?jc(t.data,n.version)||(s=this._getOrReturnCtx(t,s),g(s,{validation:"ip",code:p.invalid_string,message:n.message}),i.dirty()):N.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,...v.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...v.errToObj(t)})}url(t){return this._addCheck({kind:"url",...v.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...v.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...v.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...v.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...v.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...v.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...v.errToObj(t)})}datetime(t){var r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!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,...v.errToObj(t?.message)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...v.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...v.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...v.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...v.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...v.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...v.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...v.errToObj(r)})}nonempty(t){return this.min(1,v.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 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 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 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}};Fe.create=e=>{var t;return new Fe({checks:[],typeName:b.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...k(e)})};function $c(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 Ge=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)!==d.number){let n=this._getOrReturnCtx(t);return g(n,{code:p.invalid_type,expected:d.number,received:n.parsedType}),C}let i,s=new Y;for(let n of this._def.checks)n.kind==="int"?N.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),g(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),g(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),g(i,{code:p.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="multipleOf"?$c(t.data,n.value)!==0&&(i=this._getOrReturnCtx(t,i),g(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),g(i,{code:p.not_finite,message:n.message}),s.dirty()):N.assertNever(n);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,v.toString(r))}gt(t,r){return this.setLimit("min",t,!1,v.toString(r))}lte(t,r){return this.setLimit("max",t,!0,v.toString(r))}lt(t,r){return this.setLimit("max",t,!1,v.toString(r))}setLimit(t,r,i,s){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:v.toString(s)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:v.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:v.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:v.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:v.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:v.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:v.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:v.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:v.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:v.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"&&N.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)}};Ge.create=e=>new Ge({checks:[],typeName:b.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)!==d.bigint){let n=this._getOrReturnCtx(t);return g(n,{code:p.invalid_type,expected:d.bigint,received:n.parsedType}),C}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),g(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),g(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),g(i,{code:p.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):N.assertNever(n);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,v.toString(r))}gt(t,r){return this.setLimit("min",t,!1,v.toString(r))}lte(t,r){return this.setLimit("max",t,!0,v.toString(r))}lt(t,r){return this.setLimit("max",t,!1,v.toString(r))}setLimit(t,r,i,s){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:v.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:v.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:v.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:v.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:v.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:v.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:b.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...k(e)})};var ze=class extends S{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==d.boolean){let i=this._getOrReturnCtx(t);return g(i,{code:p.invalid_type,expected:d.boolean,received:i.parsedType}),C}return J(t.data)}};ze.create=e=>new ze({typeName:b.ZodBoolean,coerce:e?.coerce||!1,...k(e)});var qe=class e extends S{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==d.date){let n=this._getOrReturnCtx(t);return g(n,{code:p.invalid_type,expected:d.date,received:n.parsedType}),C}if(isNaN(t.data.getTime())){let n=this._getOrReturnCtx(t);return g(n,{code:p.invalid_date}),C}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),g(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),g(s,{code:p.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),i.dirty()):N.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:v.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:v.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}};qe.create=e=>new qe({checks:[],coerce:e?.coerce||!1,typeName:b.ZodDate,...k(e)});var gt=class extends S{_parse(t){if(this._getType(t)!==d.symbol){let i=this._getOrReturnCtx(t);return g(i,{code:p.invalid_type,expected:d.symbol,received:i.parsedType}),C}return J(t.data)}};gt.create=e=>new gt({typeName:b.ZodSymbol,...k(e)});var He=class extends S{_parse(t){if(this._getType(t)!==d.undefined){let i=this._getOrReturnCtx(t);return g(i,{code:p.invalid_type,expected:d.undefined,received:i.parsedType}),C}return J(t.data)}};He.create=e=>new He({typeName:b.ZodUndefined,...k(e)});var Ke=class extends S{_parse(t){if(this._getType(t)!==d.null){let i=this._getOrReturnCtx(t);return g(i,{code:p.invalid_type,expected:d.null,received:i.parsedType}),C}return J(t.data)}};Ke.create=e=>new Ke({typeName:b.ZodNull,...k(e)});var je=class extends S{constructor(){super(...arguments),this._any=!0}_parse(t){return J(t.data)}};je.create=e=>new je({typeName:b.ZodAny,...k(e)});var Te=class extends S{constructor(){super(...arguments),this._unknown=!0}_parse(t){return J(t.data)}};Te.create=e=>new Te({typeName:b.ZodUnknown,...k(e)});var xe=class extends S{_parse(t){let r=this._getOrReturnCtx(t);return g(r,{code:p.invalid_type,expected:d.never,received:r.parsedType}),C}};xe.create=e=>new xe({typeName:b.ZodNever,...k(e)});var yt=class extends S{_parse(t){if(this._getType(t)!==d.undefined){let i=this._getOrReturnCtx(t);return g(i,{code:p.invalid_type,expected:d.void,received:i.parsedType}),C}return J(t.data)}};yt.create=e=>new yt({typeName:b.ZodVoid,...k(e)});var Re=class e extends S{_parse(t){let{ctx:r,status:i}=this._processInputParams(t),s=this._def;if(r.parsedType!==d.array)return g(r,{code:p.invalid_type,expected:d.array,received:r.parsedType}),C;if(s.exactLength!==null){let a=r.data.length>s.exactLength.value,o=r.data.length<s.exactLength.value;(a||o)&&(g(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&&(g(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&&(g(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 de(r,a,r.path,o)))).then(a=>Y.mergeArray(i,a));let n=[...r.data].map((a,o)=>s.type._parseSync(new de(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:v.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:v.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:v.toString(r)}})}nonempty(t){return this.min(1,t)}};Re.create=(e,t)=>new Re({type:e,minLength:null,maxLength:null,exactLength:null,typeName:b.ZodArray,...k(t)});function mt(e){if(e instanceof te){let t={};for(let r in e.shape){let i=e.shape[r];t[r]=ye.create(mt(i))}return new te({...e._def,shape:()=>t})}else return e instanceof Re?new Re({...e._def,type:mt(e.element)}):e instanceof ye?ye.create(mt(e.unwrap())):e instanceof Ie?Ie.create(mt(e.unwrap())):e instanceof we?we.create(e.items.map(t=>mt(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=N.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==d.object){let f=this._getOrReturnCtx(t);return g(f,{code:p.invalid_type,expected:d.object,received:f.parsedType}),C}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 de(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&&(g(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 de(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;f.push({key:h,value:await l.value,alwaysSet:l.alwaysSet})}return f}).then(f=>Y.mergeObjectSync(i,f)):Y.mergeObjectSync(i,c)}get shape(){return this._def.shape()}strict(t){return v.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=v.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:b.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};return N.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 N.objectKeys(this.shape).forEach(i=>{t[i]||(r[i]=this.shape[i])}),new e({...this._def,shape:()=>r})}deepPartial(){return mt(this)}partial(t){let r={};return N.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 N.objectKeys(this.shape).forEach(i=>{if(t&&!t[i])r[i]=this.shape[i];else{let n=this.shape[i];for(;n instanceof ye;)n=n._def.innerType;r[i]=n}}),new e({...this._def,shape:()=>r})}keyof(){return Vn(N.objectKeys(this.shape))}};te.create=(e,t)=>new te({shape:()=>e,unknownKeys:"strip",catchall:xe.create(),typeName:b.ZodObject,...k(t)});te.strictCreate=(e,t)=>new te({shape:()=>e,unknownKeys:"strict",catchall:xe.create(),typeName:b.ZodObject,...k(t)});te.lazycreate=(e,t)=>new te({shape:e,unknownKeys:"strip",catchall:xe.create(),typeName:b.ZodObject,...k(t)});var Ye=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 g(r,{code:p.invalid_union,unionErrors:a}),C}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 g(r,{code:p.invalid_union,unionErrors:o}),C}}get options(){return this._def.options}};Ye.create=(e,t)=>new Ye({options:e,typeName:b.ZodUnion,...k(t)});var lr=e=>e instanceof Qe?lr(e.schema):e instanceof ne?lr(e.innerType()):e instanceof Je?[e.value]:e instanceof et?e.options:e instanceof tt?Object.keys(e.enum):e instanceof rt?lr(e._def.innerType):e instanceof He?[void 0]:e instanceof Ke?[null]:null,dr=class e extends S{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==d.object)return g(r,{code:p.invalid_type,expected:d.object,received:r.parsedType}),C;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}):(g(r,{code:p.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),C)}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=lr(n.shape[t]);if(!a)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:b.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:s,...k(i)})}};function Ci(e,t){let r=De(e),i=De(t);if(e===t)return{valid:!0,data:e};if(r===d.object&&i===d.object){let s=N.objectKeys(t),n=N.objectKeys(e).filter(o=>s.indexOf(o)!==-1),a={...e,...t};for(let o of n){let c=Ci(e[o],t[o]);if(!c.valid)return{valid:!1};a[o]=c.data}return{valid:!0,data:a}}else if(r===d.array&&i===d.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=Ci(a,o);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return r===d.date&&i===d.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Xe=class extends S{_parse(t){let{status:r,ctx:i}=this._processInputParams(t),s=(n,a)=>{if(wi(n)||wi(a))return C;let o=Ci(n.value,a.value);return o.valid?((Ei(n)||Ei(a))&&r.dirty(),{status:r.value,value:o.data}):(g(i,{code:p.invalid_intersection_types}),C)};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}))}};Xe.create=(e,t,r)=>new Xe({left:e,right:t,typeName:b.ZodIntersection,...k(r)});var we=class e extends S{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==d.array)return g(i,{code:p.invalid_type,expected:d.array,received:i.parsedType}),C;if(i.data.length<this._def.items.length)return g(i,{code:p.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),C;!this._def.rest&&i.data.length>this._def.items.length&&(g(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 de(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:b.ZodTuple,rest:null,...k(t)})};var mr=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!==d.object)return g(i,{code:p.invalid_type,expected:d.object,received:i.parsedType}),C;let s=[],n=this._def.keyType,a=this._def.valueType;for(let o in i.data)s.push({key:n._parse(new de(i,o,i.path,o)),value:a._parse(new de(i,i.data[o],i.path,o))});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:b.ZodRecord,...k(i)}):new e({keyType:Fe.create(),valueType:t,typeName:b.ZodRecord,...k(r)})}},xt=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!==d.map)return g(i,{code:p.invalid_type,expected:d.map,received:i.parsedType}),C;let s=this._def.keyType,n=this._def.valueType,a=[...i.data.entries()].map(([o,c],f)=>({key:s._parse(new de(i,o,i.path,[f,"key"])),value:n._parse(new de(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 C;(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 C;(f.status==="dirty"||l.status==="dirty")&&r.dirty(),o.set(f.value,l.value)}return{status:r.value,value:o}}}};xt.create=(e,t,r)=>new xt({valueType:t,keyType:e,typeName:b.ZodMap,...k(r)});var vt=class e extends S{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==d.set)return g(i,{code:p.invalid_type,expected:d.set,received:i.parsedType}),C;let s=this._def;s.minSize!==null&&i.data.size<s.minSize.value&&(g(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&&(g(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 C;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 de(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:v.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:v.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};vt.create=(e,t)=>new vt({valueType:e,minSize:null,maxSize:null,typeName:b.ZodSet,...k(t)});var gr=class e extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==d.function)return g(r,{code:p.invalid_type,expected:d.function,received:r.parsedType}),C;function i(o,c){return hr({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,fr(),Vt].filter(f=>!!f),issueData:{code:p.invalid_arguments,argumentsError:c}})}function s(o,c){return hr({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,fr(),Vt].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 $e){let o=this;return J(async function(...c){let f=new se([]),l=await o._def.args.parseAsync(c,n).catch(w=>{throw f.addIssue(i(c,w)),f}),h=await Reflect.apply(a,this,l);return await o._def.returns._def.type.parseAsync(h,n).catch(w=>{throw f.addIssue(s(h,w)),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(Te.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(Te.create()),returns:r||Te.create(),typeName:b.ZodFunction,...k(i)})}},Qe=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})}};Qe.create=(e,t)=>new Qe({getter:e,typeName:b.ZodLazy,...k(t)});var Je=class extends S{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return g(r,{received:r.data,code:p.invalid_literal,expected:this._def.value}),C}return{status:"valid",value:t.data}}get value(){return this._def.value}};Je.create=(e,t)=>new Je({value:e,typeName:b.ZodLiteral,...k(t)});function Vn(e,t){return new et({values:e,typeName:b.ZodEnum,...k(t)})}var et=class e extends S{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),i=this._def.values;return g(r,{expected:N.joinValues(i),received:r.parsedType,code:p.invalid_type}),C}if(this._def.values.indexOf(t.data)===-1){let r=this._getOrReturnCtx(t),i=this._def.values;return g(r,{received:r.data,code:p.invalid_enum_value,options:i}),C}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){return e.create(t)}exclude(t){return e.create(this.options.filter(r=>!t.includes(r)))}};et.create=Vn;var tt=class extends S{_parse(t){let r=N.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==d.string&&i.parsedType!==d.number){let s=N.objectValues(r);return g(i,{expected:N.joinValues(s),received:i.parsedType,code:p.invalid_type}),C}if(r.indexOf(t.data)===-1){let s=N.objectValues(r);return g(i,{received:i.data,code:p.invalid_enum_value,options:s}),C}return J(t.data)}get enum(){return this._def.values}};tt.create=(e,t)=>new tt({values:e,typeName:b.ZodNativeEnum,...k(t)});var $e=class extends S{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==d.promise&&r.common.async===!1)return g(r,{code:p.invalid_type,expected:d.promise,received:r.parsedType}),C;let i=r.parsedType===d.promise?r.data:Promise.resolve(r.data);return J(i.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}};$e.create=(e,t)=>new $e({type:e,typeName:b.ZodPromise,...k(t)});var ne=class extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===b.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=>{g(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);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(a).then(o=>this._def.schema._parseAsync({data:o,path:i.path,parent:i})):this._def.schema._parseSync({data:a,path:i.path,parent:i})}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"?C:(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"?C:(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(!Dt(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=>Dt(a)?Promise.resolve(s.transform(a.value,n)).then(o=>({status:r.value,value:o})):a);N.assertNever(s)}};ne.create=(e,t,r)=>new ne({schema:e,typeName:b.ZodEffects,effect:t,...k(r)});ne.createWithPreprocess=(e,t,r)=>new ne({schema:t,effect:{type:"preprocess",transform:e},typeName:b.ZodEffects,...k(r)});var ye=class extends S{_parse(t){return this._getType(t)===d.undefined?J(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ye.create=(e,t)=>new ye({innerType:e,typeName:b.ZodOptional,...k(t)});var Ie=class extends S{_parse(t){return this._getType(t)===d.null?J(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Ie.create=(e,t)=>new Ie({innerType:e,typeName:b.ZodNullable,...k(t)});var rt=class extends S{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return r.parsedType===d.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};rt.create=(e,t)=>new rt({innerType:e,typeName:b.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...k(t)});var _t=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 pr(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}};_t.create=(e,t)=>new _t({innerType:e,typeName:b.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...k(t)});var bt=class extends S{_parse(t){if(this._getType(t)!==d.nan){let i=this._getOrReturnCtx(t);return g(i,{code:p.invalid_type,expected:d.nan,received:i.parsedType}),C}return{status:"valid",value:t.data}}};bt.create=e=>new bt({typeName:b.ZodNaN,...k(e)});var Mc=Symbol("zod_brand"),yr=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}},Ft=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"?C:n.status==="dirty"?(r.dirty(),Ln(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"?C: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:b.ZodPipeline})}},wt=class extends S{_parse(t){let r=this._def.innerType._parse(t);return Dt(r)&&(r.value=Object.freeze(r.value)),r}};wt.create=(e,t)=>new wt({innerType:e,typeName:b.ZodReadonly,...k(t)});var Dn=(e,t={},r)=>e?je.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})}}):je.create(),Bc={object:te.lazycreate},b;(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"})(b||(b={}));var Uc=(e,t={message:`Input not instance of ${e.name}`})=>Dn(r=>r instanceof e,t),Fn=Fe.create,jn=Ge.create,Wc=bt.create,Gc=Ze.create,$n=ze.create,Zc=qe.create,zc=gt.create,qc=He.create,Hc=Ke.create,Kc=je.create,Yc=Te.create,Xc=xe.create,Qc=yt.create,Jc=Re.create,el=te.create,tl=te.strictCreate,rl=Ye.create,il=dr.create,sl=Xe.create,nl=we.create,al=mr.create,ol=xt.create,ul=vt.create,cl=gr.create,ll=Qe.create,fl=Je.create,hl=et.create,pl=tt.create,dl=$e.create,Nn=ne.create,ml=ye.create,gl=Ie.create,yl=ne.createWithPreprocess,xl=Ft.create,vl=()=>Fn().optional(),_l=()=>jn().optional(),bl=()=>$n().optional(),wl={string:e=>Fe.create({...e,coerce:!0}),number:e=>Ge.create({...e,coerce:!0}),boolean:e=>ze.create({...e,coerce:!0}),bigint:e=>Ze.create({...e,coerce:!0}),date:e=>qe.create({...e,coerce:!0})},El=C,wh=Object.freeze({__proto__:null,defaultErrorMap:Vt,setErrorMap:Ac,getErrorMap:fr,makeIssue:hr,EMPTY_PATH:Tc,addIssueToContext:g,ParseStatus:Y,INVALID:C,DIRTY:Ln,OK:J,isAborted:wi,isDirty:Ei,isValid:Dt,isAsync:pr,get util(){return N},get objectUtil(){return bi},ZodParsedType:d,getParsedType:De,ZodType:S,ZodString:Fe,ZodNumber:Ge,ZodBigInt:Ze,ZodBoolean:ze,ZodDate:qe,ZodSymbol:gt,ZodUndefined:He,ZodNull:Ke,ZodAny:je,ZodUnknown:Te,ZodNever:xe,ZodVoid:yt,ZodArray:Re,ZodObject:te,ZodUnion:Ye,ZodDiscriminatedUnion:dr,ZodIntersection:Xe,ZodTuple:we,ZodRecord:mr,ZodMap:xt,ZodSet:vt,ZodFunction:gr,ZodLazy:Qe,ZodLiteral:Je,ZodEnum:et,ZodNativeEnum:tt,ZodPromise:$e,ZodEffects:ne,ZodTransformer:ne,ZodOptional:ye,ZodNullable:Ie,ZodDefault:rt,ZodCatch:_t,ZodNaN:bt,BRAND:Mc,ZodBranded:yr,ZodPipeline:Ft,ZodReadonly:wt,custom:Dn,Schema:S,ZodSchema:S,late:Bc,get ZodFirstPartyTypeKind(){return b},coerce:wl,any:Kc,array:Jc,bigint:Gc,boolean:$n,date:Zc,discriminatedUnion:il,effect:Nn,enum:hl,function:cl,instanceof:Uc,intersection:sl,lazy:ll,literal:fl,map:ol,nan:Wc,nativeEnum:pl,never:Xc,null:Hc,nullable:gl,number:jn,object:el,oboolean:bl,onumber:_l,optional:ml,ostring:vl,pipeline:xl,preprocess:yl,promise:dl,record:al,set:ul,strictObject:tl,string:Fn,symbol:zc,transformer:Nn,tuple:nl,undefined:qc,union:rl,unknown:Yc,void:Qc,NEVER:El,ZodIssueCode:p,quotelessJson:Sc,ZodError:se});export{wh as a,Ri as b,Tl as c,nu as d,Tf as e,_h as f};